diff --git a/.gitignore b/.gitignore index f3cbe8ed4..01b1acf66 100644 --- a/.gitignore +++ b/.gitignore @@ -303,3 +303,4 @@ local.properties /org.hl7.fhir.r5/src/test/resources/snapshot-generation/logical1-actual.xml /org.hl7.fhir.r5/src/test/resources/snapshot-generation/logical2-actual.xml /org.hl7.fhir.r5.new +/org.hl7.fhir.r5.newc diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertorResourceNameMapper.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertorResourceNameMapper.java index 0971a78de..31f434984 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertorResourceNameMapper.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertorResourceNameMapper.java @@ -43,7 +43,7 @@ public class VersionConvertorResourceNameMapper { case "DeviceComponent" : return null; case "DeviceMetric" : return org.hl7.fhir.r5.model.DeviceMetric.class.getSimpleName(); case "DeviceRequest" : return org.hl7.fhir.r5.model.DeviceRequest.class.getSimpleName(); - case "DeviceUseStatement" : return org.hl7.fhir.r5.model.DeviceUseStatement.class.getSimpleName(); + case "DeviceUseStatement" : return org.hl7.fhir.r5.model.DeviceUsage.class.getSimpleName(); case "DiagnosticReport" : return org.hl7.fhir.r5.model.DiagnosticReport.class.getSimpleName(); case "DocumentManifest" : return org.hl7.fhir.r5.model.DocumentManifest.class.getSimpleName(); case "DocumentReference" : return org.hl7.fhir.r5.model.DocumentReference.class.getSimpleName(); @@ -169,7 +169,7 @@ public class VersionConvertorResourceNameMapper { case "DeviceDefinition" : return null; case "DeviceMetric" : return org.hl7.fhir.dstu3.model.DeviceMetric.class.getSimpleName(); case "DeviceRequest" : return org.hl7.fhir.dstu3.model.DeviceRequest.class.getSimpleName(); - case "DeviceUseStatement" : return org.hl7.fhir.dstu3.model.DeviceUseStatement.class.getSimpleName(); + case "DeviceUsage" : return org.hl7.fhir.dstu3.model.DeviceUseStatement.class.getSimpleName(); case "DiagnosticReport" : return org.hl7.fhir.dstu3.model.DiagnosticReport.class.getSimpleName(); case "DocumentManifest" : return org.hl7.fhir.dstu3.model.DocumentManifest.class.getSimpleName(); case "DocumentReference" : return org.hl7.fhir.dstu3.model.DocumentReference.class.getSimpleName(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_30.java index d169a697b..d5ac5381e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_30.java @@ -46,7 +46,7 @@ import java.util.stream.Collectors; POSSIBILITY OF SUCH DAMAGE. */ -public class VersionConvertor_10_30 { +public class VersionConvertor_10_30 extends VersionConvertor_Base { public static void copyElement(org.hl7.fhir.dstu2.model.Element src, org.hl7.fhir.dstu3.model.Element tgt) throws FHIRException { tgt.setId(src.getId()); for (org.hl7.fhir.dstu2.model.Extension e : src.getExtension()) { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_40.java index 2010fde30..86f67b7af 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_40.java @@ -55,7 +55,7 @@ import java.util.stream.Collectors; POSSIBILITY OF SUCH DAMAGE. */ -public class VersionConvertor_10_40 { +public class VersionConvertor_10_40 extends VersionConvertor_Base { static public List CANONICAL_URLS = new ArrayList(); static { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_50.java index 073707cc9..8698932aa 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_50.java @@ -54,7 +54,7 @@ import java.util.stream.Collectors; POSSIBILITY OF SUCH DAMAGE. */ -public class VersionConvertor_10_50 { +public class VersionConvertor_10_50 extends VersionConvertor_Base { static public List CANONICAL_URLS = new ArrayList(); static { @@ -2979,8 +2979,8 @@ public class VersionConvertor_10_50 { return DetectedIssue10_50.convertDetectedIssue((org.hl7.fhir.r5.model.DetectedIssue) src); if (src instanceof org.hl7.fhir.r5.model.DeviceMetric) return DeviceMetric10_50.convertDeviceMetric((org.hl7.fhir.r5.model.DeviceMetric) src); - if (src instanceof org.hl7.fhir.r5.model.DeviceUseStatement) - return DeviceUseStatement10_50.convertDeviceUseStatement((org.hl7.fhir.r5.model.DeviceUseStatement) src); + if (src instanceof org.hl7.fhir.r5.model.DeviceUsage) + return DeviceUseStatement10_50.convertDeviceUseStatement((org.hl7.fhir.r5.model.DeviceUsage) src); if (src instanceof org.hl7.fhir.r5.model.DiagnosticReport) return DiagnosticReport10_50.convertDiagnosticReport((org.hl7.fhir.r5.model.DiagnosticReport) src); if (src instanceof org.hl7.fhir.r5.model.DocumentReference) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_14_30.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_14_30.java index fb3a82da9..a0aef97ea 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_14_30.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_14_30.java @@ -39,7 +39,7 @@ import java.util.stream.Collectors; POSSIBILITY OF SUCH DAMAGE. */ -public class VersionConvertor_14_30 { +public class VersionConvertor_14_30 extends VersionConvertor_Base { static public void copyElement(org.hl7.fhir.dstu2016may.model.Element src, org.hl7.fhir.dstu3.model.Element tgt, String... exemptExtensions) throws FHIRException { if (src.hasId()) tgt.setId(src.getId()); for (org.hl7.fhir.dstu2016may.model.Extension e : src.getExtension()) { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_14_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_14_40.java index beb5c3a26..5de05288b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_14_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_14_40.java @@ -43,7 +43,7 @@ import java.util.stream.Collectors; POSSIBILITY OF SUCH DAMAGE. */ -public class VersionConvertor_14_40 { +public class VersionConvertor_14_40 extends VersionConvertor_Base { static public List CANONICAL_URLS = new ArrayList(); static { diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_14_50.java index 1e5124abb..53d55f84e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_14_50.java @@ -43,7 +43,7 @@ import java.util.stream.Collectors; POSSIBILITY OF SUCH DAMAGE. */ -public class VersionConvertor_14_50 { +public class VersionConvertor_14_50 extends VersionConvertor_Base { static public List CANONICAL_URLS = new ArrayList(); static { @@ -299,6 +299,13 @@ public class VersionConvertor_14_50 { return tgt; } + public static org.hl7.fhir.r5.model.MarkdownType convertStringToMarkdown(org.hl7.fhir.dstu2016may.model.StringType src) throws FHIRException { + org.hl7.fhir.r5.model.MarkdownType tgt = src.hasValue() ? new org.hl7.fhir.r5.model.MarkdownType(src.getValue()) : new org.hl7.fhir.r5.model.MarkdownType(); + copyElement(src, tgt); + return tgt; + } + + public static org.hl7.fhir.r5.model.TimeType convertTime(org.hl7.fhir.dstu2016may.model.TimeType src) throws FHIRException { org.hl7.fhir.r5.model.TimeType tgt = new org.hl7.fhir.r5.model.TimeType(); if (src.hasValue()) tgt.setValue(src.getValue()); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_30_40.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_30_40.java index 1e2e01df8..7b4d7be20 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_30_40.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_30_40.java @@ -42,7 +42,7 @@ import java.util.stream.Collectors; POSSIBILITY OF SUCH DAMAGE. */ -public class VersionConvertor_30_40 { +public class VersionConvertor_30_40 extends VersionConvertor_Base { static final public String EXT_SRC_TYPE = "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"; static public List CANONICAL_URLS = new ArrayList<>(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_30_50.java index a2462232f..7528733a8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_30_50.java @@ -39,7 +39,7 @@ import java.util.stream.Collectors; POSSIBILITY OF SUCH DAMAGE. */ -public class VersionConvertor_30_50 { +public class VersionConvertor_30_50 extends VersionConvertor_Base { static final public String EXT_SRC_TYPE = "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"; static public List CANONICAL_URLS = new ArrayList<>(); @@ -4805,8 +4805,8 @@ public class VersionConvertor_30_50 { return Consent30_50.convertConsent((org.hl7.fhir.r5.model.Consent) src); if (src instanceof org.hl7.fhir.r5.model.DetectedIssue) return DetectedIssue30_50.convertDetectedIssue((org.hl7.fhir.r5.model.DetectedIssue) src); - if (src instanceof org.hl7.fhir.r5.model.DeviceUseStatement) - return DeviceUseStatement30_50.convertDeviceUseStatement((org.hl7.fhir.r5.model.DeviceUseStatement) src); + if (src instanceof org.hl7.fhir.r5.model.DeviceUsage) + return DeviceUseStatement30_50.convertDeviceUseStatement((org.hl7.fhir.r5.model.DeviceUsage) src); if (src instanceof org.hl7.fhir.r5.model.DiagnosticReport) return DiagnosticReport30_50.convertDiagnosticReport((org.hl7.fhir.r5.model.DiagnosticReport) src); if (src instanceof org.hl7.fhir.r5.model.DocumentReference) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_40_50.java index 3bc4ded03..15749d1e7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_40_50.java @@ -34,7 +34,7 @@ import java.util.stream.Collectors; POSSIBILITY OF SUCH DAMAGE. */ -public class VersionConvertor_40_50 { +public class VersionConvertor_40_50 extends VersionConvertor_Base { static public boolean isExemptExtension(String url, String[] extensionsToIgnore) { boolean ok = false; for (String s : extensionsToIgnore) if (s.equals(url)) ok = true; @@ -3478,8 +3478,8 @@ public class VersionConvertor_40_50 { return Coverage40_50.convertCoverage((org.hl7.fhir.r4.model.Coverage) src); if (src instanceof org.hl7.fhir.r4.model.CoverageEligibilityRequest) return CoverageEligibilityRequest40_50.convertCoverageEligibilityRequest((org.hl7.fhir.r4.model.CoverageEligibilityRequest) src); - if (src instanceof org.hl7.fhir.r4.model.CoverageEligibilityResponse) - return CoverageEligibilityResponse40_50.convertCoverageEligibilityResponse((org.hl7.fhir.r4.model.CoverageEligibilityResponse) src); +// if (src instanceof org.hl7.fhir.r4.model.CoverageEligibilityResponse) +// return CoverageEligibilityResponse40_50.convertCoverageEligibilityResponse((org.hl7.fhir.r4.model.CoverageEligibilityResponse) src); if (src instanceof org.hl7.fhir.r4.model.DetectedIssue) return DetectedIssue40_50.convertDetectedIssue((org.hl7.fhir.r4.model.DetectedIssue) src); if (src instanceof org.hl7.fhir.r4.model.Device) @@ -3504,8 +3504,8 @@ public class VersionConvertor_40_50 { return Endpoint40_50.convertEndpoint((org.hl7.fhir.r4.model.Endpoint) src); if (src instanceof org.hl7.fhir.r4.model.EnrollmentRequest) return EnrollmentRequest40_50.convertEnrollmentRequest((org.hl7.fhir.r4.model.EnrollmentRequest) src); - if (src instanceof org.hl7.fhir.r4.model.EnrollmentResponse) - return EnrollmentResponse40_50.convertEnrollmentResponse((org.hl7.fhir.r4.model.EnrollmentResponse) src); +// if (src instanceof org.hl7.fhir.r4.model.EnrollmentResponse) +// return EnrollmentResponse40_50.convertEnrollmentResponse((org.hl7.fhir.r4.model.EnrollmentResponse) src); if (src instanceof org.hl7.fhir.r4.model.EpisodeOfCare) return EpisodeOfCare40_50.convertEpisodeOfCare((org.hl7.fhir.r4.model.EpisodeOfCare) src); if (src instanceof org.hl7.fhir.r4.model.EventDefinition) @@ -3564,8 +3564,8 @@ public class VersionConvertor_40_50 { return MedicationRequest40_50.convertMedicationRequest((org.hl7.fhir.r4.model.MedicationRequest) src); if (src instanceof org.hl7.fhir.r4.model.MedicationStatement) return MedicationStatement40_50.convertMedicationStatement((org.hl7.fhir.r4.model.MedicationStatement) src); - if (src instanceof org.hl7.fhir.r4.model.MedicinalProduct) - return MedicinalProductDefinition40_50.convertMedicinalProduct((org.hl7.fhir.r4.model.MedicinalProduct) src); +// if (src instanceof org.hl7.fhir.r4.model.MedicinalProduct) +// return MedicinalProductDefinition40_50.convertMedicinalProduct((org.hl7.fhir.r4.model.MedicinalProduct) src); if (src instanceof org.hl7.fhir.r4.model.MessageDefinition) return MessageDefinition40_50.convertMessageDefinition((org.hl7.fhir.r4.model.MessageDefinition) src); if (src instanceof org.hl7.fhir.r4.model.MessageHeader) @@ -3592,8 +3592,8 @@ public class VersionConvertor_40_50 { return Patient40_50.convertPatient((org.hl7.fhir.r4.model.Patient) src); if (src instanceof org.hl7.fhir.r4.model.PaymentNotice) return PaymentNotice40_50.convertPaymentNotice((org.hl7.fhir.r4.model.PaymentNotice) src); - if (src instanceof org.hl7.fhir.r4.model.PaymentReconciliation) - return PaymentReconciliation40_50.convertPaymentReconciliation((org.hl7.fhir.r4.model.PaymentReconciliation) src); +// if (src instanceof org.hl7.fhir.r4.model.PaymentReconciliation) +// return PaymentReconciliation40_50.convertPaymentReconciliation((org.hl7.fhir.r4.model.PaymentReconciliation) src); if (src instanceof org.hl7.fhir.r4.model.Person) return Person40_50.convertPerson((org.hl7.fhir.r4.model.Person) src); if (src instanceof org.hl7.fhir.r4.model.PlanDefinition) @@ -3612,12 +3612,12 @@ public class VersionConvertor_40_50 { return QuestionnaireResponse40_50.convertQuestionnaireResponse((org.hl7.fhir.r4.model.QuestionnaireResponse) src); if (src instanceof org.hl7.fhir.r4.model.RelatedPerson) return RelatedPerson40_50.convertRelatedPerson((org.hl7.fhir.r4.model.RelatedPerson) src); - if (src instanceof org.hl7.fhir.r4.model.RequestGroup) - return RequestGroup40_50.convertRequestGroup((org.hl7.fhir.r4.model.RequestGroup) src); - if (src instanceof org.hl7.fhir.r4.model.ResearchStudy) - return ResearchStudy40_50.convertResearchStudy((org.hl7.fhir.r4.model.ResearchStudy) src); - if (src instanceof org.hl7.fhir.r4.model.ResearchSubject) - return ResearchSubject40_50.convertResearchSubject((org.hl7.fhir.r4.model.ResearchSubject) src); +// if (src instanceof org.hl7.fhir.r4.model.RequestGroup) +// return RequestGroup40_50.convertRequestGroup((org.hl7.fhir.r4.model.RequestGroup) src); +// if (src instanceof org.hl7.fhir.r4.model.ResearchStudy) +// return ResearchStudy40_50.convertResearchStudy((org.hl7.fhir.r4.model.ResearchStudy) src); +// if (src instanceof org.hl7.fhir.r4.model.ResearchSubject) +// return ResearchSubject40_50.convertResearchSubject((org.hl7.fhir.r4.model.ResearchSubject) src); if (src instanceof org.hl7.fhir.r4.model.RiskAssessment) return RiskAssessment40_50.convertRiskAssessment((org.hl7.fhir.r4.model.RiskAssessment) src); if (src instanceof org.hl7.fhir.r4.model.Schedule) @@ -3729,8 +3729,8 @@ public class VersionConvertor_40_50 { return Coverage40_50.convertCoverage((org.hl7.fhir.r5.model.Coverage) src); if (src instanceof org.hl7.fhir.r5.model.CoverageEligibilityRequest) return CoverageEligibilityRequest40_50.convertCoverageEligibilityRequest((org.hl7.fhir.r5.model.CoverageEligibilityRequest) src); - if (src instanceof org.hl7.fhir.r5.model.CoverageEligibilityResponse) - return CoverageEligibilityResponse40_50.convertCoverageEligibilityResponse((org.hl7.fhir.r5.model.CoverageEligibilityResponse) src); +// if (src instanceof org.hl7.fhir.r5.model.CoverageEligibilityResponse) +// return CoverageEligibilityResponse40_50.convertCoverageEligibilityResponse((org.hl7.fhir.r5.model.CoverageEligibilityResponse) src); if (src instanceof org.hl7.fhir.r5.model.DetectedIssue) return DetectedIssue40_50.convertDetectedIssue((org.hl7.fhir.r5.model.DetectedIssue) src); if (src instanceof org.hl7.fhir.r5.model.Device) @@ -3741,8 +3741,8 @@ public class VersionConvertor_40_50 { return DeviceMetric40_50.convertDeviceMetric((org.hl7.fhir.r5.model.DeviceMetric) src); if (src instanceof org.hl7.fhir.r5.model.DeviceRequest) return DeviceRequest40_50.convertDeviceRequest((org.hl7.fhir.r5.model.DeviceRequest) src); - if (src instanceof org.hl7.fhir.r5.model.DeviceUseStatement) - return DeviceUseStatement40_50.convertDeviceUseStatement((org.hl7.fhir.r5.model.DeviceUseStatement) src); + if (src instanceof org.hl7.fhir.r5.model.DeviceUsage) + return DeviceUseStatement40_50.convertDeviceUseStatement((org.hl7.fhir.r5.model.DeviceUsage) src); if (src instanceof org.hl7.fhir.r5.model.DiagnosticReport) return DiagnosticReport40_50.convertDiagnosticReport((org.hl7.fhir.r5.model.DiagnosticReport) src); if (src instanceof org.hl7.fhir.r5.model.DocumentManifest) @@ -3755,8 +3755,8 @@ public class VersionConvertor_40_50 { return Endpoint40_50.convertEndpoint((org.hl7.fhir.r5.model.Endpoint) src); if (src instanceof org.hl7.fhir.r5.model.EnrollmentRequest) return EnrollmentRequest40_50.convertEnrollmentRequest((org.hl7.fhir.r5.model.EnrollmentRequest) src); - if (src instanceof org.hl7.fhir.r5.model.EnrollmentResponse) - return EnrollmentResponse40_50.convertEnrollmentResponse((org.hl7.fhir.r5.model.EnrollmentResponse) src); +// if (src instanceof org.hl7.fhir.r5.model.EnrollmentResponse) +// return EnrollmentResponse40_50.convertEnrollmentResponse((org.hl7.fhir.r5.model.EnrollmentResponse) src); if (src instanceof org.hl7.fhir.r5.model.EpisodeOfCare) return EpisodeOfCare40_50.convertEpisodeOfCare((org.hl7.fhir.r5.model.EpisodeOfCare) src); if (src instanceof org.hl7.fhir.r5.model.EventDefinition) @@ -3816,8 +3816,8 @@ public class VersionConvertor_40_50 { return MedicationRequest40_50.convertMedicationRequest((org.hl7.fhir.r5.model.MedicationRequest) src); if (src instanceof org.hl7.fhir.r5.model.MedicationUsage) return MedicationStatement40_50.convertMedicationStatement((org.hl7.fhir.r5.model.MedicationUsage) src); - if (src instanceof org.hl7.fhir.r5.model.MedicinalProductDefinition) - return MedicinalProductDefinition40_50.convertMedicinalProductDefinition((org.hl7.fhir.r5.model.MedicinalProductDefinition) src); +// if (src instanceof org.hl7.fhir.r5.model.MedicinalProductDefinition) +// return MedicinalProductDefinition40_50.convertMedicinalProductDefinition((org.hl7.fhir.r5.model.MedicinalProductDefinition) src); if (src instanceof org.hl7.fhir.r5.model.MessageDefinition) return MessageDefinition40_50.convertMessageDefinition((org.hl7.fhir.r5.model.MessageDefinition) src); if (src instanceof org.hl7.fhir.r5.model.MessageHeader) @@ -3844,8 +3844,8 @@ public class VersionConvertor_40_50 { return Patient40_50.convertPatient((org.hl7.fhir.r5.model.Patient) src); if (src instanceof org.hl7.fhir.r5.model.PaymentNotice) return PaymentNotice40_50.convertPaymentNotice((org.hl7.fhir.r5.model.PaymentNotice) src); - if (src instanceof org.hl7.fhir.r5.model.PaymentReconciliation) - return PaymentReconciliation40_50.convertPaymentReconciliation((org.hl7.fhir.r5.model.PaymentReconciliation) src); +// if (src instanceof org.hl7.fhir.r5.model.PaymentReconciliation) +// return PaymentReconciliation40_50.convertPaymentReconciliation((org.hl7.fhir.r5.model.PaymentReconciliation) src); if (src instanceof org.hl7.fhir.r5.model.Person) return Person40_50.convertPerson((org.hl7.fhir.r5.model.Person) src); if (src instanceof org.hl7.fhir.r5.model.PlanDefinition) @@ -3864,12 +3864,12 @@ public class VersionConvertor_40_50 { return QuestionnaireResponse40_50.convertQuestionnaireResponse((org.hl7.fhir.r5.model.QuestionnaireResponse) src); if (src instanceof org.hl7.fhir.r5.model.RelatedPerson) return RelatedPerson40_50.convertRelatedPerson((org.hl7.fhir.r5.model.RelatedPerson) src); - if (src instanceof org.hl7.fhir.r5.model.RequestGroup) - return RequestGroup40_50.convertRequestGroup((org.hl7.fhir.r5.model.RequestGroup) src); - if (src instanceof org.hl7.fhir.r5.model.ResearchStudy) - return ResearchStudy40_50.convertResearchStudy((org.hl7.fhir.r5.model.ResearchStudy) src); - if (src instanceof org.hl7.fhir.r5.model.ResearchSubject) - return ResearchSubject40_50.convertResearchSubject((org.hl7.fhir.r5.model.ResearchSubject) src); +// if (src instanceof org.hl7.fhir.r5.model.RequestGroup) +// return RequestGroup40_50.convertRequestGroup((org.hl7.fhir.r5.model.RequestGroup) src); +// if (src instanceof org.hl7.fhir.r5.model.ResearchStudy) +// return ResearchStudy40_50.convertResearchStudy((org.hl7.fhir.r5.model.ResearchStudy) src); +// if (src instanceof org.hl7.fhir.r5.model.ResearchSubject) +// return ResearchSubject40_50.convertResearchSubject((org.hl7.fhir.r5.model.ResearchSubject) src); if (src instanceof org.hl7.fhir.r5.model.RiskAssessment) return RiskAssessment40_50.convertRiskAssessment((org.hl7.fhir.r5.model.RiskAssessment) src); if (src instanceof org.hl7.fhir.r5.model.Schedule) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_Base.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_Base.java new file mode 100644 index 000000000..34298c5f6 --- /dev/null +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/VersionConvertor_Base.java @@ -0,0 +1,13 @@ +package org.hl7.fhir.convertors; + +public class VersionConvertor_Base { + + public static org.hl7.fhir.r5.model.CodeableConcept convertAppointmentPriorityToR5(int priority) { + return null; + } + + public static int convertAppointmentPriorityFromR5(org.hl7.fhir.r5.model.CodeableConcept priority) { + return 0; + } + +} diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/Appointment10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/Appointment10_50.java index d36e842a5..96266716a 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/Appointment10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/Appointment10_50.java @@ -1,9 +1,12 @@ package org.hl7.fhir.convertors.conv10_50; import org.hl7.fhir.convertors.VersionConvertor_10_50; +import org.hl7.fhir.convertors.VersionConvertor_Base; +import org.hl7.fhir.dstu2.model.UnsignedIntType; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.CodeableConcept; -public class Appointment10_50 { +public class Appointment10_50 extends VersionConvertor_Base { public static org.hl7.fhir.dstu2.model.Appointment convertAppointment(org.hl7.fhir.r5.model.Appointment src) throws FHIRException { if (src == null || src.isEmpty()) @@ -14,8 +17,8 @@ public class Appointment10_50 { if (src.hasStatus()) tgt.setStatusElement(convertAppointmentStatus(src.getStatusElement())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getServiceType()) tgt.setType(VersionConvertor_10_50.convertCodeableConcept(t)); - if (src.hasPriorityElement()) - tgt.setPriorityElement(VersionConvertor_10_50.convertUnsignedInt(src.getPriorityElement())); + if (src.hasPriority()) + tgt.setPriorityElement(convertAppointmentPriority(src.getPriority())); if (src.hasDescriptionElement()) tgt.setDescriptionElement(VersionConvertor_10_50.convertString(src.getDescriptionElement())); if (src.hasStartElement()) @@ -31,6 +34,18 @@ public class Appointment10_50 { return tgt; } + private static UnsignedIntType convertAppointmentPriority(CodeableConcept src) { + UnsignedIntType tgt = new UnsignedIntType(convertAppointmentPriorityFromR5(src)); + VersionConvertor_10_50.copyElement(src, tgt); + return tgt; + } + + private static CodeableConcept convertAppointmentPriority(UnsignedIntType src) { + CodeableConcept tgt = src.hasValue() ? convertAppointmentPriorityToR5(src.getValue()) : new CodeableConcept(); + VersionConvertor_10_50.copyElement(src, tgt); + return tgt; + } + public static org.hl7.fhir.r5.model.Appointment convertAppointment(org.hl7.fhir.dstu2.model.Appointment src) throws FHIRException { if (src == null || src.isEmpty()) return null; @@ -42,7 +57,7 @@ public class Appointment10_50 { if (src.hasType()) tgt.addServiceType(VersionConvertor_10_50.convertCodeableConcept(src.getType())); if (src.hasPriorityElement()) - tgt.setPriorityElement(VersionConvertor_10_50.convertUnsignedInt(src.getPriorityElement())); + tgt.setPriority(convertAppointmentPriority(src.getPriorityElement())); if (src.hasDescriptionElement()) tgt.setDescriptionElement(VersionConvertor_10_50.convertString(src.getDescriptionElement())); if (src.hasStartElement()) @@ -58,6 +73,7 @@ public class Appointment10_50 { return tgt; } + public static org.hl7.fhir.dstu2.model.Appointment.AppointmentParticipantComponent convertAppointmentParticipantComponent(org.hl7.fhir.r5.model.Appointment.AppointmentParticipantComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/CarePlan10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/CarePlan10_50.java index 149cae38f..14989fd16 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/CarePlan10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/CarePlan10_50.java @@ -70,10 +70,10 @@ public class CarePlan10_50 { org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityComponent(); VersionConvertor_10_50.copyElement(src, tgt); for (org.hl7.fhir.r5.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_50.convertAnnotation(t)); - if (src.hasReference()) - tgt.setReference(VersionConvertor_10_50.convertReference(src.getReference())); - if (src.hasDetail()) - tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail())); + if (src.hasPlannedActivityReference()) + tgt.setReference(VersionConvertor_10_50.convertReference(src.getPlannedActivityReference())); + if (src.hasPlannedActivityDetail()) + tgt.setDetail(convertCarePlanActivityDetailComponent(src.getPlannedActivityDetail())); return tgt; } @@ -84,16 +84,16 @@ public class CarePlan10_50 { VersionConvertor_10_50.copyElement(src, tgt); for (org.hl7.fhir.dstu2.model.Annotation t : src.getProgress()) tgt.addProgress(VersionConvertor_10_50.convertAnnotation(t)); if (src.hasReference()) - tgt.setReference(VersionConvertor_10_50.convertReference(src.getReference())); + tgt.setPlannedActivityReference(VersionConvertor_10_50.convertReference(src.getReference())); if (src.hasDetail()) - tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail())); + tgt.setPlannedActivityDetail(convertCarePlanActivityDetailComponent(src.getDetail())); return tgt; } - public static org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException { + public static org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent(); + org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent(); VersionConvertor_10_50.copyElement(src, tgt); if (src.hasCode()) tgt.setCode(VersionConvertor_10_50.convertCodeableConcept(src.getCode())); @@ -120,7 +120,7 @@ public class CarePlan10_50 { return tgt; } - public static org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException { + public static org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu2.model.CarePlan.CarePlanActivityDetailComponent(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/DeviceUseStatement10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/DeviceUseStatement10_50.java index f144a1924..c0a95be9c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/DeviceUseStatement10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/DeviceUseStatement10_50.java @@ -7,10 +7,10 @@ import org.hl7.fhir.r5.model.CodeableReference; public class DeviceUseStatement10_50 { - public static org.hl7.fhir.r5.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.dstu2.model.DeviceUseStatement src) throws FHIRException { + public static org.hl7.fhir.r5.model.DeviceUsage convertDeviceUseStatement(org.hl7.fhir.dstu2.model.DeviceUseStatement src) throws FHIRException { if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.DeviceUseStatement tgt = new org.hl7.fhir.r5.model.DeviceUseStatement(); + org.hl7.fhir.r5.model.DeviceUsage tgt = new org.hl7.fhir.r5.model.DeviceUsage(); VersionConvertor_10_50.copyDomainResource(src, tgt); if (src.hasBodySiteCodeableConcept()) tgt.getBodySite().setConcept(VersionConvertor_10_50.convertCodeableConcept(src.getBodySiteCodeableConcept())); @@ -28,7 +28,7 @@ public class DeviceUseStatement10_50 { return tgt; } - public static org.hl7.fhir.dstu2.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.r5.model.DeviceUseStatement src) throws FHIRException { + public static org.hl7.fhir.dstu2.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.r5.model.DeviceUsage src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.DeviceUseStatement tgt = new org.hl7.fhir.dstu2.model.DeviceUseStatement(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/MedicationStatement10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/MedicationStatement10_50.java index 6ef18e55c..eeda7650c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/MedicationStatement10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/MedicationStatement10_50.java @@ -122,7 +122,7 @@ public class MedicationStatement10_50 { VersionConvertor_10_50.copyElement(src, tgt); switch(src.getValue()) { case ACTIVE: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ACTIVE); + tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED); break; case COMPLETED: tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED); @@ -131,7 +131,7 @@ public class MedicationStatement10_50 { tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ENTEREDINERROR); break; case INTENDED: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.INTENDED); + tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN); break; default: tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.NULL); @@ -146,16 +146,16 @@ public class MedicationStatement10_50 { org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatusEnumFactory()); VersionConvertor_10_50.copyElement(src, tgt); switch(src.getValue()) { - case ACTIVE: - tgt.setValue(org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatus.ACTIVE); - break; +// case ACTIVE: +// tgt.setValue(org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatus.ACTIVE); +// break; case COMPLETED: tgt.setValue(org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatus.COMPLETED); break; case ENTEREDINERROR: tgt.setValue(org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatus.ENTEREDINERROR); break; - case INTENDED: + case UNKNOWN: tgt.setValue(org.hl7.fhir.dstu2.model.MedicationStatement.MedicationStatementStatus.INTENDED); break; default: diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/Questionnaire10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/Questionnaire10_50.java index f5f4b51be..9a28dff49 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/Questionnaire10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/Questionnaire10_50.java @@ -1,9 +1,11 @@ package org.hl7.fhir.convertors.conv10_50; import org.hl7.fhir.convertors.VersionConvertor_10_50; +import org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeType; import org.hl7.fhir.r5.model.ContactDetail; +import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireAnswerConstraint; import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemAnswerOptionComponent; public class Questionnaire10_50 { @@ -98,7 +100,7 @@ public class Questionnaire10_50 { tgt.setLinkIdElement(VersionConvertor_10_50.convertString(src.getLinkIdElement())); for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(VersionConvertor_10_50.convertCoding(t)); if (src.hasTextElement()) - tgt.setTextElement(VersionConvertor_10_50.convertString(src.getTextElement())); + tgt.setTextElement(VersionConvertor_10_50.convertStringToMarkdown(src.getTextElement())); tgt.setType(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.GROUP); if (src.hasRequiredElement()) tgt.setRequiredElement(VersionConvertor_10_50.convertBoolean(src.getRequiredElement())); @@ -109,7 +111,7 @@ public class Questionnaire10_50 { return tgt; } - static public org.hl7.fhir.dstu2.model.Enumeration convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.dstu2.model.Enumeration convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration src, QuestionnaireAnswerConstraint constraint) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2.model.Enumeration tgt = new org.hl7.fhir.dstu2.model.Enumeration<>(new org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormatEnumFactory()); @@ -142,11 +144,11 @@ public class Questionnaire10_50 { case URL: tgt.setValue(org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat.URL); break; - case CHOICE: - tgt.setValue(org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat.CHOICE); - break; - case OPENCHOICE: - tgt.setValue(org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat.OPENCHOICE); + case CODING: + if (constraint == QuestionnaireAnswerConstraint.OPTIONSORSTRING) + tgt.setValue(org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat.OPENCHOICE); + else + tgt.setValue(org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat.CHOICE); break; case ATTACHMENT: tgt.setValue(org.hl7.fhir.dstu2.model.Questionnaire.AnswerFormat.ATTACHMENT); @@ -175,7 +177,7 @@ public class Questionnaire10_50 { if (src.hasTextElement()) tgt.setTextElement(VersionConvertor_10_50.convertString(src.getTextElement())); if (src.hasType()) - tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement())); + tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement(), src.getAnswerConstraint())); if (src.hasRequiredElement()) tgt.setRequiredElement(VersionConvertor_10_50.convertBoolean(src.getRequiredElement())); if (src.hasRepeatsElement()) @@ -201,9 +203,15 @@ public class Questionnaire10_50 { tgt.setLinkIdElement(VersionConvertor_10_50.convertString(src.getLinkIdElement())); for (org.hl7.fhir.dstu2.model.Coding t : src.getConcept()) tgt.addCode(VersionConvertor_10_50.convertCoding(t)); if (src.hasTextElement()) - tgt.setTextElement(VersionConvertor_10_50.convertString(src.getTextElement())); - if (src.hasType()) + tgt.setTextElement(VersionConvertor_10_50.convertStringToMarkdown(src.getTextElement())); + if (src.hasType()) { tgt.setTypeElement(convertQuestionnaireQuestionType(src.getTypeElement())); + if (src.getType() == AnswerFormat.CHOICE) { + tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSONLY); + } else if (src.getType() == AnswerFormat.OPENCHOICE) { + tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSORSTRING); + } + } if (src.hasRequiredElement()) tgt.setRequiredElement(VersionConvertor_10_50.convertBoolean(src.getRequiredElement())); if (src.hasRepeatsElement()) @@ -252,10 +260,10 @@ public class Questionnaire10_50 { tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.URL); break; case CHOICE: - tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CHOICE); + tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING); break; case OPENCHOICE: - tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.OPENCHOICE); + tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING); break; case ATTACHMENT: tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.ATTACHMENT); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/Substance10_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/Substance10_50.java index f5c708de7..466e4dc13 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/Substance10_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv10_50/Substance10_50.java @@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv10_50; import org.hl7.fhir.convertors.VersionConvertor_10_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.Identifier; public class Substance10_50 { @@ -13,10 +14,10 @@ public class Substance10_50 { for (org.hl7.fhir.dstu2.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_50.convertIdentifier(t)); for (org.hl7.fhir.dstu2.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_50.convertCodeableConcept(t)); if (src.hasCode()) - tgt.setCode(VersionConvertor_10_50.convertCodeableConcept(src.getCode())); + tgt.getCode().setConcept(VersionConvertor_10_50.convertCodeableConcept(src.getCode())); if (src.hasDescriptionElement()) tgt.setDescriptionElement(VersionConvertor_10_50.convertString(src.getDescriptionElement())); - for (org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t)); + for (org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent t : src.getInstance()) convertSubstanceInstanceComponent(t, tgt); for (org.hl7.fhir.dstu2.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t)); return tgt; } @@ -29,10 +30,12 @@ public class Substance10_50 { for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_10_50.convertIdentifier(t)); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_10_50.convertCodeableConcept(t)); if (src.hasCode()) - tgt.setCode(VersionConvertor_10_50.convertCodeableConcept(src.getCode())); + tgt.setCode(VersionConvertor_10_50.convertCodeableConcept(src.getCode().getConcept())); if (src.hasDescriptionElement()) tgt.setDescriptionElement(VersionConvertor_10_50.convertString(src.getDescriptionElement())); - for (org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t)); + if (src.getInstance()) { + tgt.addInstance(convertSubstanceInstanceComponent(src)); + } for (org.hl7.fhir.r5.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t)); return tgt; } @@ -59,31 +62,26 @@ public class Substance10_50 { return tgt; } - public static org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; + public static org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.r5.model.Substance src) throws FHIRException { org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent(); - VersionConvertor_10_50.copyElement(src, tgt); - if (src.hasIdentifier()) - tgt.setIdentifier(VersionConvertor_10_50.convertIdentifier(src.getIdentifier())); - if (src.hasExpiryElement()) - tgt.setExpiryElement(VersionConvertor_10_50.convertDateTime(src.getExpiryElement())); - if (src.hasQuantity()) - tgt.setQuantity(VersionConvertor_10_50.convertSimpleQuantity(src.getQuantity())); - return tgt; - } + for (Identifier t : src.getIdentifier()) { + tgt.setIdentifier(VersionConvertor_10_50.convertIdentifier(t)); + } + if (src.hasExpiry()) + tgt.setExpiryElement(VersionConvertor_10_50.convertDateTime(src.getExpiryElement())); + if (src.hasQuantity()) + tgt.setQuantity(VersionConvertor_10_50.convertSimpleQuantity(src.getQuantity())); + return tgt; + } - public static org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent(); - VersionConvertor_10_50.copyElement(src, tgt); + + public static void convertSubstanceInstanceComponent(org.hl7.fhir.dstu2.model.Substance.SubstanceInstanceComponent src, org.hl7.fhir.r5.model.Substance tgt) throws FHIRException { + tgt.setInstance(true); if (src.hasIdentifier()) - tgt.setIdentifier(VersionConvertor_10_50.convertIdentifier(src.getIdentifier())); + tgt.addIdentifier(VersionConvertor_10_50.convertIdentifier(src.getIdentifier())); if (src.hasExpiryElement()) tgt.setExpiryElement(VersionConvertor_10_50.convertDateTime(src.getExpiryElement())); if (src.hasQuantity()) tgt.setQuantity(VersionConvertor_10_50.convertSimpleQuantity(src.getQuantity())); - return tgt; } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/Questionnaire14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/Questionnaire14_50.java index 4238da85a..5960af264 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/Questionnaire14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/Questionnaire14_50.java @@ -1,9 +1,11 @@ package org.hl7.fhir.convertors.conv14_50; import org.hl7.fhir.convertors.VersionConvertor_14_50; +import org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.CodeType; import org.hl7.fhir.r5.model.ContactDetail; +import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireAnswerConstraint; import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemOperator; import org.hl7.fhir.r5.model.UsageContext; @@ -87,7 +89,7 @@ public class Questionnaire14_50 { if (src.hasText()) tgt.setTextElement(VersionConvertor_14_50.convertString(src.getTextElement())); if (src.hasType()) - tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement())); + tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement(), src.getAnswerConstraint())); for (org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t)); if (src.hasRequired()) tgt.setRequiredElement(VersionConvertor_14_50.convertBoolean(src.getRequiredElement())); @@ -117,9 +119,15 @@ public class Questionnaire14_50 { if (src.hasPrefix()) tgt.setPrefixElement(VersionConvertor_14_50.convertString(src.getPrefixElement())); if (src.hasText()) - tgt.setTextElement(VersionConvertor_14_50.convertString(src.getTextElement())); - if (src.hasType()) + tgt.setTextElement(VersionConvertor_14_50.convertStringToMarkdown(src.getTextElement())); + if (src.hasType()) { tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement())); + if (src.getType() == QuestionnaireItemType.CHOICE) { + tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSONLY); + } else if (src.getType() == QuestionnaireItemType.OPENCHOICE) { + tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSORSTRING); + } + } for (org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t)); if (src.hasRequired()) tgt.setRequiredElement(VersionConvertor_14_50.convertBoolean(src.getRequiredElement())); @@ -235,10 +243,10 @@ public class Questionnaire14_50 { tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.URL); break; case CHOICE: - tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CHOICE); + tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING); break; case OPENCHOICE: - tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.OPENCHOICE); + tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING); break; case ATTACHMENT: tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.ATTACHMENT); @@ -256,7 +264,7 @@ public class Questionnaire14_50 { return tgt; } - static public org.hl7.fhir.dstu2016may.model.Enumeration convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.dstu2016may.model.Enumeration convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration src, QuestionnaireAnswerConstraint constraint) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Enumeration tgt = new org.hl7.fhir.dstu2016may.model.Enumeration<>(new org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemTypeEnumFactory()); @@ -295,12 +303,12 @@ public class Questionnaire14_50 { case URL: tgt.setValue(org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.URL); break; - case CHOICE: - tgt.setValue(org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.CHOICE); - break; - case OPENCHOICE: + case CODING: + if (constraint == QuestionnaireAnswerConstraint.OPTIONSORSTRING) tgt.setValue(org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.OPENCHOICE); - break; + else + tgt.setValue(org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.CHOICE); + break; case ATTACHMENT: tgt.setValue(org.hl7.fhir.dstu2016may.model.Questionnaire.QuestionnaireItemType.ATTACHMENT); break; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/StructureMap14_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/StructureMap14_50.java index f2dee9f21..9360e154d 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/StructureMap14_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv14_50/StructureMap14_50.java @@ -106,44 +106,6 @@ public class StructureMap14_50 { return tgt; } - public static org.hl7.fhir.r5.model.Enumeration convertStructureMapContextType(org.hl7.fhir.dstu2016may.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.StructureMap.StructureMapContextTypeEnumFactory()); - VersionConvertor_14_50.copyElement(src, tgt); - switch(src.getValue()) { - case TYPE: - tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.TYPE); - break; - case VARIABLE: - tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.VARIABLE); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.dstu2016may.model.Enumeration convertStructureMapContextType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.dstu2016may.model.Enumeration tgt = new org.hl7.fhir.dstu2016may.model.Enumeration<>(new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextTypeEnumFactory()); - VersionConvertor_14_50.copyElement(src, tgt); - switch(src.getValue()) { - case TYPE: - tgt.setValue(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType.TYPE); - break; - case VARIABLE: - tgt.setValue(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType.VARIABLE); - break; - default: - tgt.setValue(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType.NULL); - break; - } - return tgt; - } - public static org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent convertStructureMapGroupComponent(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupComponent src) throws FHIRException { if (src == null || src.isEmpty()) return null; @@ -313,8 +275,7 @@ public class StructureMap14_50 { VersionConvertor_14_50.copyElement(src, tgt); if (src.hasContext()) tgt.setContextElement(VersionConvertor_14_50.convertId(src.getContextElement())); - if (src.hasContextType()) - tgt.setContextTypeElement(convertStructureMapContextType(src.getContextTypeElement())); + tgt.setContextType(org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType.VARIABLE); if (src.hasElement()) tgt.setElementElement(VersionConvertor_14_50.convertString(src.getElementElement())); if (src.hasVariable()) @@ -337,8 +298,8 @@ public class StructureMap14_50 { VersionConvertor_14_50.copyElement(src, tgt); if (src.hasContext()) tgt.setContextElement(VersionConvertor_14_50.convertId(src.getContextElement())); - if (src.hasContextType()) - tgt.setContextTypeElement(convertStructureMapContextType(src.getContextTypeElement())); + if (src.hasContextType() && src.getContextType() == org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapContextType.VARIABLE) + throw new Error("This conversion is not supported. Consult code maintainers"); // this should never happens - no one knows what the intent was here. if (src.hasElement()) tgt.setElementElement(VersionConvertor_14_50.convertString(src.getElementElement())); if (src.hasVariable()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/ActivityDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/ActivityDefinition30_50.java index 5d05a633a..8f953620c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/ActivityDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/ActivityDefinition30_50.java @@ -4,6 +4,7 @@ import org.hl7.fhir.convertors.VersionConvertor_30_50; import org.hl7.fhir.dstu3.model.ContactDetail; import org.hl7.fhir.dstu3.model.Contributor.ContributorType; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.CodeableReference; public class ActivityDefinition30_50 { @@ -66,7 +67,7 @@ public class ActivityDefinition30_50 { if (src.hasTiming()) tgt.setTiming(VersionConvertor_30_50.convertType(src.getTiming())); if (src.hasLocation()) - tgt.setLocation(VersionConvertor_30_50.convertReference(src.getLocation())); + tgt.setLocation(new CodeableReference(VersionConvertor_30_50.convertReference(src.getLocation()))); for (org.hl7.fhir.dstu3.model.ActivityDefinition.ActivityDefinitionParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertActivityDefinitionParticipantComponent(t)); if (src.hasProduct()) tgt.setProduct(VersionConvertor_30_50.convertType(src.getProduct())); @@ -152,8 +153,8 @@ public class ActivityDefinition30_50 { tgt.setCode(VersionConvertor_30_50.convertCodeableConcept(src.getCode())); if (src.hasTiming()) tgt.setTiming(VersionConvertor_30_50.convertType(src.getTiming())); - if (src.hasLocation()) - tgt.setLocation(VersionConvertor_30_50.convertReference(src.getLocation())); + if (src.getLocation().hasReference()) + tgt.setLocation(VersionConvertor_30_50.convertReference(src.getLocation().getReference())); for (org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertActivityDefinitionParticipantComponent(t)); if (src.hasProduct()) tgt.setProduct(VersionConvertor_30_50.convertType(src.getProduct())); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/AllergyIntolerance30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/AllergyIntolerance30_50.java index 412dcf124..2ff8491a2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/AllergyIntolerance30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/AllergyIntolerance30_50.java @@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_50; import org.hl7.fhir.convertors.VersionConvertor_30_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.CodeableReference; import java.util.stream.Collectors; @@ -207,7 +208,7 @@ public class AllergyIntolerance30_50 { VersionConvertor_30_50.copyElement(src, tgt); if (src.hasSubstance()) tgt.setSubstance(VersionConvertor_30_50.convertCodeableConcept(src.getSubstance())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getManifestation()) tgt.addManifestation(VersionConvertor_30_50.convertCodeableConcept(t)); + for (CodeableReference t : src.getManifestation()) if (t.hasConcept()) tgt.addManifestation(VersionConvertor_30_50.convertCodeableConcept(t.getConcept())); if (src.hasDescription()) tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement())); if (src.hasOnset()) @@ -227,7 +228,7 @@ public class AllergyIntolerance30_50 { VersionConvertor_30_50.copyElement(src, tgt); if (src.hasSubstance()) tgt.setSubstance(VersionConvertor_30_50.convertCodeableConcept(src.getSubstance())); - for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getManifestation()) tgt.addManifestation(VersionConvertor_30_50.convertCodeableConcept(t)); + for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getManifestation()) tgt.addManifestation(new CodeableReference(VersionConvertor_30_50.convertCodeableConcept(t))); if (src.hasDescription()) tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement())); if (src.hasOnset()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Appointment30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Appointment30_50.java index 28d708cc8..43dd6f869 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Appointment30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Appointment30_50.java @@ -1,10 +1,14 @@ package org.hl7.fhir.convertors.conv30_50; +import org.hl7.fhir.convertors.VersionConvertor_10_50; import org.hl7.fhir.convertors.VersionConvertor_30_50; +import org.hl7.fhir.convertors.VersionConvertor_Base; +import org.hl7.fhir.dstu3.model.UnsignedIntType; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.CodeableConcept; import org.hl7.fhir.r5.model.CodeableReference; -public class Appointment30_50 { +public class Appointment30_50 extends VersionConvertor_Base { public static org.hl7.fhir.dstu3.model.Appointment convertAppointment(org.hl7.fhir.r5.model.Appointment src) throws FHIRException { if (src == null) @@ -25,7 +29,7 @@ public class Appointment30_50 { for (CodeableReference t : src.getReason()) if (t.hasReference()) tgt.addIndication(VersionConvertor_30_50.convertReference(t.getReference())); if (src.hasPriority()) - tgt.setPriorityElement(VersionConvertor_30_50.convertUnsignedInt(src.getPriorityElement())); + tgt.setPriorityElement(convertAppointmentPriority(src.getPriority())); if (src.hasDescription()) tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement())); for (org.hl7.fhir.r5.model.Reference t : src.getSupportingInformation()) tgt.addSupportingInformation(VersionConvertor_30_50.convertReference(t)); @@ -46,6 +50,19 @@ public class Appointment30_50 { return tgt; } + + private static UnsignedIntType convertAppointmentPriority(CodeableConcept src) { + UnsignedIntType tgt = new UnsignedIntType(convertAppointmentPriorityFromR5(src)); + VersionConvertor_30_50.copyElement(src, tgt); + return tgt; + } + + private static CodeableConcept convertAppointmentPriority(UnsignedIntType src) { + CodeableConcept tgt = src.hasValue() ? convertAppointmentPriorityToR5(src.getValue()) : new CodeableConcept(); + VersionConvertor_30_50.copyElement(src, tgt); + 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; @@ -63,7 +80,7 @@ public class Appointment30_50 { for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_30_50.convertCodeableConceptToCodableReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getIndication()) tgt.addReason(VersionConvertor_30_50.convertReferenceToCodableReference(t)); if (src.hasPriority()) - tgt.setPriorityElement(VersionConvertor_30_50.convertUnsignedInt(src.getPriorityElement())); + tgt.setPriority(convertAppointmentPriority(src.getPriorityElement())); if (src.hasDescription()) tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement())); for (org.hl7.fhir.dstu3.model.Reference t : src.getSupportingInformation()) tgt.addSupportingInformation(VersionConvertor_30_50.convertReference(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/CarePlan30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/CarePlan30_50.java index 8300d84a1..6a4011902 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/CarePlan30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/CarePlan30_50.java @@ -161,24 +161,24 @@ public class CarePlan30_50 { return null; org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityComponent(); VersionConvertor_30_50.copyElement(src, tgt); - for (CodeableReference t : src.getOutcome()) { + for (CodeableReference t : src.getPerformedActivity()) { if (t.hasConcept()) tgt.addOutcomeCodeableConcept(VersionConvertor_30_50.convertCodeableConcept(t.getConcept())); } - for (CodeableReference t : src.getOutcome()) { + for (CodeableReference t : src.getPerformedActivity()) { if (t.hasReference()) tgt.addOutcomeReference(VersionConvertor_30_50.convertReference(t.getReference())); } for (org.hl7.fhir.r5.model.Annotation t : src.getProgress()) { tgt.addProgress(VersionConvertor_30_50.convertAnnotation(t)); } - if (src.hasReference()) { - if (src.hasReference()) - tgt.setReference(VersionConvertor_30_50.convertReference(src.getReference())); + if (src.hasPlannedActivityReference()) { + if (src.hasPlannedActivityReference()) + tgt.setReference(VersionConvertor_30_50.convertReference(src.getPlannedActivityReference())); } - if (src.hasDetail()) { - if (src.hasDetail()) - tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail())); + if (src.hasPlannedActivityDetail()) { + if (src.hasPlannedActivityDetail()) + tgt.setDetail(convertCarePlanActivityDetailComponent(src.getPlannedActivityDetail())); } return tgt; } @@ -189,26 +189,26 @@ public class CarePlan30_50 { org.hl7.fhir.r5.model.CarePlan.CarePlanActivityComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityComponent(); VersionConvertor_30_50.copyElement(src, tgt); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getOutcomeCodeableConcept()) { - tgt.addOutcome(VersionConvertor_30_50.convertCodeableConceptToCodableReference(t)); + tgt.addPerformedActivity(VersionConvertor_30_50.convertCodeableConceptToCodableReference(t)); } for (org.hl7.fhir.dstu3.model.Reference t : src.getOutcomeReference()) { - tgt.addOutcome(VersionConvertor_30_50.convertReferenceToCodableReference(t)); + tgt.addPerformedActivity(VersionConvertor_30_50.convertReferenceToCodableReference(t)); } for (org.hl7.fhir.dstu3.model.Annotation t : src.getProgress()) { tgt.addProgress(VersionConvertor_30_50.convertAnnotation(t)); } if (src.hasReference()) { if (src.hasReference()) - tgt.setReference(VersionConvertor_30_50.convertReference(src.getReference())); + tgt.setPlannedActivityReference(VersionConvertor_30_50.convertReference(src.getReference())); } if (src.hasDetail()) { if (src.hasDetail()) - tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail())); + tgt.setPlannedActivityDetail(convertCarePlanActivityDetailComponent(src.getDetail())); } return tgt; } - public static org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException { + public static org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent(); @@ -281,10 +281,10 @@ public class CarePlan30_50 { return tgt; } - public static org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException { + public static org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.dstu3.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException { if (src == null) return null; - org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent(); + org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent(); VersionConvertor_30_50.copyElement(src, tgt); if (src.hasCategory()) { org.hl7.fhir.r5.model.Extension t = new org.hl7.fhir.r5.model.Extension(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/ConceptMap30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/ConceptMap30_50.java index 1da574ca9..9dd6f2771 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/ConceptMap30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/ConceptMap30_50.java @@ -4,10 +4,12 @@ import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.VersionConvertor_30_50; import org.hl7.fhir.dstu3.model.Enumerations.ConceptMapEquivalence; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.CanonicalType; import org.hl7.fhir.r5.model.Enumeration; import org.hl7.fhir.r5.model.Enumerations; import org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship; import org.hl7.fhir.r5.utils.ToolingExtensions; +import org.hl7.fhir.utilities.CanonicalPair; public class ConceptMap30_50 { @@ -100,14 +102,11 @@ public class ConceptMap30_50 { return null; org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent(); VersionConvertor_30_50.copyElement(src, tgt); - if (src.hasSource()) - tgt.setSourceElement(VersionConvertor_30_50.convertUri(src.getSourceElement())); - if (src.hasSourceVersion()) - tgt.setSourceVersionElement(VersionConvertor_30_50.convertString(src.getSourceVersionElement())); - if (src.hasTarget()) - tgt.setTarget(src.getTarget()); - if (src.hasTargetVersion()) - tgt.setTargetVersion(src.getTargetVersion()); + if (src.hasSource() || src.hasSourceVersion()) + tgt.setSourceElement(convertUriAndVersionToCanonical(src.getSourceElement(), src.getSourceVersionElement())); + if (src.hasTarget() || src.hasTargetVersion()) + tgt.setSourceElement(convertUriAndVersionToCanonical(src.getTargetElement(), src.getTargetVersionElement())); + for (org.hl7.fhir.dstu3.model.ConceptMap.SourceElementComponent t : src.getElement()) tgt.addElement(convertSourceElementComponent(t)); if (src.hasUnmapped()) tgt.setUnmapped(convertConceptMapGroupUnmappedComponent(src.getUnmapped())); @@ -119,20 +118,38 @@ public class ConceptMap30_50 { return null; org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupComponent(); VersionConvertor_30_50.copyElement(src, tgt); - if (src.hasSource()) - tgt.setSourceElement(VersionConvertor_30_50.convertUri(src.getSourceElement())); - if (src.hasSourceVersion()) - tgt.setSourceVersionElement(VersionConvertor_30_50.convertString(src.getSourceVersionElement())); - if (src.hasTarget()) - tgt.setTarget(src.getTarget()); - if (src.hasTargetVersion()) - tgt.setTargetVersion(src.getTargetVersion()); + if (src.hasSource()) { + CanonicalPair cp = new CanonicalPair(src.getSource()); + tgt.setSource(cp.getUrl()); + tgt.setSourceVersion(cp.getVersion()); + } + if (src.hasTarget()) { + CanonicalPair cp = new CanonicalPair(src.getTarget()); + tgt.setTarget(cp.getUrl()); + tgt.setTargetVersion(cp.getVersion()); + } for (org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent t : src.getElement()) tgt.addElement(convertSourceElementComponent(t)); if (src.hasUnmapped()) tgt.setUnmapped(convertConceptMapGroupUnmappedComponent(src.getUnmapped())); return tgt; } + private static CanonicalType convertUriAndVersionToCanonical(org.hl7.fhir.dstu3.model.UriType srcUri, org.hl7.fhir.dstu3.model.StringType srcVersion) { + if (srcUri == null && srcVersion == null) + return null; + org.hl7.fhir.r5.model.CanonicalType tgt = new org.hl7.fhir.r5.model.CanonicalType(); + VersionConvertor_30_50.copyElement(srcUri == null ? srcVersion : srcUri, tgt); + if (srcUri.hasValue()) { + if (srcVersion.hasValue()) { + tgt.setValue(srcUri.getValue()+"|"+srcVersion.getValue()); + } else { + tgt.setValue(srcUri.getValue()); + } + } + return tgt; + } + + public static org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupUnmappedComponent convertConceptMapGroupUnmappedComponent(org.hl7.fhir.dstu3.model.ConceptMap.ConceptMapGroupUnmappedComponent src) throws FHIRException { if (src == null) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/DeviceUseStatement30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/DeviceUseStatement30_50.java index 9b6444401..0f74d359e 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/DeviceUseStatement30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/DeviceUseStatement30_50.java @@ -6,7 +6,7 @@ import org.hl7.fhir.r5.model.CodeableReference; public class DeviceUseStatement30_50 { - public static org.hl7.fhir.dstu3.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.r5.model.DeviceUseStatement src) throws FHIRException { + public static org.hl7.fhir.dstu3.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.r5.model.DeviceUsage src) throws FHIRException { if (src == null) return null; org.hl7.fhir.dstu3.model.DeviceUseStatement tgt = new org.hl7.fhir.dstu3.model.DeviceUseStatement(); @@ -32,10 +32,10 @@ public class DeviceUseStatement30_50 { return tgt; } - public static org.hl7.fhir.r5.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.dstu3.model.DeviceUseStatement src) throws FHIRException { + public static org.hl7.fhir.r5.model.DeviceUsage convertDeviceUseStatement(org.hl7.fhir.dstu3.model.DeviceUseStatement src) throws FHIRException { if (src == null) return null; - org.hl7.fhir.r5.model.DeviceUseStatement tgt = new org.hl7.fhir.r5.model.DeviceUseStatement(); + org.hl7.fhir.r5.model.DeviceUsage tgt = new org.hl7.fhir.r5.model.DeviceUsage(); VersionConvertor_30_50.copyDomainResource(src, tgt); for (org.hl7.fhir.dstu3.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(VersionConvertor_30_50.convertIdentifier(t)); if (src.hasStatus()) @@ -57,7 +57,7 @@ public class DeviceUseStatement30_50 { return tgt; } - static public org.hl7.fhir.dstu3.model.Enumeration convertDeviceUseStatementStatus(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.dstu3.model.Enumeration convertDeviceUseStatementStatus(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.DeviceUseStatement.DeviceUseStatementStatusEnumFactory()); @@ -88,32 +88,32 @@ public class DeviceUseStatement30_50 { return tgt; } - static public org.hl7.fhir.r5.model.Enumeration convertDeviceUseStatementStatus(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r5.model.Enumeration convertDeviceUseStatementStatus(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatusEnumFactory()); + org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatusEnumFactory()); VersionConvertor_30_50.copyElement(src, tgt); switch(src.getValue()) { case ACTIVE: - tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.ACTIVE); + tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.ACTIVE); break; case COMPLETED: - tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.COMPLETED); + tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.COMPLETED); break; case ENTEREDINERROR: - tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.ENTEREDINERROR); + tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.ENTEREDINERROR); break; case INTENDED: - tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.INTENDED); + tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.INTENDED); break; case STOPPED: - tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.STOPPED); + tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.STOPPED); break; case ONHOLD: - tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.ONHOLD); + tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.ONHOLD); break; default: - tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.NULL); + tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.NULL); break; } return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Goal30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Goal30_50.java index 3926aee3a..07d9de0c8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Goal30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Goal30_50.java @@ -29,8 +29,6 @@ public class Goal30_50 { tgt.setStatusDateElement(VersionConvertor_30_50.convertDate(src.getStatusDateElement())); if (src.hasStatusReason()) tgt.setStatusReasonElement(VersionConvertor_30_50.convertString(src.getStatusReasonElement())); - if (src.hasExpressedBy()) - tgt.setExpressedBy(VersionConvertor_30_50.convertReference(src.getExpressedBy())); for (org.hl7.fhir.r5.model.Reference t : src.getAddresses()) tgt.addAddresses(VersionConvertor_30_50.convertReference(t)); for (org.hl7.fhir.r5.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_30_50.convertAnnotation(t)); for (CodeableReference t : src.getOutcome()) if (t.hasConcept()) @@ -63,8 +61,6 @@ public class Goal30_50 { tgt.setStatusDateElement(VersionConvertor_30_50.convertDate(src.getStatusDateElement())); if (src.hasStatusReason()) tgt.setStatusReasonElement(VersionConvertor_30_50.convertString(src.getStatusReasonElement())); - if (src.hasExpressedBy()) - tgt.setExpressedBy(VersionConvertor_30_50.convertReference(src.getExpressedBy())); for (org.hl7.fhir.dstu3.model.Reference t : src.getAddresses()) tgt.addAddresses(VersionConvertor_30_50.convertReference(t)); for (org.hl7.fhir.dstu3.model.Annotation t : src.getNote()) tgt.addNote(VersionConvertor_30_50.convertAnnotation(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getOutcomeCode()) tgt.addOutcome(VersionConvertor_30_50.convertCodeableConceptToCodableReference(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Medication30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Medication30_50.java index 9f8c07d10..4cc577bea 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Medication30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Medication30_50.java @@ -15,7 +15,7 @@ public class Medication30_50 { if (src.hasStatus()) tgt.setStatusElement(convertMedicationStatus(src.getStatusElement())); if (src.hasManufacturer()) - tgt.setManufacturer(VersionConvertor_30_50.convertReference(src.getManufacturer())); + tgt.setSponsor(VersionConvertor_30_50.convertReference(src.getManufacturer())); if (src.hasForm()) tgt.setDoseForm(VersionConvertor_30_50.convertCodeableConcept(src.getForm())); for (org.hl7.fhir.dstu3.model.Medication.MedicationIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertMedicationIngredientComponent(t)); @@ -33,8 +33,8 @@ public class Medication30_50 { tgt.setCode(VersionConvertor_30_50.convertCodeableConcept(src.getCode())); if (src.hasStatus()) tgt.setStatusElement(convertMedicationStatus(src.getStatusElement())); - if (src.hasManufacturer()) - tgt.setManufacturer(VersionConvertor_30_50.convertReference(src.getManufacturer())); + if (src.hasSponsor()) + tgt.setManufacturer(VersionConvertor_30_50.convertReference(src.getSponsor())); if (src.hasDoseForm()) tgt.setForm(VersionConvertor_30_50.convertCodeableConcept(src.getDoseForm())); for (org.hl7.fhir.r5.model.Medication.MedicationIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertMedicationIngredientComponent(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationStatement30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationStatement30_50.java index d9d865f40..7814583c7 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationStatement30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/MedicationStatement30_50.java @@ -86,24 +86,24 @@ public class MedicationStatement30_50 { org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatusEnumFactory()); VersionConvertor_30_50.copyElement(src, tgt); switch(src.getValue()) { - case ACTIVE: - tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.ACTIVE); - break; +// case ACTIVE: +// tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.ACTIVE); +// break; case COMPLETED: tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.COMPLETED); break; case ENTEREDINERROR: tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.ENTEREDINERROR); break; - case INTENDED: + case UNKNOWN: tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.INTENDED); break; - case STOPPED: - tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.STOPPED); - break; - case ONHOLD: - tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.ONHOLD); - break; +// case STOPPED: +// tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.STOPPED); +// break; +// case ONHOLD: +// tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.ONHOLD); +// break; default: tgt.setValue(org.hl7.fhir.dstu3.model.MedicationStatement.MedicationStatementStatus.NULL); break; @@ -118,7 +118,7 @@ public class MedicationStatement30_50 { VersionConvertor_30_50.copyElement(src, tgt); switch(src.getValue()) { case ACTIVE: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ACTIVE); + tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED); break; case COMPLETED: tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED); @@ -127,13 +127,13 @@ public class MedicationStatement30_50 { tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ENTEREDINERROR); break; case INTENDED: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.INTENDED); + tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN); break; case STOPPED: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.STOPPED); + tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN); break; case ONHOLD: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ONHOLD); + tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN); break; default: tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.NULL); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/PlanDefinition30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/PlanDefinition30_50.java index 63c6c204e..7301a32a1 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/PlanDefinition30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/PlanDefinition30_50.java @@ -1,9 +1,17 @@ package org.hl7.fhir.convertors.conv30_50; +import java.text.DateFormat; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Date; + import org.hl7.fhir.convertors.VersionConvertor_30_50; import org.hl7.fhir.dstu3.model.ContactDetail; import org.hl7.fhir.dstu3.model.Contributor.ContributorType; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.DataRequirement; +import org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionInputComponent; +import org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionOutputComponent; public class PlanDefinition30_50 { @@ -546,14 +554,14 @@ public class PlanDefinition30_50 { tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement())); if (src.hasTextEquivalent()) tgt.setTextEquivalentElement(VersionConvertor_30_50.convertString(src.getTextEquivalentElement())); - for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_30_50.convertCodeableConcept(t)); + for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCode()) tgt.setCode(VersionConvertor_30_50.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_30_50.convertCodeableConcept(t)); for (org.hl7.fhir.dstu3.model.RelatedArtifact t : src.getDocumentation()) tgt.addDocumentation(VersionConvertor_30_50.convertRelatedArtifact(t)); for (org.hl7.fhir.dstu3.model.IdType t : src.getGoalId()) tgt.addGoalId(t.getValue()); for (org.hl7.fhir.dstu3.model.TriggerDefinition t : src.getTriggerDefinition()) tgt.addTrigger(VersionConvertor_30_50.convertTriggerDefinition(t)); for (org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionConditionComponent t : src.getCondition()) tgt.addCondition(convertPlanDefinitionActionConditionComponent(t)); - for (org.hl7.fhir.dstu3.model.DataRequirement t : src.getInput()) tgt.addInput(VersionConvertor_30_50.convertDataRequirement(t)); - for (org.hl7.fhir.dstu3.model.DataRequirement t : src.getOutput()) tgt.addOutput(VersionConvertor_30_50.convertDataRequirement(t)); + for (org.hl7.fhir.dstu3.model.DataRequirement t : src.getInput()) tgt.addInput(wrapInput(VersionConvertor_30_50.convertDataRequirement(t))); + for (org.hl7.fhir.dstu3.model.DataRequirement t : src.getOutput()) tgt.addOutput(wrapOutput(VersionConvertor_30_50.convertDataRequirement(t))); for (org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent t : src.getRelatedAction()) tgt.addRelatedAction(convertPlanDefinitionActionRelatedActionComponent(t)); if (src.hasTiming()) tgt.setTiming(VersionConvertor_30_50.convertType(src.getTiming())); @@ -579,6 +587,14 @@ public class PlanDefinition30_50 { return tgt; } + private static PlanDefinitionActionOutputComponent wrapOutput(DataRequirement dr) { + return new PlanDefinitionActionOutputComponent().setRequirement(dr); + } + + private static PlanDefinitionActionInputComponent wrapInput(DataRequirement dr) { + return new PlanDefinitionActionInputComponent().setRequirement(dr); + } + public static org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionComponent convertPlanDefinitionActionComponent(org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionComponent src) throws FHIRException { if (src == null) return null; @@ -592,14 +608,14 @@ public class PlanDefinition30_50 { tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement())); if (src.hasTextEquivalent()) tgt.setTextEquivalentElement(VersionConvertor_30_50.convertString(src.getTextEquivalentElement())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCode()) tgt.addCode(VersionConvertor_30_50.convertCodeableConcept(t)); + if (src.hasCode()) tgt.addCode(VersionConvertor_30_50.convertCodeableConcept(src.getCode())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReason()) tgt.addReason(VersionConvertor_30_50.convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.RelatedArtifact t : src.getDocumentation()) tgt.addDocumentation(VersionConvertor_30_50.convertRelatedArtifact(t)); for (org.hl7.fhir.r5.model.IdType t : src.getGoalId()) tgt.addGoalId(t.getValue()); for (org.hl7.fhir.r5.model.TriggerDefinition t : src.getTrigger()) tgt.addTriggerDefinition(VersionConvertor_30_50.convertTriggerDefinition(t)); for (org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionConditionComponent t : src.getCondition()) tgt.addCondition(convertPlanDefinitionActionConditionComponent(t)); - for (org.hl7.fhir.r5.model.DataRequirement t : src.getInput()) tgt.addInput(VersionConvertor_30_50.convertDataRequirement(t)); - for (org.hl7.fhir.r5.model.DataRequirement t : src.getOutput()) tgt.addOutput(VersionConvertor_30_50.convertDataRequirement(t)); + for (PlanDefinitionActionInputComponent t : src.getInput()) tgt.addInput(VersionConvertor_30_50.convertDataRequirement(t.getRequirement())); + for (PlanDefinitionActionOutputComponent t : src.getOutput()) tgt.addOutput(VersionConvertor_30_50.convertDataRequirement(t.getRequirement())); for (org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent t : src.getRelatedAction()) tgt.addRelatedAction(convertPlanDefinitionActionRelatedActionComponent(t)); if (src.hasTiming()) tgt.setTiming(VersionConvertor_30_50.convertType(src.getTiming())); @@ -718,8 +734,8 @@ public class PlanDefinition30_50 { return null; org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.dstu3.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent(); VersionConvertor_30_50.copyElement(src, tgt); - if (src.hasActionId()) - tgt.setActionIdElement(VersionConvertor_30_50.convertId(src.getActionIdElement())); + if (src.hasTargetId()) + tgt.setActionIdElement(VersionConvertor_30_50.convertId(src.getTargetIdElement())); if (src.hasRelationship()) tgt.setRelationshipElement(convertActionRelationshipType(src.getRelationshipElement())); if (src.hasOffset()) @@ -733,7 +749,7 @@ public class PlanDefinition30_50 { org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent(); VersionConvertor_30_50.copyElement(src, tgt); if (src.hasActionId()) - tgt.setActionIdElement(VersionConvertor_30_50.convertId(src.getActionIdElement())); + tgt.setTargetIdElement(VersionConvertor_30_50.convertId(src.getActionIdElement())); if (src.hasRelationship()) tgt.setRelationshipElement(convertActionRelationshipType(src.getRelationshipElement())); if (src.hasOffset()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Questionnaire30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Questionnaire30_50.java index 21536a757..d3ede0336 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Questionnaire30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Questionnaire30_50.java @@ -1,8 +1,10 @@ package org.hl7.fhir.convertors.conv30_50; import org.hl7.fhir.convertors.VersionConvertor_30_50; +import org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r5.model.Questionnaire; +import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireAnswerConstraint; public class Questionnaire30_50 { @@ -106,8 +108,8 @@ public class Questionnaire30_50 { tgt.setPrefixElement(VersionConvertor_30_50.convertString(src.getPrefixElement())); if (src.hasText()) tgt.setTextElement(VersionConvertor_30_50.convertString(src.getTextElement())); - if (src.hasType()) - tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement())); + if (src.hasType()) + tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement(), src.getAnswerConstraint())); for (org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t)); if (src.hasRequired()) tgt.setRequiredElement(VersionConvertor_30_50.convertBoolean(src.getRequiredElement())); @@ -139,9 +141,15 @@ public class Questionnaire30_50 { if (src.hasPrefix()) tgt.setPrefixElement(VersionConvertor_30_50.convertString(src.getPrefixElement())); if (src.hasText()) - tgt.setTextElement(VersionConvertor_30_50.convertString(src.getTextElement())); - if (src.hasType()) + tgt.setTextElement(VersionConvertor_30_50.convertStringToMarkdown(src.getTextElement())); + if (src.hasType()) { tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement())); + if (src.getType() == QuestionnaireItemType.CHOICE) { + tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSONLY); + } else if (src.getType() == QuestionnaireItemType.OPENCHOICE) { + tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSORSTRING); + } + } for (org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t)); tgt.setEnableBehavior(Questionnaire.EnableWhenBehavior.ANY); if (src.hasRequired()) @@ -217,7 +225,7 @@ public class Questionnaire30_50 { return tgt; } - static public org.hl7.fhir.dstu3.model.Enumeration convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.dstu3.model.Enumeration convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration src, QuestionnaireAnswerConstraint constraint) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemTypeEnumFactory()); @@ -256,12 +264,12 @@ public class Questionnaire30_50 { case URL: tgt.setValue(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.URL); break; - case CHOICE: - tgt.setValue(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.CHOICE); - break; - case OPENCHOICE: + case CODING: + if (constraint == QuestionnaireAnswerConstraint.OPTIONSORSTRING) tgt.setValue(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.OPENCHOICE); - break; + else + tgt.setValue(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.CHOICE); + break; case ATTACHMENT: tgt.setValue(org.hl7.fhir.dstu3.model.Questionnaire.QuestionnaireItemType.ATTACHMENT); break; @@ -318,10 +326,10 @@ public class Questionnaire30_50 { tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.URL); break; case CHOICE: - tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CHOICE); + tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING); break; case OPENCHOICE: - tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.OPENCHOICE); + tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING); break; case ATTACHMENT: tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.ATTACHMENT); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/StructureMap30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/StructureMap30_50.java index f8f49b95d..66ded6531 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/StructureMap30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/StructureMap30_50.java @@ -81,43 +81,6 @@ public class StructureMap30_50 { return tgt; } - static public org.hl7.fhir.r5.model.Enumeration convertStructureMapContextType(org.hl7.fhir.dstu3.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.StructureMap.StructureMapContextTypeEnumFactory()); - VersionConvertor_30_50.copyElement(src, tgt); - switch(src.getValue()) { - case TYPE: - tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.TYPE); - break; - case VARIABLE: - tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.VARIABLE); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.dstu3.model.Enumeration convertStructureMapContextType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.dstu3.model.Enumeration tgt = new org.hl7.fhir.dstu3.model.Enumeration<>(new org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextTypeEnumFactory()); - VersionConvertor_30_50.copyElement(src, tgt); - switch(src.getValue()) { - case TYPE: - tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType.TYPE); - break; - case VARIABLE: - tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType.VARIABLE); - break; - default: - tgt.setValue(org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType.NULL); - break; - } - return tgt; - } public static org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent convertStructureMapGroupComponent(org.hl7.fhir.dstu3.model.StructureMap.StructureMapGroupComponent src) throws FHIRException { if (src == null) @@ -304,8 +267,8 @@ public class StructureMap30_50 { VersionConvertor_30_50.copyElement(src, tgt); if (src.hasContext()) tgt.setContextElement(VersionConvertor_30_50.convertId(src.getContextElement())); - if (src.hasContextType()) - tgt.setContextTypeElement(convertStructureMapContextType(src.getContextTypeElement())); + if (src.hasContextType() && src.getContextType() == org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType.VARIABLE) + throw new Error("This conversion is not supported. Consult code maintainers"); // this should never happens - no one knows what the intent was here. if (src.hasElement()) tgt.setElementElement(VersionConvertor_30_50.convertString(src.getElementElement())); if (src.hasVariable()) @@ -328,8 +291,7 @@ public class StructureMap30_50 { VersionConvertor_30_50.copyElement(src, tgt); if (src.hasContext()) tgt.setContextElement(VersionConvertor_30_50.convertId(src.getContextElement())); - if (src.hasContextType()) - tgt.setContextTypeElement(convertStructureMapContextType(src.getContextTypeElement())); + tgt.setContextType(org.hl7.fhir.dstu3.model.StructureMap.StructureMapContextType.VARIABLE); if (src.hasElement()) tgt.setElementElement(VersionConvertor_30_50.convertString(src.getElementElement())); if (src.hasVariable()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Substance30_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Substance30_50.java index df8313582..922ba3751 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Substance30_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv30_50/Substance30_50.java @@ -2,6 +2,7 @@ package org.hl7.fhir.convertors.conv30_50; import org.hl7.fhir.convertors.VersionConvertor_30_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.Identifier; public class Substance30_50 { @@ -59,10 +60,10 @@ public class Substance30_50 { tgt.setStatusElement(convertFHIRSubstanceStatus(src.getStatusElement())); for (org.hl7.fhir.dstu3.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_30_50.convertCodeableConcept(t)); if (src.hasCode()) - tgt.setCode(VersionConvertor_30_50.convertCodeableConcept(src.getCode())); + tgt.getCode().setConcept(VersionConvertor_30_50.convertCodeableConcept(src.getCode())); if (src.hasDescription()) tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement())); - for (org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t)); + for (org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent t : src.getInstance()) convertSubstanceInstanceComponent(t, tgt); for (org.hl7.fhir.dstu3.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t)); return tgt; } @@ -76,11 +77,13 @@ public class Substance30_50 { if (src.hasStatus()) tgt.setStatusElement(convertFHIRSubstanceStatus(src.getStatusElement())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCategory()) tgt.addCategory(VersionConvertor_30_50.convertCodeableConcept(t)); - if (src.hasCode()) - tgt.setCode(VersionConvertor_30_50.convertCodeableConcept(src.getCode())); + if (src.getCode().hasConcept()) + tgt.setCode(VersionConvertor_30_50.convertCodeableConcept(src.getCode().getConcept())); if (src.hasDescription()) tgt.setDescriptionElement(VersionConvertor_30_50.convertString(src.getDescriptionElement())); - for (org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t)); + if (src.getInstance()) { + tgt.addInstance(convertSubstanceInstanceComponent(src)); + } for (org.hl7.fhir.r5.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t)); return tgt; } @@ -109,31 +112,26 @@ public class Substance30_50 { return tgt; } - public static org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent(); - VersionConvertor_30_50.copyElement(src, tgt); + public static void convertSubstanceInstanceComponent(org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent src, org.hl7.fhir.r5.model.Substance tgt) throws FHIRException { + tgt.setInstance(true); if (src.hasIdentifier()) - tgt.setIdentifier(VersionConvertor_30_50.convertIdentifier(src.getIdentifier())); + tgt.addIdentifier(VersionConvertor_30_50.convertIdentifier(src.getIdentifier())); if (src.hasExpiry()) tgt.setExpiryElement(VersionConvertor_30_50.convertDateTime(src.getExpiryElement())); if (src.hasQuantity()) tgt.setQuantity(VersionConvertor_30_50.convertSimpleQuantity(src.getQuantity())); - return tgt; } - public static org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent src) throws FHIRException { - if (src == null) - return null; + public static org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.r5.model.Substance src) throws FHIRException { org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.dstu3.model.Substance.SubstanceInstanceComponent(); - VersionConvertor_30_50.copyElement(src, tgt); - if (src.hasIdentifier()) - tgt.setIdentifier(VersionConvertor_30_50.convertIdentifier(src.getIdentifier())); - if (src.hasExpiry()) - tgt.setExpiryElement(VersionConvertor_30_50.convertDateTime(src.getExpiryElement())); - if (src.hasQuantity()) - tgt.setQuantity(VersionConvertor_30_50.convertSimpleQuantity(src.getQuantity())); - return tgt; + for (Identifier t : src.getIdentifier()) { + tgt.setIdentifier(VersionConvertor_30_50.convertIdentifier(t)); + } + if (src.hasExpiry()) + tgt.setExpiryElement(VersionConvertor_30_50.convertDateTime(src.getExpiryElement())); + if (src.hasQuantity()) + tgt.setQuantity(VersionConvertor_30_50.convertSimpleQuantity(src.getQuantity())); + return tgt; + } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ActivityDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ActivityDefinition40_50.java index 2b8b0b4bb..d675c6fb2 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ActivityDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ActivityDefinition40_50.java @@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv40_50; import org.hl7.fhir.convertors.VersionConvertor_40_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.CodeableReference; /* Copyright (c) 2011+, HL7, Inc. @@ -100,7 +101,7 @@ public class ActivityDefinition40_50 extends VersionConvertor_40_50 { if (src.hasTiming()) tgt.setTiming(convertType(src.getTiming())); if (src.hasLocation()) - tgt.setLocation(convertReference(src.getLocation())); + tgt.setLocation(new CodeableReference(convertReference(src.getLocation()))); for (org.hl7.fhir.r4.model.ActivityDefinition.ActivityDefinitionParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertActivityDefinitionParticipantComponent(t)); if (src.hasProduct()) tgt.setProduct(convertType(src.getProduct())); @@ -181,8 +182,8 @@ public class ActivityDefinition40_50 extends VersionConvertor_40_50 { tgt.setDoNotPerformElement(convertBoolean(src.getDoNotPerformElement())); if (src.hasTiming()) tgt.setTiming(convertType(src.getTiming())); - if (src.hasLocation()) - tgt.setLocation(convertReference(src.getLocation())); + if (src.getLocation().hasReference()) + tgt.setLocation(convertReference(src.getLocation().getReference())); for (org.hl7.fhir.r5.model.ActivityDefinition.ActivityDefinitionParticipantComponent t : src.getParticipant()) tgt.addParticipant(convertActivityDefinitionParticipantComponent(t)); if (src.hasProduct()) tgt.setProduct(convertType(src.getProduct())); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/AllergyIntolerance40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/AllergyIntolerance40_50.java index abc2fa53b..b8ae4fed3 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/AllergyIntolerance40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/AllergyIntolerance40_50.java @@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv40_50; import org.hl7.fhir.convertors.VersionConvertor_40_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.CodeableReference; import java.util.stream.Collectors; @@ -252,7 +253,7 @@ public class AllergyIntolerance40_50 extends VersionConvertor_40_50 { copyElement(src, tgt); if (src.hasSubstance()) tgt.setSubstance(convertCodeableConcept(src.getSubstance())); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getManifestation()) tgt.addManifestation(convertCodeableConcept(t)); + for (org.hl7.fhir.r4.model.CodeableConcept t : src.getManifestation()) tgt.addManifestation(new CodeableReference(convertCodeableConcept(t))); if (src.hasDescription()) tgt.setDescriptionElement(convertString(src.getDescriptionElement())); if (src.hasOnset()) @@ -272,7 +273,7 @@ public class AllergyIntolerance40_50 extends VersionConvertor_40_50 { copyElement(src, tgt); if (src.hasSubstance()) tgt.setSubstance(convertCodeableConcept(src.getSubstance())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getManifestation()) tgt.addManifestation(convertCodeableConcept(t)); + for (CodeableReference t : src.getManifestation()) if (t.hasConcept()) tgt.addManifestation(convertCodeableConcept(t.getConcept())); if (src.hasDescription()) tgt.setDescriptionElement(convertString(src.getDescriptionElement())); if (src.hasOnset()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Appointment40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Appointment40_50.java index de3e2c338..daa0499ef 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Appointment40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Appointment40_50.java @@ -1,8 +1,11 @@ package org.hl7.fhir.convertors.conv40_50; +import org.hl7.fhir.convertors.VersionConvertor_10_50; import org.hl7.fhir.convertors.VersionConvertor_40_50; +import org.hl7.fhir.r4.model.UnsignedIntType; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.CodeableConcept; import org.hl7.fhir.r5.model.CodeableReference; /* @@ -54,7 +57,7 @@ public class Appointment40_50 extends VersionConvertor_40_50 { for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(convertCodeableConceptToCodeableReference(t)); for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference()) tgt.addReason(convertReferenceToCodeableReference(t)); if (src.hasPriority()) - tgt.setPriorityElement(convertUnsignedInt(src.getPriorityElement())); + tgt.setPriority(convertAppointmentPriority(src.getPriorityElement())); if (src.hasDescription()) tgt.setDescriptionElement(convertString(src.getDescriptionElement())); for (org.hl7.fhir.r4.model.Reference t : src.getSupportingInformation()) tgt.addSupportingInformation(convertReference(t)); @@ -97,7 +100,7 @@ public class Appointment40_50 extends VersionConvertor_40_50 { for (CodeableReference t : src.getReason()) if (t.hasReference()) tgt.addReasonReference(convertReference(t.getReference())); if (src.hasPriority()) - tgt.setPriorityElement(convertUnsignedInt(src.getPriorityElement())); + tgt.setPriorityElement(convertAppointmentPriority(src.getPriority())); if (src.hasDescription()) tgt.setDescriptionElement(convertString(src.getDescriptionElement())); for (org.hl7.fhir.r5.model.Reference t : src.getSupportingInformation()) tgt.addSupportingInformation(convertReference(t)); @@ -120,6 +123,19 @@ public class Appointment40_50 extends VersionConvertor_40_50 { return tgt; } + + private static UnsignedIntType convertAppointmentPriority(CodeableConcept src) { + UnsignedIntType tgt = new UnsignedIntType(convertAppointmentPriorityFromR5(src)); + VersionConvertor_40_50.copyElement(src, tgt); + return tgt; + } + + private static CodeableConcept convertAppointmentPriority(UnsignedIntType src) { + CodeableConcept tgt = src.hasValue() ? convertAppointmentPriorityToR5(src.getValue()) : new CodeableConcept(); + VersionConvertor_40_50.copyElement(src, tgt); + return tgt; + } + static public org.hl7.fhir.r5.model.Enumeration convertAppointmentStatus(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/CarePlan40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/CarePlan40_50.java index 4a0748ecd..773de7806 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/CarePlan40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/CarePlan40_50.java @@ -240,13 +240,13 @@ public class CarePlan40_50 extends VersionConvertor_40_50 { return null; 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.addOutcome(convertCodeableConceptToCodeableReference(t)); - for (org.hl7.fhir.r4.model.Reference t : src.getOutcomeReference()) tgt.addOutcome(convertReferenceToCodeableReference(t)); + for (org.hl7.fhir.r4.model.CodeableConcept t : src.getOutcomeCodeableConcept()) tgt.addPerformedActivity(convertCodeableConceptToCodeableReference(t)); + for (org.hl7.fhir.r4.model.Reference t : src.getOutcomeReference()) tgt.addPerformedActivity(convertReferenceToCodeableReference(t)); for (org.hl7.fhir.r4.model.Annotation t : src.getProgress()) tgt.addProgress(convertAnnotation(t)); if (src.hasReference()) - tgt.setReference(convertReference(src.getReference())); + tgt.setPlannedActivityReference(convertReference(src.getReference())); if (src.hasDetail()) - tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail())); + tgt.setPlannedActivityDetail(convertCarePlanActivityDetailComponent(src.getDetail())); return tgt; } @@ -255,22 +255,22 @@ public class CarePlan40_50 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 (CodeableReference t : src.getOutcome()) if (t.hasConcept()) + for (CodeableReference t : src.getPerformedActivity()) if (t.hasConcept()) tgt.addOutcomeCodeableConcept(convertCodeableConcept(t.getConcept())); - for (CodeableReference t : src.getOutcome()) if (t.hasReference()) + for (CodeableReference t : src.getPerformedActivity()) 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()) - tgt.setReference(convertReference(src.getReference())); - if (src.hasDetail()) - tgt.setDetail(convertCarePlanActivityDetailComponent(src.getDetail())); + if (src.hasPlannedActivityReference()) + tgt.setReference(convertReference(src.getPlannedActivityReference())); + if (src.hasPlannedActivityDetail()) + tgt.setDetail(convertCarePlanActivityDetailComponent(src.getPlannedActivityDetail())); return tgt; } - public static org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException { + public static org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException { if (src == null) return null; - org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent(); + org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent tgt = new org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent(); copyElement(src, tgt); if (src.hasKind()) tgt.setKindElement(convertCarePlanActivityKind(src.getKindElement())); @@ -303,7 +303,7 @@ public class CarePlan40_50 extends VersionConvertor_40_50 { return tgt; } - public static org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r5.model.CarePlan.CarePlanActivityDetailComponent src) throws FHIRException { + public static org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent convertCarePlanActivityDetailComponent(org.hl7.fhir.r5.model.CarePlan.CarePlanActivityPlannedActivityDetailComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent tgt = new org.hl7.fhir.r4.model.CarePlan.CarePlanActivityDetailComponent(); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ConceptMap40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ConceptMap40_50.java index 60b631320..97cc0f87c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ConceptMap40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ConceptMap40_50.java @@ -5,10 +5,14 @@ import org.hl7.fhir.convertors.VersionConvertorConstants; import org.hl7.fhir.convertors.VersionConvertor_40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.Enumerations.ConceptMapEquivalence; +import org.hl7.fhir.r4.model.StringType; +import org.hl7.fhir.r4.model.UriType; +import org.hl7.fhir.r5.model.CanonicalType; import org.hl7.fhir.r5.model.Enumeration; import org.hl7.fhir.r5.model.Enumerations; import org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship; import org.hl7.fhir.r5.utils.ToolingExtensions; +import org.hl7.fhir.utilities.CanonicalPair; /* Copyright (c) 2011+, HL7, Inc. @@ -126,33 +130,46 @@ public class ConceptMap40_50 extends VersionConvertor_40_50 { return null; org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent(); copyElement(src, tgt); - if (src.hasSource()) - tgt.setSourceElement(convertUri(src.getSourceElement())); - if (src.hasSourceVersion()) - tgt.setSourceVersionElement(convertString(src.getSourceVersionElement())); - if (src.hasTarget()) - tgt.setTargetElement(convertUri(src.getTargetElement())); - if (src.hasTargetVersion()) - tgt.setTargetVersionElement(convertString(src.getTargetVersionElement())); + if (src.hasSource() || src.hasSourceVersion()) + tgt.setSourceElement(convertUriAndVersionToCanonical(src.getSourceElement(), src.getSourceVersionElement())); + if (src.hasTarget() || src.hasTargetVersion()) + tgt.setTargetElement(convertUriAndVersionToCanonical(src.getTargetElement(), src.getTargetVersionElement())); for (org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent t : src.getElement()) tgt.addElement(convertSourceElementComponent(t)); if (src.hasUnmapped()) tgt.setUnmapped(convertConceptMapGroupUnmappedComponent(src.getUnmapped())); return tgt; } + private static CanonicalType convertUriAndVersionToCanonical(org.hl7.fhir.r4.model.UriType srcUri, org.hl7.fhir.r4.model.StringType srcVersion) { + if (srcUri == null && srcVersion == null) + return null; + org.hl7.fhir.r5.model.CanonicalType tgt = new org.hl7.fhir.r5.model.CanonicalType(); + copyElement(srcUri == null ? srcVersion : srcUri, tgt); + if (srcUri.hasValue()) { + if (srcVersion.hasValue()) { + tgt.setValue(srcUri.getValue()+"|"+srcVersion.getValue()); + } else { + tgt.setValue(srcUri.getValue()); + } + } + return tgt; + } + public static org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent convertConceptMapGroupComponent(org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.ConceptMapGroupComponent(); copyElement(src, tgt); - if (src.hasSource()) - tgt.setSourceElement(convertUri(src.getSourceElement())); - if (src.hasSourceVersion()) - tgt.setSourceVersionElement(convertString(src.getSourceVersionElement())); - if (src.hasTarget()) - tgt.setTargetElement(convertUri(src.getTargetElement())); - if (src.hasTargetVersion()) - tgt.setTargetVersionElement(convertString(src.getTargetVersionElement())); + if (src.hasSource()) { + CanonicalPair cp = new CanonicalPair(src.getSource()); + tgt.setSource(cp.getUrl()); + tgt.setSourceVersion(cp.getVersion()); + } + if (src.hasTarget()) { + CanonicalPair cp = new CanonicalPair(src.getTarget()); + tgt.setTarget(cp.getUrl()); + tgt.setTargetVersion(cp.getVersion()); + } for (org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent t : src.getElement()) tgt.addElement(convertSourceElementComponent(t)); if (src.hasUnmapped()) tgt.setUnmapped(convertConceptMapGroupUnmappedComponent(src.getUnmapped())); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/CoverageEligibilityResponse40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/CoverageEligibilityResponse40_50.java deleted file mode 100644 index f2cc38e30..000000000 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/CoverageEligibilityResponse40_50.java +++ /dev/null @@ -1,405 +0,0 @@ -package org.hl7.fhir.convertors.conv40_50; - - -import org.hl7.fhir.convertors.VersionConvertor_40_50; -import org.hl7.fhir.exceptions.FHIRException; - -import java.util.stream.Collectors; - -/* - Copyright (c) 2011+, HL7, Inc. - All rights reserved. - - 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 - 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 - 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 - POSSIBILITY OF SUCH DAMAGE. - -*/ -// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0 -public class CoverageEligibilityResponse40_50 extends VersionConvertor_40_50 { - - public static org.hl7.fhir.r5.model.CoverageEligibilityResponse convertCoverageEligibilityResponse(org.hl7.fhir.r4.model.CoverageEligibilityResponse src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.CoverageEligibilityResponse tgt = new org.hl7.fhir.r5.model.CoverageEligibilityResponse(); - copyDomainResource(src, tgt); - for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); - if (src.hasStatus()) - tgt.setStatusElement(convertEligibilityResponseStatus(src.getStatusElement())); - tgt.setPurpose(src.getPurpose().stream() - .map(CoverageEligibilityResponse40_50::convertEligibilityResponsePurpose) - .collect(Collectors.toList())); - if (src.hasPatient()) - tgt.setPatient(convertReference(src.getPatient())); - if (src.hasServiced()) - tgt.setServiced(convertType(src.getServiced())); - if (src.hasCreated()) - tgt.setCreatedElement(convertDateTime(src.getCreatedElement())); - if (src.hasRequestor()) - tgt.setRequestor(convertReference(src.getRequestor())); - if (src.hasRequest()) - tgt.setRequest(convertReference(src.getRequest())); - if (src.hasOutcome()) - tgt.setOutcomeElement(convertRemittanceOutcome(src.getOutcomeElement())); - if (src.hasDisposition()) - tgt.setDispositionElement(convertString(src.getDispositionElement())); - if (src.hasInsurer()) - tgt.setInsurer(convertReference(src.getInsurer())); - for (org.hl7.fhir.r4.model.CoverageEligibilityResponse.InsuranceComponent t : src.getInsurance()) tgt.addInsurance(convertInsuranceComponent(t)); - if (src.hasPreAuthRef()) - tgt.setPreAuthRefElement(convertString(src.getPreAuthRefElement())); - if (src.hasForm()) - tgt.setForm(convertCodeableConcept(src.getForm())); - for (org.hl7.fhir.r4.model.CoverageEligibilityResponse.ErrorsComponent t : src.getError()) tgt.addError(convertErrorsComponent(t)); - return tgt; - } - - public static org.hl7.fhir.r4.model.CoverageEligibilityResponse convertCoverageEligibilityResponse(org.hl7.fhir.r5.model.CoverageEligibilityResponse src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.CoverageEligibilityResponse tgt = new org.hl7.fhir.r4.model.CoverageEligibilityResponse(); - copyDomainResource(src, tgt); - for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); - if (src.hasStatus()) - tgt.setStatusElement(convertEligibilityResponseStatus(src.getStatusElement())); - tgt.setPurpose(src.getPurpose().stream() - .map(CoverageEligibilityResponse40_50::convertEligibilityResponsePurpose) - .collect(Collectors.toList())); - if (src.hasPatient()) - tgt.setPatient(convertReference(src.getPatient())); - if (src.hasServiced()) - tgt.setServiced(convertType(src.getServiced())); - if (src.hasCreated()) - tgt.setCreatedElement(convertDateTime(src.getCreatedElement())); - if (src.hasRequestor()) - tgt.setRequestor(convertReference(src.getRequestor())); - if (src.hasRequest()) - tgt.setRequest(convertReference(src.getRequest())); - if (src.hasOutcome()) - tgt.setOutcomeElement(convertRemittanceOutcome(src.getOutcomeElement())); - if (src.hasDisposition()) - tgt.setDispositionElement(convertString(src.getDispositionElement())); - if (src.hasInsurer()) - tgt.setInsurer(convertReference(src.getInsurer())); - for (org.hl7.fhir.r5.model.CoverageEligibilityResponse.InsuranceComponent t : src.getInsurance()) tgt.addInsurance(convertInsuranceComponent(t)); - if (src.hasPreAuthRef()) - tgt.setPreAuthRefElement(convertString(src.getPreAuthRefElement())); - if (src.hasForm()) - tgt.setForm(convertCodeableConcept(src.getForm())); - for (org.hl7.fhir.r5.model.CoverageEligibilityResponse.ErrorsComponent t : src.getError()) tgt.addError(convertErrorsComponent(t)); - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertEligibilityResponseStatus(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodesEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case ACTIVE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE); - break; - case CANCELLED: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED); - break; - case DRAFT: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT); - break; - case ENTEREDINERROR: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertEligibilityResponseStatus(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatusEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case ACTIVE: - tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus.ACTIVE); - break; - case CANCELLED: - tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus.CANCELLED); - break; - case DRAFT: - tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus.DRAFT); - break; - case ENTEREDINERROR: - tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus.ENTEREDINERROR); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponseStatus.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertEligibilityResponsePurpose(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponsePurposeEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case AUTHREQUIREMENTS: - tgt.setValue(org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponsePurpose.AUTHREQUIREMENTS); - break; - case BENEFITS: - tgt.setValue(org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponsePurpose.BENEFITS); - break; - case DISCOVERY: - tgt.setValue(org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponsePurpose.DISCOVERY); - break; - case VALIDATION: - tgt.setValue(org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponsePurpose.VALIDATION); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.CoverageEligibilityResponse.EligibilityResponsePurpose.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertEligibilityResponsePurpose(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponsePurposeEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case AUTHREQUIREMENTS: - tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponsePurpose.AUTHREQUIREMENTS); - break; - case BENEFITS: - tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponsePurpose.BENEFITS); - break; - case DISCOVERY: - tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponsePurpose.DISCOVERY); - break; - case VALIDATION: - tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponsePurpose.VALIDATION); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.CoverageEligibilityResponse.EligibilityResponsePurpose.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertRemittanceOutcome(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodesEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case QUEUED: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.QUEUED); - break; - case COMPLETE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.COMPLETE); - break; - case ERROR: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.ERROR); - break; - case PARTIAL: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.PARTIAL); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertRemittanceOutcome(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.Enumerations.RemittanceOutcomeEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case QUEUED: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.QUEUED); - break; - case COMPLETE: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.COMPLETE); - break; - case ERROR: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.ERROR); - break; - case PARTIAL: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.PARTIAL); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.NULL); - break; - } - return tgt; - } - - public static org.hl7.fhir.r5.model.CoverageEligibilityResponse.InsuranceComponent convertInsuranceComponent(org.hl7.fhir.r4.model.CoverageEligibilityResponse.InsuranceComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.CoverageEligibilityResponse.InsuranceComponent tgt = new org.hl7.fhir.r5.model.CoverageEligibilityResponse.InsuranceComponent(); - copyElement(src, tgt); - if (src.hasCoverage()) - tgt.setCoverage(convertReference(src.getCoverage())); - if (src.hasInforce()) - tgt.setInforceElement(convertBoolean(src.getInforceElement())); - if (src.hasBenefitPeriod()) - tgt.setBenefitPeriod(convertPeriod(src.getBenefitPeriod())); - for (org.hl7.fhir.r4.model.CoverageEligibilityResponse.ItemsComponent t : src.getItem()) tgt.addItem(convertItemsComponent(t)); - return tgt; - } - - public static org.hl7.fhir.r4.model.CoverageEligibilityResponse.InsuranceComponent convertInsuranceComponent(org.hl7.fhir.r5.model.CoverageEligibilityResponse.InsuranceComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.CoverageEligibilityResponse.InsuranceComponent tgt = new org.hl7.fhir.r4.model.CoverageEligibilityResponse.InsuranceComponent(); - copyElement(src, tgt); - if (src.hasCoverage()) - tgt.setCoverage(convertReference(src.getCoverage())); - if (src.hasInforce()) - tgt.setInforceElement(convertBoolean(src.getInforceElement())); - if (src.hasBenefitPeriod()) - tgt.setBenefitPeriod(convertPeriod(src.getBenefitPeriod())); - for (org.hl7.fhir.r5.model.CoverageEligibilityResponse.ItemsComponent t : src.getItem()) tgt.addItem(convertItemsComponent(t)); - return tgt; - } - - public static org.hl7.fhir.r5.model.CoverageEligibilityResponse.ItemsComponent convertItemsComponent(org.hl7.fhir.r4.model.CoverageEligibilityResponse.ItemsComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.CoverageEligibilityResponse.ItemsComponent tgt = new org.hl7.fhir.r5.model.CoverageEligibilityResponse.ItemsComponent(); - copyElement(src, tgt); - if (src.hasCategory()) - tgt.setCategory(convertCodeableConcept(src.getCategory())); - if (src.hasProductOrService()) - tgt.setProductOrService(convertCodeableConcept(src.getProductOrService())); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getModifier()) tgt.addModifier(convertCodeableConcept(t)); - if (src.hasProvider()) - tgt.setProvider(convertReference(src.getProvider())); - if (src.hasExcluded()) - tgt.setExcludedElement(convertBoolean(src.getExcludedElement())); - if (src.hasName()) - tgt.setNameElement(convertString(src.getNameElement())); - if (src.hasDescription()) - tgt.setDescriptionElement(convertString(src.getDescriptionElement())); - if (src.hasNetwork()) - tgt.setNetwork(convertCodeableConcept(src.getNetwork())); - if (src.hasUnit()) - tgt.setUnit(convertCodeableConcept(src.getUnit())); - if (src.hasTerm()) - tgt.setTerm(convertCodeableConcept(src.getTerm())); - for (org.hl7.fhir.r4.model.CoverageEligibilityResponse.BenefitComponent t : src.getBenefit()) tgt.addBenefit(convertBenefitComponent(t)); - if (src.hasAuthorizationRequired()) - tgt.setAuthorizationRequiredElement(convertBoolean(src.getAuthorizationRequiredElement())); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getAuthorizationSupporting()) tgt.addAuthorizationSupporting(convertCodeableConcept(t)); - if (src.hasAuthorizationUrl()) - tgt.setAuthorizationUrlElement(convertUri(src.getAuthorizationUrlElement())); - return tgt; - } - - public static org.hl7.fhir.r4.model.CoverageEligibilityResponse.ItemsComponent convertItemsComponent(org.hl7.fhir.r5.model.CoverageEligibilityResponse.ItemsComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.CoverageEligibilityResponse.ItemsComponent tgt = new org.hl7.fhir.r4.model.CoverageEligibilityResponse.ItemsComponent(); - copyElement(src, tgt); - if (src.hasCategory()) - tgt.setCategory(convertCodeableConcept(src.getCategory())); - if (src.hasProductOrService()) - tgt.setProductOrService(convertCodeableConcept(src.getProductOrService())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getModifier()) tgt.addModifier(convertCodeableConcept(t)); - if (src.hasProvider()) - tgt.setProvider(convertReference(src.getProvider())); - if (src.hasExcluded()) - tgt.setExcludedElement(convertBoolean(src.getExcludedElement())); - if (src.hasName()) - tgt.setNameElement(convertString(src.getNameElement())); - if (src.hasDescription()) - tgt.setDescriptionElement(convertString(src.getDescriptionElement())); - if (src.hasNetwork()) - tgt.setNetwork(convertCodeableConcept(src.getNetwork())); - if (src.hasUnit()) - tgt.setUnit(convertCodeableConcept(src.getUnit())); - if (src.hasTerm()) - tgt.setTerm(convertCodeableConcept(src.getTerm())); - for (org.hl7.fhir.r5.model.CoverageEligibilityResponse.BenefitComponent t : src.getBenefit()) tgt.addBenefit(convertBenefitComponent(t)); - if (src.hasAuthorizationRequired()) - tgt.setAuthorizationRequiredElement(convertBoolean(src.getAuthorizationRequiredElement())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getAuthorizationSupporting()) tgt.addAuthorizationSupporting(convertCodeableConcept(t)); - if (src.hasAuthorizationUrl()) - tgt.setAuthorizationUrlElement(convertUri(src.getAuthorizationUrlElement())); - return tgt; - } - - public static org.hl7.fhir.r5.model.CoverageEligibilityResponse.BenefitComponent convertBenefitComponent(org.hl7.fhir.r4.model.CoverageEligibilityResponse.BenefitComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.CoverageEligibilityResponse.BenefitComponent tgt = new org.hl7.fhir.r5.model.CoverageEligibilityResponse.BenefitComponent(); - copyElement(src, tgt); - if (src.hasType()) - tgt.setType(convertCodeableConcept(src.getType())); - if (src.hasAllowed()) - tgt.setAllowed(convertType(src.getAllowed())); - if (src.hasUsed()) - tgt.setUsed(convertType(src.getUsed())); - return tgt; - } - - public static org.hl7.fhir.r4.model.CoverageEligibilityResponse.BenefitComponent convertBenefitComponent(org.hl7.fhir.r5.model.CoverageEligibilityResponse.BenefitComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.CoverageEligibilityResponse.BenefitComponent tgt = new org.hl7.fhir.r4.model.CoverageEligibilityResponse.BenefitComponent(); - copyElement(src, tgt); - if (src.hasType()) - tgt.setType(convertCodeableConcept(src.getType())); - if (src.hasAllowed()) - tgt.setAllowed(convertType(src.getAllowed())); - if (src.hasUsed()) - tgt.setUsed(convertType(src.getUsed())); - return tgt; - } - - public static org.hl7.fhir.r5.model.CoverageEligibilityResponse.ErrorsComponent convertErrorsComponent(org.hl7.fhir.r4.model.CoverageEligibilityResponse.ErrorsComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.CoverageEligibilityResponse.ErrorsComponent tgt = new org.hl7.fhir.r5.model.CoverageEligibilityResponse.ErrorsComponent(); - copyElement(src, tgt); - if (src.hasCode()) - tgt.setCode(convertCodeableConcept(src.getCode())); - return tgt; - } - - public static org.hl7.fhir.r4.model.CoverageEligibilityResponse.ErrorsComponent convertErrorsComponent(org.hl7.fhir.r5.model.CoverageEligibilityResponse.ErrorsComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.CoverageEligibilityResponse.ErrorsComponent tgt = new org.hl7.fhir.r4.model.CoverageEligibilityResponse.ErrorsComponent(); - copyElement(src, tgt); - if (src.hasCode()) - tgt.setCode(convertCodeableConcept(src.getCode())); - return tgt; - } -} \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Device40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Device40_50.java index aaae94802..15f41672c 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Device40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Device40_50.java @@ -432,8 +432,8 @@ public class Device40_50 extends VersionConvertor_40_50 { copyElement(src, tgt); if (src.hasType()) tgt.setType(convertCodeableConcept(src.getType())); - for (org.hl7.fhir.r4.model.Quantity t : src.getValueQuantity()) tgt.addValueQuantity(convertQuantity(t)); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getValueCode()) tgt.addValueCode(convertCodeableConcept(t)); + for (org.hl7.fhir.r4.model.Quantity t : src.getValueQuantity()) tgt.setValue(convertQuantity(t)); + for (org.hl7.fhir.r4.model.CodeableConcept t : src.getValueCode()) tgt.setValue(convertCodeableConcept(t)); return tgt; } @@ -444,8 +444,8 @@ public class Device40_50 extends VersionConvertor_40_50 { copyElement(src, tgt); if (src.hasType()) tgt.setType(convertCodeableConcept(src.getType())); - for (org.hl7.fhir.r5.model.Quantity t : src.getValueQuantity()) tgt.addValueQuantity(convertQuantity(t)); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getValueCode()) tgt.addValueCode(convertCodeableConcept(t)); + if (src.hasValueQuantity()) tgt.addValueQuantity(convertQuantity(src.getValueQuantity())); + if (src.hasValueCodeableConcept()) tgt.addValueCode(convertCodeableConcept(src.getValueCodeableConcept())); return tgt; } } \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/DeviceDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/DeviceDefinition40_50.java index 4b2e7a9f7..3d1e35c3f 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/DeviceDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/DeviceDefinition40_50.java @@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv40_50; import org.hl7.fhir.convertors.VersionConvertor_40_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionVersionComponent; /* Copyright (c) 2011+, HL7, Inc. @@ -48,9 +49,9 @@ public class DeviceDefinition40_50 extends VersionConvertor_40_50 { if (src.hasModelNumber()) tgt.setModelNumberElement(convertString(src.getModelNumberElement())); if (src.hasType()) - tgt.setType(convertCodeableConcept(src.getType())); + tgt.addType(convertCodeableConcept(src.getType())); for (org.hl7.fhir.r4.model.DeviceDefinition.DeviceDefinitionSpecializationComponent t : src.getSpecialization()) tgt.addSpecialization(convertDeviceDefinitionSpecializationComponent(t)); - for (org.hl7.fhir.r4.model.StringType t : src.getVersion()) tgt.getVersion().add(convertString(t)); + for (org.hl7.fhir.r4.model.StringType t : src.getVersion()) tgt.getVersion().add(new DeviceDefinitionVersionComponent().setValueElement(convertString(t))); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getSafety()) tgt.addSafety(convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.ProductShelfLife t : src.getShelfLifeStorage()) tgt.addShelfLifeStorage(convertProductShelfLife(t)); if (src.hasPhysicalCharacteristics()) @@ -64,8 +65,6 @@ public class DeviceDefinition40_50 extends VersionConvertor_40_50 { if (src.hasOnlineInformation()) tgt.setOnlineInformationElement(convertUri(src.getOnlineInformationElement())); for (org.hl7.fhir.r4.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t)); - if (src.hasQuantity()) - tgt.setQuantity(convertQuantity(src.getQuantity())); if (src.hasParentDevice()) tgt.setParentDevice(convertReference(src.getParentDevice())); for (org.hl7.fhir.r4.model.DeviceDefinition.DeviceDefinitionMaterialComponent t : src.getMaterial()) tgt.addMaterial(convertDeviceDefinitionMaterialComponent(t)); @@ -84,10 +83,9 @@ public class DeviceDefinition40_50 extends VersionConvertor_40_50 { for (org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionDeviceNameComponent t : src.getDeviceName()) tgt.addDeviceName(convertDeviceDefinitionDeviceNameComponent(t)); if (src.hasModelNumber()) tgt.setModelNumberElement(convertString(src.getModelNumberElement())); - if (src.hasType()) - tgt.setType(convertCodeableConcept(src.getType())); + for (org.hl7.fhir.r5.model.CodeableConcept t : src.getType()) tgt.setType(convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionSpecializationComponent t : src.getSpecialization()) tgt.addSpecialization(convertDeviceDefinitionSpecializationComponent(t)); - for (org.hl7.fhir.r5.model.StringType t : src.getVersion()) tgt.getVersion().add(convertString(t)); + for (DeviceDefinitionVersionComponent t : src.getVersion()) tgt.getVersion().add(convertString(t.getValueElement())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getSafety()) tgt.addSafety(convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.ProductShelfLife t : src.getShelfLifeStorage()) tgt.addShelfLifeStorage(convertProductShelfLife(t)); if (src.hasPhysicalCharacteristics()) @@ -101,8 +99,6 @@ public class DeviceDefinition40_50 extends VersionConvertor_40_50 { if (src.hasOnlineInformation()) tgt.setOnlineInformationElement(convertUri(src.getOnlineInformationElement())); for (org.hl7.fhir.r5.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t)); - if (src.hasQuantity()) - tgt.setQuantity(convertQuantity(src.getQuantity())); if (src.hasParentDevice()) tgt.setParentDevice(convertReference(src.getParentDevice())); for (org.hl7.fhir.r5.model.DeviceDefinition.DeviceDefinitionMaterialComponent t : src.getMaterial()) tgt.addMaterial(convertDeviceDefinitionMaterialComponent(t)); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/DeviceUseStatement40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/DeviceUseStatement40_50.java index b0febbf32..aad53c269 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/DeviceUseStatement40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/DeviceUseStatement40_50.java @@ -36,10 +36,10 @@ import org.hl7.fhir.r5.model.CodeableReference; // Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0 public class DeviceUseStatement40_50 extends VersionConvertor_40_50 { - public static org.hl7.fhir.r5.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.r4.model.DeviceUseStatement src) throws FHIRException { + public static org.hl7.fhir.r5.model.DeviceUsage convertDeviceUseStatement(org.hl7.fhir.r4.model.DeviceUseStatement src) throws FHIRException { if (src == null) return null; - org.hl7.fhir.r5.model.DeviceUseStatement tgt = new org.hl7.fhir.r5.model.DeviceUseStatement(); + org.hl7.fhir.r5.model.DeviceUsage tgt = new org.hl7.fhir.r5.model.DeviceUsage(); copyDomainResource(src, tgt); for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); for (org.hl7.fhir.r4.model.Reference t : src.getBasedOn()) tgt.addBasedOn(convertReference(t)); @@ -64,7 +64,7 @@ public class DeviceUseStatement40_50 extends VersionConvertor_40_50 { return tgt; } - public static org.hl7.fhir.r4.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.r5.model.DeviceUseStatement src) throws FHIRException { + public static org.hl7.fhir.r4.model.DeviceUseStatement convertDeviceUseStatement(org.hl7.fhir.r5.model.DeviceUsage src) throws FHIRException { if (src == null) return null; org.hl7.fhir.r4.model.DeviceUseStatement tgt = new org.hl7.fhir.r4.model.DeviceUseStatement(); @@ -94,38 +94,38 @@ public class DeviceUseStatement40_50 extends VersionConvertor_40_50 { return tgt; } - static public org.hl7.fhir.r5.model.Enumeration convertDeviceUseStatementStatus(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r5.model.Enumeration convertDeviceUseStatementStatus(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatusEnumFactory()); + org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatusEnumFactory()); VersionConvertor_40_50.copyElement(src, tgt); switch(src.getValue()) { case ACTIVE: - tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.ACTIVE); + tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.ACTIVE); break; case COMPLETED: - tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.COMPLETED); + tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.COMPLETED); break; case ENTEREDINERROR: - tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.ENTEREDINERROR); + tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.ENTEREDINERROR); break; case INTENDED: - tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.INTENDED); + tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.INTENDED); break; case STOPPED: - tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.STOPPED); + tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.STOPPED); break; case ONHOLD: - tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.ONHOLD); + tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.ONHOLD); break; default: - tgt.setValue(org.hl7.fhir.r5.model.DeviceUseStatement.DeviceUseStatementStatus.NULL); + tgt.setValue(org.hl7.fhir.r5.model.DeviceUsage.DeviceUsageStatus.NULL); break; } return tgt; } - static public org.hl7.fhir.r4.model.Enumeration convertDeviceUseStatementStatus(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r4.model.Enumeration convertDeviceUseStatementStatus(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.DeviceUseStatement.DeviceUseStatementStatusEnumFactory()); diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/EnrollmentResponse40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/EnrollmentResponse40_50.java deleted file mode 100644 index 1b86f55c3..000000000 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/EnrollmentResponse40_50.java +++ /dev/null @@ -1,183 +0,0 @@ -package org.hl7.fhir.convertors.conv40_50; - - -import org.hl7.fhir.convertors.VersionConvertor_40_50; -import org.hl7.fhir.exceptions.FHIRException; - -/* - Copyright (c) 2011+, HL7, Inc. - All rights reserved. - - 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 - 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 - 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 - POSSIBILITY OF SUCH DAMAGE. - -*/ -// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0 -public class EnrollmentResponse40_50 extends VersionConvertor_40_50 { - - public static org.hl7.fhir.r5.model.EnrollmentResponse convertEnrollmentResponse(org.hl7.fhir.r4.model.EnrollmentResponse src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.EnrollmentResponse tgt = new org.hl7.fhir.r5.model.EnrollmentResponse(); - copyDomainResource(src, tgt); - for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); - if (src.hasStatus()) - tgt.setStatusElement(convertEnrollmentResponseStatus(src.getStatusElement())); - if (src.hasRequest()) - tgt.setRequest(convertReference(src.getRequest())); - if (src.hasOutcome()) - tgt.setOutcomeElement(convertRemittanceOutcome(src.getOutcomeElement())); - if (src.hasDisposition()) - tgt.setDispositionElement(convertString(src.getDispositionElement())); - if (src.hasCreated()) - tgt.setCreatedElement(convertDateTime(src.getCreatedElement())); - if (src.hasOrganization()) - tgt.setOrganization(convertReference(src.getOrganization())); - if (src.hasRequestProvider()) - tgt.setRequestProvider(convertReference(src.getRequestProvider())); - return tgt; - } - - public static org.hl7.fhir.r4.model.EnrollmentResponse convertEnrollmentResponse(org.hl7.fhir.r5.model.EnrollmentResponse src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.EnrollmentResponse tgt = new org.hl7.fhir.r4.model.EnrollmentResponse(); - copyDomainResource(src, tgt); - for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); - if (src.hasStatus()) - tgt.setStatusElement(convertEnrollmentResponseStatus(src.getStatusElement())); - if (src.hasRequest()) - tgt.setRequest(convertReference(src.getRequest())); - if (src.hasOutcome()) - tgt.setOutcomeElement(convertRemittanceOutcome(src.getOutcomeElement())); - if (src.hasDisposition()) - tgt.setDispositionElement(convertString(src.getDispositionElement())); - if (src.hasCreated()) - tgt.setCreatedElement(convertDateTime(src.getCreatedElement())); - if (src.hasOrganization()) - tgt.setOrganization(convertReference(src.getOrganization())); - if (src.hasRequestProvider()) - tgt.setRequestProvider(convertReference(src.getRequestProvider())); - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertEnrollmentResponseStatus(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodesEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case ACTIVE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE); - break; - case CANCELLED: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED); - break; - case DRAFT: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT); - break; - case ENTEREDINERROR: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertEnrollmentResponseStatus(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatusEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case ACTIVE: - tgt.setValue(org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus.ACTIVE); - break; - case CANCELLED: - tgt.setValue(org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus.CANCELLED); - break; - case DRAFT: - tgt.setValue(org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus.DRAFT); - break; - case ENTEREDINERROR: - tgt.setValue(org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus.ENTEREDINERROR); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.EnrollmentResponse.EnrollmentResponseStatus.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertRemittanceOutcome(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodesEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case QUEUED: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.QUEUED); - break; - case COMPLETE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.COMPLETE); - break; - case ERROR: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.ERROR); - break; - case PARTIAL: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.PARTIAL); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertRemittanceOutcome(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.Enumerations.RemittanceOutcomeEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case QUEUED: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.QUEUED); - break; - case COMPLETE: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.COMPLETE); - break; - case ERROR: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.ERROR); - break; - case PARTIAL: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.PARTIAL); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.NULL); - break; - } - return tgt; - } -} \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Goal40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Goal40_50.java index 7ef1ec78a..28b139197 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Goal40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Goal40_50.java @@ -60,8 +60,6 @@ public class Goal40_50 extends VersionConvertor_40_50 { tgt.setStatusDateElement(convertDate(src.getStatusDateElement())); if (src.hasStatusReason()) tgt.setStatusReasonElement(convertString(src.getStatusReasonElement())); - if (src.hasExpressedBy()) - tgt.setExpressedBy(convertReference(src.getExpressedBy())); for (org.hl7.fhir.r4.model.Reference t : src.getAddresses()) tgt.addAddresses(convertReference(t)); 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.addOutcome(convertCodeableConceptToCodeableReference(t)); @@ -93,8 +91,6 @@ public class Goal40_50 extends VersionConvertor_40_50 { tgt.setStatusDateElement(convertDate(src.getStatusDateElement())); if (src.hasStatusReason()) tgt.setStatusReasonElement(convertString(src.getStatusReasonElement())); - if (src.hasExpressedBy()) - tgt.setExpressedBy(convertReference(src.getExpressedBy())); for (org.hl7.fhir.r5.model.Reference t : src.getAddresses()) tgt.addAddresses(convertReference(t)); for (org.hl7.fhir.r5.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t)); for (CodeableReference t : src.getOutcome()) if (t.hasConcept()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MeasureReport40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MeasureReport40_50.java index 35523c585..298f97dd8 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MeasureReport40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MeasureReport40_50.java @@ -205,8 +205,8 @@ public class MeasureReport40_50 extends VersionConvertor_40_50 { if (src.hasCode()) tgt.setCode(convertCodeableConcept(src.getCode())); for (org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupPopulationComponent t : src.getPopulation()) tgt.addPopulation(convertMeasureReportGroupPopulationComponent(t)); - if (src.hasMeasureScore()) - tgt.setMeasureScore(convertQuantity(src.getMeasureScore())); + if (src.hasMeasureScoreQuantity()) + tgt.setMeasureScore(convertQuantity(src.getMeasureScoreQuantity())); for (org.hl7.fhir.r5.model.MeasureReport.MeasureReportGroupStratifierComponent t : src.getStratifier()) tgt.addStratifier(convertMeasureReportGroupStratifierComponent(t)); return tgt; } @@ -278,12 +278,12 @@ public class MeasureReport40_50 extends VersionConvertor_40_50 { return null; org.hl7.fhir.r4.model.MeasureReport.StratifierGroupComponent tgt = new org.hl7.fhir.r4.model.MeasureReport.StratifierGroupComponent(); copyElement(src, tgt); - if (src.hasValue()) - tgt.setValue(convertCodeableConcept(src.getValue())); + if (src.hasValueCodeableConcept()) + tgt.setValue(convertCodeableConcept(src.getValueCodeableConcept())); for (org.hl7.fhir.r5.model.MeasureReport.StratifierGroupComponentComponent t : src.getComponent()) tgt.addComponent(convertStratifierGroupComponentComponent(t)); for (org.hl7.fhir.r5.model.MeasureReport.StratifierGroupPopulationComponent t : src.getPopulation()) tgt.addPopulation(convertStratifierGroupPopulationComponent(t)); - if (src.hasMeasureScore()) - tgt.setMeasureScore(convertQuantity(src.getMeasureScore())); + if (src.hasMeasureScoreQuantity()) + tgt.setMeasureScore(convertQuantity(src.getMeasureScoreQuantity())); return tgt; } @@ -306,8 +306,8 @@ public class MeasureReport40_50 extends VersionConvertor_40_50 { copyElement(src, tgt); if (src.hasCode()) tgt.setCode(convertCodeableConcept(src.getCode())); - if (src.hasValue()) - tgt.setValue(convertCodeableConcept(src.getValue())); + if (src.hasValueCodeableConcept()) + tgt.setValue(convertCodeableConcept(src.getValueCodeableConcept())); return tgt; } diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Medication40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Medication40_50.java index e282e484b..4bd3457f0 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Medication40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Medication40_50.java @@ -46,7 +46,7 @@ public class Medication40_50 extends VersionConvertor_40_50 { if (src.hasStatus()) tgt.setStatusElement(convertMedicationStatus(src.getStatusElement())); if (src.hasManufacturer()) - tgt.setManufacturer(convertReference(src.getManufacturer())); + tgt.setSponsor(convertReference(src.getManufacturer())); if (src.hasForm()) tgt.setDoseForm(convertCodeableConcept(src.getForm())); if (src.hasAmount()) @@ -67,8 +67,8 @@ public class Medication40_50 extends VersionConvertor_40_50 { tgt.setCode(convertCodeableConcept(src.getCode())); if (src.hasStatus()) tgt.setStatusElement(convertMedicationStatus(src.getStatusElement())); - if (src.hasManufacturer()) - tgt.setManufacturer(convertReference(src.getManufacturer())); + if (src.hasSponsor()) + tgt.setManufacturer(convertReference(src.getSponsor())); if (src.hasDoseForm()) tgt.setForm(convertCodeableConcept(src.getDoseForm())); if (src.hasAmount()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationKnowledge40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationKnowledge40_50.java index 4134b86d1..24b9b9d18 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationKnowledge40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationKnowledge40_50.java @@ -4,6 +4,8 @@ package org.hl7.fhir.convertors.conv40_50; import org.hl7.fhir.convertors.VersionConvertor_40_50; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.r4.model.CodeType; +import org.hl7.fhir.r5.model.CodeableConcept; +import org.hl7.fhir.r5.model.Coding; import org.hl7.fhir.r5.model.Enumeration; import org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgeStatusCodesEnumFactory; import org.hl7.fhir.r5.model.MedicationKnowledge.MedicationKnowledgePackagingComponent; @@ -51,7 +53,7 @@ public class MedicationKnowledge40_50 extends VersionConvertor_40_50 { if (src.hasStatus()) tgt.setStatusElement(convertMedicationKnowledgeStatus(src.getStatusElement())); if (src.hasManufacturer()) - tgt.setManufacturer(convertReference(src.getManufacturer())); + tgt.setSponsor(convertReference(src.getManufacturer())); if (src.hasDoseForm()) tgt.setDoseForm(convertCodeableConcept(src.getDoseForm())); if (src.hasAmount()) @@ -90,8 +92,8 @@ public class MedicationKnowledge40_50 extends VersionConvertor_40_50 { tgt.setCode(convertCodeableConcept(src.getCode())); if (src.hasStatus()) tgt.setStatusElement(convertMedicationKnowledgeStatus(src.getStatusElement())); - if (src.hasManufacturer()) - tgt.setManufacturer(convertReference(src.getManufacturer())); + if (src.hasSponsor()) + tgt.setManufacturer(convertReference(src.getSponsor())); if (src.hasDoseForm()) tgt.setDoseForm(convertCodeableConcept(src.getDoseForm())); if (src.hasAmount()) @@ -221,8 +223,8 @@ public class MedicationKnowledge40_50 extends VersionConvertor_40_50 { tgt.getItem().setConcept(convertCodeableConcept(src.getItemCodeableConcept())); if (src.hasItemReference()) tgt.getItem().setReference(convertReference(src.getItemReference())); - if (src.hasIsActive()) - tgt.setIsActiveElement(convertBoolean(src.getIsActiveElement())); + if (src.getIsActive()) + tgt.setIsActive(new CodeableConcept(new Coding("ttp://terminology.hl7.org/CodeSystem/v3-RoleClass", "ACTI", "active ingredient "))); if (src.hasStrength()) tgt.setStrength(convertRatio(src.getStrength())); return tgt; @@ -238,7 +240,7 @@ public class MedicationKnowledge40_50 extends VersionConvertor_40_50 { if (src.getItem().hasReference()) tgt.setItem(convertType(src.getItem().getReference())); if (src.hasIsActive()) - tgt.setIsActiveElement(convertBoolean(src.getIsActiveElement())); + tgt.setIsActive(src.getIsActive().hasCoding("http://terminology.hl7.org/CodeSystem/v3-RoleClass", "ACTI")); if (src.hasStrengthRatio()) tgt.setStrength(convertRatio(src.getStrengthRatio())); return tgt; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationStatement40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationStatement40_50.java index 53289ed32..3b9995438 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationStatement40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicationStatement40_50.java @@ -119,7 +119,7 @@ public class MedicationStatement40_50 extends VersionConvertor_40_50 { VersionConvertor_40_50.copyElement(src, tgt); switch(src.getValue()) { case ACTIVE: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ACTIVE); + tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED); break; case COMPLETED: tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED); @@ -128,19 +128,19 @@ public class MedicationStatement40_50 extends VersionConvertor_40_50 { tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ENTEREDINERROR); break; case INTENDED: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.INTENDED); + tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN); break; case STOPPED: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.STOPPED); + tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN); break; case ONHOLD: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ONHOLD); + tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN); break; case UNKNOWN: tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN); break; case NOTTAKEN: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.NOTTAKEN); + tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED); break; default: tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.NULL); @@ -155,30 +155,30 @@ public class MedicationStatement40_50 extends VersionConvertor_40_50 { org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatusEnumFactory()); VersionConvertor_40_50.copyElement(src, tgt); switch(src.getValue()) { - case ACTIVE: - tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ACTIVE); - break; +// case ACTIVE: +// tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ACTIVE); +// break; case COMPLETED: tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.COMPLETED); break; case ENTEREDINERROR: tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ENTEREDINERROR); break; - case INTENDED: - tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.INTENDED); - break; - case STOPPED: - tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.STOPPED); - break; - case ONHOLD: - tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ONHOLD); - break; +// case UNKNOWN: +// tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.INTENDED); +// break; +// case STOPPED: +// tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.STOPPED); +// break; +// case ONHOLD: +// tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ONHOLD); +// break; case UNKNOWN: tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.UNKNOWN); break; - case NOTTAKEN: - tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.NOTTAKEN); - break; +// case NOTTAKEN: +// tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.NOTTAKEN); +// break; default: tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.NULL); break; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicinalProductDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicinalProductDefinition40_50.java deleted file mode 100644 index 70f84c3f0..000000000 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/MedicinalProductDefinition40_50.java +++ /dev/null @@ -1,344 +0,0 @@ -package org.hl7.fhir.convertors.conv40_50; - - -import org.hl7.fhir.convertors.VersionConvertor_40_50; -import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r4.model.MarketingStatus; -import org.hl7.fhir.r5.model.CodeableReference; - -/* - Copyright (c) 2011+, HL7, Inc. - All rights reserved. - - 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 - 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 - 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 - POSSIBILITY OF SUCH DAMAGE. - -*/ -// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0 -public class MedicinalProductDefinition40_50 extends VersionConvertor_40_50 { - - public static org.hl7.fhir.r5.model.MedicinalProductDefinition convertMedicinalProduct(org.hl7.fhir.r4.model.MedicinalProduct src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.MedicinalProductDefinition tgt = new org.hl7.fhir.r5.model.MedicinalProductDefinition(); - copyDomainResource(src, tgt); - for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); - if (src.hasType()) - tgt.setType(convertCodeableConcept(src.getType())); - if (src.hasDomain()) - tgt.getDomain().addCoding(convertCoding(src.getDomain())); - // version (new) - // status (new) - // description (new) - if (src.hasCombinedPharmaceuticalDoseForm()) - tgt.setCombinedPharmaceuticalDoseForm(convertCodeableConcept(src.getCombinedPharmaceuticalDoseForm())); - // indication (new) - if (src.hasLegalStatusOfSupply()) - tgt.setLegalStatusOfSupply(convertCodeableConcept(src.getLegalStatusOfSupply())); - if (src.hasAdditionalMonitoringIndicator()) - tgt.setAdditionalMonitoringIndicator(convertCodeableConcept(src.getAdditionalMonitoringIndicator())); - for (org.hl7.fhir.r4.model.StringType t : src.getSpecialMeasures()) { - // specialMeasures string -> CodeableConcept - org.hl7.fhir.r5.model.CodeableConcept c = new org.hl7.fhir.r5.model.CodeableConcept(); - tgt.addSpecialMeasures(c); - c.setTextElement(convertString(t)); - } - if (src.hasPaediatricUseIndicator()) - tgt.setPaediatricUseIndicator(convertCodeableConcept(src.getPaediatricUseIndicator())); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getProductClassification()) tgt.addClassification(convertCodeableConcept(t)); - for (org.hl7.fhir.r4.model.MarketingStatus t : src.getMarketingStatus()) tgt.addMarketingStatus(convertMarketingStatus(t)); - for (org.hl7.fhir.r4.model.Reference t : src.getPharmaceuticalProduct()) tgt.addPharmaceuticalProduct(convertReference(t)); - for (org.hl7.fhir.r4.model.Reference t : src.getPackagedMedicinalProduct()) tgt.addPackagedMedicinalProduct(convertReference(t)); - // ingredient (new) - for (org.hl7.fhir.r4.model.Reference t : src.getAttachedDocument()) tgt.addAttachedDocument(convertReference(t)); - for (org.hl7.fhir.r4.model.Reference t : src.getMasterFile()) tgt.addMasterFile(convertReference(t)); - for (org.hl7.fhir.r4.model.Reference t : src.getContact()) { - // contact (Reference -> complex - org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionContactComponent c = new org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionContactComponent(); - tgt.addContact(c); - c.setContact(convertReference(t)); - } - for (org.hl7.fhir.r4.model.Reference t : src.getClinicalTrial()) tgt.addClinicalTrial(convertReference(t)); - for (org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameComponent srcName : src.getName()) { - org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameComponent tgtName = new org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameComponent(); - copyElement(srcName, tgtName); - tgt.addName(tgtName); - tgtName.setProductNameElement(convertString(srcName.getProductNameElement())); - //type (new) - for (org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameNamePartComponent srcPart : srcName.getNamePart()) { - org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameNamePartComponent tgtPart = new org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameNamePartComponent(); - copyElement(srcPart, tgtPart); - tgtName.addNamePart(tgtPart); - tgtPart.setPartElement(convertString(srcPart.getPartElement())); - tgtPart.getType().addCoding(convertCoding(srcPart.getType())); - } - for (org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameCountryLanguageComponent srcLang : srcName.getCountryLanguage()) { - org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameCountryLanguageComponent tgtLang = new org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameCountryLanguageComponent(); - copyElement(srcLang, tgtLang); - tgtName.addCountryLanguage(tgtLang); - tgtLang.setCountry(convertCodeableConcept(srcLang.getCountry())); - tgtLang.setLanguage(convertCodeableConcept(srcLang.getLanguage())); - } - } - for (org.hl7.fhir.r4.model.Identifier t : src.getCrossReference()) { - // cross-reference Identifier -> complex - todo -// org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionCrossReferenceComponent c = new org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionCrossReferenceComponent(); -// tgt.addCrossReference(c); -// c.setProduct(convertIdentifier(t)); - } - for (org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductManufacturingBusinessOperationComponent srcMBO : src.getManufacturingBusinessOperation()) { - org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent tgtMBO = new org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent(); - copyElement(srcMBO, tgtMBO); - tgt.addManufacturingBusinessOperation(tgtMBO); - if (srcMBO.hasOperationType()) { - tgtMBO.getType().setConcept(convertCodeableConcept(srcMBO.getOperationType())); - // operationType -> type[x] - } - if (srcMBO.hasAuthorisationReferenceNumber()) - throw new FHIRException("Converting MedicinalProduct.ManufacturingBusinessOperation.authorizationReferenceNumber is not supported"); - if (srcMBO.hasEffectiveDate()) { - // effectiveDate - dateTime -> Period - org.hl7.fhir.r5.model.Period p = new org.hl7.fhir.r5.model.Period(); - tgtMBO.setEffectiveDate(p); - p.setStartElement(convertDateTime(srcMBO.getEffectiveDateElement())); - p.setEndElement(convertDateTime(srcMBO.getEffectiveDateElement())); - } - if (srcMBO.hasConfidentialityIndicator()) - tgtMBO.setConfidentialityIndicator(convertCodeableConcept(srcMBO.getConfidentialityIndicator())); - for (org.hl7.fhir.r4.model.Reference t : srcMBO.getManufacturer()) tgtMBO.addManufacturer(convertReference(t)); - if (srcMBO.hasRegulator()) - throw new FHIRException("Converting MedicinalProduct.ManufacturingBusinessOperation.regulator is not supported"); - // added authorization - } - if (src.hasSpecialDesignation()) - throw new FHIRException("Converting MedicinalProduct.specialDesignation is not supported"); - - return tgt; - } -// Todo convert references - - public static org.hl7.fhir.r4.model.MedicinalProduct convertMedicinalProductDefinition(org.hl7.fhir.r5.model.MedicinalProductDefinition src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.MedicinalProduct tgt = new org.hl7.fhir.r4.model.MedicinalProduct(); - copyDomainResource(src, tgt); - for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); - if (src.hasType()) - tgt.setType(convertCodeableConcept(src.getType())); - if (src.getDomain().hasCoding()) - tgt.setDomain(convertCoding(src.getDomain().getCodingFirstRep())); - if (src.hasVersion()) - throw new FHIRException("Converting MedicinalProductDefinition.version is not supported"); - if (src.hasStatus()) - throw new FHIRException("Converting MedicinalProductDefinition.status is not supported"); - if (src.hasDescription()) - throw new FHIRException("Converting MedicinalProductDefinition.description is not supported"); - if (src.hasCombinedPharmaceuticalDoseForm()) - tgt.setCombinedPharmaceuticalDoseForm(convertCodeableConcept(src.getCombinedPharmaceuticalDoseForm())); - if (src.hasIndication()) - throw new FHIRException("Converting MedicinalProductDefinition.indication is not supported"); - if (src.hasLegalStatusOfSupply()) - tgt.setLegalStatusOfSupply(convertCodeableConcept(src.getLegalStatusOfSupply())); - if (src.hasAdditionalMonitoringIndicator()) - tgt.setAdditionalMonitoringIndicator(convertCodeableConcept(src.getAdditionalMonitoringIndicator())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getSpecialMeasures()) { - // specialMeasures CodeableConcept -> string - if (t.hasText()) { - org.hl7.fhir.r4.model.StringType s = tgt.addSpecialMeasuresElement(); - copyElement(t.getTextElement(), s); - s.setValue(t.getText()); - } - checkBase(t, "MedicinalProductDefinition.specialMeasures"); - if (t.hasCoding()) - throw new FHIRException("Converting MedicinalProductDefinition.specialMeasures.coding is not supported"); - } - if (src.hasPaediatricUseIndicator()) - tgt.setPaediatricUseIndicator(convertCodeableConcept(src.getPaediatricUseIndicator())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getClassification()) tgt.addProductClassification(convertCodeableConcept(t)); - for (org.hl7.fhir.r5.model.MarketingStatus t : src.getMarketingStatus()) tgt.addMarketingStatus(convertMarketingStatus(t)); - for (org.hl7.fhir.r5.model.Reference t : src.getPharmaceuticalProduct()) tgt.addPharmaceuticalProduct(convertReference(t)); - for (org.hl7.fhir.r5.model.Reference t : src.getPackagedMedicinalProduct()) tgt.addPackagedMedicinalProduct(convertReference(t)); - // ingredient (new) - for (org.hl7.fhir.r5.model.Reference t : src.getAttachedDocument()) tgt.addAttachedDocument(convertReference(t)); - for (org.hl7.fhir.r5.model.Reference t : src.getMasterFile()) tgt.addMasterFile(convertReference(t)); - for (org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionContactComponent t : src.getContact()) { - // contact complex -> reference - if (t.hasContact()) { - tgt.addContact(convertReference(t.getContact())); - } - checkBase(t, "MedicinalProductDefinition.contact"); - if (t.hasType()) - throw new FHIRException("Converting MedicinalProductDefinition.contact.type is not supported"); - } - for (org.hl7.fhir.r5.model.Reference t : src.getClinicalTrial()) tgt.addClinicalTrial(convertReference(t)); - for (org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameComponent srcName : src.getName()) { - org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameComponent tgtName = new org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameComponent(); - copyElement(srcName, tgtName); - tgt.addName(tgtName); - tgtName.setProductNameElement(convertString(srcName.getProductNameElement())); - //type (new) - for (org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameNamePartComponent srcPart : srcName.getNamePart()) { - org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameNamePartComponent tgtPart = new org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameNamePartComponent(); - copyElement(srcPart, tgtPart); - tgtName.addNamePart(tgtPart); - tgtPart.setPartElement(convertString(srcPart.getPartElement())); - if (srcPart.getType().hasCoding()) { - tgtPart.setType(convertCoding(srcPart.getType().getCodingFirstRep())); - } - } - for (org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionNameCountryLanguageComponent srcLang : srcName.getCountryLanguage()) { - org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameCountryLanguageComponent tgtLang = new org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductNameCountryLanguageComponent(); - copyElement(srcLang, tgtLang); - tgtName.addCountryLanguage(tgtLang); - tgtLang.setCountry(convertCodeableConcept(srcLang.getCountry())); - tgtLang.setLanguage(convertCodeableConcept(srcLang.getLanguage())); - } - } - for (org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionCrossReferenceComponent t : src.getCrossReference()) { - // cross-reference complex -> Identifier - todo -// if (t.hasProduct()) { -// if (t.getProduct() instanceof org.hl7.fhir.r5.model.Identifier) -// tgt.addCrossReference(convertIdentifier((org.hl7.fhir.r5.model.Identifier)t.getProduct())); -// else -// throw new FHIRException("Converting MedicinalProductDefinition.crossReference.productReference is not supported"); -// } - checkBase(t, "MedicinalProductDefinition.crossReference"); - if (t.hasType()) - throw new FHIRException("Converting MedicinalProductDefinition.crossReference.type is not supported"); - } - for (org.hl7.fhir.r5.model.MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent srcMBO : src.getManufacturingBusinessOperation()) { - org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductManufacturingBusinessOperationComponent tgtMBO = new org.hl7.fhir.r4.model.MedicinalProduct.MedicinalProductManufacturingBusinessOperationComponent(); - copyElement(srcMBO, tgtMBO); - tgt.addManufacturingBusinessOperation(tgtMBO); - if (srcMBO.hasType()) { - // type[x] -> operationType - if (srcMBO.getType().hasConcept()) - tgtMBO.setOperationType(convertCodeableConcept(srcMBO.getType().getConcept())); - else - throw new FHIRException("Converting MedicinalProductDefinition.manufacturingBusinessOperation.typeReference is not supported"); - } - // added authorisationReferenceNumber - if (srcMBO.hasEffectiveDate()) { - // effectiveDate - Period -> dateTime - org.hl7.fhir.r5.model.Period d = srcMBO.getEffectiveDate(); - checkBase(srcMBO, "MedicinalProductDefinition.manufacturingBusinessOperation.effectiveDate"); - if (d.hasStart() || d.hasEnd()) { - if (d.hasStart() != d.hasEnd() || !d.getStart().equals(d.getEnd())) - throw new FHIRException("Converting MedicinalProductDefinition.manufacturingBusinessOperation.effectiveDate is not supported when start is not identical to end"); - else - tgtMBO.setEffectiveDateElement(convertDateTime(d.getStartElement())); - } - } - if (srcMBO.hasAuthorization()) - throw new FHIRException("Converting MedicinalProductDefinition.manufacturingBusinessOperation.authorization is not supported"); - if (srcMBO.hasConfidentialityIndicator()) - tgtMBO.setConfidentialityIndicator(convertCodeableConcept(srcMBO.getConfidentialityIndicator())); - for (org.hl7.fhir.r5.model.Reference t : srcMBO.getManufacturer()) tgtMBO.addManufacturer(convertReference(t)); - // Added regulator - // added authorization - } - // added specialDesignation - return tgt; - } - - static public void checkBase(org.hl7.fhir.r5.model.Element e, String path) throws FHIRException { - if (e.hasId()) - throw new FHIRException ("Converting " + path + ".id is not supported"); - if (e.hasExtension()) - throw new FHIRException ("Converting " + path + ".extension is not supported"); - } - - static public org.hl7.fhir.r5.model.Enumeration convertMedicationStatementStatus(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodesEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case ACTIVE: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ACTIVE); - break; - case COMPLETED: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.COMPLETED); - break; - case ENTEREDINERROR: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ENTEREDINERROR); - break; - case INTENDED: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.INTENDED); - break; - case STOPPED: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.STOPPED); - break; - case ONHOLD: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.ONHOLD); - break; - case UNKNOWN: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.UNKNOWN); - break; - case NOTTAKEN: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.NOTTAKEN); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.MedicationUsage.MedicationUsageStatusCodes.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertMedicationStatementStatus(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatusEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case ACTIVE: - tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ACTIVE); - break; - case COMPLETED: - tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.COMPLETED); - break; - case ENTEREDINERROR: - tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ENTEREDINERROR); - break; - case INTENDED: - tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.INTENDED); - break; - case STOPPED: - tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.STOPPED); - break; - case ONHOLD: - tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.ONHOLD); - break; - case UNKNOWN: - tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.UNKNOWN); - break; - case NOTTAKEN: - tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.NOTTAKEN); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus.NULL); - break; - } - return tgt; - } -} \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ObservationDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ObservationDefinition40_50.java index 318430872..455e43472 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ObservationDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ObservationDefinition40_50.java @@ -57,15 +57,15 @@ public class ObservationDefinition40_50 extends VersionConvertor_40_50 { tgt.setPreferredReportNameElement(convertString(src.getPreferredReportNameElement())); if (src.hasQuantitativeDetails()) tgt.setQuantitativeDetails(convertObservationDefinitionQuantitativeDetailsComponent(src.getQuantitativeDetails())); - for (org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent t : src.getQualifiedInterval()) tgt.addQualifiedInterval(convertObservationDefinitionQualifiedIntervalComponent(t)); - if (src.hasValidCodedValueSet()) - tgt.setValidCodedValueSet(convertReference(src.getValidCodedValueSet())); - if (src.hasNormalCodedValueSet()) - tgt.setNormalCodedValueSet(convertReference(src.getNormalCodedValueSet())); - if (src.hasAbnormalCodedValueSet()) - tgt.setAbnormalCodedValueSet(convertReference(src.getAbnormalCodedValueSet())); - if (src.hasCriticalCodedValueSet()) - tgt.setCriticalCodedValueSet(convertReference(src.getCriticalCodedValueSet())); +// for (org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent t : src.getQualifiedInterval()) tgt.addQualifiedInterval(convertObservationDefinitionQualifiedIntervalComponent(t)); +// if (src.hasValidCodedValueSet()) +// tgt.setValidCodedValueSet(convertReference(src.getValidCodedValueSet())); +// if (src.hasNormalCodedValueSet()) +// tgt.setNormalCodedValueSet(convertReference(src.getNormalCodedValueSet())); +// if (src.hasAbnormalCodedValueSet()) +// tgt.setAbnormalCodedValueSet(convertReference(src.getAbnormalCodedValueSet())); +// if (src.hasCriticalCodedValueSet()) +// tgt.setCriticalCodedValueSet(convertReference(src.getCriticalCodedValueSet())); return tgt; } @@ -90,15 +90,15 @@ public class ObservationDefinition40_50 extends VersionConvertor_40_50 { tgt.setPreferredReportNameElement(convertString(src.getPreferredReportNameElement())); if (src.hasQuantitativeDetails()) tgt.setQuantitativeDetails(convertObservationDefinitionQuantitativeDetailsComponent(src.getQuantitativeDetails())); - for (org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent t : src.getQualifiedInterval()) tgt.addQualifiedInterval(convertObservationDefinitionQualifiedIntervalComponent(t)); - if (src.hasValidCodedValueSet()) - tgt.setValidCodedValueSet(convertReference(src.getValidCodedValueSet())); - if (src.hasNormalCodedValueSet()) - tgt.setNormalCodedValueSet(convertReference(src.getNormalCodedValueSet())); - if (src.hasAbnormalCodedValueSet()) - tgt.setAbnormalCodedValueSet(convertReference(src.getAbnormalCodedValueSet())); - if (src.hasCriticalCodedValueSet()) - tgt.setCriticalCodedValueSet(convertReference(src.getCriticalCodedValueSet())); +// for (org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent t : src.getQualifiedInterval()) tgt.addQualifiedInterval(convertObservationDefinitionQualifiedIntervalComponent(t)); +// if (src.hasValidCodedValueSet()) +// tgt.setValidCodedValueSet(convertReference(src.getValidCodedValueSet())); +// if (src.hasNormalCodedValueSet()) +// tgt.setNormalCodedValueSet(convertReference(src.getNormalCodedValueSet())); +// if (src.hasAbnormalCodedValueSet()) +// tgt.setAbnormalCodedValueSet(convertReference(src.getAbnormalCodedValueSet())); +// if (src.hasCriticalCodedValueSet()) +// tgt.setCriticalCodedValueSet(convertReference(src.getCriticalCodedValueSet())); return tgt; } @@ -226,51 +226,51 @@ public class ObservationDefinition40_50 extends VersionConvertor_40_50 { return tgt; } - public static org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent convertObservationDefinitionQualifiedIntervalComponent(org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent tgt = new org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent(); - copyElement(src, tgt); - if (src.hasCategory()) - tgt.setCategoryElement(convertObservationRangeCategory(src.getCategoryElement())); - if (src.hasRange()) - tgt.setRange(convertRange(src.getRange())); - if (src.hasContext()) - tgt.setContext(convertCodeableConcept(src.getContext())); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getAppliesTo()) tgt.addAppliesTo(convertCodeableConcept(t)); - if (src.hasGender()) - tgt.setGenderElement(Enumerations40_50.convertAdministrativeGender(src.getGenderElement())); - if (src.hasAge()) - tgt.setAge(convertRange(src.getAge())); - if (src.hasGestationalAge()) - tgt.setGestationalAge(convertRange(src.getGestationalAge())); - if (src.hasCondition()) - tgt.setConditionElement(convertString(src.getConditionElement())); - return tgt; - } - - public static org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent convertObservationDefinitionQualifiedIntervalComponent(org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent tgt = new org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent(); - copyElement(src, tgt); - if (src.hasCategory()) - tgt.setCategoryElement(convertObservationRangeCategory(src.getCategoryElement())); - if (src.hasRange()) - tgt.setRange(convertRange(src.getRange())); - if (src.hasContext()) - tgt.setContext(convertCodeableConcept(src.getContext())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getAppliesTo()) tgt.addAppliesTo(convertCodeableConcept(t)); - if (src.hasGender()) - tgt.setGenderElement(Enumerations40_50.convertAdministrativeGender(src.getGenderElement())); - if (src.hasAge()) - tgt.setAge(convertRange(src.getAge())); - if (src.hasGestationalAge()) - tgt.setGestationalAge(convertRange(src.getGestationalAge())); - if (src.hasCondition()) - tgt.setConditionElement(convertString(src.getConditionElement())); - return tgt; - } +// public static org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent convertObservationDefinitionQualifiedIntervalComponent(org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent tgt = new org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent(); +// copyElement(src, tgt); +// if (src.hasCategory()) +// tgt.setCategoryElement(convertObservationRangeCategory(src.getCategoryElement())); +// if (src.hasRange()) +// tgt.setRange(convertRange(src.getRange())); +// if (src.hasContext()) +// tgt.setContext(convertCodeableConcept(src.getContext())); +// for (org.hl7.fhir.r4.model.CodeableConcept t : src.getAppliesTo()) tgt.addAppliesTo(convertCodeableConcept(t)); +// if (src.hasGender()) +// tgt.setGenderElement(Enumerations40_50.convertAdministrativeGender(src.getGenderElement())); +// if (src.hasAge()) +// tgt.setAge(convertRange(src.getAge())); +// if (src.hasGestationalAge()) +// tgt.setGestationalAge(convertRange(src.getGestationalAge())); +// if (src.hasCondition()) +// tgt.setConditionElement(convertString(src.getConditionElement())); +// return tgt; +// } +// +// public static org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent convertObservationDefinitionQualifiedIntervalComponent(org.hl7.fhir.r5.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent src) throws FHIRException { +// if (src == null) +// return null; +// org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent tgt = new org.hl7.fhir.r4.model.ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent(); +// copyElement(src, tgt); +// if (src.hasCategory()) +// tgt.setCategoryElement(convertObservationRangeCategory(src.getCategoryElement())); +// if (src.hasRange()) +// tgt.setRange(convertRange(src.getRange())); +// if (src.hasContext()) +// tgt.setContext(convertCodeableConcept(src.getContext())); +// for (org.hl7.fhir.r5.model.CodeableConcept t : src.getAppliesTo()) tgt.addAppliesTo(convertCodeableConcept(t)); +// if (src.hasGender()) +// tgt.setGenderElement(Enumerations40_50.convertAdministrativeGender(src.getGenderElement())); +// if (src.hasAge()) +// tgt.setAge(convertRange(src.getAge())); +// if (src.hasGestationalAge()) +// tgt.setGestationalAge(convertRange(src.getGestationalAge())); +// if (src.hasCondition()) +// tgt.setConditionElement(convertString(src.getConditionElement())); +// return tgt; +// } static public org.hl7.fhir.r5.model.Enumeration convertObservationRangeCategory(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/PaymentReconciliation40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/PaymentReconciliation40_50.java deleted file mode 100644 index 3e832f368..000000000 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/PaymentReconciliation40_50.java +++ /dev/null @@ -1,287 +0,0 @@ -package org.hl7.fhir.convertors.conv40_50; - - -import org.hl7.fhir.convertors.VersionConvertor_40_50; -import org.hl7.fhir.exceptions.FHIRException; - -/* - Copyright (c) 2011+, HL7, Inc. - All rights reserved. - - 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 - 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 - 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 - POSSIBILITY OF SUCH DAMAGE. - -*/ -// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0 -public class PaymentReconciliation40_50 extends VersionConvertor_40_50 { - - public static org.hl7.fhir.r5.model.PaymentReconciliation convertPaymentReconciliation(org.hl7.fhir.r4.model.PaymentReconciliation src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.PaymentReconciliation tgt = new org.hl7.fhir.r5.model.PaymentReconciliation(); - copyDomainResource(src, tgt); - for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); - if (src.hasStatus()) - tgt.setStatusElement(convertPaymentReconciliationStatus(src.getStatusElement())); - if (src.hasPeriod()) - tgt.setPeriod(convertPeriod(src.getPeriod())); - if (src.hasCreated()) - tgt.setCreatedElement(convertDateTime(src.getCreatedElement())); - if (src.hasPaymentIssuer()) - tgt.setPaymentIssuer(convertReference(src.getPaymentIssuer())); - if (src.hasRequest()) - tgt.setRequest(convertReference(src.getRequest())); - if (src.hasRequestor()) - tgt.setRequestor(convertReference(src.getRequestor())); - if (src.hasOutcome()) - tgt.setOutcomeElement(convertRemittanceOutcome(src.getOutcomeElement())); - if (src.hasDisposition()) - tgt.setDispositionElement(convertString(src.getDispositionElement())); - if (src.hasPaymentDate()) - tgt.setPaymentDateElement(convertDate(src.getPaymentDateElement())); - if (src.hasPaymentAmount()) - tgt.setPaymentAmount(convertMoney(src.getPaymentAmount())); - if (src.hasPaymentIdentifier()) - tgt.setPaymentIdentifier(convertIdentifier(src.getPaymentIdentifier())); - for (org.hl7.fhir.r4.model.PaymentReconciliation.DetailsComponent t : src.getDetail()) tgt.addDetail(convertDetailsComponent(t)); - if (src.hasFormCode()) - tgt.setFormCode(convertCodeableConcept(src.getFormCode())); - for (org.hl7.fhir.r4.model.PaymentReconciliation.NotesComponent t : src.getProcessNote()) tgt.addProcessNote(convertNotesComponent(t)); - return tgt; - } - - public static org.hl7.fhir.r4.model.PaymentReconciliation convertPaymentReconciliation(org.hl7.fhir.r5.model.PaymentReconciliation src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.PaymentReconciliation tgt = new org.hl7.fhir.r4.model.PaymentReconciliation(); - copyDomainResource(src, tgt); - for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); - if (src.hasStatus()) - tgt.setStatusElement(convertPaymentReconciliationStatus(src.getStatusElement())); - if (src.hasPeriod()) - tgt.setPeriod(convertPeriod(src.getPeriod())); - if (src.hasCreated()) - tgt.setCreatedElement(convertDateTime(src.getCreatedElement())); - if (src.hasPaymentIssuer()) - tgt.setPaymentIssuer(convertReference(src.getPaymentIssuer())); - if (src.hasRequest()) - tgt.setRequest(convertReference(src.getRequest())); - if (src.hasRequestor()) - tgt.setRequestor(convertReference(src.getRequestor())); - if (src.hasOutcome()) - tgt.setOutcomeElement(convertRemittanceOutcome(src.getOutcomeElement())); - if (src.hasDisposition()) - tgt.setDispositionElement(convertString(src.getDispositionElement())); - if (src.hasPaymentDate()) - tgt.setPaymentDateElement(convertDate(src.getPaymentDateElement())); - if (src.hasPaymentAmount()) - tgt.setPaymentAmount(convertMoney(src.getPaymentAmount())); - if (src.hasPaymentIdentifier()) - tgt.setPaymentIdentifier(convertIdentifier(src.getPaymentIdentifier())); - for (org.hl7.fhir.r5.model.PaymentReconciliation.DetailsComponent t : src.getDetail()) tgt.addDetail(convertDetailsComponent(t)); - if (src.hasFormCode()) - tgt.setFormCode(convertCodeableConcept(src.getFormCode())); - for (org.hl7.fhir.r5.model.PaymentReconciliation.NotesComponent t : src.getProcessNote()) tgt.addProcessNote(convertNotesComponent(t)); - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertPaymentReconciliationStatus(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodesEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case ACTIVE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ACTIVE); - break; - case CANCELLED: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.CANCELLED); - break; - case DRAFT: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.DRAFT); - break; - case ENTEREDINERROR: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.ENTEREDINERROR); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.FinancialResourceStatusCodes.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertPaymentReconciliationStatus(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatusEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case ACTIVE: - tgt.setValue(org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus.ACTIVE); - break; - case CANCELLED: - tgt.setValue(org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus.CANCELLED); - break; - case DRAFT: - tgt.setValue(org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus.DRAFT); - break; - case ENTEREDINERROR: - tgt.setValue(org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus.ENTEREDINERROR); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.PaymentReconciliation.PaymentReconciliationStatus.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertRemittanceOutcome(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodesEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case QUEUED: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.QUEUED); - break; - case COMPLETE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.COMPLETE); - break; - case ERROR: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.ERROR); - break; - case PARTIAL: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.PARTIAL); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ClaimProcessingCodes.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertRemittanceOutcome(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.Enumerations.RemittanceOutcomeEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case QUEUED: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.QUEUED); - break; - case COMPLETE: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.COMPLETE); - break; - case ERROR: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.ERROR); - break; - case PARTIAL: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.PARTIAL); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.Enumerations.RemittanceOutcome.NULL); - break; - } - return tgt; - } - - public static org.hl7.fhir.r5.model.PaymentReconciliation.DetailsComponent convertDetailsComponent(org.hl7.fhir.r4.model.PaymentReconciliation.DetailsComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.PaymentReconciliation.DetailsComponent tgt = new org.hl7.fhir.r5.model.PaymentReconciliation.DetailsComponent(); - copyElement(src, tgt); - if (src.hasIdentifier()) - tgt.setIdentifier(convertIdentifier(src.getIdentifier())); - if (src.hasPredecessor()) - tgt.setPredecessor(convertIdentifier(src.getPredecessor())); - if (src.hasType()) - tgt.setType(convertCodeableConcept(src.getType())); - if (src.hasRequest()) - tgt.setRequest(convertReference(src.getRequest())); - if (src.hasSubmitter()) - tgt.setSubmitter(convertReference(src.getSubmitter())); - if (src.hasResponse()) - tgt.setResponse(convertReference(src.getResponse())); - if (src.hasDate()) - tgt.setDateElement(convertDate(src.getDateElement())); - if (src.hasResponsible()) - tgt.setResponsible(convertReference(src.getResponsible())); - if (src.hasPayee()) - tgt.setPayee(convertReference(src.getPayee())); - if (src.hasAmount()) - tgt.setAmount(convertMoney(src.getAmount())); - return tgt; - } - - public static org.hl7.fhir.r4.model.PaymentReconciliation.DetailsComponent convertDetailsComponent(org.hl7.fhir.r5.model.PaymentReconciliation.DetailsComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.PaymentReconciliation.DetailsComponent tgt = new org.hl7.fhir.r4.model.PaymentReconciliation.DetailsComponent(); - copyElement(src, tgt); - if (src.hasIdentifier()) - tgt.setIdentifier(convertIdentifier(src.getIdentifier())); - if (src.hasPredecessor()) - tgt.setPredecessor(convertIdentifier(src.getPredecessor())); - if (src.hasType()) - tgt.setType(convertCodeableConcept(src.getType())); - if (src.hasRequest()) - tgt.setRequest(convertReference(src.getRequest())); - if (src.hasSubmitter()) - tgt.setSubmitter(convertReference(src.getSubmitter())); - if (src.hasResponse()) - tgt.setResponse(convertReference(src.getResponse())); - if (src.hasDate()) - tgt.setDateElement(convertDate(src.getDateElement())); - if (src.hasResponsible()) - tgt.setResponsible(convertReference(src.getResponsible())); - if (src.hasPayee()) - tgt.setPayee(convertReference(src.getPayee())); - if (src.hasAmount()) - tgt.setAmount(convertMoney(src.getAmount())); - return tgt; - } - - public static org.hl7.fhir.r5.model.PaymentReconciliation.NotesComponent convertNotesComponent(org.hl7.fhir.r4.model.PaymentReconciliation.NotesComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.PaymentReconciliation.NotesComponent tgt = new org.hl7.fhir.r5.model.PaymentReconciliation.NotesComponent(); - copyElement(src, tgt); - if (src.hasType()) - tgt.setTypeElement(Enumerations40_50.convertNoteType(src.getTypeElement())); - if (src.hasText()) - tgt.setTextElement(convertString(src.getTextElement())); - return tgt; - } - - public static org.hl7.fhir.r4.model.PaymentReconciliation.NotesComponent convertNotesComponent(org.hl7.fhir.r5.model.PaymentReconciliation.NotesComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.PaymentReconciliation.NotesComponent tgt = new org.hl7.fhir.r4.model.PaymentReconciliation.NotesComponent(); - copyElement(src, tgt); - if (src.hasType()) - tgt.setTypeElement(Enumerations40_50.convertNoteType(src.getTypeElement())); - if (src.hasText()) - tgt.setTextElement(convertString(src.getTextElement())); - return tgt; - } -} \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/PlanDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/PlanDefinition40_50.java index 784ec7123..f187d45a9 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/PlanDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/PlanDefinition40_50.java @@ -3,6 +3,9 @@ package org.hl7.fhir.convertors.conv40_50; import org.hl7.fhir.convertors.VersionConvertor_40_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.DataRequirement; +import org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionInputComponent; +import org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionOutputComponent; /* Copyright (c) 2011+, HL7, Inc. @@ -230,7 +233,7 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 { tgt.setTextEquivalentElement(convertString(src.getTextEquivalentElement())); if (src.hasPriority()) tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement())); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.addCode(convertCodeableConcept(t)); + for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.setCode(convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReason()) tgt.addReason(convertCodeableConcept(t)); for (org.hl7.fhir.r4.model.RelatedArtifact t : src.getDocumentation()) tgt.addDocumentation(convertRelatedArtifact(t)); for (org.hl7.fhir.r4.model.IdType t : src.getGoalId()) tgt.getGoalId().add(convertId(t)); @@ -238,8 +241,8 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 { tgt.setSubject(convertType(src.getSubject())); for (org.hl7.fhir.r4.model.TriggerDefinition t : src.getTrigger()) tgt.addTrigger(convertTriggerDefinition(t)); for (org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionConditionComponent t : src.getCondition()) tgt.addCondition(convertPlanDefinitionActionConditionComponent(t)); - for (org.hl7.fhir.r4.model.DataRequirement t : src.getInput()) tgt.addInput(convertDataRequirement(t)); - for (org.hl7.fhir.r4.model.DataRequirement t : src.getOutput()) tgt.addOutput(convertDataRequirement(t)); + for (org.hl7.fhir.r4.model.DataRequirement t : src.getInput()) tgt.addInput(wrapInput(convertDataRequirement(t))); + for (org.hl7.fhir.r4.model.DataRequirement t : src.getOutput()) tgt.addOutput(wrapOutput(convertDataRequirement(t))); for (org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent t : src.getRelatedAction()) tgt.addRelatedAction(convertPlanDefinitionActionRelatedActionComponent(t)); if (src.hasTiming()) tgt.setTiming(convertType(src.getTiming())); @@ -265,6 +268,14 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 { return tgt; } + private static PlanDefinitionActionOutputComponent wrapOutput(DataRequirement dr) { + return new PlanDefinitionActionOutputComponent().setRequirement(dr); + } + + private static PlanDefinitionActionInputComponent wrapInput(DataRequirement dr) { + return new PlanDefinitionActionInputComponent().setRequirement(dr); + } + public static org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionComponent convertPlanDefinitionActionComponent(org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionComponent src) throws FHIRException { if (src == null) return null; @@ -280,7 +291,7 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 { tgt.setTextEquivalentElement(convertString(src.getTextEquivalentElement())); if (src.hasPriority()) tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCode()) tgt.addCode(convertCodeableConcept(t)); + if (src.hasCode()) tgt.addCode(convertCodeableConcept(src.getCode())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getReason()) tgt.addReason(convertCodeableConcept(t)); for (org.hl7.fhir.r5.model.RelatedArtifact t : src.getDocumentation()) tgt.addDocumentation(convertRelatedArtifact(t)); for (org.hl7.fhir.r5.model.IdType t : src.getGoalId()) tgt.getGoalId().add(convertId(t)); @@ -288,8 +299,8 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 { tgt.setSubject(convertType(src.getSubject())); for (org.hl7.fhir.r5.model.TriggerDefinition t : src.getTrigger()) tgt.addTrigger(convertTriggerDefinition(t)); for (org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionConditionComponent t : src.getCondition()) tgt.addCondition(convertPlanDefinitionActionConditionComponent(t)); - for (org.hl7.fhir.r5.model.DataRequirement t : src.getInput()) tgt.addInput(convertDataRequirement(t)); - for (org.hl7.fhir.r5.model.DataRequirement t : src.getOutput()) tgt.addOutput(convertDataRequirement(t)); + for (PlanDefinitionActionInputComponent t : src.getInput()) tgt.addInput(convertDataRequirement(t.getRequirement())); + for (PlanDefinitionActionOutputComponent t : src.getOutput()) tgt.addOutput(convertDataRequirement(t.getRequirement())); for (org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent t : src.getRelatedAction()) tgt.addRelatedAction(convertPlanDefinitionActionRelatedActionComponent(t)); if (src.hasTiming()) tgt.setTiming(convertType(src.getTiming())); @@ -665,7 +676,7 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 { org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.r5.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent(); copyElement(src, tgt); if (src.hasActionId()) - tgt.setActionIdElement(convertId(src.getActionIdElement())); + tgt.setTargetIdElement(convertId(src.getActionIdElement())); if (src.hasRelationship()) tgt.setRelationshipElement(convertActionRelationshipType(src.getRelationshipElement())); if (src.hasOffset()) @@ -678,8 +689,8 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 { return null; org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent tgt = new org.hl7.fhir.r4.model.PlanDefinition.PlanDefinitionActionRelatedActionComponent(); copyElement(src, tgt); - if (src.hasActionId()) - tgt.setActionIdElement(convertId(src.getActionIdElement())); + if (src.hasTargetId()) + tgt.setActionIdElement(convertId(src.getTargetIdElement())); if (src.hasRelationship()) tgt.setRelationshipElement(convertActionRelationshipType(src.getRelationshipElement())); if (src.hasOffset()) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Questionnaire40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Questionnaire40_50.java index 24f9afac1..30478c744 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Questionnaire40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Questionnaire40_50.java @@ -3,7 +3,9 @@ package org.hl7.fhir.convertors.conv40_50; import org.hl7.fhir.convertors.VersionConvertor_40_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType; import org.hl7.fhir.r5.model.CodeType; +import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireAnswerConstraint; /* Copyright (c) 2011+, HL7, Inc. @@ -137,9 +139,15 @@ public class Questionnaire40_50 extends VersionConvertor_40_50 { if (src.hasPrefix()) tgt.setPrefixElement(convertString(src.getPrefixElement())); if (src.hasText()) - tgt.setTextElement(convertString(src.getTextElement())); - if (src.hasType()) + tgt.setTextElement(convertStringToMarkdown(src.getTextElement())); + if (src.hasType()) { tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement())); + if (src.getType() == QuestionnaireItemType.CHOICE) { + tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSONLY); + } else if (src.getType() == QuestionnaireItemType.OPENCHOICE) { + tgt.setAnswerConstraint(QuestionnaireAnswerConstraint.OPTIONSORSTRING); + } + } for (org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t)); if (src.hasEnableBehavior()) tgt.setEnableBehaviorElement(convertEnableWhenBehavior(src.getEnableBehaviorElement())); @@ -174,7 +182,7 @@ public class Questionnaire40_50 extends VersionConvertor_40_50 { if (src.hasText()) tgt.setTextElement(convertString(src.getTextElement())); if (src.hasType()) - tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement())); + tgt.setTypeElement(convertQuestionnaireItemType(src.getTypeElement(), src.getAnswerConstraint())); for (org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemEnableWhenComponent t : src.getEnableWhen()) tgt.addEnableWhen(convertQuestionnaireItemEnableWhenComponent(t)); if (src.hasEnableBehavior()) tgt.setEnableBehaviorElement(convertEnableWhenBehavior(src.getEnableBehaviorElement())); @@ -237,10 +245,10 @@ public class Questionnaire40_50 extends VersionConvertor_40_50 { tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.URL); break; case CHOICE: - tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CHOICE); + tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING); break; case OPENCHOICE: - tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.OPENCHOICE); + tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.CODING); break; case ATTACHMENT: tgt.setValue(org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType.ATTACHMENT); @@ -258,7 +266,7 @@ public class Questionnaire40_50 extends VersionConvertor_40_50 { return tgt; } - static public org.hl7.fhir.r4.model.Enumeration convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { + static public org.hl7.fhir.r4.model.Enumeration convertQuestionnaireItemType(org.hl7.fhir.r5.model.Enumeration src, QuestionnaireAnswerConstraint constraint) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemTypeEnumFactory()); @@ -298,12 +306,12 @@ public class Questionnaire40_50 extends VersionConvertor_40_50 { case URL: tgt.setValue(org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.URL); break; - case CHOICE: - tgt.setValue(org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.CHOICE); - break; - case OPENCHOICE: + case CODING: + if (constraint == QuestionnaireAnswerConstraint.OPTIONSORSTRING) tgt.setValue(org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.OPENCHOICE); - break; + else + tgt.setValue(org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.CHOICE); + break; case ATTACHMENT: tgt.setValue(org.hl7.fhir.r4.model.Questionnaire.QuestionnaireItemType.ATTACHMENT); break; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/RequestGroup40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/RequestGroup40_50.java deleted file mode 100644 index 9ebd3f6b2..000000000 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/RequestGroup40_50.java +++ /dev/null @@ -1,790 +0,0 @@ -package org.hl7.fhir.convertors.conv40_50; - - -import org.hl7.fhir.convertors.VersionConvertor_40_50; -import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r5.model.CodeableReference; - -/* - Copyright (c) 2011+, HL7, Inc. - All rights reserved. - - 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 - 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 - 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 - POSSIBILITY OF SUCH DAMAGE. - -*/ -// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0 -public class RequestGroup40_50 extends VersionConvertor_40_50 { - - public static org.hl7.fhir.r5.model.RequestGroup convertRequestGroup(org.hl7.fhir.r4.model.RequestGroup src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.RequestGroup tgt = new org.hl7.fhir.r5.model.RequestGroup(); - copyDomainResource(src, tgt); - for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); - for (org.hl7.fhir.r4.model.CanonicalType t : src.getInstantiatesCanonical()) tgt.getInstantiatesCanonical().add(convertCanonical(t)); - for (org.hl7.fhir.r4.model.UriType t : src.getInstantiatesUri()) tgt.getInstantiatesUri().add(convertUri(t)); - for (org.hl7.fhir.r4.model.Reference t : src.getBasedOn()) tgt.addBasedOn(convertReference(t)); - for (org.hl7.fhir.r4.model.Reference t : src.getReplaces()) tgt.addReplaces(convertReference(t)); - if (src.hasGroupIdentifier()) - tgt.setGroupIdentifier(convertIdentifier(src.getGroupIdentifier())); - if (src.hasStatus()) - tgt.setStatusElement(convertRequestStatus(src.getStatusElement())); - if (src.hasIntent()) - tgt.setIntentElement(convertRequestIntent(src.getIntentElement())); - if (src.hasPriority()) - tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement())); - if (src.hasCode()) - tgt.setCode(convertCodeableConcept(src.getCode())); - if (src.hasSubject()) - tgt.setSubject(convertReference(src.getSubject())); - if (src.hasEncounter()) - tgt.setEncounter(convertReference(src.getEncounter())); - if (src.hasAuthoredOn()) - tgt.setAuthoredOnElement(convertDateTime(src.getAuthoredOnElement())); - if (src.hasAuthor()) - tgt.setAuthor(convertReference(src.getAuthor())); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getReasonCode()) tgt.addReason(convertCodeableConceptToCodeableReference(t)); - for (org.hl7.fhir.r4.model.Reference t : src.getReasonReference()) 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()) tgt.addAction(convertRequestGroupActionComponent(t)); - return tgt; - } - - public static org.hl7.fhir.r4.model.RequestGroup convertRequestGroup(org.hl7.fhir.r5.model.RequestGroup src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.RequestGroup tgt = new org.hl7.fhir.r4.model.RequestGroup(); - copyDomainResource(src, tgt); - for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); - for (org.hl7.fhir.r5.model.CanonicalType t : src.getInstantiatesCanonical()) tgt.getInstantiatesCanonical().add(convertCanonical(t)); - for (org.hl7.fhir.r5.model.UriType t : src.getInstantiatesUri()) tgt.getInstantiatesUri().add(convertUri(t)); - for (org.hl7.fhir.r5.model.Reference t : src.getBasedOn()) tgt.addBasedOn(convertReference(t)); - for (org.hl7.fhir.r5.model.Reference t : src.getReplaces()) tgt.addReplaces(convertReference(t)); - if (src.hasGroupIdentifier()) - tgt.setGroupIdentifier(convertIdentifier(src.getGroupIdentifier())); - if (src.hasStatus()) - tgt.setStatusElement(convertRequestStatus(src.getStatusElement())); - if (src.hasIntent()) - tgt.setIntentElement(convertRequestIntent(src.getIntentElement())); - if (src.hasPriority()) - tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement())); - if (src.hasCode()) - tgt.setCode(convertCodeableConcept(src.getCode())); - if (src.hasSubject()) - tgt.setSubject(convertReference(src.getSubject())); - if (src.hasEncounter()) - tgt.setEncounter(convertReference(src.getEncounter())); - if (src.hasAuthoredOn()) - tgt.setAuthoredOnElement(convertDateTime(src.getAuthoredOnElement())); - if (src.hasAuthor()) - tgt.setAuthor(convertReference(src.getAuthor())); - 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()) tgt.addAction(convertRequestGroupActionComponent(t)); - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertRequestStatus(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.RequestStatusEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case DRAFT: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.DRAFT); - break; - case ACTIVE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.ACTIVE); - break; - case ONHOLD: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.ONHOLD); - break; - case REVOKED: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.REVOKED); - break; - case COMPLETED: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.COMPLETED); - break; - case ENTEREDINERROR: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.ENTEREDINERROR); - break; - case UNKNOWN: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.UNKNOWN); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestStatus.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertRequestStatus(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.RequestStatusEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case DRAFT: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.DRAFT); - break; - case ACTIVE: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.ACTIVE); - break; - case ONHOLD: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.ONHOLD); - break; - case REVOKED: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.REVOKED); - break; - case COMPLETED: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.COMPLETED); - break; - case ENTEREDINERROR: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.ENTEREDINERROR); - break; - case UNKNOWN: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.UNKNOWN); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestStatus.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertRequestIntent(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.RequestIntentEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case PROPOSAL: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.PROPOSAL); - break; - case PLAN: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.PLAN); - break; - case DIRECTIVE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.DIRECTIVE); - break; - case ORDER: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.ORDER); - break; - case ORIGINALORDER: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.ORIGINALORDER); - break; - case REFLEXORDER: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.REFLEXORDER); - break; - case FILLERORDER: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.FILLERORDER); - break; - case INSTANCEORDER: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.INSTANCEORDER); - break; - case OPTION: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.OPTION); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestIntent.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertRequestIntent(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.RequestIntentEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case PROPOSAL: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.PROPOSAL); - break; - case PLAN: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.PLAN); - break; - case DIRECTIVE: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.DIRECTIVE); - break; - case ORDER: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.ORDER); - break; - case ORIGINALORDER: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.ORIGINALORDER); - break; - case REFLEXORDER: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.REFLEXORDER); - break; - case FILLERORDER: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.FILLERORDER); - break; - case INSTANCEORDER: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.INSTANCEORDER); - break; - case OPTION: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.OPTION); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestIntent.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertRequestPriority(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.RequestPriorityEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case ROUTINE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestPriority.ROUTINE); - break; - case URGENT: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestPriority.URGENT); - break; - case ASAP: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestPriority.ASAP); - break; - case STAT: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestPriority.STAT); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.RequestPriority.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertRequestPriority(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.RequestPriorityEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case ROUTINE: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestPriority.ROUTINE); - break; - case URGENT: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestPriority.URGENT); - break; - case ASAP: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestPriority.ASAP); - break; - case STAT: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestPriority.STAT); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.RequestPriority.NULL); - break; - } - return tgt; - } - - public static org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionComponent convertRequestGroupActionComponent(org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionComponent tgt = new org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionComponent(); - copyElement(src, tgt); - if (src.hasPrefix()) - tgt.setPrefixElement(convertString(src.getPrefixElement())); - if (src.hasTitle()) - tgt.setTitleElement(convertString(src.getTitleElement())); - if (src.hasDescription()) - tgt.setDescriptionElement(convertString(src.getDescriptionElement())); - if (src.hasTextEquivalent()) - tgt.setTextEquivalentElement(convertString(src.getTextEquivalentElement())); - if (src.hasPriority()) - tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement())); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCode()) tgt.addCode(convertCodeableConcept(t)); - for (org.hl7.fhir.r4.model.RelatedArtifact t : src.getDocumentation()) tgt.addDocumentation(convertRelatedArtifact(t)); - for (org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionConditionComponent t : src.getCondition()) tgt.addCondition(convertRequestGroupActionConditionComponent(t)); - for (org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionRelatedActionComponent t : src.getRelatedAction()) tgt.addRelatedAction(convertRequestGroupActionRelatedActionComponent(t)); - if (src.hasTiming()) - tgt.setTiming(convertType(src.getTiming())); - for (org.hl7.fhir.r4.model.Reference t : src.getParticipant()) tgt.addParticipant(convertReference(t)); - if (src.hasType()) - tgt.setType(convertCodeableConcept(src.getType())); - if (src.hasGroupingBehavior()) - tgt.setGroupingBehaviorElement(convertActionGroupingBehavior(src.getGroupingBehaviorElement())); - if (src.hasSelectionBehavior()) - tgt.setSelectionBehaviorElement(convertActionSelectionBehavior(src.getSelectionBehaviorElement())); - if (src.hasRequiredBehavior()) - tgt.setRequiredBehaviorElement(convertActionRequiredBehavior(src.getRequiredBehaviorElement())); - if (src.hasPrecheckBehavior()) - tgt.setPrecheckBehaviorElement(convertActionPrecheckBehavior(src.getPrecheckBehaviorElement())); - if (src.hasCardinalityBehavior()) - tgt.setCardinalityBehaviorElement(convertActionCardinalityBehavior(src.getCardinalityBehaviorElement())); - if (src.hasResource()) - tgt.setResource(convertReference(src.getResource())); - for (org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionComponent t : src.getAction()) tgt.addAction(convertRequestGroupActionComponent(t)); - return tgt; - } - - public static org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionComponent convertRequestGroupActionComponent(org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionComponent tgt = new org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionComponent(); - copyElement(src, tgt); - if (src.hasPrefix()) - tgt.setPrefixElement(convertString(src.getPrefixElement())); - if (src.hasTitle()) - tgt.setTitleElement(convertString(src.getTitleElement())); - if (src.hasDescription()) - tgt.setDescriptionElement(convertString(src.getDescriptionElement())); - if (src.hasTextEquivalent()) - tgt.setTextEquivalentElement(convertString(src.getTextEquivalentElement())); - if (src.hasPriority()) - tgt.setPriorityElement(convertRequestPriority(src.getPriorityElement())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCode()) tgt.addCode(convertCodeableConcept(t)); - for (org.hl7.fhir.r5.model.RelatedArtifact t : src.getDocumentation()) tgt.addDocumentation(convertRelatedArtifact(t)); - for (org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionConditionComponent t : src.getCondition()) tgt.addCondition(convertRequestGroupActionConditionComponent(t)); - for (org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionRelatedActionComponent t : src.getRelatedAction()) tgt.addRelatedAction(convertRequestGroupActionRelatedActionComponent(t)); - if (src.hasTiming()) - tgt.setTiming(convertType(src.getTiming())); - for (org.hl7.fhir.r5.model.Reference t : src.getParticipant()) tgt.addParticipant(convertReference(t)); - if (src.hasType()) - tgt.setType(convertCodeableConcept(src.getType())); - if (src.hasGroupingBehavior()) - tgt.setGroupingBehaviorElement(convertActionGroupingBehavior(src.getGroupingBehaviorElement())); - if (src.hasSelectionBehavior()) - tgt.setSelectionBehaviorElement(convertActionSelectionBehavior(src.getSelectionBehaviorElement())); - if (src.hasRequiredBehavior()) - tgt.setRequiredBehaviorElement(convertActionRequiredBehavior(src.getRequiredBehaviorElement())); - if (src.hasPrecheckBehavior()) - tgt.setPrecheckBehaviorElement(convertActionPrecheckBehavior(src.getPrecheckBehaviorElement())); - if (src.hasCardinalityBehavior()) - tgt.setCardinalityBehaviorElement(convertActionCardinalityBehavior(src.getCardinalityBehaviorElement())); - if (src.hasResource()) - tgt.setResource(convertReference(src.getResource())); - for (org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionComponent t : src.getAction()) tgt.addAction(convertRequestGroupActionComponent(t)); - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertActionGroupingBehavior(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehaviorEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case VISUALGROUP: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.VISUALGROUP); - break; - case LOGICALGROUP: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.LOGICALGROUP); - break; - case SENTENCEGROUP: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.SENTENCEGROUP); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionGroupingBehavior.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertActionGroupingBehavior(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehaviorEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case VISUALGROUP: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehavior.VISUALGROUP); - break; - case LOGICALGROUP: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehavior.LOGICALGROUP); - break; - case SENTENCEGROUP: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehavior.SENTENCEGROUP); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionGroupingBehavior.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertActionSelectionBehavior(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehaviorEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case ANY: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ANY); - break; - case ALL: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ALL); - break; - case ALLORNONE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ALLORNONE); - break; - case EXACTLYONE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.EXACTLYONE); - break; - case ATMOSTONE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ATMOSTONE); - break; - case ONEORMORE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.ONEORMORE); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionSelectionBehavior.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertActionSelectionBehavior(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehaviorEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case ANY: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior.ANY); - break; - case ALL: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior.ALL); - break; - case ALLORNONE: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior.ALLORNONE); - break; - case EXACTLYONE: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior.EXACTLYONE); - break; - case ATMOSTONE: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior.ATMOSTONE); - break; - case ONEORMORE: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior.ONEORMORE); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionSelectionBehavior.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertActionRequiredBehavior(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehaviorEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case MUST: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.MUST); - break; - case COULD: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.COULD); - break; - case MUSTUNLESSDOCUMENTED: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.MUSTUNLESSDOCUMENTED); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRequiredBehavior.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertActionRequiredBehavior(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehaviorEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case MUST: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehavior.MUST); - break; - case COULD: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehavior.COULD); - break; - case MUSTUNLESSDOCUMENTED: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehavior.MUSTUNLESSDOCUMENTED); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRequiredBehavior.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertActionPrecheckBehavior(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehaviorEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case YES: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior.YES); - break; - case NO: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior.NO); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionPrecheckBehavior.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertActionPrecheckBehavior(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.ActionPrecheckBehaviorEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case YES: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionPrecheckBehavior.YES); - break; - case NO: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionPrecheckBehavior.NO); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionPrecheckBehavior.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertActionCardinalityBehavior(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehaviorEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case SINGLE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior.SINGLE); - break; - case MULTIPLE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior.MULTIPLE); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionCardinalityBehavior.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertActionCardinalityBehavior(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.ActionCardinalityBehaviorEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case SINGLE: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionCardinalityBehavior.SINGLE); - break; - case MULTIPLE: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionCardinalityBehavior.MULTIPLE); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionCardinalityBehavior.NULL); - break; - } - return tgt; - } - - public static org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionConditionComponent convertRequestGroupActionConditionComponent(org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionConditionComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionConditionComponent tgt = new org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionConditionComponent(); - copyElement(src, tgt); - if (src.hasKind()) - tgt.setKindElement(convertActionConditionKind(src.getKindElement())); - if (src.hasExpression()) - tgt.setExpression(convertExpression(src.getExpression())); - return tgt; - } - - public static org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionConditionComponent convertRequestGroupActionConditionComponent(org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionConditionComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionConditionComponent tgt = new org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionConditionComponent(); - copyElement(src, tgt); - if (src.hasKind()) - tgt.setKindElement(convertActionConditionKind(src.getKindElement())); - if (src.hasExpression()) - tgt.setExpression(convertExpression(src.getExpression())); - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertActionConditionKind(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ActionConditionKindEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case APPLICABILITY: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.APPLICABILITY); - break; - case START: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.START); - break; - case STOP: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.STOP); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionConditionKind.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertActionConditionKind(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.ActionConditionKindEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case APPLICABILITY: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionConditionKind.APPLICABILITY); - break; - case START: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionConditionKind.START); - break; - case STOP: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionConditionKind.STOP); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionConditionKind.NULL); - break; - } - return tgt; - } - - public static org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionRelatedActionComponent convertRequestGroupActionRelatedActionComponent(org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionRelatedActionComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionRelatedActionComponent tgt = new org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionRelatedActionComponent(); - copyElement(src, tgt); - if (src.hasActionId()) - tgt.setActionIdElement(convertId(src.getActionIdElement())); - if (src.hasRelationship()) - tgt.setRelationshipElement(convertActionRelationshipType(src.getRelationshipElement())); - if (src.hasOffset()) - tgt.setOffset(convertType(src.getOffset())); - return tgt; - } - - public static org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionRelatedActionComponent convertRequestGroupActionRelatedActionComponent(org.hl7.fhir.r5.model.RequestGroup.RequestGroupActionRelatedActionComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionRelatedActionComponent tgt = new org.hl7.fhir.r4.model.RequestGroup.RequestGroupActionRelatedActionComponent(); - copyElement(src, tgt); - if (src.hasActionId()) - tgt.setActionIdElement(convertId(src.getActionIdElement())); - if (src.hasRelationship()) - tgt.setRelationshipElement(convertActionRelationshipType(src.getRelationshipElement())); - if (src.hasOffset()) - tgt.setOffset(convertType(src.getOffset())); - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertActionRelationshipType(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.Enumerations.ActionRelationshipTypeEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case BEFORESTART: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.BEFORESTART); - break; - case BEFORE: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.BEFORE); - break; - case BEFOREEND: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.BEFOREEND); - break; - case CONCURRENTWITHSTART: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.CONCURRENTWITHSTART); - break; - case CONCURRENT: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.CONCURRENT); - break; - case CONCURRENTWITHEND: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.CONCURRENTWITHEND); - break; - case AFTERSTART: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.AFTERSTART); - break; - case AFTER: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.AFTER); - break; - case AFTEREND: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.AFTEREND); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.Enumerations.ActionRelationshipType.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertActionRelationshipType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipTypeEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case BEFORESTART: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.BEFORESTART); - break; - case BEFORE: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.BEFORE); - break; - case BEFOREEND: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.BEFOREEND); - break; - case CONCURRENTWITHSTART: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.CONCURRENTWITHSTART); - break; - case CONCURRENT: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.CONCURRENT); - break; - case CONCURRENTWITHEND: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.CONCURRENTWITHEND); - break; - case AFTERSTART: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.AFTERSTART); - break; - case AFTER: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.AFTER); - break; - case AFTEREND: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.AFTEREND); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.RequestGroup.ActionRelationshipType.NULL); - break; - } - return tgt; - } -} \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ResearchStudy40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ResearchStudy40_50.java deleted file mode 100644 index e71bf297b..000000000 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ResearchStudy40_50.java +++ /dev/null @@ -1,263 +0,0 @@ -package org.hl7.fhir.convertors.conv40_50; - - -import org.hl7.fhir.convertors.VersionConvertor_40_50; -import org.hl7.fhir.exceptions.FHIRException; - -/* - Copyright (c) 2011+, HL7, Inc. - All rights reserved. - - 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 - 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 - 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 - POSSIBILITY OF SUCH DAMAGE. - -*/ -// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0 -public class ResearchStudy40_50 extends VersionConvertor_40_50 { - - public static org.hl7.fhir.r5.model.ResearchStudy convertResearchStudy(org.hl7.fhir.r4.model.ResearchStudy src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.ResearchStudy tgt = new org.hl7.fhir.r5.model.ResearchStudy(); - copyDomainResource(src, tgt); - for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); - if (src.hasTitle()) - tgt.setTitleElement(convertString(src.getTitleElement())); - for (org.hl7.fhir.r4.model.Reference t : src.getProtocol()) tgt.addProtocol(convertReference(t)); - for (org.hl7.fhir.r4.model.Reference t : src.getPartOf()) tgt.addPartOf(convertReference(t)); - if (src.hasStatus()) - tgt.setStatusElement(convertResearchStudyStatus(src.getStatusElement())); - if (src.hasPrimaryPurposeType()) - tgt.setPrimaryPurposeType(convertCodeableConcept(src.getPrimaryPurposeType())); - if (src.hasPhase()) - tgt.setPhase(convertCodeableConcept(src.getPhase())); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCategory()) tgt.addCategory(convertCodeableConcept(t)); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getFocus()) tgt.addFocus(convertCodeableConcept(t)); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCondition()) tgt.addCondition(convertCodeableConcept(t)); - for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertContactDetail(t)); - for (org.hl7.fhir.r4.model.RelatedArtifact t : src.getRelatedArtifact()) tgt.addRelatedArtifact(convertRelatedArtifact(t)); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getKeyword()) tgt.addKeyword(convertCodeableConcept(t)); - for (org.hl7.fhir.r4.model.CodeableConcept t : src.getLocation()) tgt.addLocation(convertCodeableConcept(t)); - if (src.hasDescription()) - tgt.setDescriptionElement(convertMarkdown(src.getDescriptionElement())); - for (org.hl7.fhir.r4.model.Reference t : src.getEnrollment()) tgt.addEnrollment(convertReference(t)); - if (src.hasPeriod()) - tgt.setPeriod(convertPeriod(src.getPeriod())); - if (src.hasSponsor()) - tgt.setSponsor(convertReference(src.getSponsor())); - if (src.hasPrincipalInvestigator()) - tgt.setPrincipalInvestigator(convertReference(src.getPrincipalInvestigator())); - for (org.hl7.fhir.r4.model.Reference t : src.getSite()) tgt.addSite(convertReference(t)); - if (src.hasReasonStopped()) - tgt.setReasonStopped(convertCodeableConcept(src.getReasonStopped())); - for (org.hl7.fhir.r4.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t)); - for (org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyArmComponent t : src.getArm()) tgt.addArm(convertResearchStudyArmComponent(t)); - for (org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyObjectiveComponent t : src.getObjective()) tgt.addObjective(convertResearchStudyObjectiveComponent(t)); - return tgt; - } - - public static org.hl7.fhir.r4.model.ResearchStudy convertResearchStudy(org.hl7.fhir.r5.model.ResearchStudy src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.ResearchStudy tgt = new org.hl7.fhir.r4.model.ResearchStudy(); - copyDomainResource(src, tgt); - for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); - if (src.hasTitle()) - tgt.setTitleElement(convertString(src.getTitleElement())); - for (org.hl7.fhir.r5.model.Reference t : src.getProtocol()) tgt.addProtocol(convertReference(t)); - for (org.hl7.fhir.r5.model.Reference t : src.getPartOf()) tgt.addPartOf(convertReference(t)); - if (src.hasStatus()) - tgt.setStatusElement(convertResearchStudyStatus(src.getStatusElement())); - if (src.hasPrimaryPurposeType()) - tgt.setPrimaryPurposeType(convertCodeableConcept(src.getPrimaryPurposeType())); - if (src.hasPhase()) - tgt.setPhase(convertCodeableConcept(src.getPhase())); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCategory()) tgt.addCategory(convertCodeableConcept(t)); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getFocus()) tgt.addFocus(convertCodeableConcept(t)); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCondition()) tgt.addCondition(convertCodeableConcept(t)); - for (org.hl7.fhir.r5.model.ContactDetail t : src.getContact()) tgt.addContact(convertContactDetail(t)); - for (org.hl7.fhir.r5.model.RelatedArtifact t : src.getRelatedArtifact()) tgt.addRelatedArtifact(convertRelatedArtifact(t)); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getKeyword()) tgt.addKeyword(convertCodeableConcept(t)); - for (org.hl7.fhir.r5.model.CodeableConcept t : src.getLocation()) tgt.addLocation(convertCodeableConcept(t)); - if (src.hasDescription()) - tgt.setDescriptionElement(convertMarkdown(src.getDescriptionElement())); - for (org.hl7.fhir.r5.model.Reference t : src.getEnrollment()) tgt.addEnrollment(convertReference(t)); - if (src.hasPeriod()) - tgt.setPeriod(convertPeriod(src.getPeriod())); - if (src.hasSponsor()) - tgt.setSponsor(convertReference(src.getSponsor())); - if (src.hasPrincipalInvestigator()) - tgt.setPrincipalInvestigator(convertReference(src.getPrincipalInvestigator())); - for (org.hl7.fhir.r5.model.Reference t : src.getSite()) tgt.addSite(convertReference(t)); - if (src.hasReasonStopped()) - tgt.setReasonStopped(convertCodeableConcept(src.getReasonStopped())); - for (org.hl7.fhir.r5.model.Annotation t : src.getNote()) tgt.addNote(convertAnnotation(t)); - for (org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyArmComponent t : src.getArm()) tgt.addArm(convertResearchStudyArmComponent(t)); - for (org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyObjectiveComponent t : src.getObjective()) tgt.addObjective(convertResearchStudyObjectiveComponent(t)); - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertResearchStudyStatus(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatusEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case ACTIVE: - tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.ACTIVE); - break; - case ADMINISTRATIVELYCOMPLETED: - tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.ADMINISTRATIVELYCOMPLETED); - break; - case APPROVED: - tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.APPROVED); - break; - case CLOSEDTOACCRUAL: - tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.CLOSEDTOACCRUAL); - break; - case CLOSEDTOACCRUALANDINTERVENTION: - tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.CLOSEDTOACCRUALANDINTERVENTION); - break; - case COMPLETED: - tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.COMPLETED); - break; - case DISAPPROVED: - tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.DISAPPROVED); - break; - case INREVIEW: - tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.INREVIEW); - break; - case TEMPORARILYCLOSEDTOACCRUAL: - tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.TEMPORARILYCLOSEDTOACCRUAL); - break; - case TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION: - tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION); - break; - case WITHDRAWN: - tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.WITHDRAWN); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyStatus.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertResearchStudyStatus(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatusEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case ACTIVE: - tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.ACTIVE); - break; - case ADMINISTRATIVELYCOMPLETED: - tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.ADMINISTRATIVELYCOMPLETED); - break; - case APPROVED: - tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.APPROVED); - break; - case CLOSEDTOACCRUAL: - tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.CLOSEDTOACCRUAL); - break; - case CLOSEDTOACCRUALANDINTERVENTION: - tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.CLOSEDTOACCRUALANDINTERVENTION); - break; - case COMPLETED: - tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.COMPLETED); - break; - case DISAPPROVED: - tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.DISAPPROVED); - break; - case INREVIEW: - tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.INREVIEW); - break; - case TEMPORARILYCLOSEDTOACCRUAL: - tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.TEMPORARILYCLOSEDTOACCRUAL); - break; - case TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION: - tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION); - break; - case WITHDRAWN: - tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.WITHDRAWN); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyStatus.NULL); - break; - } - return tgt; - } - - public static org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyArmComponent convertResearchStudyArmComponent(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyArmComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyArmComponent tgt = new org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyArmComponent(); - copyElement(src, tgt); - if (src.hasName()) - tgt.setNameElement(convertString(src.getNameElement())); - if (src.hasType()) - tgt.setType(convertCodeableConcept(src.getType())); - if (src.hasDescription()) - tgt.setDescriptionElement(convertString(src.getDescriptionElement())); - return tgt; - } - - public static org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyArmComponent convertResearchStudyArmComponent(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyArmComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyArmComponent tgt = new org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyArmComponent(); - copyElement(src, tgt); - if (src.hasName()) - tgt.setNameElement(convertString(src.getNameElement())); - if (src.hasType()) - tgt.setType(convertCodeableConcept(src.getType())); - if (src.hasDescription()) - tgt.setDescriptionElement(convertString(src.getDescriptionElement())); - return tgt; - } - - public static org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyObjectiveComponent convertResearchStudyObjectiveComponent(org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyObjectiveComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyObjectiveComponent tgt = new org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyObjectiveComponent(); - copyElement(src, tgt); - if (src.hasName()) - tgt.setNameElement(convertString(src.getNameElement())); - if (src.hasType()) - tgt.setType(convertCodeableConcept(src.getType())); - return tgt; - } - - public static org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyObjectiveComponent convertResearchStudyObjectiveComponent(org.hl7.fhir.r5.model.ResearchStudy.ResearchStudyObjectiveComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyObjectiveComponent tgt = new org.hl7.fhir.r4.model.ResearchStudy.ResearchStudyObjectiveComponent(); - copyElement(src, tgt); - if (src.hasName()) - tgt.setNameElement(convertString(src.getNameElement())); - if (src.hasType()) - tgt.setType(convertCodeableConcept(src.getType())); - return tgt; - } -} \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ResearchSubject40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ResearchSubject40_50.java deleted file mode 100644 index 4d5064dbe..000000000 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/ResearchSubject40_50.java +++ /dev/null @@ -1,187 +0,0 @@ -package org.hl7.fhir.convertors.conv40_50; - - -import org.hl7.fhir.convertors.VersionConvertor_40_50; -import org.hl7.fhir.exceptions.FHIRException; - -/* - Copyright (c) 2011+, HL7, Inc. - All rights reserved. - - 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 - 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 - 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 - POSSIBILITY OF SUCH DAMAGE. - -*/ -// Generated on Sun, Feb 24, 2019 11:37+1100 for FHIR v4.0.0 -public class ResearchSubject40_50 extends VersionConvertor_40_50 { - - public static org.hl7.fhir.r5.model.ResearchSubject convertResearchSubject(org.hl7.fhir.r4.model.ResearchSubject src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.ResearchSubject tgt = new org.hl7.fhir.r5.model.ResearchSubject(); - copyDomainResource(src, tgt); - for (org.hl7.fhir.r4.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); - if (src.hasStatus()) - tgt.setStatusElement(convertResearchSubjectStatus(src.getStatusElement())); - if (src.hasPeriod()) - tgt.setPeriod(convertPeriod(src.getPeriod())); - if (src.hasStudy()) - tgt.setStudy(convertReference(src.getStudy())); - if (src.hasIndividual()) - tgt.setIndividual(convertReference(src.getIndividual())); - if (src.hasAssignedArm()) - tgt.setAssignedArmElement(convertString(src.getAssignedArmElement())); - if (src.hasActualArm()) - tgt.setActualArmElement(convertString(src.getActualArmElement())); - if (src.hasConsent()) - tgt.setConsent(convertReference(src.getConsent())); - return tgt; - } - - public static org.hl7.fhir.r4.model.ResearchSubject convertResearchSubject(org.hl7.fhir.r5.model.ResearchSubject src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r4.model.ResearchSubject tgt = new org.hl7.fhir.r4.model.ResearchSubject(); - copyDomainResource(src, tgt); - for (org.hl7.fhir.r5.model.Identifier t : src.getIdentifier()) tgt.addIdentifier(convertIdentifier(t)); - if (src.hasStatus()) - tgt.setStatusElement(convertResearchSubjectStatus(src.getStatusElement())); - if (src.hasPeriod()) - tgt.setPeriod(convertPeriod(src.getPeriod())); - if (src.hasStudy()) - tgt.setStudy(convertReference(src.getStudy())); - if (src.hasIndividual()) - tgt.setIndividual(convertReference(src.getIndividual())); - if (src.hasAssignedArm()) - tgt.setAssignedArmElement(convertString(src.getAssignedArmElement())); - if (src.hasActualArm()) - tgt.setActualArmElement(convertString(src.getActualArmElement())); - if (src.hasConsent()) - tgt.setConsent(convertReference(src.getConsent())); - return tgt; - } - - static public org.hl7.fhir.r5.model.Enumeration convertResearchSubjectStatus(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatusEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case CANDIDATE: - tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.CANDIDATE); - break; - case ELIGIBLE: - tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.ELIGIBLE); - break; - case FOLLOWUP: - tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.FOLLOWUP); - break; - case INELIGIBLE: - tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.INELIGIBLE); - break; - case NOTREGISTERED: - tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.NOTREGISTERED); - break; - case OFFSTUDY: - tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.OFFSTUDY); - break; - case ONSTUDY: - tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.ONSTUDY); - break; - case ONSTUDYINTERVENTION: - tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.ONSTUDYINTERVENTION); - break; - case ONSTUDYOBSERVATION: - tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.ONSTUDYOBSERVATION); - break; - case PENDINGONSTUDY: - tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.PENDINGONSTUDY); - break; - case POTENTIALCANDIDATE: - tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.POTENTIALCANDIDATE); - break; - case SCREENING: - tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.SCREENING); - break; - case WITHDRAWN: - tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.WITHDRAWN); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.ResearchSubject.ResearchSubjectStatus.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertResearchSubjectStatus(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatusEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case CANDIDATE: - tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.CANDIDATE); - break; - case ELIGIBLE: - tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.ELIGIBLE); - break; - case FOLLOWUP: - tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.FOLLOWUP); - break; - case INELIGIBLE: - tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.INELIGIBLE); - break; - case NOTREGISTERED: - tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.NOTREGISTERED); - break; - case OFFSTUDY: - tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.OFFSTUDY); - break; - case ONSTUDY: - tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.ONSTUDY); - break; - case ONSTUDYINTERVENTION: - tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.ONSTUDYINTERVENTION); - break; - case ONSTUDYOBSERVATION: - tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.ONSTUDYOBSERVATION); - break; - case PENDINGONSTUDY: - tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.PENDINGONSTUDY); - break; - case POTENTIALCANDIDATE: - tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.POTENTIALCANDIDATE); - break; - case SCREENING: - tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.SCREENING); - break; - case WITHDRAWN: - tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.WITHDRAWN); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.ResearchSubject.ResearchSubjectStatus.NULL); - break; - } - return tgt; - } -} \ No newline at end of file diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/StructureMap40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/StructureMap40_50.java index f525cb558..8c9029b0b 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/StructureMap40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/StructureMap40_50.java @@ -500,8 +500,8 @@ public class StructureMap40_50 extends VersionConvertor_40_50 { copyElement(src, tgt); if (src.hasContext()) tgt.setContextElement(convertId(src.getContextElement())); - if (src.hasContextType()) - tgt.setContextTypeElement(convertStructureMapContextType(src.getContextTypeElement())); + if (src.hasContextType() && src.getContextType() != org.hl7.fhir.r4.model.StructureMap.StructureMapContextType.VARIABLE) + throw new Error("This conversion is not supported. Consult code maintainers"); // this should never happens - no one knows what the intent was here. if (src.hasElement()) tgt.setElementElement(convertString(src.getElementElement())); if (src.hasVariable()) @@ -524,8 +524,7 @@ public class StructureMap40_50 extends VersionConvertor_40_50 { copyElement(src, tgt); if (src.hasContext()) tgt.setContextElement(convertId(src.getContextElement())); - if (src.hasContextType()) - tgt.setContextTypeElement(convertStructureMapContextType(src.getContextTypeElement())); + tgt.setContextType(org.hl7.fhir.r4.model.StructureMap.StructureMapContextType.VARIABLE); if (src.hasElement()) tgt.setElementElement(convertString(src.getElementElement())); if (src.hasVariable()) @@ -541,44 +540,6 @@ public class StructureMap40_50 extends VersionConvertor_40_50 { return tgt; } - static public org.hl7.fhir.r5.model.Enumeration convertStructureMapContextType(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r5.model.Enumeration tgt = new org.hl7.fhir.r5.model.Enumeration<>(new org.hl7.fhir.r5.model.StructureMap.StructureMapContextTypeEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case TYPE: - tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.TYPE); - break; - case VARIABLE: - tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.VARIABLE); - break; - default: - tgt.setValue(org.hl7.fhir.r5.model.StructureMap.StructureMapContextType.NULL); - break; - } - return tgt; - } - - static public org.hl7.fhir.r4.model.Enumeration convertStructureMapContextType(org.hl7.fhir.r5.model.Enumeration src) throws FHIRException { - if (src == null || src.isEmpty()) - return null; - org.hl7.fhir.r4.model.Enumeration tgt = new org.hl7.fhir.r4.model.Enumeration<>(new org.hl7.fhir.r4.model.StructureMap.StructureMapContextTypeEnumFactory()); - VersionConvertor_40_50.copyElement(src, tgt); - switch(src.getValue()) { - case TYPE: - tgt.setValue(org.hl7.fhir.r4.model.StructureMap.StructureMapContextType.TYPE); - break; - case VARIABLE: - tgt.setValue(org.hl7.fhir.r4.model.StructureMap.StructureMapContextType.VARIABLE); - break; - default: - tgt.setValue(org.hl7.fhir.r4.model.StructureMap.StructureMapContextType.NULL); - break; - } - return tgt; - } - static public org.hl7.fhir.r5.model.Enumeration convertStructureMapTargetListMode(org.hl7.fhir.r4.model.Enumeration src) throws FHIRException { if (src == null || src.isEmpty()) return null; diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Substance40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Substance40_50.java index 664b77f25..32777d295 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Substance40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/Substance40_50.java @@ -3,6 +3,7 @@ package org.hl7.fhir.convertors.conv40_50; import org.hl7.fhir.convertors.VersionConvertor_40_50; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.r5.model.Identifier; /* Copyright (c) 2011+, HL7, Inc. @@ -45,10 +46,10 @@ public class Substance40_50 extends VersionConvertor_40_50 { tgt.setStatusElement(convertFHIRSubstanceStatus(src.getStatusElement())); for (org.hl7.fhir.r4.model.CodeableConcept t : src.getCategory()) tgt.addCategory(convertCodeableConcept(t)); if (src.hasCode()) - tgt.setCode(convertCodeableConcept(src.getCode())); + tgt.getCode().setConcept(convertCodeableConcept(src.getCode())); if (src.hasDescription()) tgt.setDescriptionElement(convertString(src.getDescriptionElement())); - for (org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t)); + for (org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent t : src.getInstance()) convertSubstanceInstanceComponent(t, tgt); for (org.hl7.fhir.r4.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t)); return tgt; } @@ -62,11 +63,13 @@ public class Substance40_50 extends VersionConvertor_40_50 { if (src.hasStatus()) tgt.setStatusElement(convertFHIRSubstanceStatus(src.getStatusElement())); for (org.hl7.fhir.r5.model.CodeableConcept t : src.getCategory()) tgt.addCategory(convertCodeableConcept(t)); - if (src.hasCode()) - tgt.setCode(convertCodeableConcept(src.getCode())); + if (src.getCode().hasConcept()) + tgt.setCode(convertCodeableConcept(src.getCode().getConcept())); if (src.hasDescription()) tgt.setDescriptionElement(convertString(src.getDescriptionElement())); - for (org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent t : src.getInstance()) tgt.addInstance(convertSubstanceInstanceComponent(t)); + if (src.getInstance()) { + tgt.addInstance(convertSubstanceInstanceComponent(src)); + } for (org.hl7.fhir.r5.model.Substance.SubstanceIngredientComponent t : src.getIngredient()) tgt.addIngredient(convertSubstanceIngredientComponent(t)); return tgt; } @@ -115,27 +118,21 @@ public class Substance40_50 extends VersionConvertor_40_50 { return tgt; } - public static org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent src) throws FHIRException { - if (src == null) - return null; - org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent(); - copyElement(src, tgt); - if (src.hasIdentifier()) - tgt.setIdentifier(convertIdentifier(src.getIdentifier())); - if (src.hasExpiry()) - tgt.setExpiryElement(convertDateTime(src.getExpiryElement())); - if (src.hasQuantity()) - tgt.setQuantity(convertSimpleQuantity(src.getQuantity())); - return tgt; + public static void convertSubstanceInstanceComponent(org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent src, org.hl7.fhir.r5.model.Substance tgt) throws FHIRException { + tgt.setInstance(true); + if (src.hasIdentifier()) + tgt.addIdentifier(convertIdentifier(src.getIdentifier())); + if (src.hasExpiry()) + tgt.setExpiryElement(convertDateTime(src.getExpiryElement())); + if (src.hasQuantity()) + tgt.setQuantity(convertSimpleQuantity(src.getQuantity())); } - public static org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.r5.model.Substance.SubstanceInstanceComponent src) throws FHIRException { - if (src == null) - return null; + public static org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent convertSubstanceInstanceComponent(org.hl7.fhir.r5.model.Substance src) throws FHIRException { org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent tgt = new org.hl7.fhir.r4.model.Substance.SubstanceInstanceComponent(); - copyElement(src, tgt); - if (src.hasIdentifier()) - tgt.setIdentifier(convertIdentifier(src.getIdentifier())); + for (Identifier t : src.getIdentifier()) { + tgt.setIdentifier(convertIdentifier(t)); + } if (src.hasExpiry()) tgt.setExpiryElement(convertDateTime(src.getExpiryElement())); if (src.hasQuantity()) diff --git a/org.hl7.fhir.core.generator/configuration/CodeableConcept.java b/org.hl7.fhir.core.generator/configuration/CodeableConcept.java index 3668a4bc8..c1ff36027 100644 --- a/org.hl7.fhir.core.generator/configuration/CodeableConcept.java +++ b/org.hl7.fhir.core.generator/configuration/CodeableConcept.java @@ -87,4 +87,10 @@ public boolean hasCoding(String system, String code) { res.setText(l.getText()); } return res; - } \ No newline at end of file + } + + + public void addCoding(String system, String code, String display) { + getCoding().add(new Coding(system, code, display)); + } + \ No newline at end of file diff --git a/org.hl7.fhir.core.generator/configuration/CodeableReference.java b/org.hl7.fhir.core.generator/configuration/CodeableReference.java new file mode 100644 index 000000000..f841efc05 --- /dev/null +++ b/org.hl7.fhir.core.generator/configuration/CodeableReference.java @@ -0,0 +1,10 @@ + + public CodeableReference(CodeableConcept cc) { + super(); + setConcept(cc); + } + + public CodeableReference(Reference ref) { + super(); + setReference(ref); + } diff --git a/org.hl7.fhir.core.generator/configuration/CompartmentDefinition.java b/org.hl7.fhir.core.generator/configuration/CompartmentDefinition.java new file mode 100644 index 000000000..1ba0aaf06 --- /dev/null +++ b/org.hl7.fhir.core.generator/configuration/CompartmentDefinition.java @@ -0,0 +1,4 @@ + public boolean supportsCopyright() { + return false; + } + \ No newline at end of file diff --git a/org.hl7.fhir.core.generator/configuration/FHIRVersion.java b/org.hl7.fhir.core.generator/configuration/FHIRVersion.java index c6158de5d..9a412df90 100644 --- a/org.hl7.fhir.core.generator/configuration/FHIRVersion.java +++ b/org.hl7.fhir.core.generator/configuration/FHIRVersion.java @@ -59,4 +59,10 @@ public String toCode(int len) { @Override public String toString() { return toCode(); - } \ No newline at end of file + } + + + public boolean isR4B() { + return toCode().startsWith("4.1"); + } + \ No newline at end of file diff --git a/org.hl7.fhir.core.generator/configuration/GraphDefinition.java b/org.hl7.fhir.core.generator/configuration/GraphDefinition.java new file mode 100644 index 000000000..1ba0aaf06 --- /dev/null +++ b/org.hl7.fhir.core.generator/configuration/GraphDefinition.java @@ -0,0 +1,4 @@ + public boolean supportsCopyright() { + return false; + } + \ No newline at end of file diff --git a/org.hl7.fhir.core.generator/configuration/RdfParser.java b/org.hl7.fhir.core.generator/configuration/RdfParser.java index 07d29263c..03f2204f0 100644 --- a/org.hl7.fhir.core.generator/configuration/RdfParser.java +++ b/org.hl7.fhir.core.generator/configuration/RdfParser.java @@ -8,10 +8,11 @@ package org.hl7.fhir.r5.formats; {{startMark}} import org.hl7.fhir.r5.model.*; +import org.hl7.fhir.r5.model.StringType; import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.exceptions.FHIRFormatError; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.r5.utils.formats.Turtle.Complex; +import org.hl7.fhir.utilities.turtle.Turtle.*; import java.io.IOException; public class RdfParser extends RdfParserBase { diff --git a/org.hl7.fhir.core.generator/configuration/SearchParameter.java b/org.hl7.fhir.core.generator/configuration/SearchParameter.java new file mode 100644 index 000000000..1ba0aaf06 --- /dev/null +++ b/org.hl7.fhir.core.generator/configuration/SearchParameter.java @@ -0,0 +1,4 @@ + public boolean supportsCopyright() { + return false; + } + \ No newline at end of file diff --git a/org.hl7.fhir.core.generator/configuration/configuration.ini b/org.hl7.fhir.core.generator/configuration/configuration.ini index ee413bede..df3d08bbb 100644 --- a/org.hl7.fhir.core.generator/configuration/configuration.ini +++ b/org.hl7.fhir.core.generator/configuration/configuration.ini @@ -38,6 +38,7 @@ CapabilityStatement = org.hl7.fhir.instance.model.api.IBaseConformance DataType = org.hl7.fhir.instance.model.api.IBaseDatatype, ca.uhn.fhir.model.api.IElement ElementDefinition = org.hl7.fhir.instance.model.api.ICompositeType, org.hl7.fhir.r5.model.Enumerations.BindingStrength, org.hl7.fhir.r5.model.Enumerations.BindingStrengthEnumFactory, org.hl7.fhir.r5.utils.ToolingExtensions, org.hl7.fhir.instance.model.api.IBaseDatatypeElement, org.hl7.fhir.utilities.CommaSeparatedStringBuilder Binary = org.hl7.fhir.instance.model.api.IBaseBinary +ContactDetail = org.hl7.fhir.r5.model.ContactPoint.ContactPointSystem [shared] http://hl7.org/fhir/ValueSet/concept-map-relationship = true diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaEnumerationsGenerator.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaEnumerationsGenerator.java index d969dcfc8..395903ec2 100644 --- a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaEnumerationsGenerator.java +++ b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaEnumerationsGenerator.java @@ -155,6 +155,7 @@ public class JavaEnumerationsGenerator extends JavaBaseGenerator { cc = makeConst(cc); write(" case "+cc+": return \""+c.getCode()+"\";\r\n"); } + write(" case NULL: return null;\r\n"); write(" default: return \"?\";\r\n"); write(" }\r\n"); write(" }\r\n"); @@ -166,6 +167,7 @@ public class JavaEnumerationsGenerator extends JavaBaseGenerator { cc = makeConst(cc); write(" case "+cc+": return \""+c.getSystem()+"\";\r\n"); } + write(" case NULL: return null;\r\n"); write(" default: return \"?\";\r\n"); write(" }\r\n"); write(" }\r\n"); @@ -177,6 +179,7 @@ public class JavaEnumerationsGenerator extends JavaBaseGenerator { cc = makeConst(cc); write(" case "+cc+": return \""+Utilities.escapeJava(definitions.getCodeDefinition(c.getSystem(), c.getCode()))+"\";\r\n"); } + write(" case NULL: return null;\r\n"); write(" default: return \"?\";\r\n"); write(" }\r\n"); write(" }\r\n"); @@ -188,6 +191,7 @@ public class JavaEnumerationsGenerator extends JavaBaseGenerator { cc = makeConst(cc); write(" case "+cc+": return \""+Utilities.escapeJava(Utilities.noString(c.getDisplay()) ? c.getCode() : c.getDisplay())+"\";\r\n"); } + write(" case NULL: return null;\r\n"); write(" default: return \"?\";\r\n"); write(" }\r\n"); write(" }\r\n"); diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserJsonGenerator.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserJsonGenerator.java index 8562e8c45..94bb81b44 100644 --- a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserJsonGenerator.java +++ b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaParserJsonGenerator.java @@ -240,7 +240,7 @@ public class JavaParserJsonGenerator extends JavaBaseGenerator { if (ed.unbounded()) { if (isPrimitive(ed.typeSummary()) || ed.typeSummary().startsWith("canonical(")) { parser.append(" if (json.has(\""+name+"\")) {\r\n"); - parser.append(" JsonArray array = json.getAsJsonArray(\""+name+"\");\r\n"); + parser.append(" JsonArray array = getJArray(json, \""+name+"\");\r\n"); parser.append(" for (int i = 0; i < array.size(); i++) {\r\n"); parser.append(" if (array.get(i).isJsonNull()) {\r\n"); if (en == null) { @@ -255,7 +255,7 @@ public class JavaParserJsonGenerator extends JavaBaseGenerator { parser.append(" }\r\n"); parser.append(" };\r\n"); parser.append(" if (json.has(\"_"+name+"\")) {\r\n"); - parser.append(" JsonArray array = json.getAsJsonArray(\"_"+name+"\");\r\n"); + parser.append(" JsonArray array = getJArray(json, \"_"+name+"\");\r\n"); parser.append(" for (int i = 0; i < array.size(); i++) {\r\n"); parser.append(" if (i == res.get"+upFirst(name)+"().size())\r\n"); parser.append(" res.get"+upFirst(name)+"().add("+anprsr+");\r\n"); @@ -265,7 +265,7 @@ public class JavaParserJsonGenerator extends JavaBaseGenerator { parser.append(" };\r\n"); } else { parser.append(" if (json.has(\""+name+"\")) {\r\n"); - parser.append(" JsonArray array = json.getAsJsonArray(\""+name+"\");\r\n"); + parser.append(" JsonArray array = getJArray(json, \""+name+"\");\r\n"); parser.append(" for (int i = 0; i < array.size(); i++) {\r\n"); parser.append(" res.get"+upFirst(getElementName(name, false))+"().add("+aprsr+");\r\n"); parser.append(" }\r\n"); diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaResourceGenerator.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaResourceGenerator.java index 4458b939e..3edd105cd 100644 --- a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaResourceGenerator.java +++ b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/codegen/JavaResourceGenerator.java @@ -311,14 +311,10 @@ public class JavaResourceGenerator extends JavaBaseGenerator { } else { SearchParameter comp0 = definitions.getSearchParams().get(sp.getComponent().get(0).getDefinition()); SearchParameter comp1 = definitions.getSearchParams().get(sp.getComponent().get(1).getDefinition()); - if (comp0 == null) { - throw new Error("Couldn't find composite component " + sp.getComponent().get(0).getDefinition() + " on "+analysis.getName()); + if (comp0 != null && comp1 != null) { + String[] compositeOf = new String[] { comp0.getCode(), comp1.getCode() }; + writeSearchParameterField(analysis.getName(), clss, analysis.isAbstract(), sp, sp.getCode(), compositeOf, analysis.getSearchParams(), analysis.getName()); } - if (comp1 == null) { - throw new Error("Couldn't find composite component " + sp.getComponent().get(1).getDefinition() + " on "+analysis.getName()); - } - String[] compositeOf = new String[] { comp0.getCode(), comp1.getCode() }; - writeSearchParameterField(analysis.getName(), clss, analysis.isAbstract(), sp, sp.getCode(), compositeOf, analysis.getSearchParams(), analysis.getName()); } } else if (code.contains("[x]")) { /* @@ -333,7 +329,7 @@ public class JavaResourceGenerator extends JavaBaseGenerator { } if (config.getAdornments().containsKey(analysis.getClassName())) { - write("// Manual code (from Configuration.txt)t:\r\n"); + write("// Manual code (from Configuration.txt):\r\n"); write(config.getAdornments().get(analysis.getClassName())+"\r\n"); write("// end addition\r\n"); } diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/engine/DefinitionsLoader.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/engine/DefinitionsLoader.java index 2072038a5..78a91c589 100644 --- a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/engine/DefinitionsLoader.java +++ b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/engine/DefinitionsLoader.java @@ -4,6 +4,8 @@ import java.io.IOException; import org.hl7.fhir.exceptions.FHIRFormatError; import org.hl7.fhir.r5.formats.JsonParser; +import org.hl7.fhir.r5.model.Bundle; +import org.hl7.fhir.r5.model.Bundle.BundleEntryComponent; import org.hl7.fhir.r5.model.CapabilityStatement; import org.hl7.fhir.r5.model.CodeSystem; import org.hl7.fhir.r5.model.CompartmentDefinition; @@ -13,6 +15,7 @@ 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; +import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.npm.NpmPackage; import org.hl7.fhir.utilities.npm.ToolsVersion; @@ -45,6 +48,29 @@ public class DefinitionsLoader { for (String t : npm.listResources("CompartmentDefinition")) { res.getCompartments().see((CompartmentDefinition) load(npm, t), null); } + Bundle bnd = (Bundle) load(npm, "Bundle-searchParams.json"); + if (bnd != null) { + for (BundleEntryComponent be : bnd.getEntry()) { + Resource r = be.getResource(); + if (r instanceof CodeSystem) { + res.getCodeSystems().see((CodeSystem) r, null); + } else if (r instanceof ValueSet) { + res.getValuesets().see((ValueSet) r, null); + } else if (r instanceof ConceptMap) { + res.getConceptMaps().see((ConceptMap) r, null); + } else if (r instanceof CapabilityStatement) { + res.getStatements().see((CapabilityStatement) r, null); + } else if (r instanceof StructureDefinition) { + res.getStructures().see((StructureDefinition) r, null); + } else if (r instanceof OperationDefinition) { + res.getOperations().see((OperationDefinition) r, null); + } else if (r instanceof SearchParameter) { + res.getSearchParams().see((SearchParameter) r, null); + } else if (r instanceof CompartmentDefinition) { + res.getCompartments().see((CompartmentDefinition) r, null); + } + } + } return res; } @@ -52,7 +78,9 @@ public class DefinitionsLoader { try { return new JsonParser().parse(npm.loadResource(t)); } catch (Exception e) { - throw new Error("Error reading "+t+": "+e.getMessage(), e); + System.out.println("Error reading "+t+": "+e.getMessage()); + e.printStackTrace(); + return null; } } } \ No newline at end of file diff --git a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/engine/JavaCoreGenerator.java b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/engine/JavaCoreGenerator.java index e24a8ac84..cdf721684 100644 --- a/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/engine/JavaCoreGenerator.java +++ b/org.hl7.fhir.core.generator/src/org/hl7/fhir/core/generator/engine/JavaCoreGenerator.java @@ -53,7 +53,6 @@ public class JavaCoreGenerator { new JavaCoreGenerator().generate(version, src, dest); } } - private void generate(String version, String src, String dest) throws Exception { long start = System.currentTimeMillis(); @@ -65,7 +64,6 @@ public class JavaCoreGenerator { String pid = "r5"; String jid = "r5"; - FilesystemPackageCacheManager pcm = new FilesystemPackageCacheManager(true, ToolsVersion.TOOLS_VERSION); System.out.println("Cache: "+pcm.getFolder()); System.out.println("Load hl7.fhir."+pid+".core"); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java index 4826c9e85..8590bcab8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/BaseWorkerContext.java @@ -863,12 +863,14 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte if (options.isUseClient()) { // ok, first we try to validate locally try { - ValueSetCheckerSimple vsc = new ValueSetCheckerSimple(options, vs, this); - res = vsc.validateCode(code); - if (txCache != null) { - txCache.cacheValidation(cacheToken, res, TerminologyCache.TRANSIENT); + ValueSetCheckerSimple vsc = new ValueSetCheckerSimple(options, vs, this); + if (!vsc.isServerSide(code.getSystem())) { + res = vsc.validateCode(code); + if (txCache != null) { + txCache.cacheValidation(cacheToken, res, TerminologyCache.TRANSIENT); + } + return res; } - return res; } catch (Exception e) { } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/CanonicalResourceManager.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/CanonicalResourceManager.java index d9893d099..efa9d4619 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/CanonicalResourceManager.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/context/CanonicalResourceManager.java @@ -204,11 +204,13 @@ public class CanonicalResourceManager { } public void see(T r, PackageVersion packgeInfo) { - if (!r.hasId()) { - r.setId(UUID.randomUUID().toString()); + if (r != null) { + if (!r.hasId()) { + r.setId(UUID.randomUUID().toString()); + } + CanonicalResourceManager.CachedCanonicalResource cr = new CachedCanonicalResource(r, packgeInfo); + see(cr); } - CanonicalResourceManager.CachedCanonicalResource cr = new CachedCanonicalResource(r, packgeInfo); - see(cr); } public void see(CachedCanonicalResource cr) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/JsonParser.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/JsonParser.java index 467fea529..c64b1c53d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/JsonParser.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/JsonParser.java @@ -2,8 +2,6 @@ package org.hl7.fhir.r5.formats; // generated - - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -32,7 +30,7 @@ package org.hl7.fhir.r5.formats; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Fri, Aug 21, 2020 14:46+1000 for FHIR v4.5.0 +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 @@ -183,7 +181,7 @@ public class JsonParser extends JsonParserBase { protected void parseBackboneElementProperties(JsonObject json, BackboneElement res) throws IOException, FHIRFormatError { parseElementProperties(json, res); if (json.has("modifierExtension")) { - JsonArray array = json.getAsJsonArray("modifierExtension"); + JsonArray array = getJArray(json, "modifierExtension"); for (int i = 0; i < array.size(); i++) { res.getModifierExtension().add(parseExtension(array.get(i).getAsJsonObject())); } @@ -193,7 +191,7 @@ public class JsonParser extends JsonParserBase { protected void parseBackboneTypeProperties(JsonObject json, BackboneType res) throws IOException, FHIRFormatError { parseDataTypeProperties(json, res); if (json.has("modifierExtension")) { - JsonArray array = json.getAsJsonArray("modifierExtension"); + JsonArray array = getJArray(json, "modifierExtension"); for (int i = 0; i < array.size(); i++) { res.getModifierExtension().add(parseExtension(array.get(i).getAsJsonObject())); } @@ -211,7 +209,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_id")) parseElementProperties(getJObject(json, "_id"), res.getIdElement()); if (json.has("extension")) { - JsonArray array = json.getAsJsonArray("extension"); + JsonArray array = getJArray(json, "extension"); for (int i = 0; i < array.size(); i++) { res.getExtension().add(parseExtension(array.get(i).getAsJsonObject())); } @@ -239,7 +237,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_text")) parseElementProperties(getJObject(json, "_text"), res.getTextElement()); if (json.has("line")) { - JsonArray array = json.getAsJsonArray("line"); + JsonArray array = getJArray(json, "line"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getLine().add(new StringType()); @@ -249,7 +247,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_line")) { - JsonArray array = json.getAsJsonArray("_line"); + JsonArray array = getJArray(json, "_line"); for (int i = 0; i < array.size(); i++) { if (i == res.getLine().size()) res.getLine().add(parseString(null)); @@ -383,7 +381,7 @@ public class JsonParser extends JsonParserBase { protected void parseCodeableConceptProperties(JsonObject json, CodeableConcept res) throws IOException, FHIRFormatError { parseDataTypeProperties(json, res); if (json.has("coding")) { - JsonArray array = json.getAsJsonArray("coding"); + JsonArray array = getJArray(json, "coding"); for (int i = 0; i < array.size(); i++) { res.getCoding().add(parseCoding(array.get(i).getAsJsonObject())); } @@ -451,7 +449,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_name")) parseElementProperties(getJObject(json, "_name"), res.getNameElement()); if (json.has("telecom")) { - JsonArray array = json.getAsJsonArray("telecom"); + JsonArray array = getJArray(json, "telecom"); for (int i = 0; i < array.size(); i++) { res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject())); } @@ -503,7 +501,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_name")) parseElementProperties(getJObject(json, "_name"), res.getNameElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -533,7 +531,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_type")) parseElementProperties(getJObject(json, "_type"), res.getTypeElement()); if (json.has("profile")) { - JsonArray array = json.getAsJsonArray("profile"); + JsonArray array = getJArray(json, "profile"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getProfile().add(new CanonicalType()); @@ -543,7 +541,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_profile")) { - JsonArray array = json.getAsJsonArray("_profile"); + JsonArray array = getJArray(json, "_profile"); for (int i = 0; i < array.size(); i++) { if (i == res.getProfile().size()) res.getProfile().add(parseCanonical(null)); @@ -555,7 +553,7 @@ public class JsonParser extends JsonParserBase { if (subject != null) res.setSubject(subject); if (json.has("mustSupport")) { - JsonArray array = json.getAsJsonArray("mustSupport"); + JsonArray array = getJArray(json, "mustSupport"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getMustSupport().add(new StringType()); @@ -565,7 +563,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_mustSupport")) { - JsonArray array = json.getAsJsonArray("_mustSupport"); + JsonArray array = getJArray(json, "_mustSupport"); for (int i = 0; i < array.size(); i++) { if (i == res.getMustSupport().size()) res.getMustSupport().add(parseString(null)); @@ -574,13 +572,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("codeFilter")) { - JsonArray array = json.getAsJsonArray("codeFilter"); + JsonArray array = getJArray(json, "codeFilter"); for (int i = 0; i < array.size(); i++) { res.getCodeFilter().add(parseDataRequirementCodeFilterComponent(array.get(i).getAsJsonObject())); } }; if (json.has("dateFilter")) { - JsonArray array = json.getAsJsonArray("dateFilter"); + JsonArray array = getJArray(json, "dateFilter"); for (int i = 0; i < array.size(); i++) { res.getDateFilter().add(parseDataRequirementDateFilterComponent(array.get(i).getAsJsonObject())); } @@ -590,7 +588,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_limit")) parseElementProperties(getJObject(json, "_limit"), res.getLimitElement()); if (json.has("sort")) { - JsonArray array = json.getAsJsonArray("sort"); + JsonArray array = getJArray(json, "sort"); for (int i = 0; i < array.size(); i++) { res.getSort().add(parseDataRequirementSortComponent(array.get(i).getAsJsonObject())); } @@ -618,7 +616,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_valueSet")) parseElementProperties(getJObject(json, "_valueSet"), res.getValueSetElement()); if (json.has("code")) { - JsonArray array = json.getAsJsonArray("code"); + JsonArray array = getJArray(json, "code"); for (int i = 0; i < array.size(); i++) { res.getCode().add(parseCoding(array.get(i).getAsJsonObject())); } @@ -691,7 +689,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_text")) parseElementProperties(getJObject(json, "_text"), res.getTextElement()); if (json.has("additionalInstruction")) { - JsonArray array = json.getAsJsonArray("additionalInstruction"); + JsonArray array = getJArray(json, "additionalInstruction"); for (int i = 0; i < array.size(); i++) { res.getAdditionalInstruction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -712,7 +710,7 @@ public class JsonParser extends JsonParserBase { if (json.has("method")) res.setMethod(parseCodeableConcept(getJObject(json, "method"))); if (json.has("doseAndRate")) { - JsonArray array = json.getAsJsonArray("doseAndRate"); + JsonArray array = getJArray(json, "doseAndRate"); for (int i = 0; i < array.size(); i++) { res.getDoseAndRate().add(parseDosageDoseAndRateComponent(array.get(i).getAsJsonObject())); } @@ -766,7 +764,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_path")) parseElementProperties(getJObject(json, "_path"), res.getPathElement()); if (json.has("representation")) { - JsonArray array = json.getAsJsonArray("representation"); + JsonArray array = getJArray(json, "representation"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getRepresentation().add(new Enumeration(new ElementDefinition.PropertyRepresentationEnumFactory(), ElementDefinition.PropertyRepresentation.NULL)); @@ -776,7 +774,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_representation")) { - JsonArray array = json.getAsJsonArray("_representation"); + JsonArray array = getJArray(json, "_representation"); for (int i = 0; i < array.size(); i++) { if (i == res.getRepresentation().size()) res.getRepresentation().add(parseEnumeration(null, ElementDefinition.PropertyRepresentation.NULL, new ElementDefinition.PropertyRepresentationEnumFactory())); @@ -797,7 +795,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_label")) parseElementProperties(getJObject(json, "_label"), res.getLabelElement()); if (json.has("code")) { - JsonArray array = json.getAsJsonArray("code"); + JsonArray array = getJArray(json, "code"); for (int i = 0; i < array.size(); i++) { res.getCode().add(parseCoding(array.get(i).getAsJsonObject())); } @@ -821,7 +819,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_requirements")) parseElementProperties(getJObject(json, "_requirements"), res.getRequirementsElement()); if (json.has("alias")) { - JsonArray array = json.getAsJsonArray("alias"); + JsonArray array = getJArray(json, "alias"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getAlias().add(new StringType()); @@ -831,7 +829,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_alias")) { - JsonArray array = json.getAsJsonArray("_alias"); + JsonArray array = getJArray(json, "_alias"); for (int i = 0; i < array.size(); i++) { if (i == res.getAlias().size()) res.getAlias().add(parseString(null)); @@ -854,7 +852,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_contentReference")) parseElementProperties(getJObject(json, "_contentReference"), res.getContentReferenceElement()); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseElementDefinitionTypeRefComponent(array.get(i).getAsJsonObject())); } @@ -877,7 +875,7 @@ public class JsonParser extends JsonParserBase { if (pattern != null) res.setPattern(pattern); if (json.has("example")) { - JsonArray array = json.getAsJsonArray("example"); + JsonArray array = getJArray(json, "example"); for (int i = 0; i < array.size(); i++) { res.getExample().add(parseElementDefinitionExampleComponent(array.get(i).getAsJsonObject())); } @@ -893,7 +891,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_maxLength")) parseElementProperties(getJObject(json, "_maxLength"), res.getMaxLengthElement()); if (json.has("condition")) { - JsonArray array = json.getAsJsonArray("condition"); + JsonArray array = getJArray(json, "condition"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getCondition().add(new IdType()); @@ -903,7 +901,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_condition")) { - JsonArray array = json.getAsJsonArray("_condition"); + JsonArray array = getJArray(json, "_condition"); for (int i = 0; i < array.size(); i++) { if (i == res.getCondition().size()) res.getCondition().add(parseId(null)); @@ -912,7 +910,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("constraint")) { - JsonArray array = json.getAsJsonArray("constraint"); + JsonArray array = getJArray(json, "constraint"); for (int i = 0; i < array.size(); i++) { res.getConstraint().add(parseElementDefinitionConstraintComponent(array.get(i).getAsJsonObject())); } @@ -936,7 +934,7 @@ public class JsonParser extends JsonParserBase { if (json.has("binding")) res.setBinding(parseElementDefinitionBindingComponent(getJObject(json, "binding"))); if (json.has("mapping")) { - JsonArray array = json.getAsJsonArray("mapping"); + JsonArray array = getJArray(json, "mapping"); for (int i = 0; i < array.size(); i++) { res.getMapping().add(parseElementDefinitionMappingComponent(array.get(i).getAsJsonObject())); } @@ -952,7 +950,7 @@ public class JsonParser extends JsonParserBase { protected void parseElementDefinitionSlicingComponentProperties(JsonObject json, ElementDefinition.ElementDefinitionSlicingComponent res) throws IOException, FHIRFormatError { parseElementProperties(json, res); if (json.has("discriminator")) { - JsonArray array = json.getAsJsonArray("discriminator"); + JsonArray array = getJArray(json, "discriminator"); for (int i = 0; i < array.size(); i++) { res.getDiscriminator().add(parseElementDefinitionSlicingDiscriminatorComponent(array.get(i).getAsJsonObject())); } @@ -1024,7 +1022,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_code")) parseElementProperties(getJObject(json, "_code"), res.getCodeElement()); if (json.has("profile")) { - JsonArray array = json.getAsJsonArray("profile"); + JsonArray array = getJArray(json, "profile"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getProfile().add(new CanonicalType()); @@ -1034,7 +1032,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_profile")) { - JsonArray array = json.getAsJsonArray("_profile"); + JsonArray array = getJArray(json, "_profile"); for (int i = 0; i < array.size(); i++) { if (i == res.getProfile().size()) res.getProfile().add(parseCanonical(null)); @@ -1043,7 +1041,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("targetProfile")) { - JsonArray array = json.getAsJsonArray("targetProfile"); + JsonArray array = getJArray(json, "targetProfile"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getTargetProfile().add(new CanonicalType()); @@ -1053,7 +1051,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_targetProfile")) { - JsonArray array = json.getAsJsonArray("_targetProfile"); + JsonArray array = getJArray(json, "_targetProfile"); for (int i = 0; i < array.size(); i++) { if (i == res.getTargetProfile().size()) res.getTargetProfile().add(parseCanonical(null)); @@ -1062,7 +1060,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("aggregation")) { - JsonArray array = json.getAsJsonArray("aggregation"); + JsonArray array = getJArray(json, "aggregation"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getAggregation().add(new Enumeration(new ElementDefinition.AggregationModeEnumFactory(), ElementDefinition.AggregationMode.NULL)); @@ -1072,7 +1070,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_aggregation")) { - JsonArray array = json.getAsJsonArray("_aggregation"); + JsonArray array = getJArray(json, "_aggregation"); for (int i = 0; i < array.size(); i++) { if (i == res.getAggregation().size()) res.getAggregation().add(parseEnumeration(null, ElementDefinition.AggregationMode.NULL, new ElementDefinition.AggregationModeEnumFactory())); @@ -1257,7 +1255,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_family")) parseElementProperties(getJObject(json, "_family"), res.getFamilyElement()); if (json.has("given")) { - JsonArray array = json.getAsJsonArray("given"); + JsonArray array = getJArray(json, "given"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getGiven().add(new StringType()); @@ -1267,7 +1265,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_given")) { - JsonArray array = json.getAsJsonArray("_given"); + JsonArray array = getJArray(json, "_given"); for (int i = 0; i < array.size(); i++) { if (i == res.getGiven().size()) res.getGiven().add(parseString(null)); @@ -1276,7 +1274,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("prefix")) { - JsonArray array = json.getAsJsonArray("prefix"); + JsonArray array = getJArray(json, "prefix"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPrefix().add(new StringType()); @@ -1286,7 +1284,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_prefix")) { - JsonArray array = json.getAsJsonArray("_prefix"); + JsonArray array = getJArray(json, "_prefix"); for (int i = 0; i < array.size(); i++) { if (i == res.getPrefix().size()) res.getPrefix().add(parseString(null)); @@ -1295,7 +1293,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("suffix")) { - JsonArray array = json.getAsJsonArray("suffix"); + JsonArray array = getJArray(json, "suffix"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSuffix().add(new StringType()); @@ -1305,7 +1303,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_suffix")) { - JsonArray array = json.getAsJsonArray("_suffix"); + JsonArray array = getJArray(json, "_suffix"); for (int i = 0; i < array.size(); i++) { if (i == res.getSuffix().size()) res.getSuffix().add(parseString(null)); @@ -1388,7 +1386,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_source")) parseElementProperties(getJObject(json, "_source"), res.getSourceElement()); if (json.has("profile")) { - JsonArray array = json.getAsJsonArray("profile"); + JsonArray array = getJArray(json, "profile"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getProfile().add(new CanonicalType()); @@ -1398,7 +1396,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_profile")) { - JsonArray array = json.getAsJsonArray("_profile"); + JsonArray array = getJArray(json, "_profile"); for (int i = 0; i < array.size(); i++) { if (i == res.getProfile().size()) res.getProfile().add(parseCanonical(null)); @@ -1407,13 +1405,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("security")) { - JsonArray array = json.getAsJsonArray("security"); + JsonArray array = getJArray(json, "security"); for (int i = 0; i < array.size(); i++) { res.getSecurity().add(parseCoding(array.get(i).getAsJsonObject())); } }; if (json.has("tag")) { - JsonArray array = json.getAsJsonArray("tag"); + JsonArray array = getJArray(json, "tag"); for (int i = 0; i < array.size(); i++) { res.getTag().add(parseCoding(array.get(i).getAsJsonObject())); } @@ -1467,7 +1465,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -1479,7 +1477,7 @@ public class JsonParser extends JsonParserBase { if (json.has("bottomOfFirstInterval")) res.setBottomOfFirstInterval(parseQuantity(getJObject(json, "bottomOfFirstInterval"))); if (json.has("interval")) { - JsonArray array = json.getAsJsonArray("interval"); + JsonArray array = getJArray(json, "interval"); for (int i = 0; i < array.size(); i++) { res.getInterval().add(parseOrderedDistributionIntervalComponent(array.get(i).getAsJsonObject())); } @@ -1501,7 +1499,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_rankOrder")) parseElementProperties(getJObject(json, "_rankOrder"), res.getRankOrderElement()); if (json.has("intervalStatistic")) { - JsonArray array = json.getAsJsonArray("intervalStatistic"); + JsonArray array = getJArray(json, "intervalStatistic"); for (int i = 0; i < array.size(); i++) { res.getIntervalStatistic().add(parseStatistic(array.get(i).getAsJsonObject())); } @@ -1608,7 +1606,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_shape")) parseElementProperties(getJObject(json, "_shape"), res.getShapeElement()); if (json.has("color")) { - JsonArray array = json.getAsJsonArray("color"); + JsonArray array = getJArray(json, "color"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getColor().add(new StringType()); @@ -1618,7 +1616,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_color")) { - JsonArray array = json.getAsJsonArray("_color"); + JsonArray array = getJArray(json, "_color"); for (int i = 0; i < array.size(); i++) { if (i == res.getColor().size()) res.getColor().add(parseString(null)); @@ -1627,7 +1625,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("imprint")) { - JsonArray array = json.getAsJsonArray("imprint"); + JsonArray array = getJArray(json, "imprint"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getImprint().add(new StringType()); @@ -1637,7 +1635,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_imprint")) { - JsonArray array = json.getAsJsonArray("_imprint"); + JsonArray array = getJArray(json, "_imprint"); for (int i = 0; i < array.size(); i++) { if (i == res.getImprint().size()) res.getImprint().add(parseString(null)); @@ -1646,7 +1644,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("image")) { - JsonArray array = json.getAsJsonArray("image"); + JsonArray array = getJArray(json, "image"); for (int i = 0; i < array.size(); i++) { res.getImage().add(parseAttachment(array.get(i).getAsJsonObject())); } @@ -1669,7 +1667,7 @@ public class JsonParser extends JsonParserBase { if (period != null) res.setPeriod(period); if (json.has("specialPrecautionsForStorage")) { - JsonArray array = json.getAsJsonArray("specialPrecautionsForStorage"); + JsonArray array = getJArray(json, "specialPrecautionsForStorage"); for (int i = 0; i < array.size(); i++) { res.getSpecialPrecautionsForStorage().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -1734,6 +1732,22 @@ public class JsonParser extends JsonParserBase { res.setDenominator(parseQuantity(getJObject(json, "denominator"))); } + protected RatioRange parseRatioRange(JsonObject json) throws IOException, FHIRFormatError { + RatioRange res = new RatioRange(); + parseRatioRangeProperties(json, res); + return res; + } + + protected void parseRatioRangeProperties(JsonObject json, RatioRange res) throws IOException, FHIRFormatError { + parseDataTypeProperties(json, res); + if (json.has("lowNumerator")) + res.setLowNumerator(parseQuantity(getJObject(json, "lowNumerator"))); + if (json.has("highNumerator")) + res.setHighNumerator(parseQuantity(getJObject(json, "highNumerator"))); + if (json.has("denominator")) + res.setDenominator(parseQuantity(getJObject(json, "denominator"))); + } + protected Reference parseReference(JsonObject json) throws IOException, FHIRFormatError { Reference res = new Reference(); parseReferenceProperties(json, res); @@ -1839,7 +1853,7 @@ public class JsonParser extends JsonParserBase { protected void parseSignatureProperties(JsonObject json, Signature res) throws IOException, FHIRFormatError { parseDataTypeProperties(json, res); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCoding(array.get(i).getAsJsonObject())); } @@ -1879,29 +1893,35 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("statisticType")) res.setStatisticType(parseCodeableConcept(getJObject(json, "statisticType"))); + if (json.has("category")) + res.setCategory(parseCodeableConcept(getJObject(json, "category"))); if (json.has("quantity")) res.setQuantity(parseQuantity(getJObject(json, "quantity"))); if (json.has("numberOfEvents")) - res.setNumberOfEventsElement(parseInteger(json.get("numberOfEvents").getAsLong())); + res.setNumberOfEventsElement(parseUnsignedInt(json.get("numberOfEvents").getAsString())); if (json.has("_numberOfEvents")) parseElementProperties(getJObject(json, "_numberOfEvents"), res.getNumberOfEventsElement()); + if (json.has("numberAffected")) + res.setNumberAffectedElement(parseUnsignedInt(json.get("numberAffected").getAsString())); + if (json.has("_numberAffected")) + parseElementProperties(getJObject(json, "_numberAffected"), res.getNumberAffectedElement()); if (json.has("sampleSize")) res.setSampleSize(parseStatisticSampleSizeComponent(getJObject(json, "sampleSize"))); if (json.has("attributeEstimate")) { - JsonArray array = json.getAsJsonArray("attributeEstimate"); + JsonArray array = getJArray(json, "attributeEstimate"); for (int i = 0; i < array.size(); i++) { res.getAttributeEstimate().add(parseStatisticAttributeEstimateComponent(array.get(i).getAsJsonObject())); } }; if (json.has("modelCharacteristic")) { - JsonArray array = json.getAsJsonArray("modelCharacteristic"); + JsonArray array = getJArray(json, "modelCharacteristic"); for (int i = 0; i < array.size(); i++) { res.getModelCharacteristic().add(parseStatisticModelCharacteristicComponent(array.get(i).getAsJsonObject())); } @@ -1921,21 +1941,21 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("numberOfStudies")) - res.setNumberOfStudiesElement(parseInteger(json.get("numberOfStudies").getAsLong())); + res.setNumberOfStudiesElement(parseUnsignedInt(json.get("numberOfStudies").getAsString())); if (json.has("_numberOfStudies")) parseElementProperties(getJObject(json, "_numberOfStudies"), res.getNumberOfStudiesElement()); if (json.has("numberOfParticipants")) - res.setNumberOfParticipantsElement(parseInteger(json.get("numberOfParticipants").getAsLong())); + res.setNumberOfParticipantsElement(parseUnsignedInt(json.get("numberOfParticipants").getAsString())); if (json.has("_numberOfParticipants")) parseElementProperties(getJObject(json, "_numberOfParticipants"), res.getNumberOfParticipantsElement()); if (json.has("knownDataCount")) - res.setKnownDataCountElement(parseInteger(json.get("knownDataCount").getAsLong())); + res.setKnownDataCountElement(parseUnsignedInt(json.get("knownDataCount").getAsString())); if (json.has("_knownDataCount")) parseElementProperties(getJObject(json, "_knownDataCount"), res.getKnownDataCountElement()); } @@ -1953,7 +1973,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -1969,7 +1989,7 @@ public class JsonParser extends JsonParserBase { if (json.has("range")) res.setRange(parseRange(getJObject(json, "range"))); if (json.has("attributeEstimate")) { - JsonArray array = json.getAsJsonArray("attributeEstimate"); + JsonArray array = getJArray(json, "attributeEstimate"); for (int i = 0; i < array.size(); i++) { res.getAttributeEstimate().add(parseStatisticAttributeEstimateAttributeEstimateComponent(array.get(i).getAsJsonObject())); } @@ -1989,7 +2009,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -2016,11 +2036,10 @@ public class JsonParser extends JsonParserBase { parseElementProperties(json, res); if (json.has("code")) res.setCode(parseCodeableConcept(getJObject(json, "code"))); - DataType value = parseType("value", json); - if (value != null) - res.setValue(value); + if (json.has("value")) + res.setValue(parseQuantity(getJObject(json, "value"))); if (json.has("variable")) { - JsonArray array = json.getAsJsonArray("variable"); + JsonArray array = getJArray(json, "variable"); for (int i = 0; i < array.size(); i++) { res.getVariable().add(parseStatisticModelCharacteristicVariableComponent(array.get(i).getAsJsonObject())); } @@ -2042,19 +2061,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_handling")) parseElementProperties(getJObject(json, "_handling"), res.getHandlingElement()); if (json.has("valueCategory")) { - JsonArray array = json.getAsJsonArray("valueCategory"); + JsonArray array = getJArray(json, "valueCategory"); for (int i = 0; i < array.size(); i++) { res.getValueCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("valueQuantity")) { - JsonArray array = json.getAsJsonArray("valueQuantity"); + JsonArray array = getJArray(json, "valueQuantity"); for (int i = 0; i < array.size(); i++) { res.getValueQuantity().add(parseQuantity(array.get(i).getAsJsonObject())); } }; if (json.has("valueRange")) { - JsonArray array = json.getAsJsonArray("valueRange"); + JsonArray array = getJArray(json, "valueRange"); for (int i = 0; i < array.size(); i++) { res.getValueRange().add(parseRange(array.get(i).getAsJsonObject())); } @@ -2070,7 +2089,7 @@ public class JsonParser extends JsonParserBase { protected void parseTimingProperties(JsonObject json, Timing res) throws IOException, FHIRFormatError { parseBackboneTypeProperties(json, res); if (json.has("event")) { - JsonArray array = json.getAsJsonArray("event"); + JsonArray array = getJArray(json, "event"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getEvent().add(new DateTimeType()); @@ -2080,7 +2099,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_event")) { - JsonArray array = json.getAsJsonArray("_event"); + JsonArray array = getJArray(json, "_event"); for (int i = 0; i < array.size(); i++) { if (i == res.getEvent().size()) res.getEvent().add(parseDateTime(null)); @@ -2146,7 +2165,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_periodUnit")) parseElementProperties(getJObject(json, "_periodUnit"), res.getPeriodUnitElement()); if (json.has("dayOfWeek")) { - JsonArray array = json.getAsJsonArray("dayOfWeek"); + JsonArray array = getJArray(json, "dayOfWeek"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDayOfWeek().add(new Enumeration(new Enumerations.DaysOfWeekEnumFactory(), Enumerations.DaysOfWeek.NULL)); @@ -2156,7 +2175,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_dayOfWeek")) { - JsonArray array = json.getAsJsonArray("_dayOfWeek"); + JsonArray array = getJArray(json, "_dayOfWeek"); for (int i = 0; i < array.size(); i++) { if (i == res.getDayOfWeek().size()) res.getDayOfWeek().add(parseEnumeration(null, Enumerations.DaysOfWeek.NULL, new Enumerations.DaysOfWeekEnumFactory())); @@ -2165,7 +2184,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("timeOfDay")) { - JsonArray array = json.getAsJsonArray("timeOfDay"); + JsonArray array = getJArray(json, "timeOfDay"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getTimeOfDay().add(new TimeType()); @@ -2175,7 +2194,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_timeOfDay")) { - JsonArray array = json.getAsJsonArray("_timeOfDay"); + JsonArray array = getJArray(json, "_timeOfDay"); for (int i = 0; i < array.size(); i++) { if (i == res.getTimeOfDay().size()) res.getTimeOfDay().add(parseTime(null)); @@ -2184,7 +2203,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("when")) { - JsonArray array = json.getAsJsonArray("when"); + JsonArray array = getJArray(json, "when"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getWhen().add(new Enumeration(new Timing.EventTimingEnumFactory(), Timing.EventTiming.NULL)); @@ -2194,7 +2213,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_when")) { - JsonArray array = json.getAsJsonArray("_when"); + JsonArray array = getJArray(json, "_when"); for (int i = 0; i < array.size(); i++) { if (i == res.getWhen().size()) res.getWhen().add(parseEnumeration(null, Timing.EventTiming.NULL, new Timing.EventTimingEnumFactory())); @@ -2228,7 +2247,7 @@ public class JsonParser extends JsonParserBase { if (timing != null) res.setTiming(timing); if (json.has("data")) { - JsonArray array = json.getAsJsonArray("data"); + JsonArray array = getJArray(json, "data"); for (int i = 0; i < array.size(); i++) { res.getData().add(parseDataRequirement(array.get(i).getAsJsonObject())); } @@ -2261,19 +2280,19 @@ public class JsonParser extends JsonParserBase { if (json.has("text")) res.setText(parseNarrative(getJObject(json, "text"))); if (json.has("contained")) { - JsonArray array = json.getAsJsonArray("contained"); + JsonArray array = getJArray(json, "contained"); for (int i = 0; i < array.size(); i++) { res.getContained().add(parseResource(array.get(i).getAsJsonObject())); } }; if (json.has("extension")) { - JsonArray array = json.getAsJsonArray("extension"); + JsonArray array = getJArray(json, "extension"); for (int i = 0; i < array.size(); i++) { res.getExtension().add(parseExtension(array.get(i).getAsJsonObject())); } }; if (json.has("modifierExtension")) { - JsonArray array = json.getAsJsonArray("modifierExtension"); + JsonArray array = getJArray(json, "modifierExtension"); for (int i = 0; i < array.size(); i++) { res.getModifierExtension().add(parseExtension(array.get(i).getAsJsonObject())); } @@ -2311,7 +2330,7 @@ public class JsonParser extends JsonParserBase { protected void parseAccountProperties(JsonObject json, Account res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -2327,7 +2346,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_name")) parseElementProperties(getJObject(json, "_name"), res.getNameElement()); if (json.has("subject")) { - JsonArray array = json.getAsJsonArray("subject"); + JsonArray array = getJArray(json, "subject"); for (int i = 0; i < array.size(); i++) { res.getSubject().add(parseReference(array.get(i).getAsJsonObject())); } @@ -2335,7 +2354,7 @@ public class JsonParser extends JsonParserBase { if (json.has("servicePeriod")) res.setServicePeriod(parsePeriod(getJObject(json, "servicePeriod"))); if (json.has("coverage")) { - JsonArray array = json.getAsJsonArray("coverage"); + JsonArray array = getJArray(json, "coverage"); for (int i = 0; i < array.size(); i++) { res.getCoverage().add(parseAccountCoverageComponent(array.get(i).getAsJsonObject())); } @@ -2347,7 +2366,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("guarantor")) { - JsonArray array = json.getAsJsonArray("guarantor"); + JsonArray array = getJArray(json, "guarantor"); for (int i = 0; i < array.size(); i++) { res.getGuarantor().add(parseAccountGuarantorComponent(array.get(i).getAsJsonObject())); } @@ -2403,7 +2422,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -2444,7 +2463,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -2454,13 +2473,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -2488,43 +2507,43 @@ public class JsonParser extends JsonParserBase { if (json.has("effectivePeriod")) res.setEffectivePeriod(parsePeriod(getJObject(json, "effectivePeriod"))); if (json.has("topic")) { - JsonArray array = json.getAsJsonArray("topic"); + JsonArray array = getJArray(json, "topic"); for (int i = 0; i < array.size(); i++) { res.getTopic().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("author")) { - JsonArray array = json.getAsJsonArray("author"); + JsonArray array = getJArray(json, "author"); for (int i = 0; i < array.size(); i++) { res.getAuthor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("editor")) { - JsonArray array = json.getAsJsonArray("editor"); + JsonArray array = getJArray(json, "editor"); for (int i = 0; i < array.size(); i++) { res.getEditor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("reviewer")) { - JsonArray array = json.getAsJsonArray("reviewer"); + JsonArray array = getJArray(json, "reviewer"); for (int i = 0; i < array.size(); i++) { res.getReviewer().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("endorser")) { - JsonArray array = json.getAsJsonArray("endorser"); + JsonArray array = getJArray(json, "endorser"); for (int i = 0; i < array.size(); i++) { res.getEndorser().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("relatedArtifact")) { - JsonArray array = json.getAsJsonArray("relatedArtifact"); + JsonArray array = getJArray(json, "relatedArtifact"); for (int i = 0; i < array.size(); i++) { res.getRelatedArtifact().add(parseRelatedArtifact(array.get(i).getAsJsonObject())); } }; if (json.has("library")) { - JsonArray array = json.getAsJsonArray("library"); + JsonArray array = getJArray(json, "library"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getLibrary().add(new CanonicalType()); @@ -2534,7 +2553,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_library")) { - JsonArray array = json.getAsJsonArray("_library"); + JsonArray array = getJArray(json, "_library"); for (int i = 0; i < array.size(); i++) { if (i == res.getLibrary().size()) res.getLibrary().add(parseCanonical(null)); @@ -2568,9 +2587,9 @@ public class JsonParser extends JsonParserBase { if (timing != null) res.setTiming(timing); if (json.has("location")) - res.setLocation(parseReference(getJObject(json, "location"))); + res.setLocation(parseCodeableReference(getJObject(json, "location"))); if (json.has("participant")) { - JsonArray array = json.getAsJsonArray("participant"); + JsonArray array = getJArray(json, "participant"); for (int i = 0; i < array.size(); i++) { res.getParticipant().add(parseActivityDefinitionParticipantComponent(array.get(i).getAsJsonObject())); } @@ -2581,31 +2600,31 @@ public class JsonParser extends JsonParserBase { if (json.has("quantity")) res.setQuantity(parseQuantity(getJObject(json, "quantity"))); if (json.has("dosage")) { - JsonArray array = json.getAsJsonArray("dosage"); + JsonArray array = getJArray(json, "dosage"); for (int i = 0; i < array.size(); i++) { res.getDosage().add(parseDosage(array.get(i).getAsJsonObject())); } }; if (json.has("bodySite")) { - JsonArray array = json.getAsJsonArray("bodySite"); + JsonArray array = getJArray(json, "bodySite"); for (int i = 0; i < array.size(); i++) { res.getBodySite().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("specimenRequirement")) { - JsonArray array = json.getAsJsonArray("specimenRequirement"); + JsonArray array = getJArray(json, "specimenRequirement"); for (int i = 0; i < array.size(); i++) { res.getSpecimenRequirement().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("observationRequirement")) { - JsonArray array = json.getAsJsonArray("observationRequirement"); + JsonArray array = getJArray(json, "observationRequirement"); for (int i = 0; i < array.size(); i++) { res.getObservationRequirement().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("observationResultRequirement")) { - JsonArray array = json.getAsJsonArray("observationResultRequirement"); + JsonArray array = getJArray(json, "observationResultRequirement"); for (int i = 0; i < array.size(); i++) { res.getObservationResultRequirement().add(parseReference(array.get(i).getAsJsonObject())); } @@ -2615,7 +2634,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_transform")) parseElementProperties(getJObject(json, "_transform"), res.getTransformElement()); if (json.has("dynamicValue")) { - JsonArray array = json.getAsJsonArray("dynamicValue"); + JsonArray array = getJArray(json, "dynamicValue"); for (int i = 0; i < array.size(); i++) { res.getDynamicValue().add(parseActivityDefinitionDynamicValueComponent(array.get(i).getAsJsonObject())); } @@ -2634,8 +2653,12 @@ public class JsonParser extends JsonParserBase { res.setTypeElement(parseEnumeration(json.get("type").getAsString(), Enumerations.ActionParticipantType.NULL, new Enumerations.ActionParticipantTypeEnumFactory())); if (json.has("_type")) parseElementProperties(getJObject(json, "_type"), res.getTypeElement()); + if (json.has("typeReference")) + res.setTypeReference(parseReference(getJObject(json, "typeReference"))); if (json.has("role")) res.setRole(parseCodeableConcept(getJObject(json, "role"))); + if (json.has("function")) + res.setFunction(parseCodeableConcept(getJObject(json, "function"))); } protected ActivityDefinition.ActivityDefinitionDynamicValueComponent parseActivityDefinitionDynamicValueComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -2663,13 +2686,13 @@ public class JsonParser extends JsonParserBase { protected void parseAdministrableProductDefinitionProperties(JsonObject json, AdministrableProductDefinition res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("subject")) { - JsonArray array = json.getAsJsonArray("subject"); + JsonArray array = getJArray(json, "subject"); for (int i = 0; i < array.size(); i++) { res.getSubject().add(parseReference(array.get(i).getAsJsonObject())); } @@ -2679,31 +2702,31 @@ public class JsonParser extends JsonParserBase { if (json.has("unitOfPresentation")) res.setUnitOfPresentation(parseCodeableConcept(getJObject(json, "unitOfPresentation"))); if (json.has("producedFrom")) { - JsonArray array = json.getAsJsonArray("producedFrom"); + JsonArray array = getJArray(json, "producedFrom"); for (int i = 0; i < array.size(); i++) { res.getProducedFrom().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("ingredient")) { - JsonArray array = json.getAsJsonArray("ingredient"); + JsonArray array = getJArray(json, "ingredient"); for (int i = 0; i < array.size(); i++) { res.getIngredient().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("device")) { - JsonArray array = json.getAsJsonArray("device"); + JsonArray array = getJArray(json, "device"); for (int i = 0; i < array.size(); i++) { res.getDevice().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("property")) { - JsonArray array = json.getAsJsonArray("property"); + JsonArray array = getJArray(json, "property"); for (int i = 0; i < array.size(); i++) { res.getProperty().add(parseAdministrableProductDefinitionPropertyComponent(array.get(i).getAsJsonObject())); } }; if (json.has("routeOfAdministration")) { - JsonArray array = json.getAsJsonArray("routeOfAdministration"); + JsonArray array = getJArray(json, "routeOfAdministration"); for (int i = 0; i < array.size(); i++) { res.getRouteOfAdministration().add(parseAdministrableProductDefinitionRouteOfAdministrationComponent(array.get(i).getAsJsonObject())); } @@ -2748,7 +2771,7 @@ public class JsonParser extends JsonParserBase { if (json.has("maxTreatmentPeriod")) res.setMaxTreatmentPeriod(parseDuration(getJObject(json, "maxTreatmentPeriod"))); if (json.has("targetSpecies")) { - JsonArray array = json.getAsJsonArray("targetSpecies"); + JsonArray array = getJArray(json, "targetSpecies"); for (int i = 0; i < array.size(); i++) { res.getTargetSpecies().add(parseAdministrableProductDefinitionRouteOfAdministrationTargetSpeciesComponent(array.get(i).getAsJsonObject())); } @@ -2766,7 +2789,7 @@ public class JsonParser extends JsonParserBase { if (json.has("code")) res.setCode(parseCodeableConcept(getJObject(json, "code"))); if (json.has("withdrawalPeriod")) { - JsonArray array = json.getAsJsonArray("withdrawalPeriod"); + JsonArray array = getJArray(json, "withdrawalPeriod"); for (int i = 0; i < array.size(); i++) { res.getWithdrawalPeriod().add(parseAdministrableProductDefinitionRouteOfAdministrationTargetSpeciesWithdrawalPeriodComponent(array.get(i).getAsJsonObject())); } @@ -2800,7 +2823,7 @@ public class JsonParser extends JsonParserBase { protected void parseAdverseEventProperties(JsonObject json, AdverseEvent res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -2814,7 +2837,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_actuality")) parseElementProperties(getJObject(json, "_actuality"), res.getActualityElement()); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -2837,7 +2860,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_recordedDate")) parseElementProperties(getJObject(json, "_recordedDate"), res.getRecordedDateElement()); if (json.has("resultingCondition")) { - JsonArray array = json.getAsJsonArray("resultingCondition"); + JsonArray array = getJArray(json, "resultingCondition"); for (int i = 0; i < array.size(); i++) { res.getResultingCondition().add(parseReference(array.get(i).getAsJsonObject())); } @@ -2846,48 +2869,52 @@ public class JsonParser extends JsonParserBase { res.setLocation(parseReference(getJObject(json, "location"))); if (json.has("seriousness")) res.setSeriousness(parseCodeableConcept(getJObject(json, "seriousness"))); - if (json.has("outcome")) - res.setOutcome(parseCodeableConcept(getJObject(json, "outcome"))); + if (json.has("outcome")) { + JsonArray array = getJArray(json, "outcome"); + for (int i = 0; i < array.size(); i++) { + res.getOutcome().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; if (json.has("recorder")) res.setRecorder(parseReference(getJObject(json, "recorder"))); if (json.has("participant")) { - JsonArray array = json.getAsJsonArray("participant"); + JsonArray array = getJArray(json, "participant"); for (int i = 0; i < array.size(); i++) { res.getParticipant().add(parseAdverseEventParticipantComponent(array.get(i).getAsJsonObject())); } }; if (json.has("suspectEntity")) { - JsonArray array = json.getAsJsonArray("suspectEntity"); + JsonArray array = getJArray(json, "suspectEntity"); for (int i = 0; i < array.size(); i++) { res.getSuspectEntity().add(parseAdverseEventSuspectEntityComponent(array.get(i).getAsJsonObject())); } }; if (json.has("contributingFactor")) { - JsonArray array = json.getAsJsonArray("contributingFactor"); + JsonArray array = getJArray(json, "contributingFactor"); for (int i = 0; i < array.size(); i++) { res.getContributingFactor().add(parseAdverseEventContributingFactorComponent(array.get(i).getAsJsonObject())); } }; if (json.has("preventiveAction")) { - JsonArray array = json.getAsJsonArray("preventiveAction"); + JsonArray array = getJArray(json, "preventiveAction"); for (int i = 0; i < array.size(); i++) { res.getPreventiveAction().add(parseAdverseEventPreventiveActionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("mitigatingAction")) { - JsonArray array = json.getAsJsonArray("mitigatingAction"); + JsonArray array = getJArray(json, "mitigatingAction"); for (int i = 0; i < array.size(); i++) { res.getMitigatingAction().add(parseAdverseEventMitigatingActionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("supportingInfo")) { - JsonArray array = json.getAsJsonArray("supportingInfo"); + JsonArray array = getJArray(json, "supportingInfo"); for (int i = 0; i < array.size(); i++) { res.getSupportingInfo().add(parseAdverseEventSupportingInfoComponent(array.get(i).getAsJsonObject())); } }; if (json.has("study")) { - JsonArray array = json.getAsJsonArray("study"); + JsonArray array = getJArray(json, "study"); for (int i = 0; i < array.size(); i++) { res.getStudy().add(parseReference(array.get(i).getAsJsonObject())); } @@ -3000,7 +3027,7 @@ public class JsonParser extends JsonParserBase { protected void parseAllergyIntoleranceProperties(JsonObject json, AllergyIntolerance res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -3014,7 +3041,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_type")) parseElementProperties(getJObject(json, "_type"), res.getTypeElement()); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getCategory().add(new Enumeration(new AllergyIntolerance.AllergyIntoleranceCategoryEnumFactory(), AllergyIntolerance.AllergyIntoleranceCategory.NULL)); @@ -3024,7 +3051,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_category")) { - JsonArray array = json.getAsJsonArray("_category"); + JsonArray array = getJArray(json, "_category"); for (int i = 0; i < array.size(); i++) { if (i == res.getCategory().size()) res.getCategory().add(parseEnumeration(null, AllergyIntolerance.AllergyIntoleranceCategory.NULL, new AllergyIntolerance.AllergyIntoleranceCategoryEnumFactory())); @@ -3058,13 +3085,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_lastOccurrence")) parseElementProperties(getJObject(json, "_lastOccurrence"), res.getLastOccurrenceElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("reaction")) { - JsonArray array = json.getAsJsonArray("reaction"); + JsonArray array = getJArray(json, "reaction"); for (int i = 0; i < array.size(); i++) { res.getReaction().add(parseAllergyIntoleranceReactionComponent(array.get(i).getAsJsonObject())); } @@ -3082,9 +3109,9 @@ public class JsonParser extends JsonParserBase { if (json.has("substance")) res.setSubstance(parseCodeableConcept(getJObject(json, "substance"))); if (json.has("manifestation")) { - JsonArray array = json.getAsJsonArray("manifestation"); + JsonArray array = getJArray(json, "manifestation"); for (int i = 0; i < array.size(); i++) { - res.getManifestation().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + res.getManifestation().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("description")) @@ -3102,7 +3129,7 @@ public class JsonParser extends JsonParserBase { if (json.has("exposureRoute")) res.setExposureRoute(parseCodeableConcept(getJObject(json, "exposureRoute"))); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -3118,7 +3145,7 @@ public class JsonParser extends JsonParserBase { protected void parseAppointmentProperties(JsonObject json, Appointment res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -3130,19 +3157,19 @@ public class JsonParser extends JsonParserBase { if (json.has("cancelationReason")) res.setCancelationReason(parseCodeableConcept(getJObject(json, "cancelationReason"))); if (json.has("serviceCategory")) { - JsonArray array = json.getAsJsonArray("serviceCategory"); + JsonArray array = getJArray(json, "serviceCategory"); for (int i = 0; i < array.size(); i++) { res.getServiceCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("serviceType")) { - JsonArray array = json.getAsJsonArray("serviceType"); + JsonArray array = getJArray(json, "serviceType"); for (int i = 0; i < array.size(); i++) { res.getServiceType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("specialty")) { - JsonArray array = json.getAsJsonArray("specialty"); + JsonArray array = getJArray(json, "specialty"); for (int i = 0; i < array.size(); i++) { res.getSpecialty().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -3150,21 +3177,19 @@ public class JsonParser extends JsonParserBase { if (json.has("appointmentType")) res.setAppointmentType(parseCodeableConcept(getJObject(json, "appointmentType"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("priority")) - res.setPriorityElement(parseUnsignedInt(json.get("priority").getAsString())); - if (json.has("_priority")) - parseElementProperties(getJObject(json, "_priority"), res.getPriorityElement()); + res.setPriority(parseCodeableConcept(getJObject(json, "priority"))); if (json.has("description")) res.setDescriptionElement(parseString(json.get("description").getAsString())); if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("supportingInformation")) { - JsonArray array = json.getAsJsonArray("supportingInformation"); + JsonArray array = getJArray(json, "supportingInformation"); for (int i = 0; i < array.size(); i++) { res.getSupportingInformation().add(parseReference(array.get(i).getAsJsonObject())); } @@ -3182,7 +3207,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_minutesDuration")) parseElementProperties(getJObject(json, "_minutesDuration"), res.getMinutesDurationElement()); if (json.has("slot")) { - JsonArray array = json.getAsJsonArray("slot"); + JsonArray array = getJArray(json, "slot"); for (int i = 0; i < array.size(); i++) { res.getSlot().add(parseReference(array.get(i).getAsJsonObject())); } @@ -3200,19 +3225,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_patientInstruction")) parseElementProperties(getJObject(json, "_patientInstruction"), res.getPatientInstructionElement()); if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("participant")) { - JsonArray array = json.getAsJsonArray("participant"); + JsonArray array = getJArray(json, "participant"); for (int i = 0; i < array.size(); i++) { res.getParticipant().add(parseAppointmentParticipantComponent(array.get(i).getAsJsonObject())); } }; if (json.has("requestedPeriod")) { - JsonArray array = json.getAsJsonArray("requestedPeriod"); + JsonArray array = getJArray(json, "requestedPeriod"); for (int i = 0; i < array.size(); i++) { res.getRequestedPeriod().add(parsePeriod(array.get(i).getAsJsonObject())); } @@ -3228,7 +3253,7 @@ public class JsonParser extends JsonParserBase { protected void parseAppointmentParticipantComponentProperties(JsonObject json, Appointment.AppointmentParticipantComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -3256,7 +3281,7 @@ public class JsonParser extends JsonParserBase { protected void parseAppointmentResponseProperties(JsonObject json, AppointmentResponse res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -3272,7 +3297,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_end")) parseElementProperties(getJObject(json, "_end"), res.getEndElement()); if (json.has("participantType")) { - JsonArray array = json.getAsJsonArray("participantType"); + JsonArray array = getJArray(json, "participantType"); for (int i = 0; i < array.size(); i++) { res.getParticipantType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -3300,7 +3325,7 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCoding(getJObject(json, "type"))); if (json.has("subtype")) { - JsonArray array = json.getAsJsonArray("subtype"); + JsonArray array = getJArray(json, "subtype"); for (int i = 0; i < array.size(); i++) { res.getSubtype().add(parseCoding(array.get(i).getAsJsonObject())); } @@ -3322,13 +3347,21 @@ public class JsonParser extends JsonParserBase { if (json.has("outcome")) res.setOutcome(parseCodeableConcept(getJObject(json, "outcome"))); if (json.has("purposeOfEvent")) { - JsonArray array = json.getAsJsonArray("purposeOfEvent"); + JsonArray array = getJArray(json, "purposeOfEvent"); for (int i = 0; i < array.size(); i++) { res.getPurposeOfEvent().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; + if (json.has("basedOn")) { + JsonArray array = getJArray(json, "basedOn"); + for (int i = 0; i < array.size(); i++) { + res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); + } + }; + if (json.has("encounter")) + res.setEncounter(parseReference(getJObject(json, "encounter"))); if (json.has("agent")) { - JsonArray array = json.getAsJsonArray("agent"); + JsonArray array = getJArray(json, "agent"); for (int i = 0; i < array.size(); i++) { res.getAgent().add(parseAuditEventAgentComponent(array.get(i).getAsJsonObject())); } @@ -3336,7 +3369,7 @@ public class JsonParser extends JsonParserBase { if (json.has("source")) res.setSource(parseAuditEventSourceComponent(getJObject(json, "source"))); if (json.has("entity")) { - JsonArray array = json.getAsJsonArray("entity"); + JsonArray array = getJArray(json, "entity"); for (int i = 0; i < array.size(); i++) { res.getEntity().add(parseAuditEventEntityComponent(array.get(i).getAsJsonObject())); } @@ -3354,7 +3387,7 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("role")) { - JsonArray array = json.getAsJsonArray("role"); + JsonArray array = getJArray(json, "role"); for (int i = 0; i < array.size(); i++) { res.getRole().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -3376,7 +3409,7 @@ public class JsonParser extends JsonParserBase { if (json.has("location")) res.setLocation(parseReference(getJObject(json, "location"))); if (json.has("policy")) { - JsonArray array = json.getAsJsonArray("policy"); + JsonArray array = getJArray(json, "policy"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPolicy().add(new UriType()); @@ -3386,7 +3419,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_policy")) { - JsonArray array = json.getAsJsonArray("_policy"); + JsonArray array = getJArray(json, "_policy"); for (int i = 0; i < array.size(); i++) { if (i == res.getPolicy().size()) res.getPolicy().add(parseUri(null)); @@ -3399,7 +3432,7 @@ public class JsonParser extends JsonParserBase { if (json.has("network")) res.setNetwork(parseAuditEventAgentNetworkComponent(getJObject(json, "network"))); if (json.has("purposeOfUse")) { - JsonArray array = json.getAsJsonArray("purposeOfUse"); + JsonArray array = getJArray(json, "purposeOfUse"); for (int i = 0; i < array.size(); i++) { res.getPurposeOfUse().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -3439,7 +3472,7 @@ public class JsonParser extends JsonParserBase { if (json.has("observer")) res.setObserver(parseReference(getJObject(json, "observer"))); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCoding(array.get(i).getAsJsonObject())); } @@ -3463,7 +3496,7 @@ public class JsonParser extends JsonParserBase { if (json.has("lifecycle")) res.setLifecycle(parseCoding(getJObject(json, "lifecycle"))); if (json.has("securityLabel")) { - JsonArray array = json.getAsJsonArray("securityLabel"); + JsonArray array = getJArray(json, "securityLabel"); for (int i = 0; i < array.size(); i++) { res.getSecurityLabel().add(parseCoding(array.get(i).getAsJsonObject())); } @@ -3477,7 +3510,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_query")) parseElementProperties(getJObject(json, "_query"), res.getQueryElement()); if (json.has("detail")) { - JsonArray array = json.getAsJsonArray("detail"); + JsonArray array = getJArray(json, "detail"); for (int i = 0; i < array.size(); i++) { res.getDetail().add(parseAuditEventEntityDetailComponent(array.get(i).getAsJsonObject())); } @@ -3510,7 +3543,7 @@ public class JsonParser extends JsonParserBase { protected void parseBasicProperties(JsonObject json, Basic res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -3556,7 +3589,7 @@ public class JsonParser extends JsonParserBase { protected void parseBiologicallyDerivedProductProperties(JsonObject json, BiologicallyDerivedProduct res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -3572,7 +3605,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("request")) { - JsonArray array = json.getAsJsonArray("request"); + JsonArray array = getJArray(json, "request"); for (int i = 0; i < array.size(); i++) { res.getRequest().add(parseReference(array.get(i).getAsJsonObject())); } @@ -3582,7 +3615,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_quantity")) parseElementProperties(getJObject(json, "_quantity"), res.getQuantityElement()); if (json.has("parent")) { - JsonArray array = json.getAsJsonArray("parent"); + JsonArray array = getJArray(json, "parent"); for (int i = 0; i < array.size(); i++) { res.getParent().add(parseReference(array.get(i).getAsJsonObject())); } @@ -3590,7 +3623,7 @@ public class JsonParser extends JsonParserBase { if (json.has("collection")) res.setCollection(parseBiologicallyDerivedProductCollectionComponent(getJObject(json, "collection"))); if (json.has("processing")) { - JsonArray array = json.getAsJsonArray("processing"); + JsonArray array = getJArray(json, "processing"); for (int i = 0; i < array.size(); i++) { res.getProcessing().add(parseBiologicallyDerivedProductProcessingComponent(array.get(i).getAsJsonObject())); } @@ -3598,7 +3631,7 @@ public class JsonParser extends JsonParserBase { if (json.has("manipulation")) res.setManipulation(parseBiologicallyDerivedProductManipulationComponent(getJObject(json, "manipulation"))); if (json.has("storage")) { - JsonArray array = json.getAsJsonArray("storage"); + JsonArray array = getJArray(json, "storage"); for (int i = 0; i < array.size(); i++) { res.getStorage().add(parseBiologicallyDerivedProductStorageComponent(array.get(i).getAsJsonObject())); } @@ -3693,7 +3726,7 @@ public class JsonParser extends JsonParserBase { protected void parseBodyStructureProperties(JsonObject json, BodyStructure res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -3707,7 +3740,7 @@ public class JsonParser extends JsonParserBase { if (json.has("location")) res.setLocation(parseCodeableConcept(getJObject(json, "location"))); if (json.has("locationQualifier")) { - JsonArray array = json.getAsJsonArray("locationQualifier"); + JsonArray array = getJArray(json, "locationQualifier"); for (int i = 0; i < array.size(); i++) { res.getLocationQualifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -3717,7 +3750,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("image")) { - JsonArray array = json.getAsJsonArray("image"); + JsonArray array = getJArray(json, "image"); for (int i = 0; i < array.size(); i++) { res.getImage().add(parseAttachment(array.get(i).getAsJsonObject())); } @@ -3749,13 +3782,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_total")) parseElementProperties(getJObject(json, "_total"), res.getTotalElement()); if (json.has("link")) { - JsonArray array = json.getAsJsonArray("link"); + JsonArray array = getJArray(json, "link"); for (int i = 0; i < array.size(); i++) { res.getLink().add(parseBundleLinkComponent(array.get(i).getAsJsonObject())); } }; if (json.has("entry")) { - JsonArray array = json.getAsJsonArray("entry"); + JsonArray array = getJArray(json, "entry"); for (int i = 0; i < array.size(); i++) { res.getEntry().add(parseBundleEntryComponent(array.get(i).getAsJsonObject())); } @@ -3791,7 +3824,7 @@ public class JsonParser extends JsonParserBase { protected void parseBundleEntryComponentProperties(JsonObject json, Bundle.BundleEntryComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("link")) { - JsonArray array = json.getAsJsonArray("link"); + JsonArray array = getJArray(json, "link"); for (int i = 0; i < array.size(); i++) { res.getLink().add(parseBundleLinkComponent(array.get(i).getAsJsonObject())); } @@ -3931,7 +3964,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -3941,13 +3974,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -3965,7 +3998,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_kind")) parseElementProperties(getJObject(json, "_kind"), res.getKindElement()); if (json.has("instantiates")) { - JsonArray array = json.getAsJsonArray("instantiates"); + JsonArray array = getJArray(json, "instantiates"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiates().add(new CanonicalType()); @@ -3975,7 +4008,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiates")) { - JsonArray array = json.getAsJsonArray("_instantiates"); + JsonArray array = getJArray(json, "_instantiates"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiates().size()) res.getInstantiates().add(parseCanonical(null)); @@ -3984,7 +4017,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("imports")) { - JsonArray array = json.getAsJsonArray("imports"); + JsonArray array = getJArray(json, "imports"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getImports().add(new CanonicalType()); @@ -3994,7 +4027,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_imports")) { - JsonArray array = json.getAsJsonArray("_imports"); + JsonArray array = getJArray(json, "_imports"); for (int i = 0; i < array.size(); i++) { if (i == res.getImports().size()) res.getImports().add(parseCanonical(null)); @@ -4011,7 +4044,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_fhirVersion")) parseElementProperties(getJObject(json, "_fhirVersion"), res.getFhirVersionElement()); if (json.has("format")) { - JsonArray array = json.getAsJsonArray("format"); + JsonArray array = getJArray(json, "format"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getFormat().add(new CodeType()); @@ -4021,7 +4054,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_format")) { - JsonArray array = json.getAsJsonArray("_format"); + JsonArray array = getJArray(json, "_format"); for (int i = 0; i < array.size(); i++) { if (i == res.getFormat().size()) res.getFormat().add(parseCode(null)); @@ -4030,7 +4063,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("patchFormat")) { - JsonArray array = json.getAsJsonArray("patchFormat"); + JsonArray array = getJArray(json, "patchFormat"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPatchFormat().add(new CodeType()); @@ -4040,7 +4073,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_patchFormat")) { - JsonArray array = json.getAsJsonArray("_patchFormat"); + JsonArray array = getJArray(json, "_patchFormat"); for (int i = 0; i < array.size(); i++) { if (i == res.getPatchFormat().size()) res.getPatchFormat().add(parseCode(null)); @@ -4049,7 +4082,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("implementationGuide")) { - JsonArray array = json.getAsJsonArray("implementationGuide"); + JsonArray array = getJArray(json, "implementationGuide"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getImplementationGuide().add(new CanonicalType()); @@ -4059,7 +4092,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_implementationGuide")) { - JsonArray array = json.getAsJsonArray("_implementationGuide"); + JsonArray array = getJArray(json, "_implementationGuide"); for (int i = 0; i < array.size(); i++) { if (i == res.getImplementationGuide().size()) res.getImplementationGuide().add(parseCanonical(null)); @@ -4068,19 +4101,19 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("rest")) { - JsonArray array = json.getAsJsonArray("rest"); + JsonArray array = getJArray(json, "rest"); for (int i = 0; i < array.size(); i++) { res.getRest().add(parseCapabilityStatementRestComponent(array.get(i).getAsJsonObject())); } }; if (json.has("messaging")) { - JsonArray array = json.getAsJsonArray("messaging"); + JsonArray array = getJArray(json, "messaging"); for (int i = 0; i < array.size(); i++) { res.getMessaging().add(parseCapabilityStatementMessagingComponent(array.get(i).getAsJsonObject())); } }; if (json.has("document")) { - JsonArray array = json.getAsJsonArray("document"); + JsonArray array = getJArray(json, "document"); for (int i = 0; i < array.size(); i++) { res.getDocument().add(parseCapabilityStatementDocumentComponent(array.get(i).getAsJsonObject())); } @@ -4148,31 +4181,31 @@ public class JsonParser extends JsonParserBase { if (json.has("security")) res.setSecurity(parseCapabilityStatementRestSecurityComponent(getJObject(json, "security"))); if (json.has("resource")) { - JsonArray array = json.getAsJsonArray("resource"); + JsonArray array = getJArray(json, "resource"); for (int i = 0; i < array.size(); i++) { res.getResource().add(parseCapabilityStatementRestResourceComponent(array.get(i).getAsJsonObject())); } }; if (json.has("interaction")) { - JsonArray array = json.getAsJsonArray("interaction"); + JsonArray array = getJArray(json, "interaction"); for (int i = 0; i < array.size(); i++) { res.getInteraction().add(parseCapabilityStatementSystemInteractionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("searchParam")) { - JsonArray array = json.getAsJsonArray("searchParam"); + JsonArray array = getJArray(json, "searchParam"); for (int i = 0; i < array.size(); i++) { res.getSearchParam().add(parseCapabilityStatementRestResourceSearchParamComponent(array.get(i).getAsJsonObject())); } }; if (json.has("operation")) { - JsonArray array = json.getAsJsonArray("operation"); + JsonArray array = getJArray(json, "operation"); for (int i = 0; i < array.size(); i++) { res.getOperation().add(parseCapabilityStatementRestResourceOperationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("compartment")) { - JsonArray array = json.getAsJsonArray("compartment"); + JsonArray array = getJArray(json, "compartment"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getCompartment().add(new CanonicalType()); @@ -4182,7 +4215,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_compartment")) { - JsonArray array = json.getAsJsonArray("_compartment"); + JsonArray array = getJArray(json, "_compartment"); for (int i = 0; i < array.size(); i++) { if (i == res.getCompartment().size()) res.getCompartment().add(parseCanonical(null)); @@ -4205,7 +4238,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_cors")) parseElementProperties(getJObject(json, "_cors"), res.getCorsElement()); if (json.has("service")) { - JsonArray array = json.getAsJsonArray("service"); + JsonArray array = getJArray(json, "service"); for (int i = 0; i < array.size(); i++) { res.getService().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -4233,7 +4266,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_profile")) parseElementProperties(getJObject(json, "_profile"), res.getProfileElement()); if (json.has("supportedProfile")) { - JsonArray array = json.getAsJsonArray("supportedProfile"); + JsonArray array = getJArray(json, "supportedProfile"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSupportedProfile().add(new CanonicalType()); @@ -4243,7 +4276,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_supportedProfile")) { - JsonArray array = json.getAsJsonArray("_supportedProfile"); + JsonArray array = getJArray(json, "_supportedProfile"); for (int i = 0; i < array.size(); i++) { if (i == res.getSupportedProfile().size()) res.getSupportedProfile().add(parseCanonical(null)); @@ -4256,7 +4289,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_documentation")) parseElementProperties(getJObject(json, "_documentation"), res.getDocumentationElement()); if (json.has("interaction")) { - JsonArray array = json.getAsJsonArray("interaction"); + JsonArray array = getJArray(json, "interaction"); for (int i = 0; i < array.size(); i++) { res.getInteraction().add(parseCapabilityStatementResourceInteractionComponent(array.get(i).getAsJsonObject())); } @@ -4290,7 +4323,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_conditionalDelete")) parseElementProperties(getJObject(json, "_conditionalDelete"), res.getConditionalDeleteElement()); if (json.has("referencePolicy")) { - JsonArray array = json.getAsJsonArray("referencePolicy"); + JsonArray array = getJArray(json, "referencePolicy"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getReferencePolicy().add(new Enumeration(new CapabilityStatement.ReferenceHandlingPolicyEnumFactory(), CapabilityStatement.ReferenceHandlingPolicy.NULL)); @@ -4300,7 +4333,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_referencePolicy")) { - JsonArray array = json.getAsJsonArray("_referencePolicy"); + JsonArray array = getJArray(json, "_referencePolicy"); for (int i = 0; i < array.size(); i++) { if (i == res.getReferencePolicy().size()) res.getReferencePolicy().add(parseEnumeration(null, CapabilityStatement.ReferenceHandlingPolicy.NULL, new CapabilityStatement.ReferenceHandlingPolicyEnumFactory())); @@ -4309,7 +4342,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("searchInclude")) { - JsonArray array = json.getAsJsonArray("searchInclude"); + JsonArray array = getJArray(json, "searchInclude"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSearchInclude().add(new StringType()); @@ -4319,7 +4352,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_searchInclude")) { - JsonArray array = json.getAsJsonArray("_searchInclude"); + JsonArray array = getJArray(json, "_searchInclude"); for (int i = 0; i < array.size(); i++) { if (i == res.getSearchInclude().size()) res.getSearchInclude().add(parseString(null)); @@ -4328,7 +4361,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("searchRevInclude")) { - JsonArray array = json.getAsJsonArray("searchRevInclude"); + JsonArray array = getJArray(json, "searchRevInclude"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSearchRevInclude().add(new StringType()); @@ -4338,7 +4371,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_searchRevInclude")) { - JsonArray array = json.getAsJsonArray("_searchRevInclude"); + JsonArray array = getJArray(json, "_searchRevInclude"); for (int i = 0; i < array.size(); i++) { if (i == res.getSearchRevInclude().size()) res.getSearchRevInclude().add(parseString(null)); @@ -4347,13 +4380,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("searchParam")) { - JsonArray array = json.getAsJsonArray("searchParam"); + JsonArray array = getJArray(json, "searchParam"); for (int i = 0; i < array.size(); i++) { res.getSearchParam().add(parseCapabilityStatementRestResourceSearchParamComponent(array.get(i).getAsJsonObject())); } }; if (json.has("operation")) { - JsonArray array = json.getAsJsonArray("operation"); + JsonArray array = getJArray(json, "operation"); for (int i = 0; i < array.size(); i++) { res.getOperation().add(parseCapabilityStatementRestResourceOperationComponent(array.get(i).getAsJsonObject())); } @@ -4453,7 +4486,7 @@ public class JsonParser extends JsonParserBase { protected void parseCapabilityStatementMessagingComponentProperties(JsonObject json, CapabilityStatement.CapabilityStatementMessagingComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("endpoint")) { - JsonArray array = json.getAsJsonArray("endpoint"); + JsonArray array = getJArray(json, "endpoint"); for (int i = 0; i < array.size(); i++) { res.getEndpoint().add(parseCapabilityStatementMessagingEndpointComponent(array.get(i).getAsJsonObject())); } @@ -4467,7 +4500,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_documentation")) parseElementProperties(getJObject(json, "_documentation"), res.getDocumentationElement()); if (json.has("supportedMessage")) { - JsonArray array = json.getAsJsonArray("supportedMessage"); + JsonArray array = getJArray(json, "supportedMessage"); for (int i = 0; i < array.size(); i++) { res.getSupportedMessage().add(parseCapabilityStatementMessagingSupportedMessageComponent(array.get(i).getAsJsonObject())); } @@ -4571,7 +4604,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -4581,13 +4614,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -4605,7 +4638,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_kind")) parseElementProperties(getJObject(json, "_kind"), res.getKindElement()); if (json.has("instantiates")) { - JsonArray array = json.getAsJsonArray("instantiates"); + JsonArray array = getJArray(json, "instantiates"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiates().add(new CanonicalType()); @@ -4615,7 +4648,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiates")) { - JsonArray array = json.getAsJsonArray("_instantiates"); + JsonArray array = getJArray(json, "_instantiates"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiates().size()) res.getInstantiates().add(parseCanonical(null)); @@ -4624,7 +4657,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("imports")) { - JsonArray array = json.getAsJsonArray("imports"); + JsonArray array = getJArray(json, "imports"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getImports().add(new CanonicalType()); @@ -4634,7 +4667,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_imports")) { - JsonArray array = json.getAsJsonArray("_imports"); + JsonArray array = getJArray(json, "_imports"); for (int i = 0; i < array.size(); i++) { if (i == res.getImports().size()) res.getImports().add(parseCanonical(null)); @@ -4651,7 +4684,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_fhirVersion")) parseElementProperties(getJObject(json, "_fhirVersion"), res.getFhirVersionElement()); if (json.has("format")) { - JsonArray array = json.getAsJsonArray("format"); + JsonArray array = getJArray(json, "format"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getFormat().add(new CodeType()); @@ -4661,7 +4694,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_format")) { - JsonArray array = json.getAsJsonArray("_format"); + JsonArray array = getJArray(json, "_format"); for (int i = 0; i < array.size(); i++) { if (i == res.getFormat().size()) res.getFormat().add(parseCode(null)); @@ -4670,7 +4703,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("patchFormat")) { - JsonArray array = json.getAsJsonArray("patchFormat"); + JsonArray array = getJArray(json, "patchFormat"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPatchFormat().add(new CodeType()); @@ -4680,7 +4713,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_patchFormat")) { - JsonArray array = json.getAsJsonArray("_patchFormat"); + JsonArray array = getJArray(json, "_patchFormat"); for (int i = 0; i < array.size(); i++) { if (i == res.getPatchFormat().size()) res.getPatchFormat().add(parseCode(null)); @@ -4689,7 +4722,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("implementationGuide")) { - JsonArray array = json.getAsJsonArray("implementationGuide"); + JsonArray array = getJArray(json, "implementationGuide"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getImplementationGuide().add(new CanonicalType()); @@ -4699,7 +4732,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_implementationGuide")) { - JsonArray array = json.getAsJsonArray("_implementationGuide"); + JsonArray array = getJArray(json, "_implementationGuide"); for (int i = 0; i < array.size(); i++) { if (i == res.getImplementationGuide().size()) res.getImplementationGuide().add(parseCanonical(null)); @@ -4708,7 +4741,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("rest")) { - JsonArray array = json.getAsJsonArray("rest"); + JsonArray array = getJArray(json, "rest"); for (int i = 0; i < array.size(); i++) { res.getRest().add(parseCapabilityStatement2RestComponent(array.get(i).getAsJsonObject())); } @@ -4773,32 +4806,38 @@ public class JsonParser extends JsonParserBase { res.setDocumentationElement(parseMarkdown(json.get("documentation").getAsString())); if (json.has("_documentation")) parseElementProperties(getJObject(json, "_documentation"), res.getDocumentationElement()); + if (json.has("feature")) { + JsonArray array = getJArray(json, "feature"); + for (int i = 0; i < array.size(); i++) { + res.getFeature().add(parseCapabilityStatement2RestFeatureComponent(array.get(i).getAsJsonObject())); + } + }; if (json.has("resource")) { - JsonArray array = json.getAsJsonArray("resource"); + JsonArray array = getJArray(json, "resource"); for (int i = 0; i < array.size(); i++) { res.getResource().add(parseCapabilityStatement2RestResourceComponent(array.get(i).getAsJsonObject())); } }; if (json.has("interaction")) { - JsonArray array = json.getAsJsonArray("interaction"); + JsonArray array = getJArray(json, "interaction"); for (int i = 0; i < array.size(); i++) { res.getInteraction().add(parseCapabilityStatement2SystemInteractionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("searchParam")) { - JsonArray array = json.getAsJsonArray("searchParam"); + JsonArray array = getJArray(json, "searchParam"); for (int i = 0; i < array.size(); i++) { res.getSearchParam().add(parseCapabilityStatement2RestResourceSearchParamComponent(array.get(i).getAsJsonObject())); } }; if (json.has("operation")) { - JsonArray array = json.getAsJsonArray("operation"); + JsonArray array = getJArray(json, "operation"); for (int i = 0; i < array.size(); i++) { res.getOperation().add(parseCapabilityStatement2RestResourceOperationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("compartment")) { - JsonArray array = json.getAsJsonArray("compartment"); + JsonArray array = getJArray(json, "compartment"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getCompartment().add(new CanonicalType()); @@ -4808,7 +4847,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_compartment")) { - JsonArray array = json.getAsJsonArray("_compartment"); + JsonArray array = getJArray(json, "_compartment"); for (int i = 0; i < array.size(); i++) { if (i == res.getCompartment().size()) res.getCompartment().add(parseCanonical(null)); @@ -4818,6 +4857,24 @@ public class JsonParser extends JsonParserBase { }; } + protected CapabilityStatement2.CapabilityStatement2RestFeatureComponent parseCapabilityStatement2RestFeatureComponent(JsonObject json) throws IOException, FHIRFormatError { + CapabilityStatement2.CapabilityStatement2RestFeatureComponent res = new CapabilityStatement2.CapabilityStatement2RestFeatureComponent(); + parseCapabilityStatement2RestFeatureComponentProperties(json, res); + return res; + } + + protected void parseCapabilityStatement2RestFeatureComponentProperties(JsonObject json, CapabilityStatement2.CapabilityStatement2RestFeatureComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("code")) + res.setCodeElement(parseEnumeration(json.get("code").getAsString(), CapabilityStatement2.CapabilityFeature.NULL, new CapabilityStatement2.CapabilityFeatureEnumFactory())); + if (json.has("_code")) + parseElementProperties(getJObject(json, "_code"), res.getCodeElement()); + if (json.has("value")) + res.setValueElement(parseEnumeration(json.get("value").getAsString(), CapabilityStatement2.CapabilityFeatureValue.NULL, new CapabilityStatement2.CapabilityFeatureValueEnumFactory())); + if (json.has("_value")) + parseElementProperties(getJObject(json, "_value"), res.getValueElement()); + } + protected CapabilityStatement2.CapabilityStatement2RestResourceComponent parseCapabilityStatement2RestResourceComponent(JsonObject json) throws IOException, FHIRFormatError { CapabilityStatement2.CapabilityStatement2RestResourceComponent res = new CapabilityStatement2.CapabilityStatement2RestResourceComponent(); parseCapabilityStatement2RestResourceComponentProperties(json, res); @@ -4835,7 +4892,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_profile")) parseElementProperties(getJObject(json, "_profile"), res.getProfileElement()); if (json.has("supportedProfile")) { - JsonArray array = json.getAsJsonArray("supportedProfile"); + JsonArray array = getJArray(json, "supportedProfile"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSupportedProfile().add(new CanonicalType()); @@ -4845,7 +4902,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_supportedProfile")) { - JsonArray array = json.getAsJsonArray("_supportedProfile"); + JsonArray array = getJArray(json, "_supportedProfile"); for (int i = 0; i < array.size(); i++) { if (i == res.getSupportedProfile().size()) res.getSupportedProfile().add(parseCanonical(null)); @@ -4857,20 +4914,26 @@ public class JsonParser extends JsonParserBase { res.setDocumentationElement(parseMarkdown(json.get("documentation").getAsString())); if (json.has("_documentation")) parseElementProperties(getJObject(json, "_documentation"), res.getDocumentationElement()); + if (json.has("feature")) { + JsonArray array = getJArray(json, "feature"); + for (int i = 0; i < array.size(); i++) { + res.getFeature().add(parseCapabilityStatement2RestFeatureComponent(array.get(i).getAsJsonObject())); + } + }; if (json.has("interaction")) { - JsonArray array = json.getAsJsonArray("interaction"); + JsonArray array = getJArray(json, "interaction"); for (int i = 0; i < array.size(); i++) { res.getInteraction().add(parseCapabilityStatement2ResourceInteractionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("searchParam")) { - JsonArray array = json.getAsJsonArray("searchParam"); + JsonArray array = getJArray(json, "searchParam"); for (int i = 0; i < array.size(); i++) { res.getSearchParam().add(parseCapabilityStatement2RestResourceSearchParamComponent(array.get(i).getAsJsonObject())); } }; if (json.has("operation")) { - JsonArray array = json.getAsJsonArray("operation"); + JsonArray array = getJArray(json, "operation"); for (int i = 0; i < array.size(); i++) { res.getOperation().add(parseCapabilityStatement2RestResourceOperationComponent(array.get(i).getAsJsonObject())); } @@ -4893,6 +4956,12 @@ public class JsonParser extends JsonParserBase { res.setDocumentationElement(parseMarkdown(json.get("documentation").getAsString())); if (json.has("_documentation")) parseElementProperties(getJObject(json, "_documentation"), res.getDocumentationElement()); + if (json.has("feature")) { + JsonArray array = getJArray(json, "feature"); + for (int i = 0; i < array.size(); i++) { + res.getFeature().add(parseCapabilityStatement2RestFeatureComponent(array.get(i).getAsJsonObject())); + } + }; } protected CapabilityStatement2.CapabilityStatement2RestResourceSearchParamComponent parseCapabilityStatement2RestResourceSearchParamComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -4919,6 +4988,12 @@ public class JsonParser extends JsonParserBase { res.setDocumentationElement(parseMarkdown(json.get("documentation").getAsString())); if (json.has("_documentation")) parseElementProperties(getJObject(json, "_documentation"), res.getDocumentationElement()); + if (json.has("feature")) { + JsonArray array = getJArray(json, "feature"); + for (int i = 0; i < array.size(); i++) { + res.getFeature().add(parseCapabilityStatement2RestFeatureComponent(array.get(i).getAsJsonObject())); + } + }; } protected CapabilityStatement2.CapabilityStatement2RestResourceOperationComponent parseCapabilityStatement2RestResourceOperationComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -4941,6 +5016,12 @@ public class JsonParser extends JsonParserBase { res.setDocumentationElement(parseMarkdown(json.get("documentation").getAsString())); if (json.has("_documentation")) parseElementProperties(getJObject(json, "_documentation"), res.getDocumentationElement()); + if (json.has("feature")) { + JsonArray array = getJArray(json, "feature"); + for (int i = 0; i < array.size(); i++) { + res.getFeature().add(parseCapabilityStatement2RestFeatureComponent(array.get(i).getAsJsonObject())); + } + }; } protected CapabilityStatement2.SystemInteractionComponent parseCapabilityStatement2SystemInteractionComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -4959,6 +5040,12 @@ public class JsonParser extends JsonParserBase { res.setDocumentationElement(parseMarkdown(json.get("documentation").getAsString())); if (json.has("_documentation")) parseElementProperties(getJObject(json, "_documentation"), res.getDocumentationElement()); + if (json.has("feature")) { + JsonArray array = getJArray(json, "feature"); + for (int i = 0; i < array.size(); i++) { + res.getFeature().add(parseCapabilityStatement2RestFeatureComponent(array.get(i).getAsJsonObject())); + } + }; } protected CarePlan parseCarePlan(JsonObject json) throws IOException, FHIRFormatError { @@ -4970,13 +5057,13 @@ public class JsonParser extends JsonParserBase { protected void parseCarePlanProperties(JsonObject json, CarePlan res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("instantiatesCanonical"); + JsonArray array = getJArray(json, "instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesCanonical().add(new CanonicalType()); @@ -4986,7 +5073,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("_instantiatesCanonical"); + JsonArray array = getJArray(json, "_instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesCanonical().size()) res.getInstantiatesCanonical().add(parseCanonical(null)); @@ -4995,7 +5082,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("instantiatesUri")) { - JsonArray array = json.getAsJsonArray("instantiatesUri"); + JsonArray array = getJArray(json, "instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesUri().add(new UriType()); @@ -5005,7 +5092,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesUri")) { - JsonArray array = json.getAsJsonArray("_instantiatesUri"); + JsonArray array = getJArray(json, "_instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesUri().size()) res.getInstantiatesUri().add(parseUri(null)); @@ -5014,19 +5101,19 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("replaces")) { - JsonArray array = json.getAsJsonArray("replaces"); + JsonArray array = getJArray(json, "replaces"); for (int i = 0; i < array.size(); i++) { res.getReplaces().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("partOf")) { - JsonArray array = json.getAsJsonArray("partOf"); + JsonArray array = getJArray(json, "partOf"); for (int i = 0; i < array.size(); i++) { res.getPartOf().add(parseReference(array.get(i).getAsJsonObject())); } @@ -5040,7 +5127,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_intent")) parseElementProperties(getJObject(json, "_intent"), res.getIntentElement()); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -5066,43 +5153,43 @@ public class JsonParser extends JsonParserBase { if (json.has("author")) res.setAuthor(parseReference(getJObject(json, "author"))); if (json.has("contributor")) { - JsonArray array = json.getAsJsonArray("contributor"); + JsonArray array = getJArray(json, "contributor"); for (int i = 0; i < array.size(); i++) { res.getContributor().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("careTeam")) { - JsonArray array = json.getAsJsonArray("careTeam"); + JsonArray array = getJArray(json, "careTeam"); for (int i = 0; i < array.size(); i++) { res.getCareTeam().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("addresses")) { - JsonArray array = json.getAsJsonArray("addresses"); + JsonArray array = getJArray(json, "addresses"); for (int i = 0; i < array.size(); i++) { res.getAddresses().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("supportingInfo")) { - JsonArray array = json.getAsJsonArray("supportingInfo"); + JsonArray array = getJArray(json, "supportingInfo"); for (int i = 0; i < array.size(); i++) { res.getSupportingInfo().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("goal")) { - JsonArray array = json.getAsJsonArray("goal"); + JsonArray array = getJArray(json, "goal"); for (int i = 0; i < array.size(); i++) { res.getGoal().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("activity")) { - JsonArray array = json.getAsJsonArray("activity"); + JsonArray array = getJArray(json, "activity"); for (int i = 0; i < array.size(); i++) { res.getActivity().add(parseCarePlanActivityComponent(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -5117,38 +5204,38 @@ public class JsonParser extends JsonParserBase { protected void parseCarePlanActivityComponentProperties(JsonObject json, CarePlan.CarePlanActivityComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); - if (json.has("outcome")) { - JsonArray array = json.getAsJsonArray("outcome"); + if (json.has("performedActivity")) { + JsonArray array = getJArray(json, "performedActivity"); for (int i = 0; i < array.size(); i++) { - res.getOutcome().add(parseCodeableReference(array.get(i).getAsJsonObject())); + res.getPerformedActivity().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("progress")) { - JsonArray array = json.getAsJsonArray("progress"); + JsonArray array = getJArray(json, "progress"); for (int i = 0; i < array.size(); i++) { res.getProgress().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; - if (json.has("reference")) - res.setReference(parseReference(getJObject(json, "reference"))); - if (json.has("detail")) - res.setDetail(parseCarePlanActivityDetailComponent(getJObject(json, "detail"))); + if (json.has("plannedActivityReference")) + res.setPlannedActivityReference(parseReference(getJObject(json, "plannedActivityReference"))); + if (json.has("plannedActivityDetail")) + res.setPlannedActivityDetail(parseCarePlanActivityPlannedActivityDetailComponent(getJObject(json, "plannedActivityDetail"))); } - protected CarePlan.CarePlanActivityDetailComponent parseCarePlanActivityDetailComponent(JsonObject json) throws IOException, FHIRFormatError { - CarePlan.CarePlanActivityDetailComponent res = new CarePlan.CarePlanActivityDetailComponent(); - parseCarePlanActivityDetailComponentProperties(json, res); + protected CarePlan.CarePlanActivityPlannedActivityDetailComponent parseCarePlanActivityPlannedActivityDetailComponent(JsonObject json) throws IOException, FHIRFormatError { + CarePlan.CarePlanActivityPlannedActivityDetailComponent res = new CarePlan.CarePlanActivityPlannedActivityDetailComponent(); + parseCarePlanActivityPlannedActivityDetailComponentProperties(json, res); return res; } - protected void parseCarePlanActivityDetailComponentProperties(JsonObject json, CarePlan.CarePlanActivityDetailComponent res) throws IOException, FHIRFormatError { + protected void parseCarePlanActivityPlannedActivityDetailComponentProperties(JsonObject json, CarePlan.CarePlanActivityPlannedActivityDetailComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("kind")) res.setKindElement(parseEnumeration(json.get("kind").getAsString(), CarePlan.CarePlanActivityKind.NULL, new CarePlan.CarePlanActivityKindEnumFactory())); if (json.has("_kind")) parseElementProperties(getJObject(json, "_kind"), res.getKindElement()); if (json.has("instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("instantiatesCanonical"); + JsonArray array = getJArray(json, "instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesCanonical().add(new CanonicalType()); @@ -5158,7 +5245,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("_instantiatesCanonical"); + JsonArray array = getJArray(json, "_instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesCanonical().size()) res.getInstantiatesCanonical().add(parseCanonical(null)); @@ -5167,7 +5254,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("instantiatesUri")) { - JsonArray array = json.getAsJsonArray("instantiatesUri"); + JsonArray array = getJArray(json, "instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesUri().add(new UriType()); @@ -5177,7 +5264,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesUri")) { - JsonArray array = json.getAsJsonArray("_instantiatesUri"); + JsonArray array = getJArray(json, "_instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesUri().size()) res.getInstantiatesUri().add(parseUri(null)); @@ -5188,13 +5275,13 @@ public class JsonParser extends JsonParserBase { if (json.has("code")) res.setCode(parseCodeableConcept(getJObject(json, "code"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("goal")) { - JsonArray array = json.getAsJsonArray("goal"); + JsonArray array = getJArray(json, "goal"); for (int i = 0; i < array.size(); i++) { res.getGoal().add(parseReference(array.get(i).getAsJsonObject())); } @@ -5218,7 +5305,7 @@ public class JsonParser extends JsonParserBase { if (reported != null) res.setReported(reported); if (json.has("performer")) { - JsonArray array = json.getAsJsonArray("performer"); + JsonArray array = getJArray(json, "performer"); for (int i = 0; i < array.size(); i++) { res.getPerformer().add(parseReference(array.get(i).getAsJsonObject())); } @@ -5245,7 +5332,7 @@ public class JsonParser extends JsonParserBase { protected void parseCareTeamProperties(JsonObject json, CareTeam res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -5255,7 +5342,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -5269,31 +5356,31 @@ public class JsonParser extends JsonParserBase { if (json.has("period")) res.setPeriod(parsePeriod(getJObject(json, "period"))); if (json.has("participant")) { - JsonArray array = json.getAsJsonArray("participant"); + JsonArray array = getJArray(json, "participant"); for (int i = 0; i < array.size(); i++) { res.getParticipant().add(parseCareTeamParticipantComponent(array.get(i).getAsJsonObject())); } }; if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("managingOrganization")) { - JsonArray array = json.getAsJsonArray("managingOrganization"); + JsonArray array = getJArray(json, "managingOrganization"); for (int i = 0; i < array.size(); i++) { res.getManagingOrganization().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("telecom")) { - JsonArray array = json.getAsJsonArray("telecom"); + JsonArray array = getJArray(json, "telecom"); for (int i = 0; i < array.size(); i++) { res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -5328,7 +5415,7 @@ public class JsonParser extends JsonParserBase { protected void parseCatalogEntryProperties(JsonObject json, CatalogEntry res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -5354,7 +5441,7 @@ public class JsonParser extends JsonParserBase { if (json.has("referencedItem")) res.setReferencedItem(parseReference(getJObject(json, "referencedItem"))); if (json.has("relatedEntry")) { - JsonArray array = json.getAsJsonArray("relatedEntry"); + JsonArray array = getJArray(json, "relatedEntry"); for (int i = 0; i < array.size(); i++) { res.getRelatedEntry().add(parseCatalogEntryRelatedEntryComponent(array.get(i).getAsJsonObject())); } @@ -5362,7 +5449,7 @@ public class JsonParser extends JsonParserBase { if (json.has("updatedBy")) res.setUpdatedBy(parseReference(getJObject(json, "updatedBy"))); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -5370,7 +5457,7 @@ public class JsonParser extends JsonParserBase { if (json.has("estimatedDuration")) res.setEstimatedDuration(parseDuration(getJObject(json, "estimatedDuration"))); if (json.has("billingCode")) { - JsonArray array = json.getAsJsonArray("billingCode"); + JsonArray array = getJArray(json, "billingCode"); for (int i = 0; i < array.size(); i++) { res.getBillingCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -5418,13 +5505,13 @@ public class JsonParser extends JsonParserBase { protected void parseChargeItemProperties(JsonObject json, ChargeItem res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("definitionUri")) { - JsonArray array = json.getAsJsonArray("definitionUri"); + JsonArray array = getJArray(json, "definitionUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDefinitionUri().add(new UriType()); @@ -5434,7 +5521,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_definitionUri")) { - JsonArray array = json.getAsJsonArray("_definitionUri"); + JsonArray array = getJArray(json, "_definitionUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getDefinitionUri().size()) res.getDefinitionUri().add(parseUri(null)); @@ -5443,7 +5530,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("definitionCanonical")) { - JsonArray array = json.getAsJsonArray("definitionCanonical"); + JsonArray array = getJArray(json, "definitionCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDefinitionCanonical().add(new CanonicalType()); @@ -5453,7 +5540,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_definitionCanonical")) { - JsonArray array = json.getAsJsonArray("_definitionCanonical"); + JsonArray array = getJArray(json, "_definitionCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getDefinitionCanonical().size()) res.getDefinitionCanonical().add(parseCanonical(null)); @@ -5466,7 +5553,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("partOf")) { - JsonArray array = json.getAsJsonArray("partOf"); + JsonArray array = getJArray(json, "partOf"); for (int i = 0; i < array.size(); i++) { res.getPartOf().add(parseReference(array.get(i).getAsJsonObject())); } @@ -5481,7 +5568,7 @@ public class JsonParser extends JsonParserBase { if (occurrence != null) res.setOccurrence(occurrence); if (json.has("performer")) { - JsonArray array = json.getAsJsonArray("performer"); + JsonArray array = getJArray(json, "performer"); for (int i = 0; i < array.size(); i++) { res.getPerformer().add(parseChargeItemPerformerComponent(array.get(i).getAsJsonObject())); } @@ -5495,7 +5582,7 @@ public class JsonParser extends JsonParserBase { if (json.has("quantity")) res.setQuantity(parseQuantity(getJObject(json, "quantity"))); if (json.has("bodysite")) { - JsonArray array = json.getAsJsonArray("bodysite"); + JsonArray array = getJArray(json, "bodysite"); for (int i = 0; i < array.size(); i++) { res.getBodysite().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -5517,13 +5604,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_enteredDate")) parseElementProperties(getJObject(json, "_enteredDate"), res.getEnteredDateElement()); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("service")) { - JsonArray array = json.getAsJsonArray("service"); + JsonArray array = getJArray(json, "service"); for (int i = 0; i < array.size(); i++) { res.getService().add(parseReference(array.get(i).getAsJsonObject())); } @@ -5532,19 +5619,19 @@ public class JsonParser extends JsonParserBase { if (product != null) res.setProduct(product); if (json.has("account")) { - JsonArray array = json.getAsJsonArray("account"); + JsonArray array = getJArray(json, "account"); for (int i = 0; i < array.size(); i++) { res.getAccount().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("supportingInformation")) { - JsonArray array = json.getAsJsonArray("supportingInformation"); + JsonArray array = getJArray(json, "supportingInformation"); for (int i = 0; i < array.size(); i++) { res.getSupportingInformation().add(parseReference(array.get(i).getAsJsonObject())); } @@ -5578,7 +5665,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -5592,7 +5679,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_title")) parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); if (json.has("derivedFromUri")) { - JsonArray array = json.getAsJsonArray("derivedFromUri"); + JsonArray array = getJArray(json, "derivedFromUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDerivedFromUri().add(new UriType()); @@ -5602,7 +5689,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_derivedFromUri")) { - JsonArray array = json.getAsJsonArray("_derivedFromUri"); + JsonArray array = getJArray(json, "_derivedFromUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getDerivedFromUri().size()) res.getDerivedFromUri().add(parseUri(null)); @@ -5611,7 +5698,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("partOf")) { - JsonArray array = json.getAsJsonArray("partOf"); + JsonArray array = getJArray(json, "partOf"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPartOf().add(new CanonicalType()); @@ -5621,7 +5708,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_partOf")) { - JsonArray array = json.getAsJsonArray("_partOf"); + JsonArray array = getJArray(json, "_partOf"); for (int i = 0; i < array.size(); i++) { if (i == res.getPartOf().size()) res.getPartOf().add(parseCanonical(null)); @@ -5630,7 +5717,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("replaces")) { - JsonArray array = json.getAsJsonArray("replaces"); + JsonArray array = getJArray(json, "replaces"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getReplaces().add(new CanonicalType()); @@ -5640,7 +5727,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_replaces")) { - JsonArray array = json.getAsJsonArray("_replaces"); + JsonArray array = getJArray(json, "_replaces"); for (int i = 0; i < array.size(); i++) { if (i == res.getReplaces().size()) res.getReplaces().add(parseCanonical(null)); @@ -5665,7 +5752,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -5675,13 +5762,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -5703,19 +5790,19 @@ public class JsonParser extends JsonParserBase { if (json.has("code")) res.setCode(parseCodeableConcept(getJObject(json, "code"))); if (json.has("instance")) { - JsonArray array = json.getAsJsonArray("instance"); + JsonArray array = getJArray(json, "instance"); for (int i = 0; i < array.size(); i++) { res.getInstance().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("applicability")) { - JsonArray array = json.getAsJsonArray("applicability"); + JsonArray array = getJArray(json, "applicability"); for (int i = 0; i < array.size(); i++) { res.getApplicability().add(parseChargeItemDefinitionApplicabilityComponent(array.get(i).getAsJsonObject())); } }; if (json.has("propertyGroup")) { - JsonArray array = json.getAsJsonArray("propertyGroup"); + JsonArray array = getJArray(json, "propertyGroup"); for (int i = 0; i < array.size(); i++) { res.getPropertyGroup().add(parseChargeItemDefinitionPropertyGroupComponent(array.get(i).getAsJsonObject())); } @@ -5753,13 +5840,13 @@ public class JsonParser extends JsonParserBase { protected void parseChargeItemDefinitionPropertyGroupComponentProperties(JsonObject json, ChargeItemDefinition.ChargeItemDefinitionPropertyGroupComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("applicability")) { - JsonArray array = json.getAsJsonArray("applicability"); + JsonArray array = getJArray(json, "applicability"); for (int i = 0; i < array.size(); i++) { res.getApplicability().add(parseChargeItemDefinitionApplicabilityComponent(array.get(i).getAsJsonObject())); } }; if (json.has("priceComponent")) { - JsonArray array = json.getAsJsonArray("priceComponent"); + JsonArray array = getJArray(json, "priceComponent"); for (int i = 0; i < array.size(); i++) { res.getPriceComponent().add(parseChargeItemDefinitionPropertyGroupPriceComponentComponent(array.get(i).getAsJsonObject())); } @@ -5800,139 +5887,368 @@ public class JsonParser extends JsonParserBase { res.setUrlElement(parseUri(json.get("url").getAsString())); if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); + if (json.has("identifier")) { + JsonArray array = getJArray(json, "identifier"); + for (int i = 0; i < array.size(); i++) { + res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); + } + }; + if (json.has("version")) + res.setVersionElement(parseString(json.get("version").getAsString())); + if (json.has("_version")) + parseElementProperties(getJObject(json, "_version"), res.getVersionElement()); + if (json.has("name")) + res.setNameElement(parseString(json.get("name").getAsString())); + if (json.has("_name")) + parseElementProperties(getJObject(json, "_name"), res.getNameElement()); + if (json.has("title")) + res.setTitleElement(parseString(json.get("title").getAsString())); + if (json.has("_title")) + parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); if (json.has("status")) res.setStatusElement(parseEnumeration(json.get("status").getAsString(), Enumerations.PublicationStatus.NULL, new Enumerations.PublicationStatusEnumFactory())); if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); + if (json.has("experimental")) + res.setExperimentalElement(parseBoolean(json.get("experimental").getAsBoolean())); + if (json.has("_experimental")) + parseElementProperties(getJObject(json, "_experimental"), res.getExperimentalElement()); + if (json.has("date")) + res.setDateElement(parseDateTime(json.get("date").getAsString())); + if (json.has("_date")) + parseElementProperties(getJObject(json, "_date"), res.getDateElement()); + if (json.has("publisher")) + res.setPublisherElement(parseString(json.get("publisher").getAsString())); + if (json.has("_publisher")) + parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); + if (json.has("contact")) { + JsonArray array = getJArray(json, "contact"); + for (int i = 0; i < array.size(); i++) { + res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); + } + }; + if (json.has("description")) + res.setDescriptionElement(parseMarkdown(json.get("description").getAsString())); + if (json.has("_description")) + parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; + if (json.has("jurisdiction")) { + JsonArray array = getJArray(json, "jurisdiction"); + for (int i = 0; i < array.size(); i++) { + res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; + if (json.has("purpose")) + res.setPurposeElement(parseMarkdown(json.get("purpose").getAsString())); + if (json.has("_purpose")) + parseElementProperties(getJObject(json, "_purpose"), res.getPurposeElement()); + if (json.has("copyright")) + res.setCopyrightElement(parseMarkdown(json.get("copyright").getAsString())); + if (json.has("_copyright")) + parseElementProperties(getJObject(json, "_copyright"), res.getCopyrightElement()); + if (json.has("approvalDate")) + res.setApprovalDateElement(parseDate(json.get("approvalDate").getAsString())); + if (json.has("_approvalDate")) + parseElementProperties(getJObject(json, "_approvalDate"), res.getApprovalDateElement()); + if (json.has("lastReviewDate")) + res.setLastReviewDateElement(parseDate(json.get("lastReviewDate").getAsString())); + if (json.has("_lastReviewDate")) + parseElementProperties(getJObject(json, "_lastReviewDate"), res.getLastReviewDateElement()); + if (json.has("effectivePeriod")) + res.setEffectivePeriod(parsePeriod(getJObject(json, "effectivePeriod"))); + if (json.has("author")) { + JsonArray array = getJArray(json, "author"); + for (int i = 0; i < array.size(); i++) { + res.getAuthor().add(parseContactDetail(array.get(i).getAsJsonObject())); + } + }; + if (json.has("editor")) { + JsonArray array = getJArray(json, "editor"); + for (int i = 0; i < array.size(); i++) { + res.getEditor().add(parseContactDetail(array.get(i).getAsJsonObject())); + } + }; + if (json.has("reviewer")) { + JsonArray array = getJArray(json, "reviewer"); + for (int i = 0; i < array.size(); i++) { + res.getReviewer().add(parseContactDetail(array.get(i).getAsJsonObject())); + } + }; + if (json.has("endorser")) { + JsonArray array = getJArray(json, "endorser"); + for (int i = 0; i < array.size(); i++) { + res.getEndorser().add(parseContactDetail(array.get(i).getAsJsonObject())); + } + }; + if (json.has("summary")) { + JsonArray array = getJArray(json, "summary"); + for (int i = 0; i < array.size(); i++) { + res.getSummary().add(parseContactDetail(array.get(i).getAsJsonObject())); + } + }; + if (json.has("classification")) { + JsonArray array = getJArray(json, "classification"); + for (int i = 0; i < array.size(); i++) { + res.getClassification().add(parseCitationClassificationComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("note")) { + JsonArray array = getJArray(json, "note"); + for (int i = 0; i < array.size(); i++) { + res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); + } + }; + if (json.has("currentState")) { + JsonArray array = getJArray(json, "currentState"); + for (int i = 0; i < array.size(); i++) { + res.getCurrentState().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; + if (json.has("statusDate")) { + JsonArray array = getJArray(json, "statusDate"); + for (int i = 0; i < array.size(); i++) { + res.getStatusDate().add(parseCitationStatusDateComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("relatesTo")) { + JsonArray array = getJArray(json, "relatesTo"); + for (int i = 0; i < array.size(); i++) { + res.getRelatesTo().add(parseCitationRelatesToComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("citedArtifact")) + res.setCitedArtifact(parseCitationCitedArtifactComponent(getJObject(json, "citedArtifact"))); + } + + protected Citation.CitationClassificationComponent parseCitationClassificationComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationClassificationComponent res = new Citation.CitationClassificationComponent(); + parseCitationClassificationComponentProperties(json, res); + return res; + } + + protected void parseCitationClassificationComponentProperties(JsonObject json, Citation.CitationClassificationComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("type")) + res.setType(parseCodeableConcept(getJObject(json, "type"))); + if (json.has("classifier")) { + JsonArray array = getJArray(json, "classifier"); + for (int i = 0; i < array.size(); i++) { + res.getClassifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; + } + + protected Citation.CitationStatusDateComponent parseCitationStatusDateComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationStatusDateComponent res = new Citation.CitationStatusDateComponent(); + parseCitationStatusDateComponentProperties(json, res); + return res; + } + + protected void parseCitationStatusDateComponentProperties(JsonObject json, Citation.CitationStatusDateComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("activity")) + res.setActivity(parseCodeableConcept(getJObject(json, "activity"))); + if (json.has("actual")) + res.setActualElement(parseBoolean(json.get("actual").getAsBoolean())); + if (json.has("_actual")) + parseElementProperties(getJObject(json, "_actual"), res.getActualElement()); + if (json.has("period")) + res.setPeriod(parsePeriod(getJObject(json, "period"))); + } + + protected Citation.CitationRelatesToComponent parseCitationRelatesToComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationRelatesToComponent res = new Citation.CitationRelatesToComponent(); + parseCitationRelatesToComponentProperties(json, res); + return res; + } + + protected void parseCitationRelatesToComponentProperties(JsonObject json, Citation.CitationRelatesToComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("relationshipType")) + res.setRelationshipType(parseCodeableConcept(getJObject(json, "relationshipType"))); + if (json.has("targetClassifier")) { + JsonArray array = getJArray(json, "targetClassifier"); + for (int i = 0; i < array.size(); i++) { + res.getTargetClassifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; + DataType target = parseType("target", json); + if (target != null) + res.setTarget(target); + } + + protected Citation.CitationCitedArtifactComponent parseCitationCitedArtifactComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactComponent res = new Citation.CitationCitedArtifactComponent(); + parseCitationCitedArtifactComponentProperties(json, res); + return res; + } + + protected void parseCitationCitedArtifactComponentProperties(JsonObject json, Citation.CitationCitedArtifactComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("relatedIdentifier")) { - JsonArray array = json.getAsJsonArray("relatedIdentifier"); + JsonArray array = getJArray(json, "relatedIdentifier"); for (int i = 0; i < array.size(); i++) { res.getRelatedIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; - if (json.has("summary")) { - JsonArray array = json.getAsJsonArray("summary"); + if (json.has("dateAccessed")) + res.setDateAccessedElement(parseDateTime(json.get("dateAccessed").getAsString())); + if (json.has("_dateAccessed")) + parseElementProperties(getJObject(json, "_dateAccessed"), res.getDateAccessedElement()); + if (json.has("version")) + res.setVersion(parseCitationCitedArtifactVersionComponent(getJObject(json, "version"))); + if (json.has("currentState")) { + JsonArray array = getJArray(json, "currentState"); for (int i = 0; i < array.size(); i++) { - res.getSummary().add(parseCitationSummaryComponent(array.get(i).getAsJsonObject())); + res.getCurrentState().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; - if (json.has("dateCited")) - res.setDateCitedElement(parseDateTime(json.get("dateCited").getAsString())); - if (json.has("_dateCited")) - parseElementProperties(getJObject(json, "_dateCited"), res.getDateCitedElement()); - if (json.has("variantCitation")) - res.setVariantCitation(parseCitationVariantCitationComponent(getJObject(json, "variantCitation"))); - if (json.has("publishingModel")) - res.setPublishingModel(parseCodeableConcept(getJObject(json, "publishingModel"))); - if (json.has("journal")) - res.setJournal(parseCitationJournalComponent(getJObject(json, "journal"))); - if (json.has("publicationInfo")) - res.setPublicationInfo(parseCitationPublicationInfoComponent(getJObject(json, "publicationInfo"))); - if (json.has("articleTitle")) - res.setArticleTitleElement(parseMarkdown(json.get("articleTitle").getAsString())); - if (json.has("_articleTitle")) - parseElementProperties(getJObject(json, "_articleTitle"), res.getArticleTitleElement()); - if (json.has("alternativeTitle")) { - JsonArray array = json.getAsJsonArray("alternativeTitle"); + if (json.has("statusDate")) { + JsonArray array = getJArray(json, "statusDate"); for (int i = 0; i < array.size(); i++) { - res.getAlternativeTitle().add(parseCitationAlternativeTitleComponent(array.get(i).getAsJsonObject())); + res.getStatusDate().add(parseCitationCitedArtifactStatusDateComponent(array.get(i).getAsJsonObject())); } }; - if (json.has("pagination")) - res.setPagination(parseCitationPaginationComponent(getJObject(json, "pagination"))); - if (json.has("articleUrl")) { - JsonArray array = json.getAsJsonArray("articleUrl"); + if (json.has("title")) { + JsonArray array = getJArray(json, "title"); for (int i = 0; i < array.size(); i++) { - res.getArticleUrl().add(parseCitationArticleUrlComponent(array.get(i).getAsJsonObject())); + res.getTitle().add(parseCitationCitedArtifactTitleComponent(array.get(i).getAsJsonObject())); } }; - if (json.has("abstract")) - res.setAbstractElement(parseMarkdown(json.get("abstract").getAsString())); - if (json.has("_abstract")) - parseElementProperties(getJObject(json, "_abstract"), res.getAbstractElement()); - if (json.has("abstractCopyright")) - res.setAbstractCopyrightElement(parseMarkdown(json.get("abstractCopyright").getAsString())); - if (json.has("_abstractCopyright")) - parseElementProperties(getJObject(json, "_abstractCopyright"), res.getAbstractCopyrightElement()); - if (json.has("alternativeAbstract")) { - JsonArray array = json.getAsJsonArray("alternativeAbstract"); + if (json.has("abstract")) { + JsonArray array = getJArray(json, "abstract"); for (int i = 0; i < array.size(); i++) { - res.getAlternativeAbstract().add(parseCitationAlternativeAbstractComponent(array.get(i).getAsJsonObject())); + res.getAbstract().add(parseCitationCitedArtifactAbstractComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("part")) + res.setPart(parseCitationCitedArtifactPartComponent(getJObject(json, "part"))); + if (json.has("relatesTo")) { + JsonArray array = getJArray(json, "relatesTo"); + for (int i = 0; i < array.size(); i++) { + res.getRelatesTo().add(parseCitationCitedArtifactRelatesToComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("publicationForm")) { + JsonArray array = getJArray(json, "publicationForm"); + for (int i = 0; i < array.size(); i++) { + res.getPublicationForm().add(parseCitationCitedArtifactPublicationFormComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("webLocation")) { + JsonArray array = getJArray(json, "webLocation"); + for (int i = 0; i < array.size(); i++) { + res.getWebLocation().add(parseCitationCitedArtifactWebLocationComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("classification")) { + JsonArray array = getJArray(json, "classification"); + for (int i = 0; i < array.size(); i++) { + res.getClassification().add(parseCitationCitedArtifactClassificationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("contributorship")) - res.setContributorship(parseCitationContributorshipComponent(getJObject(json, "contributorship"))); - if (json.has("articleLanguage")) - res.setArticleLanguage(parseCodeableConcept(getJObject(json, "articleLanguage"))); - if (json.has("alternativeForm")) { - JsonArray array = json.getAsJsonArray("alternativeForm"); - for (int i = 0; i < array.size(); i++) { - res.getAlternativeForm().add(parseCitationAlternativeFormComponent(array.get(i).getAsJsonObject())); - } - }; - if (json.has("classifier")) { - JsonArray array = json.getAsJsonArray("classifier"); - for (int i = 0; i < array.size(); i++) { - res.getClassifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); - } - }; - if (json.has("keywordList")) { - JsonArray array = json.getAsJsonArray("keywordList"); - for (int i = 0; i < array.size(); i++) { - res.getKeywordList().add(parseCitationKeywordListComponent(array.get(i).getAsJsonObject())); - } - }; - if (json.has("relatedArtifact")) { - JsonArray array = json.getAsJsonArray("relatedArtifact"); - for (int i = 0; i < array.size(); i++) { - res.getRelatedArtifact().add(parseRelatedArtifact(array.get(i).getAsJsonObject())); - } - }; + res.setContributorship(parseCitationCitedArtifactContributorshipComponent(getJObject(json, "contributorship"))); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; - if (json.has("medlinePubMed")) - res.setMedlinePubMed(parseCitationMedlinePubMedComponent(getJObject(json, "medlinePubMed"))); } - protected Citation.CitationSummaryComponent parseCitationSummaryComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationSummaryComponent res = new Citation.CitationSummaryComponent(); - parseCitationSummaryComponentProperties(json, res); + protected Citation.CitationCitedArtifactVersionComponent parseCitationCitedArtifactVersionComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactVersionComponent res = new Citation.CitationCitedArtifactVersionComponent(); + parseCitationCitedArtifactVersionComponentProperties(json, res); return res; } - protected void parseCitationSummaryComponentProperties(JsonObject json, Citation.CitationSummaryComponent res) throws IOException, FHIRFormatError { + protected void parseCitationCitedArtifactVersionComponentProperties(JsonObject json, Citation.CitationCitedArtifactVersionComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); - if (json.has("style")) - res.setStyle(parseCodeableConcept(getJObject(json, "style"))); + if (json.has("value")) + res.setValueElement(parseString(json.get("value").getAsString())); + if (json.has("_value")) + parseElementProperties(getJObject(json, "_value"), res.getValueElement()); + if (json.has("baseCitation")) + res.setBaseCitation(parseReference(getJObject(json, "baseCitation"))); + } + + protected Citation.CitationCitedArtifactStatusDateComponent parseCitationCitedArtifactStatusDateComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactStatusDateComponent res = new Citation.CitationCitedArtifactStatusDateComponent(); + parseCitationCitedArtifactStatusDateComponentProperties(json, res); + return res; + } + + protected void parseCitationCitedArtifactStatusDateComponentProperties(JsonObject json, Citation.CitationCitedArtifactStatusDateComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("activity")) + res.setActivity(parseCodeableConcept(getJObject(json, "activity"))); + if (json.has("actual")) + res.setActualElement(parseBoolean(json.get("actual").getAsBoolean())); + if (json.has("_actual")) + parseElementProperties(getJObject(json, "_actual"), res.getActualElement()); + if (json.has("period")) + res.setPeriod(parsePeriod(getJObject(json, "period"))); + } + + protected Citation.CitationCitedArtifactTitleComponent parseCitationCitedArtifactTitleComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactTitleComponent res = new Citation.CitationCitedArtifactTitleComponent(); + parseCitationCitedArtifactTitleComponentProperties(json, res); + return res; + } + + protected void parseCitationCitedArtifactTitleComponentProperties(JsonObject json, Citation.CitationCitedArtifactTitleComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("type")) + res.setType(parseCodeableConcept(getJObject(json, "type"))); + if (json.has("language")) + res.setLanguage(parseCodeableConcept(getJObject(json, "language"))); if (json.has("text")) res.setTextElement(parseMarkdown(json.get("text").getAsString())); if (json.has("_text")) parseElementProperties(getJObject(json, "_text"), res.getTextElement()); } - protected Citation.CitationVariantCitationComponent parseCitationVariantCitationComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationVariantCitationComponent res = new Citation.CitationVariantCitationComponent(); - parseCitationVariantCitationComponentProperties(json, res); + protected Citation.CitationCitedArtifactAbstractComponent parseCitationCitedArtifactAbstractComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactAbstractComponent res = new Citation.CitationCitedArtifactAbstractComponent(); + parseCitationCitedArtifactAbstractComponentProperties(json, res); return res; } - protected void parseCitationVariantCitationComponentProperties(JsonObject json, Citation.CitationVariantCitationComponent res) throws IOException, FHIRFormatError { + protected void parseCitationCitedArtifactAbstractComponentProperties(JsonObject json, Citation.CitationCitedArtifactAbstractComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("type")) + res.setType(parseCodeableConcept(getJObject(json, "type"))); + if (json.has("language")) + res.setLanguage(parseCodeableConcept(getJObject(json, "language"))); + if (json.has("text")) + res.setTextElement(parseMarkdown(json.get("text").getAsString())); + if (json.has("_text")) + parseElementProperties(getJObject(json, "_text"), res.getTextElement()); + if (json.has("copyright")) + res.setCopyrightElement(parseMarkdown(json.get("copyright").getAsString())); + if (json.has("_copyright")) + parseElementProperties(getJObject(json, "_copyright"), res.getCopyrightElement()); + } + + protected Citation.CitationCitedArtifactPartComponent parseCitationCitedArtifactPartComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactPartComponent res = new Citation.CitationCitedArtifactPartComponent(); + parseCitationCitedArtifactPartComponentProperties(json, res); + return res; + } + + protected void parseCitationCitedArtifactPartComponentProperties(JsonObject json, Citation.CitationCitedArtifactPartComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); @@ -5944,39 +6260,114 @@ public class JsonParser extends JsonParserBase { res.setBaseCitation(parseReference(getJObject(json, "baseCitation"))); } - protected Citation.CitationJournalComponent parseCitationJournalComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationJournalComponent res = new Citation.CitationJournalComponent(); - parseCitationJournalComponentProperties(json, res); + protected Citation.CitationCitedArtifactRelatesToComponent parseCitationCitedArtifactRelatesToComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactRelatesToComponent res = new Citation.CitationCitedArtifactRelatesToComponent(); + parseCitationCitedArtifactRelatesToComponentProperties(json, res); return res; } - protected void parseCitationJournalComponentProperties(JsonObject json, Citation.CitationJournalComponent res) throws IOException, FHIRFormatError { + protected void parseCitationCitedArtifactRelatesToComponentProperties(JsonObject json, Citation.CitationCitedArtifactRelatesToComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); + if (json.has("relationshipType")) + res.setRelationshipType(parseCodeableConcept(getJObject(json, "relationshipType"))); + if (json.has("targetClassifier")) { + JsonArray array = getJArray(json, "targetClassifier"); + for (int i = 0; i < array.size(); i++) { + res.getTargetClassifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; + DataType target = parseType("target", json); + if (target != null) + res.setTarget(target); + } + + protected Citation.CitationCitedArtifactPublicationFormComponent parseCitationCitedArtifactPublicationFormComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactPublicationFormComponent res = new Citation.CitationCitedArtifactPublicationFormComponent(); + parseCitationCitedArtifactPublicationFormComponentProperties(json, res); + return res; + } + + protected void parseCitationCitedArtifactPublicationFormComponentProperties(JsonObject json, Citation.CitationCitedArtifactPublicationFormComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("publishedIn")) + res.setPublishedIn(parseCitationCitedArtifactPublicationFormPublishedInComponent(getJObject(json, "publishedIn"))); + if (json.has("periodicRelease")) + res.setPeriodicRelease(parseCitationCitedArtifactPublicationFormPeriodicReleaseComponent(getJObject(json, "periodicRelease"))); + if (json.has("articleDate")) + res.setArticleDateElement(parseDateTime(json.get("articleDate").getAsString())); + if (json.has("_articleDate")) + parseElementProperties(getJObject(json, "_articleDate"), res.getArticleDateElement()); + if (json.has("lastRevisionDate")) + res.setLastRevisionDateElement(parseDateTime(json.get("lastRevisionDate").getAsString())); + if (json.has("_lastRevisionDate")) + parseElementProperties(getJObject(json, "_lastRevisionDate"), res.getLastRevisionDateElement()); + if (json.has("language")) { + JsonArray array = getJArray(json, "language"); + for (int i = 0; i < array.size(); i++) { + res.getLanguage().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; + if (json.has("accessionNumber")) + res.setAccessionNumberElement(parseString(json.get("accessionNumber").getAsString())); + if (json.has("_accessionNumber")) + parseElementProperties(getJObject(json, "_accessionNumber"), res.getAccessionNumberElement()); + if (json.has("pageString")) + res.setPageStringElement(parseString(json.get("pageString").getAsString())); + if (json.has("_pageString")) + parseElementProperties(getJObject(json, "_pageString"), res.getPageStringElement()); + if (json.has("firstPage")) + res.setFirstPageElement(parseString(json.get("firstPage").getAsString())); + if (json.has("_firstPage")) + parseElementProperties(getJObject(json, "_firstPage"), res.getFirstPageElement()); + if (json.has("lastPage")) + res.setLastPageElement(parseString(json.get("lastPage").getAsString())); + if (json.has("_lastPage")) + parseElementProperties(getJObject(json, "_lastPage"), res.getLastPageElement()); + if (json.has("pageCount")) + res.setPageCountElement(parseString(json.get("pageCount").getAsString())); + if (json.has("_pageCount")) + parseElementProperties(getJObject(json, "_pageCount"), res.getPageCountElement()); + if (json.has("copyright")) + res.setCopyrightElement(parseMarkdown(json.get("copyright").getAsString())); + if (json.has("_copyright")) + parseElementProperties(getJObject(json, "_copyright"), res.getCopyrightElement()); + } + + protected Citation.CitationCitedArtifactPublicationFormPublishedInComponent parseCitationCitedArtifactPublicationFormPublishedInComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactPublicationFormPublishedInComponent res = new Citation.CitationCitedArtifactPublicationFormPublishedInComponent(); + parseCitationCitedArtifactPublicationFormPublishedInComponentProperties(json, res); + return res; + } + + protected void parseCitationCitedArtifactPublicationFormPublishedInComponentProperties(JsonObject json, Citation.CitationCitedArtifactPublicationFormPublishedInComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("type")) + res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; - if (json.has("country")) - res.setCountryElement(parseString(json.get("country").getAsString())); - if (json.has("_country")) - parseElementProperties(getJObject(json, "_country"), res.getCountryElement()); - if (json.has("journalIssue")) - res.setJournalIssue(parseCitationJournalJournalIssueComponent(getJObject(json, "journalIssue"))); if (json.has("title")) res.setTitleElement(parseString(json.get("title").getAsString())); if (json.has("_title")) parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); + if (json.has("publisher")) + res.setPublisher(parseReference(getJObject(json, "publisher"))); + if (json.has("publisherLocation")) + res.setPublisherLocationElement(parseString(json.get("publisherLocation").getAsString())); + if (json.has("_publisherLocation")) + parseElementProperties(getJObject(json, "_publisherLocation"), res.getPublisherLocationElement()); } - protected Citation.CitationJournalJournalIssueComponent parseCitationJournalJournalIssueComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationJournalJournalIssueComponent res = new Citation.CitationJournalJournalIssueComponent(); - parseCitationJournalJournalIssueComponentProperties(json, res); + protected Citation.CitationCitedArtifactPublicationFormPeriodicReleaseComponent parseCitationCitedArtifactPublicationFormPeriodicReleaseComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactPublicationFormPeriodicReleaseComponent res = new Citation.CitationCitedArtifactPublicationFormPeriodicReleaseComponent(); + parseCitationCitedArtifactPublicationFormPeriodicReleaseComponentProperties(json, res); return res; } - protected void parseCitationJournalJournalIssueComponentProperties(JsonObject json, Citation.CitationJournalJournalIssueComponent res) throws IOException, FHIRFormatError { + protected void parseCitationCitedArtifactPublicationFormPeriodicReleaseComponentProperties(JsonObject json, Citation.CitationCitedArtifactPublicationFormPeriodicReleaseComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("citedMedium")) res.setCitedMedium(parseCodeableConcept(getJObject(json, "citedMedium"))); @@ -5988,17 +6379,17 @@ public class JsonParser extends JsonParserBase { res.setIssueElement(parseString(json.get("issue").getAsString())); if (json.has("_issue")) parseElementProperties(getJObject(json, "_issue"), res.getIssueElement()); - if (json.has("publicationDate")) - res.setPublicationDate(parseCitationJournalJournalIssuePublicationDateComponent(getJObject(json, "publicationDate"))); + if (json.has("dateOfPublication")) + res.setDateOfPublication(parseCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent(getJObject(json, "dateOfPublication"))); } - protected Citation.CitationJournalJournalIssuePublicationDateComponent parseCitationJournalJournalIssuePublicationDateComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationJournalJournalIssuePublicationDateComponent res = new Citation.CitationJournalJournalIssuePublicationDateComponent(); - parseCitationJournalJournalIssuePublicationDateComponentProperties(json, res); + protected Citation.CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent parseCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent res = new Citation.CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent(); + parseCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponentProperties(json, res); return res; } - protected void parseCitationJournalJournalIssuePublicationDateComponentProperties(JsonObject json, Citation.CitationJournalJournalIssuePublicationDateComponent res) throws IOException, FHIRFormatError { + protected void parseCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponentProperties(JsonObject json, Citation.CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("date")) res.setDateElement(parseDate(json.get("date").getAsString())); @@ -6026,109 +6417,13 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_text"), res.getTextElement()); } - protected Citation.CitationPublicationInfoComponent parseCitationPublicationInfoComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationPublicationInfoComponent res = new Citation.CitationPublicationInfoComponent(); - parseCitationPublicationInfoComponentProperties(json, res); + protected Citation.CitationCitedArtifactWebLocationComponent parseCitationCitedArtifactWebLocationComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactWebLocationComponent res = new Citation.CitationCitedArtifactWebLocationComponent(); + parseCitationCitedArtifactWebLocationComponentProperties(json, res); return res; } - protected void parseCitationPublicationInfoComponentProperties(JsonObject json, Citation.CitationPublicationInfoComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("publishedIn")) - res.setPublishedIn(parseCitationPublicationInfoPublishedInComponent(getJObject(json, "publishedIn"))); - if (json.has("entryDate")) - res.setEntryDateElement(parseDateTime(json.get("entryDate").getAsString())); - if (json.has("_entryDate")) - parseElementProperties(getJObject(json, "_entryDate"), res.getEntryDateElement()); - if (json.has("revisionDate")) - res.setRevisionDateElement(parseDateTime(json.get("revisionDate").getAsString())); - if (json.has("_revisionDate")) - parseElementProperties(getJObject(json, "_revisionDate"), res.getRevisionDateElement()); - if (json.has("pageCount")) - res.setPageCountElement(parseString(json.get("pageCount").getAsString())); - if (json.has("_pageCount")) - parseElementProperties(getJObject(json, "_pageCount"), res.getPageCountElement()); - } - - protected Citation.CitationPublicationInfoPublishedInComponent parseCitationPublicationInfoPublishedInComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationPublicationInfoPublishedInComponent res = new Citation.CitationPublicationInfoPublishedInComponent(); - parseCitationPublicationInfoPublishedInComponentProperties(json, res); - return res; - } - - protected void parseCitationPublicationInfoPublishedInComponentProperties(JsonObject json, Citation.CitationPublicationInfoPublishedInComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("type")) - res.setType(parseCodeableConcept(getJObject(json, "type"))); - if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); - for (int i = 0; i < array.size(); i++) { - res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); - } - }; - if (json.has("name")) - res.setNameElement(parseString(json.get("name").getAsString())); - if (json.has("_name")) - parseElementProperties(getJObject(json, "_name"), res.getNameElement()); - if (json.has("publisher")) - res.setPublisher(parseReference(getJObject(json, "publisher"))); - if (json.has("publisherLocation")) - res.setPublisherLocationElement(parseString(json.get("publisherLocation").getAsString())); - if (json.has("_publisherLocation")) - parseElementProperties(getJObject(json, "_publisherLocation"), res.getPublisherLocationElement()); - if (json.has("startDate")) - res.setStartDateElement(parseDate(json.get("startDate").getAsString())); - if (json.has("_startDate")) - parseElementProperties(getJObject(json, "_startDate"), res.getStartDateElement()); - } - - protected Citation.CitationAlternativeTitleComponent parseCitationAlternativeTitleComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationAlternativeTitleComponent res = new Citation.CitationAlternativeTitleComponent(); - parseCitationAlternativeTitleComponentProperties(json, res); - return res; - } - - protected void parseCitationAlternativeTitleComponentProperties(JsonObject json, Citation.CitationAlternativeTitleComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("type")) - res.setType(parseCodeableConcept(getJObject(json, "type"))); - if (json.has("language")) - res.setLanguage(parseCodeableConcept(getJObject(json, "language"))); - if (json.has("title")) - res.setTitleElement(parseMarkdown(json.get("title").getAsString())); - if (json.has("_title")) - parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); - } - - protected Citation.CitationPaginationComponent parseCitationPaginationComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationPaginationComponent res = new Citation.CitationPaginationComponent(); - parseCitationPaginationComponentProperties(json, res); - return res; - } - - protected void parseCitationPaginationComponentProperties(JsonObject json, Citation.CitationPaginationComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("pageString")) - res.setPageStringElement(parseString(json.get("pageString").getAsString())); - if (json.has("_pageString")) - parseElementProperties(getJObject(json, "_pageString"), res.getPageStringElement()); - if (json.has("firstPage")) - res.setFirstPageElement(parseString(json.get("firstPage").getAsString())); - if (json.has("_firstPage")) - parseElementProperties(getJObject(json, "_firstPage"), res.getFirstPageElement()); - if (json.has("lastPage")) - res.setLastPageElement(parseString(json.get("lastPage").getAsString())); - if (json.has("_lastPage")) - parseElementProperties(getJObject(json, "_lastPage"), res.getLastPageElement()); - } - - protected Citation.CitationArticleUrlComponent parseCitationArticleUrlComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationArticleUrlComponent res = new Citation.CitationArticleUrlComponent(); - parseCitationArticleUrlComponentProperties(json, res); - return res; - } - - protected void parseCitationArticleUrlComponentProperties(JsonObject json, Citation.CitationArticleUrlComponent res) throws IOException, FHIRFormatError { + protected void parseCitationCitedArtifactWebLocationComponentProperties(JsonObject json, Citation.CitationCitedArtifactWebLocationComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); @@ -6138,61 +6433,83 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); } - protected Citation.CitationAlternativeAbstractComponent parseCitationAlternativeAbstractComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationAlternativeAbstractComponent res = new Citation.CitationAlternativeAbstractComponent(); - parseCitationAlternativeAbstractComponentProperties(json, res); + protected Citation.CitationCitedArtifactClassificationComponent parseCitationCitedArtifactClassificationComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactClassificationComponent res = new Citation.CitationCitedArtifactClassificationComponent(); + parseCitationCitedArtifactClassificationComponentProperties(json, res); return res; } - protected void parseCitationAlternativeAbstractComponentProperties(JsonObject json, Citation.CitationAlternativeAbstractComponent res) throws IOException, FHIRFormatError { + protected void parseCitationCitedArtifactClassificationComponentProperties(JsonObject json, Citation.CitationCitedArtifactClassificationComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); - if (json.has("language")) - res.setLanguage(parseCodeableConcept(getJObject(json, "language"))); - if (json.has("abstract")) - res.setAbstractElement(parseMarkdown(json.get("abstract").getAsString())); - if (json.has("_abstract")) - parseElementProperties(getJObject(json, "_abstract"), res.getAbstractElement()); - if (json.has("abstractCopyright")) - res.setAbstractCopyrightElement(parseMarkdown(json.get("abstractCopyright").getAsString())); - if (json.has("_abstractCopyright")) - parseElementProperties(getJObject(json, "_abstractCopyright"), res.getAbstractCopyrightElement()); + if (json.has("classifier")) { + JsonArray array = getJArray(json, "classifier"); + for (int i = 0; i < array.size(); i++) { + res.getClassifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; + if (json.has("whoClassified")) + res.setWhoClassified(parseCitationCitedArtifactClassificationWhoClassifiedComponent(getJObject(json, "whoClassified"))); } - protected Citation.CitationContributorshipComponent parseCitationContributorshipComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationContributorshipComponent res = new Citation.CitationContributorshipComponent(); - parseCitationContributorshipComponentProperties(json, res); + protected Citation.CitationCitedArtifactClassificationWhoClassifiedComponent parseCitationCitedArtifactClassificationWhoClassifiedComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactClassificationWhoClassifiedComponent res = new Citation.CitationCitedArtifactClassificationWhoClassifiedComponent(); + parseCitationCitedArtifactClassificationWhoClassifiedComponentProperties(json, res); return res; } - protected void parseCitationContributorshipComponentProperties(JsonObject json, Citation.CitationContributorshipComponent res) throws IOException, FHIRFormatError { + protected void parseCitationCitedArtifactClassificationWhoClassifiedComponentProperties(JsonObject json, Citation.CitationCitedArtifactClassificationWhoClassifiedComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("person")) + res.setPerson(parseReference(getJObject(json, "person"))); + if (json.has("organization")) + res.setOrganization(parseReference(getJObject(json, "organization"))); + if (json.has("publisher")) + res.setPublisher(parseReference(getJObject(json, "publisher"))); + if (json.has("classifierCopyright")) + res.setClassifierCopyrightElement(parseString(json.get("classifierCopyright").getAsString())); + if (json.has("_classifierCopyright")) + parseElementProperties(getJObject(json, "_classifierCopyright"), res.getClassifierCopyrightElement()); + if (json.has("freeToShare")) + res.setFreeToShareElement(parseBoolean(json.get("freeToShare").getAsBoolean())); + if (json.has("_freeToShare")) + parseElementProperties(getJObject(json, "_freeToShare"), res.getFreeToShareElement()); + } + + protected Citation.CitationCitedArtifactContributorshipComponent parseCitationCitedArtifactContributorshipComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactContributorshipComponent res = new Citation.CitationCitedArtifactContributorshipComponent(); + parseCitationCitedArtifactContributorshipComponentProperties(json, res); + return res; + } + + protected void parseCitationCitedArtifactContributorshipComponentProperties(JsonObject json, Citation.CitationCitedArtifactContributorshipComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("complete")) res.setCompleteElement(parseBoolean(json.get("complete").getAsBoolean())); if (json.has("_complete")) parseElementProperties(getJObject(json, "_complete"), res.getCompleteElement()); if (json.has("entry")) { - JsonArray array = json.getAsJsonArray("entry"); + JsonArray array = getJArray(json, "entry"); for (int i = 0; i < array.size(); i++) { - res.getEntry().add(parseCitationContributorshipEntryComponent(array.get(i).getAsJsonObject())); + res.getEntry().add(parseCitationCitedArtifactContributorshipEntryComponent(array.get(i).getAsJsonObject())); } }; if (json.has("summary")) { - JsonArray array = json.getAsJsonArray("summary"); + JsonArray array = getJArray(json, "summary"); for (int i = 0; i < array.size(); i++) { - res.getSummary().add(parseCitationContributorshipSummaryComponent(array.get(i).getAsJsonObject())); + res.getSummary().add(parseCitationCitedArtifactContributorshipSummaryComponent(array.get(i).getAsJsonObject())); } }; } - protected Citation.CitationContributorshipEntryComponent parseCitationContributorshipEntryComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationContributorshipEntryComponent res = new Citation.CitationContributorshipEntryComponent(); - parseCitationContributorshipEntryComponentProperties(json, res); + protected Citation.CitationCitedArtifactContributorshipEntryComponent parseCitationCitedArtifactContributorshipEntryComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactContributorshipEntryComponent res = new Citation.CitationCitedArtifactContributorshipEntryComponent(); + parseCitationCitedArtifactContributorshipEntryComponentProperties(json, res); return res; } - protected void parseCitationContributorshipEntryComponentProperties(JsonObject json, Citation.CitationContributorshipEntryComponent res) throws IOException, FHIRFormatError { + protected void parseCitationCitedArtifactContributorshipEntryComponentProperties(JsonObject json, Citation.CitationCitedArtifactContributorshipEntryComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("name")) res.setName(parseHumanName(getJObject(json, "name"))); @@ -6205,56 +6522,60 @@ public class JsonParser extends JsonParserBase { if (json.has("_collectiveName")) parseElementProperties(getJObject(json, "_collectiveName"), res.getCollectiveNameElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("affiliationInfo")) { - JsonArray array = json.getAsJsonArray("affiliationInfo"); + JsonArray array = getJArray(json, "affiliationInfo"); for (int i = 0; i < array.size(); i++) { - res.getAffiliationInfo().add(parseCitationContributorshipEntryAffiliationInfoComponent(array.get(i).getAsJsonObject())); + res.getAffiliationInfo().add(parseCitationCitedArtifactContributorshipEntryAffiliationInfoComponent(array.get(i).getAsJsonObject())); } }; if (json.has("address")) { - JsonArray array = json.getAsJsonArray("address"); + JsonArray array = getJArray(json, "address"); for (int i = 0; i < array.size(); i++) { res.getAddress().add(parseAddress(array.get(i).getAsJsonObject())); } }; if (json.has("telecom")) { - JsonArray array = json.getAsJsonArray("telecom"); + JsonArray array = getJArray(json, "telecom"); for (int i = 0; i < array.size(); i++) { res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject())); } }; - if (json.has("contribution")) { - JsonArray array = json.getAsJsonArray("contribution"); + if (json.has("contributionType")) { + JsonArray array = getJArray(json, "contributionType"); for (int i = 0; i < array.size(); i++) { - res.getContribution().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + res.getContributionType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; - if (json.has("notAnAuthor")) - res.setNotAnAuthorElement(parseBoolean(json.get("notAnAuthor").getAsBoolean())); - if (json.has("_notAnAuthor")) - parseElementProperties(getJObject(json, "_notAnAuthor"), res.getNotAnAuthorElement()); - if (json.has("correspondingAuthor")) - res.setCorrespondingAuthorElement(parseBoolean(json.get("correspondingAuthor").getAsBoolean())); - if (json.has("_correspondingAuthor")) - parseElementProperties(getJObject(json, "_correspondingAuthor"), res.getCorrespondingAuthorElement()); + if (json.has("role")) + res.setRole(parseCodeableConcept(getJObject(json, "role"))); + if (json.has("contributionInstance")) { + JsonArray array = getJArray(json, "contributionInstance"); + for (int i = 0; i < array.size(); i++) { + res.getContributionInstance().add(parseCitationCitedArtifactContributorshipEntryContributionInstanceComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("correspondingContact")) + res.setCorrespondingContactElement(parseBoolean(json.get("correspondingContact").getAsBoolean())); + if (json.has("_correspondingContact")) + parseElementProperties(getJObject(json, "_correspondingContact"), res.getCorrespondingContactElement()); if (json.has("listOrder")) res.setListOrderElement(parsePositiveInt(json.get("listOrder").getAsString())); if (json.has("_listOrder")) parseElementProperties(getJObject(json, "_listOrder"), res.getListOrderElement()); } - protected Citation.CitationContributorshipEntryAffiliationInfoComponent parseCitationContributorshipEntryAffiliationInfoComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationContributorshipEntryAffiliationInfoComponent res = new Citation.CitationContributorshipEntryAffiliationInfoComponent(); - parseCitationContributorshipEntryAffiliationInfoComponentProperties(json, res); + protected Citation.CitationCitedArtifactContributorshipEntryAffiliationInfoComponent parseCitationCitedArtifactContributorshipEntryAffiliationInfoComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactContributorshipEntryAffiliationInfoComponent res = new Citation.CitationCitedArtifactContributorshipEntryAffiliationInfoComponent(); + parseCitationCitedArtifactContributorshipEntryAffiliationInfoComponentProperties(json, res); return res; } - protected void parseCitationContributorshipEntryAffiliationInfoComponentProperties(JsonObject json, Citation.CitationContributorshipEntryAffiliationInfoComponent res) throws IOException, FHIRFormatError { + protected void parseCitationCitedArtifactContributorshipEntryAffiliationInfoComponentProperties(JsonObject json, Citation.CitationCitedArtifactContributorshipEntryAffiliationInfoComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("affiliation")) res.setAffiliationElement(parseString(json.get("affiliation").getAsString())); @@ -6265,20 +6586,36 @@ public class JsonParser extends JsonParserBase { if (json.has("_role")) parseElementProperties(getJObject(json, "_role"), res.getRoleElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; } - protected Citation.CitationContributorshipSummaryComponent parseCitationContributorshipSummaryComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationContributorshipSummaryComponent res = new Citation.CitationContributorshipSummaryComponent(); - parseCitationContributorshipSummaryComponentProperties(json, res); + protected Citation.CitationCitedArtifactContributorshipEntryContributionInstanceComponent parseCitationCitedArtifactContributorshipEntryContributionInstanceComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactContributorshipEntryContributionInstanceComponent res = new Citation.CitationCitedArtifactContributorshipEntryContributionInstanceComponent(); + parseCitationCitedArtifactContributorshipEntryContributionInstanceComponentProperties(json, res); return res; } - protected void parseCitationContributorshipSummaryComponentProperties(JsonObject json, Citation.CitationContributorshipSummaryComponent res) throws IOException, FHIRFormatError { + protected void parseCitationCitedArtifactContributorshipEntryContributionInstanceComponentProperties(JsonObject json, Citation.CitationCitedArtifactContributorshipEntryContributionInstanceComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("type")) + res.setType(parseCodeableConcept(getJObject(json, "type"))); + if (json.has("time")) + res.setTimeElement(parseDateTime(json.get("time").getAsString())); + if (json.has("_time")) + parseElementProperties(getJObject(json, "_time"), res.getTimeElement()); + } + + protected Citation.CitationCitedArtifactContributorshipSummaryComponent parseCitationCitedArtifactContributorshipSummaryComponent(JsonObject json) throws IOException, FHIRFormatError { + Citation.CitationCitedArtifactContributorshipSummaryComponent res = new Citation.CitationCitedArtifactContributorshipSummaryComponent(); + parseCitationCitedArtifactContributorshipSummaryComponentProperties(json, res); + return res; + } + + protected void parseCitationCitedArtifactContributorshipSummaryComponentProperties(JsonObject json, Citation.CitationCitedArtifactContributorshipSummaryComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); @@ -6292,278 +6629,6 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_value"), res.getValueElement()); } - protected Citation.CitationAlternativeFormComponent parseCitationAlternativeFormComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationAlternativeFormComponent res = new Citation.CitationAlternativeFormComponent(); - parseCitationAlternativeFormComponentProperties(json, res); - return res; - } - - protected void parseCitationAlternativeFormComponentProperties(JsonObject json, Citation.CitationAlternativeFormComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("publishingModel")) - res.setPublishingModel(parseCodeableConcept(getJObject(json, "publishingModel"))); - if (json.has("language")) - res.setLanguage(parseCodeableConcept(getJObject(json, "language"))); - if (json.has("journalIssue")) - res.setJournalIssue(parseCitationAlternativeFormJournalIssueComponent(getJObject(json, "journalIssue"))); - if (json.has("pagination")) - res.setPagination(parseCitationAlternativeFormPaginationComponent(getJObject(json, "pagination"))); - if (json.has("publicationInfo")) - res.setPublicationInfo(parseCitationAlternativeFormPublicationInfoComponent(getJObject(json, "publicationInfo"))); - } - - protected Citation.CitationAlternativeFormJournalIssueComponent parseCitationAlternativeFormJournalIssueComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationAlternativeFormJournalIssueComponent res = new Citation.CitationAlternativeFormJournalIssueComponent(); - parseCitationAlternativeFormJournalIssueComponentProperties(json, res); - return res; - } - - protected void parseCitationAlternativeFormJournalIssueComponentProperties(JsonObject json, Citation.CitationAlternativeFormJournalIssueComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("citedMedium")) - res.setCitedMedium(parseCodeableConcept(getJObject(json, "citedMedium"))); - if (json.has("volume")) - res.setVolumeElement(parseString(json.get("volume").getAsString())); - if (json.has("_volume")) - parseElementProperties(getJObject(json, "_volume"), res.getVolumeElement()); - if (json.has("issue")) - res.setIssueElement(parseString(json.get("issue").getAsString())); - if (json.has("_issue")) - parseElementProperties(getJObject(json, "_issue"), res.getIssueElement()); - if (json.has("publicationDate")) - res.setPublicationDate(parseCitationAlternativeFormJournalIssuePublicationDateComponent(getJObject(json, "publicationDate"))); - } - - protected Citation.CitationAlternativeFormJournalIssuePublicationDateComponent parseCitationAlternativeFormJournalIssuePublicationDateComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationAlternativeFormJournalIssuePublicationDateComponent res = new Citation.CitationAlternativeFormJournalIssuePublicationDateComponent(); - parseCitationAlternativeFormJournalIssuePublicationDateComponentProperties(json, res); - return res; - } - - protected void parseCitationAlternativeFormJournalIssuePublicationDateComponentProperties(JsonObject json, Citation.CitationAlternativeFormJournalIssuePublicationDateComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("date")) - res.setDateElement(parseDate(json.get("date").getAsString())); - if (json.has("_date")) - parseElementProperties(getJObject(json, "_date"), res.getDateElement()); - if (json.has("year")) - res.setYearElement(parseString(json.get("year").getAsString())); - if (json.has("_year")) - parseElementProperties(getJObject(json, "_year"), res.getYearElement()); - if (json.has("month")) - res.setMonthElement(parseString(json.get("month").getAsString())); - if (json.has("_month")) - parseElementProperties(getJObject(json, "_month"), res.getMonthElement()); - if (json.has("day")) - res.setDayElement(parseString(json.get("day").getAsString())); - if (json.has("_day")) - parseElementProperties(getJObject(json, "_day"), res.getDayElement()); - if (json.has("season")) - res.setSeasonElement(parseString(json.get("season").getAsString())); - if (json.has("_season")) - parseElementProperties(getJObject(json, "_season"), res.getSeasonElement()); - if (json.has("text")) - res.setTextElement(parseString(json.get("text").getAsString())); - if (json.has("_text")) - parseElementProperties(getJObject(json, "_text"), res.getTextElement()); - } - - protected Citation.CitationAlternativeFormPaginationComponent parseCitationAlternativeFormPaginationComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationAlternativeFormPaginationComponent res = new Citation.CitationAlternativeFormPaginationComponent(); - parseCitationAlternativeFormPaginationComponentProperties(json, res); - return res; - } - - protected void parseCitationAlternativeFormPaginationComponentProperties(JsonObject json, Citation.CitationAlternativeFormPaginationComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("pageString")) - res.setPageStringElement(parseString(json.get("pageString").getAsString())); - if (json.has("_pageString")) - parseElementProperties(getJObject(json, "_pageString"), res.getPageStringElement()); - if (json.has("firstPage")) - res.setFirstPageElement(parseString(json.get("firstPage").getAsString())); - if (json.has("_firstPage")) - parseElementProperties(getJObject(json, "_firstPage"), res.getFirstPageElement()); - if (json.has("lastPage")) - res.setLastPageElement(parseString(json.get("lastPage").getAsString())); - if (json.has("_lastPage")) - parseElementProperties(getJObject(json, "_lastPage"), res.getLastPageElement()); - } - - protected Citation.CitationAlternativeFormPublicationInfoComponent parseCitationAlternativeFormPublicationInfoComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationAlternativeFormPublicationInfoComponent res = new Citation.CitationAlternativeFormPublicationInfoComponent(); - parseCitationAlternativeFormPublicationInfoComponentProperties(json, res); - return res; - } - - protected void parseCitationAlternativeFormPublicationInfoComponentProperties(JsonObject json, Citation.CitationAlternativeFormPublicationInfoComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("publishedIn")) - res.setPublishedIn(parseCitationAlternativeFormPublicationInfoPublishedInComponent(getJObject(json, "publishedIn"))); - if (json.has("entryDate")) - res.setEntryDateElement(parseDateTime(json.get("entryDate").getAsString())); - if (json.has("_entryDate")) - parseElementProperties(getJObject(json, "_entryDate"), res.getEntryDateElement()); - if (json.has("revisionDate")) - res.setRevisionDateElement(parseDateTime(json.get("revisionDate").getAsString())); - if (json.has("_revisionDate")) - parseElementProperties(getJObject(json, "_revisionDate"), res.getRevisionDateElement()); - if (json.has("pageCount")) - res.setPageCountElement(parseString(json.get("pageCount").getAsString())); - if (json.has("_pageCount")) - parseElementProperties(getJObject(json, "_pageCount"), res.getPageCountElement()); - } - - protected Citation.CitationAlternativeFormPublicationInfoPublishedInComponent parseCitationAlternativeFormPublicationInfoPublishedInComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationAlternativeFormPublicationInfoPublishedInComponent res = new Citation.CitationAlternativeFormPublicationInfoPublishedInComponent(); - parseCitationAlternativeFormPublicationInfoPublishedInComponentProperties(json, res); - return res; - } - - protected void parseCitationAlternativeFormPublicationInfoPublishedInComponentProperties(JsonObject json, Citation.CitationAlternativeFormPublicationInfoPublishedInComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("type")) - res.setType(parseCodeableConcept(getJObject(json, "type"))); - if (json.has("name")) - res.setNameElement(parseString(json.get("name").getAsString())); - if (json.has("_name")) - parseElementProperties(getJObject(json, "_name"), res.getNameElement()); - if (json.has("publisher")) - res.setPublisher(parseReference(getJObject(json, "publisher"))); - if (json.has("publisherLocation")) - res.setPublisherLocationElement(parseString(json.get("publisherLocation").getAsString())); - if (json.has("_publisherLocation")) - parseElementProperties(getJObject(json, "_publisherLocation"), res.getPublisherLocationElement()); - if (json.has("startDate")) - res.setStartDateElement(parseDate(json.get("startDate").getAsString())); - if (json.has("_startDate")) - parseElementProperties(getJObject(json, "_startDate"), res.getStartDateElement()); - } - - protected Citation.CitationKeywordListComponent parseCitationKeywordListComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationKeywordListComponent res = new Citation.CitationKeywordListComponent(); - parseCitationKeywordListComponentProperties(json, res); - return res; - } - - protected void parseCitationKeywordListComponentProperties(JsonObject json, Citation.CitationKeywordListComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("owner")) - res.setOwnerElement(parseString(json.get("owner").getAsString())); - if (json.has("_owner")) - parseElementProperties(getJObject(json, "_owner"), res.getOwnerElement()); - if (json.has("keyword")) { - JsonArray array = json.getAsJsonArray("keyword"); - for (int i = 0; i < array.size(); i++) { - res.getKeyword().add(parseCitationKeywordListKeywordComponent(array.get(i).getAsJsonObject())); - } - }; - } - - protected Citation.CitationKeywordListKeywordComponent parseCitationKeywordListKeywordComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationKeywordListKeywordComponent res = new Citation.CitationKeywordListKeywordComponent(); - parseCitationKeywordListKeywordComponentProperties(json, res); - return res; - } - - protected void parseCitationKeywordListKeywordComponentProperties(JsonObject json, Citation.CitationKeywordListKeywordComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("majorTopic")) - res.setMajorTopicElement(parseBoolean(json.get("majorTopic").getAsBoolean())); - if (json.has("_majorTopic")) - parseElementProperties(getJObject(json, "_majorTopic"), res.getMajorTopicElement()); - if (json.has("value")) - res.setValueElement(parseString(json.get("value").getAsString())); - if (json.has("_value")) - parseElementProperties(getJObject(json, "_value"), res.getValueElement()); - } - - protected Citation.CitationMedlinePubMedComponent parseCitationMedlinePubMedComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationMedlinePubMedComponent res = new Citation.CitationMedlinePubMedComponent(); - parseCitationMedlinePubMedComponentProperties(json, res); - return res; - } - - protected void parseCitationMedlinePubMedComponentProperties(JsonObject json, Citation.CitationMedlinePubMedComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("medlineState")) - res.setMedlineState(parseCodeableConcept(getJObject(json, "medlineState"))); - if (json.has("owner")) - res.setOwner(parseCodeableConcept(getJObject(json, "owner"))); - if (json.has("pmid")) - res.setPmidElement(parsePositiveInt(json.get("pmid").getAsString())); - if (json.has("_pmid")) - parseElementProperties(getJObject(json, "_pmid"), res.getPmidElement()); - if (json.has("pmidVersion")) - res.setPmidVersionElement(parsePositiveInt(json.get("pmidVersion").getAsString())); - if (json.has("_pmidVersion")) - parseElementProperties(getJObject(json, "_pmidVersion"), res.getPmidVersionElement()); - if (json.has("dateCreated")) - res.setDateCreatedElement(parseDate(json.get("dateCreated").getAsString())); - if (json.has("_dateCreated")) - parseElementProperties(getJObject(json, "_dateCreated"), res.getDateCreatedElement()); - if (json.has("dateCompleted")) - res.setDateCompletedElement(parseDate(json.get("dateCompleted").getAsString())); - if (json.has("_dateCompleted")) - parseElementProperties(getJObject(json, "_dateCompleted"), res.getDateCompletedElement()); - if (json.has("dateRevised")) - res.setDateRevisedElement(parseDate(json.get("dateRevised").getAsString())); - if (json.has("_dateRevised")) - parseElementProperties(getJObject(json, "_dateRevised"), res.getDateRevisedElement()); - if (json.has("pubMedPubDate")) { - JsonArray array = json.getAsJsonArray("pubMedPubDate"); - for (int i = 0; i < array.size(); i++) { - res.getPubMedPubDate().add(parseCitationMedlinePubMedPubMedPubDateComponent(array.get(i).getAsJsonObject())); - } - }; - if (json.has("publicationState")) - res.setPublicationState(parseCodeableConcept(getJObject(json, "publicationState"))); - if (json.has("relatedArticle")) { - JsonArray array = json.getAsJsonArray("relatedArticle"); - for (int i = 0; i < array.size(); i++) { - res.getRelatedArticle().add(parseCitationMedlinePubMedRelatedArticleComponent(array.get(i).getAsJsonObject())); - } - }; - } - - protected Citation.CitationMedlinePubMedPubMedPubDateComponent parseCitationMedlinePubMedPubMedPubDateComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationMedlinePubMedPubMedPubDateComponent res = new Citation.CitationMedlinePubMedPubMedPubDateComponent(); - parseCitationMedlinePubMedPubMedPubDateComponentProperties(json, res); - return res; - } - - protected void parseCitationMedlinePubMedPubMedPubDateComponentProperties(JsonObject json, Citation.CitationMedlinePubMedPubMedPubDateComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("publicationState")) - res.setPublicationState(parseCodeableConcept(getJObject(json, "publicationState"))); - if (json.has("date")) - res.setDateElement(parseDateTime(json.get("date").getAsString())); - if (json.has("_date")) - parseElementProperties(getJObject(json, "_date"), res.getDateElement()); - } - - protected Citation.CitationMedlinePubMedRelatedArticleComponent parseCitationMedlinePubMedRelatedArticleComponent(JsonObject json) throws IOException, FHIRFormatError { - Citation.CitationMedlinePubMedRelatedArticleComponent res = new Citation.CitationMedlinePubMedRelatedArticleComponent(); - parseCitationMedlinePubMedRelatedArticleComponentProperties(json, res); - return res; - } - - protected void parseCitationMedlinePubMedRelatedArticleComponentProperties(JsonObject json, Citation.CitationMedlinePubMedRelatedArticleComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("citationReference")) - res.setCitationReference(parseReference(getJObject(json, "citationReference"))); - if (json.has("citationMarkdown")) - res.setCitationMarkdownElement(parseMarkdown(json.get("citationMarkdown").getAsString())); - if (json.has("_citationMarkdown")) - parseElementProperties(getJObject(json, "_citationMarkdown"), res.getCitationMarkdownElement()); - if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); - for (int i = 0; i < array.size(); i++) { - res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); - } - }; - } - protected Claim parseClaim(JsonObject json) throws IOException, FHIRFormatError { Claim res = new Claim(); parseClaimProperties(json, res); @@ -6573,7 +6638,7 @@ public class JsonParser extends JsonParserBase { protected void parseClaimProperties(JsonObject json, Claim res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -6609,7 +6674,7 @@ public class JsonParser extends JsonParserBase { if (json.has("fundsReserve")) res.setFundsReserve(parseCodeableConcept(getJObject(json, "fundsReserve"))); if (json.has("related")) { - JsonArray array = json.getAsJsonArray("related"); + JsonArray array = getJArray(json, "related"); for (int i = 0; i < array.size(); i++) { res.getRelated().add(parseClaimRelatedClaimComponent(array.get(i).getAsJsonObject())); } @@ -6625,31 +6690,31 @@ public class JsonParser extends JsonParserBase { if (json.has("facility")) res.setFacility(parseReference(getJObject(json, "facility"))); if (json.has("careTeam")) { - JsonArray array = json.getAsJsonArray("careTeam"); + JsonArray array = getJArray(json, "careTeam"); for (int i = 0; i < array.size(); i++) { res.getCareTeam().add(parseClaimCareTeamComponent(array.get(i).getAsJsonObject())); } }; if (json.has("supportingInfo")) { - JsonArray array = json.getAsJsonArray("supportingInfo"); + JsonArray array = getJArray(json, "supportingInfo"); for (int i = 0; i < array.size(); i++) { res.getSupportingInfo().add(parseClaimSupportingInformationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("diagnosis")) { - JsonArray array = json.getAsJsonArray("diagnosis"); + JsonArray array = getJArray(json, "diagnosis"); for (int i = 0; i < array.size(); i++) { res.getDiagnosis().add(parseClaimDiagnosisComponent(array.get(i).getAsJsonObject())); } }; if (json.has("procedure")) { - JsonArray array = json.getAsJsonArray("procedure"); + JsonArray array = getJArray(json, "procedure"); for (int i = 0; i < array.size(); i++) { res.getProcedure().add(parseClaimProcedureComponent(array.get(i).getAsJsonObject())); } }; if (json.has("insurance")) { - JsonArray array = json.getAsJsonArray("insurance"); + JsonArray array = getJArray(json, "insurance"); for (int i = 0; i < array.size(); i++) { res.getInsurance().add(parseClaimInsuranceComponent(array.get(i).getAsJsonObject())); } @@ -6657,7 +6722,7 @@ public class JsonParser extends JsonParserBase { if (json.has("accident")) res.setAccident(parseClaimAccidentComponent(getJObject(json, "accident"))); if (json.has("item")) { - JsonArray array = json.getAsJsonArray("item"); + JsonArray array = getJArray(json, "item"); for (int i = 0; i < array.size(); i++) { res.getItem().add(parseClaimItemComponent(array.get(i).getAsJsonObject())); } @@ -6762,7 +6827,7 @@ public class JsonParser extends JsonParserBase { if (diagnosis != null) res.setDiagnosis(diagnosis); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -6786,7 +6851,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_sequence")) parseElementProperties(getJObject(json, "_sequence"), res.getSequenceElement()); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -6799,7 +6864,7 @@ public class JsonParser extends JsonParserBase { if (procedure != null) res.setProcedure(procedure); if (json.has("udi")) { - JsonArray array = json.getAsJsonArray("udi"); + JsonArray array = getJArray(json, "udi"); for (int i = 0; i < array.size(); i++) { res.getUdi().add(parseReference(array.get(i).getAsJsonObject())); } @@ -6831,7 +6896,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_businessArrangement")) parseElementProperties(getJObject(json, "_businessArrangement"), res.getBusinessArrangementElement()); if (json.has("preAuthRef")) { - JsonArray array = json.getAsJsonArray("preAuthRef"); + JsonArray array = getJArray(json, "preAuthRef"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPreAuthRef().add(new StringType()); @@ -6841,7 +6906,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_preAuthRef")) { - JsonArray array = json.getAsJsonArray("_preAuthRef"); + JsonArray array = getJArray(json, "_preAuthRef"); for (int i = 0; i < array.size(); i++) { if (i == res.getPreAuthRef().size()) res.getPreAuthRef().add(parseString(null)); @@ -6885,7 +6950,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_sequence")) parseElementProperties(getJObject(json, "_sequence"), res.getSequenceElement()); if (json.has("careTeamSequence")) { - JsonArray array = json.getAsJsonArray("careTeamSequence"); + JsonArray array = getJArray(json, "careTeamSequence"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getCareTeamSequence().add(new PositiveIntType()); @@ -6895,7 +6960,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_careTeamSequence")) { - JsonArray array = json.getAsJsonArray("_careTeamSequence"); + JsonArray array = getJArray(json, "_careTeamSequence"); for (int i = 0; i < array.size(); i++) { if (i == res.getCareTeamSequence().size()) res.getCareTeamSequence().add(parsePositiveInt(null)); @@ -6904,7 +6969,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("diagnosisSequence")) { - JsonArray array = json.getAsJsonArray("diagnosisSequence"); + JsonArray array = getJArray(json, "diagnosisSequence"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDiagnosisSequence().add(new PositiveIntType()); @@ -6914,7 +6979,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_diagnosisSequence")) { - JsonArray array = json.getAsJsonArray("_diagnosisSequence"); + JsonArray array = getJArray(json, "_diagnosisSequence"); for (int i = 0; i < array.size(); i++) { if (i == res.getDiagnosisSequence().size()) res.getDiagnosisSequence().add(parsePositiveInt(null)); @@ -6923,7 +6988,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("procedureSequence")) { - JsonArray array = json.getAsJsonArray("procedureSequence"); + JsonArray array = getJArray(json, "procedureSequence"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getProcedureSequence().add(new PositiveIntType()); @@ -6933,7 +6998,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_procedureSequence")) { - JsonArray array = json.getAsJsonArray("_procedureSequence"); + JsonArray array = getJArray(json, "_procedureSequence"); for (int i = 0; i < array.size(); i++) { if (i == res.getProcedureSequence().size()) res.getProcedureSequence().add(parsePositiveInt(null)); @@ -6942,7 +7007,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("informationSequence")) { - JsonArray array = json.getAsJsonArray("informationSequence"); + JsonArray array = getJArray(json, "informationSequence"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInformationSequence().add(new PositiveIntType()); @@ -6952,7 +7017,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_informationSequence")) { - JsonArray array = json.getAsJsonArray("_informationSequence"); + JsonArray array = getJArray(json, "_informationSequence"); for (int i = 0; i < array.size(); i++) { if (i == res.getInformationSequence().size()) res.getInformationSequence().add(parsePositiveInt(null)); @@ -6967,13 +7032,13 @@ public class JsonParser extends JsonParserBase { if (json.has("productOrService")) res.setProductOrService(parseCodeableConcept(getJObject(json, "productOrService"))); if (json.has("modifier")) { - JsonArray array = json.getAsJsonArray("modifier"); + JsonArray array = getJArray(json, "modifier"); for (int i = 0; i < array.size(); i++) { res.getModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("programCode")) { - JsonArray array = json.getAsJsonArray("programCode"); + JsonArray array = getJArray(json, "programCode"); for (int i = 0; i < array.size(); i++) { res.getProgramCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -6995,7 +7060,7 @@ public class JsonParser extends JsonParserBase { if (json.has("net")) res.setNet(parseMoney(getJObject(json, "net"))); if (json.has("udi")) { - JsonArray array = json.getAsJsonArray("udi"); + JsonArray array = getJArray(json, "udi"); for (int i = 0; i < array.size(); i++) { res.getUdi().add(parseReference(array.get(i).getAsJsonObject())); } @@ -7003,19 +7068,19 @@ public class JsonParser extends JsonParserBase { if (json.has("bodySite")) res.setBodySite(parseCodeableConcept(getJObject(json, "bodySite"))); if (json.has("subSite")) { - JsonArray array = json.getAsJsonArray("subSite"); + JsonArray array = getJArray(json, "subSite"); for (int i = 0; i < array.size(); i++) { res.getSubSite().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("encounter")) { - JsonArray array = json.getAsJsonArray("encounter"); + JsonArray array = getJArray(json, "encounter"); for (int i = 0; i < array.size(); i++) { res.getEncounter().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("detail")) { - JsonArray array = json.getAsJsonArray("detail"); + JsonArray array = getJArray(json, "detail"); for (int i = 0; i < array.size(); i++) { res.getDetail().add(parseClaimDetailComponent(array.get(i).getAsJsonObject())); } @@ -7041,13 +7106,13 @@ public class JsonParser extends JsonParserBase { if (json.has("productOrService")) res.setProductOrService(parseCodeableConcept(getJObject(json, "productOrService"))); if (json.has("modifier")) { - JsonArray array = json.getAsJsonArray("modifier"); + JsonArray array = getJArray(json, "modifier"); for (int i = 0; i < array.size(); i++) { res.getModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("programCode")) { - JsonArray array = json.getAsJsonArray("programCode"); + JsonArray array = getJArray(json, "programCode"); for (int i = 0; i < array.size(); i++) { res.getProgramCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -7063,13 +7128,13 @@ public class JsonParser extends JsonParserBase { if (json.has("net")) res.setNet(parseMoney(getJObject(json, "net"))); if (json.has("udi")) { - JsonArray array = json.getAsJsonArray("udi"); + JsonArray array = getJArray(json, "udi"); for (int i = 0; i < array.size(); i++) { res.getUdi().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("subDetail")) { - JsonArray array = json.getAsJsonArray("subDetail"); + JsonArray array = getJArray(json, "subDetail"); for (int i = 0; i < array.size(); i++) { res.getSubDetail().add(parseClaimSubDetailComponent(array.get(i).getAsJsonObject())); } @@ -7095,13 +7160,13 @@ public class JsonParser extends JsonParserBase { if (json.has("productOrService")) res.setProductOrService(parseCodeableConcept(getJObject(json, "productOrService"))); if (json.has("modifier")) { - JsonArray array = json.getAsJsonArray("modifier"); + JsonArray array = getJArray(json, "modifier"); for (int i = 0; i < array.size(); i++) { res.getModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("programCode")) { - JsonArray array = json.getAsJsonArray("programCode"); + JsonArray array = getJArray(json, "programCode"); for (int i = 0; i < array.size(); i++) { res.getProgramCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -7117,7 +7182,7 @@ public class JsonParser extends JsonParserBase { if (json.has("net")) res.setNet(parseMoney(getJObject(json, "net"))); if (json.has("udi")) { - JsonArray array = json.getAsJsonArray("udi"); + JsonArray array = getJArray(json, "udi"); for (int i = 0; i < array.size(); i++) { res.getUdi().add(parseReference(array.get(i).getAsJsonObject())); } @@ -7133,7 +7198,7 @@ public class JsonParser extends JsonParserBase { protected void parseClaimResponseProperties(JsonObject json, ClaimResponse res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -7179,25 +7244,25 @@ public class JsonParser extends JsonParserBase { if (json.has("payeeType")) res.setPayeeType(parseCodeableConcept(getJObject(json, "payeeType"))); if (json.has("item")) { - JsonArray array = json.getAsJsonArray("item"); + JsonArray array = getJArray(json, "item"); for (int i = 0; i < array.size(); i++) { res.getItem().add(parseClaimResponseItemComponent(array.get(i).getAsJsonObject())); } }; if (json.has("addItem")) { - JsonArray array = json.getAsJsonArray("addItem"); + JsonArray array = getJArray(json, "addItem"); for (int i = 0; i < array.size(); i++) { res.getAddItem().add(parseClaimResponseAddedItemComponent(array.get(i).getAsJsonObject())); } }; if (json.has("adjudication")) { - JsonArray array = json.getAsJsonArray("adjudication"); + JsonArray array = getJArray(json, "adjudication"); for (int i = 0; i < array.size(); i++) { res.getAdjudication().add(parseClaimResponseAdjudicationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("total")) { - JsonArray array = json.getAsJsonArray("total"); + JsonArray array = getJArray(json, "total"); for (int i = 0; i < array.size(); i++) { res.getTotal().add(parseClaimResponseTotalComponent(array.get(i).getAsJsonObject())); } @@ -7211,25 +7276,25 @@ public class JsonParser extends JsonParserBase { if (json.has("form")) res.setForm(parseAttachment(getJObject(json, "form"))); if (json.has("processNote")) { - JsonArray array = json.getAsJsonArray("processNote"); + JsonArray array = getJArray(json, "processNote"); for (int i = 0; i < array.size(); i++) { res.getProcessNote().add(parseClaimResponseNoteComponent(array.get(i).getAsJsonObject())); } }; if (json.has("communicationRequest")) { - JsonArray array = json.getAsJsonArray("communicationRequest"); + JsonArray array = getJArray(json, "communicationRequest"); for (int i = 0; i < array.size(); i++) { res.getCommunicationRequest().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("insurance")) { - JsonArray array = json.getAsJsonArray("insurance"); + JsonArray array = getJArray(json, "insurance"); for (int i = 0; i < array.size(); i++) { res.getInsurance().add(parseClaimResponseInsuranceComponent(array.get(i).getAsJsonObject())); } }; if (json.has("error")) { - JsonArray array = json.getAsJsonArray("error"); + JsonArray array = getJArray(json, "error"); for (int i = 0; i < array.size(); i++) { res.getError().add(parseClaimResponseErrorComponent(array.get(i).getAsJsonObject())); } @@ -7249,7 +7314,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_itemSequence")) parseElementProperties(getJObject(json, "_itemSequence"), res.getItemSequenceElement()); if (json.has("noteNumber")) { - JsonArray array = json.getAsJsonArray("noteNumber"); + JsonArray array = getJArray(json, "noteNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNoteNumber().add(new PositiveIntType()); @@ -7259,7 +7324,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_noteNumber")) { - JsonArray array = json.getAsJsonArray("_noteNumber"); + JsonArray array = getJArray(json, "_noteNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getNoteNumber().size()) res.getNoteNumber().add(parsePositiveInt(null)); @@ -7268,13 +7333,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("adjudication")) { - JsonArray array = json.getAsJsonArray("adjudication"); + JsonArray array = getJArray(json, "adjudication"); for (int i = 0; i < array.size(); i++) { res.getAdjudication().add(parseClaimResponseAdjudicationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("detail")) { - JsonArray array = json.getAsJsonArray("detail"); + JsonArray array = getJArray(json, "detail"); for (int i = 0; i < array.size(); i++) { res.getDetail().add(parseClaimResponseItemDetailComponent(array.get(i).getAsJsonObject())); } @@ -7314,7 +7379,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_detailSequence")) parseElementProperties(getJObject(json, "_detailSequence"), res.getDetailSequenceElement()); if (json.has("noteNumber")) { - JsonArray array = json.getAsJsonArray("noteNumber"); + JsonArray array = getJArray(json, "noteNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNoteNumber().add(new PositiveIntType()); @@ -7324,7 +7389,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_noteNumber")) { - JsonArray array = json.getAsJsonArray("_noteNumber"); + JsonArray array = getJArray(json, "_noteNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getNoteNumber().size()) res.getNoteNumber().add(parsePositiveInt(null)); @@ -7333,13 +7398,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("adjudication")) { - JsonArray array = json.getAsJsonArray("adjudication"); + JsonArray array = getJArray(json, "adjudication"); for (int i = 0; i < array.size(); i++) { res.getAdjudication().add(parseClaimResponseAdjudicationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("subDetail")) { - JsonArray array = json.getAsJsonArray("subDetail"); + JsonArray array = getJArray(json, "subDetail"); for (int i = 0; i < array.size(); i++) { res.getSubDetail().add(parseClaimResponseSubDetailComponent(array.get(i).getAsJsonObject())); } @@ -7359,7 +7424,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_subDetailSequence")) parseElementProperties(getJObject(json, "_subDetailSequence"), res.getSubDetailSequenceElement()); if (json.has("noteNumber")) { - JsonArray array = json.getAsJsonArray("noteNumber"); + JsonArray array = getJArray(json, "noteNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNoteNumber().add(new PositiveIntType()); @@ -7369,7 +7434,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_noteNumber")) { - JsonArray array = json.getAsJsonArray("_noteNumber"); + JsonArray array = getJArray(json, "_noteNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getNoteNumber().size()) res.getNoteNumber().add(parsePositiveInt(null)); @@ -7378,7 +7443,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("adjudication")) { - JsonArray array = json.getAsJsonArray("adjudication"); + JsonArray array = getJArray(json, "adjudication"); for (int i = 0; i < array.size(); i++) { res.getAdjudication().add(parseClaimResponseAdjudicationComponent(array.get(i).getAsJsonObject())); } @@ -7394,7 +7459,7 @@ public class JsonParser extends JsonParserBase { protected void parseClaimResponseAddedItemComponentProperties(JsonObject json, ClaimResponse.AddedItemComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("itemSequence")) { - JsonArray array = json.getAsJsonArray("itemSequence"); + JsonArray array = getJArray(json, "itemSequence"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getItemSequence().add(new PositiveIntType()); @@ -7404,7 +7469,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_itemSequence")) { - JsonArray array = json.getAsJsonArray("_itemSequence"); + JsonArray array = getJArray(json, "_itemSequence"); for (int i = 0; i < array.size(); i++) { if (i == res.getItemSequence().size()) res.getItemSequence().add(parsePositiveInt(null)); @@ -7413,7 +7478,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("detailSequence")) { - JsonArray array = json.getAsJsonArray("detailSequence"); + JsonArray array = getJArray(json, "detailSequence"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDetailSequence().add(new PositiveIntType()); @@ -7423,7 +7488,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_detailSequence")) { - JsonArray array = json.getAsJsonArray("_detailSequence"); + JsonArray array = getJArray(json, "_detailSequence"); for (int i = 0; i < array.size(); i++) { if (i == res.getDetailSequence().size()) res.getDetailSequence().add(parsePositiveInt(null)); @@ -7432,7 +7497,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("subdetailSequence")) { - JsonArray array = json.getAsJsonArray("subdetailSequence"); + JsonArray array = getJArray(json, "subdetailSequence"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSubdetailSequence().add(new PositiveIntType()); @@ -7442,7 +7507,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_subdetailSequence")) { - JsonArray array = json.getAsJsonArray("_subdetailSequence"); + JsonArray array = getJArray(json, "_subdetailSequence"); for (int i = 0; i < array.size(); i++) { if (i == res.getSubdetailSequence().size()) res.getSubdetailSequence().add(parsePositiveInt(null)); @@ -7451,7 +7516,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("provider")) { - JsonArray array = json.getAsJsonArray("provider"); + JsonArray array = getJArray(json, "provider"); for (int i = 0; i < array.size(); i++) { res.getProvider().add(parseReference(array.get(i).getAsJsonObject())); } @@ -7459,13 +7524,13 @@ public class JsonParser extends JsonParserBase { if (json.has("productOrService")) res.setProductOrService(parseCodeableConcept(getJObject(json, "productOrService"))); if (json.has("modifier")) { - JsonArray array = json.getAsJsonArray("modifier"); + JsonArray array = getJArray(json, "modifier"); for (int i = 0; i < array.size(); i++) { res.getModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("programCode")) { - JsonArray array = json.getAsJsonArray("programCode"); + JsonArray array = getJArray(json, "programCode"); for (int i = 0; i < array.size(); i++) { res.getProgramCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -7489,13 +7554,13 @@ public class JsonParser extends JsonParserBase { if (json.has("bodySite")) res.setBodySite(parseCodeableConcept(getJObject(json, "bodySite"))); if (json.has("subSite")) { - JsonArray array = json.getAsJsonArray("subSite"); + JsonArray array = getJArray(json, "subSite"); for (int i = 0; i < array.size(); i++) { res.getSubSite().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("noteNumber")) { - JsonArray array = json.getAsJsonArray("noteNumber"); + JsonArray array = getJArray(json, "noteNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNoteNumber().add(new PositiveIntType()); @@ -7505,7 +7570,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_noteNumber")) { - JsonArray array = json.getAsJsonArray("_noteNumber"); + JsonArray array = getJArray(json, "_noteNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getNoteNumber().size()) res.getNoteNumber().add(parsePositiveInt(null)); @@ -7514,13 +7579,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("adjudication")) { - JsonArray array = json.getAsJsonArray("adjudication"); + JsonArray array = getJArray(json, "adjudication"); for (int i = 0; i < array.size(); i++) { res.getAdjudication().add(parseClaimResponseAdjudicationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("detail")) { - JsonArray array = json.getAsJsonArray("detail"); + JsonArray array = getJArray(json, "detail"); for (int i = 0; i < array.size(); i++) { res.getDetail().add(parseClaimResponseAddedItemDetailComponent(array.get(i).getAsJsonObject())); } @@ -7538,7 +7603,7 @@ public class JsonParser extends JsonParserBase { if (json.has("productOrService")) res.setProductOrService(parseCodeableConcept(getJObject(json, "productOrService"))); if (json.has("modifier")) { - JsonArray array = json.getAsJsonArray("modifier"); + JsonArray array = getJArray(json, "modifier"); for (int i = 0; i < array.size(); i++) { res.getModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -7554,7 +7619,7 @@ public class JsonParser extends JsonParserBase { if (json.has("net")) res.setNet(parseMoney(getJObject(json, "net"))); if (json.has("noteNumber")) { - JsonArray array = json.getAsJsonArray("noteNumber"); + JsonArray array = getJArray(json, "noteNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNoteNumber().add(new PositiveIntType()); @@ -7564,7 +7629,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_noteNumber")) { - JsonArray array = json.getAsJsonArray("_noteNumber"); + JsonArray array = getJArray(json, "_noteNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getNoteNumber().size()) res.getNoteNumber().add(parsePositiveInt(null)); @@ -7573,13 +7638,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("adjudication")) { - JsonArray array = json.getAsJsonArray("adjudication"); + JsonArray array = getJArray(json, "adjudication"); for (int i = 0; i < array.size(); i++) { res.getAdjudication().add(parseClaimResponseAdjudicationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("subDetail")) { - JsonArray array = json.getAsJsonArray("subDetail"); + JsonArray array = getJArray(json, "subDetail"); for (int i = 0; i < array.size(); i++) { res.getSubDetail().add(parseClaimResponseAddedItemSubDetailComponent(array.get(i).getAsJsonObject())); } @@ -7597,7 +7662,7 @@ public class JsonParser extends JsonParserBase { if (json.has("productOrService")) res.setProductOrService(parseCodeableConcept(getJObject(json, "productOrService"))); if (json.has("modifier")) { - JsonArray array = json.getAsJsonArray("modifier"); + JsonArray array = getJArray(json, "modifier"); for (int i = 0; i < array.size(); i++) { res.getModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -7613,7 +7678,7 @@ public class JsonParser extends JsonParserBase { if (json.has("net")) res.setNet(parseMoney(getJObject(json, "net"))); if (json.has("noteNumber")) { - JsonArray array = json.getAsJsonArray("noteNumber"); + JsonArray array = getJArray(json, "noteNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNoteNumber().add(new PositiveIntType()); @@ -7623,7 +7688,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_noteNumber")) { - JsonArray array = json.getAsJsonArray("_noteNumber"); + JsonArray array = getJArray(json, "_noteNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getNoteNumber().size()) res.getNoteNumber().add(parsePositiveInt(null)); @@ -7632,7 +7697,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("adjudication")) { - JsonArray array = json.getAsJsonArray("adjudication"); + JsonArray array = getJArray(json, "adjudication"); for (int i = 0; i < array.size(); i++) { res.getAdjudication().add(parseClaimResponseAdjudicationComponent(array.get(i).getAsJsonObject())); } @@ -7760,7 +7825,7 @@ public class JsonParser extends JsonParserBase { protected void parseClinicalImpressionProperties(JsonObject json, ClinicalImpression res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -7791,13 +7856,13 @@ public class JsonParser extends JsonParserBase { if (json.has("previous")) res.setPrevious(parseReference(getJObject(json, "previous"))); if (json.has("problem")) { - JsonArray array = json.getAsJsonArray("problem"); + JsonArray array = getJArray(json, "problem"); for (int i = 0; i < array.size(); i++) { res.getProblem().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("protocol")) { - JsonArray array = json.getAsJsonArray("protocol"); + JsonArray array = getJArray(json, "protocol"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getProtocol().add(new UriType()); @@ -7807,7 +7872,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_protocol")) { - JsonArray array = json.getAsJsonArray("_protocol"); + JsonArray array = getJArray(json, "_protocol"); for (int i = 0; i < array.size(); i++) { if (i == res.getProtocol().size()) res.getProtocol().add(parseUri(null)); @@ -7820,31 +7885,31 @@ public class JsonParser extends JsonParserBase { if (json.has("_summary")) parseElementProperties(getJObject(json, "_summary"), res.getSummaryElement()); if (json.has("finding")) { - JsonArray array = json.getAsJsonArray("finding"); + JsonArray array = getJArray(json, "finding"); for (int i = 0; i < array.size(); i++) { res.getFinding().add(parseClinicalImpressionFindingComponent(array.get(i).getAsJsonObject())); } }; if (json.has("prognosisCodeableConcept")) { - JsonArray array = json.getAsJsonArray("prognosisCodeableConcept"); + JsonArray array = getJArray(json, "prognosisCodeableConcept"); for (int i = 0; i < array.size(); i++) { res.getPrognosisCodeableConcept().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("prognosisReference")) { - JsonArray array = json.getAsJsonArray("prognosisReference"); + JsonArray array = getJArray(json, "prognosisReference"); for (int i = 0; i < array.size(); i++) { res.getPrognosisReference().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("supportingInfo")) { - JsonArray array = json.getAsJsonArray("supportingInfo"); + JsonArray array = getJArray(json, "supportingInfo"); for (int i = 0; i < array.size(); i++) { res.getSupportingInfo().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -7876,7 +7941,7 @@ public class JsonParser extends JsonParserBase { protected void parseClinicalUseIssueProperties(JsonObject json, ClinicalUseIssue res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -7888,7 +7953,7 @@ public class JsonParser extends JsonParserBase { if (json.has("category")) res.setCategory(parseCodeableConcept(getJObject(json, "category"))); if (json.has("subject")) { - JsonArray array = json.getAsJsonArray("subject"); + JsonArray array = getJArray(json, "subject"); for (int i = 0; i < array.size(); i++) { res.getSubject().add(parseReference(array.get(i).getAsJsonObject())); } @@ -7906,7 +7971,7 @@ public class JsonParser extends JsonParserBase { if (json.has("interaction")) res.setInteraction(parseClinicalUseIssueInteractionComponent(getJObject(json, "interaction"))); if (json.has("population")) { - JsonArray array = json.getAsJsonArray("population"); + JsonArray array = getJArray(json, "population"); for (int i = 0; i < array.size(); i++) { res.getPopulation().add(parsePopulation(array.get(i).getAsJsonObject())); } @@ -7924,23 +7989,23 @@ public class JsonParser extends JsonParserBase { protected void parseClinicalUseIssueContraindicationComponentProperties(JsonObject json, ClinicalUseIssue.ClinicalUseIssueContraindicationComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("diseaseSymptomProcedure")) - res.setDiseaseSymptomProcedure(parseCodeableConcept(getJObject(json, "diseaseSymptomProcedure"))); + res.setDiseaseSymptomProcedure(parseCodeableReference(getJObject(json, "diseaseSymptomProcedure"))); if (json.has("diseaseStatus")) - res.setDiseaseStatus(parseCodeableConcept(getJObject(json, "diseaseStatus"))); + res.setDiseaseStatus(parseCodeableReference(getJObject(json, "diseaseStatus"))); if (json.has("comorbidity")) { - JsonArray array = json.getAsJsonArray("comorbidity"); + JsonArray array = getJArray(json, "comorbidity"); for (int i = 0; i < array.size(); i++) { - res.getComorbidity().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + res.getComorbidity().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("indication")) { - JsonArray array = json.getAsJsonArray("indication"); + JsonArray array = getJArray(json, "indication"); for (int i = 0; i < array.size(); i++) { res.getIndication().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("otherTherapy")) { - JsonArray array = json.getAsJsonArray("otherTherapy"); + JsonArray array = getJArray(json, "otherTherapy"); for (int i = 0; i < array.size(); i++) { res.getOtherTherapy().add(parseClinicalUseIssueContraindicationOtherTherapyComponent(array.get(i).getAsJsonObject())); } @@ -7955,11 +8020,10 @@ public class JsonParser extends JsonParserBase { protected void parseClinicalUseIssueContraindicationOtherTherapyComponentProperties(JsonObject json, ClinicalUseIssue.ClinicalUseIssueContraindicationOtherTherapyComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); - if (json.has("therapyRelationshipType")) - res.setTherapyRelationshipType(parseCodeableConcept(getJObject(json, "therapyRelationshipType"))); - DataType medication = parseType("medication", json); - if (medication != null) - res.setMedication(medication); + if (json.has("relationshipType")) + res.setRelationshipType(parseCodeableConcept(getJObject(json, "relationshipType"))); + if (json.has("therapy")) + res.setTherapy(parseCodeableReference(getJObject(json, "therapy"))); } protected ClinicalUseIssue.ClinicalUseIssueIndicationComponent parseClinicalUseIssueIndicationComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -7971,27 +8035,27 @@ public class JsonParser extends JsonParserBase { protected void parseClinicalUseIssueIndicationComponentProperties(JsonObject json, ClinicalUseIssue.ClinicalUseIssueIndicationComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("diseaseSymptomProcedure")) - res.setDiseaseSymptomProcedure(parseCodeableConcept(getJObject(json, "diseaseSymptomProcedure"))); + res.setDiseaseSymptomProcedure(parseCodeableReference(getJObject(json, "diseaseSymptomProcedure"))); if (json.has("diseaseStatus")) - res.setDiseaseStatus(parseCodeableConcept(getJObject(json, "diseaseStatus"))); + res.setDiseaseStatus(parseCodeableReference(getJObject(json, "diseaseStatus"))); if (json.has("comorbidity")) { - JsonArray array = json.getAsJsonArray("comorbidity"); + JsonArray array = getJArray(json, "comorbidity"); for (int i = 0; i < array.size(); i++) { - res.getComorbidity().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + res.getComorbidity().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("intendedEffect")) - res.setIntendedEffect(parseCodeableConcept(getJObject(json, "intendedEffect"))); + res.setIntendedEffect(parseCodeableReference(getJObject(json, "intendedEffect"))); if (json.has("duration")) res.setDuration(parseQuantity(getJObject(json, "duration"))); if (json.has("undesirableEffect")) { - JsonArray array = json.getAsJsonArray("undesirableEffect"); + JsonArray array = getJArray(json, "undesirableEffect"); for (int i = 0; i < array.size(); i++) { res.getUndesirableEffect().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("otherTherapy")) { - JsonArray array = json.getAsJsonArray("otherTherapy"); + JsonArray array = getJArray(json, "otherTherapy"); for (int i = 0; i < array.size(); i++) { res.getOtherTherapy().add(parseClinicalUseIssueContraindicationOtherTherapyComponent(array.get(i).getAsJsonObject())); } @@ -8007,7 +8071,7 @@ public class JsonParser extends JsonParserBase { protected void parseClinicalUseIssueInteractionComponentProperties(JsonObject json, ClinicalUseIssue.ClinicalUseIssueInteractionComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("interactant")) { - JsonArray array = json.getAsJsonArray("interactant"); + JsonArray array = getJArray(json, "interactant"); for (int i = 0; i < array.size(); i++) { res.getInteractant().add(parseClinicalUseIssueInteractionInteractantComponent(array.get(i).getAsJsonObject())); } @@ -8015,7 +8079,7 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("effect")) - res.setEffect(parseCodeableConcept(getJObject(json, "effect"))); + res.setEffect(parseCodeableReference(getJObject(json, "effect"))); if (json.has("incidence")) res.setIncidence(parseCodeableConcept(getJObject(json, "incidence"))); if (json.has("management")) @@ -8044,7 +8108,7 @@ public class JsonParser extends JsonParserBase { protected void parseClinicalUseIssueUndesirableEffectComponentProperties(JsonObject json, ClinicalUseIssue.ClinicalUseIssueUndesirableEffectComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("symptomConditionEffect")) - res.setSymptomConditionEffect(parseCodeableConcept(getJObject(json, "symptomConditionEffect"))); + res.setSymptomConditionEffect(parseCodeableReference(getJObject(json, "symptomConditionEffect"))); if (json.has("classification")) res.setClassification(parseCodeableConcept(getJObject(json, "classification"))); if (json.has("frequencyOfOccurrence")) @@ -8064,7 +8128,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -8098,7 +8162,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -8108,13 +8172,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -8160,19 +8224,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_count")) parseElementProperties(getJObject(json, "_count"), res.getCountElement()); if (json.has("filter")) { - JsonArray array = json.getAsJsonArray("filter"); + JsonArray array = getJArray(json, "filter"); for (int i = 0; i < array.size(); i++) { res.getFilter().add(parseCodeSystemFilterComponent(array.get(i).getAsJsonObject())); } }; if (json.has("property")) { - JsonArray array = json.getAsJsonArray("property"); + JsonArray array = getJArray(json, "property"); for (int i = 0; i < array.size(); i++) { res.getProperty().add(parseCodeSystemPropertyComponent(array.get(i).getAsJsonObject())); } }; if (json.has("concept")) { - JsonArray array = json.getAsJsonArray("concept"); + JsonArray array = getJArray(json, "concept"); for (int i = 0; i < array.size(); i++) { res.getConcept().add(parseCodeSystemConceptDefinitionComponent(array.get(i).getAsJsonObject())); } @@ -8196,7 +8260,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("operator")) { - JsonArray array = json.getAsJsonArray("operator"); + JsonArray array = getJArray(json, "operator"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getOperator().add(new Enumeration(new Enumerations.FilterOperatorEnumFactory(), Enumerations.FilterOperator.NULL)); @@ -8206,7 +8270,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_operator")) { - JsonArray array = json.getAsJsonArray("_operator"); + JsonArray array = getJArray(json, "_operator"); for (int i = 0; i < array.size(); i++) { if (i == res.getOperator().size()) res.getOperator().add(parseEnumeration(null, Enumerations.FilterOperator.NULL, new Enumerations.FilterOperatorEnumFactory())); @@ -8267,19 +8331,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_definition")) parseElementProperties(getJObject(json, "_definition"), res.getDefinitionElement()); if (json.has("designation")) { - JsonArray array = json.getAsJsonArray("designation"); + JsonArray array = getJArray(json, "designation"); for (int i = 0; i < array.size(); i++) { res.getDesignation().add(parseCodeSystemConceptDefinitionDesignationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("property")) { - JsonArray array = json.getAsJsonArray("property"); + JsonArray array = getJArray(json, "property"); for (int i = 0; i < array.size(); i++) { res.getProperty().add(parseCodeSystemConceptPropertyComponent(array.get(i).getAsJsonObject())); } }; if (json.has("concept")) { - JsonArray array = json.getAsJsonArray("concept"); + JsonArray array = getJArray(json, "concept"); for (int i = 0; i < array.size(); i++) { res.getConcept().add(parseCodeSystemConceptDefinitionComponent(array.get(i).getAsJsonObject())); } @@ -8332,13 +8396,13 @@ public class JsonParser extends JsonParserBase { protected void parseCommunicationProperties(JsonObject json, Communication res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("instantiatesCanonical"); + JsonArray array = getJArray(json, "instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesCanonical().add(new CanonicalType()); @@ -8348,7 +8412,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("_instantiatesCanonical"); + JsonArray array = getJArray(json, "_instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesCanonical().size()) res.getInstantiatesCanonical().add(parseCanonical(null)); @@ -8357,7 +8421,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("instantiatesUri")) { - JsonArray array = json.getAsJsonArray("instantiatesUri"); + JsonArray array = getJArray(json, "instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesUri().add(new UriType()); @@ -8367,7 +8431,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesUri")) { - JsonArray array = json.getAsJsonArray("_instantiatesUri"); + JsonArray array = getJArray(json, "_instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesUri().size()) res.getInstantiatesUri().add(parseUri(null)); @@ -8376,19 +8440,19 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("partOf")) { - JsonArray array = json.getAsJsonArray("partOf"); + JsonArray array = getJArray(json, "partOf"); for (int i = 0; i < array.size(); i++) { res.getPartOf().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("inResponseTo")) { - JsonArray array = json.getAsJsonArray("inResponseTo"); + JsonArray array = getJArray(json, "inResponseTo"); for (int i = 0; i < array.size(); i++) { res.getInResponseTo().add(parseReference(array.get(i).getAsJsonObject())); } @@ -8400,7 +8464,7 @@ public class JsonParser extends JsonParserBase { if (json.has("statusReason")) res.setStatusReason(parseCodeableConcept(getJObject(json, "statusReason"))); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -8410,7 +8474,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_priority")) parseElementProperties(getJObject(json, "_priority"), res.getPriorityElement()); if (json.has("medium")) { - JsonArray array = json.getAsJsonArray("medium"); + JsonArray array = getJArray(json, "medium"); for (int i = 0; i < array.size(); i++) { res.getMedium().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -8420,7 +8484,7 @@ public class JsonParser extends JsonParserBase { if (json.has("topic")) res.setTopic(parseCodeableConcept(getJObject(json, "topic"))); if (json.has("about")) { - JsonArray array = json.getAsJsonArray("about"); + JsonArray array = getJArray(json, "about"); for (int i = 0; i < array.size(); i++) { res.getAbout().add(parseReference(array.get(i).getAsJsonObject())); } @@ -8436,7 +8500,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_received")) parseElementProperties(getJObject(json, "_received"), res.getReceivedElement()); if (json.has("recipient")) { - JsonArray array = json.getAsJsonArray("recipient"); + JsonArray array = getJArray(json, "recipient"); for (int i = 0; i < array.size(); i++) { res.getRecipient().add(parseReference(array.get(i).getAsJsonObject())); } @@ -8444,19 +8508,19 @@ public class JsonParser extends JsonParserBase { if (json.has("sender")) res.setSender(parseReference(getJObject(json, "sender"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("payload")) { - JsonArray array = json.getAsJsonArray("payload"); + JsonArray array = getJArray(json, "payload"); for (int i = 0; i < array.size(); i++) { res.getPayload().add(parseCommunicationPayloadComponent(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -8485,19 +8549,19 @@ public class JsonParser extends JsonParserBase { protected void parseCommunicationRequestProperties(JsonObject json, CommunicationRequest res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("replaces")) { - JsonArray array = json.getAsJsonArray("replaces"); + JsonArray array = getJArray(json, "replaces"); for (int i = 0; i < array.size(); i++) { res.getReplaces().add(parseReference(array.get(i).getAsJsonObject())); } @@ -8510,8 +8574,12 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("statusReason")) res.setStatusReason(parseCodeableConcept(getJObject(json, "statusReason"))); + if (json.has("intent")) + res.setIntentElement(parseEnumeration(json.get("intent").getAsString(), Enumerations.RequestIntent.NULL, new Enumerations.RequestIntentEnumFactory())); + if (json.has("_intent")) + parseElementProperties(getJObject(json, "_intent"), res.getIntentElement()); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -8525,7 +8593,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_doNotPerform")) parseElementProperties(getJObject(json, "_doNotPerform"), res.getDoNotPerformElement()); if (json.has("medium")) { - JsonArray array = json.getAsJsonArray("medium"); + JsonArray array = getJArray(json, "medium"); for (int i = 0; i < array.size(); i++) { res.getMedium().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -8533,7 +8601,7 @@ public class JsonParser extends JsonParserBase { if (json.has("subject")) res.setSubject(parseReference(getJObject(json, "subject"))); if (json.has("about")) { - JsonArray array = json.getAsJsonArray("about"); + JsonArray array = getJArray(json, "about"); for (int i = 0; i < array.size(); i++) { res.getAbout().add(parseReference(array.get(i).getAsJsonObject())); } @@ -8541,7 +8609,7 @@ public class JsonParser extends JsonParserBase { if (json.has("encounter")) res.setEncounter(parseReference(getJObject(json, "encounter"))); if (json.has("payload")) { - JsonArray array = json.getAsJsonArray("payload"); + JsonArray array = getJArray(json, "payload"); for (int i = 0; i < array.size(); i++) { res.getPayload().add(parseCommunicationRequestPayloadComponent(array.get(i).getAsJsonObject())); } @@ -8556,25 +8624,25 @@ public class JsonParser extends JsonParserBase { if (json.has("requester")) res.setRequester(parseReference(getJObject(json, "requester"))); if (json.has("recipient")) { - JsonArray array = json.getAsJsonArray("recipient"); + JsonArray array = getJArray(json, "recipient"); for (int i = 0; i < array.size(); i++) { res.getRecipient().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("informationProvider")) { - JsonArray array = json.getAsJsonArray("informationProvider"); + JsonArray array = getJArray(json, "informationProvider"); for (int i = 0; i < array.size(); i++) { res.getInformationProvider().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -8631,7 +8699,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -8641,7 +8709,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } @@ -8659,7 +8727,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_search")) parseElementProperties(getJObject(json, "_search"), res.getSearchElement()); if (json.has("resource")) { - JsonArray array = json.getAsJsonArray("resource"); + JsonArray array = getJArray(json, "resource"); for (int i = 0; i < array.size(); i++) { res.getResource().add(parseCompartmentDefinitionResourceComponent(array.get(i).getAsJsonObject())); } @@ -8679,7 +8747,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_code")) parseElementProperties(getJObject(json, "_code"), res.getCodeElement()); if (json.has("param")) { - JsonArray array = json.getAsJsonArray("param"); + JsonArray array = getJArray(json, "param"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getParam().add(new StringType()); @@ -8689,7 +8757,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_param")) { - JsonArray array = json.getAsJsonArray("_param"); + JsonArray array = getJArray(json, "_param"); for (int i = 0; i < array.size(); i++) { if (i == res.getParam().size()) res.getParam().add(parseString(null)); @@ -8720,7 +8788,7 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -8734,7 +8802,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_date")) parseElementProperties(getJObject(json, "_date"), res.getDateElement()); if (json.has("author")) { - JsonArray array = json.getAsJsonArray("author"); + JsonArray array = getJArray(json, "author"); for (int i = 0; i < array.size(); i++) { res.getAuthor().add(parseReference(array.get(i).getAsJsonObject())); } @@ -8748,7 +8816,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_confidentiality")) parseElementProperties(getJObject(json, "_confidentiality"), res.getConfidentialityElement()); if (json.has("attester")) { - JsonArray array = json.getAsJsonArray("attester"); + JsonArray array = getJArray(json, "attester"); for (int i = 0; i < array.size(); i++) { res.getAttester().add(parseCompositionAttesterComponent(array.get(i).getAsJsonObject())); } @@ -8756,19 +8824,19 @@ public class JsonParser extends JsonParserBase { if (json.has("custodian")) res.setCustodian(parseReference(getJObject(json, "custodian"))); if (json.has("relatesTo")) { - JsonArray array = json.getAsJsonArray("relatesTo"); + JsonArray array = getJArray(json, "relatesTo"); for (int i = 0; i < array.size(); i++) { res.getRelatesTo().add(parseCompositionRelatesToComponent(array.get(i).getAsJsonObject())); } }; if (json.has("event")) { - JsonArray array = json.getAsJsonArray("event"); + JsonArray array = getJArray(json, "event"); for (int i = 0; i < array.size(); i++) { res.getEvent().add(parseCompositionEventComponent(array.get(i).getAsJsonObject())); } }; if (json.has("section")) { - JsonArray array = json.getAsJsonArray("section"); + JsonArray array = getJArray(json, "section"); for (int i = 0; i < array.size(); i++) { res.getSection().add(parseCompositionSectionComponent(array.get(i).getAsJsonObject())); } @@ -8821,7 +8889,7 @@ public class JsonParser extends JsonParserBase { protected void parseCompositionEventComponentProperties(JsonObject json, Composition.CompositionEventComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("code")) { - JsonArray array = json.getAsJsonArray("code"); + JsonArray array = getJArray(json, "code"); for (int i = 0; i < array.size(); i++) { res.getCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -8829,7 +8897,7 @@ public class JsonParser extends JsonParserBase { if (json.has("period")) res.setPeriod(parsePeriod(getJObject(json, "period"))); if (json.has("detail")) { - JsonArray array = json.getAsJsonArray("detail"); + JsonArray array = getJArray(json, "detail"); for (int i = 0; i < array.size(); i++) { res.getDetail().add(parseReference(array.get(i).getAsJsonObject())); } @@ -8851,7 +8919,7 @@ public class JsonParser extends JsonParserBase { if (json.has("code")) res.setCode(parseCodeableConcept(getJObject(json, "code"))); if (json.has("author")) { - JsonArray array = json.getAsJsonArray("author"); + JsonArray array = getJArray(json, "author"); for (int i = 0; i < array.size(); i++) { res.getAuthor().add(parseReference(array.get(i).getAsJsonObject())); } @@ -8867,7 +8935,7 @@ public class JsonParser extends JsonParserBase { if (json.has("orderedBy")) res.setOrderedBy(parseCodeableConcept(getJObject(json, "orderedBy"))); if (json.has("entry")) { - JsonArray array = json.getAsJsonArray("entry"); + JsonArray array = getJArray(json, "entry"); for (int i = 0; i < array.size(); i++) { res.getEntry().add(parseReference(array.get(i).getAsJsonObject())); } @@ -8875,7 +8943,7 @@ public class JsonParser extends JsonParserBase { if (json.has("emptyReason")) res.setEmptyReason(parseCodeableConcept(getJObject(json, "emptyReason"))); if (json.has("section")) { - JsonArray array = json.getAsJsonArray("section"); + JsonArray array = getJArray(json, "section"); for (int i = 0; i < array.size(); i++) { res.getSection().add(parseCompositionSectionComponent(array.get(i).getAsJsonObject())); } @@ -8894,8 +8962,12 @@ public class JsonParser extends JsonParserBase { res.setUrlElement(parseUri(json.get("url").getAsString())); if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); - if (json.has("identifier")) - res.addIdentifier(parseIdentifier(getJObject(json, "identifier"))); + if (json.has("identifier")) { + JsonArray array = getJArray(json, "identifier"); + for (int i = 0; i < array.size(); i++) { + res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); + } + }; if (json.has("version")) res.setVersionElement(parseString(json.get("version").getAsString())); if (json.has("_version")) @@ -8925,7 +8997,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -8935,13 +9007,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -8961,7 +9033,7 @@ public class JsonParser extends JsonParserBase { if (target != null) res.setTarget(target); if (json.has("group")) { - JsonArray array = json.getAsJsonArray("group"); + JsonArray array = getJArray(json, "group"); for (int i = 0; i < array.size(); i++) { res.getGroup().add(parseConceptMapGroupComponent(array.get(i).getAsJsonObject())); } @@ -8977,23 +9049,15 @@ public class JsonParser extends JsonParserBase { protected void parseConceptMapGroupComponentProperties(JsonObject json, ConceptMap.ConceptMapGroupComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("source")) - res.setSourceElement(parseUri(json.get("source").getAsString())); + res.setSourceElement(parseCanonical(json.get("source").getAsString())); if (json.has("_source")) parseElementProperties(getJObject(json, "_source"), res.getSourceElement()); - if (json.has("sourceVersion")) - res.setSourceVersionElement(parseString(json.get("sourceVersion").getAsString())); - if (json.has("_sourceVersion")) - parseElementProperties(getJObject(json, "_sourceVersion"), res.getSourceVersionElement()); if (json.has("target")) - res.setTargetElement(parseUri(json.get("target").getAsString())); + res.setTargetElement(parseCanonical(json.get("target").getAsString())); if (json.has("_target")) parseElementProperties(getJObject(json, "_target"), res.getTargetElement()); - if (json.has("targetVersion")) - res.setTargetVersionElement(parseString(json.get("targetVersion").getAsString())); - if (json.has("_targetVersion")) - parseElementProperties(getJObject(json, "_targetVersion"), res.getTargetVersionElement()); if (json.has("element")) { - JsonArray array = json.getAsJsonArray("element"); + JsonArray array = getJArray(json, "element"); for (int i = 0; i < array.size(); i++) { res.getElement().add(parseConceptMapSourceElementComponent(array.get(i).getAsJsonObject())); } @@ -9023,7 +9087,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_noMap")) parseElementProperties(getJObject(json, "_noMap"), res.getNoMapElement()); if (json.has("target")) { - JsonArray array = json.getAsJsonArray("target"); + JsonArray array = getJArray(json, "target"); for (int i = 0; i < array.size(); i++) { res.getTarget().add(parseConceptMapTargetElementComponent(array.get(i).getAsJsonObject())); } @@ -9055,13 +9119,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_comment")) parseElementProperties(getJObject(json, "_comment"), res.getCommentElement()); if (json.has("dependsOn")) { - JsonArray array = json.getAsJsonArray("dependsOn"); + JsonArray array = getJArray(json, "dependsOn"); for (int i = 0; i < array.size(); i++) { res.getDependsOn().add(parseConceptMapOtherElementComponent(array.get(i).getAsJsonObject())); } }; if (json.has("product")) { - JsonArray array = json.getAsJsonArray("product"); + JsonArray array = getJArray(json, "product"); for (int i = 0; i < array.size(); i++) { res.getProduct().add(parseConceptMapOtherElementComponent(array.get(i).getAsJsonObject())); } @@ -9129,7 +9193,7 @@ public class JsonParser extends JsonParserBase { protected void parseConditionProperties(JsonObject json, Condition res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -9139,7 +9203,7 @@ public class JsonParser extends JsonParserBase { if (json.has("verificationStatus")) res.setVerificationStatus(parseCodeableConcept(getJObject(json, "verificationStatus"))); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -9149,7 +9213,7 @@ public class JsonParser extends JsonParserBase { if (json.has("code")) res.setCode(parseCodeableConcept(getJObject(json, "code"))); if (json.has("bodySite")) { - JsonArray array = json.getAsJsonArray("bodySite"); + JsonArray array = getJArray(json, "bodySite"); for (int i = 0; i < array.size(); i++) { res.getBodySite().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -9173,19 +9237,19 @@ public class JsonParser extends JsonParserBase { if (json.has("asserter")) res.setAsserter(parseReference(getJObject(json, "asserter"))); if (json.has("stage")) { - JsonArray array = json.getAsJsonArray("stage"); + JsonArray array = getJArray(json, "stage"); for (int i = 0; i < array.size(); i++) { res.getStage().add(parseConditionStageComponent(array.get(i).getAsJsonObject())); } }; if (json.has("evidence")) { - JsonArray array = json.getAsJsonArray("evidence"); + JsonArray array = getJArray(json, "evidence"); for (int i = 0; i < array.size(); i++) { res.getEvidence().add(parseConditionEvidenceComponent(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -9203,7 +9267,7 @@ public class JsonParser extends JsonParserBase { if (json.has("summary")) res.setSummary(parseCodeableConcept(getJObject(json, "summary"))); if (json.has("assessment")) { - JsonArray array = json.getAsJsonArray("assessment"); + JsonArray array = getJArray(json, "assessment"); for (int i = 0; i < array.size(); i++) { res.getAssessment().add(parseReference(array.get(i).getAsJsonObject())); } @@ -9221,13 +9285,13 @@ public class JsonParser extends JsonParserBase { protected void parseConditionEvidenceComponentProperties(JsonObject json, Condition.ConditionEvidenceComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("code")) { - JsonArray array = json.getAsJsonArray("code"); + JsonArray array = getJArray(json, "code"); for (int i = 0; i < array.size(); i++) { res.getCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("detail")) { - JsonArray array = json.getAsJsonArray("detail"); + JsonArray array = getJArray(json, "detail"); for (int i = 0; i < array.size(); i++) { res.getDetail().add(parseReference(array.get(i).getAsJsonObject())); } @@ -9247,7 +9311,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -9285,7 +9349,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -9295,13 +9359,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -9327,7 +9391,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_hasStage")) parseElementProperties(getJObject(json, "_hasStage"), res.getHasStageElement()); if (json.has("definition")) { - JsonArray array = json.getAsJsonArray("definition"); + JsonArray array = getJArray(json, "definition"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDefinition().add(new UriType()); @@ -9337,7 +9401,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_definition")) { - JsonArray array = json.getAsJsonArray("_definition"); + JsonArray array = getJArray(json, "_definition"); for (int i = 0; i < array.size(); i++) { if (i == res.getDefinition().size()) res.getDefinition().add(parseUri(null)); @@ -9346,37 +9410,37 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("observation")) { - JsonArray array = json.getAsJsonArray("observation"); + JsonArray array = getJArray(json, "observation"); for (int i = 0; i < array.size(); i++) { res.getObservation().add(parseConditionDefinitionObservationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("medication")) { - JsonArray array = json.getAsJsonArray("medication"); + JsonArray array = getJArray(json, "medication"); for (int i = 0; i < array.size(); i++) { res.getMedication().add(parseConditionDefinitionMedicationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("precondition")) { - JsonArray array = json.getAsJsonArray("precondition"); + JsonArray array = getJArray(json, "precondition"); for (int i = 0; i < array.size(); i++) { res.getPrecondition().add(parseConditionDefinitionPreconditionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("team")) { - JsonArray array = json.getAsJsonArray("team"); + JsonArray array = getJArray(json, "team"); for (int i = 0; i < array.size(); i++) { res.getTeam().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("questionnaire")) { - JsonArray array = json.getAsJsonArray("questionnaire"); + JsonArray array = getJArray(json, "questionnaire"); for (int i = 0; i < array.size(); i++) { res.getQuestionnaire().add(parseConditionDefinitionQuestionnaireComponent(array.get(i).getAsJsonObject())); } }; if (json.has("plan")) { - JsonArray array = json.getAsJsonArray("plan"); + JsonArray array = getJArray(json, "plan"); for (int i = 0; i < array.size(); i++) { res.getPlan().add(parseConditionDefinitionPlanComponent(array.get(i).getAsJsonObject())); } @@ -9469,7 +9533,7 @@ public class JsonParser extends JsonParserBase { protected void parseConsentProperties(JsonObject json, Consent res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -9481,7 +9545,7 @@ public class JsonParser extends JsonParserBase { if (json.has("scope")) res.setScope(parseCodeableConcept(getJObject(json, "scope"))); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -9493,37 +9557,37 @@ public class JsonParser extends JsonParserBase { if (json.has("_dateTime")) parseElementProperties(getJObject(json, "_dateTime"), res.getDateTimeElement()); if (json.has("performer")) { - JsonArray array = json.getAsJsonArray("performer"); + JsonArray array = getJArray(json, "performer"); for (int i = 0; i < array.size(); i++) { res.getPerformer().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("manager")) { - JsonArray array = json.getAsJsonArray("manager"); + JsonArray array = getJArray(json, "manager"); for (int i = 0; i < array.size(); i++) { res.getManager().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("controller")) { - JsonArray array = json.getAsJsonArray("controller"); + JsonArray array = getJArray(json, "controller"); for (int i = 0; i < array.size(); i++) { res.getController().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("sourceAttachment")) { - JsonArray array = json.getAsJsonArray("sourceAttachment"); + JsonArray array = getJArray(json, "sourceAttachment"); for (int i = 0; i < array.size(); i++) { res.getSourceAttachment().add(parseAttachment(array.get(i).getAsJsonObject())); } }; if (json.has("sourceReference")) { - JsonArray array = json.getAsJsonArray("sourceReference"); + JsonArray array = getJArray(json, "sourceReference"); for (int i = 0; i < array.size(); i++) { res.getSourceReference().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("policy")) { - JsonArray array = json.getAsJsonArray("policy"); + JsonArray array = getJArray(json, "policy"); for (int i = 0; i < array.size(); i++) { res.getPolicy().add(parseConsentPolicyComponent(array.get(i).getAsJsonObject())); } @@ -9531,7 +9595,7 @@ public class JsonParser extends JsonParserBase { if (json.has("policyRule")) res.setPolicyRule(parseCodeableConcept(getJObject(json, "policyRule"))); if (json.has("verification")) { - JsonArray array = json.getAsJsonArray("verification"); + JsonArray array = getJArray(json, "verification"); for (int i = 0; i < array.size(); i++) { res.getVerification().add(parseConsentVerificationComponent(array.get(i).getAsJsonObject())); } @@ -9577,7 +9641,7 @@ public class JsonParser extends JsonParserBase { if (json.has("verifiedWith")) res.setVerifiedWith(parseReference(getJObject(json, "verifiedWith"))); if (json.has("verificationDate")) { - JsonArray array = json.getAsJsonArray("verificationDate"); + JsonArray array = getJArray(json, "verificationDate"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getVerificationDate().add(new DateTimeType()); @@ -9587,7 +9651,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_verificationDate")) { - JsonArray array = json.getAsJsonArray("_verificationDate"); + JsonArray array = getJArray(json, "_verificationDate"); for (int i = 0; i < array.size(); i++) { if (i == res.getVerificationDate().size()) res.getVerificationDate().add(parseDateTime(null)); @@ -9612,37 +9676,37 @@ public class JsonParser extends JsonParserBase { if (json.has("period")) res.setPeriod(parsePeriod(getJObject(json, "period"))); if (json.has("actor")) { - JsonArray array = json.getAsJsonArray("actor"); + JsonArray array = getJArray(json, "actor"); for (int i = 0; i < array.size(); i++) { res.getActor().add(parseConsentProvisionActorComponent(array.get(i).getAsJsonObject())); } }; if (json.has("action")) { - JsonArray array = json.getAsJsonArray("action"); + JsonArray array = getJArray(json, "action"); for (int i = 0; i < array.size(); i++) { res.getAction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("securityLabel")) { - JsonArray array = json.getAsJsonArray("securityLabel"); + JsonArray array = getJArray(json, "securityLabel"); for (int i = 0; i < array.size(); i++) { res.getSecurityLabel().add(parseCoding(array.get(i).getAsJsonObject())); } }; if (json.has("purpose")) { - JsonArray array = json.getAsJsonArray("purpose"); + JsonArray array = getJArray(json, "purpose"); for (int i = 0; i < array.size(); i++) { res.getPurpose().add(parseCoding(array.get(i).getAsJsonObject())); } }; if (json.has("class")) { - JsonArray array = json.getAsJsonArray("class"); + JsonArray array = getJArray(json, "class"); for (int i = 0; i < array.size(); i++) { res.getClass_().add(parseCoding(array.get(i).getAsJsonObject())); } }; if (json.has("code")) { - JsonArray array = json.getAsJsonArray("code"); + JsonArray array = getJArray(json, "code"); for (int i = 0; i < array.size(); i++) { res.getCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -9650,13 +9714,13 @@ public class JsonParser extends JsonParserBase { if (json.has("dataPeriod")) res.setDataPeriod(parsePeriod(getJObject(json, "dataPeriod"))); if (json.has("data")) { - JsonArray array = json.getAsJsonArray("data"); + JsonArray array = getJArray(json, "data"); for (int i = 0; i < array.size(); i++) { res.getData().add(parseConsentProvisionDataComponent(array.get(i).getAsJsonObject())); } }; if (json.has("provision")) { - JsonArray array = json.getAsJsonArray("provision"); + JsonArray array = getJArray(json, "provision"); for (int i = 0; i < array.size(); i++) { res.getProvision().add(parseConsentProvisionComponent(array.get(i).getAsJsonObject())); } @@ -9702,7 +9766,7 @@ public class JsonParser extends JsonParserBase { protected void parseContractProperties(JsonObject json, Contract res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -9738,25 +9802,25 @@ public class JsonParser extends JsonParserBase { if (json.has("expirationType")) res.setExpirationType(parseCodeableConcept(getJObject(json, "expirationType"))); if (json.has("subject")) { - JsonArray array = json.getAsJsonArray("subject"); + JsonArray array = getJArray(json, "subject"); for (int i = 0; i < array.size(); i++) { res.getSubject().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("authority")) { - JsonArray array = json.getAsJsonArray("authority"); + JsonArray array = getJArray(json, "authority"); for (int i = 0; i < array.size(); i++) { res.getAuthority().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("domain")) { - JsonArray array = json.getAsJsonArray("domain"); + JsonArray array = getJArray(json, "domain"); for (int i = 0; i < array.size(); i++) { res.getDomain().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("site")) { - JsonArray array = json.getAsJsonArray("site"); + JsonArray array = getJArray(json, "site"); for (int i = 0; i < array.size(); i++) { res.getSite().add(parseReference(array.get(i).getAsJsonObject())); } @@ -9774,7 +9838,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_subtitle")) parseElementProperties(getJObject(json, "_subtitle"), res.getSubtitleElement()); if (json.has("alias")) { - JsonArray array = json.getAsJsonArray("alias"); + JsonArray array = getJArray(json, "alias"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getAlias().add(new StringType()); @@ -9784,7 +9848,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_alias")) { - JsonArray array = json.getAsJsonArray("_alias"); + JsonArray array = getJArray(json, "_alias"); for (int i = 0; i < array.size(); i++) { if (i == res.getAlias().size()) res.getAlias().add(parseString(null)); @@ -9802,7 +9866,7 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("subType")) { - JsonArray array = json.getAsJsonArray("subType"); + JsonArray array = getJArray(json, "subType"); for (int i = 0; i < array.size(); i++) { res.getSubType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -9810,43 +9874,43 @@ public class JsonParser extends JsonParserBase { if (json.has("contentDefinition")) res.setContentDefinition(parseContractContentDefinitionComponent(getJObject(json, "contentDefinition"))); if (json.has("term")) { - JsonArray array = json.getAsJsonArray("term"); + JsonArray array = getJArray(json, "term"); for (int i = 0; i < array.size(); i++) { res.getTerm().add(parseContractTermComponent(array.get(i).getAsJsonObject())); } }; if (json.has("supportingInfo")) { - JsonArray array = json.getAsJsonArray("supportingInfo"); + JsonArray array = getJArray(json, "supportingInfo"); for (int i = 0; i < array.size(); i++) { res.getSupportingInfo().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("relevantHistory")) { - JsonArray array = json.getAsJsonArray("relevantHistory"); + JsonArray array = getJArray(json, "relevantHistory"); for (int i = 0; i < array.size(); i++) { res.getRelevantHistory().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("signer")) { - JsonArray array = json.getAsJsonArray("signer"); + JsonArray array = getJArray(json, "signer"); for (int i = 0; i < array.size(); i++) { res.getSigner().add(parseContractSignatoryComponent(array.get(i).getAsJsonObject())); } }; if (json.has("friendly")) { - JsonArray array = json.getAsJsonArray("friendly"); + JsonArray array = getJArray(json, "friendly"); for (int i = 0; i < array.size(); i++) { res.getFriendly().add(parseContractFriendlyLanguageComponent(array.get(i).getAsJsonObject())); } }; if (json.has("legal")) { - JsonArray array = json.getAsJsonArray("legal"); + JsonArray array = getJArray(json, "legal"); for (int i = 0; i < array.size(); i++) { res.getLegal().add(parseContractLegalLanguageComponent(array.get(i).getAsJsonObject())); } }; if (json.has("rule")) { - JsonArray array = json.getAsJsonArray("rule"); + JsonArray array = getJArray(json, "rule"); for (int i = 0; i < array.size(); i++) { res.getRule().add(parseContractComputableLanguageComponent(array.get(i).getAsJsonObject())); } @@ -9912,7 +9976,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_text")) parseElementProperties(getJObject(json, "_text"), res.getTextElement()); if (json.has("securityLabel")) { - JsonArray array = json.getAsJsonArray("securityLabel"); + JsonArray array = getJArray(json, "securityLabel"); for (int i = 0; i < array.size(); i++) { res.getSecurityLabel().add(parseContractSecurityLabelComponent(array.get(i).getAsJsonObject())); } @@ -9920,19 +9984,19 @@ public class JsonParser extends JsonParserBase { if (json.has("offer")) res.setOffer(parseContractOfferComponent(getJObject(json, "offer"))); if (json.has("asset")) { - JsonArray array = json.getAsJsonArray("asset"); + JsonArray array = getJArray(json, "asset"); for (int i = 0; i < array.size(); i++) { res.getAsset().add(parseContractAssetComponent(array.get(i).getAsJsonObject())); } }; if (json.has("action")) { - JsonArray array = json.getAsJsonArray("action"); + JsonArray array = getJArray(json, "action"); for (int i = 0; i < array.size(); i++) { res.getAction().add(parseContractActionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("group")) { - JsonArray array = json.getAsJsonArray("group"); + JsonArray array = getJArray(json, "group"); for (int i = 0; i < array.size(); i++) { res.getGroup().add(parseContractTermComponent(array.get(i).getAsJsonObject())); } @@ -9948,7 +10012,7 @@ public class JsonParser extends JsonParserBase { protected void parseContractSecurityLabelComponentProperties(JsonObject json, Contract.SecurityLabelComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("number")) { - JsonArray array = json.getAsJsonArray("number"); + JsonArray array = getJArray(json, "number"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNumber().add(new UnsignedIntType()); @@ -9958,7 +10022,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_number")) { - JsonArray array = json.getAsJsonArray("_number"); + JsonArray array = getJArray(json, "_number"); for (int i = 0; i < array.size(); i++) { if (i == res.getNumber().size()) res.getNumber().add(parseUnsignedInt(null)); @@ -9969,13 +10033,13 @@ public class JsonParser extends JsonParserBase { if (json.has("classification")) res.setClassification(parseCoding(getJObject(json, "classification"))); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCoding(array.get(i).getAsJsonObject())); } }; if (json.has("control")) { - JsonArray array = json.getAsJsonArray("control"); + JsonArray array = getJArray(json, "control"); for (int i = 0; i < array.size(); i++) { res.getControl().add(parseCoding(array.get(i).getAsJsonObject())); } @@ -9991,13 +10055,13 @@ public class JsonParser extends JsonParserBase { protected void parseContractOfferComponentProperties(JsonObject json, Contract.ContractOfferComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("party")) { - JsonArray array = json.getAsJsonArray("party"); + JsonArray array = getJArray(json, "party"); for (int i = 0; i < array.size(); i++) { res.getParty().add(parseContractPartyComponent(array.get(i).getAsJsonObject())); } @@ -10009,13 +10073,13 @@ public class JsonParser extends JsonParserBase { if (json.has("decision")) res.setDecision(parseCodeableConcept(getJObject(json, "decision"))); if (json.has("decisionMode")) { - JsonArray array = json.getAsJsonArray("decisionMode"); + JsonArray array = getJArray(json, "decisionMode"); for (int i = 0; i < array.size(); i++) { res.getDecisionMode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("answer")) { - JsonArray array = json.getAsJsonArray("answer"); + JsonArray array = getJArray(json, "answer"); for (int i = 0; i < array.size(); i++) { res.getAnswer().add(parseContractAnswerComponent(array.get(i).getAsJsonObject())); } @@ -10025,7 +10089,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_text")) parseElementProperties(getJObject(json, "_text"), res.getTextElement()); if (json.has("linkId")) { - JsonArray array = json.getAsJsonArray("linkId"); + JsonArray array = getJArray(json, "linkId"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getLinkId().add(new StringType()); @@ -10035,7 +10099,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_linkId")) { - JsonArray array = json.getAsJsonArray("_linkId"); + JsonArray array = getJArray(json, "_linkId"); for (int i = 0; i < array.size(); i++) { if (i == res.getLinkId().size()) res.getLinkId().add(parseString(null)); @@ -10044,7 +10108,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("securityLabelNumber")) { - JsonArray array = json.getAsJsonArray("securityLabelNumber"); + JsonArray array = getJArray(json, "securityLabelNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSecurityLabelNumber().add(new UnsignedIntType()); @@ -10054,7 +10118,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_securityLabelNumber")) { - JsonArray array = json.getAsJsonArray("_securityLabelNumber"); + JsonArray array = getJArray(json, "_securityLabelNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getSecurityLabelNumber().size()) res.getSecurityLabelNumber().add(parseUnsignedInt(null)); @@ -10073,7 +10137,7 @@ public class JsonParser extends JsonParserBase { protected void parseContractPartyComponentProperties(JsonObject json, Contract.ContractPartyComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("reference")) { - JsonArray array = json.getAsJsonArray("reference"); + JsonArray array = getJArray(json, "reference"); for (int i = 0; i < array.size(); i++) { res.getReference().add(parseReference(array.get(i).getAsJsonObject())); } @@ -10106,19 +10170,19 @@ public class JsonParser extends JsonParserBase { if (json.has("scope")) res.setScope(parseCodeableConcept(getJObject(json, "scope"))); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("typeReference")) { - JsonArray array = json.getAsJsonArray("typeReference"); + JsonArray array = getJArray(json, "typeReference"); for (int i = 0; i < array.size(); i++) { res.getTypeReference().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("subtype")) { - JsonArray array = json.getAsJsonArray("subtype"); + JsonArray array = getJArray(json, "subtype"); for (int i = 0; i < array.size(); i++) { res.getSubtype().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -10126,7 +10190,7 @@ public class JsonParser extends JsonParserBase { if (json.has("relationship")) res.setRelationship(parseCoding(getJObject(json, "relationship"))); if (json.has("context")) { - JsonArray array = json.getAsJsonArray("context"); + JsonArray array = getJArray(json, "context"); for (int i = 0; i < array.size(); i++) { res.getContext().add(parseContractAssetContextComponent(array.get(i).getAsJsonObject())); } @@ -10136,19 +10200,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_condition")) parseElementProperties(getJObject(json, "_condition"), res.getConditionElement()); if (json.has("periodType")) { - JsonArray array = json.getAsJsonArray("periodType"); + JsonArray array = getJArray(json, "periodType"); for (int i = 0; i < array.size(); i++) { res.getPeriodType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("period")) { - JsonArray array = json.getAsJsonArray("period"); + JsonArray array = getJArray(json, "period"); for (int i = 0; i < array.size(); i++) { res.getPeriod().add(parsePeriod(array.get(i).getAsJsonObject())); } }; if (json.has("usePeriod")) { - JsonArray array = json.getAsJsonArray("usePeriod"); + JsonArray array = getJArray(json, "usePeriod"); for (int i = 0; i < array.size(); i++) { res.getUsePeriod().add(parsePeriod(array.get(i).getAsJsonObject())); } @@ -10158,7 +10222,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_text")) parseElementProperties(getJObject(json, "_text"), res.getTextElement()); if (json.has("linkId")) { - JsonArray array = json.getAsJsonArray("linkId"); + JsonArray array = getJArray(json, "linkId"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getLinkId().add(new StringType()); @@ -10168,7 +10232,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_linkId")) { - JsonArray array = json.getAsJsonArray("_linkId"); + JsonArray array = getJArray(json, "_linkId"); for (int i = 0; i < array.size(); i++) { if (i == res.getLinkId().size()) res.getLinkId().add(parseString(null)); @@ -10177,13 +10241,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("answer")) { - JsonArray array = json.getAsJsonArray("answer"); + JsonArray array = getJArray(json, "answer"); for (int i = 0; i < array.size(); i++) { res.getAnswer().add(parseContractAnswerComponent(array.get(i).getAsJsonObject())); } }; if (json.has("securityLabelNumber")) { - JsonArray array = json.getAsJsonArray("securityLabelNumber"); + JsonArray array = getJArray(json, "securityLabelNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSecurityLabelNumber().add(new UnsignedIntType()); @@ -10193,7 +10257,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_securityLabelNumber")) { - JsonArray array = json.getAsJsonArray("_securityLabelNumber"); + JsonArray array = getJArray(json, "_securityLabelNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getSecurityLabelNumber().size()) res.getSecurityLabelNumber().add(parseUnsignedInt(null)); @@ -10202,7 +10266,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("valuedItem")) { - JsonArray array = json.getAsJsonArray("valuedItem"); + JsonArray array = getJArray(json, "valuedItem"); for (int i = 0; i < array.size(); i++) { res.getValuedItem().add(parseContractValuedItemComponent(array.get(i).getAsJsonObject())); } @@ -10220,7 +10284,7 @@ public class JsonParser extends JsonParserBase { if (json.has("reference")) res.setReference(parseReference(getJObject(json, "reference"))); if (json.has("code")) { - JsonArray array = json.getAsJsonArray("code"); + JsonArray array = getJArray(json, "code"); for (int i = 0; i < array.size(); i++) { res.getCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -10275,7 +10339,7 @@ public class JsonParser extends JsonParserBase { if (json.has("recipient")) res.setRecipient(parseReference(getJObject(json, "recipient"))); if (json.has("linkId")) { - JsonArray array = json.getAsJsonArray("linkId"); + JsonArray array = getJArray(json, "linkId"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getLinkId().add(new StringType()); @@ -10285,7 +10349,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_linkId")) { - JsonArray array = json.getAsJsonArray("_linkId"); + JsonArray array = getJArray(json, "_linkId"); for (int i = 0; i < array.size(); i++) { if (i == res.getLinkId().size()) res.getLinkId().add(parseString(null)); @@ -10294,7 +10358,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("securityLabelNumber")) { - JsonArray array = json.getAsJsonArray("securityLabelNumber"); + JsonArray array = getJArray(json, "securityLabelNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSecurityLabelNumber().add(new UnsignedIntType()); @@ -10304,7 +10368,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_securityLabelNumber")) { - JsonArray array = json.getAsJsonArray("_securityLabelNumber"); + JsonArray array = getJArray(json, "_securityLabelNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getSecurityLabelNumber().size()) res.getSecurityLabelNumber().add(parseUnsignedInt(null)); @@ -10329,7 +10393,7 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("subject")) { - JsonArray array = json.getAsJsonArray("subject"); + JsonArray array = getJArray(json, "subject"); for (int i = 0; i < array.size(); i++) { res.getSubject().add(parseContractActionSubjectComponent(array.get(i).getAsJsonObject())); } @@ -10337,7 +10401,7 @@ public class JsonParser extends JsonParserBase { if (json.has("intent")) res.setIntent(parseCodeableConcept(getJObject(json, "intent"))); if (json.has("linkId")) { - JsonArray array = json.getAsJsonArray("linkId"); + JsonArray array = getJArray(json, "linkId"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getLinkId().add(new StringType()); @@ -10347,7 +10411,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_linkId")) { - JsonArray array = json.getAsJsonArray("_linkId"); + JsonArray array = getJArray(json, "_linkId"); for (int i = 0; i < array.size(); i++) { if (i == res.getLinkId().size()) res.getLinkId().add(parseString(null)); @@ -10360,7 +10424,7 @@ public class JsonParser extends JsonParserBase { if (json.has("context")) res.setContext(parseReference(getJObject(json, "context"))); if (json.has("contextLinkId")) { - JsonArray array = json.getAsJsonArray("contextLinkId"); + JsonArray array = getJArray(json, "contextLinkId"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getContextLinkId().add(new StringType()); @@ -10370,7 +10434,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_contextLinkId")) { - JsonArray array = json.getAsJsonArray("_contextLinkId"); + JsonArray array = getJArray(json, "_contextLinkId"); for (int i = 0; i < array.size(); i++) { if (i == res.getContextLinkId().size()) res.getContextLinkId().add(parseString(null)); @@ -10382,13 +10446,13 @@ public class JsonParser extends JsonParserBase { if (occurrence != null) res.setOccurrence(occurrence); if (json.has("requester")) { - JsonArray array = json.getAsJsonArray("requester"); + JsonArray array = getJArray(json, "requester"); for (int i = 0; i < array.size(); i++) { res.getRequester().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("requesterLinkId")) { - JsonArray array = json.getAsJsonArray("requesterLinkId"); + JsonArray array = getJArray(json, "requesterLinkId"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getRequesterLinkId().add(new StringType()); @@ -10398,7 +10462,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_requesterLinkId")) { - JsonArray array = json.getAsJsonArray("_requesterLinkId"); + JsonArray array = getJArray(json, "_requesterLinkId"); for (int i = 0; i < array.size(); i++) { if (i == res.getRequesterLinkId().size()) res.getRequesterLinkId().add(parseString(null)); @@ -10407,7 +10471,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("performerType")) { - JsonArray array = json.getAsJsonArray("performerType"); + JsonArray array = getJArray(json, "performerType"); for (int i = 0; i < array.size(); i++) { res.getPerformerType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -10417,7 +10481,7 @@ public class JsonParser extends JsonParserBase { if (json.has("performer")) res.setPerformer(parseReference(getJObject(json, "performer"))); if (json.has("performerLinkId")) { - JsonArray array = json.getAsJsonArray("performerLinkId"); + JsonArray array = getJArray(json, "performerLinkId"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPerformerLinkId().add(new StringType()); @@ -10427,7 +10491,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_performerLinkId")) { - JsonArray array = json.getAsJsonArray("_performerLinkId"); + JsonArray array = getJArray(json, "_performerLinkId"); for (int i = 0; i < array.size(); i++) { if (i == res.getPerformerLinkId().size()) res.getPerformerLinkId().add(parseString(null)); @@ -10436,13 +10500,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("reasonLinkId")) { - JsonArray array = json.getAsJsonArray("reasonLinkId"); + JsonArray array = getJArray(json, "reasonLinkId"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getReasonLinkId().add(new StringType()); @@ -10452,7 +10516,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_reasonLinkId")) { - JsonArray array = json.getAsJsonArray("_reasonLinkId"); + JsonArray array = getJArray(json, "_reasonLinkId"); for (int i = 0; i < array.size(); i++) { if (i == res.getReasonLinkId().size()) res.getReasonLinkId().add(parseString(null)); @@ -10461,13 +10525,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("securityLabelNumber")) { - JsonArray array = json.getAsJsonArray("securityLabelNumber"); + JsonArray array = getJArray(json, "securityLabelNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSecurityLabelNumber().add(new UnsignedIntType()); @@ -10477,7 +10541,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_securityLabelNumber")) { - JsonArray array = json.getAsJsonArray("_securityLabelNumber"); + JsonArray array = getJArray(json, "_securityLabelNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getSecurityLabelNumber().size()) res.getSecurityLabelNumber().add(parseUnsignedInt(null)); @@ -10496,7 +10560,7 @@ public class JsonParser extends JsonParserBase { protected void parseContractActionSubjectComponentProperties(JsonObject json, Contract.ActionSubjectComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("reference")) { - JsonArray array = json.getAsJsonArray("reference"); + JsonArray array = getJArray(json, "reference"); for (int i = 0; i < array.size(); i++) { res.getReference().add(parseReference(array.get(i).getAsJsonObject())); } @@ -10518,7 +10582,7 @@ public class JsonParser extends JsonParserBase { if (json.has("party")) res.setParty(parseReference(getJObject(json, "party"))); if (json.has("signature")) { - JsonArray array = json.getAsJsonArray("signature"); + JsonArray array = getJArray(json, "signature"); for (int i = 0; i < array.size(); i++) { res.getSignature().add(parseSignature(array.get(i).getAsJsonObject())); } @@ -10573,7 +10637,7 @@ public class JsonParser extends JsonParserBase { protected void parseCoverageProperties(JsonObject json, Coverage res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -10601,13 +10665,13 @@ public class JsonParser extends JsonParserBase { if (json.has("period")) res.setPeriod(parsePeriod(getJObject(json, "period"))); if (json.has("payor")) { - JsonArray array = json.getAsJsonArray("payor"); + JsonArray array = getJArray(json, "payor"); for (int i = 0; i < array.size(); i++) { res.getPayor().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("class")) { - JsonArray array = json.getAsJsonArray("class"); + JsonArray array = getJArray(json, "class"); for (int i = 0; i < array.size(); i++) { res.getClass_().add(parseCoverageClassComponent(array.get(i).getAsJsonObject())); } @@ -10621,7 +10685,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_network")) parseElementProperties(getJObject(json, "_network"), res.getNetworkElement()); if (json.has("costToBeneficiary")) { - JsonArray array = json.getAsJsonArray("costToBeneficiary"); + JsonArray array = getJArray(json, "costToBeneficiary"); for (int i = 0; i < array.size(); i++) { res.getCostToBeneficiary().add(parseCoverageCostToBeneficiaryComponent(array.get(i).getAsJsonObject())); } @@ -10631,7 +10695,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_subrogation")) parseElementProperties(getJObject(json, "_subrogation"), res.getSubrogationElement()); if (json.has("contract")) { - JsonArray array = json.getAsJsonArray("contract"); + JsonArray array = getJArray(json, "contract"); for (int i = 0; i < array.size(); i++) { res.getContract().add(parseReference(array.get(i).getAsJsonObject())); } @@ -10672,7 +10736,7 @@ public class JsonParser extends JsonParserBase { if (value != null) res.setValue(value); if (json.has("exception")) { - JsonArray array = json.getAsJsonArray("exception"); + JsonArray array = getJArray(json, "exception"); for (int i = 0; i < array.size(); i++) { res.getException().add(parseCoverageExemptionComponent(array.get(i).getAsJsonObject())); } @@ -10702,7 +10766,7 @@ public class JsonParser extends JsonParserBase { protected void parseCoverageEligibilityRequestProperties(JsonObject json, CoverageEligibilityRequest res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -10714,7 +10778,7 @@ public class JsonParser extends JsonParserBase { if (json.has("priority")) res.setPriority(parseCodeableConcept(getJObject(json, "priority"))); if (json.has("purpose")) { - JsonArray array = json.getAsJsonArray("purpose"); + JsonArray array = getJArray(json, "purpose"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPurpose().add(new Enumeration(new CoverageEligibilityRequest.EligibilityRequestPurposeEnumFactory(), CoverageEligibilityRequest.EligibilityRequestPurpose.NULL)); @@ -10724,7 +10788,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_purpose")) { - JsonArray array = json.getAsJsonArray("_purpose"); + JsonArray array = getJArray(json, "_purpose"); for (int i = 0; i < array.size(); i++) { if (i == res.getPurpose().size()) res.getPurpose().add(parseEnumeration(null, CoverageEligibilityRequest.EligibilityRequestPurpose.NULL, new CoverageEligibilityRequest.EligibilityRequestPurposeEnumFactory())); @@ -10750,19 +10814,19 @@ public class JsonParser extends JsonParserBase { if (json.has("facility")) res.setFacility(parseReference(getJObject(json, "facility"))); if (json.has("supportingInfo")) { - JsonArray array = json.getAsJsonArray("supportingInfo"); + JsonArray array = getJArray(json, "supportingInfo"); for (int i = 0; i < array.size(); i++) { res.getSupportingInfo().add(parseCoverageEligibilityRequestSupportingInformationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("insurance")) { - JsonArray array = json.getAsJsonArray("insurance"); + JsonArray array = getJArray(json, "insurance"); for (int i = 0; i < array.size(); i++) { res.getInsurance().add(parseCoverageEligibilityRequestInsuranceComponent(array.get(i).getAsJsonObject())); } }; if (json.has("item")) { - JsonArray array = json.getAsJsonArray("item"); + JsonArray array = getJArray(json, "item"); for (int i = 0; i < array.size(); i++) { res.getItem().add(parseCoverageEligibilityRequestDetailsComponent(array.get(i).getAsJsonObject())); } @@ -10818,7 +10882,7 @@ public class JsonParser extends JsonParserBase { protected void parseCoverageEligibilityRequestDetailsComponentProperties(JsonObject json, CoverageEligibilityRequest.DetailsComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("supportingInfoSequence")) { - JsonArray array = json.getAsJsonArray("supportingInfoSequence"); + JsonArray array = getJArray(json, "supportingInfoSequence"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSupportingInfoSequence().add(new PositiveIntType()); @@ -10828,7 +10892,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_supportingInfoSequence")) { - JsonArray array = json.getAsJsonArray("_supportingInfoSequence"); + JsonArray array = getJArray(json, "_supportingInfoSequence"); for (int i = 0; i < array.size(); i++) { if (i == res.getSupportingInfoSequence().size()) res.getSupportingInfoSequence().add(parsePositiveInt(null)); @@ -10841,7 +10905,7 @@ public class JsonParser extends JsonParserBase { if (json.has("productOrService")) res.setProductOrService(parseCodeableConcept(getJObject(json, "productOrService"))); if (json.has("modifier")) { - JsonArray array = json.getAsJsonArray("modifier"); + JsonArray array = getJArray(json, "modifier"); for (int i = 0; i < array.size(); i++) { res.getModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -10855,13 +10919,13 @@ public class JsonParser extends JsonParserBase { if (json.has("facility")) res.setFacility(parseReference(getJObject(json, "facility"))); if (json.has("diagnosis")) { - JsonArray array = json.getAsJsonArray("diagnosis"); + JsonArray array = getJArray(json, "diagnosis"); for (int i = 0; i < array.size(); i++) { res.getDiagnosis().add(parseCoverageEligibilityRequestDiagnosisComponent(array.get(i).getAsJsonObject())); } }; if (json.has("detail")) { - JsonArray array = json.getAsJsonArray("detail"); + JsonArray array = getJArray(json, "detail"); for (int i = 0; i < array.size(); i++) { res.getDetail().add(parseReference(array.get(i).getAsJsonObject())); } @@ -10890,7 +10954,7 @@ public class JsonParser extends JsonParserBase { protected void parseCoverageEligibilityResponseProperties(JsonObject json, CoverageEligibilityResponse res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -10900,7 +10964,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("purpose")) { - JsonArray array = json.getAsJsonArray("purpose"); + JsonArray array = getJArray(json, "purpose"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPurpose().add(new Enumeration(new CoverageEligibilityResponse.EligibilityResponsePurposeEnumFactory(), CoverageEligibilityResponse.EligibilityResponsePurpose.NULL)); @@ -10910,7 +10974,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_purpose")) { - JsonArray array = json.getAsJsonArray("_purpose"); + JsonArray array = getJArray(json, "_purpose"); for (int i = 0; i < array.size(); i++) { if (i == res.getPurpose().size()) res.getPurpose().add(parseEnumeration(null, CoverageEligibilityResponse.EligibilityResponsePurpose.NULL, new CoverageEligibilityResponse.EligibilityResponsePurposeEnumFactory())); @@ -10932,7 +10996,7 @@ public class JsonParser extends JsonParserBase { if (json.has("request")) res.setRequest(parseReference(getJObject(json, "request"))); if (json.has("outcome")) - res.setOutcomeElement(parseEnumeration(json.get("outcome").getAsString(), Enumerations.ClaimProcessingCodes.NULL, new Enumerations.ClaimProcessingCodesEnumFactory())); + res.setOutcomeElement(parseEnumeration(json.get("outcome").getAsString(), CoverageEligibilityResponse.EligibilityOutcome.NULL, new CoverageEligibilityResponse.EligibilityOutcomeEnumFactory())); if (json.has("_outcome")) parseElementProperties(getJObject(json, "_outcome"), res.getOutcomeElement()); if (json.has("disposition")) @@ -10942,7 +11006,7 @@ public class JsonParser extends JsonParserBase { if (json.has("insurer")) res.setInsurer(parseReference(getJObject(json, "insurer"))); if (json.has("insurance")) { - JsonArray array = json.getAsJsonArray("insurance"); + JsonArray array = getJArray(json, "insurance"); for (int i = 0; i < array.size(); i++) { res.getInsurance().add(parseCoverageEligibilityResponseInsuranceComponent(array.get(i).getAsJsonObject())); } @@ -10954,7 +11018,7 @@ public class JsonParser extends JsonParserBase { if (json.has("form")) res.setForm(parseCodeableConcept(getJObject(json, "form"))); if (json.has("error")) { - JsonArray array = json.getAsJsonArray("error"); + JsonArray array = getJArray(json, "error"); for (int i = 0; i < array.size(); i++) { res.getError().add(parseCoverageEligibilityResponseErrorsComponent(array.get(i).getAsJsonObject())); } @@ -10978,7 +11042,7 @@ public class JsonParser extends JsonParserBase { if (json.has("benefitPeriod")) res.setBenefitPeriod(parsePeriod(getJObject(json, "benefitPeriod"))); if (json.has("item")) { - JsonArray array = json.getAsJsonArray("item"); + JsonArray array = getJArray(json, "item"); for (int i = 0; i < array.size(); i++) { res.getItem().add(parseCoverageEligibilityResponseItemsComponent(array.get(i).getAsJsonObject())); } @@ -10998,7 +11062,7 @@ public class JsonParser extends JsonParserBase { if (json.has("productOrService")) res.setProductOrService(parseCodeableConcept(getJObject(json, "productOrService"))); if (json.has("modifier")) { - JsonArray array = json.getAsJsonArray("modifier"); + JsonArray array = getJArray(json, "modifier"); for (int i = 0; i < array.size(); i++) { res.getModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -11024,7 +11088,7 @@ public class JsonParser extends JsonParserBase { if (json.has("term")) res.setTerm(parseCodeableConcept(getJObject(json, "term"))); if (json.has("benefit")) { - JsonArray array = json.getAsJsonArray("benefit"); + JsonArray array = getJArray(json, "benefit"); for (int i = 0; i < array.size(); i++) { res.getBenefit().add(parseCoverageEligibilityResponseBenefitComponent(array.get(i).getAsJsonObject())); } @@ -11034,7 +11098,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_authorizationRequired")) parseElementProperties(getJObject(json, "_authorizationRequired"), res.getAuthorizationRequiredElement()); if (json.has("authorizationSupporting")) { - JsonArray array = json.getAsJsonArray("authorizationSupporting"); + JsonArray array = getJArray(json, "authorizationSupporting"); for (int i = 0; i < array.size(); i++) { res.getAuthorizationSupporting().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -11084,7 +11148,7 @@ public class JsonParser extends JsonParserBase { protected void parseDetectedIssueProperties(JsonObject json, DetectedIssue res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -11107,13 +11171,13 @@ public class JsonParser extends JsonParserBase { if (json.has("author")) res.setAuthor(parseReference(getJObject(json, "author"))); if (json.has("implicated")) { - JsonArray array = json.getAsJsonArray("implicated"); + JsonArray array = getJArray(json, "implicated"); for (int i = 0; i < array.size(); i++) { res.getImplicated().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("evidence")) { - JsonArray array = json.getAsJsonArray("evidence"); + JsonArray array = getJArray(json, "evidence"); for (int i = 0; i < array.size(); i++) { res.getEvidence().add(parseDetectedIssueEvidenceComponent(array.get(i).getAsJsonObject())); } @@ -11127,7 +11191,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_reference")) parseElementProperties(getJObject(json, "_reference"), res.getReferenceElement()); if (json.has("mitigation")) { - JsonArray array = json.getAsJsonArray("mitigation"); + JsonArray array = getJArray(json, "mitigation"); for (int i = 0; i < array.size(); i++) { res.getMitigation().add(parseDetectedIssueMitigationComponent(array.get(i).getAsJsonObject())); } @@ -11143,13 +11207,13 @@ public class JsonParser extends JsonParserBase { protected void parseDetectedIssueEvidenceComponentProperties(JsonObject json, DetectedIssue.DetectedIssueEvidenceComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("code")) { - JsonArray array = json.getAsJsonArray("code"); + JsonArray array = getJArray(json, "code"); for (int i = 0; i < array.size(); i++) { res.getCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("detail")) { - JsonArray array = json.getAsJsonArray("detail"); + JsonArray array = getJArray(json, "detail"); for (int i = 0; i < array.size(); i++) { res.getDetail().add(parseReference(array.get(i).getAsJsonObject())); } @@ -11183,7 +11247,7 @@ public class JsonParser extends JsonParserBase { protected void parseDeviceProperties(JsonObject json, Device res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -11195,7 +11259,7 @@ public class JsonParser extends JsonParserBase { if (json.has("definition")) res.setDefinition(parseReference(getJObject(json, "definition"))); if (json.has("udiCarrier")) { - JsonArray array = json.getAsJsonArray("udiCarrier"); + JsonArray array = getJArray(json, "udiCarrier"); for (int i = 0; i < array.size(); i++) { res.getUdiCarrier().add(parseDeviceUdiCarrierComponent(array.get(i).getAsJsonObject())); } @@ -11205,7 +11269,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("statusReason")) { - JsonArray array = json.getAsJsonArray("statusReason"); + JsonArray array = getJArray(json, "statusReason"); for (int i = 0; i < array.size(); i++) { res.getStatusReason().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -11235,7 +11299,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_serialNumber")) parseElementProperties(getJObject(json, "_serialNumber"), res.getSerialNumberElement()); if (json.has("deviceName")) { - JsonArray array = json.getAsJsonArray("deviceName"); + JsonArray array = getJArray(json, "deviceName"); for (int i = 0; i < array.size(); i++) { res.getDeviceName().add(parseDeviceDeviceNameComponent(array.get(i).getAsJsonObject())); } @@ -11249,25 +11313,25 @@ public class JsonParser extends JsonParserBase { if (json.has("_partNumber")) parseElementProperties(getJObject(json, "_partNumber"), res.getPartNumberElement()); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("specialization")) { - JsonArray array = json.getAsJsonArray("specialization"); + JsonArray array = getJArray(json, "specialization"); for (int i = 0; i < array.size(); i++) { res.getSpecialization().add(parseDeviceSpecializationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("version")) { - JsonArray array = json.getAsJsonArray("version"); + JsonArray array = getJArray(json, "version"); for (int i = 0; i < array.size(); i++) { res.getVersion().add(parseDeviceVersionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("property")) { - JsonArray array = json.getAsJsonArray("property"); + JsonArray array = getJArray(json, "property"); for (int i = 0; i < array.size(); i++) { res.getProperty().add(parseDevicePropertyComponent(array.get(i).getAsJsonObject())); } @@ -11281,7 +11345,7 @@ public class JsonParser extends JsonParserBase { if (json.has("owner")) res.setOwner(parseReference(getJObject(json, "owner"))); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactPoint(array.get(i).getAsJsonObject())); } @@ -11293,13 +11357,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("safety")) { - JsonArray array = json.getAsJsonArray("safety"); + JsonArray array = getJArray(json, "safety"); for (int i = 0; i < array.size(); i++) { res.getSafety().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -11404,18 +11468,9 @@ public class JsonParser extends JsonParserBase { parseBackboneElementProperties(json, res); if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); - if (json.has("valueQuantity")) { - JsonArray array = json.getAsJsonArray("valueQuantity"); - for (int i = 0; i < array.size(); i++) { - res.getValueQuantity().add(parseQuantity(array.get(i).getAsJsonObject())); - } - }; - if (json.has("valueCode")) { - JsonArray array = json.getAsJsonArray("valueCode"); - for (int i = 0; i < array.size(); i++) { - res.getValueCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); - } - }; + DataType value = parseType("value", json); + if (value != null) + res.setValue(value); } protected Device.DeviceOperationalStatusComponent parseDeviceOperationalStatusComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -11429,7 +11484,7 @@ public class JsonParser extends JsonParserBase { if (json.has("value")) res.setValue(parseCodeableConcept(getJObject(json, "value"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -11447,7 +11502,7 @@ public class JsonParser extends JsonParserBase { if (json.has("value")) res.setValue(parseCodeableConcept(getJObject(json, "value"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -11463,13 +11518,13 @@ public class JsonParser extends JsonParserBase { protected void parseDeviceDefinitionProperties(JsonObject json, DeviceDefinition res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("udiDeviceIdentifier")) { - JsonArray array = json.getAsJsonArray("udiDeviceIdentifier"); + JsonArray array = getJArray(json, "udiDeviceIdentifier"); for (int i = 0; i < array.size(); i++) { res.getUdiDeviceIdentifier().add(parseDeviceDefinitionUdiDeviceIdentifierComponent(array.get(i).getAsJsonObject())); } @@ -11478,7 +11533,7 @@ public class JsonParser extends JsonParserBase { if (manufacturer != null) res.setManufacturer(manufacturer); if (json.has("deviceName")) { - JsonArray array = json.getAsJsonArray("deviceName"); + JsonArray array = getJArray(json, "deviceName"); for (int i = 0; i < array.size(); i++) { res.getDeviceName().add(parseDeviceDefinitionDeviceNameComponent(array.get(i).getAsJsonObject())); } @@ -11487,41 +11542,44 @@ public class JsonParser extends JsonParserBase { res.setModelNumberElement(parseString(json.get("modelNumber").getAsString())); if (json.has("_modelNumber")) parseElementProperties(getJObject(json, "_modelNumber"), res.getModelNumberElement()); - if (json.has("type")) - res.setType(parseCodeableConcept(getJObject(json, "type"))); + if (json.has("type")) { + JsonArray array = getJArray(json, "type"); + for (int i = 0; i < array.size(); i++) { + res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; if (json.has("specialization")) { - JsonArray array = json.getAsJsonArray("specialization"); + JsonArray array = getJArray(json, "specialization"); for (int i = 0; i < array.size(); i++) { res.getSpecialization().add(parseDeviceDefinitionSpecializationComponent(array.get(i).getAsJsonObject())); } }; - if (json.has("version")) { - JsonArray array = json.getAsJsonArray("version"); + if (json.has("hasPart")) { + JsonArray array = getJArray(json, "hasPart"); for (int i = 0; i < array.size(); i++) { - if (array.get(i).isJsonNull()) { - res.getVersion().add(new StringType()); - } else {; - res.getVersion().add(parseString(array.get(i).getAsString())); - } + res.getHasPart().add(parseDeviceDefinitionHasPartComponent(array.get(i).getAsJsonObject())); } }; - if (json.has("_version")) { - JsonArray array = json.getAsJsonArray("_version"); + if (json.has("packaging")) { + JsonArray array = getJArray(json, "packaging"); for (int i = 0; i < array.size(); i++) { - if (i == res.getVersion().size()) - res.getVersion().add(parseString(null)); - if (array.get(i) instanceof JsonObject) - parseElementProperties(array.get(i).getAsJsonObject(), res.getVersion().get(i)); + res.getPackaging().add(parseDeviceDefinitionPackagingComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("version")) { + JsonArray array = getJArray(json, "version"); + for (int i = 0; i < array.size(); i++) { + res.getVersion().add(parseDeviceDefinitionVersionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("safety")) { - JsonArray array = json.getAsJsonArray("safety"); + JsonArray array = getJArray(json, "safety"); for (int i = 0; i < array.size(); i++) { res.getSafety().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("shelfLifeStorage")) { - JsonArray array = json.getAsJsonArray("shelfLifeStorage"); + JsonArray array = getJArray(json, "shelfLifeStorage"); for (int i = 0; i < array.size(); i++) { res.getShelfLifeStorage().add(parseProductShelfLife(array.get(i).getAsJsonObject())); } @@ -11529,19 +11587,19 @@ public class JsonParser extends JsonParserBase { if (json.has("physicalCharacteristics")) res.setPhysicalCharacteristics(parseProdCharacteristic(getJObject(json, "physicalCharacteristics"))); if (json.has("languageCode")) { - JsonArray array = json.getAsJsonArray("languageCode"); + JsonArray array = getJArray(json, "languageCode"); for (int i = 0; i < array.size(); i++) { res.getLanguageCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("capability")) { - JsonArray array = json.getAsJsonArray("capability"); + JsonArray array = getJArray(json, "capability"); for (int i = 0; i < array.size(); i++) { res.getCapability().add(parseDeviceDefinitionCapabilityComponent(array.get(i).getAsJsonObject())); } }; if (json.has("property")) { - JsonArray array = json.getAsJsonArray("property"); + JsonArray array = getJArray(json, "property"); for (int i = 0; i < array.size(); i++) { res.getProperty().add(parseDeviceDefinitionPropertyComponent(array.get(i).getAsJsonObject())); } @@ -11549,7 +11607,7 @@ public class JsonParser extends JsonParserBase { if (json.has("owner")) res.setOwner(parseReference(getJObject(json, "owner"))); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactPoint(array.get(i).getAsJsonObject())); } @@ -11559,17 +11617,15 @@ public class JsonParser extends JsonParserBase { if (json.has("_onlineInformation")) parseElementProperties(getJObject(json, "_onlineInformation"), res.getOnlineInformationElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; - if (json.has("quantity")) - res.setQuantity(parseQuantity(getJObject(json, "quantity"))); if (json.has("parentDevice")) res.setParentDevice(parseReference(getJObject(json, "parentDevice"))); if (json.has("material")) { - JsonArray array = json.getAsJsonArray("material"); + JsonArray array = getJArray(json, "material"); for (int i = 0; i < array.size(); i++) { res.getMaterial().add(parseDeviceDefinitionMaterialComponent(array.get(i).getAsJsonObject())); } @@ -11634,6 +11690,118 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_version"), res.getVersionElement()); } + protected DeviceDefinition.DeviceDefinitionHasPartComponent parseDeviceDefinitionHasPartComponent(JsonObject json) throws IOException, FHIRFormatError { + DeviceDefinition.DeviceDefinitionHasPartComponent res = new DeviceDefinition.DeviceDefinitionHasPartComponent(); + parseDeviceDefinitionHasPartComponentProperties(json, res); + return res; + } + + protected void parseDeviceDefinitionHasPartComponentProperties(JsonObject json, DeviceDefinition.DeviceDefinitionHasPartComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("reference")) + res.setReference(parseReference(getJObject(json, "reference"))); + if (json.has("count")) + res.setCountElement(parseInteger(json.get("count").getAsLong())); + if (json.has("_count")) + parseElementProperties(getJObject(json, "_count"), res.getCountElement()); + } + + protected DeviceDefinition.DeviceDefinitionPackagingComponent parseDeviceDefinitionPackagingComponent(JsonObject json) throws IOException, FHIRFormatError { + DeviceDefinition.DeviceDefinitionPackagingComponent res = new DeviceDefinition.DeviceDefinitionPackagingComponent(); + parseDeviceDefinitionPackagingComponentProperties(json, res); + return res; + } + + protected void parseDeviceDefinitionPackagingComponentProperties(JsonObject json, DeviceDefinition.DeviceDefinitionPackagingComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("identifier")) + res.setIdentifier(parseIdentifier(getJObject(json, "identifier"))); + if (json.has("type")) + res.setType(parseCodeableConcept(getJObject(json, "type"))); + if (json.has("count")) + res.setCountElement(parseInteger(json.get("count").getAsLong())); + if (json.has("_count")) + parseElementProperties(getJObject(json, "_count"), res.getCountElement()); + if (json.has("distributor")) { + JsonArray array = getJArray(json, "distributor"); + for (int i = 0; i < array.size(); i++) { + res.getDistributor().add(parseDeviceDefinitionPackagingDistributorComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("udiDeviceIdentifier")) { + JsonArray array = getJArray(json, "udiDeviceIdentifier"); + for (int i = 0; i < array.size(); i++) { + res.getUdiDeviceIdentifier().add(parseDeviceDefinitionPackagingUdiDeviceIdentifierComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("packaging")) { + JsonArray array = getJArray(json, "packaging"); + for (int i = 0; i < array.size(); i++) { + res.getPackaging().add(parseDeviceDefinitionPackagingComponent(array.get(i).getAsJsonObject())); + } + }; + } + + protected DeviceDefinition.DeviceDefinitionPackagingDistributorComponent parseDeviceDefinitionPackagingDistributorComponent(JsonObject json) throws IOException, FHIRFormatError { + DeviceDefinition.DeviceDefinitionPackagingDistributorComponent res = new DeviceDefinition.DeviceDefinitionPackagingDistributorComponent(); + parseDeviceDefinitionPackagingDistributorComponentProperties(json, res); + return res; + } + + protected void parseDeviceDefinitionPackagingDistributorComponentProperties(JsonObject json, DeviceDefinition.DeviceDefinitionPackagingDistributorComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("name")) + res.setNameElement(parseString(json.get("name").getAsString())); + if (json.has("_name")) + parseElementProperties(getJObject(json, "_name"), res.getNameElement()); + if (json.has("organizationReference")) { + JsonArray array = getJArray(json, "organizationReference"); + for (int i = 0; i < array.size(); i++) { + res.getOrganizationReference().add(parseReference(array.get(i).getAsJsonObject())); + } + }; + } + + protected DeviceDefinition.DeviceDefinitionPackagingUdiDeviceIdentifierComponent parseDeviceDefinitionPackagingUdiDeviceIdentifierComponent(JsonObject json) throws IOException, FHIRFormatError { + DeviceDefinition.DeviceDefinitionPackagingUdiDeviceIdentifierComponent res = new DeviceDefinition.DeviceDefinitionPackagingUdiDeviceIdentifierComponent(); + parseDeviceDefinitionPackagingUdiDeviceIdentifierComponentProperties(json, res); + return res; + } + + protected void parseDeviceDefinitionPackagingUdiDeviceIdentifierComponentProperties(JsonObject json, DeviceDefinition.DeviceDefinitionPackagingUdiDeviceIdentifierComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("deviceIdentifier")) + res.setDeviceIdentifierElement(parseString(json.get("deviceIdentifier").getAsString())); + if (json.has("_deviceIdentifier")) + parseElementProperties(getJObject(json, "_deviceIdentifier"), res.getDeviceIdentifierElement()); + if (json.has("issuer")) + res.setIssuerElement(parseUri(json.get("issuer").getAsString())); + if (json.has("_issuer")) + parseElementProperties(getJObject(json, "_issuer"), res.getIssuerElement()); + if (json.has("jurisdiction")) + res.setJurisdictionElement(parseUri(json.get("jurisdiction").getAsString())); + if (json.has("_jurisdiction")) + parseElementProperties(getJObject(json, "_jurisdiction"), res.getJurisdictionElement()); + } + + protected DeviceDefinition.DeviceDefinitionVersionComponent parseDeviceDefinitionVersionComponent(JsonObject json) throws IOException, FHIRFormatError { + DeviceDefinition.DeviceDefinitionVersionComponent res = new DeviceDefinition.DeviceDefinitionVersionComponent(); + parseDeviceDefinitionVersionComponentProperties(json, res); + return res; + } + + protected void parseDeviceDefinitionVersionComponentProperties(JsonObject json, DeviceDefinition.DeviceDefinitionVersionComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("type")) + res.setType(parseCodeableConcept(getJObject(json, "type"))); + if (json.has("component")) + res.setComponent(parseIdentifier(getJObject(json, "component"))); + if (json.has("value")) + res.setValueElement(parseString(json.get("value").getAsString())); + if (json.has("_value")) + parseElementProperties(getJObject(json, "_value"), res.getValueElement()); + } + protected DeviceDefinition.DeviceDefinitionCapabilityComponent parseDeviceDefinitionCapabilityComponent(JsonObject json) throws IOException, FHIRFormatError { DeviceDefinition.DeviceDefinitionCapabilityComponent res = new DeviceDefinition.DeviceDefinitionCapabilityComponent(); parseDeviceDefinitionCapabilityComponentProperties(json, res); @@ -11645,7 +11813,7 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("description")) { - JsonArray array = json.getAsJsonArray("description"); + JsonArray array = getJArray(json, "description"); for (int i = 0; i < array.size(); i++) { res.getDescription().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -11663,13 +11831,13 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("valueQuantity")) { - JsonArray array = json.getAsJsonArray("valueQuantity"); + JsonArray array = getJArray(json, "valueQuantity"); for (int i = 0; i < array.size(); i++) { res.getValueQuantity().add(parseQuantity(array.get(i).getAsJsonObject())); } }; if (json.has("valueCode")) { - JsonArray array = json.getAsJsonArray("valueCode"); + JsonArray array = getJArray(json, "valueCode"); for (int i = 0; i < array.size(); i++) { res.getValueCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -11705,7 +11873,7 @@ public class JsonParser extends JsonParserBase { protected void parseDeviceMetricProperties(JsonObject json, DeviceMetric res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -11733,7 +11901,7 @@ public class JsonParser extends JsonParserBase { if (json.has("measurementPeriod")) res.setMeasurementPeriod(parseTiming(getJObject(json, "measurementPeriod"))); if (json.has("calibration")) { - JsonArray array = json.getAsJsonArray("calibration"); + JsonArray array = getJArray(json, "calibration"); for (int i = 0; i < array.size(); i++) { res.getCalibration().add(parseDeviceMetricCalibrationComponent(array.get(i).getAsJsonObject())); } @@ -11771,13 +11939,13 @@ public class JsonParser extends JsonParserBase { protected void parseDeviceRequestProperties(JsonObject json, DeviceRequest res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("instantiatesCanonical"); + JsonArray array = getJArray(json, "instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesCanonical().add(new CanonicalType()); @@ -11787,7 +11955,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("_instantiatesCanonical"); + JsonArray array = getJArray(json, "_instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesCanonical().size()) res.getInstantiatesCanonical().add(parseCanonical(null)); @@ -11796,7 +11964,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("instantiatesUri")) { - JsonArray array = json.getAsJsonArray("instantiatesUri"); + JsonArray array = getJArray(json, "instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesUri().add(new UriType()); @@ -11806,7 +11974,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesUri")) { - JsonArray array = json.getAsJsonArray("_instantiatesUri"); + JsonArray array = getJArray(json, "_instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesUri().size()) res.getInstantiatesUri().add(parseUri(null)); @@ -11815,13 +11983,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("priorRequest")) { - JsonArray array = json.getAsJsonArray("priorRequest"); + JsonArray array = getJArray(json, "priorRequest"); for (int i = 0; i < array.size(); i++) { res.getPriorRequest().add(parseReference(array.get(i).getAsJsonObject())); } @@ -11840,10 +12008,18 @@ public class JsonParser extends JsonParserBase { res.setPriorityElement(parseEnumeration(json.get("priority").getAsString(), Enumerations.RequestPriority.NULL, new Enumerations.RequestPriorityEnumFactory())); if (json.has("_priority")) parseElementProperties(getJObject(json, "_priority"), res.getPriorityElement()); + if (json.has("doNotPerform")) + res.setDoNotPerformElement(parseBoolean(json.get("doNotPerform").getAsBoolean())); + if (json.has("_doNotPerform")) + parseElementProperties(getJObject(json, "_doNotPerform"), res.getDoNotPerformElement()); if (json.has("code")) res.setCode(parseCodeableReference(getJObject(json, "code"))); + if (json.has("quantity")) + res.setQuantityElement(parseInteger(json.get("quantity").getAsLong())); + if (json.has("_quantity")) + parseElementProperties(getJObject(json, "_quantity"), res.getQuantityElement()); if (json.has("parameter")) { - JsonArray array = json.getAsJsonArray("parameter"); + JsonArray array = getJArray(json, "parameter"); for (int i = 0; i < array.size(); i++) { res.getParameter().add(parseDeviceRequestParameterComponent(array.get(i).getAsJsonObject())); } @@ -11866,31 +12042,31 @@ public class JsonParser extends JsonParserBase { if (json.has("performer")) res.setPerformer(parseReference(getJObject(json, "performer"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("insurance")) { - JsonArray array = json.getAsJsonArray("insurance"); + JsonArray array = getJArray(json, "insurance"); for (int i = 0; i < array.size(); i++) { res.getInsurance().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("supportingInfo")) { - JsonArray array = json.getAsJsonArray("supportingInfo"); + JsonArray array = getJArray(json, "supportingInfo"); for (int i = 0; i < array.size(); i++) { res.getSupportingInfo().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("relevantHistory")) { - JsonArray array = json.getAsJsonArray("relevantHistory"); + JsonArray array = getJArray(json, "relevantHistory"); for (int i = 0; i < array.size(); i++) { res.getRelevantHistory().add(parseReference(array.get(i).getAsJsonObject())); } @@ -11912,32 +12088,32 @@ public class JsonParser extends JsonParserBase { res.setValue(value); } - protected DeviceUseStatement parseDeviceUseStatement(JsonObject json) throws IOException, FHIRFormatError { - DeviceUseStatement res = new DeviceUseStatement(); - parseDeviceUseStatementProperties(json, res); + protected DeviceUsage parseDeviceUsage(JsonObject json) throws IOException, FHIRFormatError { + DeviceUsage res = new DeviceUsage(); + parseDeviceUsageProperties(json, res); return res; } - protected void parseDeviceUseStatementProperties(JsonObject json, DeviceUseStatement res) throws IOException, FHIRFormatError { + protected void parseDeviceUsageProperties(JsonObject json, DeviceUsage res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("status")) - res.setStatusElement(parseEnumeration(json.get("status").getAsString(), DeviceUseStatement.DeviceUseStatementStatus.NULL, new DeviceUseStatement.DeviceUseStatementStatusEnumFactory())); + res.setStatusElement(parseEnumeration(json.get("status").getAsString(), DeviceUsage.DeviceUsageStatus.NULL, new DeviceUsage.DeviceUsageStatusEnumFactory())); if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -11945,7 +12121,7 @@ public class JsonParser extends JsonParserBase { if (json.has("subject")) res.setSubject(parseReference(getJObject(json, "subject"))); if (json.has("derivedFrom")) { - JsonArray array = json.getAsJsonArray("derivedFrom"); + JsonArray array = getJArray(json, "derivedFrom"); for (int i = 0; i < array.size(); i++) { res.getDerivedFrom().add(parseReference(array.get(i).getAsJsonObject())); } @@ -11962,7 +12138,7 @@ public class JsonParser extends JsonParserBase { if (json.has("usageStatus")) res.setUsageStatus(parseCodeableConcept(getJObject(json, "usageStatus"))); if (json.has("usageReason")) { - JsonArray array = json.getAsJsonArray("usageReason"); + JsonArray array = getJArray(json, "usageReason"); for (int i = 0; i < array.size(); i++) { res.getUsageReason().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -11972,7 +12148,7 @@ public class JsonParser extends JsonParserBase { if (json.has("device")) res.setDevice(parseCodeableReference(getJObject(json, "device"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } @@ -11980,7 +12156,7 @@ public class JsonParser extends JsonParserBase { if (json.has("bodySite")) res.setBodySite(parseCodeableReference(getJObject(json, "bodySite"))); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -11996,13 +12172,13 @@ public class JsonParser extends JsonParserBase { protected void parseDiagnosticReportProperties(JsonObject json, DiagnosticReport res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } @@ -12012,7 +12188,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -12031,53 +12207,55 @@ public class JsonParser extends JsonParserBase { if (json.has("_issued")) parseElementProperties(getJObject(json, "_issued"), res.getIssuedElement()); if (json.has("performer")) { - JsonArray array = json.getAsJsonArray("performer"); + JsonArray array = getJArray(json, "performer"); for (int i = 0; i < array.size(); i++) { res.getPerformer().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("resultsInterpreter")) { - JsonArray array = json.getAsJsonArray("resultsInterpreter"); + JsonArray array = getJArray(json, "resultsInterpreter"); for (int i = 0; i < array.size(); i++) { res.getResultsInterpreter().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("specimen")) { - JsonArray array = json.getAsJsonArray("specimen"); + JsonArray array = getJArray(json, "specimen"); for (int i = 0; i < array.size(); i++) { res.getSpecimen().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("result")) { - JsonArray array = json.getAsJsonArray("result"); + JsonArray array = getJArray(json, "result"); for (int i = 0; i < array.size(); i++) { res.getResult().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("imagingStudy")) { - JsonArray array = json.getAsJsonArray("imagingStudy"); + JsonArray array = getJArray(json, "imagingStudy"); for (int i = 0; i < array.size(); i++) { res.getImagingStudy().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("media")) { - JsonArray array = json.getAsJsonArray("media"); + JsonArray array = getJArray(json, "media"); for (int i = 0; i < array.size(); i++) { res.getMedia().add(parseDiagnosticReportMediaComponent(array.get(i).getAsJsonObject())); } }; + if (json.has("composition")) + res.setComposition(parseReference(getJObject(json, "composition"))); if (json.has("conclusion")) res.setConclusionElement(parseString(json.get("conclusion").getAsString())); if (json.has("_conclusion")) parseElementProperties(getJObject(json, "_conclusion"), res.getConclusionElement()); if (json.has("conclusionCode")) { - JsonArray array = json.getAsJsonArray("conclusionCode"); + JsonArray array = getJArray(json, "conclusionCode"); for (int i = 0; i < array.size(); i++) { res.getConclusionCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("presentedForm")) { - JsonArray array = json.getAsJsonArray("presentedForm"); + JsonArray array = getJArray(json, "presentedForm"); for (int i = 0; i < array.size(); i++) { res.getPresentedForm().add(parseAttachment(array.get(i).getAsJsonObject())); } @@ -12111,7 +12289,7 @@ public class JsonParser extends JsonParserBase { if (json.has("masterIdentifier")) res.setMasterIdentifier(parseIdentifier(getJObject(json, "masterIdentifier"))); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -12129,13 +12307,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_created")) parseElementProperties(getJObject(json, "_created"), res.getCreatedElement()); if (json.has("author")) { - JsonArray array = json.getAsJsonArray("author"); + JsonArray array = getJArray(json, "author"); for (int i = 0; i < array.size(); i++) { res.getAuthor().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("recipient")) { - JsonArray array = json.getAsJsonArray("recipient"); + JsonArray array = getJArray(json, "recipient"); for (int i = 0; i < array.size(); i++) { res.getRecipient().add(parseReference(array.get(i).getAsJsonObject())); } @@ -12149,13 +12327,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("content")) { - JsonArray array = json.getAsJsonArray("content"); + JsonArray array = getJArray(json, "content"); for (int i = 0; i < array.size(); i++) { res.getContent().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("related")) { - JsonArray array = json.getAsJsonArray("related"); + JsonArray array = getJArray(json, "related"); for (int i = 0; i < array.size(); i++) { res.getRelated().add(parseDocumentManifestRelatedComponent(array.get(i).getAsJsonObject())); } @@ -12185,13 +12363,13 @@ public class JsonParser extends JsonParserBase { protected void parseDocumentReferenceProperties(JsonObject json, DocumentReference res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } @@ -12207,7 +12385,7 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -12215,13 +12393,13 @@ public class JsonParser extends JsonParserBase { if (json.has("subject")) res.setSubject(parseReference(getJObject(json, "subject"))); if (json.has("encounter")) { - JsonArray array = json.getAsJsonArray("encounter"); + JsonArray array = getJArray(json, "encounter"); for (int i = 0; i < array.size(); i++) { res.getEncounter().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("event")) { - JsonArray array = json.getAsJsonArray("event"); + JsonArray array = getJArray(json, "event"); for (int i = 0; i < array.size(); i++) { res.getEvent().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -12237,13 +12415,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_date")) parseElementProperties(getJObject(json, "_date"), res.getDateElement()); if (json.has("author")) { - JsonArray array = json.getAsJsonArray("author"); + JsonArray array = getJArray(json, "author"); for (int i = 0; i < array.size(); i++) { res.getAuthor().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("attester")) { - JsonArray array = json.getAsJsonArray("attester"); + JsonArray array = getJArray(json, "attester"); for (int i = 0; i < array.size(); i++) { res.getAttester().add(parseDocumentReferenceAttesterComponent(array.get(i).getAsJsonObject())); } @@ -12251,7 +12429,7 @@ public class JsonParser extends JsonParserBase { if (json.has("custodian")) res.setCustodian(parseReference(getJObject(json, "custodian"))); if (json.has("relatesTo")) { - JsonArray array = json.getAsJsonArray("relatesTo"); + JsonArray array = getJArray(json, "relatesTo"); for (int i = 0; i < array.size(); i++) { res.getRelatesTo().add(parseDocumentReferenceRelatesToComponent(array.get(i).getAsJsonObject())); } @@ -12261,13 +12439,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("securityLabel")) { - JsonArray array = json.getAsJsonArray("securityLabel"); + JsonArray array = getJArray(json, "securityLabel"); for (int i = 0; i < array.size(); i++) { res.getSecurityLabel().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("content")) { - JsonArray array = json.getAsJsonArray("content"); + JsonArray array = getJArray(json, "content"); for (int i = 0; i < array.size(); i++) { res.getContent().add(parseDocumentReferenceContentComponent(array.get(i).getAsJsonObject())); } @@ -12275,7 +12453,7 @@ public class JsonParser extends JsonParserBase { if (json.has("sourcePatientInfo")) res.setSourcePatientInfo(parseReference(getJObject(json, "sourcePatientInfo"))); if (json.has("related")) { - JsonArray array = json.getAsJsonArray("related"); + JsonArray array = getJArray(json, "related"); for (int i = 0; i < array.size(); i++) { res.getRelated().add(parseReference(array.get(i).getAsJsonObject())); } @@ -12343,7 +12521,7 @@ public class JsonParser extends JsonParserBase { protected void parseEncounterProperties(JsonObject json, Encounter res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -12353,7 +12531,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("statusHistory")) { - JsonArray array = json.getAsJsonArray("statusHistory"); + JsonArray array = getJArray(json, "statusHistory"); for (int i = 0; i < array.size(); i++) { res.getStatusHistory().add(parseEncounterStatusHistoryComponent(array.get(i).getAsJsonObject())); } @@ -12361,13 +12539,13 @@ public class JsonParser extends JsonParserBase { if (json.has("class")) res.setClass_(parseCoding(getJObject(json, "class"))); if (json.has("classHistory")) { - JsonArray array = json.getAsJsonArray("classHistory"); + JsonArray array = getJArray(json, "classHistory"); for (int i = 0; i < array.size(); i++) { res.getClassHistory().add(parseEncounterClassHistoryComponent(array.get(i).getAsJsonObject())); } }; if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -12381,25 +12559,25 @@ public class JsonParser extends JsonParserBase { if (json.has("subjectStatus")) res.setSubjectStatus(parseCodeableConcept(getJObject(json, "subjectStatus"))); if (json.has("episodeOfCare")) { - JsonArray array = json.getAsJsonArray("episodeOfCare"); + JsonArray array = getJArray(json, "episodeOfCare"); for (int i = 0; i < array.size(); i++) { res.getEpisodeOfCare().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("participant")) { - JsonArray array = json.getAsJsonArray("participant"); + JsonArray array = getJArray(json, "participant"); for (int i = 0; i < array.size(); i++) { res.getParticipant().add(parseEncounterParticipantComponent(array.get(i).getAsJsonObject())); } }; if (json.has("appointment")) { - JsonArray array = json.getAsJsonArray("appointment"); + JsonArray array = getJArray(json, "appointment"); for (int i = 0; i < array.size(); i++) { res.getAppointment().add(parseReference(array.get(i).getAsJsonObject())); } @@ -12409,19 +12587,19 @@ public class JsonParser extends JsonParserBase { if (json.has("length")) res.setLength(parseDuration(getJObject(json, "length"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("diagnosis")) { - JsonArray array = json.getAsJsonArray("diagnosis"); + JsonArray array = getJArray(json, "diagnosis"); for (int i = 0; i < array.size(); i++) { res.getDiagnosis().add(parseEncounterDiagnosisComponent(array.get(i).getAsJsonObject())); } }; if (json.has("account")) { - JsonArray array = json.getAsJsonArray("account"); + JsonArray array = getJArray(json, "account"); for (int i = 0; i < array.size(); i++) { res.getAccount().add(parseReference(array.get(i).getAsJsonObject())); } @@ -12429,7 +12607,7 @@ public class JsonParser extends JsonParserBase { if (json.has("hospitalization")) res.setHospitalization(parseEncounterHospitalizationComponent(getJObject(json, "hospitalization"))); if (json.has("location")) { - JsonArray array = json.getAsJsonArray("location"); + JsonArray array = getJArray(json, "location"); for (int i = 0; i < array.size(); i++) { res.getLocation().add(parseEncounterLocationComponent(array.get(i).getAsJsonObject())); } @@ -12479,7 +12657,7 @@ public class JsonParser extends JsonParserBase { protected void parseEncounterParticipantComponentProperties(JsonObject json, Encounter.EncounterParticipantComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -12525,19 +12703,19 @@ public class JsonParser extends JsonParserBase { if (json.has("reAdmission")) res.setReAdmission(parseCodeableConcept(getJObject(json, "reAdmission"))); if (json.has("dietPreference")) { - JsonArray array = json.getAsJsonArray("dietPreference"); + JsonArray array = getJArray(json, "dietPreference"); for (int i = 0; i < array.size(); i++) { res.getDietPreference().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("specialCourtesy")) { - JsonArray array = json.getAsJsonArray("specialCourtesy"); + JsonArray array = getJArray(json, "specialCourtesy"); for (int i = 0; i < array.size(); i++) { res.getSpecialCourtesy().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("specialArrangement")) { - JsonArray array = json.getAsJsonArray("specialArrangement"); + JsonArray array = getJArray(json, "specialArrangement"); for (int i = 0; i < array.size(); i++) { res.getSpecialArrangement().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -12577,7 +12755,7 @@ public class JsonParser extends JsonParserBase { protected void parseEndpointProperties(JsonObject json, Endpoint res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -12595,7 +12773,7 @@ public class JsonParser extends JsonParserBase { if (json.has("managingOrganization")) res.setManagingOrganization(parseReference(getJObject(json, "managingOrganization"))); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactPoint(array.get(i).getAsJsonObject())); } @@ -12603,13 +12781,13 @@ public class JsonParser extends JsonParserBase { if (json.has("period")) res.setPeriod(parsePeriod(getJObject(json, "period"))); if (json.has("payloadType")) { - JsonArray array = json.getAsJsonArray("payloadType"); + JsonArray array = getJArray(json, "payloadType"); for (int i = 0; i < array.size(); i++) { res.getPayloadType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("payloadMimeType")) { - JsonArray array = json.getAsJsonArray("payloadMimeType"); + JsonArray array = getJArray(json, "payloadMimeType"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPayloadMimeType().add(new CodeType()); @@ -12619,7 +12797,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_payloadMimeType")) { - JsonArray array = json.getAsJsonArray("_payloadMimeType"); + JsonArray array = getJArray(json, "_payloadMimeType"); for (int i = 0; i < array.size(); i++) { if (i == res.getPayloadMimeType().size()) res.getPayloadMimeType().add(parseCode(null)); @@ -12632,7 +12810,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_address")) parseElementProperties(getJObject(json, "_address"), res.getAddressElement()); if (json.has("header")) { - JsonArray array = json.getAsJsonArray("header"); + JsonArray array = getJArray(json, "header"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getHeader().add(new StringType()); @@ -12642,7 +12820,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_header")) { - JsonArray array = json.getAsJsonArray("_header"); + JsonArray array = getJArray(json, "_header"); for (int i = 0; i < array.size(); i++) { if (i == res.getHeader().size()) res.getHeader().add(parseString(null)); @@ -12661,7 +12839,7 @@ public class JsonParser extends JsonParserBase { protected void parseEnrollmentRequestProperties(JsonObject json, EnrollmentRequest res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -12693,7 +12871,7 @@ public class JsonParser extends JsonParserBase { protected void parseEnrollmentResponseProperties(JsonObject json, EnrollmentResponse res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -12705,7 +12883,7 @@ public class JsonParser extends JsonParserBase { if (json.has("request")) res.setRequest(parseReference(getJObject(json, "request"))); if (json.has("outcome")) - res.setOutcomeElement(parseEnumeration(json.get("outcome").getAsString(), Enumerations.ClaimProcessingCodes.NULL, new Enumerations.ClaimProcessingCodesEnumFactory())); + res.setOutcomeElement(parseEnumeration(json.get("outcome").getAsString(), EnrollmentResponse.EnrollmentOutcome.NULL, new EnrollmentResponse.EnrollmentOutcomeEnumFactory())); if (json.has("_outcome")) parseElementProperties(getJObject(json, "_outcome"), res.getOutcomeElement()); if (json.has("disposition")) @@ -12731,7 +12909,7 @@ public class JsonParser extends JsonParserBase { protected void parseEpisodeOfCareProperties(JsonObject json, EpisodeOfCare res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -12741,19 +12919,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("statusHistory")) { - JsonArray array = json.getAsJsonArray("statusHistory"); + JsonArray array = getJArray(json, "statusHistory"); for (int i = 0; i < array.size(); i++) { res.getStatusHistory().add(parseEpisodeOfCareStatusHistoryComponent(array.get(i).getAsJsonObject())); } }; if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("diagnosis")) { - JsonArray array = json.getAsJsonArray("diagnosis"); + JsonArray array = getJArray(json, "diagnosis"); for (int i = 0; i < array.size(); i++) { res.getDiagnosis().add(parseEpisodeOfCareDiagnosisComponent(array.get(i).getAsJsonObject())); } @@ -12765,7 +12943,7 @@ public class JsonParser extends JsonParserBase { if (json.has("period")) res.setPeriod(parsePeriod(getJObject(json, "period"))); if (json.has("referralRequest")) { - JsonArray array = json.getAsJsonArray("referralRequest"); + JsonArray array = getJArray(json, "referralRequest"); for (int i = 0; i < array.size(); i++) { res.getReferralRequest().add(parseReference(array.get(i).getAsJsonObject())); } @@ -12773,13 +12951,13 @@ public class JsonParser extends JsonParserBase { if (json.has("careManager")) res.setCareManager(parseReference(getJObject(json, "careManager"))); if (json.has("team")) { - JsonArray array = json.getAsJsonArray("team"); + JsonArray array = getJArray(json, "team"); for (int i = 0; i < array.size(); i++) { res.getTeam().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("account")) { - JsonArray array = json.getAsJsonArray("account"); + JsonArray array = getJArray(json, "account"); for (int i = 0; i < array.size(); i++) { res.getAccount().add(parseReference(array.get(i).getAsJsonObject())); } @@ -12833,7 +13011,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -12874,7 +13052,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -12884,13 +13062,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -12918,43 +13096,43 @@ public class JsonParser extends JsonParserBase { if (json.has("effectivePeriod")) res.setEffectivePeriod(parsePeriod(getJObject(json, "effectivePeriod"))); if (json.has("topic")) { - JsonArray array = json.getAsJsonArray("topic"); + JsonArray array = getJArray(json, "topic"); for (int i = 0; i < array.size(); i++) { res.getTopic().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("author")) { - JsonArray array = json.getAsJsonArray("author"); + JsonArray array = getJArray(json, "author"); for (int i = 0; i < array.size(); i++) { res.getAuthor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("editor")) { - JsonArray array = json.getAsJsonArray("editor"); + JsonArray array = getJArray(json, "editor"); for (int i = 0; i < array.size(); i++) { res.getEditor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("reviewer")) { - JsonArray array = json.getAsJsonArray("reviewer"); + JsonArray array = getJArray(json, "reviewer"); for (int i = 0; i < array.size(); i++) { res.getReviewer().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("endorser")) { - JsonArray array = json.getAsJsonArray("endorser"); + JsonArray array = getJArray(json, "endorser"); for (int i = 0; i < array.size(); i++) { res.getEndorser().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("relatedArtifact")) { - JsonArray array = json.getAsJsonArray("relatedArtifact"); + JsonArray array = getJArray(json, "relatedArtifact"); for (int i = 0; i < array.size(); i++) { res.getRelatedArtifact().add(parseRelatedArtifact(array.get(i).getAsJsonObject())); } }; if (json.has("trigger")) { - JsonArray array = json.getAsJsonArray("trigger"); + JsonArray array = getJArray(json, "trigger"); for (int i = 0; i < array.size(); i++) { res.getTrigger().add(parseTriggerDefinition(array.get(i).getAsJsonObject())); } @@ -12974,7 +13152,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -12987,6 +13165,9 @@ public class JsonParser extends JsonParserBase { res.setTitleElement(parseString(json.get("title").getAsString())); if (json.has("_title")) parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); + DataType citeAs = parseType("citeAs", json); + if (citeAs != null) + res.setCiteAs(citeAs); if (json.has("status")) res.setStatusElement(parseEnumeration(json.get("status").getAsString(), Enumerations.PublicationStatus.NULL, new Enumerations.PublicationStatusEnumFactory())); if (json.has("_status")) @@ -12996,7 +13177,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_date")) parseElementProperties(getJObject(json, "_date"), res.getDateElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } @@ -13014,37 +13195,37 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("author")) { - JsonArray array = json.getAsJsonArray("author"); + JsonArray array = getJArray(json, "author"); for (int i = 0; i < array.size(); i++) { res.getAuthor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("editor")) { - JsonArray array = json.getAsJsonArray("editor"); + JsonArray array = getJArray(json, "editor"); for (int i = 0; i < array.size(); i++) { res.getEditor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("reviewer")) { - JsonArray array = json.getAsJsonArray("reviewer"); + JsonArray array = getJArray(json, "reviewer"); for (int i = 0; i < array.size(); i++) { res.getReviewer().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("endorser")) { - JsonArray array = json.getAsJsonArray("endorser"); + JsonArray array = getJArray(json, "endorser"); for (int i = 0; i < array.size(); i++) { res.getEndorser().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("relatedArtifact")) { - JsonArray array = json.getAsJsonArray("relatedArtifact"); + JsonArray array = getJArray(json, "relatedArtifact"); for (int i = 0; i < array.size(); i++) { res.getRelatedArtifact().add(parseRelatedArtifact(array.get(i).getAsJsonObject())); } @@ -13058,13 +13239,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_assertion")) parseElementProperties(getJObject(json, "_assertion"), res.getAssertionElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("variableDefinition")) { - JsonArray array = json.getAsJsonArray("variableDefinition"); + JsonArray array = getJArray(json, "variableDefinition"); for (int i = 0; i < array.size(); i++) { res.getVariableDefinition().add(parseEvidenceVariableDefinitionComponent(array.get(i).getAsJsonObject())); } @@ -13074,19 +13255,19 @@ public class JsonParser extends JsonParserBase { if (json.has("studyType")) res.setStudyType(parseCodeableConcept(getJObject(json, "studyType"))); if (json.has("statistic")) { - JsonArray array = json.getAsJsonArray("statistic"); + JsonArray array = getJArray(json, "statistic"); for (int i = 0; i < array.size(); i++) { res.getStatistic().add(parseStatistic(array.get(i).getAsJsonObject())); } }; if (json.has("distribution")) { - JsonArray array = json.getAsJsonArray("distribution"); + JsonArray array = getJArray(json, "distribution"); for (int i = 0; i < array.size(); i++) { res.getDistribution().add(parseOrderedDistribution(array.get(i).getAsJsonObject())); } }; if (json.has("certainty")) { - JsonArray array = json.getAsJsonArray("certainty"); + JsonArray array = getJArray(json, "certainty"); for (int i = 0; i < array.size(); i++) { res.getCertainty().add(parseEvidenceCertaintyComponent(array.get(i).getAsJsonObject())); } @@ -13106,7 +13287,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -13134,53 +13315,23 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; - if (json.has("rating")) { - JsonArray array = json.getAsJsonArray("rating"); + if (json.has("type")) + res.setType(parseCodeableConcept(getJObject(json, "type"))); + if (json.has("rating")) + res.setRating(parseCodeableConcept(getJObject(json, "rating"))); + if (json.has("rater")) + res.setRaterElement(parseString(json.get("rater").getAsString())); + if (json.has("_rater")) + parseElementProperties(getJObject(json, "_rater"), res.getRaterElement()); + if (json.has("subcomponent")) { + JsonArray array = getJArray(json, "subcomponent"); for (int i = 0; i < array.size(); i++) { - res.getRating().add(parseCodeableConcept(array.get(i).getAsJsonObject())); - } - }; - if (json.has("certaintySubcomponent")) { - JsonArray array = json.getAsJsonArray("certaintySubcomponent"); - for (int i = 0; i < array.size(); i++) { - res.getCertaintySubcomponent().add(parseEvidenceCertaintyCertaintySubcomponentComponent(array.get(i).getAsJsonObject())); - } - }; - } - - protected Evidence.EvidenceCertaintyCertaintySubcomponentComponent parseEvidenceCertaintyCertaintySubcomponentComponent(JsonObject json) throws IOException, FHIRFormatError { - Evidence.EvidenceCertaintyCertaintySubcomponentComponent res = new Evidence.EvidenceCertaintyCertaintySubcomponentComponent(); - parseEvidenceCertaintyCertaintySubcomponentComponentProperties(json, res); - return res; - } - - protected void parseEvidenceCertaintyCertaintySubcomponentComponentProperties(JsonObject json, Evidence.EvidenceCertaintyCertaintySubcomponentComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("description")) - res.setDescriptionElement(parseString(json.get("description").getAsString())); - if (json.has("_description")) - parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); - if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); - for (int i = 0; i < array.size(); i++) { - res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); - } - }; - if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); - for (int i = 0; i < array.size(); i++) { - res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); - } - }; - if (json.has("rating")) { - JsonArray array = json.getAsJsonArray("rating"); - for (int i = 0; i < array.size(); i++) { - res.getRating().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + res.getSubcomponent().add(parseEvidenceCertaintyComponent(array.get(i).getAsJsonObject())); } }; } @@ -13202,35 +13353,36 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("relatedIdentifier")) { - JsonArray array = json.getAsJsonArray("relatedIdentifier"); + JsonArray array = getJArray(json, "relatedIdentifier"); for (int i = 0; i < array.size(); i++) { res.getRelatedIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; - if (json.has("citeAs")) - res.setCiteAs(parseReference(getJObject(json, "citeAs"))); + DataType citeAs = parseType("citeAs", json); + if (citeAs != null) + res.setCiteAs(citeAs); if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("relatedArtifact")) { - JsonArray array = json.getAsJsonArray("relatedArtifact"); + JsonArray array = getJArray(json, "relatedArtifact"); for (int i = 0; i < array.size(); i++) { res.getRelatedArtifact().add(parseRelatedArtifact(array.get(i).getAsJsonObject())); } @@ -13242,43 +13394,43 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("author")) { - JsonArray array = json.getAsJsonArray("author"); + JsonArray array = getJArray(json, "author"); for (int i = 0; i < array.size(); i++) { res.getAuthor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("editor")) { - JsonArray array = json.getAsJsonArray("editor"); + JsonArray array = getJArray(json, "editor"); for (int i = 0; i < array.size(); i++) { res.getEditor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("reviewer")) { - JsonArray array = json.getAsJsonArray("reviewer"); + JsonArray array = getJArray(json, "reviewer"); for (int i = 0; i < array.size(); i++) { res.getReviewer().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("endorser")) { - JsonArray array = json.getAsJsonArray("endorser"); + JsonArray array = getJArray(json, "endorser"); for (int i = 0; i < array.size(); i++) { res.getEndorser().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("relatesTo")) { - JsonArray array = json.getAsJsonArray("relatesTo"); + JsonArray array = getJArray(json, "relatesTo"); for (int i = 0; i < array.size(); i++) { res.getRelatesTo().add(parseEvidenceReportRelatesToComponent(array.get(i).getAsJsonObject())); } }; if (json.has("section")) { - JsonArray array = json.getAsJsonArray("section"); + JsonArray array = getJArray(json, "section"); for (int i = 0; i < array.size(); i++) { res.getSection().add(parseEvidenceReportSectionComponent(array.get(i).getAsJsonObject())); } @@ -13294,13 +13446,13 @@ public class JsonParser extends JsonParserBase { protected void parseEvidenceReportSubjectComponentProperties(JsonObject json, EvidenceReport.EvidenceReportSubjectComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("characteristic")) { - JsonArray array = json.getAsJsonArray("characteristic"); + JsonArray array = getJArray(json, "characteristic"); for (int i = 0; i < array.size(); i++) { res.getCharacteristic().add(parseEvidenceReportSubjectCharacteristicComponent(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -13362,7 +13514,7 @@ public class JsonParser extends JsonParserBase { if (json.has("focusReference")) res.setFocusReference(parseReference(getJObject(json, "focusReference"))); if (json.has("author")) { - JsonArray array = json.getAsJsonArray("author"); + JsonArray array = getJArray(json, "author"); for (int i = 0; i < array.size(); i++) { res.getAuthor().add(parseReference(array.get(i).getAsJsonObject())); } @@ -13376,21 +13528,27 @@ public class JsonParser extends JsonParserBase { if (json.has("orderedBy")) res.setOrderedBy(parseCodeableConcept(getJObject(json, "orderedBy"))); if (json.has("entryClassifier")) { - JsonArray array = json.getAsJsonArray("entryClassifier"); + JsonArray array = getJArray(json, "entryClassifier"); for (int i = 0; i < array.size(); i++) { res.getEntryClassifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("entryReference")) { - JsonArray array = json.getAsJsonArray("entryReference"); + JsonArray array = getJArray(json, "entryReference"); for (int i = 0; i < array.size(); i++) { res.getEntryReference().add(parseReference(array.get(i).getAsJsonObject())); } }; + if (json.has("entryQuantity")) { + JsonArray array = getJArray(json, "entryQuantity"); + for (int i = 0; i < array.size(); i++) { + res.getEntryQuantity().add(parseQuantity(array.get(i).getAsJsonObject())); + } + }; if (json.has("emptyReason")) res.setEmptyReason(parseCodeableConcept(getJObject(json, "emptyReason"))); if (json.has("section")) { - JsonArray array = json.getAsJsonArray("section"); + JsonArray array = getJArray(json, "section"); for (int i = 0; i < array.size(); i++) { res.getSection().add(parseEvidenceReportSectionComponent(array.get(i).getAsJsonObject())); } @@ -13410,7 +13568,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -13448,13 +13606,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } @@ -13464,37 +13622,37 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("author")) { - JsonArray array = json.getAsJsonArray("author"); + JsonArray array = getJArray(json, "author"); for (int i = 0; i < array.size(); i++) { res.getAuthor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("editor")) { - JsonArray array = json.getAsJsonArray("editor"); + JsonArray array = getJArray(json, "editor"); for (int i = 0; i < array.size(); i++) { res.getEditor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("reviewer")) { - JsonArray array = json.getAsJsonArray("reviewer"); + JsonArray array = getJArray(json, "reviewer"); for (int i = 0; i < array.size(); i++) { res.getReviewer().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("endorser")) { - JsonArray array = json.getAsJsonArray("endorser"); + JsonArray array = getJArray(json, "endorser"); for (int i = 0; i < array.size(); i++) { res.getEndorser().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("relatedArtifact")) { - JsonArray array = json.getAsJsonArray("relatedArtifact"); + JsonArray array = getJArray(json, "relatedArtifact"); for (int i = 0; i < array.size(); i++) { res.getRelatedArtifact().add(parseRelatedArtifact(array.get(i).getAsJsonObject())); } @@ -13508,7 +13666,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_characteristicCombination")) parseElementProperties(getJObject(json, "_characteristicCombination"), res.getCharacteristicCombinationElement()); if (json.has("characteristic")) { - JsonArray array = json.getAsJsonArray("characteristic"); + JsonArray array = getJArray(json, "characteristic"); for (int i = 0; i < array.size(); i++) { res.getCharacteristic().add(parseEvidenceVariableCharacteristicComponent(array.get(i).getAsJsonObject())); } @@ -13518,7 +13676,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_handling")) parseElementProperties(getJObject(json, "_handling"), res.getHandlingElement()); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseEvidenceVariableCategoryComponent(array.get(i).getAsJsonObject())); } @@ -13573,7 +13731,7 @@ public class JsonParser extends JsonParserBase { if (json.has("range")) res.setRange(parseRange(getJObject(json, "range"))); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -13610,7 +13768,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -13640,19 +13798,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -13666,25 +13824,25 @@ public class JsonParser extends JsonParserBase { if (json.has("_copyright")) parseElementProperties(getJObject(json, "_copyright"), res.getCopyrightElement()); if (json.has("actor")) { - JsonArray array = json.getAsJsonArray("actor"); + JsonArray array = getJArray(json, "actor"); for (int i = 0; i < array.size(); i++) { res.getActor().add(parseExampleScenarioActorComponent(array.get(i).getAsJsonObject())); } }; if (json.has("instance")) { - JsonArray array = json.getAsJsonArray("instance"); + JsonArray array = getJArray(json, "instance"); for (int i = 0; i < array.size(); i++) { res.getInstance().add(parseExampleScenarioInstanceComponent(array.get(i).getAsJsonObject())); } }; if (json.has("process")) { - JsonArray array = json.getAsJsonArray("process"); + JsonArray array = getJArray(json, "process"); for (int i = 0; i < array.size(); i++) { res.getProcess().add(parseExampleScenarioProcessComponent(array.get(i).getAsJsonObject())); } }; if (json.has("workflow")) { - JsonArray array = json.getAsJsonArray("workflow"); + JsonArray array = getJArray(json, "workflow"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getWorkflow().add(new CanonicalType()); @@ -13694,7 +13852,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_workflow")) { - JsonArray array = json.getAsJsonArray("_workflow"); + JsonArray array = getJArray(json, "_workflow"); for (int i = 0; i < array.size(); i++) { if (i == res.getWorkflow().size()) res.getWorkflow().add(parseCanonical(null)); @@ -13755,13 +13913,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("version")) { - JsonArray array = json.getAsJsonArray("version"); + JsonArray array = getJArray(json, "version"); for (int i = 0; i < array.size(); i++) { res.getVersion().add(parseExampleScenarioInstanceVersionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("containedInstance")) { - JsonArray array = json.getAsJsonArray("containedInstance"); + JsonArray array = getJArray(json, "containedInstance"); for (int i = 0; i < array.size(); i++) { res.getContainedInstance().add(parseExampleScenarioInstanceContainedInstanceComponent(array.get(i).getAsJsonObject())); } @@ -13829,7 +13987,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_postConditions")) parseElementProperties(getJObject(json, "_postConditions"), res.getPostConditionsElement()); if (json.has("step")) { - JsonArray array = json.getAsJsonArray("step"); + JsonArray array = getJArray(json, "step"); for (int i = 0; i < array.size(); i++) { res.getStep().add(parseExampleScenarioProcessStepComponent(array.get(i).getAsJsonObject())); } @@ -13845,7 +14003,7 @@ public class JsonParser extends JsonParserBase { protected void parseExampleScenarioProcessStepComponentProperties(JsonObject json, ExampleScenario.ExampleScenarioProcessStepComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("process")) { - JsonArray array = json.getAsJsonArray("process"); + JsonArray array = getJArray(json, "process"); for (int i = 0; i < array.size(); i++) { res.getProcess().add(parseExampleScenarioProcessComponent(array.get(i).getAsJsonObject())); } @@ -13857,7 +14015,7 @@ public class JsonParser extends JsonParserBase { if (json.has("operation")) res.setOperation(parseExampleScenarioProcessStepOperationComponent(getJObject(json, "operation"))); if (json.has("alternative")) { - JsonArray array = json.getAsJsonArray("alternative"); + JsonArray array = getJArray(json, "alternative"); for (int i = 0; i < array.size(); i++) { res.getAlternative().add(parseExampleScenarioProcessStepAlternativeComponent(array.get(i).getAsJsonObject())); } @@ -13927,7 +14085,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("step")) { - JsonArray array = json.getAsJsonArray("step"); + JsonArray array = getJArray(json, "step"); for (int i = 0; i < array.size(); i++) { res.getStep().add(parseExampleScenarioProcessStepComponent(array.get(i).getAsJsonObject())); } @@ -13943,7 +14101,7 @@ public class JsonParser extends JsonParserBase { protected void parseExplanationOfBenefitProperties(JsonObject json, ExplanationOfBenefit res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -13981,7 +14139,7 @@ public class JsonParser extends JsonParserBase { if (json.has("fundsReserve")) res.setFundsReserve(parseCodeableConcept(getJObject(json, "fundsReserve"))); if (json.has("related")) { - JsonArray array = json.getAsJsonArray("related"); + JsonArray array = getJArray(json, "related"); for (int i = 0; i < array.size(); i++) { res.getRelated().add(parseExplanationOfBenefitRelatedClaimComponent(array.get(i).getAsJsonObject())); } @@ -14009,7 +14167,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_disposition")) parseElementProperties(getJObject(json, "_disposition"), res.getDispositionElement()); if (json.has("preAuthRef")) { - JsonArray array = json.getAsJsonArray("preAuthRef"); + JsonArray array = getJArray(json, "preAuthRef"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPreAuthRef().add(new StringType()); @@ -14019,7 +14177,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_preAuthRef")) { - JsonArray array = json.getAsJsonArray("_preAuthRef"); + JsonArray array = getJArray(json, "_preAuthRef"); for (int i = 0; i < array.size(); i++) { if (i == res.getPreAuthRef().size()) res.getPreAuthRef().add(parseString(null)); @@ -14028,31 +14186,31 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("preAuthRefPeriod")) { - JsonArray array = json.getAsJsonArray("preAuthRefPeriod"); + JsonArray array = getJArray(json, "preAuthRefPeriod"); for (int i = 0; i < array.size(); i++) { res.getPreAuthRefPeriod().add(parsePeriod(array.get(i).getAsJsonObject())); } }; if (json.has("careTeam")) { - JsonArray array = json.getAsJsonArray("careTeam"); + JsonArray array = getJArray(json, "careTeam"); for (int i = 0; i < array.size(); i++) { res.getCareTeam().add(parseExplanationOfBenefitCareTeamComponent(array.get(i).getAsJsonObject())); } }; if (json.has("supportingInfo")) { - JsonArray array = json.getAsJsonArray("supportingInfo"); + JsonArray array = getJArray(json, "supportingInfo"); for (int i = 0; i < array.size(); i++) { res.getSupportingInfo().add(parseExplanationOfBenefitSupportingInformationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("diagnosis")) { - JsonArray array = json.getAsJsonArray("diagnosis"); + JsonArray array = getJArray(json, "diagnosis"); for (int i = 0; i < array.size(); i++) { res.getDiagnosis().add(parseExplanationOfBenefitDiagnosisComponent(array.get(i).getAsJsonObject())); } }; if (json.has("procedure")) { - JsonArray array = json.getAsJsonArray("procedure"); + JsonArray array = getJArray(json, "procedure"); for (int i = 0; i < array.size(); i++) { res.getProcedure().add(parseExplanationOfBenefitProcedureComponent(array.get(i).getAsJsonObject())); } @@ -14062,7 +14220,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_precedence")) parseElementProperties(getJObject(json, "_precedence"), res.getPrecedenceElement()); if (json.has("insurance")) { - JsonArray array = json.getAsJsonArray("insurance"); + JsonArray array = getJArray(json, "insurance"); for (int i = 0; i < array.size(); i++) { res.getInsurance().add(parseExplanationOfBenefitInsuranceComponent(array.get(i).getAsJsonObject())); } @@ -14070,25 +14228,25 @@ public class JsonParser extends JsonParserBase { if (json.has("accident")) res.setAccident(parseExplanationOfBenefitAccidentComponent(getJObject(json, "accident"))); if (json.has("item")) { - JsonArray array = json.getAsJsonArray("item"); + JsonArray array = getJArray(json, "item"); for (int i = 0; i < array.size(); i++) { res.getItem().add(parseExplanationOfBenefitItemComponent(array.get(i).getAsJsonObject())); } }; if (json.has("addItem")) { - JsonArray array = json.getAsJsonArray("addItem"); + JsonArray array = getJArray(json, "addItem"); for (int i = 0; i < array.size(); i++) { res.getAddItem().add(parseExplanationOfBenefitAddedItemComponent(array.get(i).getAsJsonObject())); } }; if (json.has("adjudication")) { - JsonArray array = json.getAsJsonArray("adjudication"); + JsonArray array = getJArray(json, "adjudication"); for (int i = 0; i < array.size(); i++) { res.getAdjudication().add(parseExplanationOfBenefitAdjudicationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("total")) { - JsonArray array = json.getAsJsonArray("total"); + JsonArray array = getJArray(json, "total"); for (int i = 0; i < array.size(); i++) { res.getTotal().add(parseExplanationOfBenefitTotalComponent(array.get(i).getAsJsonObject())); } @@ -14100,7 +14258,7 @@ public class JsonParser extends JsonParserBase { if (json.has("form")) res.setForm(parseAttachment(getJObject(json, "form"))); if (json.has("processNote")) { - JsonArray array = json.getAsJsonArray("processNote"); + JsonArray array = getJArray(json, "processNote"); for (int i = 0; i < array.size(); i++) { res.getProcessNote().add(parseExplanationOfBenefitNoteComponent(array.get(i).getAsJsonObject())); } @@ -14108,7 +14266,7 @@ public class JsonParser extends JsonParserBase { if (json.has("benefitPeriod")) res.setBenefitPeriod(parsePeriod(getJObject(json, "benefitPeriod"))); if (json.has("benefitBalance")) { - JsonArray array = json.getAsJsonArray("benefitBalance"); + JsonArray array = getJArray(json, "benefitBalance"); for (int i = 0; i < array.size(); i++) { res.getBenefitBalance().add(parseExplanationOfBenefitBenefitBalanceComponent(array.get(i).getAsJsonObject())); } @@ -14211,7 +14369,7 @@ public class JsonParser extends JsonParserBase { if (diagnosis != null) res.setDiagnosis(diagnosis); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -14235,7 +14393,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_sequence")) parseElementProperties(getJObject(json, "_sequence"), res.getSequenceElement()); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -14248,7 +14406,7 @@ public class JsonParser extends JsonParserBase { if (procedure != null) res.setProcedure(procedure); if (json.has("udi")) { - JsonArray array = json.getAsJsonArray("udi"); + JsonArray array = getJArray(json, "udi"); for (int i = 0; i < array.size(); i++) { res.getUdi().add(parseReference(array.get(i).getAsJsonObject())); } @@ -14270,7 +14428,7 @@ public class JsonParser extends JsonParserBase { if (json.has("coverage")) res.setCoverage(parseReference(getJObject(json, "coverage"))); if (json.has("preAuthRef")) { - JsonArray array = json.getAsJsonArray("preAuthRef"); + JsonArray array = getJArray(json, "preAuthRef"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPreAuthRef().add(new StringType()); @@ -14280,7 +14438,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_preAuthRef")) { - JsonArray array = json.getAsJsonArray("_preAuthRef"); + JsonArray array = getJArray(json, "_preAuthRef"); for (int i = 0; i < array.size(); i++) { if (i == res.getPreAuthRef().size()) res.getPreAuthRef().add(parseString(null)); @@ -14322,7 +14480,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_sequence")) parseElementProperties(getJObject(json, "_sequence"), res.getSequenceElement()); if (json.has("careTeamSequence")) { - JsonArray array = json.getAsJsonArray("careTeamSequence"); + JsonArray array = getJArray(json, "careTeamSequence"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getCareTeamSequence().add(new PositiveIntType()); @@ -14332,7 +14490,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_careTeamSequence")) { - JsonArray array = json.getAsJsonArray("_careTeamSequence"); + JsonArray array = getJArray(json, "_careTeamSequence"); for (int i = 0; i < array.size(); i++) { if (i == res.getCareTeamSequence().size()) res.getCareTeamSequence().add(parsePositiveInt(null)); @@ -14341,7 +14499,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("diagnosisSequence")) { - JsonArray array = json.getAsJsonArray("diagnosisSequence"); + JsonArray array = getJArray(json, "diagnosisSequence"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDiagnosisSequence().add(new PositiveIntType()); @@ -14351,7 +14509,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_diagnosisSequence")) { - JsonArray array = json.getAsJsonArray("_diagnosisSequence"); + JsonArray array = getJArray(json, "_diagnosisSequence"); for (int i = 0; i < array.size(); i++) { if (i == res.getDiagnosisSequence().size()) res.getDiagnosisSequence().add(parsePositiveInt(null)); @@ -14360,7 +14518,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("procedureSequence")) { - JsonArray array = json.getAsJsonArray("procedureSequence"); + JsonArray array = getJArray(json, "procedureSequence"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getProcedureSequence().add(new PositiveIntType()); @@ -14370,7 +14528,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_procedureSequence")) { - JsonArray array = json.getAsJsonArray("_procedureSequence"); + JsonArray array = getJArray(json, "_procedureSequence"); for (int i = 0; i < array.size(); i++) { if (i == res.getProcedureSequence().size()) res.getProcedureSequence().add(parsePositiveInt(null)); @@ -14379,7 +14537,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("informationSequence")) { - JsonArray array = json.getAsJsonArray("informationSequence"); + JsonArray array = getJArray(json, "informationSequence"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInformationSequence().add(new PositiveIntType()); @@ -14389,7 +14547,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_informationSequence")) { - JsonArray array = json.getAsJsonArray("_informationSequence"); + JsonArray array = getJArray(json, "_informationSequence"); for (int i = 0; i < array.size(); i++) { if (i == res.getInformationSequence().size()) res.getInformationSequence().add(parsePositiveInt(null)); @@ -14404,13 +14562,13 @@ public class JsonParser extends JsonParserBase { if (json.has("productOrService")) res.setProductOrService(parseCodeableConcept(getJObject(json, "productOrService"))); if (json.has("modifier")) { - JsonArray array = json.getAsJsonArray("modifier"); + JsonArray array = getJArray(json, "modifier"); for (int i = 0; i < array.size(); i++) { res.getModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("programCode")) { - JsonArray array = json.getAsJsonArray("programCode"); + JsonArray array = getJArray(json, "programCode"); for (int i = 0; i < array.size(); i++) { res.getProgramCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -14432,7 +14590,7 @@ public class JsonParser extends JsonParserBase { if (json.has("net")) res.setNet(parseMoney(getJObject(json, "net"))); if (json.has("udi")) { - JsonArray array = json.getAsJsonArray("udi"); + JsonArray array = getJArray(json, "udi"); for (int i = 0; i < array.size(); i++) { res.getUdi().add(parseReference(array.get(i).getAsJsonObject())); } @@ -14440,19 +14598,19 @@ public class JsonParser extends JsonParserBase { if (json.has("bodySite")) res.setBodySite(parseCodeableConcept(getJObject(json, "bodySite"))); if (json.has("subSite")) { - JsonArray array = json.getAsJsonArray("subSite"); + JsonArray array = getJArray(json, "subSite"); for (int i = 0; i < array.size(); i++) { res.getSubSite().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("encounter")) { - JsonArray array = json.getAsJsonArray("encounter"); + JsonArray array = getJArray(json, "encounter"); for (int i = 0; i < array.size(); i++) { res.getEncounter().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("noteNumber")) { - JsonArray array = json.getAsJsonArray("noteNumber"); + JsonArray array = getJArray(json, "noteNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNoteNumber().add(new PositiveIntType()); @@ -14462,7 +14620,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_noteNumber")) { - JsonArray array = json.getAsJsonArray("_noteNumber"); + JsonArray array = getJArray(json, "_noteNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getNoteNumber().size()) res.getNoteNumber().add(parsePositiveInt(null)); @@ -14471,13 +14629,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("adjudication")) { - JsonArray array = json.getAsJsonArray("adjudication"); + JsonArray array = getJArray(json, "adjudication"); for (int i = 0; i < array.size(); i++) { res.getAdjudication().add(parseExplanationOfBenefitAdjudicationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("detail")) { - JsonArray array = json.getAsJsonArray("detail"); + JsonArray array = getJArray(json, "detail"); for (int i = 0; i < array.size(); i++) { res.getDetail().add(parseExplanationOfBenefitDetailComponent(array.get(i).getAsJsonObject())); } @@ -14523,13 +14681,13 @@ public class JsonParser extends JsonParserBase { if (json.has("productOrService")) res.setProductOrService(parseCodeableConcept(getJObject(json, "productOrService"))); if (json.has("modifier")) { - JsonArray array = json.getAsJsonArray("modifier"); + JsonArray array = getJArray(json, "modifier"); for (int i = 0; i < array.size(); i++) { res.getModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("programCode")) { - JsonArray array = json.getAsJsonArray("programCode"); + JsonArray array = getJArray(json, "programCode"); for (int i = 0; i < array.size(); i++) { res.getProgramCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -14545,13 +14703,13 @@ public class JsonParser extends JsonParserBase { if (json.has("net")) res.setNet(parseMoney(getJObject(json, "net"))); if (json.has("udi")) { - JsonArray array = json.getAsJsonArray("udi"); + JsonArray array = getJArray(json, "udi"); for (int i = 0; i < array.size(); i++) { res.getUdi().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("noteNumber")) { - JsonArray array = json.getAsJsonArray("noteNumber"); + JsonArray array = getJArray(json, "noteNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNoteNumber().add(new PositiveIntType()); @@ -14561,7 +14719,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_noteNumber")) { - JsonArray array = json.getAsJsonArray("_noteNumber"); + JsonArray array = getJArray(json, "_noteNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getNoteNumber().size()) res.getNoteNumber().add(parsePositiveInt(null)); @@ -14570,13 +14728,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("adjudication")) { - JsonArray array = json.getAsJsonArray("adjudication"); + JsonArray array = getJArray(json, "adjudication"); for (int i = 0; i < array.size(); i++) { res.getAdjudication().add(parseExplanationOfBenefitAdjudicationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("subDetail")) { - JsonArray array = json.getAsJsonArray("subDetail"); + JsonArray array = getJArray(json, "subDetail"); for (int i = 0; i < array.size(); i++) { res.getSubDetail().add(parseExplanationOfBenefitSubDetailComponent(array.get(i).getAsJsonObject())); } @@ -14602,13 +14760,13 @@ public class JsonParser extends JsonParserBase { if (json.has("productOrService")) res.setProductOrService(parseCodeableConcept(getJObject(json, "productOrService"))); if (json.has("modifier")) { - JsonArray array = json.getAsJsonArray("modifier"); + JsonArray array = getJArray(json, "modifier"); for (int i = 0; i < array.size(); i++) { res.getModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("programCode")) { - JsonArray array = json.getAsJsonArray("programCode"); + JsonArray array = getJArray(json, "programCode"); for (int i = 0; i < array.size(); i++) { res.getProgramCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -14624,13 +14782,13 @@ public class JsonParser extends JsonParserBase { if (json.has("net")) res.setNet(parseMoney(getJObject(json, "net"))); if (json.has("udi")) { - JsonArray array = json.getAsJsonArray("udi"); + JsonArray array = getJArray(json, "udi"); for (int i = 0; i < array.size(); i++) { res.getUdi().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("noteNumber")) { - JsonArray array = json.getAsJsonArray("noteNumber"); + JsonArray array = getJArray(json, "noteNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNoteNumber().add(new PositiveIntType()); @@ -14640,7 +14798,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_noteNumber")) { - JsonArray array = json.getAsJsonArray("_noteNumber"); + JsonArray array = getJArray(json, "_noteNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getNoteNumber().size()) res.getNoteNumber().add(parsePositiveInt(null)); @@ -14649,7 +14807,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("adjudication")) { - JsonArray array = json.getAsJsonArray("adjudication"); + JsonArray array = getJArray(json, "adjudication"); for (int i = 0; i < array.size(); i++) { res.getAdjudication().add(parseExplanationOfBenefitAdjudicationComponent(array.get(i).getAsJsonObject())); } @@ -14665,7 +14823,7 @@ public class JsonParser extends JsonParserBase { protected void parseExplanationOfBenefitAddedItemComponentProperties(JsonObject json, ExplanationOfBenefit.AddedItemComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("itemSequence")) { - JsonArray array = json.getAsJsonArray("itemSequence"); + JsonArray array = getJArray(json, "itemSequence"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getItemSequence().add(new PositiveIntType()); @@ -14675,7 +14833,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_itemSequence")) { - JsonArray array = json.getAsJsonArray("_itemSequence"); + JsonArray array = getJArray(json, "_itemSequence"); for (int i = 0; i < array.size(); i++) { if (i == res.getItemSequence().size()) res.getItemSequence().add(parsePositiveInt(null)); @@ -14684,7 +14842,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("detailSequence")) { - JsonArray array = json.getAsJsonArray("detailSequence"); + JsonArray array = getJArray(json, "detailSequence"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDetailSequence().add(new PositiveIntType()); @@ -14694,7 +14852,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_detailSequence")) { - JsonArray array = json.getAsJsonArray("_detailSequence"); + JsonArray array = getJArray(json, "_detailSequence"); for (int i = 0; i < array.size(); i++) { if (i == res.getDetailSequence().size()) res.getDetailSequence().add(parsePositiveInt(null)); @@ -14703,7 +14861,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("subDetailSequence")) { - JsonArray array = json.getAsJsonArray("subDetailSequence"); + JsonArray array = getJArray(json, "subDetailSequence"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSubDetailSequence().add(new PositiveIntType()); @@ -14713,7 +14871,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_subDetailSequence")) { - JsonArray array = json.getAsJsonArray("_subDetailSequence"); + JsonArray array = getJArray(json, "_subDetailSequence"); for (int i = 0; i < array.size(); i++) { if (i == res.getSubDetailSequence().size()) res.getSubDetailSequence().add(parsePositiveInt(null)); @@ -14722,7 +14880,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("provider")) { - JsonArray array = json.getAsJsonArray("provider"); + JsonArray array = getJArray(json, "provider"); for (int i = 0; i < array.size(); i++) { res.getProvider().add(parseReference(array.get(i).getAsJsonObject())); } @@ -14730,13 +14888,13 @@ public class JsonParser extends JsonParserBase { if (json.has("productOrService")) res.setProductOrService(parseCodeableConcept(getJObject(json, "productOrService"))); if (json.has("modifier")) { - JsonArray array = json.getAsJsonArray("modifier"); + JsonArray array = getJArray(json, "modifier"); for (int i = 0; i < array.size(); i++) { res.getModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("programCode")) { - JsonArray array = json.getAsJsonArray("programCode"); + JsonArray array = getJArray(json, "programCode"); for (int i = 0; i < array.size(); i++) { res.getProgramCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -14760,13 +14918,13 @@ public class JsonParser extends JsonParserBase { if (json.has("bodySite")) res.setBodySite(parseCodeableConcept(getJObject(json, "bodySite"))); if (json.has("subSite")) { - JsonArray array = json.getAsJsonArray("subSite"); + JsonArray array = getJArray(json, "subSite"); for (int i = 0; i < array.size(); i++) { res.getSubSite().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("noteNumber")) { - JsonArray array = json.getAsJsonArray("noteNumber"); + JsonArray array = getJArray(json, "noteNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNoteNumber().add(new PositiveIntType()); @@ -14776,7 +14934,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_noteNumber")) { - JsonArray array = json.getAsJsonArray("_noteNumber"); + JsonArray array = getJArray(json, "_noteNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getNoteNumber().size()) res.getNoteNumber().add(parsePositiveInt(null)); @@ -14785,13 +14943,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("adjudication")) { - JsonArray array = json.getAsJsonArray("adjudication"); + JsonArray array = getJArray(json, "adjudication"); for (int i = 0; i < array.size(); i++) { res.getAdjudication().add(parseExplanationOfBenefitAdjudicationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("detail")) { - JsonArray array = json.getAsJsonArray("detail"); + JsonArray array = getJArray(json, "detail"); for (int i = 0; i < array.size(); i++) { res.getDetail().add(parseExplanationOfBenefitAddedItemDetailComponent(array.get(i).getAsJsonObject())); } @@ -14809,7 +14967,7 @@ public class JsonParser extends JsonParserBase { if (json.has("productOrService")) res.setProductOrService(parseCodeableConcept(getJObject(json, "productOrService"))); if (json.has("modifier")) { - JsonArray array = json.getAsJsonArray("modifier"); + JsonArray array = getJArray(json, "modifier"); for (int i = 0; i < array.size(); i++) { res.getModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -14825,7 +14983,7 @@ public class JsonParser extends JsonParserBase { if (json.has("net")) res.setNet(parseMoney(getJObject(json, "net"))); if (json.has("noteNumber")) { - JsonArray array = json.getAsJsonArray("noteNumber"); + JsonArray array = getJArray(json, "noteNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNoteNumber().add(new PositiveIntType()); @@ -14835,7 +14993,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_noteNumber")) { - JsonArray array = json.getAsJsonArray("_noteNumber"); + JsonArray array = getJArray(json, "_noteNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getNoteNumber().size()) res.getNoteNumber().add(parsePositiveInt(null)); @@ -14844,13 +15002,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("adjudication")) { - JsonArray array = json.getAsJsonArray("adjudication"); + JsonArray array = getJArray(json, "adjudication"); for (int i = 0; i < array.size(); i++) { res.getAdjudication().add(parseExplanationOfBenefitAdjudicationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("subDetail")) { - JsonArray array = json.getAsJsonArray("subDetail"); + JsonArray array = getJArray(json, "subDetail"); for (int i = 0; i < array.size(); i++) { res.getSubDetail().add(parseExplanationOfBenefitAddedItemDetailSubDetailComponent(array.get(i).getAsJsonObject())); } @@ -14868,7 +15026,7 @@ public class JsonParser extends JsonParserBase { if (json.has("productOrService")) res.setProductOrService(parseCodeableConcept(getJObject(json, "productOrService"))); if (json.has("modifier")) { - JsonArray array = json.getAsJsonArray("modifier"); + JsonArray array = getJArray(json, "modifier"); for (int i = 0; i < array.size(); i++) { res.getModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -14884,7 +15042,7 @@ public class JsonParser extends JsonParserBase { if (json.has("net")) res.setNet(parseMoney(getJObject(json, "net"))); if (json.has("noteNumber")) { - JsonArray array = json.getAsJsonArray("noteNumber"); + JsonArray array = getJArray(json, "noteNumber"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNoteNumber().add(new PositiveIntType()); @@ -14894,7 +15052,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_noteNumber")) { - JsonArray array = json.getAsJsonArray("_noteNumber"); + JsonArray array = getJArray(json, "_noteNumber"); for (int i = 0; i < array.size(); i++) { if (i == res.getNoteNumber().size()) res.getNoteNumber().add(parsePositiveInt(null)); @@ -14903,7 +15061,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("adjudication")) { - JsonArray array = json.getAsJsonArray("adjudication"); + JsonArray array = getJArray(json, "adjudication"); for (int i = 0; i < array.size(); i++) { res.getAdjudication().add(parseExplanationOfBenefitAdjudicationComponent(array.get(i).getAsJsonObject())); } @@ -15001,7 +15159,7 @@ public class JsonParser extends JsonParserBase { if (json.has("term")) res.setTerm(parseCodeableConcept(getJObject(json, "term"))); if (json.has("financial")) { - JsonArray array = json.getAsJsonArray("financial"); + JsonArray array = getJArray(json, "financial"); for (int i = 0; i < array.size(); i++) { res.getFinancial().add(parseExplanationOfBenefitBenefitComponent(array.get(i).getAsJsonObject())); } @@ -15035,13 +15193,13 @@ public class JsonParser extends JsonParserBase { protected void parseFamilyMemberHistoryProperties(JsonObject json, FamilyMemberHistory res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("instantiatesCanonical"); + JsonArray array = getJArray(json, "instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesCanonical().add(new CanonicalType()); @@ -15051,7 +15209,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("_instantiatesCanonical"); + JsonArray array = getJArray(json, "_instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesCanonical().size()) res.getInstantiatesCanonical().add(parseCanonical(null)); @@ -15060,7 +15218,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("instantiatesUri")) { - JsonArray array = json.getAsJsonArray("instantiatesUri"); + JsonArray array = getJArray(json, "instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesUri().add(new UriType()); @@ -15070,7 +15228,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesUri")) { - JsonArray array = json.getAsJsonArray("_instantiatesUri"); + JsonArray array = getJArray(json, "_instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesUri().size()) res.getInstantiatesUri().add(parseUri(null)); @@ -15112,25 +15270,25 @@ public class JsonParser extends JsonParserBase { if (deceased != null) res.setDeceased(deceased); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("condition")) { - JsonArray array = json.getAsJsonArray("condition"); + JsonArray array = getJArray(json, "condition"); for (int i = 0; i < array.size(); i++) { res.getCondition().add(parseFamilyMemberHistoryConditionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("procedure")) { - JsonArray array = json.getAsJsonArray("procedure"); + JsonArray array = getJArray(json, "procedure"); for (int i = 0; i < array.size(); i++) { res.getProcedure().add(parseFamilyMemberHistoryProcedureComponent(array.get(i).getAsJsonObject())); } @@ -15157,7 +15315,7 @@ public class JsonParser extends JsonParserBase { if (onset != null) res.setOnset(onset); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -15184,7 +15342,7 @@ public class JsonParser extends JsonParserBase { if (performed != null) res.setPerformed(performed); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -15200,7 +15358,7 @@ public class JsonParser extends JsonParserBase { protected void parseFlagProperties(JsonObject json, Flag res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -15210,7 +15368,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -15236,7 +15394,7 @@ public class JsonParser extends JsonParserBase { protected void parseGoalProperties(JsonObject json, Goal res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -15248,7 +15406,7 @@ public class JsonParser extends JsonParserBase { if (json.has("achievementStatus")) res.setAchievementStatus(parseCodeableConcept(getJObject(json, "achievementStatus"))); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -15267,7 +15425,7 @@ public class JsonParser extends JsonParserBase { if (start != null) res.setStart(start); if (json.has("target")) { - JsonArray array = json.getAsJsonArray("target"); + JsonArray array = getJArray(json, "target"); for (int i = 0; i < array.size(); i++) { res.getTarget().add(parseGoalTargetComponent(array.get(i).getAsJsonObject())); } @@ -15280,22 +15438,22 @@ public class JsonParser extends JsonParserBase { res.setStatusReasonElement(parseString(json.get("statusReason").getAsString())); if (json.has("_statusReason")) parseElementProperties(getJObject(json, "_statusReason"), res.getStatusReasonElement()); - if (json.has("expressedBy")) - res.setExpressedBy(parseReference(getJObject(json, "expressedBy"))); + if (json.has("source")) + res.setSource(parseReference(getJObject(json, "source"))); if (json.has("addresses")) { - JsonArray array = json.getAsJsonArray("addresses"); + JsonArray array = getJArray(json, "addresses"); for (int i = 0; i < array.size(); i++) { res.getAddresses().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("outcome")) { - JsonArray array = json.getAsJsonArray("outcome"); + JsonArray array = getJArray(json, "outcome"); for (int i = 0; i < array.size(); i++) { res.getOutcome().add(parseCodeableReference(array.get(i).getAsJsonObject())); } @@ -15357,7 +15515,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -15367,13 +15525,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -15391,7 +15549,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_profile")) parseElementProperties(getJObject(json, "_profile"), res.getProfileElement()); if (json.has("link")) { - JsonArray array = json.getAsJsonArray("link"); + JsonArray array = getJArray(json, "link"); for (int i = 0; i < array.size(); i++) { res.getLink().add(parseGraphDefinitionLinkComponent(array.get(i).getAsJsonObject())); } @@ -15427,7 +15585,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("target")) { - JsonArray array = json.getAsJsonArray("target"); + JsonArray array = getJArray(json, "target"); for (int i = 0; i < array.size(); i++) { res.getTarget().add(parseGraphDefinitionLinkTargetComponent(array.get(i).getAsJsonObject())); } @@ -15455,13 +15613,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_profile")) parseElementProperties(getJObject(json, "_profile"), res.getProfileElement()); if (json.has("compartment")) { - JsonArray array = json.getAsJsonArray("compartment"); + JsonArray array = getJArray(json, "compartment"); for (int i = 0; i < array.size(); i++) { res.getCompartment().add(parseGraphDefinitionLinkTargetCompartmentComponent(array.get(i).getAsJsonObject())); } }; if (json.has("link")) { - JsonArray array = json.getAsJsonArray("link"); + JsonArray array = getJArray(json, "link"); for (int i = 0; i < array.size(); i++) { res.getLink().add(parseGraphDefinitionLinkComponent(array.get(i).getAsJsonObject())); } @@ -15507,7 +15665,7 @@ public class JsonParser extends JsonParserBase { protected void parseGroupProperties(JsonObject json, Group res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -15537,13 +15695,13 @@ public class JsonParser extends JsonParserBase { if (json.has("managingEntity")) res.setManagingEntity(parseReference(getJObject(json, "managingEntity"))); if (json.has("characteristic")) { - JsonArray array = json.getAsJsonArray("characteristic"); + JsonArray array = getJArray(json, "characteristic"); for (int i = 0; i < array.size(); i++) { res.getCharacteristic().add(parseGroupCharacteristicComponent(array.get(i).getAsJsonObject())); } }; if (json.has("member")) { - JsonArray array = json.getAsJsonArray("member"); + JsonArray array = getJArray(json, "member"); for (int i = 0; i < array.size(); i++) { res.getMember().add(parseGroupMemberComponent(array.get(i).getAsJsonObject())); } @@ -15600,7 +15758,7 @@ public class JsonParser extends JsonParserBase { if (json.has("requestIdentifier")) res.setRequestIdentifier(parseIdentifier(getJObject(json, "requestIdentifier"))); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -15623,19 +15781,19 @@ public class JsonParser extends JsonParserBase { if (json.has("performer")) res.setPerformer(parseReference(getJObject(json, "performer"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("evaluationMessage")) { - JsonArray array = json.getAsJsonArray("evaluationMessage"); + JsonArray array = getJArray(json, "evaluationMessage"); for (int i = 0; i < array.size(); i++) { res.getEvaluationMessage().add(parseReference(array.get(i).getAsJsonObject())); } @@ -15645,7 +15803,7 @@ public class JsonParser extends JsonParserBase { if (json.has("result")) res.setResult(parseReference(getJObject(json, "result"))); if (json.has("dataRequirement")) { - JsonArray array = json.getAsJsonArray("dataRequirement"); + JsonArray array = getJArray(json, "dataRequirement"); for (int i = 0; i < array.size(); i++) { res.getDataRequirement().add(parseDataRequirement(array.get(i).getAsJsonObject())); } @@ -15661,7 +15819,7 @@ public class JsonParser extends JsonParserBase { protected void parseHealthcareServiceProperties(JsonObject json, HealthcareService res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -15673,25 +15831,25 @@ public class JsonParser extends JsonParserBase { if (json.has("providedBy")) res.setProvidedBy(parseReference(getJObject(json, "providedBy"))); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("specialty")) { - JsonArray array = json.getAsJsonArray("specialty"); + JsonArray array = getJArray(json, "specialty"); for (int i = 0; i < array.size(); i++) { res.getSpecialty().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("location")) { - JsonArray array = json.getAsJsonArray("location"); + JsonArray array = getJArray(json, "location"); for (int i = 0; i < array.size(); i++) { res.getLocation().add(parseReference(array.get(i).getAsJsonObject())); } @@ -15711,49 +15869,49 @@ public class JsonParser extends JsonParserBase { if (json.has("photo")) res.setPhoto(parseAttachment(getJObject(json, "photo"))); if (json.has("telecom")) { - JsonArray array = json.getAsJsonArray("telecom"); + JsonArray array = getJArray(json, "telecom"); for (int i = 0; i < array.size(); i++) { res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject())); } }; if (json.has("coverageArea")) { - JsonArray array = json.getAsJsonArray("coverageArea"); + JsonArray array = getJArray(json, "coverageArea"); for (int i = 0; i < array.size(); i++) { res.getCoverageArea().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("serviceProvisionCode")) { - JsonArray array = json.getAsJsonArray("serviceProvisionCode"); + JsonArray array = getJArray(json, "serviceProvisionCode"); for (int i = 0; i < array.size(); i++) { res.getServiceProvisionCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("eligibility")) { - JsonArray array = json.getAsJsonArray("eligibility"); + JsonArray array = getJArray(json, "eligibility"); for (int i = 0; i < array.size(); i++) { res.getEligibility().add(parseHealthcareServiceEligibilityComponent(array.get(i).getAsJsonObject())); } }; if (json.has("program")) { - JsonArray array = json.getAsJsonArray("program"); + JsonArray array = getJArray(json, "program"); for (int i = 0; i < array.size(); i++) { res.getProgram().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("characteristic")) { - JsonArray array = json.getAsJsonArray("characteristic"); + JsonArray array = getJArray(json, "characteristic"); for (int i = 0; i < array.size(); i++) { res.getCharacteristic().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("communication")) { - JsonArray array = json.getAsJsonArray("communication"); + JsonArray array = getJArray(json, "communication"); for (int i = 0; i < array.size(); i++) { res.getCommunication().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("referralMethod")) { - JsonArray array = json.getAsJsonArray("referralMethod"); + JsonArray array = getJArray(json, "referralMethod"); for (int i = 0; i < array.size(); i++) { res.getReferralMethod().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -15763,13 +15921,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_appointmentRequired")) parseElementProperties(getJObject(json, "_appointmentRequired"), res.getAppointmentRequiredElement()); if (json.has("availableTime")) { - JsonArray array = json.getAsJsonArray("availableTime"); + JsonArray array = getJArray(json, "availableTime"); for (int i = 0; i < array.size(); i++) { res.getAvailableTime().add(parseHealthcareServiceAvailableTimeComponent(array.get(i).getAsJsonObject())); } }; if (json.has("notAvailable")) { - JsonArray array = json.getAsJsonArray("notAvailable"); + JsonArray array = getJArray(json, "notAvailable"); for (int i = 0; i < array.size(); i++) { res.getNotAvailable().add(parseHealthcareServiceNotAvailableComponent(array.get(i).getAsJsonObject())); } @@ -15779,7 +15937,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_availabilityExceptions")) parseElementProperties(getJObject(json, "_availabilityExceptions"), res.getAvailabilityExceptionsElement()); if (json.has("endpoint")) { - JsonArray array = json.getAsJsonArray("endpoint"); + JsonArray array = getJArray(json, "endpoint"); for (int i = 0; i < array.size(); i++) { res.getEndpoint().add(parseReference(array.get(i).getAsJsonObject())); } @@ -15811,7 +15969,7 @@ public class JsonParser extends JsonParserBase { protected void parseHealthcareServiceAvailableTimeComponentProperties(JsonObject json, HealthcareService.HealthcareServiceAvailableTimeComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("daysOfWeek")) { - JsonArray array = json.getAsJsonArray("daysOfWeek"); + JsonArray array = getJArray(json, "daysOfWeek"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDaysOfWeek().add(new Enumeration(new Enumerations.DaysOfWeekEnumFactory(), Enumerations.DaysOfWeek.NULL)); @@ -15821,7 +15979,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_daysOfWeek")) { - JsonArray array = json.getAsJsonArray("_daysOfWeek"); + JsonArray array = getJArray(json, "_daysOfWeek"); for (int i = 0; i < array.size(); i++) { if (i == res.getDaysOfWeek().size()) res.getDaysOfWeek().add(parseEnumeration(null, Enumerations.DaysOfWeek.NULL, new Enumerations.DaysOfWeekEnumFactory())); @@ -15868,7 +16026,7 @@ public class JsonParser extends JsonParserBase { protected void parseImagingStudyProperties(JsonObject json, ImagingStudy res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -15878,7 +16036,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("modality")) { - JsonArray array = json.getAsJsonArray("modality"); + JsonArray array = getJArray(json, "modality"); for (int i = 0; i < array.size(); i++) { res.getModality().add(parseCoding(array.get(i).getAsJsonObject())); } @@ -15892,7 +16050,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_started")) parseElementProperties(getJObject(json, "_started"), res.getStartedElement()); if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } @@ -15900,13 +16058,13 @@ public class JsonParser extends JsonParserBase { if (json.has("referrer")) res.setReferrer(parseReference(getJObject(json, "referrer"))); if (json.has("interpreter")) { - JsonArray array = json.getAsJsonArray("interpreter"); + JsonArray array = getJArray(json, "interpreter"); for (int i = 0; i < array.size(); i++) { res.getInterpreter().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("endpoint")) { - JsonArray array = json.getAsJsonArray("endpoint"); + JsonArray array = getJArray(json, "endpoint"); for (int i = 0; i < array.size(); i++) { res.getEndpoint().add(parseReference(array.get(i).getAsJsonObject())); } @@ -15920,7 +16078,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_numberOfInstances")) parseElementProperties(getJObject(json, "_numberOfInstances"), res.getNumberOfInstancesElement()); if (json.has("procedure")) { - JsonArray array = json.getAsJsonArray("procedure"); + JsonArray array = getJArray(json, "procedure"); for (int i = 0; i < array.size(); i++) { res.getProcedure().add(parseImagingStudyProcedureComponent(array.get(i).getAsJsonObject())); } @@ -15928,13 +16086,13 @@ public class JsonParser extends JsonParserBase { if (json.has("location")) res.setLocation(parseReference(getJObject(json, "location"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -15944,7 +16102,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("series")) { - JsonArray array = json.getAsJsonArray("series"); + JsonArray array = getJArray(json, "series"); for (int i = 0; i < array.size(); i++) { res.getSeries().add(parseImagingStudySeriesComponent(array.get(i).getAsJsonObject())); } @@ -15991,7 +16149,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_numberOfInstances")) parseElementProperties(getJObject(json, "_numberOfInstances"), res.getNumberOfInstancesElement()); if (json.has("endpoint")) { - JsonArray array = json.getAsJsonArray("endpoint"); + JsonArray array = getJArray(json, "endpoint"); for (int i = 0; i < array.size(); i++) { res.getEndpoint().add(parseReference(array.get(i).getAsJsonObject())); } @@ -16001,7 +16159,7 @@ public class JsonParser extends JsonParserBase { if (json.has("laterality")) res.setLaterality(parseCoding(getJObject(json, "laterality"))); if (json.has("specimen")) { - JsonArray array = json.getAsJsonArray("specimen"); + JsonArray array = getJArray(json, "specimen"); for (int i = 0; i < array.size(); i++) { res.getSpecimen().add(parseReference(array.get(i).getAsJsonObject())); } @@ -16011,13 +16169,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_started")) parseElementProperties(getJObject(json, "_started"), res.getStartedElement()); if (json.has("performer")) { - JsonArray array = json.getAsJsonArray("performer"); + JsonArray array = getJArray(json, "performer"); for (int i = 0; i < array.size(); i++) { res.getPerformer().add(parseImagingStudySeriesPerformerComponent(array.get(i).getAsJsonObject())); } }; if (json.has("instance")) { - JsonArray array = json.getAsJsonArray("instance"); + JsonArray array = getJArray(json, "instance"); for (int i = 0; i < array.size(); i++) { res.getInstance().add(parseImagingStudySeriesInstanceComponent(array.get(i).getAsJsonObject())); } @@ -16071,13 +16229,13 @@ public class JsonParser extends JsonParserBase { protected void parseImmunizationProperties(JsonObject json, Immunization res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("instantiatesCanonical"); + JsonArray array = getJArray(json, "instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesCanonical().add(new CanonicalType()); @@ -16087,7 +16245,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("_instantiatesCanonical"); + JsonArray array = getJArray(json, "_instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesCanonical().size()) res.getInstantiatesCanonical().add(parseCanonical(null)); @@ -16096,7 +16254,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("instantiatesUri")) { - JsonArray array = json.getAsJsonArray("instantiatesUri"); + JsonArray array = getJArray(json, "instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesUri().add(new UriType()); @@ -16106,7 +16264,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesUri")) { - JsonArray array = json.getAsJsonArray("_instantiatesUri"); + JsonArray array = getJArray(json, "_instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesUri().size()) res.getInstantiatesUri().add(parseUri(null)); @@ -16115,7 +16273,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } @@ -16165,19 +16323,19 @@ public class JsonParser extends JsonParserBase { if (json.has("doseQuantity")) res.setDoseQuantity(parseQuantity(getJObject(json, "doseQuantity"))); if (json.has("performer")) { - JsonArray array = json.getAsJsonArray("performer"); + JsonArray array = getJArray(json, "performer"); for (int i = 0; i < array.size(); i++) { res.getPerformer().add(parseImmunizationPerformerComponent(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } @@ -16187,19 +16345,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_isSubpotent")) parseElementProperties(getJObject(json, "_isSubpotent"), res.getIsSubpotentElement()); if (json.has("subpotentReason")) { - JsonArray array = json.getAsJsonArray("subpotentReason"); + JsonArray array = getJArray(json, "subpotentReason"); for (int i = 0; i < array.size(); i++) { res.getSubpotentReason().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("education")) { - JsonArray array = json.getAsJsonArray("education"); + JsonArray array = getJArray(json, "education"); for (int i = 0; i < array.size(); i++) { res.getEducation().add(parseImmunizationEducationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("programEligibility")) { - JsonArray array = json.getAsJsonArray("programEligibility"); + JsonArray array = getJArray(json, "programEligibility"); for (int i = 0; i < array.size(); i++) { res.getProgramEligibility().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -16207,13 +16365,13 @@ public class JsonParser extends JsonParserBase { if (json.has("fundingSource")) res.setFundingSource(parseCodeableConcept(getJObject(json, "fundingSource"))); if (json.has("reaction")) { - JsonArray array = json.getAsJsonArray("reaction"); + JsonArray array = getJArray(json, "reaction"); for (int i = 0; i < array.size(); i++) { res.getReaction().add(parseImmunizationReactionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("protocolApplied")) { - JsonArray array = json.getAsJsonArray("protocolApplied"); + JsonArray array = getJArray(json, "protocolApplied"); for (int i = 0; i < array.size(); i++) { res.getProtocolApplied().add(parseImmunizationProtocolAppliedComponent(array.get(i).getAsJsonObject())); } @@ -16295,7 +16453,7 @@ public class JsonParser extends JsonParserBase { if (json.has("authority")) res.setAuthority(parseReference(getJObject(json, "authority"))); if (json.has("targetDisease")) { - JsonArray array = json.getAsJsonArray("targetDisease"); + JsonArray array = getJArray(json, "targetDisease"); for (int i = 0; i < array.size(); i++) { res.getTargetDisease().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -16319,7 +16477,7 @@ public class JsonParser extends JsonParserBase { protected void parseImmunizationEvaluationProperties(JsonObject json, ImmunizationEvaluation res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -16343,7 +16501,7 @@ public class JsonParser extends JsonParserBase { if (json.has("doseStatus")) res.setDoseStatus(parseCodeableConcept(getJObject(json, "doseStatus"))); if (json.has("doseStatusReason")) { - JsonArray array = json.getAsJsonArray("doseStatusReason"); + JsonArray array = getJArray(json, "doseStatusReason"); for (int i = 0; i < array.size(); i++) { res.getDoseStatusReason().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -16375,13 +16533,13 @@ public class JsonParser extends JsonParserBase { protected void parseImmunizationRecommendationProperties(JsonObject json, ImmunizationRecommendation res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("instantiatesCanonical"); + JsonArray array = getJArray(json, "instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesCanonical().add(new CanonicalType()); @@ -16391,7 +16549,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("_instantiatesCanonical"); + JsonArray array = getJArray(json, "_instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesCanonical().size()) res.getInstantiatesCanonical().add(parseCanonical(null)); @@ -16400,7 +16558,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("instantiatesUri")) { - JsonArray array = json.getAsJsonArray("instantiatesUri"); + JsonArray array = getJArray(json, "instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesUri().add(new UriType()); @@ -16410,7 +16568,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesUri")) { - JsonArray array = json.getAsJsonArray("_instantiatesUri"); + JsonArray array = getJArray(json, "_instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesUri().size()) res.getInstantiatesUri().add(parseUri(null)); @@ -16427,7 +16585,7 @@ public class JsonParser extends JsonParserBase { if (json.has("authority")) res.setAuthority(parseReference(getJObject(json, "authority"))); if (json.has("recommendation")) { - JsonArray array = json.getAsJsonArray("recommendation"); + JsonArray array = getJArray(json, "recommendation"); for (int i = 0; i < array.size(); i++) { res.getRecommendation().add(parseImmunizationRecommendationRecommendationComponent(array.get(i).getAsJsonObject())); } @@ -16443,19 +16601,19 @@ public class JsonParser extends JsonParserBase { protected void parseImmunizationRecommendationRecommendationComponentProperties(JsonObject json, ImmunizationRecommendation.ImmunizationRecommendationRecommendationComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("vaccineCode")) { - JsonArray array = json.getAsJsonArray("vaccineCode"); + JsonArray array = getJArray(json, "vaccineCode"); for (int i = 0; i < array.size(); i++) { res.getVaccineCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("targetDisease")) { - JsonArray array = json.getAsJsonArray("targetDisease"); + JsonArray array = getJArray(json, "targetDisease"); for (int i = 0; i < array.size(); i++) { res.getTargetDisease().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("contraindicatedVaccineCode")) { - JsonArray array = json.getAsJsonArray("contraindicatedVaccineCode"); + JsonArray array = getJArray(json, "contraindicatedVaccineCode"); for (int i = 0; i < array.size(); i++) { res.getContraindicatedVaccineCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -16463,13 +16621,13 @@ public class JsonParser extends JsonParserBase { if (json.has("forecastStatus")) res.setForecastStatus(parseCodeableConcept(getJObject(json, "forecastStatus"))); if (json.has("forecastReason")) { - JsonArray array = json.getAsJsonArray("forecastReason"); + JsonArray array = getJArray(json, "forecastReason"); for (int i = 0; i < array.size(); i++) { res.getForecastReason().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("dateCriterion")) { - JsonArray array = json.getAsJsonArray("dateCriterion"); + JsonArray array = getJArray(json, "dateCriterion"); for (int i = 0; i < array.size(); i++) { res.getDateCriterion().add(parseImmunizationRecommendationRecommendationDateCriterionComponent(array.get(i).getAsJsonObject())); } @@ -16491,13 +16649,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_seriesDoses")) parseElementProperties(getJObject(json, "_seriesDoses"), res.getSeriesDosesElement()); if (json.has("supportingImmunization")) { - JsonArray array = json.getAsJsonArray("supportingImmunization"); + JsonArray array = getJArray(json, "supportingImmunization"); for (int i = 0; i < array.size(); i++) { res.getSupportingImmunization().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("supportingPatientInformation")) { - JsonArray array = json.getAsJsonArray("supportingPatientInformation"); + JsonArray array = getJArray(json, "supportingPatientInformation"); for (int i = 0; i < array.size(); i++) { res.getSupportingPatientInformation().add(parseReference(array.get(i).getAsJsonObject())); } @@ -16561,7 +16719,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -16571,13 +16729,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -16595,7 +16753,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_license")) parseElementProperties(getJObject(json, "_license"), res.getLicenseElement()); if (json.has("fhirVersion")) { - JsonArray array = json.getAsJsonArray("fhirVersion"); + JsonArray array = getJArray(json, "fhirVersion"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getFhirVersion().add(new Enumeration(new Enumerations.FHIRVersionEnumFactory(), Enumerations.FHIRVersion.NULL)); @@ -16605,7 +16763,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_fhirVersion")) { - JsonArray array = json.getAsJsonArray("_fhirVersion"); + JsonArray array = getJArray(json, "_fhirVersion"); for (int i = 0; i < array.size(); i++) { if (i == res.getFhirVersion().size()) res.getFhirVersion().add(parseEnumeration(null, Enumerations.FHIRVersion.NULL, new Enumerations.FHIRVersionEnumFactory())); @@ -16614,13 +16772,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("dependsOn")) { - JsonArray array = json.getAsJsonArray("dependsOn"); + JsonArray array = getJArray(json, "dependsOn"); for (int i = 0; i < array.size(); i++) { res.getDependsOn().add(parseImplementationGuideDependsOnComponent(array.get(i).getAsJsonObject())); } }; if (json.has("global")) { - JsonArray array = json.getAsJsonArray("global"); + JsonArray array = getJArray(json, "global"); for (int i = 0; i < array.size(); i++) { res.getGlobal().add(parseImplementationGuideGlobalComponent(array.get(i).getAsJsonObject())); } @@ -16680,13 +16838,13 @@ public class JsonParser extends JsonParserBase { protected void parseImplementationGuideDefinitionComponentProperties(JsonObject json, ImplementationGuide.ImplementationGuideDefinitionComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("grouping")) { - JsonArray array = json.getAsJsonArray("grouping"); + JsonArray array = getJArray(json, "grouping"); for (int i = 0; i < array.size(); i++) { res.getGrouping().add(parseImplementationGuideDefinitionGroupingComponent(array.get(i).getAsJsonObject())); } }; if (json.has("resource")) { - JsonArray array = json.getAsJsonArray("resource"); + JsonArray array = getJArray(json, "resource"); for (int i = 0; i < array.size(); i++) { res.getResource().add(parseImplementationGuideDefinitionResourceComponent(array.get(i).getAsJsonObject())); } @@ -16694,13 +16852,13 @@ public class JsonParser extends JsonParserBase { if (json.has("page")) res.setPage(parseImplementationGuideDefinitionPageComponent(getJObject(json, "page"))); if (json.has("parameter")) { - JsonArray array = json.getAsJsonArray("parameter"); + JsonArray array = getJArray(json, "parameter"); for (int i = 0; i < array.size(); i++) { res.getParameter().add(parseImplementationGuideDefinitionParameterComponent(array.get(i).getAsJsonObject())); } }; if (json.has("template")) { - JsonArray array = json.getAsJsonArray("template"); + JsonArray array = getJArray(json, "template"); for (int i = 0; i < array.size(); i++) { res.getTemplate().add(parseImplementationGuideDefinitionTemplateComponent(array.get(i).getAsJsonObject())); } @@ -16736,7 +16894,7 @@ public class JsonParser extends JsonParserBase { if (json.has("reference")) res.setReference(parseReference(getJObject(json, "reference"))); if (json.has("fhirVersion")) { - JsonArray array = json.getAsJsonArray("fhirVersion"); + JsonArray array = getJArray(json, "fhirVersion"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getFhirVersion().add(new Enumeration(new Enumerations.FHIRVersionEnumFactory(), Enumerations.FHIRVersion.NULL)); @@ -16746,7 +16904,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_fhirVersion")) { - JsonArray array = json.getAsJsonArray("_fhirVersion"); + JsonArray array = getJArray(json, "_fhirVersion"); for (int i = 0; i < array.size(); i++) { if (i == res.getFhirVersion().size()) res.getFhirVersion().add(parseEnumeration(null, Enumerations.FHIRVersion.NULL, new Enumerations.FHIRVersionEnumFactory())); @@ -16791,7 +16949,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_generation")) parseElementProperties(getJObject(json, "_generation"), res.getGenerationElement()); if (json.has("page")) { - JsonArray array = json.getAsJsonArray("page"); + JsonArray array = getJArray(json, "page"); for (int i = 0; i < array.size(); i++) { res.getPage().add(parseImplementationGuideDefinitionPageComponent(array.get(i).getAsJsonObject())); } @@ -16851,19 +17009,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_rendering")) parseElementProperties(getJObject(json, "_rendering"), res.getRenderingElement()); if (json.has("resource")) { - JsonArray array = json.getAsJsonArray("resource"); + JsonArray array = getJArray(json, "resource"); for (int i = 0; i < array.size(); i++) { res.getResource().add(parseImplementationGuideManifestResourceComponent(array.get(i).getAsJsonObject())); } }; if (json.has("page")) { - JsonArray array = json.getAsJsonArray("page"); + JsonArray array = getJArray(json, "page"); for (int i = 0; i < array.size(); i++) { res.getPage().add(parseImplementationGuideManifestPageComponent(array.get(i).getAsJsonObject())); } }; if (json.has("image")) { - JsonArray array = json.getAsJsonArray("image"); + JsonArray array = getJArray(json, "image"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getImage().add(new StringType()); @@ -16873,7 +17031,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_image")) { - JsonArray array = json.getAsJsonArray("_image"); + JsonArray array = getJArray(json, "_image"); for (int i = 0; i < array.size(); i++) { if (i == res.getImage().size()) res.getImage().add(parseString(null)); @@ -16882,7 +17040,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("other")) { - JsonArray array = json.getAsJsonArray("other"); + JsonArray array = getJArray(json, "other"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getOther().add(new StringType()); @@ -16892,7 +17050,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_other")) { - JsonArray array = json.getAsJsonArray("_other"); + JsonArray array = getJArray(json, "_other"); for (int i = 0; i < array.size(); i++) { if (i == res.getOther().size()) res.getOther().add(parseString(null)); @@ -16938,7 +17096,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_title")) parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); if (json.has("anchor")) { - JsonArray array = json.getAsJsonArray("anchor"); + JsonArray array = getJArray(json, "anchor"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getAnchor().add(new StringType()); @@ -16948,7 +17106,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_anchor")) { - JsonArray array = json.getAsJsonArray("_anchor"); + JsonArray array = getJArray(json, "_anchor"); for (int i = 0; i < array.size(); i++) { if (i == res.getAnchor().size()) res.getAnchor().add(parseString(null)); @@ -16971,11 +17129,13 @@ public class JsonParser extends JsonParserBase { if (json.has("role")) res.setRole(parseCodeableConcept(getJObject(json, "role"))); if (json.has("function")) { - JsonArray array = json.getAsJsonArray("function"); + JsonArray array = getJArray(json, "function"); for (int i = 0; i < array.size(); i++) { res.getFunction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; + if (json.has("group")) + res.setGroup(parseCodeableConcept(getJObject(json, "group"))); if (json.has("description")) res.setDescriptionElement(parseMarkdown(json.get("description").getAsString())); if (json.has("_description")) @@ -16985,7 +17145,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_allergenicIndicator")) parseElementProperties(getJObject(json, "_allergenicIndicator"), res.getAllergenicIndicatorElement()); if (json.has("manufacturer")) { - JsonArray array = json.getAsJsonArray("manufacturer"); + JsonArray array = getJArray(json, "manufacturer"); for (int i = 0; i < array.size(); i++) { res.getManufacturer().add(parseReference(array.get(i).getAsJsonObject())); } @@ -16993,7 +17153,7 @@ public class JsonParser extends JsonParserBase { if (json.has("substance")) res.setSubstance(parseIngredientSubstanceComponent(getJObject(json, "substance"))); if (json.has("specifiedSubstance")) { - JsonArray array = json.getAsJsonArray("specifiedSubstance"); + JsonArray array = getJArray(json, "specifiedSubstance"); for (int i = 0; i < array.size(); i++) { res.getSpecifiedSubstance().add(parseIngredientSpecifiedSubstanceComponent(array.get(i).getAsJsonObject())); } @@ -17008,11 +17168,10 @@ public class JsonParser extends JsonParserBase { protected void parseIngredientSubstanceComponentProperties(JsonObject json, Ingredient.IngredientSubstanceComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); - DataType code = parseType("code", json); - if (code != null) - res.setCode(code); + if (json.has("code")) + res.setCode(parseCodeableReference(getJObject(json, "code"))); if (json.has("strength")) { - JsonArray array = json.getAsJsonArray("strength"); + JsonArray array = getJArray(json, "strength"); for (int i = 0; i < array.size(); i++) { res.getStrength().add(parseIngredientSubstanceStrengthComponent(array.get(i).getAsJsonObject())); } @@ -17027,34 +17186,40 @@ public class JsonParser extends JsonParserBase { protected void parseIngredientSubstanceStrengthComponentProperties(JsonObject json, Ingredient.IngredientSubstanceStrengthComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); - if (json.has("presentation")) - res.setPresentation(parseRatio(getJObject(json, "presentation"))); - if (json.has("presentationHighLimit")) - res.setPresentationHighLimit(parseRatio(getJObject(json, "presentationHighLimit"))); + DataType presentation = parseType("presentation", json); + if (presentation != null) + res.setPresentation(presentation); + DataType presentationHighLimit = parseType("presentationHighLimit", json); + if (presentationHighLimit != null) + res.setPresentationHighLimit(presentationHighLimit); if (json.has("presentationText")) res.setPresentationTextElement(parseString(json.get("presentationText").getAsString())); if (json.has("_presentationText")) parseElementProperties(getJObject(json, "_presentationText"), res.getPresentationTextElement()); - if (json.has("concentration")) - res.setConcentration(parseRatio(getJObject(json, "concentration"))); - if (json.has("concentrationHighLimit")) - res.setConcentrationHighLimit(parseRatio(getJObject(json, "concentrationHighLimit"))); + DataType concentration = parseType("concentration", json); + if (concentration != null) + res.setConcentration(concentration); + DataType concentrationHighLimit = parseType("concentrationHighLimit", json); + if (concentrationHighLimit != null) + res.setConcentrationHighLimit(concentrationHighLimit); if (json.has("concentrationText")) res.setConcentrationTextElement(parseString(json.get("concentrationText").getAsString())); if (json.has("_concentrationText")) parseElementProperties(getJObject(json, "_concentrationText"), res.getConcentrationTextElement()); + if (json.has("basis")) + res.setBasis(parseCodeableConcept(getJObject(json, "basis"))); if (json.has("measurementPoint")) res.setMeasurementPointElement(parseString(json.get("measurementPoint").getAsString())); if (json.has("_measurementPoint")) parseElementProperties(getJObject(json, "_measurementPoint"), res.getMeasurementPointElement()); if (json.has("country")) { - JsonArray array = json.getAsJsonArray("country"); + JsonArray array = getJArray(json, "country"); for (int i = 0; i < array.size(); i++) { res.getCountry().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("referenceStrength")) { - JsonArray array = json.getAsJsonArray("referenceStrength"); + JsonArray array = getJArray(json, "referenceStrength"); for (int i = 0; i < array.size(); i++) { res.getReferenceStrength().add(parseIngredientSubstanceStrengthReferenceStrengthComponent(array.get(i).getAsJsonObject())); } @@ -17069,19 +17234,20 @@ public class JsonParser extends JsonParserBase { protected void parseIngredientSubstanceStrengthReferenceStrengthComponentProperties(JsonObject json, Ingredient.IngredientSubstanceStrengthReferenceStrengthComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); - DataType substance = parseType("substance", json); - if (substance != null) - res.setSubstance(substance); - if (json.has("strength")) - res.setStrength(parseRatio(getJObject(json, "strength"))); - if (json.has("strengthHighLimit")) - res.setStrengthHighLimit(parseRatio(getJObject(json, "strengthHighLimit"))); + if (json.has("substance")) + res.setSubstance(parseCodeableReference(getJObject(json, "substance"))); + DataType strength = parseType("strength", json); + if (strength != null) + res.setStrength(strength); + DataType strengthHighLimit = parseType("strengthHighLimit", json); + if (strengthHighLimit != null) + res.setStrengthHighLimit(strengthHighLimit); if (json.has("measurementPoint")) res.setMeasurementPointElement(parseString(json.get("measurementPoint").getAsString())); if (json.has("_measurementPoint")) parseElementProperties(getJObject(json, "_measurementPoint"), res.getMeasurementPointElement()); if (json.has("country")) { - JsonArray array = json.getAsJsonArray("country"); + JsonArray array = getJArray(json, "country"); for (int i = 0; i < array.size(); i++) { res.getCountry().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -17096,15 +17262,14 @@ public class JsonParser extends JsonParserBase { protected void parseIngredientSpecifiedSubstanceComponentProperties(JsonObject json, Ingredient.IngredientSpecifiedSubstanceComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); - DataType code = parseType("code", json); - if (code != null) - res.setCode(code); + if (json.has("code")) + res.setCode(parseCodeableReference(getJObject(json, "code"))); if (json.has("group")) res.setGroup(parseCodeableConcept(getJObject(json, "group"))); if (json.has("confidentiality")) res.setConfidentiality(parseCodeableConcept(getJObject(json, "confidentiality"))); if (json.has("strength")) { - JsonArray array = json.getAsJsonArray("strength"); + JsonArray array = getJArray(json, "strength"); for (int i = 0; i < array.size(); i++) { res.getStrength().add(parseIngredientSubstanceStrengthComponent(array.get(i).getAsJsonObject())); } @@ -17120,7 +17285,7 @@ public class JsonParser extends JsonParserBase { protected void parseInsurancePlanProperties(JsonObject json, InsurancePlan res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -17130,7 +17295,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -17140,7 +17305,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_name")) parseElementProperties(getJObject(json, "_name"), res.getNameElement()); if (json.has("alias")) { - JsonArray array = json.getAsJsonArray("alias"); + JsonArray array = getJArray(json, "alias"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getAlias().add(new StringType()); @@ -17150,7 +17315,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_alias")) { - JsonArray array = json.getAsJsonArray("_alias"); + JsonArray array = getJArray(json, "_alias"); for (int i = 0; i < array.size(); i++) { if (i == res.getAlias().size()) res.getAlias().add(parseString(null)); @@ -17165,37 +17330,37 @@ public class JsonParser extends JsonParserBase { if (json.has("administeredBy")) res.setAdministeredBy(parseReference(getJObject(json, "administeredBy"))); if (json.has("coverageArea")) { - JsonArray array = json.getAsJsonArray("coverageArea"); + JsonArray array = getJArray(json, "coverageArea"); for (int i = 0; i < array.size(); i++) { res.getCoverageArea().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseInsurancePlanContactComponent(array.get(i).getAsJsonObject())); } }; if (json.has("endpoint")) { - JsonArray array = json.getAsJsonArray("endpoint"); + JsonArray array = getJArray(json, "endpoint"); for (int i = 0; i < array.size(); i++) { res.getEndpoint().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("network")) { - JsonArray array = json.getAsJsonArray("network"); + JsonArray array = getJArray(json, "network"); for (int i = 0; i < array.size(); i++) { res.getNetwork().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("coverage")) { - JsonArray array = json.getAsJsonArray("coverage"); + JsonArray array = getJArray(json, "coverage"); for (int i = 0; i < array.size(); i++) { res.getCoverage().add(parseInsurancePlanCoverageComponent(array.get(i).getAsJsonObject())); } }; if (json.has("plan")) { - JsonArray array = json.getAsJsonArray("plan"); + JsonArray array = getJArray(json, "plan"); for (int i = 0; i < array.size(); i++) { res.getPlan().add(parseInsurancePlanPlanComponent(array.get(i).getAsJsonObject())); } @@ -17215,7 +17380,7 @@ public class JsonParser extends JsonParserBase { if (json.has("name")) res.setName(parseHumanName(getJObject(json, "name"))); if (json.has("telecom")) { - JsonArray array = json.getAsJsonArray("telecom"); + JsonArray array = getJArray(json, "telecom"); for (int i = 0; i < array.size(); i++) { res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject())); } @@ -17235,13 +17400,13 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("network")) { - JsonArray array = json.getAsJsonArray("network"); + JsonArray array = getJArray(json, "network"); for (int i = 0; i < array.size(); i++) { res.getNetwork().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("benefit")) { - JsonArray array = json.getAsJsonArray("benefit"); + JsonArray array = getJArray(json, "benefit"); for (int i = 0; i < array.size(); i++) { res.getBenefit().add(parseInsurancePlanCoverageBenefitComponent(array.get(i).getAsJsonObject())); } @@ -17263,7 +17428,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_requirement")) parseElementProperties(getJObject(json, "_requirement"), res.getRequirementElement()); if (json.has("limit")) { - JsonArray array = json.getAsJsonArray("limit"); + JsonArray array = getJArray(json, "limit"); for (int i = 0; i < array.size(); i++) { res.getLimit().add(parseInsurancePlanCoverageBenefitLimitComponent(array.get(i).getAsJsonObject())); } @@ -17293,7 +17458,7 @@ public class JsonParser extends JsonParserBase { protected void parseInsurancePlanPlanComponentProperties(JsonObject json, InsurancePlan.InsurancePlanPlanComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -17301,25 +17466,25 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("coverageArea")) { - JsonArray array = json.getAsJsonArray("coverageArea"); + JsonArray array = getJArray(json, "coverageArea"); for (int i = 0; i < array.size(); i++) { res.getCoverageArea().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("network")) { - JsonArray array = json.getAsJsonArray("network"); + JsonArray array = getJArray(json, "network"); for (int i = 0; i < array.size(); i++) { res.getNetwork().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("generalCost")) { - JsonArray array = json.getAsJsonArray("generalCost"); + JsonArray array = getJArray(json, "generalCost"); for (int i = 0; i < array.size(); i++) { res.getGeneralCost().add(parseInsurancePlanPlanGeneralCostComponent(array.get(i).getAsJsonObject())); } }; if (json.has("specificCost")) { - JsonArray array = json.getAsJsonArray("specificCost"); + JsonArray array = getJArray(json, "specificCost"); for (int i = 0; i < array.size(); i++) { res.getSpecificCost().add(parseInsurancePlanPlanSpecificCostComponent(array.get(i).getAsJsonObject())); } @@ -17359,7 +17524,7 @@ public class JsonParser extends JsonParserBase { if (json.has("category")) res.setCategory(parseCodeableConcept(getJObject(json, "category"))); if (json.has("benefit")) { - JsonArray array = json.getAsJsonArray("benefit"); + JsonArray array = getJArray(json, "benefit"); for (int i = 0; i < array.size(); i++) { res.getBenefit().add(parseInsurancePlanPlanBenefitComponent(array.get(i).getAsJsonObject())); } @@ -17377,7 +17542,7 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("cost")) { - JsonArray array = json.getAsJsonArray("cost"); + JsonArray array = getJArray(json, "cost"); for (int i = 0; i < array.size(); i++) { res.getCost().add(parseInsurancePlanPlanBenefitCostComponent(array.get(i).getAsJsonObject())); } @@ -17397,7 +17562,7 @@ public class JsonParser extends JsonParserBase { if (json.has("applicability")) res.setApplicability(parseCodeableConcept(getJObject(json, "applicability"))); if (json.has("qualifiers")) { - JsonArray array = json.getAsJsonArray("qualifiers"); + JsonArray array = getJArray(json, "qualifiers"); for (int i = 0; i < array.size(); i++) { res.getQualifiers().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -17406,6 +17571,106 @@ public class JsonParser extends JsonParserBase { res.setValue(parseQuantity(getJObject(json, "value"))); } + protected InventoryReport parseInventoryReport(JsonObject json) throws IOException, FHIRFormatError { + InventoryReport res = new InventoryReport(); + parseInventoryReportProperties(json, res); + return res; + } + + protected void parseInventoryReportProperties(JsonObject json, InventoryReport res) throws IOException, FHIRFormatError { + parseDomainResourceProperties(json, res); + if (json.has("identifier")) { + JsonArray array = getJArray(json, "identifier"); + for (int i = 0; i < array.size(); i++) { + res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); + } + }; + if (json.has("status")) + res.setStatusElement(parseEnumeration(json.get("status").getAsString(), InventoryReport.InventoryReportStatus.NULL, new InventoryReport.InventoryReportStatusEnumFactory())); + if (json.has("_status")) + parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); + if (json.has("countType")) + res.setCountTypeElement(parseEnumeration(json.get("countType").getAsString(), InventoryReport.InventoryCountType.NULL, new InventoryReport.InventoryCountTypeEnumFactory())); + if (json.has("_countType")) + parseElementProperties(getJObject(json, "_countType"), res.getCountTypeElement()); + if (json.has("operationType")) + res.setOperationType(parseCodeableConcept(getJObject(json, "operationType"))); + if (json.has("operationTypeReason")) + res.setOperationTypeReason(parseCodeableConcept(getJObject(json, "operationTypeReason"))); + if (json.has("reportedDateTime")) + res.setReportedDateTimeElement(parseDateTime(json.get("reportedDateTime").getAsString())); + if (json.has("_reportedDateTime")) + parseElementProperties(getJObject(json, "_reportedDateTime"), res.getReportedDateTimeElement()); + if (json.has("reporter")) + res.setReporter(parseReference(getJObject(json, "reporter"))); + if (json.has("reportingPeriod")) + res.setReportingPeriod(parsePeriod(getJObject(json, "reportingPeriod"))); + if (json.has("inventoryListing")) { + JsonArray array = getJArray(json, "inventoryListing"); + for (int i = 0; i < array.size(); i++) { + res.getInventoryListing().add(parseInventoryReportInventoryListingComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("note")) + res.setNote(parseAnnotation(getJObject(json, "note"))); + } + + protected InventoryReport.InventoryReportInventoryListingComponent parseInventoryReportInventoryListingComponent(JsonObject json) throws IOException, FHIRFormatError { + InventoryReport.InventoryReportInventoryListingComponent res = new InventoryReport.InventoryReportInventoryListingComponent(); + parseInventoryReportInventoryListingComponentProperties(json, res); + return res; + } + + protected void parseInventoryReportInventoryListingComponentProperties(JsonObject json, InventoryReport.InventoryReportInventoryListingComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("location")) + res.setLocation(parseReference(getJObject(json, "location"))); + if (json.has("itemStatus")) + res.setItemStatus(parseCodeableConcept(getJObject(json, "itemStatus"))); + if (json.has("countingDateTime")) + res.setCountingDateTimeElement(parseDateTime(json.get("countingDateTime").getAsString())); + if (json.has("_countingDateTime")) + parseElementProperties(getJObject(json, "_countingDateTime"), res.getCountingDateTimeElement()); + if (json.has("items")) { + JsonArray array = getJArray(json, "items"); + for (int i = 0; i < array.size(); i++) { + res.getItems().add(parseInventoryReportInventoryListingItemsComponent(array.get(i).getAsJsonObject())); + } + }; + } + + protected InventoryReport.InventoryReportInventoryListingItemsComponent parseInventoryReportInventoryListingItemsComponent(JsonObject json) throws IOException, FHIRFormatError { + InventoryReport.InventoryReportInventoryListingItemsComponent res = new InventoryReport.InventoryReportInventoryListingItemsComponent(); + parseInventoryReportInventoryListingItemsComponentProperties(json, res); + return res; + } + + protected void parseInventoryReportInventoryListingItemsComponentProperties(JsonObject json, InventoryReport.InventoryReportInventoryListingItemsComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("category")) + res.setCategory(parseCodeableConcept(getJObject(json, "category"))); + if (json.has("quantity")) + res.setQuantity(parseQuantity(getJObject(json, "quantity"))); + if (json.has("item")) + res.setItem(parseCodeableReference(getJObject(json, "item"))); + if (json.has("lot")) + res.setLotElement(parseString(json.get("lot").getAsString())); + if (json.has("_lot")) + parseElementProperties(getJObject(json, "_lot"), res.getLotElement()); + if (json.has("serial")) + res.setSerialElement(parseString(json.get("serial").getAsString())); + if (json.has("_serial")) + parseElementProperties(getJObject(json, "_serial"), res.getSerialElement()); + if (json.has("expiry")) + res.setExpiryElement(parseDateTime(json.get("expiry").getAsString())); + if (json.has("_expiry")) + parseElementProperties(getJObject(json, "_expiry"), res.getExpiryElement()); + if (json.has("manufacturingDate")) + res.setManufacturingDateElement(parseDateTime(json.get("manufacturingDate").getAsString())); + if (json.has("_manufacturingDate")) + parseElementProperties(getJObject(json, "_manufacturingDate"), res.getManufacturingDateElement()); + } + protected Invoice parseInvoice(JsonObject json) throws IOException, FHIRFormatError { Invoice res = new Invoice(); parseInvoiceProperties(json, res); @@ -17415,7 +17680,7 @@ public class JsonParser extends JsonParserBase { protected void parseInvoiceProperties(JsonObject json, Invoice res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -17439,7 +17704,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_date")) parseElementProperties(getJObject(json, "_date"), res.getDateElement()); if (json.has("participant")) { - JsonArray array = json.getAsJsonArray("participant"); + JsonArray array = getJArray(json, "participant"); for (int i = 0; i < array.size(); i++) { res.getParticipant().add(parseInvoiceParticipantComponent(array.get(i).getAsJsonObject())); } @@ -17449,13 +17714,13 @@ public class JsonParser extends JsonParserBase { if (json.has("account")) res.setAccount(parseReference(getJObject(json, "account"))); if (json.has("lineItem")) { - JsonArray array = json.getAsJsonArray("lineItem"); + JsonArray array = getJArray(json, "lineItem"); for (int i = 0; i < array.size(); i++) { res.getLineItem().add(parseInvoiceLineItemComponent(array.get(i).getAsJsonObject())); } }; if (json.has("totalPriceComponent")) { - JsonArray array = json.getAsJsonArray("totalPriceComponent"); + JsonArray array = getJArray(json, "totalPriceComponent"); for (int i = 0; i < array.size(); i++) { res.getTotalPriceComponent().add(parseInvoiceLineItemPriceComponentComponent(array.get(i).getAsJsonObject())); } @@ -17469,7 +17734,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_paymentTerms")) parseElementProperties(getJObject(json, "_paymentTerms"), res.getPaymentTermsElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -17506,7 +17771,7 @@ public class JsonParser extends JsonParserBase { if (chargeItem != null) res.setChargeItem(chargeItem); if (json.has("priceComponent")) { - JsonArray array = json.getAsJsonArray("priceComponent"); + JsonArray array = getJArray(json, "priceComponent"); for (int i = 0; i < array.size(); i++) { res.getPriceComponent().add(parseInvoiceLineItemPriceComponentComponent(array.get(i).getAsJsonObject())); } @@ -17548,7 +17813,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -17591,7 +17856,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -17601,13 +17866,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -17635,55 +17900,55 @@ public class JsonParser extends JsonParserBase { if (json.has("effectivePeriod")) res.setEffectivePeriod(parsePeriod(getJObject(json, "effectivePeriod"))); if (json.has("topic")) { - JsonArray array = json.getAsJsonArray("topic"); + JsonArray array = getJArray(json, "topic"); for (int i = 0; i < array.size(); i++) { res.getTopic().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("author")) { - JsonArray array = json.getAsJsonArray("author"); + JsonArray array = getJArray(json, "author"); for (int i = 0; i < array.size(); i++) { res.getAuthor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("editor")) { - JsonArray array = json.getAsJsonArray("editor"); + JsonArray array = getJArray(json, "editor"); for (int i = 0; i < array.size(); i++) { res.getEditor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("reviewer")) { - JsonArray array = json.getAsJsonArray("reviewer"); + JsonArray array = getJArray(json, "reviewer"); for (int i = 0; i < array.size(); i++) { res.getReviewer().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("endorser")) { - JsonArray array = json.getAsJsonArray("endorser"); + JsonArray array = getJArray(json, "endorser"); for (int i = 0; i < array.size(); i++) { res.getEndorser().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("relatedArtifact")) { - JsonArray array = json.getAsJsonArray("relatedArtifact"); + JsonArray array = getJArray(json, "relatedArtifact"); for (int i = 0; i < array.size(); i++) { res.getRelatedArtifact().add(parseRelatedArtifact(array.get(i).getAsJsonObject())); } }; if (json.has("parameter")) { - JsonArray array = json.getAsJsonArray("parameter"); + JsonArray array = getJArray(json, "parameter"); for (int i = 0; i < array.size(); i++) { res.getParameter().add(parseParameterDefinition(array.get(i).getAsJsonObject())); } }; if (json.has("dataRequirement")) { - JsonArray array = json.getAsJsonArray("dataRequirement"); + JsonArray array = getJArray(json, "dataRequirement"); for (int i = 0; i < array.size(); i++) { res.getDataRequirement().add(parseDataRequirement(array.get(i).getAsJsonObject())); } }; if (json.has("content")) { - JsonArray array = json.getAsJsonArray("content"); + JsonArray array = getJArray(json, "content"); for (int i = 0; i < array.size(); i++) { res.getContent().add(parseAttachment(array.get(i).getAsJsonObject())); } @@ -17705,7 +17970,7 @@ public class JsonParser extends JsonParserBase { if (json.has("author")) res.setAuthor(parseReference(getJObject(json, "author"))); if (json.has("item")) { - JsonArray array = json.getAsJsonArray("item"); + JsonArray array = getJArray(json, "item"); for (int i = 0; i < array.size(); i++) { res.getItem().add(parseLinkageItemComponent(array.get(i).getAsJsonObject())); } @@ -17737,7 +18002,7 @@ public class JsonParser extends JsonParserBase { protected void parseListResourceProperties(JsonObject json, ListResource res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -17769,13 +18034,13 @@ public class JsonParser extends JsonParserBase { if (json.has("orderedBy")) res.setOrderedBy(parseCodeableConcept(getJObject(json, "orderedBy"))); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("entry")) { - JsonArray array = json.getAsJsonArray("entry"); + JsonArray array = getJArray(json, "entry"); for (int i = 0; i < array.size(); i++) { res.getEntry().add(parseListResourceEntryComponent(array.get(i).getAsJsonObject())); } @@ -17815,7 +18080,7 @@ public class JsonParser extends JsonParserBase { protected void parseLocationProperties(JsonObject json, Location res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -17831,7 +18096,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_name")) parseElementProperties(getJObject(json, "_name"), res.getNameElement()); if (json.has("alias")) { - JsonArray array = json.getAsJsonArray("alias"); + JsonArray array = getJArray(json, "alias"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getAlias().add(new StringType()); @@ -17841,7 +18106,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_alias")) { - JsonArray array = json.getAsJsonArray("_alias"); + JsonArray array = getJArray(json, "_alias"); for (int i = 0; i < array.size(); i++) { if (i == res.getAlias().size()) res.getAlias().add(parseString(null)); @@ -17858,13 +18123,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_mode")) parseElementProperties(getJObject(json, "_mode"), res.getModeElement()); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("telecom")) { - JsonArray array = json.getAsJsonArray("telecom"); + JsonArray array = getJArray(json, "telecom"); for (int i = 0; i < array.size(); i++) { res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject())); } @@ -17880,7 +18145,7 @@ public class JsonParser extends JsonParserBase { if (json.has("partOf")) res.setPartOf(parseReference(getJObject(json, "partOf"))); if (json.has("hoursOfOperation")) { - JsonArray array = json.getAsJsonArray("hoursOfOperation"); + JsonArray array = getJArray(json, "hoursOfOperation"); for (int i = 0; i < array.size(); i++) { res.getHoursOfOperation().add(parseLocationHoursOfOperationComponent(array.get(i).getAsJsonObject())); } @@ -17890,7 +18155,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_availabilityExceptions")) parseElementProperties(getJObject(json, "_availabilityExceptions"), res.getAvailabilityExceptionsElement()); if (json.has("endpoint")) { - JsonArray array = json.getAsJsonArray("endpoint"); + JsonArray array = getJArray(json, "endpoint"); for (int i = 0; i < array.size(); i++) { res.getEndpoint().add(parseReference(array.get(i).getAsJsonObject())); } @@ -17928,7 +18193,7 @@ public class JsonParser extends JsonParserBase { protected void parseLocationHoursOfOperationComponentProperties(JsonObject json, Location.LocationHoursOfOperationComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("daysOfWeek")) { - JsonArray array = json.getAsJsonArray("daysOfWeek"); + JsonArray array = getJArray(json, "daysOfWeek"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDaysOfWeek().add(new Enumeration(new Enumerations.DaysOfWeekEnumFactory(), Enumerations.DaysOfWeek.NULL)); @@ -17938,7 +18203,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_daysOfWeek")) { - JsonArray array = json.getAsJsonArray("_daysOfWeek"); + JsonArray array = getJArray(json, "_daysOfWeek"); for (int i = 0; i < array.size(); i++) { if (i == res.getDaysOfWeek().size()) res.getDaysOfWeek().add(parseEnumeration(null, Enumerations.DaysOfWeek.NULL, new Enumerations.DaysOfWeekEnumFactory())); @@ -17969,7 +18234,7 @@ public class JsonParser extends JsonParserBase { protected void parseManufacturedItemDefinitionProperties(JsonObject json, ManufacturedItemDefinition res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -17979,19 +18244,19 @@ public class JsonParser extends JsonParserBase { if (json.has("unitOfPresentation")) res.setUnitOfPresentation(parseCodeableConcept(getJObject(json, "unitOfPresentation"))); if (json.has("manufacturer")) { - JsonArray array = json.getAsJsonArray("manufacturer"); + JsonArray array = getJArray(json, "manufacturer"); for (int i = 0; i < array.size(); i++) { res.getManufacturer().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("ingredient")) { - JsonArray array = json.getAsJsonArray("ingredient"); + JsonArray array = getJArray(json, "ingredient"); for (int i = 0; i < array.size(); i++) { - res.getIngredient().add(parseReference(array.get(i).getAsJsonObject())); + res.getIngredient().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("property")) { - JsonArray array = json.getAsJsonArray("property"); + JsonArray array = getJArray(json, "property"); for (int i = 0; i < array.size(); i++) { res.getProperty().add(parseManufacturedItemDefinitionPropertyComponent(array.get(i).getAsJsonObject())); } @@ -18026,7 +18291,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -18058,6 +18323,10 @@ public class JsonParser extends JsonParserBase { DataType subject = parseType("subject", json); if (subject != null) res.setSubject(subject); + if (json.has("basis")) + res.setBasisElement(parseEnumeration(json.get("basis").getAsString(), Enumerations.FHIRAllTypes.NULL, new Enumerations.FHIRAllTypesEnumFactory())); + if (json.has("_basis")) + parseElementProperties(getJObject(json, "_basis"), res.getBasisElement()); if (json.has("date")) res.setDateElement(parseDateTime(json.get("date").getAsString())); if (json.has("_date")) @@ -18067,7 +18336,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -18077,13 +18346,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -18111,43 +18380,43 @@ public class JsonParser extends JsonParserBase { if (json.has("effectivePeriod")) res.setEffectivePeriod(parsePeriod(getJObject(json, "effectivePeriod"))); if (json.has("topic")) { - JsonArray array = json.getAsJsonArray("topic"); + JsonArray array = getJArray(json, "topic"); for (int i = 0; i < array.size(); i++) { res.getTopic().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("author")) { - JsonArray array = json.getAsJsonArray("author"); + JsonArray array = getJArray(json, "author"); for (int i = 0; i < array.size(); i++) { res.getAuthor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("editor")) { - JsonArray array = json.getAsJsonArray("editor"); + JsonArray array = getJArray(json, "editor"); for (int i = 0; i < array.size(); i++) { res.getEditor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("reviewer")) { - JsonArray array = json.getAsJsonArray("reviewer"); + JsonArray array = getJArray(json, "reviewer"); for (int i = 0; i < array.size(); i++) { res.getReviewer().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("endorser")) { - JsonArray array = json.getAsJsonArray("endorser"); + JsonArray array = getJArray(json, "endorser"); for (int i = 0; i < array.size(); i++) { res.getEndorser().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("relatedArtifact")) { - JsonArray array = json.getAsJsonArray("relatedArtifact"); + JsonArray array = getJArray(json, "relatedArtifact"); for (int i = 0; i < array.size(); i++) { res.getRelatedArtifact().add(parseRelatedArtifact(array.get(i).getAsJsonObject())); } }; if (json.has("library")) { - JsonArray array = json.getAsJsonArray("library"); + JsonArray array = getJArray(json, "library"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getLibrary().add(new CanonicalType()); @@ -18157,7 +18426,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_library")) { - JsonArray array = json.getAsJsonArray("_library"); + JsonArray array = getJArray(json, "_library"); for (int i = 0; i < array.size(); i++) { if (i == res.getLibrary().size()) res.getLibrary().add(parseCanonical(null)); @@ -18171,10 +18440,12 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_disclaimer"), res.getDisclaimerElement()); if (json.has("scoring")) res.setScoring(parseCodeableConcept(getJObject(json, "scoring"))); + if (json.has("scoringUnit")) + res.setScoringUnit(parseCodeableConcept(getJObject(json, "scoringUnit"))); if (json.has("compositeScoring")) res.setCompositeScoring(parseCodeableConcept(getJObject(json, "compositeScoring"))); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -18198,7 +18469,7 @@ public class JsonParser extends JsonParserBase { if (json.has("improvementNotation")) res.setImprovementNotation(parseCodeableConcept(getJObject(json, "improvementNotation"))); if (json.has("definition")) { - JsonArray array = json.getAsJsonArray("definition"); + JsonArray array = getJArray(json, "definition"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDefinition().add(new MarkdownType()); @@ -18208,7 +18479,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_definition")) { - JsonArray array = json.getAsJsonArray("_definition"); + JsonArray array = getJArray(json, "_definition"); for (int i = 0; i < array.size(); i++) { if (i == res.getDefinition().size()) res.getDefinition().add(parseMarkdown(null)); @@ -18221,13 +18492,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_guidance")) parseElementProperties(getJObject(json, "_guidance"), res.getGuidanceElement()); if (json.has("group")) { - JsonArray array = json.getAsJsonArray("group"); + JsonArray array = getJArray(json, "group"); for (int i = 0; i < array.size(); i++) { res.getGroup().add(parseMeasureGroupComponent(array.get(i).getAsJsonObject())); } }; if (json.has("supplementalData")) { - JsonArray array = json.getAsJsonArray("supplementalData"); + JsonArray array = getJArray(json, "supplementalData"); for (int i = 0; i < array.size(); i++) { res.getSupplementalData().add(parseMeasureSupplementalDataComponent(array.get(i).getAsJsonObject())); } @@ -18248,14 +18519,30 @@ public class JsonParser extends JsonParserBase { res.setDescriptionElement(parseString(json.get("description").getAsString())); if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); + if (json.has("type")) { + JsonArray array = getJArray(json, "type"); + for (int i = 0; i < array.size(); i++) { + res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; + if (json.has("basis")) + res.setBasisElement(parseEnumeration(json.get("basis").getAsString(), Enumerations.FHIRAllTypes.NULL, new Enumerations.FHIRAllTypesEnumFactory())); + if (json.has("_basis")) + parseElementProperties(getJObject(json, "_basis"), res.getBasisElement()); + if (json.has("scoring")) + res.setScoring(parseCodeableConcept(getJObject(json, "scoring"))); + if (json.has("scoringUnit")) + res.setScoringUnit(parseCodeableConcept(getJObject(json, "scoringUnit"))); + if (json.has("improvementNotation")) + res.setImprovementNotation(parseCodeableConcept(getJObject(json, "improvementNotation"))); if (json.has("population")) { - JsonArray array = json.getAsJsonArray("population"); + JsonArray array = getJArray(json, "population"); for (int i = 0; i < array.size(); i++) { res.getPopulation().add(parseMeasureGroupPopulationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("stratifier")) { - JsonArray array = json.getAsJsonArray("stratifier"); + JsonArray array = getJArray(json, "stratifier"); for (int i = 0; i < array.size(); i++) { res.getStratifier().add(parseMeasureGroupStratifierComponent(array.get(i).getAsJsonObject())); } @@ -18278,6 +18565,12 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("criteria")) res.setCriteria(parseExpression(getJObject(json, "criteria"))); + if (json.has("inputPopulationId")) + res.setInputPopulationIdElement(parseString(json.get("inputPopulationId").getAsString())); + if (json.has("_inputPopulationId")) + parseElementProperties(getJObject(json, "_inputPopulationId"), res.getInputPopulationIdElement()); + if (json.has("aggregateMethod")) + res.setAggregateMethod(parseCodeableConcept(getJObject(json, "aggregateMethod"))); } protected Measure.MeasureGroupStratifierComponent parseMeasureGroupStratifierComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -18297,7 +18590,7 @@ public class JsonParser extends JsonParserBase { if (json.has("criteria")) res.setCriteria(parseExpression(getJObject(json, "criteria"))); if (json.has("component")) { - JsonArray array = json.getAsJsonArray("component"); + JsonArray array = getJArray(json, "component"); for (int i = 0; i < array.size(); i++) { res.getComponent().add(parseMeasureGroupStratifierComponentComponent(array.get(i).getAsJsonObject())); } @@ -18333,7 +18626,7 @@ public class JsonParser extends JsonParserBase { if (json.has("code")) res.setCode(parseCodeableConcept(getJObject(json, "code"))); if (json.has("usage")) { - JsonArray array = json.getAsJsonArray("usage"); + JsonArray array = getJArray(json, "usage"); for (int i = 0; i < array.size(); i++) { res.getUsage().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -18355,7 +18648,7 @@ public class JsonParser extends JsonParserBase { protected void parseMeasureReportProperties(JsonObject json, MeasureReport res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -18368,6 +18661,10 @@ public class JsonParser extends JsonParserBase { res.setTypeElement(parseEnumeration(json.get("type").getAsString(), MeasureReport.MeasureReportType.NULL, new MeasureReport.MeasureReportTypeEnumFactory())); if (json.has("_type")) parseElementProperties(getJObject(json, "_type"), res.getTypeElement()); + if (json.has("dataUpdateType")) + res.setDataUpdateTypeElement(parseEnumeration(json.get("dataUpdateType").getAsString(), MeasureReport.SubmitDataUpdateType.NULL, new MeasureReport.SubmitDataUpdateTypeEnumFactory())); + if (json.has("_dataUpdateType")) + parseElementProperties(getJObject(json, "_dataUpdateType"), res.getDataUpdateTypeElement()); if (json.has("measure")) res.setMeasureElement(parseCanonical(json.get("measure").getAsString())); if (json.has("_measure")) @@ -18380,18 +18677,22 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_date"), res.getDateElement()); if (json.has("reporter")) res.setReporter(parseReference(getJObject(json, "reporter"))); + if (json.has("reportingVendor")) + res.setReportingVendor(parseReference(getJObject(json, "reportingVendor"))); if (json.has("period")) res.setPeriod(parsePeriod(getJObject(json, "period"))); + if (json.has("scoring")) + res.setScoring(parseCodeableConcept(getJObject(json, "scoring"))); if (json.has("improvementNotation")) res.setImprovementNotation(parseCodeableConcept(getJObject(json, "improvementNotation"))); if (json.has("group")) { - JsonArray array = json.getAsJsonArray("group"); + JsonArray array = getJArray(json, "group"); for (int i = 0; i < array.size(); i++) { res.getGroup().add(parseMeasureReportGroupComponent(array.get(i).getAsJsonObject())); } }; if (json.has("evaluatedResource")) { - JsonArray array = json.getAsJsonArray("evaluatedResource"); + JsonArray array = getJArray(json, "evaluatedResource"); for (int i = 0; i < array.size(); i++) { res.getEvaluatedResource().add(parseReference(array.get(i).getAsJsonObject())); } @@ -18409,15 +18710,16 @@ public class JsonParser extends JsonParserBase { if (json.has("code")) res.setCode(parseCodeableConcept(getJObject(json, "code"))); if (json.has("population")) { - JsonArray array = json.getAsJsonArray("population"); + JsonArray array = getJArray(json, "population"); for (int i = 0; i < array.size(); i++) { res.getPopulation().add(parseMeasureReportGroupPopulationComponent(array.get(i).getAsJsonObject())); } }; - if (json.has("measureScore")) - res.setMeasureScore(parseQuantity(getJObject(json, "measureScore"))); + DataType measureScore = parseType("measureScore", json); + if (measureScore != null) + res.setMeasureScore(measureScore); if (json.has("stratifier")) { - JsonArray array = json.getAsJsonArray("stratifier"); + JsonArray array = getJArray(json, "stratifier"); for (int i = 0; i < array.size(); i++) { res.getStratifier().add(parseMeasureReportGroupStratifierComponent(array.get(i).getAsJsonObject())); } @@ -18451,13 +18753,13 @@ public class JsonParser extends JsonParserBase { protected void parseMeasureReportGroupStratifierComponentProperties(JsonObject json, MeasureReport.MeasureReportGroupStratifierComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("code")) { - JsonArray array = json.getAsJsonArray("code"); + JsonArray array = getJArray(json, "code"); for (int i = 0; i < array.size(); i++) { res.getCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("stratum")) { - JsonArray array = json.getAsJsonArray("stratum"); + JsonArray array = getJArray(json, "stratum"); for (int i = 0; i < array.size(); i++) { res.getStratum().add(parseMeasureReportStratifierGroupComponent(array.get(i).getAsJsonObject())); } @@ -18472,22 +18774,24 @@ public class JsonParser extends JsonParserBase { protected void parseMeasureReportStratifierGroupComponentProperties(JsonObject json, MeasureReport.StratifierGroupComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); - if (json.has("value")) - res.setValue(parseCodeableConcept(getJObject(json, "value"))); + DataType value = parseType("value", json); + if (value != null) + res.setValue(value); if (json.has("component")) { - JsonArray array = json.getAsJsonArray("component"); + JsonArray array = getJArray(json, "component"); for (int i = 0; i < array.size(); i++) { res.getComponent().add(parseMeasureReportStratifierGroupComponentComponent(array.get(i).getAsJsonObject())); } }; if (json.has("population")) { - JsonArray array = json.getAsJsonArray("population"); + JsonArray array = getJArray(json, "population"); for (int i = 0; i < array.size(); i++) { res.getPopulation().add(parseMeasureReportStratifierGroupPopulationComponent(array.get(i).getAsJsonObject())); } }; - if (json.has("measureScore")) - res.setMeasureScore(parseQuantity(getJObject(json, "measureScore"))); + DataType measureScore = parseType("measureScore", json); + if (measureScore != null) + res.setMeasureScore(measureScore); } protected MeasureReport.StratifierGroupComponentComponent parseMeasureReportStratifierGroupComponentComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -18500,8 +18804,9 @@ public class JsonParser extends JsonParserBase { parseBackboneElementProperties(json, res); if (json.has("code")) res.setCode(parseCodeableConcept(getJObject(json, "code"))); - if (json.has("value")) - res.setValue(parseCodeableConcept(getJObject(json, "value"))); + DataType value = parseType("value", json); + if (value != null) + res.setValue(value); } protected MeasureReport.StratifierGroupPopulationComponent parseMeasureReportStratifierGroupPopulationComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -18531,7 +18836,7 @@ public class JsonParser extends JsonParserBase { protected void parseMedicationProperties(JsonObject json, Medication res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -18542,14 +18847,14 @@ public class JsonParser extends JsonParserBase { res.setStatusElement(parseEnumeration(json.get("status").getAsString(), Medication.MedicationStatusCodes.NULL, new Medication.MedicationStatusCodesEnumFactory())); if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); - if (json.has("manufacturer")) - res.setManufacturer(parseReference(getJObject(json, "manufacturer"))); + if (json.has("sponsor")) + res.setSponsor(parseReference(getJObject(json, "sponsor"))); if (json.has("doseForm")) res.setDoseForm(parseCodeableConcept(getJObject(json, "doseForm"))); if (json.has("amount")) res.setAmount(parseRatio(getJObject(json, "amount"))); if (json.has("ingredient")) { - JsonArray array = json.getAsJsonArray("ingredient"); + JsonArray array = getJArray(json, "ingredient"); for (int i = 0; i < array.size(); i++) { res.getIngredient().add(parseMedicationIngredientComponent(array.get(i).getAsJsonObject())); } @@ -18604,13 +18909,13 @@ public class JsonParser extends JsonParserBase { protected void parseMedicationAdministrationProperties(JsonObject json, MedicationAdministration res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("instantiatesCanonical"); + JsonArray array = getJArray(json, "instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesCanonical().add(new CanonicalType()); @@ -18620,7 +18925,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("_instantiatesCanonical"); + JsonArray array = getJArray(json, "_instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesCanonical().size()) res.getInstantiatesCanonical().add(parseCanonical(null)); @@ -18629,7 +18934,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("instantiatesUri")) { - JsonArray array = json.getAsJsonArray("instantiatesUri"); + JsonArray array = getJArray(json, "instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesUri().add(new UriType()); @@ -18639,7 +18944,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesUri")) { - JsonArray array = json.getAsJsonArray("_instantiatesUri"); + JsonArray array = getJArray(json, "_instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesUri().size()) res.getInstantiatesUri().add(parseUri(null)); @@ -18648,13 +18953,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("partOf")) { - JsonArray array = json.getAsJsonArray("partOf"); + JsonArray array = getJArray(json, "partOf"); for (int i = 0; i < array.size(); i++) { res.getPartOf().add(parseReference(array.get(i).getAsJsonObject())); } @@ -18664,13 +18969,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("statusReason")) { - JsonArray array = json.getAsJsonArray("statusReason"); + JsonArray array = getJArray(json, "statusReason"); for (int i = 0; i < array.size(); i++) { res.getStatusReason().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -18682,7 +18987,7 @@ public class JsonParser extends JsonParserBase { if (json.has("encounter")) res.setEncounter(parseReference(getJObject(json, "encounter"))); if (json.has("supportingInformation")) { - JsonArray array = json.getAsJsonArray("supportingInformation"); + JsonArray array = getJArray(json, "supportingInformation"); for (int i = 0; i < array.size(); i++) { res.getSupportingInformation().add(parseReference(array.get(i).getAsJsonObject())); } @@ -18695,13 +19000,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_recorded")) parseElementProperties(getJObject(json, "_recorded"), res.getRecordedElement()); if (json.has("performer")) { - JsonArray array = json.getAsJsonArray("performer"); + JsonArray array = getJArray(json, "performer"); for (int i = 0; i < array.size(); i++) { res.getPerformer().add(parseMedicationAdministrationPerformerComponent(array.get(i).getAsJsonObject())); } }; if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } @@ -18709,13 +19014,13 @@ public class JsonParser extends JsonParserBase { if (json.has("request")) res.setRequest(parseReference(getJObject(json, "request"))); if (json.has("device")) { - JsonArray array = json.getAsJsonArray("device"); + JsonArray array = getJArray(json, "device"); for (int i = 0; i < array.size(); i++) { res.getDevice().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -18723,7 +19028,7 @@ public class JsonParser extends JsonParserBase { if (json.has("dosage")) res.setDosage(parseMedicationAdministrationDosageComponent(getJObject(json, "dosage"))); if (json.has("eventHistory")) { - JsonArray array = json.getAsJsonArray("eventHistory"); + JsonArray array = getJArray(json, "eventHistory"); for (int i = 0; i < array.size(); i++) { res.getEventHistory().add(parseReference(array.get(i).getAsJsonObject())); } @@ -18778,19 +19083,19 @@ public class JsonParser extends JsonParserBase { protected void parseMedicationDispenseProperties(JsonObject json, MedicationDispense res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("partOf")) { - JsonArray array = json.getAsJsonArray("partOf"); + JsonArray array = getJArray(json, "partOf"); for (int i = 0; i < array.size(); i++) { res.getPartOf().add(parseReference(array.get(i).getAsJsonObject())); } @@ -18802,7 +19107,7 @@ public class JsonParser extends JsonParserBase { if (json.has("statusReason")) res.setStatusReason(parseCodeableReference(getJObject(json, "statusReason"))); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -18814,13 +19119,13 @@ public class JsonParser extends JsonParserBase { if (json.has("encounter")) res.setEncounter(parseReference(getJObject(json, "encounter"))); if (json.has("supportingInformation")) { - JsonArray array = json.getAsJsonArray("supportingInformation"); + JsonArray array = getJArray(json, "supportingInformation"); for (int i = 0; i < array.size(); i++) { res.getSupportingInformation().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("performer")) { - JsonArray array = json.getAsJsonArray("performer"); + JsonArray array = getJArray(json, "performer"); for (int i = 0; i < array.size(); i++) { res.getPerformer().add(parseMedicationDispensePerformerComponent(array.get(i).getAsJsonObject())); } @@ -18828,7 +19133,7 @@ public class JsonParser extends JsonParserBase { if (json.has("location")) res.setLocation(parseReference(getJObject(json, "location"))); if (json.has("authorizingPrescription")) { - JsonArray array = json.getAsJsonArray("authorizingPrescription"); + JsonArray array = getJArray(json, "authorizingPrescription"); for (int i = 0; i < array.size(); i++) { res.getAuthorizingPrescription().add(parseReference(array.get(i).getAsJsonObject())); } @@ -18850,13 +19155,13 @@ public class JsonParser extends JsonParserBase { if (json.has("destination")) res.setDestination(parseReference(getJObject(json, "destination"))); if (json.has("receiver")) { - JsonArray array = json.getAsJsonArray("receiver"); + JsonArray array = getJArray(json, "receiver"); for (int i = 0; i < array.size(); i++) { res.getReceiver().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -18866,7 +19171,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_renderedDosageInstruction")) parseElementProperties(getJObject(json, "_renderedDosageInstruction"), res.getRenderedDosageInstructionElement()); if (json.has("dosageInstruction")) { - JsonArray array = json.getAsJsonArray("dosageInstruction"); + JsonArray array = getJArray(json, "dosageInstruction"); for (int i = 0; i < array.size(); i++) { res.getDosageInstruction().add(parseDosage(array.get(i).getAsJsonObject())); } @@ -18874,13 +19179,13 @@ public class JsonParser extends JsonParserBase { if (json.has("substitution")) res.setSubstitution(parseMedicationDispenseSubstitutionComponent(getJObject(json, "substitution"))); if (json.has("detectedIssue")) { - JsonArray array = json.getAsJsonArray("detectedIssue"); + JsonArray array = getJArray(json, "detectedIssue"); for (int i = 0; i < array.size(); i++) { res.getDetectedIssue().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("eventHistory")) { - JsonArray array = json.getAsJsonArray("eventHistory"); + JsonArray array = getJArray(json, "eventHistory"); for (int i = 0; i < array.size(); i++) { res.getEventHistory().add(parseReference(array.get(i).getAsJsonObject())); } @@ -18916,7 +19221,7 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -18934,7 +19239,7 @@ public class JsonParser extends JsonParserBase { protected void parseMedicationKnowledgeProperties(JsonObject json, MedicationKnowledge res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -18947,14 +19252,14 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("author")) res.setAuthor(parseReference(getJObject(json, "author"))); - if (json.has("manufacturer")) - res.setManufacturer(parseReference(getJObject(json, "manufacturer"))); + if (json.has("sponsor")) + res.setSponsor(parseReference(getJObject(json, "sponsor"))); if (json.has("doseForm")) res.setDoseForm(parseCodeableConcept(getJObject(json, "doseForm"))); if (json.has("amount")) res.setAmount(parseQuantity(getJObject(json, "amount"))); if (json.has("synonym")) { - JsonArray array = json.getAsJsonArray("synonym"); + JsonArray array = getJArray(json, "synonym"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSynonym().add(new StringType()); @@ -18964,7 +19269,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_synonym")) { - JsonArray array = json.getAsJsonArray("_synonym"); + JsonArray array = getJArray(json, "_synonym"); for (int i = 0; i < array.size(); i++) { if (i == res.getSynonym().size()) res.getSynonym().add(parseString(null)); @@ -18973,13 +19278,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("relatedMedicationKnowledge")) { - JsonArray array = json.getAsJsonArray("relatedMedicationKnowledge"); + JsonArray array = getJArray(json, "relatedMedicationKnowledge"); for (int i = 0; i < array.size(); i++) { res.getRelatedMedicationKnowledge().add(parseMedicationKnowledgeRelatedMedicationKnowledgeComponent(array.get(i).getAsJsonObject())); } }; if (json.has("associatedMedication")) { - JsonArray array = json.getAsJsonArray("associatedMedication"); + JsonArray array = getJArray(json, "associatedMedication"); for (int i = 0; i < array.size(); i++) { res.getAssociatedMedication().add(parseReference(array.get(i).getAsJsonObject())); } @@ -18987,25 +19292,25 @@ public class JsonParser extends JsonParserBase { if (json.has("associatedDefinition")) res.setAssociatedDefinition(parseReference(getJObject(json, "associatedDefinition"))); if (json.has("productType")) { - JsonArray array = json.getAsJsonArray("productType"); + JsonArray array = getJArray(json, "productType"); for (int i = 0; i < array.size(); i++) { res.getProductType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("monograph")) { - JsonArray array = json.getAsJsonArray("monograph"); + JsonArray array = getJArray(json, "monograph"); for (int i = 0; i < array.size(); i++) { res.getMonograph().add(parseMedicationKnowledgeMonographComponent(array.get(i).getAsJsonObject())); } }; if (json.has("ingredient")) { - JsonArray array = json.getAsJsonArray("ingredient"); + JsonArray array = getJArray(json, "ingredient"); for (int i = 0; i < array.size(); i++) { res.getIngredient().add(parseMedicationKnowledgeIngredientComponent(array.get(i).getAsJsonObject())); } }; if (json.has("device")) { - JsonArray array = json.getAsJsonArray("device"); + JsonArray array = getJArray(json, "device"); for (int i = 0; i < array.size(); i++) { res.getDevice().add(parseReference(array.get(i).getAsJsonObject())); } @@ -19015,61 +19320,61 @@ public class JsonParser extends JsonParserBase { if (json.has("_preparationInstruction")) parseElementProperties(getJObject(json, "_preparationInstruction"), res.getPreparationInstructionElement()); if (json.has("intendedRoute")) { - JsonArray array = json.getAsJsonArray("intendedRoute"); + JsonArray array = getJArray(json, "intendedRoute"); for (int i = 0; i < array.size(); i++) { res.getIntendedRoute().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("cost")) { - JsonArray array = json.getAsJsonArray("cost"); + JsonArray array = getJArray(json, "cost"); for (int i = 0; i < array.size(); i++) { res.getCost().add(parseMedicationKnowledgeCostComponent(array.get(i).getAsJsonObject())); } }; if (json.has("monitoringProgram")) { - JsonArray array = json.getAsJsonArray("monitoringProgram"); + JsonArray array = getJArray(json, "monitoringProgram"); for (int i = 0; i < array.size(); i++) { res.getMonitoringProgram().add(parseMedicationKnowledgeMonitoringProgramComponent(array.get(i).getAsJsonObject())); } }; - if (json.has("administrationGuideline")) { - JsonArray array = json.getAsJsonArray("administrationGuideline"); + if (json.has("indicationGuideline")) { + JsonArray array = getJArray(json, "indicationGuideline"); for (int i = 0; i < array.size(); i++) { - res.getAdministrationGuideline().add(parseMedicationKnowledgeAdministrationGuidelineComponent(array.get(i).getAsJsonObject())); + res.getIndicationGuideline().add(parseMedicationKnowledgeIndicationGuidelineComponent(array.get(i).getAsJsonObject())); } }; if (json.has("medicineClassification")) { - JsonArray array = json.getAsJsonArray("medicineClassification"); + JsonArray array = getJArray(json, "medicineClassification"); for (int i = 0; i < array.size(); i++) { res.getMedicineClassification().add(parseMedicationKnowledgeMedicineClassificationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("packaging")) { - JsonArray array = json.getAsJsonArray("packaging"); + JsonArray array = getJArray(json, "packaging"); for (int i = 0; i < array.size(); i++) { res.getPackaging().add(parseMedicationKnowledgePackagingComponent(array.get(i).getAsJsonObject())); } }; if (json.has("drugCharacteristic")) { - JsonArray array = json.getAsJsonArray("drugCharacteristic"); + JsonArray array = getJArray(json, "drugCharacteristic"); for (int i = 0; i < array.size(); i++) { res.getDrugCharacteristic().add(parseMedicationKnowledgeDrugCharacteristicComponent(array.get(i).getAsJsonObject())); } }; if (json.has("clinicalUseIssue")) { - JsonArray array = json.getAsJsonArray("clinicalUseIssue"); + JsonArray array = getJArray(json, "clinicalUseIssue"); for (int i = 0; i < array.size(); i++) { res.getClinicalUseIssue().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("regulatory")) { - JsonArray array = json.getAsJsonArray("regulatory"); + JsonArray array = getJArray(json, "regulatory"); for (int i = 0; i < array.size(); i++) { res.getRegulatory().add(parseMedicationKnowledgeRegulatoryComponent(array.get(i).getAsJsonObject())); } }; if (json.has("kineticCharacteristic")) { - JsonArray array = json.getAsJsonArray("kineticCharacteristic"); + JsonArray array = getJArray(json, "kineticCharacteristic"); for (int i = 0; i < array.size(); i++) { res.getKineticCharacteristic().add(parseMedicationKnowledgeKineticCharacteristicComponent(array.get(i).getAsJsonObject())); } @@ -19087,7 +19392,7 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("reference")) { - JsonArray array = json.getAsJsonArray("reference"); + JsonArray array = getJArray(json, "reference"); for (int i = 0; i < array.size(); i++) { res.getReference().add(parseReference(array.get(i).getAsJsonObject())); } @@ -19119,9 +19424,7 @@ public class JsonParser extends JsonParserBase { if (json.has("item")) res.setItem(parseCodeableReference(getJObject(json, "item"))); if (json.has("isActive")) - res.setIsActiveElement(parseBoolean(json.get("isActive").getAsBoolean())); - if (json.has("_isActive")) - parseElementProperties(getJObject(json, "_isActive"), res.getIsActiveElement()); + res.setIsActive(parseCodeableConcept(getJObject(json, "isActive"))); DataType strength = parseType("strength", json); if (strength != null) res.setStrength(strength); @@ -19136,7 +19439,7 @@ public class JsonParser extends JsonParserBase { protected void parseMedicationKnowledgeCostComponentProperties(JsonObject json, MedicationKnowledge.MedicationKnowledgeCostComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("effectiveDate")) { - JsonArray array = json.getAsJsonArray("effectiveDate"); + JsonArray array = getJArray(json, "effectiveDate"); for (int i = 0; i < array.size(); i++) { res.getEffectiveDate().add(parsePeriod(array.get(i).getAsJsonObject())); } @@ -19168,55 +19471,79 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_name"), res.getNameElement()); } - protected MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineComponent parseMedicationKnowledgeAdministrationGuidelineComponent(JsonObject json) throws IOException, FHIRFormatError { - MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineComponent res = new MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineComponent(); - parseMedicationKnowledgeAdministrationGuidelineComponentProperties(json, res); + protected MedicationKnowledge.MedicationKnowledgeIndicationGuidelineComponent parseMedicationKnowledgeIndicationGuidelineComponent(JsonObject json) throws IOException, FHIRFormatError { + MedicationKnowledge.MedicationKnowledgeIndicationGuidelineComponent res = new MedicationKnowledge.MedicationKnowledgeIndicationGuidelineComponent(); + parseMedicationKnowledgeIndicationGuidelineComponentProperties(json, res); return res; } - protected void parseMedicationKnowledgeAdministrationGuidelineComponentProperties(JsonObject json, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineComponent res) throws IOException, FHIRFormatError { + protected void parseMedicationKnowledgeIndicationGuidelineComponentProperties(JsonObject json, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); - if (json.has("dosage")) { - JsonArray array = json.getAsJsonArray("dosage"); + if (json.has("indication")) { + JsonArray array = getJArray(json, "indication"); for (int i = 0; i < array.size(); i++) { - res.getDosage().add(parseMedicationKnowledgeAdministrationGuidelineDosageComponent(array.get(i).getAsJsonObject())); + res.getIndication().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; - if (json.has("indication")) - res.setIndication(parseCodeableReference(getJObject(json, "indication"))); - if (json.has("patientCharacteristic")) { - JsonArray array = json.getAsJsonArray("patientCharacteristic"); + if (json.has("dosingGuideline")) { + JsonArray array = getJArray(json, "dosingGuideline"); for (int i = 0; i < array.size(); i++) { - res.getPatientCharacteristic().add(parseMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent(array.get(i).getAsJsonObject())); + res.getDosingGuideline().add(parseMedicationKnowledgeIndicationGuidelineDosingGuidelineComponent(array.get(i).getAsJsonObject())); } }; } - protected MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineDosageComponent parseMedicationKnowledgeAdministrationGuidelineDosageComponent(JsonObject json) throws IOException, FHIRFormatError { - MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineDosageComponent res = new MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineDosageComponent(); - parseMedicationKnowledgeAdministrationGuidelineDosageComponentProperties(json, res); + protected MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent parseMedicationKnowledgeIndicationGuidelineDosingGuidelineComponent(JsonObject json) throws IOException, FHIRFormatError { + MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent res = new MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent(); + parseMedicationKnowledgeIndicationGuidelineDosingGuidelineComponentProperties(json, res); return res; } - protected void parseMedicationKnowledgeAdministrationGuidelineDosageComponentProperties(JsonObject json, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineDosageComponent res) throws IOException, FHIRFormatError { + protected void parseMedicationKnowledgeIndicationGuidelineDosingGuidelineComponentProperties(JsonObject json, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("treatmentIntent")) + res.setTreatmentIntent(parseCodeableConcept(getJObject(json, "treatmentIntent"))); + if (json.has("dosage")) { + JsonArray array = getJArray(json, "dosage"); + for (int i = 0; i < array.size(); i++) { + res.getDosage().add(parseMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("administrationTreatment")) + res.setAdministrationTreatment(parseCodeableConcept(getJObject(json, "administrationTreatment"))); + if (json.has("patientCharacteristic")) { + JsonArray array = getJArray(json, "patientCharacteristic"); + for (int i = 0; i < array.size(); i++) { + res.getPatientCharacteristic().add(parseMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent(array.get(i).getAsJsonObject())); + } + }; + } + + protected MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent parseMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent(JsonObject json) throws IOException, FHIRFormatError { + MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent res = new MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent(); + parseMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponentProperties(json, res); + return res; + } + + protected void parseMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponentProperties(JsonObject json, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("dosage")) { - JsonArray array = json.getAsJsonArray("dosage"); + JsonArray array = getJArray(json, "dosage"); for (int i = 0; i < array.size(); i++) { res.getDosage().add(parseDosage(array.get(i).getAsJsonObject())); } }; } - protected MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent parseMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent(JsonObject json) throws IOException, FHIRFormatError { - MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent res = new MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent(); - parseMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponentProperties(json, res); + protected MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent parseMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent(JsonObject json) throws IOException, FHIRFormatError { + MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent res = new MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent(); + parseMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponentProperties(json, res); return res; } - protected void parseMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponentProperties(JsonObject json, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent res) throws IOException, FHIRFormatError { + protected void parseMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponentProperties(JsonObject json, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); @@ -19236,7 +19563,7 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("classification")) { - JsonArray array = json.getAsJsonArray("classification"); + JsonArray array = getJArray(json, "classification"); for (int i = 0; i < array.size(); i++) { res.getClassification().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -19264,7 +19591,7 @@ public class JsonParser extends JsonParserBase { if (json.has("material")) res.setMaterial(parseCodeableConcept(getJObject(json, "material"))); if (json.has("packaging")) { - JsonArray array = json.getAsJsonArray("packaging"); + JsonArray array = getJArray(json, "packaging"); for (int i = 0; i < array.size(); i++) { res.getPackaging().add(parseMedicationKnowledgePackagingComponent(array.get(i).getAsJsonObject())); } @@ -19297,13 +19624,13 @@ public class JsonParser extends JsonParserBase { if (json.has("regulatoryAuthority")) res.setRegulatoryAuthority(parseReference(getJObject(json, "regulatoryAuthority"))); if (json.has("substitution")) { - JsonArray array = json.getAsJsonArray("substitution"); + JsonArray array = getJArray(json, "substitution"); for (int i = 0; i < array.size(); i++) { res.getSubstitution().add(parseMedicationKnowledgeRegulatorySubstitutionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("schedule")) { - JsonArray array = json.getAsJsonArray("schedule"); + JsonArray array = getJArray(json, "schedule"); for (int i = 0; i < array.size(); i++) { res.getSchedule().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -19366,7 +19693,7 @@ public class JsonParser extends JsonParserBase { protected void parseMedicationRequestProperties(JsonObject json, MedicationRequest res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -19382,7 +19709,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_intent")) parseElementProperties(getJObject(json, "_intent"), res.getIntentElement()); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -19408,7 +19735,7 @@ public class JsonParser extends JsonParserBase { if (json.has("encounter")) res.setEncounter(parseReference(getJObject(json, "encounter"))); if (json.has("supportingInformation")) { - JsonArray array = json.getAsJsonArray("supportingInformation"); + JsonArray array = getJArray(json, "supportingInformation"); for (int i = 0; i < array.size(); i++) { res.getSupportingInformation().add(parseReference(array.get(i).getAsJsonObject())); } @@ -19426,13 +19753,13 @@ public class JsonParser extends JsonParserBase { if (json.has("recorder")) res.setRecorder(parseReference(getJObject(json, "recorder"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("instantiatesCanonical"); + JsonArray array = getJArray(json, "instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesCanonical().add(new CanonicalType()); @@ -19442,7 +19769,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("_instantiatesCanonical"); + JsonArray array = getJArray(json, "_instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesCanonical().size()) res.getInstantiatesCanonical().add(parseCanonical(null)); @@ -19451,7 +19778,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("instantiatesUri")) { - JsonArray array = json.getAsJsonArray("instantiatesUri"); + JsonArray array = getJArray(json, "instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesUri().add(new UriType()); @@ -19461,7 +19788,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesUri")) { - JsonArray array = json.getAsJsonArray("_instantiatesUri"); + JsonArray array = getJArray(json, "_instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesUri().size()) res.getInstantiatesUri().add(parseUri(null)); @@ -19470,7 +19797,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } @@ -19480,13 +19807,13 @@ public class JsonParser extends JsonParserBase { if (json.has("courseOfTherapyType")) res.setCourseOfTherapyType(parseCodeableConcept(getJObject(json, "courseOfTherapyType"))); if (json.has("insurance")) { - JsonArray array = json.getAsJsonArray("insurance"); + JsonArray array = getJArray(json, "insurance"); for (int i = 0; i < array.size(); i++) { res.getInsurance().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -19496,7 +19823,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_renderedDosageInstruction")) parseElementProperties(getJObject(json, "_renderedDosageInstruction"), res.getRenderedDosageInstructionElement()); if (json.has("dosageInstruction")) { - JsonArray array = json.getAsJsonArray("dosageInstruction"); + JsonArray array = getJArray(json, "dosageInstruction"); for (int i = 0; i < array.size(); i++) { res.getDosageInstruction().add(parseDosage(array.get(i).getAsJsonObject())); } @@ -19508,13 +19835,13 @@ public class JsonParser extends JsonParserBase { if (json.has("priorPrescription")) res.setPriorPrescription(parseReference(getJObject(json, "priorPrescription"))); if (json.has("detectedIssue")) { - JsonArray array = json.getAsJsonArray("detectedIssue"); + JsonArray array = getJArray(json, "detectedIssue"); for (int i = 0; i < array.size(); i++) { res.getDetectedIssue().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("eventHistory")) { - JsonArray array = json.getAsJsonArray("eventHistory"); + JsonArray array = getJArray(json, "eventHistory"); for (int i = 0; i < array.size(); i++) { res.getEventHistory().add(parseReference(array.get(i).getAsJsonObject())); } @@ -19545,6 +19872,14 @@ public class JsonParser extends JsonParserBase { res.setExpectedSupplyDuration(parseDuration(getJObject(json, "expectedSupplyDuration"))); if (json.has("dispenser")) res.setDispenser(parseReference(getJObject(json, "dispenser"))); + if (json.has("dispenserInstruction")) { + JsonArray array = getJArray(json, "dispenserInstruction"); + for (int i = 0; i < array.size(); i++) { + res.getDispenserInstruction().add(parseAnnotation(array.get(i).getAsJsonObject())); + } + }; + if (json.has("doseAdministrationAid")) + res.setDoseAdministrationAid(parseCodeableConcept(getJObject(json, "doseAdministrationAid"))); } protected MedicationRequest.MedicationRequestDispenseRequestInitialFillComponent parseMedicationRequestDispenseRequestInitialFillComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -19585,19 +19920,19 @@ public class JsonParser extends JsonParserBase { protected void parseMedicationUsageProperties(JsonObject json, MedicationUsage res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("partOf")) { - JsonArray array = json.getAsJsonArray("partOf"); + JsonArray array = getJArray(json, "partOf"); for (int i = 0; i < array.size(); i++) { res.getPartOf().add(parseReference(array.get(i).getAsJsonObject())); } @@ -19607,13 +19942,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("statusReason")) { - JsonArray array = json.getAsJsonArray("statusReason"); + JsonArray array = getJArray(json, "statusReason"); for (int i = 0; i < array.size(); i++) { res.getStatusReason().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -19634,19 +19969,19 @@ public class JsonParser extends JsonParserBase { if (json.has("informationSource")) res.setInformationSource(parseReference(getJObject(json, "informationSource"))); if (json.has("derivedFrom")) { - JsonArray array = json.getAsJsonArray("derivedFrom"); + JsonArray array = getJArray(json, "derivedFrom"); for (int i = 0; i < array.size(); i++) { res.getDerivedFrom().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -19656,15 +19991,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_renderedDosageInstruction")) parseElementProperties(getJObject(json, "_renderedDosageInstruction"), res.getRenderedDosageInstructionElement()); if (json.has("dosage")) { - JsonArray array = json.getAsJsonArray("dosage"); + JsonArray array = getJArray(json, "dosage"); for (int i = 0; i < array.size(); i++) { res.getDosage().add(parseDosage(array.get(i).getAsJsonObject())); } }; - if (json.has("takenAsOrdered")) - res.setTakenAsOrderedElement(parseBoolean(json.get("takenAsOrdered").getAsBoolean())); - if (json.has("_takenAsOrdered")) - parseElementProperties(getJObject(json, "_takenAsOrdered"), res.getTakenAsOrderedElement()); + if (json.has("adherence")) + res.setAdherence(parseCodeableConcept(getJObject(json, "adherence"))); } protected MedicinalProductDefinition parseMedicinalProductDefinition(JsonObject json) throws IOException, FHIRFormatError { @@ -19676,7 +20009,7 @@ public class JsonParser extends JsonParserBase { protected void parseMedicinalProductDefinitionProperties(JsonObject json, MedicinalProductDefinition res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -19710,7 +20043,7 @@ public class JsonParser extends JsonParserBase { if (json.has("additionalMonitoringIndicator")) res.setAdditionalMonitoringIndicator(parseCodeableConcept(getJObject(json, "additionalMonitoringIndicator"))); if (json.has("specialMeasures")) { - JsonArray array = json.getAsJsonArray("specialMeasures"); + JsonArray array = getJArray(json, "specialMeasures"); for (int i = 0; i < array.size(); i++) { res.getSpecialMeasures().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -19718,87 +20051,87 @@ public class JsonParser extends JsonParserBase { if (json.has("paediatricUseIndicator")) res.setPaediatricUseIndicator(parseCodeableConcept(getJObject(json, "paediatricUseIndicator"))); if (json.has("classification")) { - JsonArray array = json.getAsJsonArray("classification"); + JsonArray array = getJArray(json, "classification"); for (int i = 0; i < array.size(); i++) { res.getClassification().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("characteristic")) { - JsonArray array = json.getAsJsonArray("characteristic"); + JsonArray array = getJArray(json, "characteristic"); for (int i = 0; i < array.size(); i++) { res.getCharacteristic().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("marketingStatus")) { - JsonArray array = json.getAsJsonArray("marketingStatus"); + JsonArray array = getJArray(json, "marketingStatus"); for (int i = 0; i < array.size(); i++) { res.getMarketingStatus().add(parseMarketingStatus(array.get(i).getAsJsonObject())); } }; - if (json.has("pharmaceuticalProduct")) { - JsonArray array = json.getAsJsonArray("pharmaceuticalProduct"); - for (int i = 0; i < array.size(); i++) { - res.getPharmaceuticalProduct().add(parseReference(array.get(i).getAsJsonObject())); - } - }; - if (json.has("packagedMedicinalProduct")) { - JsonArray array = json.getAsJsonArray("packagedMedicinalProduct"); - for (int i = 0; i < array.size(); i++) { - res.getPackagedMedicinalProduct().add(parseReference(array.get(i).getAsJsonObject())); - } - }; if (json.has("ingredient")) { - JsonArray array = json.getAsJsonArray("ingredient"); + JsonArray array = getJArray(json, "ingredient"); for (int i = 0; i < array.size(); i++) { - res.getIngredient().add(parseReference(array.get(i).getAsJsonObject())); + res.getIngredient().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("impurity")) { - JsonArray array = json.getAsJsonArray("impurity"); + JsonArray array = getJArray(json, "impurity"); for (int i = 0; i < array.size(); i++) { res.getImpurity().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("attachedDocument")) { - JsonArray array = json.getAsJsonArray("attachedDocument"); + JsonArray array = getJArray(json, "attachedDocument"); for (int i = 0; i < array.size(); i++) { res.getAttachedDocument().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("masterFile")) { - JsonArray array = json.getAsJsonArray("masterFile"); + JsonArray array = getJArray(json, "masterFile"); for (int i = 0; i < array.size(); i++) { res.getMasterFile().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseMedicinalProductDefinitionContactComponent(array.get(i).getAsJsonObject())); } }; if (json.has("clinicalTrial")) { - JsonArray array = json.getAsJsonArray("clinicalTrial"); + JsonArray array = getJArray(json, "clinicalTrial"); for (int i = 0; i < array.size(); i++) { res.getClinicalTrial().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("name")) { - JsonArray array = json.getAsJsonArray("name"); + JsonArray array = getJArray(json, "name"); for (int i = 0; i < array.size(); i++) { res.getName().add(parseMedicinalProductDefinitionNameComponent(array.get(i).getAsJsonObject())); } }; if (json.has("crossReference")) { - JsonArray array = json.getAsJsonArray("crossReference"); + JsonArray array = getJArray(json, "crossReference"); for (int i = 0; i < array.size(); i++) { res.getCrossReference().add(parseMedicinalProductDefinitionCrossReferenceComponent(array.get(i).getAsJsonObject())); } }; - if (json.has("manufacturingBusinessOperation")) { - JsonArray array = json.getAsJsonArray("manufacturingBusinessOperation"); + if (json.has("operation")) { + JsonArray array = getJArray(json, "operation"); for (int i = 0; i < array.size(); i++) { - res.getManufacturingBusinessOperation().add(parseMedicinalProductDefinitionManufacturingBusinessOperationComponent(array.get(i).getAsJsonObject())); + res.getOperation().add(parseMedicinalProductDefinitionOperationComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("package")) { + JsonArray array = getJArray(json, "package"); + for (int i = 0; i < array.size(); i++) { + res.getPackage().add(parseMedicinalProductDefinitionPackageComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("administrableProduct")) { + JsonArray array = getJArray(json, "administrableProduct"); + for (int i = 0; i < array.size(); i++) { + res.getAdministrableProduct().add(parseMedicinalProductDefinitionAdministrableProductComponent(array.get(i).getAsJsonObject())); } }; } @@ -19832,13 +20165,13 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("namePart")) { - JsonArray array = json.getAsJsonArray("namePart"); + JsonArray array = getJArray(json, "namePart"); for (int i = 0; i < array.size(); i++) { res.getNamePart().add(parseMedicinalProductDefinitionNameNamePartComponent(array.get(i).getAsJsonObject())); } }; if (json.has("countryLanguage")) { - JsonArray array = json.getAsJsonArray("countryLanguage"); + JsonArray array = getJArray(json, "countryLanguage"); for (int i = 0; i < array.size(); i++) { res.getCountryLanguage().add(parseMedicinalProductDefinitionNameCountryLanguageComponent(array.get(i).getAsJsonObject())); } @@ -19891,22 +20224,22 @@ public class JsonParser extends JsonParserBase { res.setType(parseCodeableConcept(getJObject(json, "type"))); } - protected MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent parseMedicinalProductDefinitionManufacturingBusinessOperationComponent(JsonObject json) throws IOException, FHIRFormatError { - MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent res = new MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent(); - parseMedicinalProductDefinitionManufacturingBusinessOperationComponentProperties(json, res); + protected MedicinalProductDefinition.MedicinalProductDefinitionOperationComponent parseMedicinalProductDefinitionOperationComponent(JsonObject json) throws IOException, FHIRFormatError { + MedicinalProductDefinition.MedicinalProductDefinitionOperationComponent res = new MedicinalProductDefinition.MedicinalProductDefinitionOperationComponent(); + parseMedicinalProductDefinitionOperationComponentProperties(json, res); return res; } - protected void parseMedicinalProductDefinitionManufacturingBusinessOperationComponentProperties(JsonObject json, MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent res) throws IOException, FHIRFormatError { + protected void parseMedicinalProductDefinitionOperationComponentProperties(JsonObject json, MedicinalProductDefinition.MedicinalProductDefinitionOperationComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("type")) res.setType(parseCodeableReference(getJObject(json, "type"))); if (json.has("effectiveDate")) res.setEffectiveDate(parsePeriod(getJObject(json, "effectiveDate"))); - if (json.has("manufacturer")) { - JsonArray array = json.getAsJsonArray("manufacturer"); + if (json.has("organization")) { + JsonArray array = getJArray(json, "organization"); for (int i = 0; i < array.size(); i++) { - res.getManufacturer().add(parseReference(array.get(i).getAsJsonObject())); + res.getOrganization().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("authorization")) @@ -19915,6 +20248,41 @@ public class JsonParser extends JsonParserBase { res.setConfidentialityIndicator(parseCodeableConcept(getJObject(json, "confidentialityIndicator"))); } + protected MedicinalProductDefinition.MedicinalProductDefinitionPackageComponent parseMedicinalProductDefinitionPackageComponent(JsonObject json) throws IOException, FHIRFormatError { + MedicinalProductDefinition.MedicinalProductDefinitionPackageComponent res = new MedicinalProductDefinition.MedicinalProductDefinitionPackageComponent(); + parseMedicinalProductDefinitionPackageComponentProperties(json, res); + return res; + } + + protected void parseMedicinalProductDefinitionPackageComponentProperties(JsonObject json, MedicinalProductDefinition.MedicinalProductDefinitionPackageComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("type")) + res.setType(parseCodeableConcept(getJObject(json, "type"))); + DataType size = parseType("size", json); + if (size != null) + res.setSize(size); + if (json.has("package")) + res.setPackage(parseReference(getJObject(json, "package"))); + } + + protected MedicinalProductDefinition.MedicinalProductDefinitionAdministrableProductComponent parseMedicinalProductDefinitionAdministrableProductComponent(JsonObject json) throws IOException, FHIRFormatError { + MedicinalProductDefinition.MedicinalProductDefinitionAdministrableProductComponent res = new MedicinalProductDefinition.MedicinalProductDefinitionAdministrableProductComponent(); + parseMedicinalProductDefinitionAdministrableProductComponentProperties(json, res); + return res; + } + + protected void parseMedicinalProductDefinitionAdministrableProductComponentProperties(JsonObject json, MedicinalProductDefinition.MedicinalProductDefinitionAdministrableProductComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("route")) { + JsonArray array = getJArray(json, "route"); + for (int i = 0; i < array.size(); i++) { + res.getRoute().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; + if (json.has("product")) + res.setProduct(parseReference(getJObject(json, "product"))); + } + protected MessageDefinition parseMessageDefinition(JsonObject json) throws IOException, FHIRFormatError { MessageDefinition res = new MessageDefinition(); parseMessageDefinitionProperties(json, res); @@ -19928,7 +20296,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -19946,7 +20314,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_title")) parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); if (json.has("replaces")) { - JsonArray array = json.getAsJsonArray("replaces"); + JsonArray array = getJArray(json, "replaces"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getReplaces().add(new CanonicalType()); @@ -19956,7 +20324,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_replaces")) { - JsonArray array = json.getAsJsonArray("_replaces"); + JsonArray array = getJArray(json, "_replaces"); for (int i = 0; i < array.size(); i++) { if (i == res.getReplaces().size()) res.getReplaces().add(parseCanonical(null)); @@ -19981,7 +20349,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -19991,13 +20359,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -20015,7 +20383,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_base")) parseElementProperties(getJObject(json, "_base"), res.getBaseElement()); if (json.has("parent")) { - JsonArray array = json.getAsJsonArray("parent"); + JsonArray array = getJArray(json, "parent"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getParent().add(new CanonicalType()); @@ -20025,7 +20393,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_parent")) { - JsonArray array = json.getAsJsonArray("_parent"); + JsonArray array = getJArray(json, "_parent"); for (int i = 0; i < array.size(); i++) { if (i == res.getParent().size()) res.getParent().add(parseCanonical(null)); @@ -20041,7 +20409,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_category")) parseElementProperties(getJObject(json, "_category"), res.getCategoryElement()); if (json.has("focus")) { - JsonArray array = json.getAsJsonArray("focus"); + JsonArray array = getJArray(json, "focus"); for (int i = 0; i < array.size(); i++) { res.getFocus().add(parseMessageDefinitionFocusComponent(array.get(i).getAsJsonObject())); } @@ -20051,13 +20419,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_responseRequired")) parseElementProperties(getJObject(json, "_responseRequired"), res.getResponseRequiredElement()); if (json.has("allowedResponse")) { - JsonArray array = json.getAsJsonArray("allowedResponse"); + JsonArray array = getJArray(json, "allowedResponse"); for (int i = 0; i < array.size(); i++) { res.getAllowedResponse().add(parseMessageDefinitionAllowedResponseComponent(array.get(i).getAsJsonObject())); } }; if (json.has("graph")) { - JsonArray array = json.getAsJsonArray("graph"); + JsonArray array = getJArray(json, "graph"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getGraph().add(new CanonicalType()); @@ -20067,7 +20435,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_graph")) { - JsonArray array = json.getAsJsonArray("_graph"); + JsonArray array = getJArray(json, "_graph"); for (int i = 0; i < array.size(); i++) { if (i == res.getGraph().size()) res.getGraph().add(parseCanonical(null)); @@ -20133,7 +20501,7 @@ public class JsonParser extends JsonParserBase { if (event != null) res.setEvent(event); if (json.has("destination")) { - JsonArray array = json.getAsJsonArray("destination"); + JsonArray array = getJArray(json, "destination"); for (int i = 0; i < array.size(); i++) { res.getDestination().add(parseMessageHeaderMessageDestinationComponent(array.get(i).getAsJsonObject())); } @@ -20153,7 +20521,7 @@ public class JsonParser extends JsonParserBase { if (json.has("response")) res.setResponse(parseMessageHeaderResponseComponent(getJObject(json, "response"))); if (json.has("focus")) { - JsonArray array = json.getAsJsonArray("focus"); + JsonArray array = getJArray(json, "focus"); for (int i = 0; i < array.size(); i++) { res.getFocus().add(parseReference(array.get(i).getAsJsonObject())); } @@ -20243,7 +20611,7 @@ public class JsonParser extends JsonParserBase { protected void parseMolecularSequenceProperties(JsonObject json, MolecularSequence res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -20269,7 +20637,7 @@ public class JsonParser extends JsonParserBase { if (json.has("referenceSeq")) res.setReferenceSeq(parseMolecularSequenceReferenceSeqComponent(getJObject(json, "referenceSeq"))); if (json.has("variant")) { - JsonArray array = json.getAsJsonArray("variant"); + JsonArray array = getJArray(json, "variant"); for (int i = 0; i < array.size(); i++) { res.getVariant().add(parseMolecularSequenceVariantComponent(array.get(i).getAsJsonObject())); } @@ -20279,7 +20647,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_observedSeq")) parseElementProperties(getJObject(json, "_observedSeq"), res.getObservedSeqElement()); if (json.has("quality")) { - JsonArray array = json.getAsJsonArray("quality"); + JsonArray array = getJArray(json, "quality"); for (int i = 0; i < array.size(); i++) { res.getQuality().add(parseMolecularSequenceQualityComponent(array.get(i).getAsJsonObject())); } @@ -20289,19 +20657,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_readCoverage")) parseElementProperties(getJObject(json, "_readCoverage"), res.getReadCoverageElement()); if (json.has("repository")) { - JsonArray array = json.getAsJsonArray("repository"); + JsonArray array = getJArray(json, "repository"); for (int i = 0; i < array.size(); i++) { res.getRepository().add(parseMolecularSequenceRepositoryComponent(array.get(i).getAsJsonObject())); } }; if (json.has("pointer")) { - JsonArray array = json.getAsJsonArray("pointer"); + JsonArray array = getJArray(json, "pointer"); for (int i = 0; i < array.size(); i++) { res.getPointer().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("structureVariant")) { - JsonArray array = json.getAsJsonArray("structureVariant"); + JsonArray array = getJArray(json, "structureVariant"); for (int i = 0; i < array.size(); i++) { res.getStructureVariant().add(parseMolecularSequenceStructureVariantComponent(array.get(i).getAsJsonObject())); } @@ -20451,7 +20819,7 @@ public class JsonParser extends JsonParserBase { protected void parseMolecularSequenceQualityRocComponentProperties(JsonObject json, MolecularSequence.MolecularSequenceQualityRocComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("score")) { - JsonArray array = json.getAsJsonArray("score"); + JsonArray array = getJArray(json, "score"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getScore().add(new IntegerType()); @@ -20461,7 +20829,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_score")) { - JsonArray array = json.getAsJsonArray("_score"); + JsonArray array = getJArray(json, "_score"); for (int i = 0; i < array.size(); i++) { if (i == res.getScore().size()) res.getScore().add(parseInteger(null)); @@ -20470,7 +20838,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("numTP")) { - JsonArray array = json.getAsJsonArray("numTP"); + JsonArray array = getJArray(json, "numTP"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNumTP().add(new IntegerType()); @@ -20480,7 +20848,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_numTP")) { - JsonArray array = json.getAsJsonArray("_numTP"); + JsonArray array = getJArray(json, "_numTP"); for (int i = 0; i < array.size(); i++) { if (i == res.getNumTP().size()) res.getNumTP().add(parseInteger(null)); @@ -20489,7 +20857,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("numFP")) { - JsonArray array = json.getAsJsonArray("numFP"); + JsonArray array = getJArray(json, "numFP"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNumFP().add(new IntegerType()); @@ -20499,7 +20867,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_numFP")) { - JsonArray array = json.getAsJsonArray("_numFP"); + JsonArray array = getJArray(json, "_numFP"); for (int i = 0; i < array.size(); i++) { if (i == res.getNumFP().size()) res.getNumFP().add(parseInteger(null)); @@ -20508,7 +20876,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("numFN")) { - JsonArray array = json.getAsJsonArray("numFN"); + JsonArray array = getJArray(json, "numFN"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getNumFN().add(new IntegerType()); @@ -20518,7 +20886,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_numFN")) { - JsonArray array = json.getAsJsonArray("_numFN"); + JsonArray array = getJArray(json, "_numFN"); for (int i = 0; i < array.size(); i++) { if (i == res.getNumFN().size()) res.getNumFN().add(parseInteger(null)); @@ -20527,7 +20895,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("precision")) { - JsonArray array = json.getAsJsonArray("precision"); + JsonArray array = getJArray(json, "precision"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPrecision().add(new DecimalType()); @@ -20537,7 +20905,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_precision")) { - JsonArray array = json.getAsJsonArray("_precision"); + JsonArray array = getJArray(json, "_precision"); for (int i = 0; i < array.size(); i++) { if (i == res.getPrecision().size()) res.getPrecision().add(parseDecimal(null)); @@ -20546,7 +20914,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("sensitivity")) { - JsonArray array = json.getAsJsonArray("sensitivity"); + JsonArray array = getJArray(json, "sensitivity"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSensitivity().add(new DecimalType()); @@ -20556,7 +20924,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_sensitivity")) { - JsonArray array = json.getAsJsonArray("_sensitivity"); + JsonArray array = getJArray(json, "_sensitivity"); for (int i = 0; i < array.size(); i++) { if (i == res.getSensitivity().size()) res.getSensitivity().add(parseDecimal(null)); @@ -20565,7 +20933,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("fMeasure")) { - JsonArray array = json.getAsJsonArray("fMeasure"); + JsonArray array = getJArray(json, "fMeasure"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getFMeasure().add(new DecimalType()); @@ -20575,7 +20943,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_fMeasure")) { - JsonArray array = json.getAsJsonArray("_fMeasure"); + JsonArray array = getJArray(json, "_fMeasure"); for (int i = 0; i < array.size(); i++) { if (i == res.getFMeasure().size()) res.getFMeasure().add(parseDecimal(null)); @@ -20699,6 +21067,10 @@ public class JsonParser extends JsonParserBase { res.setNameElement(parseString(json.get("name").getAsString())); if (json.has("_name")) parseElementProperties(getJObject(json, "_name"), res.getNameElement()); + if (json.has("title")) + res.setTitleElement(parseString(json.get("title").getAsString())); + if (json.has("_title")) + parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); if (json.has("status")) res.setStatusElement(parseEnumeration(json.get("status").getAsString(), Enumerations.PublicationStatus.NULL, new Enumerations.PublicationStatusEnumFactory())); if (json.has("_status")) @@ -20716,7 +21088,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -20732,13 +21104,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -20748,7 +21120,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_usage")) parseElementProperties(getJObject(json, "_usage"), res.getUsageElement()); if (json.has("uniqueId")) { - JsonArray array = json.getAsJsonArray("uniqueId"); + JsonArray array = getJArray(json, "uniqueId"); for (int i = 0; i < array.size(); i++) { res.getUniqueId().add(parseNamingSystemUniqueIdComponent(array.get(i).getAsJsonObject())); } @@ -20781,6 +21153,10 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_comment"), res.getCommentElement()); if (json.has("period")) res.setPeriod(parsePeriod(getJObject(json, "period"))); + if (json.has("authoritative")) + res.setAuthoritativeElement(parseBoolean(json.get("authoritative").getAsBoolean())); + if (json.has("_authoritative")) + parseElementProperties(getJObject(json, "_authoritative"), res.getAuthoritativeElement()); } protected NutritionIntake parseNutritionIntake(JsonObject json) throws IOException, FHIRFormatError { @@ -20792,13 +21168,13 @@ public class JsonParser extends JsonParserBase { protected void parseNutritionIntakeProperties(JsonObject json, NutritionIntake res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("instantiatesCanonical"); + JsonArray array = getJArray(json, "instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesCanonical().add(new CanonicalType()); @@ -20808,7 +21184,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("_instantiatesCanonical"); + JsonArray array = getJArray(json, "_instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesCanonical().size()) res.getInstantiatesCanonical().add(parseCanonical(null)); @@ -20817,7 +21193,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("instantiatesUri")) { - JsonArray array = json.getAsJsonArray("instantiatesUri"); + JsonArray array = getJArray(json, "instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesUri().add(new UriType()); @@ -20827,7 +21203,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesUri")) { - JsonArray array = json.getAsJsonArray("_instantiatesUri"); + JsonArray array = getJArray(json, "_instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesUri().size()) res.getInstantiatesUri().add(parseUri(null)); @@ -20836,13 +21212,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("partOf")) { - JsonArray array = json.getAsJsonArray("partOf"); + JsonArray array = getJArray(json, "partOf"); for (int i = 0; i < array.size(); i++) { res.getPartOf().add(parseReference(array.get(i).getAsJsonObject())); } @@ -20852,7 +21228,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("statusReason")) { - JsonArray array = json.getAsJsonArray("statusReason"); + JsonArray array = getJArray(json, "statusReason"); for (int i = 0; i < array.size(); i++) { res.getStatusReason().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -20874,19 +21250,19 @@ public class JsonParser extends JsonParserBase { if (reported != null) res.setReported(reported); if (json.has("consumedItem")) { - JsonArray array = json.getAsJsonArray("consumedItem"); + JsonArray array = getJArray(json, "consumedItem"); for (int i = 0; i < array.size(); i++) { res.getConsumedItem().add(parseNutritionIntakeConsumedItemComponent(array.get(i).getAsJsonObject())); } }; if (json.has("ingredientLabel")) { - JsonArray array = json.getAsJsonArray("ingredientLabel"); + JsonArray array = getJArray(json, "ingredientLabel"); for (int i = 0; i < array.size(); i++) { res.getIngredientLabel().add(parseNutritionIntakeIngredientLabelComponent(array.get(i).getAsJsonObject())); } }; if (json.has("performer")) { - JsonArray array = json.getAsJsonArray("performer"); + JsonArray array = getJArray(json, "performer"); for (int i = 0; i < array.size(); i++) { res.getPerformer().add(parseNutritionIntakePerformerComponent(array.get(i).getAsJsonObject())); } @@ -20894,19 +21270,19 @@ public class JsonParser extends JsonParserBase { if (json.has("location")) res.setLocation(parseReference(getJObject(json, "location"))); if (json.has("derivedFrom")) { - JsonArray array = json.getAsJsonArray("derivedFrom"); + JsonArray array = getJArray(json, "derivedFrom"); for (int i = 0; i < array.size(); i++) { res.getDerivedFrom().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -20976,13 +21352,13 @@ public class JsonParser extends JsonParserBase { protected void parseNutritionOrderProperties(JsonObject json, NutritionOrder res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("instantiatesCanonical"); + JsonArray array = getJArray(json, "instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesCanonical().add(new CanonicalType()); @@ -20992,7 +21368,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("_instantiatesCanonical"); + JsonArray array = getJArray(json, "_instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesCanonical().size()) res.getInstantiatesCanonical().add(parseCanonical(null)); @@ -21001,7 +21377,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("instantiatesUri")) { - JsonArray array = json.getAsJsonArray("instantiatesUri"); + JsonArray array = getJArray(json, "instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesUri().add(new UriType()); @@ -21011,7 +21387,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesUri")) { - JsonArray array = json.getAsJsonArray("_instantiatesUri"); + JsonArray array = getJArray(json, "_instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesUri().size()) res.getInstantiatesUri().add(parseUri(null)); @@ -21020,7 +21396,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("instantiates")) { - JsonArray array = json.getAsJsonArray("instantiates"); + JsonArray array = getJArray(json, "instantiates"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiates().add(new UriType()); @@ -21030,7 +21406,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiates")) { - JsonArray array = json.getAsJsonArray("_instantiates"); + JsonArray array = getJArray(json, "_instantiates"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiates().size()) res.getInstantiates().add(parseUri(null)); @@ -21057,19 +21433,19 @@ public class JsonParser extends JsonParserBase { if (json.has("orderer")) res.setOrderer(parseReference(getJObject(json, "orderer"))); if (json.has("allergyIntolerance")) { - JsonArray array = json.getAsJsonArray("allergyIntolerance"); + JsonArray array = getJArray(json, "allergyIntolerance"); for (int i = 0; i < array.size(); i++) { res.getAllergyIntolerance().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("foodPreferenceModifier")) { - JsonArray array = json.getAsJsonArray("foodPreferenceModifier"); + JsonArray array = getJArray(json, "foodPreferenceModifier"); for (int i = 0; i < array.size(); i++) { res.getFoodPreferenceModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("excludeFoodModifier")) { - JsonArray array = json.getAsJsonArray("excludeFoodModifier"); + JsonArray array = getJArray(json, "excludeFoodModifier"); for (int i = 0; i < array.size(); i++) { res.getExcludeFoodModifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -21077,7 +21453,7 @@ public class JsonParser extends JsonParserBase { if (json.has("oralDiet")) res.setOralDiet(parseNutritionOrderOralDietComponent(getJObject(json, "oralDiet"))); if (json.has("supplement")) { - JsonArray array = json.getAsJsonArray("supplement"); + JsonArray array = getJArray(json, "supplement"); for (int i = 0; i < array.size(); i++) { res.getSupplement().add(parseNutritionOrderSupplementComponent(array.get(i).getAsJsonObject())); } @@ -21085,7 +21461,7 @@ public class JsonParser extends JsonParserBase { if (json.has("enteralFormula")) res.setEnteralFormula(parseNutritionOrderEnteralFormulaComponent(getJObject(json, "enteralFormula"))); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -21101,31 +21477,31 @@ public class JsonParser extends JsonParserBase { protected void parseNutritionOrderOralDietComponentProperties(JsonObject json, NutritionOrder.NutritionOrderOralDietComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("schedule")) { - JsonArray array = json.getAsJsonArray("schedule"); + JsonArray array = getJArray(json, "schedule"); for (int i = 0; i < array.size(); i++) { res.getSchedule().add(parseTiming(array.get(i).getAsJsonObject())); } }; if (json.has("nutrient")) { - JsonArray array = json.getAsJsonArray("nutrient"); + JsonArray array = getJArray(json, "nutrient"); for (int i = 0; i < array.size(); i++) { res.getNutrient().add(parseNutritionOrderOralDietNutrientComponent(array.get(i).getAsJsonObject())); } }; if (json.has("texture")) { - JsonArray array = json.getAsJsonArray("texture"); + JsonArray array = getJArray(json, "texture"); for (int i = 0; i < array.size(); i++) { res.getTexture().add(parseNutritionOrderOralDietTextureComponent(array.get(i).getAsJsonObject())); } }; if (json.has("fluidConsistencyType")) { - JsonArray array = json.getAsJsonArray("fluidConsistencyType"); + JsonArray array = getJArray(json, "fluidConsistencyType"); for (int i = 0; i < array.size(); i++) { res.getFluidConsistencyType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -21179,7 +21555,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_productName")) parseElementProperties(getJObject(json, "_productName"), res.getProductNameElement()); if (json.has("schedule")) { - JsonArray array = json.getAsJsonArray("schedule"); + JsonArray array = getJArray(json, "schedule"); for (int i = 0; i < array.size(); i++) { res.getSchedule().add(parseTiming(array.get(i).getAsJsonObject())); } @@ -21217,7 +21593,7 @@ public class JsonParser extends JsonParserBase { if (json.has("routeofAdministration")) res.setRouteofAdministration(parseCodeableConcept(getJObject(json, "routeofAdministration"))); if (json.has("administration")) { - JsonArray array = json.getAsJsonArray("administration"); + JsonArray array = getJArray(json, "administration"); for (int i = 0; i < array.size(); i++) { res.getAdministration().add(parseNutritionOrderEnteralFormulaAdministrationComponent(array.get(i).getAsJsonObject())); } @@ -21260,7 +21636,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -21268,31 +21644,31 @@ public class JsonParser extends JsonParserBase { if (json.has("code")) res.setCode(parseCodeableConcept(getJObject(json, "code"))); if (json.has("manufacturer")) { - JsonArray array = json.getAsJsonArray("manufacturer"); + JsonArray array = getJArray(json, "manufacturer"); for (int i = 0; i < array.size(); i++) { res.getManufacturer().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("nutrient")) { - JsonArray array = json.getAsJsonArray("nutrient"); + JsonArray array = getJArray(json, "nutrient"); for (int i = 0; i < array.size(); i++) { res.getNutrient().add(parseNutritionProductNutrientComponent(array.get(i).getAsJsonObject())); } }; if (json.has("ingredient")) { - JsonArray array = json.getAsJsonArray("ingredient"); + JsonArray array = getJArray(json, "ingredient"); for (int i = 0; i < array.size(); i++) { res.getIngredient().add(parseNutritionProductIngredientComponent(array.get(i).getAsJsonObject())); } }; if (json.has("knownAllergen")) { - JsonArray array = json.getAsJsonArray("knownAllergen"); + JsonArray array = getJArray(json, "knownAllergen"); for (int i = 0; i < array.size(); i++) { res.getKnownAllergen().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("productCharacteristic")) { - JsonArray array = json.getAsJsonArray("productCharacteristic"); + JsonArray array = getJArray(json, "productCharacteristic"); for (int i = 0; i < array.size(); i++) { res.getProductCharacteristic().add(parseNutritionProductProductCharacteristicComponent(array.get(i).getAsJsonObject())); } @@ -21300,7 +21676,7 @@ public class JsonParser extends JsonParserBase { if (json.has("instance")) res.setInstance(parseNutritionProductInstanceComponent(getJObject(json, "instance"))); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -21318,7 +21694,7 @@ public class JsonParser extends JsonParserBase { if (json.has("item")) res.setItem(parseCodeableReference(getJObject(json, "item"))); if (json.has("amount")) { - JsonArray array = json.getAsJsonArray("amount"); + JsonArray array = getJArray(json, "amount"); for (int i = 0; i < array.size(); i++) { res.getAmount().add(parseRatio(array.get(i).getAsJsonObject())); } @@ -21336,7 +21712,7 @@ public class JsonParser extends JsonParserBase { if (json.has("item")) res.setItem(parseCodeableReference(getJObject(json, "item"))); if (json.has("amount")) { - JsonArray array = json.getAsJsonArray("amount"); + JsonArray array = getJArray(json, "amount"); for (int i = 0; i < array.size(); i++) { res.getAmount().add(parseRatio(array.get(i).getAsJsonObject())); } @@ -21369,7 +21745,7 @@ public class JsonParser extends JsonParserBase { if (json.has("quantity")) res.setQuantity(parseQuantity(getJObject(json, "quantity"))); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -21397,19 +21773,22 @@ public class JsonParser extends JsonParserBase { protected void parseObservationProperties(JsonObject json, Observation res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; + DataType instantiates = parseType("instantiates", json); + if (instantiates != null) + res.setInstantiates(instantiates); if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("partOf")) { - JsonArray array = json.getAsJsonArray("partOf"); + JsonArray array = getJArray(json, "partOf"); for (int i = 0; i < array.size(); i++) { res.getPartOf().add(parseReference(array.get(i).getAsJsonObject())); } @@ -21419,7 +21798,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -21429,7 +21808,7 @@ public class JsonParser extends JsonParserBase { if (json.has("subject")) res.setSubject(parseReference(getJObject(json, "subject"))); if (json.has("focus")) { - JsonArray array = json.getAsJsonArray("focus"); + JsonArray array = getJArray(json, "focus"); for (int i = 0; i < array.size(); i++) { res.getFocus().add(parseReference(array.get(i).getAsJsonObject())); } @@ -21444,7 +21823,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_issued")) parseElementProperties(getJObject(json, "_issued"), res.getIssuedElement()); if (json.has("performer")) { - JsonArray array = json.getAsJsonArray("performer"); + JsonArray array = getJArray(json, "performer"); for (int i = 0; i < array.size(); i++) { res.getPerformer().add(parseReference(array.get(i).getAsJsonObject())); } @@ -21455,13 +21834,13 @@ public class JsonParser extends JsonParserBase { if (json.has("dataAbsentReason")) res.setDataAbsentReason(parseCodeableConcept(getJObject(json, "dataAbsentReason"))); if (json.has("interpretation")) { - JsonArray array = json.getAsJsonArray("interpretation"); + JsonArray array = getJArray(json, "interpretation"); for (int i = 0; i < array.size(); i++) { res.getInterpretation().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -21475,25 +21854,25 @@ public class JsonParser extends JsonParserBase { if (json.has("device")) res.setDevice(parseReference(getJObject(json, "device"))); if (json.has("referenceRange")) { - JsonArray array = json.getAsJsonArray("referenceRange"); + JsonArray array = getJArray(json, "referenceRange"); for (int i = 0; i < array.size(); i++) { res.getReferenceRange().add(parseObservationReferenceRangeComponent(array.get(i).getAsJsonObject())); } }; if (json.has("hasMember")) { - JsonArray array = json.getAsJsonArray("hasMember"); + JsonArray array = getJArray(json, "hasMember"); for (int i = 0; i < array.size(); i++) { res.getHasMember().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("derivedFrom")) { - JsonArray array = json.getAsJsonArray("derivedFrom"); + JsonArray array = getJArray(json, "derivedFrom"); for (int i = 0; i < array.size(); i++) { res.getDerivedFrom().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("component")) { - JsonArray array = json.getAsJsonArray("component"); + JsonArray array = getJArray(json, "component"); for (int i = 0; i < array.size(); i++) { res.getComponent().add(parseObservationComponentComponent(array.get(i).getAsJsonObject())); } @@ -21515,7 +21894,7 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("appliesTo")) { - JsonArray array = json.getAsJsonArray("appliesTo"); + JsonArray array = getJArray(json, "appliesTo"); for (int i = 0; i < array.size(); i++) { res.getAppliesTo().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -21544,13 +21923,13 @@ public class JsonParser extends JsonParserBase { if (json.has("dataAbsentReason")) res.setDataAbsentReason(parseCodeableConcept(getJObject(json, "dataAbsentReason"))); if (json.has("interpretation")) { - JsonArray array = json.getAsJsonArray("interpretation"); + JsonArray array = getJArray(json, "interpretation"); for (int i = 0; i < array.size(); i++) { res.getInterpretation().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("referenceRange")) { - JsonArray array = json.getAsJsonArray("referenceRange"); + JsonArray array = getJArray(json, "referenceRange"); for (int i = 0; i < array.size(); i++) { res.getReferenceRange().add(parseObservationReferenceRangeComponent(array.get(i).getAsJsonObject())); } @@ -21575,48 +21954,14 @@ public class JsonParser extends JsonParserBase { res.setVersionElement(parseString(json.get("version").getAsString())); if (json.has("_version")) parseElementProperties(getJObject(json, "_version"), res.getVersionElement()); + if (json.has("name")) + res.setNameElement(parseString(json.get("name").getAsString())); + if (json.has("_name")) + parseElementProperties(getJObject(json, "_name"), res.getNameElement()); if (json.has("title")) res.setTitleElement(parseString(json.get("title").getAsString())); if (json.has("_title")) parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); - if (json.has("derivedFromCanonical")) { - JsonArray array = json.getAsJsonArray("derivedFromCanonical"); - for (int i = 0; i < array.size(); i++) { - if (array.get(i).isJsonNull()) { - res.getDerivedFromCanonical().add(new CanonicalType()); - } else {; - res.getDerivedFromCanonical().add(parseCanonical(array.get(i).getAsString())); - } - } - }; - if (json.has("_derivedFromCanonical")) { - JsonArray array = json.getAsJsonArray("_derivedFromCanonical"); - for (int i = 0; i < array.size(); i++) { - if (i == res.getDerivedFromCanonical().size()) - res.getDerivedFromCanonical().add(parseCanonical(null)); - if (array.get(i) instanceof JsonObject) - parseElementProperties(array.get(i).getAsJsonObject(), res.getDerivedFromCanonical().get(i)); - } - }; - if (json.has("derivedFromUri")) { - JsonArray array = json.getAsJsonArray("derivedFromUri"); - for (int i = 0; i < array.size(); i++) { - if (array.get(i).isJsonNull()) { - res.getDerivedFromUri().add(new UriType()); - } else {; - res.getDerivedFromUri().add(parseUri(array.get(i).getAsString())); - } - } - }; - if (json.has("_derivedFromUri")) { - JsonArray array = json.getAsJsonArray("_derivedFromUri"); - for (int i = 0; i < array.size(); i++) { - if (i == res.getDerivedFromUri().size()) - res.getDerivedFromUri().add(parseUri(null)); - if (array.get(i) instanceof JsonObject) - parseElementProperties(array.get(i).getAsJsonObject(), res.getDerivedFromUri().get(i)); - } - }; if (json.has("status")) res.setStatusElement(parseEnumeration(json.get("status").getAsString(), Enumerations.PublicationStatus.NULL, new Enumerations.PublicationStatusEnumFactory())); if (json.has("_status")) @@ -21625,9 +21970,6 @@ public class JsonParser extends JsonParserBase { res.setExperimentalElement(parseBoolean(json.get("experimental").getAsBoolean())); if (json.has("_experimental")) parseElementProperties(getJObject(json, "_experimental"), res.getExperimentalElement()); - DataType subject = parseType("subject", json); - if (subject != null) - res.setSubject(subject); if (json.has("date")) res.setDateElement(parseDateTime(json.get("date").getAsString())); if (json.has("_date")) @@ -21635,7 +21977,7 @@ public class JsonParser extends JsonParserBase { if (json.has("publisher")) res.setPublisher(parseReference(getJObject(json, "publisher"))); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -21645,13 +21987,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -21674,10 +22016,50 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_lastReviewDate"), res.getLastReviewDateElement()); if (json.has("effectivePeriod")) res.setEffectivePeriod(parsePeriod(getJObject(json, "effectivePeriod"))); + if (json.has("derivedFromCanonical")) { + JsonArray array = getJArray(json, "derivedFromCanonical"); + for (int i = 0; i < array.size(); i++) { + if (array.get(i).isJsonNull()) { + res.getDerivedFromCanonical().add(new CanonicalType()); + } else {; + res.getDerivedFromCanonical().add(parseCanonical(array.get(i).getAsString())); + } + } + }; + if (json.has("_derivedFromCanonical")) { + JsonArray array = getJArray(json, "_derivedFromCanonical"); + for (int i = 0; i < array.size(); i++) { + if (i == res.getDerivedFromCanonical().size()) + res.getDerivedFromCanonical().add(parseCanonical(null)); + if (array.get(i) instanceof JsonObject) + parseElementProperties(array.get(i).getAsJsonObject(), res.getDerivedFromCanonical().get(i)); + } + }; + if (json.has("derivedFromUri")) { + JsonArray array = getJArray(json, "derivedFromUri"); + for (int i = 0; i < array.size(); i++) { + if (array.get(i).isJsonNull()) { + res.getDerivedFromUri().add(new UriType()); + } else {; + res.getDerivedFromUri().add(parseUri(array.get(i).getAsString())); + } + } + }; + if (json.has("_derivedFromUri")) { + JsonArray array = getJArray(json, "_derivedFromUri"); + for (int i = 0; i < array.size(); i++) { + if (i == res.getDerivedFromUri().size()) + res.getDerivedFromUri().add(parseUri(null)); + if (array.get(i) instanceof JsonObject) + parseElementProperties(array.get(i).getAsJsonObject(), res.getDerivedFromUri().get(i)); + } + }; + if (json.has("subject")) + res.setSubject(parseCodeableConcept(getJObject(json, "subject"))); if (json.has("performerType")) res.setPerformerType(parseCodeableConcept(getJObject(json, "performerType"))); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -21685,7 +22067,7 @@ public class JsonParser extends JsonParserBase { if (json.has("code")) res.setCode(parseCodeableConcept(getJObject(json, "code"))); if (json.has("permittedDataType")) { - JsonArray array = json.getAsJsonArray("permittedDataType"); + JsonArray array = getJArray(json, "permittedDataType"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPermittedDataType().add(new Enumeration(new ObservationDefinition.ObservationDataTypeEnumFactory(), ObservationDefinition.ObservationDataType.NULL)); @@ -21695,7 +22077,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_permittedDataType")) { - JsonArray array = json.getAsJsonArray("_permittedDataType"); + JsonArray array = getJArray(json, "_permittedDataType"); for (int i = 0; i < array.size(); i++) { if (i == res.getPermittedDataType().size()) res.getPermittedDataType().add(parseEnumeration(null, ObservationDefinition.ObservationDataType.NULL, new ObservationDefinition.ObservationDataTypeEnumFactory())); @@ -21711,38 +22093,38 @@ public class JsonParser extends JsonParserBase { res.setBodySite(parseCodeableConcept(getJObject(json, "bodySite"))); if (json.has("method")) res.setMethod(parseCodeableConcept(getJObject(json, "method"))); - if (json.has("specimen")) - res.setSpecimen(parseReference(getJObject(json, "specimen"))); - if (json.has("device")) - res.setDevice(parseReference(getJObject(json, "device"))); + if (json.has("specimen")) { + JsonArray array = getJArray(json, "specimen"); + for (int i = 0; i < array.size(); i++) { + res.getSpecimen().add(parseReference(array.get(i).getAsJsonObject())); + } + }; + if (json.has("device")) { + JsonArray array = getJArray(json, "device"); + for (int i = 0; i < array.size(); i++) { + res.getDevice().add(parseReference(array.get(i).getAsJsonObject())); + } + }; if (json.has("preferredReportName")) res.setPreferredReportNameElement(parseString(json.get("preferredReportName").getAsString())); if (json.has("_preferredReportName")) parseElementProperties(getJObject(json, "_preferredReportName"), res.getPreferredReportNameElement()); if (json.has("quantitativeDetails")) res.setQuantitativeDetails(parseObservationDefinitionQuantitativeDetailsComponent(getJObject(json, "quantitativeDetails"))); - if (json.has("qualifiedInterval")) { - JsonArray array = json.getAsJsonArray("qualifiedInterval"); + if (json.has("qualifiedValue")) { + JsonArray array = getJArray(json, "qualifiedValue"); for (int i = 0; i < array.size(); i++) { - res.getQualifiedInterval().add(parseObservationDefinitionQualifiedIntervalComponent(array.get(i).getAsJsonObject())); + res.getQualifiedValue().add(parseObservationDefinitionQualifiedValueComponent(array.get(i).getAsJsonObject())); } }; - if (json.has("validCodedValueSet")) - res.setValidCodedValueSet(parseReference(getJObject(json, "validCodedValueSet"))); - if (json.has("normalCodedValueSet")) - res.setNormalCodedValueSet(parseReference(getJObject(json, "normalCodedValueSet"))); - if (json.has("abnormalCodedValueSet")) - res.setAbnormalCodedValueSet(parseReference(getJObject(json, "abnormalCodedValueSet"))); - if (json.has("criticalCodedValueSet")) - res.setCriticalCodedValueSet(parseReference(getJObject(json, "criticalCodedValueSet"))); if (json.has("hasMember")) { - JsonArray array = json.getAsJsonArray("hasMember"); + JsonArray array = getJArray(json, "hasMember"); for (int i = 0; i < array.size(); i++) { res.getHasMember().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("component")) { - JsonArray array = json.getAsJsonArray("component"); + JsonArray array = getJArray(json, "component"); for (int i = 0; i < array.size(); i++) { res.getComponent().add(parseObservationDefinitionComponentComponent(array.get(i).getAsJsonObject())); } @@ -21757,10 +22139,10 @@ public class JsonParser extends JsonParserBase { protected void parseObservationDefinitionQuantitativeDetailsComponentProperties(JsonObject json, ObservationDefinition.ObservationDefinitionQuantitativeDetailsComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); - if (json.has("customaryUnit")) - res.setCustomaryUnit(parseCodeableConcept(getJObject(json, "customaryUnit"))); if (json.has("unit")) res.setUnit(parseCodeableConcept(getJObject(json, "unit"))); + if (json.has("customaryUnit")) + res.setCustomaryUnit(parseCodeableConcept(getJObject(json, "customaryUnit"))); if (json.has("conversionFactor")) res.setConversionFactorElement(parseDecimal(json.get("conversionFactor").getAsBigDecimal())); if (json.has("_conversionFactor")) @@ -21771,24 +22153,18 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_decimalPrecision"), res.getDecimalPrecisionElement()); } - protected ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent parseObservationDefinitionQualifiedIntervalComponent(JsonObject json) throws IOException, FHIRFormatError { - ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent res = new ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent(); - parseObservationDefinitionQualifiedIntervalComponentProperties(json, res); + protected ObservationDefinition.ObservationDefinitionQualifiedValueComponent parseObservationDefinitionQualifiedValueComponent(JsonObject json) throws IOException, FHIRFormatError { + ObservationDefinition.ObservationDefinitionQualifiedValueComponent res = new ObservationDefinition.ObservationDefinitionQualifiedValueComponent(); + parseObservationDefinitionQualifiedValueComponentProperties(json, res); return res; } - protected void parseObservationDefinitionQualifiedIntervalComponentProperties(JsonObject json, ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent res) throws IOException, FHIRFormatError { + protected void parseObservationDefinitionQualifiedValueComponentProperties(JsonObject json, ObservationDefinition.ObservationDefinitionQualifiedValueComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); - if (json.has("category")) - res.setCategoryElement(parseEnumeration(json.get("category").getAsString(), ObservationDefinition.ObservationRangeCategory.NULL, new ObservationDefinition.ObservationRangeCategoryEnumFactory())); - if (json.has("_category")) - parseElementProperties(getJObject(json, "_category"), res.getCategoryElement()); - if (json.has("range")) - res.setRange(parseRange(getJObject(json, "range"))); if (json.has("context")) res.setContext(parseCodeableConcept(getJObject(json, "context"))); if (json.has("appliesTo")) { - JsonArray array = json.getAsJsonArray("appliesTo"); + JsonArray array = getJArray(json, "appliesTo"); for (int i = 0; i < array.size(); i++) { res.getAppliesTo().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -21805,6 +22181,28 @@ public class JsonParser extends JsonParserBase { res.setConditionElement(parseString(json.get("condition").getAsString())); if (json.has("_condition")) parseElementProperties(getJObject(json, "_condition"), res.getConditionElement()); + if (json.has("rangeCategory")) + res.setRangeCategoryElement(parseEnumeration(json.get("rangeCategory").getAsString(), ObservationDefinition.ObservationRangeCategory.NULL, new ObservationDefinition.ObservationRangeCategoryEnumFactory())); + if (json.has("_rangeCategory")) + parseElementProperties(getJObject(json, "_rangeCategory"), res.getRangeCategoryElement()); + if (json.has("range")) + res.setRange(parseRange(getJObject(json, "range"))); + if (json.has("validCodedValueSet")) + res.setValidCodedValueSetElement(parseCanonical(json.get("validCodedValueSet").getAsString())); + if (json.has("_validCodedValueSet")) + parseElementProperties(getJObject(json, "_validCodedValueSet"), res.getValidCodedValueSetElement()); + if (json.has("normalCodedValueSet")) + res.setNormalCodedValueSetElement(parseCanonical(json.get("normalCodedValueSet").getAsString())); + if (json.has("_normalCodedValueSet")) + parseElementProperties(getJObject(json, "_normalCodedValueSet"), res.getNormalCodedValueSetElement()); + if (json.has("abnormalCodedValueSet")) + res.setAbnormalCodedValueSetElement(parseCanonical(json.get("abnormalCodedValueSet").getAsString())); + if (json.has("_abnormalCodedValueSet")) + parseElementProperties(getJObject(json, "_abnormalCodedValueSet"), res.getAbnormalCodedValueSetElement()); + if (json.has("criticalCodedValueSet")) + res.setCriticalCodedValueSetElement(parseCanonical(json.get("criticalCodedValueSet").getAsString())); + if (json.has("_criticalCodedValueSet")) + parseElementProperties(getJObject(json, "_criticalCodedValueSet"), res.getCriticalCodedValueSetElement()); } protected ObservationDefinition.ObservationDefinitionComponentComponent parseObservationDefinitionComponentComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -21818,7 +22216,7 @@ public class JsonParser extends JsonParserBase { if (json.has("code")) res.setCode(parseCodeableConcept(getJObject(json, "code"))); if (json.has("permittedDataType")) { - JsonArray array = json.getAsJsonArray("permittedDataType"); + JsonArray array = getJArray(json, "permittedDataType"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPermittedDataType().add(new Enumeration(new ObservationDefinition.ObservationDataTypeEnumFactory(), ObservationDefinition.ObservationDataType.NULL)); @@ -21828,7 +22226,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_permittedDataType")) { - JsonArray array = json.getAsJsonArray("_permittedDataType"); + JsonArray array = getJArray(json, "_permittedDataType"); for (int i = 0; i < array.size(); i++) { if (i == res.getPermittedDataType().size()) res.getPermittedDataType().add(parseEnumeration(null, ObservationDefinition.ObservationDataType.NULL, new ObservationDefinition.ObservationDataTypeEnumFactory())); @@ -21838,10 +22236,10 @@ public class JsonParser extends JsonParserBase { }; if (json.has("quantitativeDetails")) res.setQuantitativeDetails(parseObservationDefinitionQuantitativeDetailsComponent(getJObject(json, "quantitativeDetails"))); - if (json.has("qualifiedInterval")) { - JsonArray array = json.getAsJsonArray("qualifiedInterval"); + if (json.has("qualifiedValue")) { + JsonArray array = getJArray(json, "qualifiedValue"); for (int i = 0; i < array.size(); i++) { - res.getQualifiedInterval().add(parseObservationDefinitionQualifiedIntervalComponent(array.get(i).getAsJsonObject())); + res.getQualifiedValue().add(parseObservationDefinitionQualifiedValueComponent(array.get(i).getAsJsonObject())); } }; } @@ -21891,7 +22289,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -21901,13 +22299,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -21933,7 +22331,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_base")) parseElementProperties(getJObject(json, "_base"), res.getBaseElement()); if (json.has("resource")) { - JsonArray array = json.getAsJsonArray("resource"); + JsonArray array = getJArray(json, "resource"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getResource().add(new CodeType()); @@ -21943,7 +22341,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_resource")) { - JsonArray array = json.getAsJsonArray("_resource"); + JsonArray array = getJArray(json, "_resource"); for (int i = 0; i < array.size(); i++) { if (i == res.getResource().size()) res.getResource().add(parseCode(null)); @@ -21972,13 +22370,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_outputProfile")) parseElementProperties(getJObject(json, "_outputProfile"), res.getOutputProfileElement()); if (json.has("parameter")) { - JsonArray array = json.getAsJsonArray("parameter"); + JsonArray array = getJArray(json, "parameter"); for (int i = 0; i < array.size(); i++) { res.getParameter().add(parseOperationDefinitionParameterComponent(array.get(i).getAsJsonObject())); } }; if (json.has("overload")) { - JsonArray array = json.getAsJsonArray("overload"); + JsonArray array = getJArray(json, "overload"); for (int i = 0; i < array.size(); i++) { res.getOverload().add(parseOperationDefinitionOverloadComponent(array.get(i).getAsJsonObject())); } @@ -22018,7 +22416,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_type")) parseElementProperties(getJObject(json, "_type"), res.getTypeElement()); if (json.has("targetProfile")) { - JsonArray array = json.getAsJsonArray("targetProfile"); + JsonArray array = getJArray(json, "targetProfile"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getTargetProfile().add(new CanonicalType()); @@ -22028,7 +22426,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_targetProfile")) { - JsonArray array = json.getAsJsonArray("_targetProfile"); + JsonArray array = getJArray(json, "_targetProfile"); for (int i = 0; i < array.size(); i++) { if (i == res.getTargetProfile().size()) res.getTargetProfile().add(parseCanonical(null)); @@ -22043,13 +22441,13 @@ public class JsonParser extends JsonParserBase { if (json.has("binding")) res.setBinding(parseOperationDefinitionParameterBindingComponent(getJObject(json, "binding"))); if (json.has("referencedFrom")) { - JsonArray array = json.getAsJsonArray("referencedFrom"); + JsonArray array = getJArray(json, "referencedFrom"); for (int i = 0; i < array.size(); i++) { res.getReferencedFrom().add(parseOperationDefinitionParameterReferencedFromComponent(array.get(i).getAsJsonObject())); } }; if (json.has("part")) { - JsonArray array = json.getAsJsonArray("part"); + JsonArray array = getJArray(json, "part"); for (int i = 0; i < array.size(); i++) { res.getPart().add(parseOperationDefinitionParameterComponent(array.get(i).getAsJsonObject())); } @@ -22101,7 +22499,7 @@ public class JsonParser extends JsonParserBase { protected void parseOperationDefinitionOverloadComponentProperties(JsonObject json, OperationDefinition.OperationDefinitionOverloadComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("parameterName")) { - JsonArray array = json.getAsJsonArray("parameterName"); + JsonArray array = getJArray(json, "parameterName"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getParameterName().add(new StringType()); @@ -22111,7 +22509,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_parameterName")) { - JsonArray array = json.getAsJsonArray("_parameterName"); + JsonArray array = getJArray(json, "_parameterName"); for (int i = 0; i < array.size(); i++) { if (i == res.getParameterName().size()) res.getParameterName().add(parseString(null)); @@ -22134,7 +22532,7 @@ public class JsonParser extends JsonParserBase { protected void parseOperationOutcomeProperties(JsonObject json, OperationOutcome res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("issue")) { - JsonArray array = json.getAsJsonArray("issue"); + JsonArray array = getJArray(json, "issue"); for (int i = 0; i < array.size(); i++) { res.getIssue().add(parseOperationOutcomeIssueComponent(array.get(i).getAsJsonObject())); } @@ -22164,7 +22562,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_diagnostics")) parseElementProperties(getJObject(json, "_diagnostics"), res.getDiagnosticsElement()); if (json.has("location")) { - JsonArray array = json.getAsJsonArray("location"); + JsonArray array = getJArray(json, "location"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getLocation().add(new StringType()); @@ -22174,7 +22572,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_location")) { - JsonArray array = json.getAsJsonArray("_location"); + JsonArray array = getJArray(json, "_location"); for (int i = 0; i < array.size(); i++) { if (i == res.getLocation().size()) res.getLocation().add(parseString(null)); @@ -22183,7 +22581,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("expression")) { - JsonArray array = json.getAsJsonArray("expression"); + JsonArray array = getJArray(json, "expression"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getExpression().add(new StringType()); @@ -22193,7 +22591,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_expression")) { - JsonArray array = json.getAsJsonArray("_expression"); + JsonArray array = getJArray(json, "_expression"); for (int i = 0; i < array.size(); i++) { if (i == res.getExpression().size()) res.getExpression().add(parseString(null)); @@ -22212,7 +22610,7 @@ public class JsonParser extends JsonParserBase { protected void parseOrganizationProperties(JsonObject json, Organization res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -22222,7 +22620,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_active")) parseElementProperties(getJObject(json, "_active"), res.getActiveElement()); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -22232,7 +22630,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_name")) parseElementProperties(getJObject(json, "_name"), res.getNameElement()); if (json.has("alias")) { - JsonArray array = json.getAsJsonArray("alias"); + JsonArray array = getJArray(json, "alias"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getAlias().add(new StringType()); @@ -22242,7 +22640,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_alias")) { - JsonArray array = json.getAsJsonArray("_alias"); + JsonArray array = getJArray(json, "_alias"); for (int i = 0; i < array.size(); i++) { if (i == res.getAlias().size()) res.getAlias().add(parseString(null)); @@ -22251,13 +22649,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("telecom")) { - JsonArray array = json.getAsJsonArray("telecom"); + JsonArray array = getJArray(json, "telecom"); for (int i = 0; i < array.size(); i++) { res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject())); } }; if (json.has("address")) { - JsonArray array = json.getAsJsonArray("address"); + JsonArray array = getJArray(json, "address"); for (int i = 0; i < array.size(); i++) { res.getAddress().add(parseAddress(array.get(i).getAsJsonObject())); } @@ -22265,13 +22663,13 @@ public class JsonParser extends JsonParserBase { if (json.has("partOf")) res.setPartOf(parseReference(getJObject(json, "partOf"))); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseOrganizationContactComponent(array.get(i).getAsJsonObject())); } }; if (json.has("endpoint")) { - JsonArray array = json.getAsJsonArray("endpoint"); + JsonArray array = getJArray(json, "endpoint"); for (int i = 0; i < array.size(); i++) { res.getEndpoint().add(parseReference(array.get(i).getAsJsonObject())); } @@ -22291,7 +22689,7 @@ public class JsonParser extends JsonParserBase { if (json.has("name")) res.setName(parseHumanName(getJObject(json, "name"))); if (json.has("telecom")) { - JsonArray array = json.getAsJsonArray("telecom"); + JsonArray array = getJArray(json, "telecom"); for (int i = 0; i < array.size(); i++) { res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject())); } @@ -22309,7 +22707,7 @@ public class JsonParser extends JsonParserBase { protected void parseOrganizationAffiliationProperties(JsonObject json, OrganizationAffiliation res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -22325,43 +22723,43 @@ public class JsonParser extends JsonParserBase { if (json.has("participatingOrganization")) res.setParticipatingOrganization(parseReference(getJObject(json, "participatingOrganization"))); if (json.has("network")) { - JsonArray array = json.getAsJsonArray("network"); + JsonArray array = getJArray(json, "network"); for (int i = 0; i < array.size(); i++) { res.getNetwork().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("code")) { - JsonArray array = json.getAsJsonArray("code"); + JsonArray array = getJArray(json, "code"); for (int i = 0; i < array.size(); i++) { res.getCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("specialty")) { - JsonArray array = json.getAsJsonArray("specialty"); + JsonArray array = getJArray(json, "specialty"); for (int i = 0; i < array.size(); i++) { res.getSpecialty().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("location")) { - JsonArray array = json.getAsJsonArray("location"); + JsonArray array = getJArray(json, "location"); for (int i = 0; i < array.size(); i++) { res.getLocation().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("healthcareService")) { - JsonArray array = json.getAsJsonArray("healthcareService"); + JsonArray array = getJArray(json, "healthcareService"); for (int i = 0; i < array.size(); i++) { res.getHealthcareService().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("telecom")) { - JsonArray array = json.getAsJsonArray("telecom"); + JsonArray array = getJArray(json, "telecom"); for (int i = 0; i < array.size(); i++) { res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject())); } }; if (json.has("endpoint")) { - JsonArray array = json.getAsJsonArray("endpoint"); + JsonArray array = getJArray(json, "endpoint"); for (int i = 0; i < array.size(); i++) { res.getEndpoint().add(parseReference(array.get(i).getAsJsonObject())); } @@ -22377,7 +22775,7 @@ public class JsonParser extends JsonParserBase { protected void parsePackagedProductDefinitionProperties(JsonObject json, PackagedProductDefinition res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -22389,7 +22787,7 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("subject")) { - JsonArray array = json.getAsJsonArray("subject"); + JsonArray array = getJArray(json, "subject"); for (int i = 0; i < array.size(); i++) { res.getSubject().add(parseReference(array.get(i).getAsJsonObject())); } @@ -22400,6 +22798,12 @@ public class JsonParser extends JsonParserBase { res.setStatusDateElement(parseDateTime(json.get("statusDate").getAsString())); if (json.has("_statusDate")) parseElementProperties(getJObject(json, "_statusDate"), res.getStatusDateElement()); + if (json.has("containedItemQuantity")) { + JsonArray array = getJArray(json, "containedItemQuantity"); + for (int i = 0; i < array.size(); i++) { + res.getContainedItemQuantity().add(parseQuantity(array.get(i).getAsJsonObject())); + } + }; if (json.has("description")) res.setDescriptionElement(parseMarkdown(json.get("description").getAsString())); if (json.has("_description")) @@ -22407,13 +22811,13 @@ public class JsonParser extends JsonParserBase { if (json.has("legalStatusOfSupply")) res.setLegalStatusOfSupply(parseCodeableConcept(getJObject(json, "legalStatusOfSupply"))); if (json.has("marketingStatus")) { - JsonArray array = json.getAsJsonArray("marketingStatus"); + JsonArray array = getJArray(json, "marketingStatus"); for (int i = 0; i < array.size(); i++) { res.getMarketingStatus().add(parseMarketingStatus(array.get(i).getAsJsonObject())); } }; if (json.has("characteristic")) { - JsonArray array = json.getAsJsonArray("characteristic"); + JsonArray array = getJArray(json, "characteristic"); for (int i = 0; i < array.size(); i++) { res.getCharacteristic().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -22425,37 +22829,19 @@ public class JsonParser extends JsonParserBase { if (json.has("marketingAuthorization")) res.setMarketingAuthorization(parseReference(getJObject(json, "marketingAuthorization"))); if (json.has("manufacturer")) { - JsonArray array = json.getAsJsonArray("manufacturer"); + JsonArray array = getJArray(json, "manufacturer"); for (int i = 0; i < array.size(); i++) { res.getManufacturer().add(parseReference(array.get(i).getAsJsonObject())); } }; - if (json.has("batchIdentifier")) { - JsonArray array = json.getAsJsonArray("batchIdentifier"); + if (json.has("attachedDocument")) { + JsonArray array = getJArray(json, "attachedDocument"); for (int i = 0; i < array.size(); i++) { - res.getBatchIdentifier().add(parsePackagedProductDefinitionBatchIdentifierComponent(array.get(i).getAsJsonObject())); + res.getAttachedDocument().add(parseReference(array.get(i).getAsJsonObject())); } }; - if (json.has("package")) { - JsonArray array = json.getAsJsonArray("package"); - for (int i = 0; i < array.size(); i++) { - res.getPackage().add(parsePackagedProductDefinitionPackageComponent(array.get(i).getAsJsonObject())); - } - }; - } - - protected PackagedProductDefinition.PackagedProductDefinitionBatchIdentifierComponent parsePackagedProductDefinitionBatchIdentifierComponent(JsonObject json) throws IOException, FHIRFormatError { - PackagedProductDefinition.PackagedProductDefinitionBatchIdentifierComponent res = new PackagedProductDefinition.PackagedProductDefinitionBatchIdentifierComponent(); - parsePackagedProductDefinitionBatchIdentifierComponentProperties(json, res); - return res; - } - - protected void parsePackagedProductDefinitionBatchIdentifierComponentProperties(JsonObject json, PackagedProductDefinition.PackagedProductDefinitionBatchIdentifierComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("outerPackaging")) - res.setOuterPackaging(parseIdentifier(getJObject(json, "outerPackaging"))); - if (json.has("immediatePackaging")) - res.setImmediatePackaging(parseIdentifier(getJObject(json, "immediatePackaging"))); + if (json.has("package")) + res.setPackage(parsePackagedProductDefinitionPackageComponent(getJObject(json, "package"))); } protected PackagedProductDefinition.PackagedProductDefinitionPackageComponent parsePackagedProductDefinitionPackageComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -22467,7 +22853,7 @@ public class JsonParser extends JsonParserBase { protected void parsePackagedProductDefinitionPackageComponentProperties(JsonObject json, PackagedProductDefinition.PackagedProductDefinitionPackageComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -22479,43 +22865,43 @@ public class JsonParser extends JsonParserBase { if (json.has("_quantity")) parseElementProperties(getJObject(json, "_quantity"), res.getQuantityElement()); if (json.has("material")) { - JsonArray array = json.getAsJsonArray("material"); + JsonArray array = getJArray(json, "material"); for (int i = 0; i < array.size(); i++) { res.getMaterial().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("alternateMaterial")) { - JsonArray array = json.getAsJsonArray("alternateMaterial"); + JsonArray array = getJArray(json, "alternateMaterial"); for (int i = 0; i < array.size(); i++) { res.getAlternateMaterial().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("shelfLifeStorage")) { - JsonArray array = json.getAsJsonArray("shelfLifeStorage"); + JsonArray array = getJArray(json, "shelfLifeStorage"); for (int i = 0; i < array.size(); i++) { res.getShelfLifeStorage().add(parseProductShelfLife(array.get(i).getAsJsonObject())); } }; if (json.has("manufacturer")) { - JsonArray array = json.getAsJsonArray("manufacturer"); + JsonArray array = getJArray(json, "manufacturer"); for (int i = 0; i < array.size(); i++) { res.getManufacturer().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("property")) { - JsonArray array = json.getAsJsonArray("property"); + JsonArray array = getJArray(json, "property"); for (int i = 0; i < array.size(); i++) { res.getProperty().add(parsePackagedProductDefinitionPackagePropertyComponent(array.get(i).getAsJsonObject())); } }; if (json.has("containedItem")) { - JsonArray array = json.getAsJsonArray("containedItem"); + JsonArray array = getJArray(json, "containedItem"); for (int i = 0; i < array.size(); i++) { res.getContainedItem().add(parsePackagedProductDefinitionPackageContainedItemComponent(array.get(i).getAsJsonObject())); } }; if (json.has("package")) { - JsonArray array = json.getAsJsonArray("package"); + JsonArray array = getJArray(json, "package"); for (int i = 0; i < array.size(); i++) { res.getPackage().add(parsePackagedProductDefinitionPackageComponent(array.get(i).getAsJsonObject())); } @@ -22546,9 +22932,9 @@ public class JsonParser extends JsonParserBase { protected void parsePackagedProductDefinitionPackageContainedItemComponentProperties(JsonObject json, PackagedProductDefinition.PackagedProductDefinitionPackageContainedItemComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("item")) { - JsonArray array = json.getAsJsonArray("item"); + JsonArray array = getJArray(json, "item"); for (int i = 0; i < array.size(); i++) { - res.getItem().add(parseReference(array.get(i).getAsJsonObject())); + res.getItem().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; DataType amount = parseType("amount", json); @@ -22565,7 +22951,7 @@ public class JsonParser extends JsonParserBase { protected void parseParametersProperties(JsonObject json, Parameters res) throws IOException, FHIRFormatError { parseResourceProperties(json, res); if (json.has("parameter")) { - JsonArray array = json.getAsJsonArray("parameter"); + JsonArray array = getJArray(json, "parameter"); for (int i = 0; i < array.size(); i++) { res.getParameter().add(parseParametersParameterComponent(array.get(i).getAsJsonObject())); } @@ -22590,7 +22976,7 @@ public class JsonParser extends JsonParserBase { if (json.has("resource")) res.setResource(parseResource(getJObject(json, "resource"))); if (json.has("part")) { - JsonArray array = json.getAsJsonArray("part"); + JsonArray array = getJArray(json, "part"); for (int i = 0; i < array.size(); i++) { res.getPart().add(parseParametersParameterComponent(array.get(i).getAsJsonObject())); } @@ -22606,7 +22992,7 @@ public class JsonParser extends JsonParserBase { protected void parsePatientProperties(JsonObject json, Patient res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -22616,13 +23002,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_active")) parseElementProperties(getJObject(json, "_active"), res.getActiveElement()); if (json.has("name")) { - JsonArray array = json.getAsJsonArray("name"); + JsonArray array = getJArray(json, "name"); for (int i = 0; i < array.size(); i++) { res.getName().add(parseHumanName(array.get(i).getAsJsonObject())); } }; if (json.has("telecom")) { - JsonArray array = json.getAsJsonArray("telecom"); + JsonArray array = getJArray(json, "telecom"); for (int i = 0; i < array.size(); i++) { res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject())); } @@ -22639,7 +23025,7 @@ public class JsonParser extends JsonParserBase { if (deceased != null) res.setDeceased(deceased); if (json.has("address")) { - JsonArray array = json.getAsJsonArray("address"); + JsonArray array = getJArray(json, "address"); for (int i = 0; i < array.size(); i++) { res.getAddress().add(parseAddress(array.get(i).getAsJsonObject())); } @@ -22650,25 +23036,25 @@ public class JsonParser extends JsonParserBase { if (multipleBirth != null) res.setMultipleBirth(multipleBirth); if (json.has("photo")) { - JsonArray array = json.getAsJsonArray("photo"); + JsonArray array = getJArray(json, "photo"); for (int i = 0; i < array.size(); i++) { res.getPhoto().add(parseAttachment(array.get(i).getAsJsonObject())); } }; if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parsePatientContactComponent(array.get(i).getAsJsonObject())); } }; if (json.has("communication")) { - JsonArray array = json.getAsJsonArray("communication"); + JsonArray array = getJArray(json, "communication"); for (int i = 0; i < array.size(); i++) { res.getCommunication().add(parsePatientCommunicationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("generalPractitioner")) { - JsonArray array = json.getAsJsonArray("generalPractitioner"); + JsonArray array = getJArray(json, "generalPractitioner"); for (int i = 0; i < array.size(); i++) { res.getGeneralPractitioner().add(parseReference(array.get(i).getAsJsonObject())); } @@ -22676,7 +23062,7 @@ public class JsonParser extends JsonParserBase { if (json.has("managingOrganization")) res.setManagingOrganization(parseReference(getJObject(json, "managingOrganization"))); if (json.has("link")) { - JsonArray array = json.getAsJsonArray("link"); + JsonArray array = getJArray(json, "link"); for (int i = 0; i < array.size(); i++) { res.getLink().add(parsePatientLinkComponent(array.get(i).getAsJsonObject())); } @@ -22692,7 +23078,7 @@ public class JsonParser extends JsonParserBase { protected void parsePatientContactComponentProperties(JsonObject json, Patient.ContactComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("relationship")) { - JsonArray array = json.getAsJsonArray("relationship"); + JsonArray array = getJArray(json, "relationship"); for (int i = 0; i < array.size(); i++) { res.getRelationship().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -22700,7 +23086,7 @@ public class JsonParser extends JsonParserBase { if (json.has("name")) res.setName(parseHumanName(getJObject(json, "name"))); if (json.has("telecom")) { - JsonArray array = json.getAsJsonArray("telecom"); + JsonArray array = getJArray(json, "telecom"); for (int i = 0; i < array.size(); i++) { res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject())); } @@ -22758,7 +23144,7 @@ public class JsonParser extends JsonParserBase { protected void parsePaymentNoticeProperties(JsonObject json, PaymentNotice res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -22802,7 +23188,7 @@ public class JsonParser extends JsonParserBase { protected void parsePaymentReconciliationProperties(JsonObject json, PaymentReconciliation res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -22824,7 +23210,7 @@ public class JsonParser extends JsonParserBase { if (json.has("requestor")) res.setRequestor(parseReference(getJObject(json, "requestor"))); if (json.has("outcome")) - res.setOutcomeElement(parseEnumeration(json.get("outcome").getAsString(), Enumerations.ClaimProcessingCodes.NULL, new Enumerations.ClaimProcessingCodesEnumFactory())); + res.setOutcomeElement(parseEnumeration(json.get("outcome").getAsString(), PaymentReconciliation.PaymentOutcome.NULL, new PaymentReconciliation.PaymentOutcomeEnumFactory())); if (json.has("_outcome")) parseElementProperties(getJObject(json, "_outcome"), res.getOutcomeElement()); if (json.has("disposition")) @@ -22840,7 +23226,7 @@ public class JsonParser extends JsonParserBase { if (json.has("paymentIdentifier")) res.setPaymentIdentifier(parseIdentifier(getJObject(json, "paymentIdentifier"))); if (json.has("detail")) { - JsonArray array = json.getAsJsonArray("detail"); + JsonArray array = getJArray(json, "detail"); for (int i = 0; i < array.size(); i++) { res.getDetail().add(parsePaymentReconciliationDetailsComponent(array.get(i).getAsJsonObject())); } @@ -22848,7 +23234,7 @@ public class JsonParser extends JsonParserBase { if (json.has("formCode")) res.setFormCode(parseCodeableConcept(getJObject(json, "formCode"))); if (json.has("processNote")) { - JsonArray array = json.getAsJsonArray("processNote"); + JsonArray array = getJArray(json, "processNote"); for (int i = 0; i < array.size(); i++) { res.getProcessNote().add(parsePaymentReconciliationNotesComponent(array.get(i).getAsJsonObject())); } @@ -22922,7 +23308,7 @@ public class JsonParser extends JsonParserBase { if (json.has("asserter")) res.setAsserter(parseReference(getJObject(json, "asserter"))); if (json.has("assertionDate")) { - JsonArray array = json.getAsJsonArray("assertionDate"); + JsonArray array = getJArray(json, "assertionDate"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getAssertionDate().add(new DateTimeType()); @@ -22932,7 +23318,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_assertionDate")) { - JsonArray array = json.getAsJsonArray("_assertionDate"); + JsonArray array = getJArray(json, "_assertionDate"); for (int i = 0; i < array.size(); i++) { if (i == res.getAssertionDate().size()) res.getAssertionDate().add(parseDateTime(null)); @@ -22943,19 +23329,19 @@ public class JsonParser extends JsonParserBase { if (json.has("validity")) res.setValidity(parsePeriod(getJObject(json, "validity"))); if (json.has("purpose")) { - JsonArray array = json.getAsJsonArray("purpose"); + JsonArray array = getJArray(json, "purpose"); for (int i = 0; i < array.size(); i++) { res.getPurpose().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("dataScope")) { - JsonArray array = json.getAsJsonArray("dataScope"); + JsonArray array = getJArray(json, "dataScope"); for (int i = 0; i < array.size(); i++) { res.getDataScope().add(parseExpression(array.get(i).getAsJsonObject())); } }; if (json.has("processingActivity")) { - JsonArray array = json.getAsJsonArray("processingActivity"); + JsonArray array = getJArray(json, "processingActivity"); for (int i = 0; i < array.size(); i++) { res.getProcessingActivity().add(parsePermissionProcessingActivityComponent(array.get(i).getAsJsonObject())); } @@ -22963,7 +23349,7 @@ public class JsonParser extends JsonParserBase { if (json.has("justification")) res.setJustification(parsePermissionJustificationComponent(getJObject(json, "justification"))); if (json.has("usageLimitations")) { - JsonArray array = json.getAsJsonArray("usageLimitations"); + JsonArray array = getJArray(json, "usageLimitations"); for (int i = 0; i < array.size(); i++) { res.getUsageLimitations().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -22979,19 +23365,19 @@ public class JsonParser extends JsonParserBase { protected void parsePermissionProcessingActivityComponentProperties(JsonObject json, Permission.PermissionProcessingActivityComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("partyReference")) { - JsonArray array = json.getAsJsonArray("partyReference"); + JsonArray array = getJArray(json, "partyReference"); for (int i = 0; i < array.size(); i++) { res.getPartyReference().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("partyCodeableConcept")) { - JsonArray array = json.getAsJsonArray("partyCodeableConcept"); + JsonArray array = getJArray(json, "partyCodeableConcept"); for (int i = 0; i < array.size(); i++) { res.getPartyCodeableConcept().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("purpose")) { - JsonArray array = json.getAsJsonArray("purpose"); + JsonArray array = getJArray(json, "purpose"); for (int i = 0; i < array.size(); i++) { res.getPurpose().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -23007,13 +23393,13 @@ public class JsonParser extends JsonParserBase { protected void parsePermissionJustificationComponentProperties(JsonObject json, Permission.PermissionJustificationComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("evidence")) { - JsonArray array = json.getAsJsonArray("evidence"); + JsonArray array = getJArray(json, "evidence"); for (int i = 0; i < array.size(); i++) { res.getEvidence().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("grounds")) { - JsonArray array = json.getAsJsonArray("grounds"); + JsonArray array = getJArray(json, "grounds"); for (int i = 0; i < array.size(); i++) { res.getGrounds().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -23029,19 +23415,19 @@ public class JsonParser extends JsonParserBase { protected void parsePersonProperties(JsonObject json, Person res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("name")) { - JsonArray array = json.getAsJsonArray("name"); + JsonArray array = getJArray(json, "name"); for (int i = 0; i < array.size(); i++) { res.getName().add(parseHumanName(array.get(i).getAsJsonObject())); } }; if (json.has("telecom")) { - JsonArray array = json.getAsJsonArray("telecom"); + JsonArray array = getJArray(json, "telecom"); for (int i = 0; i < array.size(); i++) { res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject())); } @@ -23055,7 +23441,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_birthDate")) parseElementProperties(getJObject(json, "_birthDate"), res.getBirthDateElement()); if (json.has("address")) { - JsonArray array = json.getAsJsonArray("address"); + JsonArray array = getJArray(json, "address"); for (int i = 0; i < array.size(); i++) { res.getAddress().add(parseAddress(array.get(i).getAsJsonObject())); } @@ -23069,7 +23455,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_active")) parseElementProperties(getJObject(json, "_active"), res.getActiveElement()); if (json.has("link")) { - JsonArray array = json.getAsJsonArray("link"); + JsonArray array = getJArray(json, "link"); for (int i = 0; i < array.size(); i++) { res.getLink().add(parsePersonLinkComponent(array.get(i).getAsJsonObject())); } @@ -23105,7 +23491,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -23148,7 +23534,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -23158,13 +23544,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -23192,43 +23578,43 @@ public class JsonParser extends JsonParserBase { if (json.has("effectivePeriod")) res.setEffectivePeriod(parsePeriod(getJObject(json, "effectivePeriod"))); if (json.has("topic")) { - JsonArray array = json.getAsJsonArray("topic"); + JsonArray array = getJArray(json, "topic"); for (int i = 0; i < array.size(); i++) { res.getTopic().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("author")) { - JsonArray array = json.getAsJsonArray("author"); + JsonArray array = getJArray(json, "author"); for (int i = 0; i < array.size(); i++) { res.getAuthor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("editor")) { - JsonArray array = json.getAsJsonArray("editor"); + JsonArray array = getJArray(json, "editor"); for (int i = 0; i < array.size(); i++) { res.getEditor().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("reviewer")) { - JsonArray array = json.getAsJsonArray("reviewer"); + JsonArray array = getJArray(json, "reviewer"); for (int i = 0; i < array.size(); i++) { res.getReviewer().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("endorser")) { - JsonArray array = json.getAsJsonArray("endorser"); + JsonArray array = getJArray(json, "endorser"); for (int i = 0; i < array.size(); i++) { res.getEndorser().add(parseContactDetail(array.get(i).getAsJsonObject())); } }; if (json.has("relatedArtifact")) { - JsonArray array = json.getAsJsonArray("relatedArtifact"); + JsonArray array = getJArray(json, "relatedArtifact"); for (int i = 0; i < array.size(); i++) { res.getRelatedArtifact().add(parseRelatedArtifact(array.get(i).getAsJsonObject())); } }; if (json.has("library")) { - JsonArray array = json.getAsJsonArray("library"); + JsonArray array = getJArray(json, "library"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getLibrary().add(new CanonicalType()); @@ -23238,7 +23624,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_library")) { - JsonArray array = json.getAsJsonArray("_library"); + JsonArray array = getJArray(json, "_library"); for (int i = 0; i < array.size(); i++) { if (i == res.getLibrary().size()) res.getLibrary().add(parseCanonical(null)); @@ -23247,13 +23633,19 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("goal")) { - JsonArray array = json.getAsJsonArray("goal"); + JsonArray array = getJArray(json, "goal"); for (int i = 0; i < array.size(); i++) { res.getGoal().add(parsePlanDefinitionGoalComponent(array.get(i).getAsJsonObject())); } }; + if (json.has("actor")) { + JsonArray array = getJArray(json, "actor"); + for (int i = 0; i < array.size(); i++) { + res.getActor().add(parsePlanDefinitionActorComponent(array.get(i).getAsJsonObject())); + } + }; if (json.has("action")) { - JsonArray array = json.getAsJsonArray("action"); + JsonArray array = getJArray(json, "action"); for (int i = 0; i < array.size(); i++) { res.getAction().add(parsePlanDefinitionActionComponent(array.get(i).getAsJsonObject())); } @@ -23277,19 +23669,19 @@ public class JsonParser extends JsonParserBase { if (json.has("start")) res.setStart(parseCodeableConcept(getJObject(json, "start"))); if (json.has("addresses")) { - JsonArray array = json.getAsJsonArray("addresses"); + JsonArray array = getJArray(json, "addresses"); for (int i = 0; i < array.size(); i++) { res.getAddresses().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("documentation")) { - JsonArray array = json.getAsJsonArray("documentation"); + JsonArray array = getJArray(json, "documentation"); for (int i = 0; i < array.size(); i++) { res.getDocumentation().add(parseRelatedArtifact(array.get(i).getAsJsonObject())); } }; if (json.has("target")) { - JsonArray array = json.getAsJsonArray("target"); + JsonArray array = getJArray(json, "target"); for (int i = 0; i < array.size(); i++) { res.getTarget().add(parsePlanDefinitionGoalTargetComponent(array.get(i).getAsJsonObject())); } @@ -23313,6 +23705,48 @@ public class JsonParser extends JsonParserBase { res.setDue(parseDuration(getJObject(json, "due"))); } + protected PlanDefinition.PlanDefinitionActorComponent parsePlanDefinitionActorComponent(JsonObject json) throws IOException, FHIRFormatError { + PlanDefinition.PlanDefinitionActorComponent res = new PlanDefinition.PlanDefinitionActorComponent(); + parsePlanDefinitionActorComponentProperties(json, res); + return res; + } + + protected void parsePlanDefinitionActorComponentProperties(JsonObject json, PlanDefinition.PlanDefinitionActorComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("title")) + res.setTitleElement(parseString(json.get("title").getAsString())); + if (json.has("_title")) + parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); + if (json.has("description")) + res.setDescriptionElement(parseMarkdown(json.get("description").getAsString())); + if (json.has("_description")) + parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); + if (json.has("option")) { + JsonArray array = getJArray(json, "option"); + for (int i = 0; i < array.size(); i++) { + res.getOption().add(parsePlanDefinitionActorOptionComponent(array.get(i).getAsJsonObject())); + } + }; + } + + protected PlanDefinition.PlanDefinitionActorOptionComponent parsePlanDefinitionActorOptionComponent(JsonObject json) throws IOException, FHIRFormatError { + PlanDefinition.PlanDefinitionActorOptionComponent res = new PlanDefinition.PlanDefinitionActorOptionComponent(); + parsePlanDefinitionActorOptionComponentProperties(json, res); + return res; + } + + protected void parsePlanDefinitionActorOptionComponentProperties(JsonObject json, PlanDefinition.PlanDefinitionActorOptionComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("type")) + res.setTypeElement(parseEnumeration(json.get("type").getAsString(), Enumerations.ActionParticipantType.NULL, new Enumerations.ActionParticipantTypeEnumFactory())); + if (json.has("_type")) + parseElementProperties(getJObject(json, "_type"), res.getTypeElement()); + if (json.has("typeReference")) + res.setTypeReference(parseReference(getJObject(json, "typeReference"))); + if (json.has("role")) + res.setRole(parseCodeableConcept(getJObject(json, "role"))); + } + protected PlanDefinition.PlanDefinitionActionComponent parsePlanDefinitionActionComponent(JsonObject json) throws IOException, FHIRFormatError { PlanDefinition.PlanDefinitionActionComponent res = new PlanDefinition.PlanDefinitionActionComponent(); parsePlanDefinitionActionComponentProperties(json, res); @@ -23341,26 +23775,22 @@ public class JsonParser extends JsonParserBase { res.setPriorityElement(parseEnumeration(json.get("priority").getAsString(), Enumerations.RequestPriority.NULL, new Enumerations.RequestPriorityEnumFactory())); if (json.has("_priority")) parseElementProperties(getJObject(json, "_priority"), res.getPriorityElement()); - if (json.has("code")) { - JsonArray array = json.getAsJsonArray("code"); - for (int i = 0; i < array.size(); i++) { - res.getCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); - } - }; + if (json.has("code")) + res.setCode(parseCodeableConcept(getJObject(json, "code"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("documentation")) { - JsonArray array = json.getAsJsonArray("documentation"); + JsonArray array = getJArray(json, "documentation"); for (int i = 0; i < array.size(); i++) { res.getDocumentation().add(parseRelatedArtifact(array.get(i).getAsJsonObject())); } }; if (json.has("goalId")) { - JsonArray array = json.getAsJsonArray("goalId"); + JsonArray array = getJArray(json, "goalId"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getGoalId().add(new IdType()); @@ -23370,7 +23800,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_goalId")) { - JsonArray array = json.getAsJsonArray("_goalId"); + JsonArray array = getJArray(json, "_goalId"); for (int i = 0; i < array.size(); i++) { if (i == res.getGoalId().size()) res.getGoalId().add(parseId(null)); @@ -23382,31 +23812,31 @@ public class JsonParser extends JsonParserBase { if (subject != null) res.setSubject(subject); if (json.has("trigger")) { - JsonArray array = json.getAsJsonArray("trigger"); + JsonArray array = getJArray(json, "trigger"); for (int i = 0; i < array.size(); i++) { res.getTrigger().add(parseTriggerDefinition(array.get(i).getAsJsonObject())); } }; if (json.has("condition")) { - JsonArray array = json.getAsJsonArray("condition"); + JsonArray array = getJArray(json, "condition"); for (int i = 0; i < array.size(); i++) { res.getCondition().add(parsePlanDefinitionActionConditionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("input")) { - JsonArray array = json.getAsJsonArray("input"); + JsonArray array = getJArray(json, "input"); for (int i = 0; i < array.size(); i++) { - res.getInput().add(parseDataRequirement(array.get(i).getAsJsonObject())); + res.getInput().add(parsePlanDefinitionActionInputComponent(array.get(i).getAsJsonObject())); } }; if (json.has("output")) { - JsonArray array = json.getAsJsonArray("output"); + JsonArray array = getJArray(json, "output"); for (int i = 0; i < array.size(); i++) { - res.getOutput().add(parseDataRequirement(array.get(i).getAsJsonObject())); + res.getOutput().add(parsePlanDefinitionActionOutputComponent(array.get(i).getAsJsonObject())); } }; if (json.has("relatedAction")) { - JsonArray array = json.getAsJsonArray("relatedAction"); + JsonArray array = getJArray(json, "relatedAction"); for (int i = 0; i < array.size(); i++) { res.getRelatedAction().add(parsePlanDefinitionActionRelatedActionComponent(array.get(i).getAsJsonObject())); } @@ -23414,8 +23844,10 @@ public class JsonParser extends JsonParserBase { DataType timing = parseType("timing", json); if (timing != null) res.setTiming(timing); + if (json.has("location")) + res.setLocation(parseCodeableReference(getJObject(json, "location"))); if (json.has("participant")) { - JsonArray array = json.getAsJsonArray("participant"); + JsonArray array = getJArray(json, "participant"); for (int i = 0; i < array.size(); i++) { res.getParticipant().add(parsePlanDefinitionActionParticipantComponent(array.get(i).getAsJsonObject())); } @@ -23450,13 +23882,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_transform")) parseElementProperties(getJObject(json, "_transform"), res.getTransformElement()); if (json.has("dynamicValue")) { - JsonArray array = json.getAsJsonArray("dynamicValue"); + JsonArray array = getJArray(json, "dynamicValue"); for (int i = 0; i < array.size(); i++) { res.getDynamicValue().add(parsePlanDefinitionActionDynamicValueComponent(array.get(i).getAsJsonObject())); } }; if (json.has("action")) { - JsonArray array = json.getAsJsonArray("action"); + JsonArray array = getJArray(json, "action"); for (int i = 0; i < array.size(); i++) { res.getAction().add(parsePlanDefinitionActionComponent(array.get(i).getAsJsonObject())); } @@ -23479,6 +23911,46 @@ public class JsonParser extends JsonParserBase { res.setExpression(parseExpression(getJObject(json, "expression"))); } + protected PlanDefinition.PlanDefinitionActionInputComponent parsePlanDefinitionActionInputComponent(JsonObject json) throws IOException, FHIRFormatError { + PlanDefinition.PlanDefinitionActionInputComponent res = new PlanDefinition.PlanDefinitionActionInputComponent(); + parsePlanDefinitionActionInputComponentProperties(json, res); + return res; + } + + protected void parsePlanDefinitionActionInputComponentProperties(JsonObject json, PlanDefinition.PlanDefinitionActionInputComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("title")) + res.setTitleElement(parseString(json.get("title").getAsString())); + if (json.has("_title")) + parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); + if (json.has("requirement")) + res.setRequirement(parseDataRequirement(getJObject(json, "requirement"))); + if (json.has("relatedData")) + res.setRelatedDataElement(parseId(json.get("relatedData").getAsString())); + if (json.has("_relatedData")) + parseElementProperties(getJObject(json, "_relatedData"), res.getRelatedDataElement()); + } + + protected PlanDefinition.PlanDefinitionActionOutputComponent parsePlanDefinitionActionOutputComponent(JsonObject json) throws IOException, FHIRFormatError { + PlanDefinition.PlanDefinitionActionOutputComponent res = new PlanDefinition.PlanDefinitionActionOutputComponent(); + parsePlanDefinitionActionOutputComponentProperties(json, res); + return res; + } + + protected void parsePlanDefinitionActionOutputComponentProperties(JsonObject json, PlanDefinition.PlanDefinitionActionOutputComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("title")) + res.setTitleElement(parseString(json.get("title").getAsString())); + if (json.has("_title")) + parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); + if (json.has("requirement")) + res.setRequirement(parseDataRequirement(getJObject(json, "requirement"))); + if (json.has("relatedData")) + res.setRelatedDataElement(parseString(json.get("relatedData").getAsString())); + if (json.has("_relatedData")) + parseElementProperties(getJObject(json, "_relatedData"), res.getRelatedDataElement()); + } + protected PlanDefinition.PlanDefinitionActionRelatedActionComponent parsePlanDefinitionActionRelatedActionComponent(JsonObject json) throws IOException, FHIRFormatError { PlanDefinition.PlanDefinitionActionRelatedActionComponent res = new PlanDefinition.PlanDefinitionActionRelatedActionComponent(); parsePlanDefinitionActionRelatedActionComponentProperties(json, res); @@ -23487,10 +23959,10 @@ public class JsonParser extends JsonParserBase { protected void parsePlanDefinitionActionRelatedActionComponentProperties(JsonObject json, PlanDefinition.PlanDefinitionActionRelatedActionComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); - if (json.has("actionId")) - res.setActionIdElement(parseId(json.get("actionId").getAsString())); - if (json.has("_actionId")) - parseElementProperties(getJObject(json, "_actionId"), res.getActionIdElement()); + if (json.has("targetId")) + res.setTargetIdElement(parseId(json.get("targetId").getAsString())); + if (json.has("_targetId")) + parseElementProperties(getJObject(json, "_targetId"), res.getTargetIdElement()); if (json.has("relationship")) res.setRelationshipElement(parseEnumeration(json.get("relationship").getAsString(), Enumerations.ActionRelationshipType.NULL, new Enumerations.ActionRelationshipTypeEnumFactory())); if (json.has("_relationship")) @@ -23508,12 +23980,20 @@ public class JsonParser extends JsonParserBase { protected void parsePlanDefinitionActionParticipantComponentProperties(JsonObject json, PlanDefinition.PlanDefinitionActionParticipantComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); + if (json.has("actorId")) + res.setActorIdElement(parseString(json.get("actorId").getAsString())); + if (json.has("_actorId")) + parseElementProperties(getJObject(json, "_actorId"), res.getActorIdElement()); if (json.has("type")) res.setTypeElement(parseEnumeration(json.get("type").getAsString(), Enumerations.ActionParticipantType.NULL, new Enumerations.ActionParticipantTypeEnumFactory())); if (json.has("_type")) parseElementProperties(getJObject(json, "_type"), res.getTypeElement()); + if (json.has("typeReference")) + res.setTypeReference(parseReference(getJObject(json, "typeReference"))); if (json.has("role")) res.setRole(parseCodeableConcept(getJObject(json, "role"))); + if (json.has("function")) + res.setFunction(parseCodeableConcept(getJObject(json, "function"))); } protected PlanDefinition.PlanDefinitionActionDynamicValueComponent parsePlanDefinitionActionDynamicValueComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -23541,7 +24021,7 @@ public class JsonParser extends JsonParserBase { protected void parsePractitionerProperties(JsonObject json, Practitioner res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -23551,19 +24031,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_active")) parseElementProperties(getJObject(json, "_active"), res.getActiveElement()); if (json.has("name")) { - JsonArray array = json.getAsJsonArray("name"); + JsonArray array = getJArray(json, "name"); for (int i = 0; i < array.size(); i++) { res.getName().add(parseHumanName(array.get(i).getAsJsonObject())); } }; if (json.has("telecom")) { - JsonArray array = json.getAsJsonArray("telecom"); + JsonArray array = getJArray(json, "telecom"); for (int i = 0; i < array.size(); i++) { res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject())); } }; if (json.has("address")) { - JsonArray array = json.getAsJsonArray("address"); + JsonArray array = getJArray(json, "address"); for (int i = 0; i < array.size(); i++) { res.getAddress().add(parseAddress(array.get(i).getAsJsonObject())); } @@ -23577,19 +24057,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_birthDate")) parseElementProperties(getJObject(json, "_birthDate"), res.getBirthDateElement()); if (json.has("photo")) { - JsonArray array = json.getAsJsonArray("photo"); + JsonArray array = getJArray(json, "photo"); for (int i = 0; i < array.size(); i++) { res.getPhoto().add(parseAttachment(array.get(i).getAsJsonObject())); } }; if (json.has("qualification")) { - JsonArray array = json.getAsJsonArray("qualification"); + JsonArray array = getJArray(json, "qualification"); for (int i = 0; i < array.size(); i++) { res.getQualification().add(parsePractitionerQualificationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("communication")) { - JsonArray array = json.getAsJsonArray("communication"); + JsonArray array = getJArray(json, "communication"); for (int i = 0; i < array.size(); i++) { res.getCommunication().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -23605,7 +24085,7 @@ public class JsonParser extends JsonParserBase { protected void parsePractitionerQualificationComponentProperties(JsonObject json, Practitioner.PractitionerQualificationComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -23627,7 +24107,7 @@ public class JsonParser extends JsonParserBase { protected void parsePractitionerRoleProperties(JsonObject json, PractitionerRole res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -23643,43 +24123,43 @@ public class JsonParser extends JsonParserBase { if (json.has("organization")) res.setOrganization(parseReference(getJObject(json, "organization"))); if (json.has("code")) { - JsonArray array = json.getAsJsonArray("code"); + JsonArray array = getJArray(json, "code"); for (int i = 0; i < array.size(); i++) { res.getCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("specialty")) { - JsonArray array = json.getAsJsonArray("specialty"); + JsonArray array = getJArray(json, "specialty"); for (int i = 0; i < array.size(); i++) { res.getSpecialty().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("location")) { - JsonArray array = json.getAsJsonArray("location"); + JsonArray array = getJArray(json, "location"); for (int i = 0; i < array.size(); i++) { res.getLocation().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("healthcareService")) { - JsonArray array = json.getAsJsonArray("healthcareService"); + JsonArray array = getJArray(json, "healthcareService"); for (int i = 0; i < array.size(); i++) { res.getHealthcareService().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("telecom")) { - JsonArray array = json.getAsJsonArray("telecom"); + JsonArray array = getJArray(json, "telecom"); for (int i = 0; i < array.size(); i++) { res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject())); } }; if (json.has("availableTime")) { - JsonArray array = json.getAsJsonArray("availableTime"); + JsonArray array = getJArray(json, "availableTime"); for (int i = 0; i < array.size(); i++) { res.getAvailableTime().add(parsePractitionerRoleAvailableTimeComponent(array.get(i).getAsJsonObject())); } }; if (json.has("notAvailable")) { - JsonArray array = json.getAsJsonArray("notAvailable"); + JsonArray array = getJArray(json, "notAvailable"); for (int i = 0; i < array.size(); i++) { res.getNotAvailable().add(parsePractitionerRoleNotAvailableComponent(array.get(i).getAsJsonObject())); } @@ -23689,7 +24169,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_availabilityExceptions")) parseElementProperties(getJObject(json, "_availabilityExceptions"), res.getAvailabilityExceptionsElement()); if (json.has("endpoint")) { - JsonArray array = json.getAsJsonArray("endpoint"); + JsonArray array = getJArray(json, "endpoint"); for (int i = 0; i < array.size(); i++) { res.getEndpoint().add(parseReference(array.get(i).getAsJsonObject())); } @@ -23705,7 +24185,7 @@ public class JsonParser extends JsonParserBase { protected void parsePractitionerRoleAvailableTimeComponentProperties(JsonObject json, PractitionerRole.PractitionerRoleAvailableTimeComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("daysOfWeek")) { - JsonArray array = json.getAsJsonArray("daysOfWeek"); + JsonArray array = getJArray(json, "daysOfWeek"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDaysOfWeek().add(new Enumeration(new Enumerations.DaysOfWeekEnumFactory(), Enumerations.DaysOfWeek.NULL)); @@ -23715,7 +24195,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_daysOfWeek")) { - JsonArray array = json.getAsJsonArray("_daysOfWeek"); + JsonArray array = getJArray(json, "_daysOfWeek"); for (int i = 0; i < array.size(); i++) { if (i == res.getDaysOfWeek().size()) res.getDaysOfWeek().add(parseEnumeration(null, Enumerations.DaysOfWeek.NULL, new Enumerations.DaysOfWeekEnumFactory())); @@ -23762,13 +24242,13 @@ public class JsonParser extends JsonParserBase { protected void parseProcedureProperties(JsonObject json, Procedure res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("instantiatesCanonical"); + JsonArray array = getJArray(json, "instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesCanonical().add(new CanonicalType()); @@ -23778,7 +24258,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("_instantiatesCanonical"); + JsonArray array = getJArray(json, "_instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesCanonical().size()) res.getInstantiatesCanonical().add(parseCanonical(null)); @@ -23787,7 +24267,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("instantiatesUri")) { - JsonArray array = json.getAsJsonArray("instantiatesUri"); + JsonArray array = getJArray(json, "instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesUri().add(new UriType()); @@ -23797,7 +24277,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesUri")) { - JsonArray array = json.getAsJsonArray("_instantiatesUri"); + JsonArray array = getJArray(json, "_instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesUri().size()) res.getInstantiatesUri().add(parseUri(null)); @@ -23806,13 +24286,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("partOf")) { - JsonArray array = json.getAsJsonArray("partOf"); + JsonArray array = getJArray(json, "partOf"); for (int i = 0; i < array.size(); i++) { res.getPartOf().add(parseReference(array.get(i).getAsJsonObject())); } @@ -23824,7 +24304,7 @@ public class JsonParser extends JsonParserBase { if (json.has("statusReason")) res.setStatusReason(parseCodeableConcept(getJObject(json, "statusReason"))); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -23848,7 +24328,7 @@ public class JsonParser extends JsonParserBase { if (reported != null) res.setReported(reported); if (json.has("performer")) { - JsonArray array = json.getAsJsonArray("performer"); + JsonArray array = getJArray(json, "performer"); for (int i = 0; i < array.size(); i++) { res.getPerformer().add(parseProcedurePerformerComponent(array.get(i).getAsJsonObject())); } @@ -23856,13 +24336,13 @@ public class JsonParser extends JsonParserBase { if (json.has("location")) res.setLocation(parseReference(getJObject(json, "location"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("bodySite")) { - JsonArray array = json.getAsJsonArray("bodySite"); + JsonArray array = getJArray(json, "bodySite"); for (int i = 0; i < array.size(); i++) { res.getBodySite().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -23870,47 +24350,53 @@ public class JsonParser extends JsonParserBase { if (json.has("outcome")) res.setOutcome(parseCodeableConcept(getJObject(json, "outcome"))); if (json.has("report")) { - JsonArray array = json.getAsJsonArray("report"); + JsonArray array = getJArray(json, "report"); for (int i = 0; i < array.size(); i++) { res.getReport().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("complication")) { - JsonArray array = json.getAsJsonArray("complication"); + JsonArray array = getJArray(json, "complication"); for (int i = 0; i < array.size(); i++) { res.getComplication().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("complicationDetail")) { - JsonArray array = json.getAsJsonArray("complicationDetail"); + JsonArray array = getJArray(json, "complicationDetail"); for (int i = 0; i < array.size(); i++) { res.getComplicationDetail().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("followUp")) { - JsonArray array = json.getAsJsonArray("followUp"); + JsonArray array = getJArray(json, "followUp"); for (int i = 0; i < array.size(); i++) { res.getFollowUp().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("focalDevice")) { - JsonArray array = json.getAsJsonArray("focalDevice"); + JsonArray array = getJArray(json, "focalDevice"); for (int i = 0; i < array.size(); i++) { res.getFocalDevice().add(parseProcedureFocalDeviceComponent(array.get(i).getAsJsonObject())); } }; if (json.has("used")) { - JsonArray array = json.getAsJsonArray("used"); + JsonArray array = getJArray(json, "used"); for (int i = 0; i < array.size(); i++) { res.getUsed().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; + if (json.has("supportingInfo")) { + JsonArray array = getJArray(json, "supportingInfo"); + for (int i = 0; i < array.size(); i++) { + res.getSupportingInfo().add(parseReference(array.get(i).getAsJsonObject())); + } + }; } protected Procedure.ProcedurePerformerComponent parseProcedurePerformerComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -23952,7 +24438,7 @@ public class JsonParser extends JsonParserBase { protected void parseProvenanceProperties(JsonObject json, Provenance res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("target")) { - JsonArray array = json.getAsJsonArray("target"); + JsonArray array = getJArray(json, "target"); for (int i = 0; i < array.size(); i++) { res.getTarget().add(parseReference(array.get(i).getAsJsonObject())); } @@ -23965,7 +24451,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_recorded")) parseElementProperties(getJObject(json, "_recorded"), res.getRecordedElement()); if (json.has("policy")) { - JsonArray array = json.getAsJsonArray("policy"); + JsonArray array = getJArray(json, "policy"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getPolicy().add(new UriType()); @@ -23975,7 +24461,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_policy")) { - JsonArray array = json.getAsJsonArray("_policy"); + JsonArray array = getJArray(json, "_policy"); for (int i = 0; i < array.size(); i++) { if (i == res.getPolicy().size()) res.getPolicy().add(parseUri(null)); @@ -23986,27 +24472,35 @@ public class JsonParser extends JsonParserBase { if (json.has("location")) res.setLocation(parseReference(getJObject(json, "location"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("activity")) res.setActivity(parseCodeableConcept(getJObject(json, "activity"))); + if (json.has("basedOn")) { + JsonArray array = getJArray(json, "basedOn"); + for (int i = 0; i < array.size(); i++) { + res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); + } + }; + if (json.has("encounter")) + res.setEncounter(parseReference(getJObject(json, "encounter"))); if (json.has("agent")) { - JsonArray array = json.getAsJsonArray("agent"); + JsonArray array = getJArray(json, "agent"); for (int i = 0; i < array.size(); i++) { res.getAgent().add(parseProvenanceAgentComponent(array.get(i).getAsJsonObject())); } }; if (json.has("entity")) { - JsonArray array = json.getAsJsonArray("entity"); + JsonArray array = getJArray(json, "entity"); for (int i = 0; i < array.size(); i++) { res.getEntity().add(parseProvenanceEntityComponent(array.get(i).getAsJsonObject())); } }; if (json.has("signature")) { - JsonArray array = json.getAsJsonArray("signature"); + JsonArray array = getJArray(json, "signature"); for (int i = 0; i < array.size(); i++) { res.getSignature().add(parseSignature(array.get(i).getAsJsonObject())); } @@ -24024,7 +24518,7 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("role")) { - JsonArray array = json.getAsJsonArray("role"); + JsonArray array = getJArray(json, "role"); for (int i = 0; i < array.size(); i++) { res.getRole().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -24050,7 +24544,7 @@ public class JsonParser extends JsonParserBase { if (json.has("what")) res.setWhat(parseReference(getJObject(json, "what"))); if (json.has("agent")) { - JsonArray array = json.getAsJsonArray("agent"); + JsonArray array = getJArray(json, "agent"); for (int i = 0; i < array.size(); i++) { res.getAgent().add(parseProvenanceAgentComponent(array.get(i).getAsJsonObject())); } @@ -24070,7 +24564,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -24088,7 +24582,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_title")) parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); if (json.has("derivedFrom")) { - JsonArray array = json.getAsJsonArray("derivedFrom"); + JsonArray array = getJArray(json, "derivedFrom"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDerivedFrom().add(new CanonicalType()); @@ -24098,7 +24592,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_derivedFrom")) { - JsonArray array = json.getAsJsonArray("_derivedFrom"); + JsonArray array = getJArray(json, "_derivedFrom"); for (int i = 0; i < array.size(); i++) { if (i == res.getDerivedFrom().size()) res.getDerivedFrom().add(parseCanonical(null)); @@ -24115,7 +24609,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_experimental")) parseElementProperties(getJObject(json, "_experimental"), res.getExperimentalElement()); if (json.has("subjectType")) { - JsonArray array = json.getAsJsonArray("subjectType"); + JsonArray array = getJArray(json, "subjectType"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSubjectType().add(new CodeType()); @@ -24125,7 +24619,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_subjectType")) { - JsonArray array = json.getAsJsonArray("_subjectType"); + JsonArray array = getJArray(json, "_subjectType"); for (int i = 0; i < array.size(); i++) { if (i == res.getSubjectType().size()) res.getSubjectType().add(parseCode(null)); @@ -24142,7 +24636,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -24152,13 +24646,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -24182,13 +24676,13 @@ public class JsonParser extends JsonParserBase { if (json.has("effectivePeriod")) res.setEffectivePeriod(parsePeriod(getJObject(json, "effectivePeriod"))); if (json.has("code")) { - JsonArray array = json.getAsJsonArray("code"); + JsonArray array = getJArray(json, "code"); for (int i = 0; i < array.size(); i++) { res.getCode().add(parseCoding(array.get(i).getAsJsonObject())); } }; if (json.has("item")) { - JsonArray array = json.getAsJsonArray("item"); + JsonArray array = getJArray(json, "item"); for (int i = 0; i < array.size(); i++) { res.getItem().add(parseQuestionnaireItemComponent(array.get(i).getAsJsonObject())); } @@ -24212,7 +24706,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_definition")) parseElementProperties(getJObject(json, "_definition"), res.getDefinitionElement()); if (json.has("code")) { - JsonArray array = json.getAsJsonArray("code"); + JsonArray array = getJArray(json, "code"); for (int i = 0; i < array.size(); i++) { res.getCode().add(parseCoding(array.get(i).getAsJsonObject())); } @@ -24222,7 +24716,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_prefix")) parseElementProperties(getJObject(json, "_prefix"), res.getPrefixElement()); if (json.has("text")) - res.setTextElement(parseString(json.get("text").getAsString())); + res.setTextElement(parseMarkdown(json.get("text").getAsString())); if (json.has("_text")) parseElementProperties(getJObject(json, "_text"), res.getTextElement()); if (json.has("type")) @@ -24230,7 +24724,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_type")) parseElementProperties(getJObject(json, "_type"), res.getTypeElement()); if (json.has("enableWhen")) { - JsonArray array = json.getAsJsonArray("enableWhen"); + JsonArray array = getJArray(json, "enableWhen"); for (int i = 0; i < array.size(); i++) { res.getEnableWhen().add(parseQuestionnaireItemEnableWhenComponent(array.get(i).getAsJsonObject())); } @@ -24239,6 +24733,10 @@ public class JsonParser extends JsonParserBase { res.setEnableBehaviorElement(parseEnumeration(json.get("enableBehavior").getAsString(), Questionnaire.EnableWhenBehavior.NULL, new Questionnaire.EnableWhenBehaviorEnumFactory())); if (json.has("_enableBehavior")) parseElementProperties(getJObject(json, "_enableBehavior"), res.getEnableBehaviorElement()); + if (json.has("disabledDisplay")) + res.setDisabledDisplayElement(parseEnumeration(json.get("disabledDisplay").getAsString(), Questionnaire.QuestionnaireItemDisabledDisplay.NULL, new Questionnaire.QuestionnaireItemDisabledDisplayEnumFactory())); + if (json.has("_disabledDisplay")) + parseElementProperties(getJObject(json, "_disabledDisplay"), res.getDisabledDisplayElement()); if (json.has("required")) res.setRequiredElement(parseBoolean(json.get("required").getAsBoolean())); if (json.has("_required")) @@ -24255,24 +24753,28 @@ public class JsonParser extends JsonParserBase { res.setMaxLengthElement(parseInteger(json.get("maxLength").getAsLong())); if (json.has("_maxLength")) parseElementProperties(getJObject(json, "_maxLength"), res.getMaxLengthElement()); + if (json.has("answerConstraint")) + res.setAnswerConstraintElement(parseEnumeration(json.get("answerConstraint").getAsString(), Questionnaire.QuestionnaireAnswerConstraint.NULL, new Questionnaire.QuestionnaireAnswerConstraintEnumFactory())); + if (json.has("_answerConstraint")) + parseElementProperties(getJObject(json, "_answerConstraint"), res.getAnswerConstraintElement()); if (json.has("answerValueSet")) res.setAnswerValueSetElement(parseCanonical(json.get("answerValueSet").getAsString())); if (json.has("_answerValueSet")) parseElementProperties(getJObject(json, "_answerValueSet"), res.getAnswerValueSetElement()); if (json.has("answerOption")) { - JsonArray array = json.getAsJsonArray("answerOption"); + JsonArray array = getJArray(json, "answerOption"); for (int i = 0; i < array.size(); i++) { res.getAnswerOption().add(parseQuestionnaireItemAnswerOptionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("initial")) { - JsonArray array = json.getAsJsonArray("initial"); + JsonArray array = getJArray(json, "initial"); for (int i = 0; i < array.size(); i++) { res.getInitial().add(parseQuestionnaireItemInitialComponent(array.get(i).getAsJsonObject())); } }; if (json.has("item")) { - JsonArray array = json.getAsJsonArray("item"); + JsonArray array = getJArray(json, "item"); for (int i = 0; i < array.size(); i++) { res.getItem().add(parseQuestionnaireItemComponent(array.get(i).getAsJsonObject())); } @@ -24341,13 +24843,13 @@ public class JsonParser extends JsonParserBase { if (json.has("identifier")) res.setIdentifier(parseIdentifier(getJObject(json, "identifier"))); if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("partOf")) { - JsonArray array = json.getAsJsonArray("partOf"); + JsonArray array = getJArray(json, "partOf"); for (int i = 0; i < array.size(); i++) { res.getPartOf().add(parseReference(array.get(i).getAsJsonObject())); } @@ -24373,7 +24875,7 @@ public class JsonParser extends JsonParserBase { if (json.has("source")) res.setSource(parseReference(getJObject(json, "source"))); if (json.has("item")) { - JsonArray array = json.getAsJsonArray("item"); + JsonArray array = getJArray(json, "item"); for (int i = 0; i < array.size(); i++) { res.getItem().add(parseQuestionnaireResponseItemComponent(array.get(i).getAsJsonObject())); } @@ -24401,13 +24903,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_text")) parseElementProperties(getJObject(json, "_text"), res.getTextElement()); if (json.has("answer")) { - JsonArray array = json.getAsJsonArray("answer"); + JsonArray array = getJArray(json, "answer"); for (int i = 0; i < array.size(); i++) { res.getAnswer().add(parseQuestionnaireResponseItemAnswerComponent(array.get(i).getAsJsonObject())); } }; if (json.has("item")) { - JsonArray array = json.getAsJsonArray("item"); + JsonArray array = getJArray(json, "item"); for (int i = 0; i < array.size(); i++) { res.getItem().add(parseQuestionnaireResponseItemComponent(array.get(i).getAsJsonObject())); } @@ -24426,7 +24928,7 @@ public class JsonParser extends JsonParserBase { if (value != null) res.setValue(value); if (json.has("item")) { - JsonArray array = json.getAsJsonArray("item"); + JsonArray array = getJArray(json, "item"); for (int i = 0; i < array.size(); i++) { res.getItem().add(parseQuestionnaireResponseItemComponent(array.get(i).getAsJsonObject())); } @@ -24442,7 +24944,7 @@ public class JsonParser extends JsonParserBase { protected void parseRegulatedAuthorizationProperties(JsonObject json, RegulatedAuthorization res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -24456,7 +24958,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("region")) { - JsonArray array = json.getAsJsonArray("region"); + JsonArray array = getJArray(json, "region"); for (int i = 0; i < array.size(); i++) { res.getRegion().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -24469,25 +24971,24 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_statusDate"), res.getStatusDateElement()); if (json.has("validityPeriod")) res.setValidityPeriod(parsePeriod(getJObject(json, "validityPeriod"))); - DataType indication = parseType("indication", json); - if (indication != null) - res.setIndication(indication); + if (json.has("indication")) + res.setIndication(parseCodeableReference(getJObject(json, "indication"))); if (json.has("intendedUse")) res.setIntendedUse(parseCodeableConcept(getJObject(json, "intendedUse"))); if (json.has("basis")) { - JsonArray array = json.getAsJsonArray("basis"); + JsonArray array = getJArray(json, "basis"); for (int i = 0; i < array.size(); i++) { res.getBasis().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("relatedDate")) { - JsonArray array = json.getAsJsonArray("relatedDate"); + JsonArray array = getJArray(json, "relatedDate"); for (int i = 0; i < array.size(); i++) { res.getRelatedDate().add(parseRegulatedAuthorizationRelatedDateComponent(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdictionalAuthorization")) { - JsonArray array = json.getAsJsonArray("jurisdictionalAuthorization"); + JsonArray array = getJArray(json, "jurisdictionalAuthorization"); for (int i = 0; i < array.size(); i++) { res.getJurisdictionalAuthorization().add(parseReference(array.get(i).getAsJsonObject())); } @@ -24496,6 +24997,12 @@ public class JsonParser extends JsonParserBase { res.setHolder(parseReference(getJObject(json, "holder"))); if (json.has("regulator")) res.setRegulator(parseReference(getJObject(json, "regulator"))); + if (json.has("attachedDocument")) { + JsonArray array = getJArray(json, "attachedDocument"); + for (int i = 0; i < array.size(); i++) { + res.getAttachedDocument().add(parseReference(array.get(i).getAsJsonObject())); + } + }; if (json.has("case")) res.setCase(parseRegulatedAuthorizationCaseComponent(getJObject(json, "case"))); } @@ -24533,7 +25040,7 @@ public class JsonParser extends JsonParserBase { if (date != null) res.setDate(date); if (json.has("application")) { - JsonArray array = json.getAsJsonArray("application"); + JsonArray array = getJArray(json, "application"); for (int i = 0; i < array.size(); i++) { res.getApplication().add(parseRegulatedAuthorizationCaseComponent(array.get(i).getAsJsonObject())); } @@ -24549,7 +25056,7 @@ public class JsonParser extends JsonParserBase { protected void parseRelatedPersonProperties(JsonObject json, RelatedPerson res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -24561,19 +25068,19 @@ public class JsonParser extends JsonParserBase { if (json.has("patient")) res.setPatient(parseReference(getJObject(json, "patient"))); if (json.has("relationship")) { - JsonArray array = json.getAsJsonArray("relationship"); + JsonArray array = getJArray(json, "relationship"); for (int i = 0; i < array.size(); i++) { res.getRelationship().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("name")) { - JsonArray array = json.getAsJsonArray("name"); + JsonArray array = getJArray(json, "name"); for (int i = 0; i < array.size(); i++) { res.getName().add(parseHumanName(array.get(i).getAsJsonObject())); } }; if (json.has("telecom")) { - JsonArray array = json.getAsJsonArray("telecom"); + JsonArray array = getJArray(json, "telecom"); for (int i = 0; i < array.size(); i++) { res.getTelecom().add(parseContactPoint(array.get(i).getAsJsonObject())); } @@ -24587,13 +25094,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_birthDate")) parseElementProperties(getJObject(json, "_birthDate"), res.getBirthDateElement()); if (json.has("address")) { - JsonArray array = json.getAsJsonArray("address"); + JsonArray array = getJArray(json, "address"); for (int i = 0; i < array.size(); i++) { res.getAddress().add(parseAddress(array.get(i).getAsJsonObject())); } }; if (json.has("photo")) { - JsonArray array = json.getAsJsonArray("photo"); + JsonArray array = getJArray(json, "photo"); for (int i = 0; i < array.size(); i++) { res.getPhoto().add(parseAttachment(array.get(i).getAsJsonObject())); } @@ -24601,7 +25108,7 @@ public class JsonParser extends JsonParserBase { if (json.has("period")) res.setPeriod(parsePeriod(getJObject(json, "period"))); if (json.has("communication")) { - JsonArray array = json.getAsJsonArray("communication"); + JsonArray array = getJArray(json, "communication"); for (int i = 0; i < array.size(); i++) { res.getCommunication().add(parseRelatedPersonCommunicationComponent(array.get(i).getAsJsonObject())); } @@ -24633,13 +25140,13 @@ public class JsonParser extends JsonParserBase { protected void parseRequestGroupProperties(JsonObject json, RequestGroup res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("instantiatesCanonical"); + JsonArray array = getJArray(json, "instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesCanonical().add(new CanonicalType()); @@ -24649,7 +25156,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("_instantiatesCanonical"); + JsonArray array = getJArray(json, "_instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesCanonical().size()) res.getInstantiatesCanonical().add(parseCanonical(null)); @@ -24658,7 +25165,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("instantiatesUri")) { - JsonArray array = json.getAsJsonArray("instantiatesUri"); + JsonArray array = getJArray(json, "instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesUri().add(new UriType()); @@ -24668,7 +25175,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesUri")) { - JsonArray array = json.getAsJsonArray("_instantiatesUri"); + JsonArray array = getJArray(json, "_instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesUri().size()) res.getInstantiatesUri().add(parseUri(null)); @@ -24677,13 +25184,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("replaces")) { - JsonArray array = json.getAsJsonArray("replaces"); + JsonArray array = getJArray(json, "replaces"); for (int i = 0; i < array.size(); i++) { res.getReplaces().add(parseReference(array.get(i).getAsJsonObject())); } @@ -24715,19 +25222,19 @@ public class JsonParser extends JsonParserBase { if (json.has("author")) res.setAuthor(parseReference(getJObject(json, "author"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("action")) { - JsonArray array = json.getAsJsonArray("action"); + JsonArray array = getJArray(json, "action"); for (int i = 0; i < array.size(); i++) { res.getAction().add(parseRequestGroupActionComponent(array.get(i).getAsJsonObject())); } @@ -24763,25 +25270,25 @@ public class JsonParser extends JsonParserBase { if (json.has("_priority")) parseElementProperties(getJObject(json, "_priority"), res.getPriorityElement()); if (json.has("code")) { - JsonArray array = json.getAsJsonArray("code"); + JsonArray array = getJArray(json, "code"); for (int i = 0; i < array.size(); i++) { res.getCode().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("documentation")) { - JsonArray array = json.getAsJsonArray("documentation"); + JsonArray array = getJArray(json, "documentation"); for (int i = 0; i < array.size(); i++) { res.getDocumentation().add(parseRelatedArtifact(array.get(i).getAsJsonObject())); } }; if (json.has("condition")) { - JsonArray array = json.getAsJsonArray("condition"); + JsonArray array = getJArray(json, "condition"); for (int i = 0; i < array.size(); i++) { res.getCondition().add(parseRequestGroupActionConditionComponent(array.get(i).getAsJsonObject())); } }; if (json.has("relatedAction")) { - JsonArray array = json.getAsJsonArray("relatedAction"); + JsonArray array = getJArray(json, "relatedAction"); for (int i = 0; i < array.size(); i++) { res.getRelatedAction().add(parseRequestGroupActionRelatedActionComponent(array.get(i).getAsJsonObject())); } @@ -24789,10 +25296,12 @@ public class JsonParser extends JsonParserBase { DataType timing = parseType("timing", json); if (timing != null) res.setTiming(timing); + if (json.has("location")) + res.setLocation(parseCodeableReference(getJObject(json, "location"))); if (json.has("participant")) { - JsonArray array = json.getAsJsonArray("participant"); + JsonArray array = getJArray(json, "participant"); for (int i = 0; i < array.size(); i++) { - res.getParticipant().add(parseReference(array.get(i).getAsJsonObject())); + res.getParticipant().add(parseRequestGroupActionParticipantComponent(array.get(i).getAsJsonObject())); } }; if (json.has("type")) @@ -24820,7 +25329,7 @@ public class JsonParser extends JsonParserBase { if (json.has("resource")) res.setResource(parseReference(getJObject(json, "resource"))); if (json.has("action")) { - JsonArray array = json.getAsJsonArray("action"); + JsonArray array = getJArray(json, "action"); for (int i = 0; i < array.size(); i++) { res.getAction().add(parseRequestGroupActionComponent(array.get(i).getAsJsonObject())); } @@ -24851,10 +25360,10 @@ public class JsonParser extends JsonParserBase { protected void parseRequestGroupActionRelatedActionComponentProperties(JsonObject json, RequestGroup.RequestGroupActionRelatedActionComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); - if (json.has("actionId")) - res.setActionIdElement(parseId(json.get("actionId").getAsString())); - if (json.has("_actionId")) - parseElementProperties(getJObject(json, "_actionId"), res.getActionIdElement()); + if (json.has("targetId")) + res.setTargetIdElement(parseId(json.get("targetId").getAsString())); + if (json.has("_targetId")) + parseElementProperties(getJObject(json, "_targetId"), res.getTargetIdElement()); if (json.has("relationship")) res.setRelationshipElement(parseEnumeration(json.get("relationship").getAsString(), Enumerations.ActionRelationshipType.NULL, new Enumerations.ActionRelationshipTypeEnumFactory())); if (json.has("_relationship")) @@ -24864,6 +25373,28 @@ public class JsonParser extends JsonParserBase { res.setOffset(offset); } + protected RequestGroup.RequestGroupActionParticipantComponent parseRequestGroupActionParticipantComponent(JsonObject json) throws IOException, FHIRFormatError { + RequestGroup.RequestGroupActionParticipantComponent res = new RequestGroup.RequestGroupActionParticipantComponent(); + parseRequestGroupActionParticipantComponentProperties(json, res); + return res; + } + + protected void parseRequestGroupActionParticipantComponentProperties(JsonObject json, RequestGroup.RequestGroupActionParticipantComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("type")) + res.setTypeElement(parseEnumeration(json.get("type").getAsString(), Enumerations.ActionParticipantType.NULL, new Enumerations.ActionParticipantTypeEnumFactory())); + if (json.has("_type")) + parseElementProperties(getJObject(json, "_type"), res.getTypeElement()); + if (json.has("typeReference")) + res.setTypeReference(parseReference(getJObject(json, "typeReference"))); + if (json.has("role")) + res.setRole(parseCodeableConcept(getJObject(json, "role"))); + if (json.has("function")) + res.setFunction(parseCodeableConcept(getJObject(json, "function"))); + if (json.has("actor")) + res.setActor(parseReference(getJObject(json, "actor"))); + } + protected ResearchStudy parseResearchStudy(JsonObject json) throws IOException, FHIRFormatError { ResearchStudy res = new ResearchStudy(); parseResearchStudyProperties(json, res); @@ -24872,30 +25403,58 @@ public class JsonParser extends JsonParserBase { protected void parseResearchStudyProperties(JsonObject json, ResearchStudy res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); + if (json.has("url")) + res.setUrlElement(parseUri(json.get("url").getAsString())); + if (json.has("_url")) + parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; + if (json.has("version")) + res.setVersionElement(parseString(json.get("version").getAsString())); + if (json.has("_version")) + parseElementProperties(getJObject(json, "_version"), res.getVersionElement()); + if (json.has("name")) + res.setNameElement(parseString(json.get("name").getAsString())); + if (json.has("_name")) + parseElementProperties(getJObject(json, "_name"), res.getNameElement()); if (json.has("title")) res.setTitleElement(parseString(json.get("title").getAsString())); if (json.has("_title")) parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); + if (json.has("label")) { + JsonArray array = getJArray(json, "label"); + for (int i = 0; i < array.size(); i++) { + res.getLabel().add(parseResearchStudyLabelComponent(array.get(i).getAsJsonObject())); + } + }; if (json.has("protocol")) { - JsonArray array = json.getAsJsonArray("protocol"); + JsonArray array = getJArray(json, "protocol"); for (int i = 0; i < array.size(); i++) { res.getProtocol().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("partOf")) { - JsonArray array = json.getAsJsonArray("partOf"); + JsonArray array = getJArray(json, "partOf"); for (int i = 0; i < array.size(); i++) { res.getPartOf().add(parseReference(array.get(i).getAsJsonObject())); } }; + if (json.has("relatedArtifact")) { + JsonArray array = getJArray(json, "relatedArtifact"); + for (int i = 0; i < array.size(); i++) { + res.getRelatedArtifact().add(parseRelatedArtifact(array.get(i).getAsJsonObject())); + } + }; + if (json.has("date")) + res.setDateElement(parseDateTime(json.get("date").getAsString())); + if (json.has("_date")) + parseElementProperties(getJObject(json, "_date"), res.getDateElement()); if (json.has("status")) - res.setStatusElement(parseEnumeration(json.get("status").getAsString(), ResearchStudy.ResearchStudyStatus.NULL, new ResearchStudy.ResearchStudyStatusEnumFactory())); + res.setStatusElement(parseEnumeration(json.get("status").getAsString(), Enumerations.PublicationStatus.NULL, new Enumerations.PublicationStatusEnumFactory())); if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("primaryPurposeType")) @@ -24903,99 +25462,258 @@ public class JsonParser extends JsonParserBase { if (json.has("phase")) res.setPhase(parseCodeableConcept(getJObject(json, "phase"))); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("focus")) { - JsonArray array = json.getAsJsonArray("focus"); + JsonArray array = getJArray(json, "focus"); for (int i = 0; i < array.size(); i++) { - res.getFocus().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + res.getFocus().add(parseResearchStudyFocusComponent(array.get(i).getAsJsonObject())); } }; if (json.has("condition")) { - JsonArray array = json.getAsJsonArray("condition"); + JsonArray array = getJArray(json, "condition"); for (int i = 0; i < array.size(); i++) { res.getCondition().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; - if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); - for (int i = 0; i < array.size(); i++) { - res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); - } - }; - if (json.has("relatedArtifact")) { - JsonArray array = json.getAsJsonArray("relatedArtifact"); - for (int i = 0; i < array.size(); i++) { - res.getRelatedArtifact().add(parseRelatedArtifact(array.get(i).getAsJsonObject())); - } - }; if (json.has("keyword")) { - JsonArray array = json.getAsJsonArray("keyword"); + JsonArray array = getJArray(json, "keyword"); for (int i = 0; i < array.size(); i++) { res.getKeyword().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("location")) { - JsonArray array = json.getAsJsonArray("location"); + JsonArray array = getJArray(json, "location"); for (int i = 0; i < array.size(); i++) { res.getLocation().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; + if (json.has("descriptionSummary")) + res.setDescriptionSummaryElement(parseMarkdown(json.get("descriptionSummary").getAsString())); + if (json.has("_descriptionSummary")) + parseElementProperties(getJObject(json, "_descriptionSummary"), res.getDescriptionSummaryElement()); if (json.has("description")) res.setDescriptionElement(parseMarkdown(json.get("description").getAsString())); if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); - if (json.has("enrollment")) { - JsonArray array = json.getAsJsonArray("enrollment"); - for (int i = 0; i < array.size(); i++) { - res.getEnrollment().add(parseReference(array.get(i).getAsJsonObject())); - } - }; if (json.has("period")) res.setPeriod(parsePeriod(getJObject(json, "period"))); + if (json.has("contact")) { + JsonArray array = getJArray(json, "contact"); + for (int i = 0; i < array.size(); i++) { + res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); + } + }; if (json.has("sponsor")) res.setSponsor(parseReference(getJObject(json, "sponsor"))); if (json.has("principalInvestigator")) res.setPrincipalInvestigator(parseReference(getJObject(json, "principalInvestigator"))); if (json.has("site")) { - JsonArray array = json.getAsJsonArray("site"); + JsonArray array = getJArray(json, "site"); for (int i = 0; i < array.size(); i++) { res.getSite().add(parseReference(array.get(i).getAsJsonObject())); } }; - if (json.has("reasonStopped")) - res.setReasonStopped(parseCodeableConcept(getJObject(json, "reasonStopped"))); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; - if (json.has("arm")) { - JsonArray array = json.getAsJsonArray("arm"); + if (json.has("classification")) { + JsonArray array = getJArray(json, "classification"); for (int i = 0; i < array.size(); i++) { - res.getArm().add(parseResearchStudyArmComponent(array.get(i).getAsJsonObject())); + res.getClassification().add(parseResearchStudyClassificationComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("associatedParty")) { + JsonArray array = getJArray(json, "associatedParty"); + for (int i = 0; i < array.size(); i++) { + res.getAssociatedParty().add(parseResearchStudyAssociatedPartyComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("currentState")) { + JsonArray array = getJArray(json, "currentState"); + for (int i = 0; i < array.size(); i++) { + res.getCurrentState().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; + if (json.has("statusDate")) { + JsonArray array = getJArray(json, "statusDate"); + for (int i = 0; i < array.size(); i++) { + res.getStatusDate().add(parseResearchStudyStatusDateComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("whyStopped")) + res.setWhyStopped(parseCodeableConcept(getJObject(json, "whyStopped"))); + if (json.has("recruitment")) + res.setRecruitment(parseResearchStudyRecruitmentComponent(getJObject(json, "recruitment"))); + if (json.has("comparisonGroup")) { + JsonArray array = getJArray(json, "comparisonGroup"); + for (int i = 0; i < array.size(); i++) { + res.getComparisonGroup().add(parseResearchStudyComparisonGroupComponent(array.get(i).getAsJsonObject())); } }; if (json.has("objective")) { - JsonArray array = json.getAsJsonArray("objective"); + JsonArray array = getJArray(json, "objective"); for (int i = 0; i < array.size(); i++) { res.getObjective().add(parseResearchStudyObjectiveComponent(array.get(i).getAsJsonObject())); } }; + if (json.has("outcomeMeasure")) { + JsonArray array = getJArray(json, "outcomeMeasure"); + for (int i = 0; i < array.size(); i++) { + res.getOutcomeMeasure().add(parseResearchStudyOutcomeMeasureComponent(array.get(i).getAsJsonObject())); + } + }; + if (json.has("result")) { + JsonArray array = getJArray(json, "result"); + for (int i = 0; i < array.size(); i++) { + res.getResult().add(parseReference(array.get(i).getAsJsonObject())); + } + }; + if (json.has("webLocation")) { + JsonArray array = getJArray(json, "webLocation"); + for (int i = 0; i < array.size(); i++) { + res.getWebLocation().add(parseResearchStudyWebLocationComponent(array.get(i).getAsJsonObject())); + } + }; } - protected ResearchStudy.ResearchStudyArmComponent parseResearchStudyArmComponent(JsonObject json) throws IOException, FHIRFormatError { - ResearchStudy.ResearchStudyArmComponent res = new ResearchStudy.ResearchStudyArmComponent(); - parseResearchStudyArmComponentProperties(json, res); + protected ResearchStudy.ResearchStudyLabelComponent parseResearchStudyLabelComponent(JsonObject json) throws IOException, FHIRFormatError { + ResearchStudy.ResearchStudyLabelComponent res = new ResearchStudy.ResearchStudyLabelComponent(); + parseResearchStudyLabelComponentProperties(json, res); return res; } - protected void parseResearchStudyArmComponentProperties(JsonObject json, ResearchStudy.ResearchStudyArmComponent res) throws IOException, FHIRFormatError { + protected void parseResearchStudyLabelComponentProperties(JsonObject json, ResearchStudy.ResearchStudyLabelComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); + if (json.has("type")) + res.setType(parseCodeableConcept(getJObject(json, "type"))); + if (json.has("value")) + res.setValueElement(parseString(json.get("value").getAsString())); + if (json.has("_value")) + parseElementProperties(getJObject(json, "_value"), res.getValueElement()); + } + + protected ResearchStudy.ResearchStudyFocusComponent parseResearchStudyFocusComponent(JsonObject json) throws IOException, FHIRFormatError { + ResearchStudy.ResearchStudyFocusComponent res = new ResearchStudy.ResearchStudyFocusComponent(); + parseResearchStudyFocusComponentProperties(json, res); + return res; + } + + protected void parseResearchStudyFocusComponentProperties(JsonObject json, ResearchStudy.ResearchStudyFocusComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("productCode")) + res.setProductCode(parseCodeableConcept(getJObject(json, "productCode"))); + if (json.has("focusType")) { + JsonArray array = getJArray(json, "focusType"); + for (int i = 0; i < array.size(); i++) { + res.getFocusType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; + if (json.has("factor")) + res.setFactorElement(parseMarkdown(json.get("factor").getAsString())); + if (json.has("_factor")) + parseElementProperties(getJObject(json, "_factor"), res.getFactorElement()); + } + + protected ResearchStudy.ResearchStudyClassificationComponent parseResearchStudyClassificationComponent(JsonObject json) throws IOException, FHIRFormatError { + ResearchStudy.ResearchStudyClassificationComponent res = new ResearchStudy.ResearchStudyClassificationComponent(); + parseResearchStudyClassificationComponentProperties(json, res); + return res; + } + + protected void parseResearchStudyClassificationComponentProperties(JsonObject json, ResearchStudy.ResearchStudyClassificationComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("type")) + res.setType(parseCodeableConcept(getJObject(json, "type"))); + if (json.has("classifier")) { + JsonArray array = getJArray(json, "classifier"); + for (int i = 0; i < array.size(); i++) { + res.getClassifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; + } + + protected ResearchStudy.ResearchStudyAssociatedPartyComponent parseResearchStudyAssociatedPartyComponent(JsonObject json) throws IOException, FHIRFormatError { + ResearchStudy.ResearchStudyAssociatedPartyComponent res = new ResearchStudy.ResearchStudyAssociatedPartyComponent(); + parseResearchStudyAssociatedPartyComponentProperties(json, res); + return res; + } + + protected void parseResearchStudyAssociatedPartyComponentProperties(JsonObject json, ResearchStudy.ResearchStudyAssociatedPartyComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("name")) + res.setNameElement(parseString(json.get("name").getAsString())); + if (json.has("_name")) + parseElementProperties(getJObject(json, "_name"), res.getNameElement()); + if (json.has("role")) + res.setRole(parseCodeableConcept(getJObject(json, "role"))); + if (json.has("classifier")) { + JsonArray array = getJArray(json, "classifier"); + for (int i = 0; i < array.size(); i++) { + res.getClassifier().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; + if (json.has("party")) + res.setParty(parseReference(getJObject(json, "party"))); + } + + protected ResearchStudy.ResearchStudyStatusDateComponent parseResearchStudyStatusDateComponent(JsonObject json) throws IOException, FHIRFormatError { + ResearchStudy.ResearchStudyStatusDateComponent res = new ResearchStudy.ResearchStudyStatusDateComponent(); + parseResearchStudyStatusDateComponentProperties(json, res); + return res; + } + + protected void parseResearchStudyStatusDateComponentProperties(JsonObject json, ResearchStudy.ResearchStudyStatusDateComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("activity")) + res.setActivity(parseCodeableConcept(getJObject(json, "activity"))); + if (json.has("actual")) + res.setActualElement(parseBoolean(json.get("actual").getAsBoolean())); + if (json.has("_actual")) + parseElementProperties(getJObject(json, "_actual"), res.getActualElement()); + if (json.has("period")) + res.setPeriod(parsePeriod(getJObject(json, "period"))); + } + + protected ResearchStudy.ResearchStudyRecruitmentComponent parseResearchStudyRecruitmentComponent(JsonObject json) throws IOException, FHIRFormatError { + ResearchStudy.ResearchStudyRecruitmentComponent res = new ResearchStudy.ResearchStudyRecruitmentComponent(); + parseResearchStudyRecruitmentComponentProperties(json, res); + return res; + } + + protected void parseResearchStudyRecruitmentComponentProperties(JsonObject json, ResearchStudy.ResearchStudyRecruitmentComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("targetNumber")) + res.setTargetNumberElement(parseUnsignedInt(json.get("targetNumber").getAsString())); + if (json.has("_targetNumber")) + parseElementProperties(getJObject(json, "_targetNumber"), res.getTargetNumberElement()); + if (json.has("actualNumber")) + res.setActualNumberElement(parseUnsignedInt(json.get("actualNumber").getAsString())); + if (json.has("_actualNumber")) + parseElementProperties(getJObject(json, "_actualNumber"), res.getActualNumberElement()); + if (json.has("eligibility")) + res.setEligibility(parseReference(getJObject(json, "eligibility"))); + if (json.has("actualGroup")) + res.setActualGroup(parseReference(getJObject(json, "actualGroup"))); + } + + protected ResearchStudy.ResearchStudyComparisonGroupComponent parseResearchStudyComparisonGroupComponent(JsonObject json) throws IOException, FHIRFormatError { + ResearchStudy.ResearchStudyComparisonGroupComponent res = new ResearchStudy.ResearchStudyComparisonGroupComponent(); + parseResearchStudyComparisonGroupComponentProperties(json, res); + return res; + } + + protected void parseResearchStudyComparisonGroupComponentProperties(JsonObject json, ResearchStudy.ResearchStudyComparisonGroupComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + DataType identifier = parseType("identifier", json); + if (identifier != null) + res.setIdentifier(identifier); if (json.has("name")) res.setNameElement(parseString(json.get("name").getAsString())); if (json.has("_name")) @@ -25003,9 +25721,17 @@ public class JsonParser extends JsonParserBase { if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); if (json.has("description")) - res.setDescriptionElement(parseString(json.get("description").getAsString())); + res.setDescriptionElement(parseMarkdown(json.get("description").getAsString())); if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); + if (json.has("intendedExposure")) { + JsonArray array = getJArray(json, "intendedExposure"); + for (int i = 0; i < array.size(); i++) { + res.getIntendedExposure().add(parseReference(array.get(i).getAsJsonObject())); + } + }; + if (json.has("observedGroup")) + res.setObservedGroup(parseReference(getJObject(json, "observedGroup"))); } protected ResearchStudy.ResearchStudyObjectiveComponent parseResearchStudyObjectiveComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -25022,6 +25748,52 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_name"), res.getNameElement()); if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); + if (json.has("description")) + res.setDescriptionElement(parseMarkdown(json.get("description").getAsString())); + if (json.has("_description")) + parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); + } + + protected ResearchStudy.ResearchStudyOutcomeMeasureComponent parseResearchStudyOutcomeMeasureComponent(JsonObject json) throws IOException, FHIRFormatError { + ResearchStudy.ResearchStudyOutcomeMeasureComponent res = new ResearchStudy.ResearchStudyOutcomeMeasureComponent(); + parseResearchStudyOutcomeMeasureComponentProperties(json, res); + return res; + } + + protected void parseResearchStudyOutcomeMeasureComponentProperties(JsonObject json, ResearchStudy.ResearchStudyOutcomeMeasureComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("name")) + res.setNameElement(parseString(json.get("name").getAsString())); + if (json.has("_name")) + parseElementProperties(getJObject(json, "_name"), res.getNameElement()); + if (json.has("type")) { + JsonArray array = getJArray(json, "type"); + for (int i = 0; i < array.size(); i++) { + res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; + if (json.has("description")) + res.setDescriptionElement(parseMarkdown(json.get("description").getAsString())); + if (json.has("_description")) + parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); + if (json.has("reference")) + res.setReference(parseReference(getJObject(json, "reference"))); + } + + protected ResearchStudy.ResearchStudyWebLocationComponent parseResearchStudyWebLocationComponent(JsonObject json) throws IOException, FHIRFormatError { + ResearchStudy.ResearchStudyWebLocationComponent res = new ResearchStudy.ResearchStudyWebLocationComponent(); + parseResearchStudyWebLocationComponentProperties(json, res); + return res; + } + + protected void parseResearchStudyWebLocationComponentProperties(JsonObject json, ResearchStudy.ResearchStudyWebLocationComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("type")) + res.setType(parseCodeableConcept(getJObject(json, "type"))); + if (json.has("url")) + res.setUrlElement(parseUri(json.get("url").getAsString())); + if (json.has("_url")) + parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); } protected ResearchSubject parseResearchSubject(JsonObject json) throws IOException, FHIRFormatError { @@ -25033,17 +25805,17 @@ public class JsonParser extends JsonParserBase { protected void parseResearchSubjectProperties(JsonObject json, ResearchSubject res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("status")) - res.setStatusElement(parseEnumeration(json.get("status").getAsString(), ResearchSubject.ResearchSubjectStatus.NULL, new ResearchSubject.ResearchSubjectStatusEnumFactory())); + res.setStatusElement(parseEnumeration(json.get("status").getAsString(), Enumerations.PublicationStatus.NULL, new Enumerations.PublicationStatusEnumFactory())); if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("progress")) { - JsonArray array = json.getAsJsonArray("progress"); + JsonArray array = getJArray(json, "progress"); for (int i = 0; i < array.size(); i++) { res.getProgress().add(parseResearchSubjectProgressComponent(array.get(i).getAsJsonObject())); } @@ -25052,8 +25824,8 @@ public class JsonParser extends JsonParserBase { res.setPeriod(parsePeriod(getJObject(json, "period"))); if (json.has("study")) res.setStudy(parseReference(getJObject(json, "study"))); - if (json.has("individual")) - res.setIndividual(parseReference(getJObject(json, "individual"))); + if (json.has("subject")) + res.setSubject(parseReference(getJObject(json, "subject"))); if (json.has("assignedArm")) res.setAssignedArmElement(parseString(json.get("assignedArm").getAsString())); if (json.has("_assignedArm")) @@ -25076,8 +25848,8 @@ public class JsonParser extends JsonParserBase { parseBackboneElementProperties(json, res); if (json.has("type")) res.setType(parseCodeableConcept(getJObject(json, "type"))); - if (json.has("state")) - res.setState(parseCodeableConcept(getJObject(json, "state"))); + if (json.has("subjectState")) + res.setSubjectState(parseCodeableConcept(getJObject(json, "subjectState"))); if (json.has("milestone")) res.setMilestone(parseCodeableConcept(getJObject(json, "milestone"))); if (json.has("reason")) @@ -25086,6 +25858,10 @@ public class JsonParser extends JsonParserBase { res.setStartDateElement(parseDateTime(json.get("startDate").getAsString())); if (json.has("_startDate")) parseElementProperties(getJObject(json, "_startDate"), res.getStartDateElement()); + if (json.has("endDate")) + res.setEndDateElement(parseDateTime(json.get("endDate").getAsString())); + if (json.has("_endDate")) + parseElementProperties(getJObject(json, "_endDate"), res.getEndDateElement()); } protected RiskAssessment parseRiskAssessment(JsonObject json) throws IOException, FHIRFormatError { @@ -25097,7 +25873,7 @@ public class JsonParser extends JsonParserBase { protected void parseRiskAssessmentProperties(JsonObject json, RiskAssessment res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -25126,19 +25902,19 @@ public class JsonParser extends JsonParserBase { if (json.has("performer")) res.setPerformer(parseReference(getJObject(json, "performer"))); if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("basis")) { - JsonArray array = json.getAsJsonArray("basis"); + JsonArray array = getJArray(json, "basis"); for (int i = 0; i < array.size(); i++) { res.getBasis().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("prediction")) { - JsonArray array = json.getAsJsonArray("prediction"); + JsonArray array = getJArray(json, "prediction"); for (int i = 0; i < array.size(); i++) { res.getPrediction().add(parseRiskAssessmentPredictionComponent(array.get(i).getAsJsonObject())); } @@ -25148,7 +25924,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_mitigation")) parseElementProperties(getJObject(json, "_mitigation"), res.getMitigationElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -25192,7 +25968,7 @@ public class JsonParser extends JsonParserBase { protected void parseScheduleProperties(JsonObject json, Schedule res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -25202,25 +25978,25 @@ public class JsonParser extends JsonParserBase { if (json.has("_active")) parseElementProperties(getJObject(json, "_active"), res.getActiveElement()); if (json.has("serviceCategory")) { - JsonArray array = json.getAsJsonArray("serviceCategory"); + JsonArray array = getJArray(json, "serviceCategory"); for (int i = 0; i < array.size(); i++) { res.getServiceCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("serviceType")) { - JsonArray array = json.getAsJsonArray("serviceType"); + JsonArray array = getJArray(json, "serviceType"); for (int i = 0; i < array.size(); i++) { res.getServiceType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("specialty")) { - JsonArray array = json.getAsJsonArray("specialty"); + JsonArray array = getJArray(json, "specialty"); for (int i = 0; i < array.size(); i++) { res.getSpecialty().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("actor")) { - JsonArray array = json.getAsJsonArray("actor"); + JsonArray array = getJArray(json, "actor"); for (int i = 0; i < array.size(); i++) { res.getActor().add(parseReference(array.get(i).getAsJsonObject())); } @@ -25274,7 +26050,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -25284,13 +26060,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -25304,7 +26080,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_code")) parseElementProperties(getJObject(json, "_code"), res.getCodeElement()); if (json.has("base")) { - JsonArray array = json.getAsJsonArray("base"); + JsonArray array = getJArray(json, "base"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getBase().add(new CodeType()); @@ -25314,7 +26090,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_base")) { - JsonArray array = json.getAsJsonArray("_base"); + JsonArray array = getJArray(json, "_base"); for (int i = 0; i < array.size(); i++) { if (i == res.getBase().size()) res.getBase().add(parseCode(null)); @@ -25339,7 +26115,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_xpathUsage")) parseElementProperties(getJObject(json, "_xpathUsage"), res.getXpathUsageElement()); if (json.has("target")) { - JsonArray array = json.getAsJsonArray("target"); + JsonArray array = getJArray(json, "target"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getTarget().add(new CodeType()); @@ -25349,7 +26125,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_target")) { - JsonArray array = json.getAsJsonArray("_target"); + JsonArray array = getJArray(json, "_target"); for (int i = 0; i < array.size(); i++) { if (i == res.getTarget().size()) res.getTarget().add(parseCode(null)); @@ -25366,7 +26142,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_multipleAnd")) parseElementProperties(getJObject(json, "_multipleAnd"), res.getMultipleAndElement()); if (json.has("comparator")) { - JsonArray array = json.getAsJsonArray("comparator"); + JsonArray array = getJArray(json, "comparator"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getComparator().add(new Enumeration(new SearchParameter.SearchComparatorEnumFactory(), SearchParameter.SearchComparator.NULL)); @@ -25376,7 +26152,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_comparator")) { - JsonArray array = json.getAsJsonArray("_comparator"); + JsonArray array = getJArray(json, "_comparator"); for (int i = 0; i < array.size(); i++) { if (i == res.getComparator().size()) res.getComparator().add(parseEnumeration(null, SearchParameter.SearchComparator.NULL, new SearchParameter.SearchComparatorEnumFactory())); @@ -25385,7 +26161,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("modifier")) { - JsonArray array = json.getAsJsonArray("modifier"); + JsonArray array = getJArray(json, "modifier"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getModifier().add(new Enumeration(new SearchParameter.SearchModifierCodeEnumFactory(), SearchParameter.SearchModifierCode.NULL)); @@ -25395,7 +26171,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_modifier")) { - JsonArray array = json.getAsJsonArray("_modifier"); + JsonArray array = getJArray(json, "_modifier"); for (int i = 0; i < array.size(); i++) { if (i == res.getModifier().size()) res.getModifier().add(parseEnumeration(null, SearchParameter.SearchModifierCode.NULL, new SearchParameter.SearchModifierCodeEnumFactory())); @@ -25404,7 +26180,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("chain")) { - JsonArray array = json.getAsJsonArray("chain"); + JsonArray array = getJArray(json, "chain"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getChain().add(new StringType()); @@ -25414,7 +26190,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_chain")) { - JsonArray array = json.getAsJsonArray("_chain"); + JsonArray array = getJArray(json, "_chain"); for (int i = 0; i < array.size(); i++) { if (i == res.getChain().size()) res.getChain().add(parseString(null)); @@ -25423,7 +26199,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("component")) { - JsonArray array = json.getAsJsonArray("component"); + JsonArray array = getJArray(json, "component"); for (int i = 0; i < array.size(); i++) { res.getComponent().add(parseSearchParameterComponentComponent(array.get(i).getAsJsonObject())); } @@ -25457,13 +26233,13 @@ public class JsonParser extends JsonParserBase { protected void parseServiceRequestProperties(JsonObject json, ServiceRequest res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("instantiatesCanonical"); + JsonArray array = getJArray(json, "instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesCanonical().add(new CanonicalType()); @@ -25473,7 +26249,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesCanonical")) { - JsonArray array = json.getAsJsonArray("_instantiatesCanonical"); + JsonArray array = getJArray(json, "_instantiatesCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesCanonical().size()) res.getInstantiatesCanonical().add(parseCanonical(null)); @@ -25482,7 +26258,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("instantiatesUri")) { - JsonArray array = json.getAsJsonArray("instantiatesUri"); + JsonArray array = getJArray(json, "instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getInstantiatesUri().add(new UriType()); @@ -25492,7 +26268,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_instantiatesUri")) { - JsonArray array = json.getAsJsonArray("_instantiatesUri"); + JsonArray array = getJArray(json, "_instantiatesUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getInstantiatesUri().size()) res.getInstantiatesUri().add(parseUri(null)); @@ -25501,13 +26277,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("replaces")) { - JsonArray array = json.getAsJsonArray("replaces"); + JsonArray array = getJArray(json, "replaces"); for (int i = 0; i < array.size(); i++) { res.getReplaces().add(parseReference(array.get(i).getAsJsonObject())); } @@ -25523,7 +26299,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_intent")) parseElementProperties(getJObject(json, "_intent"), res.getIntentElement()); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -25539,7 +26315,7 @@ public class JsonParser extends JsonParserBase { if (json.has("code")) res.setCode(parseCodeableConcept(getJObject(json, "code"))); if (json.has("orderDetail")) { - JsonArray array = json.getAsJsonArray("orderDetail"); + JsonArray array = getJArray(json, "orderDetail"); for (int i = 0; i < array.size(); i++) { res.getOrderDetail().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -25566,49 +26342,49 @@ public class JsonParser extends JsonParserBase { if (json.has("performerType")) res.setPerformerType(parseCodeableConcept(getJObject(json, "performerType"))); if (json.has("performer")) { - JsonArray array = json.getAsJsonArray("performer"); + JsonArray array = getJArray(json, "performer"); for (int i = 0; i < array.size(); i++) { res.getPerformer().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("location")) { - JsonArray array = json.getAsJsonArray("location"); + JsonArray array = getJArray(json, "location"); for (int i = 0; i < array.size(); i++) { res.getLocation().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } }; if (json.has("insurance")) { - JsonArray array = json.getAsJsonArray("insurance"); + JsonArray array = getJArray(json, "insurance"); for (int i = 0; i < array.size(); i++) { res.getInsurance().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("supportingInfo")) { - JsonArray array = json.getAsJsonArray("supportingInfo"); + JsonArray array = getJArray(json, "supportingInfo"); for (int i = 0; i < array.size(); i++) { res.getSupportingInfo().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("specimen")) { - JsonArray array = json.getAsJsonArray("specimen"); + JsonArray array = getJArray(json, "specimen"); for (int i = 0; i < array.size(); i++) { res.getSpecimen().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("bodySite")) { - JsonArray array = json.getAsJsonArray("bodySite"); + JsonArray array = getJArray(json, "bodySite"); for (int i = 0; i < array.size(); i++) { res.getBodySite().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -25618,7 +26394,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_patientInstruction")) parseElementProperties(getJObject(json, "_patientInstruction"), res.getPatientInstructionElement()); if (json.has("relevantHistory")) { - JsonArray array = json.getAsJsonArray("relevantHistory"); + JsonArray array = getJArray(json, "relevantHistory"); for (int i = 0; i < array.size(); i++) { res.getRelevantHistory().add(parseReference(array.get(i).getAsJsonObject())); } @@ -25634,25 +26410,25 @@ public class JsonParser extends JsonParserBase { protected void parseSlotProperties(JsonObject json, Slot res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("serviceCategory")) { - JsonArray array = json.getAsJsonArray("serviceCategory"); + JsonArray array = getJArray(json, "serviceCategory"); for (int i = 0; i < array.size(); i++) { res.getServiceCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("serviceType")) { - JsonArray array = json.getAsJsonArray("serviceType"); + JsonArray array = getJArray(json, "serviceType"); for (int i = 0; i < array.size(); i++) { res.getServiceType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("specialty")) { - JsonArray array = json.getAsJsonArray("specialty"); + JsonArray array = getJArray(json, "specialty"); for (int i = 0; i < array.size(); i++) { res.getSpecialty().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -25692,7 +26468,7 @@ public class JsonParser extends JsonParserBase { protected void parseSpecimenProperties(JsonObject json, Specimen res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -25712,13 +26488,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_receivedTime")) parseElementProperties(getJObject(json, "_receivedTime"), res.getReceivedTimeElement()); if (json.has("parent")) { - JsonArray array = json.getAsJsonArray("parent"); + JsonArray array = getJArray(json, "parent"); for (int i = 0; i < array.size(); i++) { res.getParent().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("request")) { - JsonArray array = json.getAsJsonArray("request"); + JsonArray array = getJArray(json, "request"); for (int i = 0; i < array.size(); i++) { res.getRequest().add(parseReference(array.get(i).getAsJsonObject())); } @@ -25726,25 +26502,25 @@ public class JsonParser extends JsonParserBase { if (json.has("collection")) res.setCollection(parseSpecimenCollectionComponent(getJObject(json, "collection"))); if (json.has("processing")) { - JsonArray array = json.getAsJsonArray("processing"); + JsonArray array = getJArray(json, "processing"); for (int i = 0; i < array.size(); i++) { res.getProcessing().add(parseSpecimenProcessingComponent(array.get(i).getAsJsonObject())); } }; if (json.has("container")) { - JsonArray array = json.getAsJsonArray("container"); + JsonArray array = getJArray(json, "container"); for (int i = 0; i < array.size(); i++) { res.getContainer().add(parseSpecimenContainerComponent(array.get(i).getAsJsonObject())); } }; if (json.has("condition")) { - JsonArray array = json.getAsJsonArray("condition"); + JsonArray array = getJArray(json, "condition"); for (int i = 0; i < array.size(); i++) { res.getCondition().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -25792,7 +26568,7 @@ public class JsonParser extends JsonParserBase { if (json.has("procedure")) res.setProcedure(parseCodeableConcept(getJObject(json, "procedure"))); if (json.has("additive")) { - JsonArray array = json.getAsJsonArray("additive"); + JsonArray array = getJArray(json, "additive"); for (int i = 0; i < array.size(); i++) { res.getAdditive().add(parseReference(array.get(i).getAsJsonObject())); } @@ -25811,7 +26587,7 @@ public class JsonParser extends JsonParserBase { protected void parseSpecimenContainerComponentProperties(JsonObject json, Specimen.SpecimenContainerComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -25854,7 +26630,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_title")) parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); if (json.has("derivedFromCanonical")) { - JsonArray array = json.getAsJsonArray("derivedFromCanonical"); + JsonArray array = getJArray(json, "derivedFromCanonical"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDerivedFromCanonical().add(new CanonicalType()); @@ -25864,7 +26640,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_derivedFromCanonical")) { - JsonArray array = json.getAsJsonArray("_derivedFromCanonical"); + JsonArray array = getJArray(json, "_derivedFromCanonical"); for (int i = 0; i < array.size(); i++) { if (i == res.getDerivedFromCanonical().size()) res.getDerivedFromCanonical().add(parseCanonical(null)); @@ -25873,7 +26649,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("derivedFromUri")) { - JsonArray array = json.getAsJsonArray("derivedFromUri"); + JsonArray array = getJArray(json, "derivedFromUri"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDerivedFromUri().add(new UriType()); @@ -25883,7 +26659,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_derivedFromUri")) { - JsonArray array = json.getAsJsonArray("_derivedFromUri"); + JsonArray array = getJArray(json, "_derivedFromUri"); for (int i = 0; i < array.size(); i++) { if (i == res.getDerivedFromUri().size()) res.getDerivedFromUri().add(parseUri(null)); @@ -25909,7 +26685,7 @@ public class JsonParser extends JsonParserBase { if (json.has("publisher")) res.setPublisher(parseReference(getJObject(json, "publisher"))); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -25919,13 +26695,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -25951,7 +26727,7 @@ public class JsonParser extends JsonParserBase { if (json.has("typeCollected")) res.setTypeCollected(parseCodeableConcept(getJObject(json, "typeCollected"))); if (json.has("patientPreparation")) { - JsonArray array = json.getAsJsonArray("patientPreparation"); + JsonArray array = getJArray(json, "patientPreparation"); for (int i = 0; i < array.size(); i++) { res.getPatientPreparation().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -25961,13 +26737,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_timeAspect")) parseElementProperties(getJObject(json, "_timeAspect"), res.getTimeAspectElement()); if (json.has("collection")) { - JsonArray array = json.getAsJsonArray("collection"); + JsonArray array = getJArray(json, "collection"); for (int i = 0; i < array.size(); i++) { res.getCollection().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("typeTested")) { - JsonArray array = json.getAsJsonArray("typeTested"); + JsonArray array = getJArray(json, "typeTested"); for (int i = 0; i < array.size(); i++) { res.getTypeTested().add(parseSpecimenDefinitionTypeTestedComponent(array.get(i).getAsJsonObject())); } @@ -26005,19 +26781,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_singleUse")) parseElementProperties(getJObject(json, "_singleUse"), res.getSingleUseElement()); if (json.has("rejectionCriterion")) { - JsonArray array = json.getAsJsonArray("rejectionCriterion"); + JsonArray array = getJArray(json, "rejectionCriterion"); for (int i = 0; i < array.size(); i++) { res.getRejectionCriterion().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("handling")) { - JsonArray array = json.getAsJsonArray("handling"); + JsonArray array = getJArray(json, "handling"); for (int i = 0; i < array.size(); i++) { res.getHandling().add(parseSpecimenDefinitionTypeTestedHandlingComponent(array.get(i).getAsJsonObject())); } }; if (json.has("testingDestination")) { - JsonArray array = json.getAsJsonArray("testingDestination"); + JsonArray array = getJArray(json, "testingDestination"); for (int i = 0; i < array.size(); i++) { res.getTestingDestination().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -26048,7 +26824,7 @@ public class JsonParser extends JsonParserBase { if (minimumVolume != null) res.setMinimumVolume(minimumVolume); if (json.has("additive")) { - JsonArray array = json.getAsJsonArray("additive"); + JsonArray array = getJArray(json, "additive"); for (int i = 0; i < array.size(); i++) { res.getAdditive().add(parseSpecimenDefinitionTypeTestedContainerAdditiveComponent(array.get(i).getAsJsonObject())); } @@ -26105,7 +26881,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -26139,7 +26915,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -26149,13 +26925,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -26169,7 +26945,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_copyright")) parseElementProperties(getJObject(json, "_copyright"), res.getCopyrightElement()); if (json.has("keyword")) { - JsonArray array = json.getAsJsonArray("keyword"); + JsonArray array = getJArray(json, "keyword"); for (int i = 0; i < array.size(); i++) { res.getKeyword().add(parseCoding(array.get(i).getAsJsonObject())); } @@ -26179,7 +26955,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_fhirVersion")) parseElementProperties(getJObject(json, "_fhirVersion"), res.getFhirVersionElement()); if (json.has("mapping")) { - JsonArray array = json.getAsJsonArray("mapping"); + JsonArray array = getJArray(json, "mapping"); for (int i = 0; i < array.size(); i++) { res.getMapping().add(parseStructureDefinitionMappingComponent(array.get(i).getAsJsonObject())); } @@ -26193,13 +26969,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_abstract")) parseElementProperties(getJObject(json, "_abstract"), res.getAbstractElement()); if (json.has("context")) { - JsonArray array = json.getAsJsonArray("context"); + JsonArray array = getJArray(json, "context"); for (int i = 0; i < array.size(); i++) { res.getContext().add(parseStructureDefinitionContextComponent(array.get(i).getAsJsonObject())); } }; if (json.has("contextInvariant")) { - JsonArray array = json.getAsJsonArray("contextInvariant"); + JsonArray array = getJArray(json, "contextInvariant"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getContextInvariant().add(new StringType()); @@ -26209,7 +26985,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_contextInvariant")) { - JsonArray array = json.getAsJsonArray("_contextInvariant"); + JsonArray array = getJArray(json, "_contextInvariant"); for (int i = 0; i < array.size(); i++) { if (i == res.getContextInvariant().size()) res.getContextInvariant().add(parseString(null)); @@ -26288,7 +27064,7 @@ public class JsonParser extends JsonParserBase { protected void parseStructureDefinitionSnapshotComponentProperties(JsonObject json, StructureDefinition.StructureDefinitionSnapshotComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("element")) { - JsonArray array = json.getAsJsonArray("element"); + JsonArray array = getJArray(json, "element"); for (int i = 0; i < array.size(); i++) { res.getElement().add(parseElementDefinition(array.get(i).getAsJsonObject())); } @@ -26304,7 +27080,7 @@ public class JsonParser extends JsonParserBase { protected void parseStructureDefinitionDifferentialComponentProperties(JsonObject json, StructureDefinition.StructureDefinitionDifferentialComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("element")) { - JsonArray array = json.getAsJsonArray("element"); + JsonArray array = getJArray(json, "element"); for (int i = 0; i < array.size(); i++) { res.getElement().add(parseElementDefinition(array.get(i).getAsJsonObject())); } @@ -26324,7 +27100,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -26358,7 +27134,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -26368,13 +27144,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -26388,13 +27164,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_copyright")) parseElementProperties(getJObject(json, "_copyright"), res.getCopyrightElement()); if (json.has("structure")) { - JsonArray array = json.getAsJsonArray("structure"); + JsonArray array = getJArray(json, "structure"); for (int i = 0; i < array.size(); i++) { res.getStructure().add(parseStructureMapStructureComponent(array.get(i).getAsJsonObject())); } }; if (json.has("import")) { - JsonArray array = json.getAsJsonArray("import"); + JsonArray array = getJArray(json, "import"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getImport().add(new CanonicalType()); @@ -26404,7 +27180,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_import")) { - JsonArray array = json.getAsJsonArray("_import"); + JsonArray array = getJArray(json, "_import"); for (int i = 0; i < array.size(); i++) { if (i == res.getImport().size()) res.getImport().add(parseCanonical(null)); @@ -26413,7 +27189,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("group")) { - JsonArray array = json.getAsJsonArray("group"); + JsonArray array = getJArray(json, "group"); for (int i = 0; i < array.size(); i++) { res.getGroup().add(parseStructureMapGroupComponent(array.get(i).getAsJsonObject())); } @@ -26471,13 +27247,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_documentation")) parseElementProperties(getJObject(json, "_documentation"), res.getDocumentationElement()); if (json.has("input")) { - JsonArray array = json.getAsJsonArray("input"); + JsonArray array = getJArray(json, "input"); for (int i = 0; i < array.size(); i++) { res.getInput().add(parseStructureMapGroupInputComponent(array.get(i).getAsJsonObject())); } }; if (json.has("rule")) { - JsonArray array = json.getAsJsonArray("rule"); + JsonArray array = getJArray(json, "rule"); for (int i = 0; i < array.size(); i++) { res.getRule().add(parseStructureMapGroupRuleComponent(array.get(i).getAsJsonObject())); } @@ -26523,25 +27299,25 @@ public class JsonParser extends JsonParserBase { if (json.has("_name")) parseElementProperties(getJObject(json, "_name"), res.getNameElement()); if (json.has("source")) { - JsonArray array = json.getAsJsonArray("source"); + JsonArray array = getJArray(json, "source"); for (int i = 0; i < array.size(); i++) { res.getSource().add(parseStructureMapGroupRuleSourceComponent(array.get(i).getAsJsonObject())); } }; if (json.has("target")) { - JsonArray array = json.getAsJsonArray("target"); + JsonArray array = getJArray(json, "target"); for (int i = 0; i < array.size(); i++) { res.getTarget().add(parseStructureMapGroupRuleTargetComponent(array.get(i).getAsJsonObject())); } }; if (json.has("rule")) { - JsonArray array = json.getAsJsonArray("rule"); + JsonArray array = getJArray(json, "rule"); for (int i = 0; i < array.size(); i++) { res.getRule().add(parseStructureMapGroupRuleComponent(array.get(i).getAsJsonObject())); } }; if (json.has("dependent")) { - JsonArray array = json.getAsJsonArray("dependent"); + JsonArray array = getJArray(json, "dependent"); for (int i = 0; i < array.size(); i++) { res.getDependent().add(parseStructureMapGroupRuleDependentComponent(array.get(i).getAsJsonObject())); } @@ -26617,10 +27393,6 @@ public class JsonParser extends JsonParserBase { res.setContextElement(parseId(json.get("context").getAsString())); if (json.has("_context")) parseElementProperties(getJObject(json, "_context"), res.getContextElement()); - if (json.has("contextType")) - res.setContextTypeElement(parseEnumeration(json.get("contextType").getAsString(), StructureMap.StructureMapContextType.NULL, new StructureMap.StructureMapContextTypeEnumFactory())); - if (json.has("_contextType")) - parseElementProperties(getJObject(json, "_contextType"), res.getContextTypeElement()); if (json.has("element")) res.setElementElement(parseString(json.get("element").getAsString())); if (json.has("_element")) @@ -26630,7 +27402,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_variable")) parseElementProperties(getJObject(json, "_variable"), res.getVariableElement()); if (json.has("listMode")) { - JsonArray array = json.getAsJsonArray("listMode"); + JsonArray array = getJArray(json, "listMode"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getListMode().add(new Enumeration(new StructureMap.StructureMapTargetListModeEnumFactory(), StructureMap.StructureMapTargetListMode.NULL)); @@ -26640,7 +27412,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_listMode")) { - JsonArray array = json.getAsJsonArray("_listMode"); + JsonArray array = getJArray(json, "_listMode"); for (int i = 0; i < array.size(); i++) { if (i == res.getListMode().size()) res.getListMode().add(parseEnumeration(null, StructureMap.StructureMapTargetListMode.NULL, new StructureMap.StructureMapTargetListModeEnumFactory())); @@ -26657,7 +27429,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_transform")) parseElementProperties(getJObject(json, "_transform"), res.getTransformElement()); if (json.has("parameter")) { - JsonArray array = json.getAsJsonArray("parameter"); + JsonArray array = getJArray(json, "parameter"); for (int i = 0; i < array.size(); i++) { res.getParameter().add(parseStructureMapGroupRuleTargetParameterComponent(array.get(i).getAsJsonObject())); } @@ -26690,7 +27462,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_name")) parseElementProperties(getJObject(json, "_name"), res.getNameElement()); if (json.has("variable")) { - JsonArray array = json.getAsJsonArray("variable"); + JsonArray array = getJArray(json, "variable"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getVariable().add(new StringType()); @@ -26700,7 +27472,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_variable")) { - JsonArray array = json.getAsJsonArray("_variable"); + JsonArray array = getJArray(json, "_variable"); for (int i = 0; i < array.size(); i++) { if (i == res.getVariable().size()) res.getVariable().add(parseString(null)); @@ -26719,7 +27491,7 @@ public class JsonParser extends JsonParserBase { protected void parseSubscriptionProperties(JsonObject json, Subscription res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -26733,9 +27505,11 @@ public class JsonParser extends JsonParserBase { if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("topic")) - res.setTopic(parseReference(getJObject(json, "topic"))); + res.setTopicElement(parseCanonical(json.get("topic").getAsString())); + if (json.has("_topic")) + parseElementProperties(getJObject(json, "_topic"), res.getTopicElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactPoint(array.get(i).getAsJsonObject())); } @@ -26749,7 +27523,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_reason")) parseElementProperties(getJObject(json, "_reason"), res.getReasonElement()); if (json.has("filterBy")) { - JsonArray array = json.getAsJsonArray("filterBy"); + JsonArray array = getJArray(json, "filterBy"); for (int i = 0; i < array.size(); i++) { res.getFilterBy().add(parseSubscriptionFilterByComponent(array.get(i).getAsJsonObject())); } @@ -26761,7 +27535,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_endpoint")) parseElementProperties(getJObject(json, "_endpoint"), res.getEndpointElement()); if (json.has("header")) { - JsonArray array = json.getAsJsonArray("header"); + JsonArray array = getJArray(json, "header"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getHeader().add(new StringType()); @@ -26771,7 +27545,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_header")) { - JsonArray array = json.getAsJsonArray("_header"); + JsonArray array = getJArray(json, "_header"); for (int i = 0; i < array.size(); i++) { if (i == res.getHeader().size()) res.getHeader().add(parseString(null)); @@ -26795,6 +27569,14 @@ public class JsonParser extends JsonParserBase { res.setContentElement(parseEnumeration(json.get("content").getAsString(), Subscription.SubscriptionPayloadContent.NULL, new Subscription.SubscriptionPayloadContentEnumFactory())); if (json.has("_content")) parseElementProperties(getJObject(json, "_content"), res.getContentElement()); + if (json.has("notificationUrlLocation")) + res.setNotificationUrlLocationElement(parseEnumeration(json.get("notificationUrlLocation").getAsString(), Subscription.SubscriptionUrlLocation.NULL, new Subscription.SubscriptionUrlLocationEnumFactory())); + if (json.has("_notificationUrlLocation")) + parseElementProperties(getJObject(json, "_notificationUrlLocation"), res.getNotificationUrlLocationElement()); + if (json.has("maxCount")) + res.setMaxCountElement(parsePositiveInt(json.get("maxCount").getAsString())); + if (json.has("_maxCount")) + parseElementProperties(getJObject(json, "_maxCount"), res.getMaxCountElement()); } protected Subscription.SubscriptionFilterByComponent parseSubscriptionFilterByComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -26805,6 +27587,10 @@ public class JsonParser extends JsonParserBase { protected void parseSubscriptionFilterByComponentProperties(JsonObject json, Subscription.SubscriptionFilterByComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); + if (json.has("resourceType")) + res.setResourceTypeElement(parseUri(json.get("resourceType").getAsString())); + if (json.has("_resourceType")) + parseElementProperties(getJObject(json, "_resourceType"), res.getResourceTypeElement()); if (json.has("searchParamName")) res.setSearchParamNameElement(parseString(json.get("searchParamName").getAsString())); if (json.has("_searchParamName")) @@ -26827,6 +27613,10 @@ public class JsonParser extends JsonParserBase { protected void parseSubscriptionStatusProperties(JsonObject json, SubscriptionStatus res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); + if (json.has("status")) + res.setStatusElement(parseEnumeration(json.get("status").getAsString(), Enumerations.SubscriptionState.NULL, new Enumerations.SubscriptionStateEnumFactory())); + if (json.has("_status")) + parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("type")) res.setTypeElement(parseEnumeration(json.get("type").getAsString(), SubscriptionStatus.SubscriptionNotificationType.NULL, new SubscriptionStatus.SubscriptionNotificationTypeEnumFactory())); if (json.has("_type")) @@ -26841,16 +27631,12 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_eventsInNotification"), res.getEventsInNotificationElement()); if (json.has("subscription")) res.setSubscription(parseReference(getJObject(json, "subscription"))); - if (json.has("status")) - res.setStatusElement(parseEnumeration(json.get("status").getAsString(), Enumerations.SubscriptionState.NULL, new Enumerations.SubscriptionStateEnumFactory())); - if (json.has("_status")) - parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("topic")) res.setTopicElement(parseCanonical(json.get("topic").getAsString())); if (json.has("_topic")) parseElementProperties(getJObject(json, "_topic"), res.getTopicElement()); if (json.has("error")) { - JsonArray array = json.getAsJsonArray("error"); + JsonArray array = getJArray(json, "error"); for (int i = 0; i < array.size(); i++) { res.getError().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -26870,7 +27656,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -26884,7 +27670,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_title")) parseElementProperties(getJObject(json, "_title"), res.getTitleElement()); if (json.has("derivedFrom")) { - JsonArray array = json.getAsJsonArray("derivedFrom"); + JsonArray array = getJArray(json, "derivedFrom"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDerivedFrom().add(new CanonicalType()); @@ -26894,7 +27680,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_derivedFrom")) { - JsonArray array = json.getAsJsonArray("_derivedFrom"); + JsonArray array = getJArray(json, "_derivedFrom"); for (int i = 0; i < array.size(); i++) { if (i == res.getDerivedFrom().size()) res.getDerivedFrom().add(parseCanonical(null)); @@ -26917,7 +27703,7 @@ public class JsonParser extends JsonParserBase { if (json.has("publisher")) res.setPublisher(parseReference(getJObject(json, "publisher"))); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -26927,13 +27713,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -26956,12 +27742,10 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_lastReviewDate"), res.getLastReviewDateElement()); if (json.has("effectivePeriod")) res.setEffectivePeriod(parsePeriod(getJObject(json, "effectivePeriod"))); - if (json.has("resourceTrigger")) - res.setResourceTrigger(parseSubscriptionTopicResourceTriggerComponent(getJObject(json, "resourceTrigger"))); - if (json.has("canFilterBy")) { - JsonArray array = json.getAsJsonArray("canFilterBy"); + if (json.has("resourceTrigger")) { + JsonArray array = getJArray(json, "resourceTrigger"); for (int i = 0; i < array.size(); i++) { - res.getCanFilterBy().add(parseSubscriptionTopicCanFilterByComponent(array.get(i).getAsJsonObject())); + res.getResourceTrigger().add(parseSubscriptionTopicResourceTriggerComponent(array.get(i).getAsJsonObject())); } }; } @@ -26978,27 +27762,12 @@ public class JsonParser extends JsonParserBase { res.setDescriptionElement(parseString(json.get("description").getAsString())); if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); - if (json.has("resourceType")) { - JsonArray array = json.getAsJsonArray("resourceType"); - for (int i = 0; i < array.size(); i++) { - if (array.get(i).isJsonNull()) { - res.getResourceType().add(new CodeType()); - } else {; - res.getResourceType().add(parseCode(array.get(i).getAsString())); - } - } - }; - if (json.has("_resourceType")) { - JsonArray array = json.getAsJsonArray("_resourceType"); - for (int i = 0; i < array.size(); i++) { - if (i == res.getResourceType().size()) - res.getResourceType().add(parseCode(null)); - if (array.get(i) instanceof JsonObject) - parseElementProperties(array.get(i).getAsJsonObject(), res.getResourceType().get(i)); - } - }; + if (json.has("resourceType")) + res.setResourceTypeElement(parseUri(json.get("resourceType").getAsString())); + if (json.has("_resourceType")) + parseElementProperties(getJObject(json, "_resourceType"), res.getResourceTypeElement()); if (json.has("methodCriteria")) { - JsonArray array = json.getAsJsonArray("methodCriteria"); + JsonArray array = getJArray(json, "methodCriteria"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getMethodCriteria().add(new Enumeration(new SubscriptionTopic.InteractionTriggerEnumFactory(), SubscriptionTopic.InteractionTrigger.NULL)); @@ -27008,7 +27777,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_methodCriteria")) { - JsonArray array = json.getAsJsonArray("_methodCriteria"); + JsonArray array = getJArray(json, "_methodCriteria"); for (int i = 0; i < array.size(); i++) { if (i == res.getMethodCriteria().size()) res.getMethodCriteria().add(parseEnumeration(null, SubscriptionTopic.InteractionTrigger.NULL, new SubscriptionTopic.InteractionTriggerEnumFactory())); @@ -27019,7 +27788,7 @@ public class JsonParser extends JsonParserBase { if (json.has("queryCriteria")) res.setQueryCriteria(parseSubscriptionTopicResourceTriggerQueryCriteriaComponent(getJObject(json, "queryCriteria"))); if (json.has("fhirPathCriteria")) { - JsonArray array = json.getAsJsonArray("fhirPathCriteria"); + JsonArray array = getJArray(json, "fhirPathCriteria"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getFhirPathCriteria().add(new StringType()); @@ -27029,7 +27798,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_fhirPathCriteria")) { - JsonArray array = json.getAsJsonArray("_fhirPathCriteria"); + JsonArray array = getJArray(json, "_fhirPathCriteria"); for (int i = 0; i < array.size(); i++) { if (i == res.getFhirPathCriteria().size()) res.getFhirPathCriteria().add(parseString(null)); @@ -27037,6 +27806,12 @@ public class JsonParser extends JsonParserBase { parseElementProperties(array.get(i).getAsJsonObject(), res.getFhirPathCriteria().get(i)); } }; + if (json.has("canFilterBy")) { + JsonArray array = getJArray(json, "canFilterBy"); + for (int i = 0; i < array.size(); i++) { + res.getCanFilterBy().add(parseSubscriptionTopicResourceTriggerCanFilterByComponent(array.get(i).getAsJsonObject())); + } + }; } protected SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent parseSubscriptionTopicResourceTriggerQueryCriteriaComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -27051,30 +27826,38 @@ public class JsonParser extends JsonParserBase { res.setPreviousElement(parseString(json.get("previous").getAsString())); if (json.has("_previous")) parseElementProperties(getJObject(json, "_previous"), res.getPreviousElement()); + if (json.has("resultForCreate")) + res.setResultForCreateElement(parseEnumeration(json.get("resultForCreate").getAsString(), SubscriptionTopic.CriteriaNotExistsBehavior.NULL, new SubscriptionTopic.CriteriaNotExistsBehaviorEnumFactory())); + if (json.has("_resultForCreate")) + parseElementProperties(getJObject(json, "_resultForCreate"), res.getResultForCreateElement()); if (json.has("current")) res.setCurrentElement(parseString(json.get("current").getAsString())); if (json.has("_current")) parseElementProperties(getJObject(json, "_current"), res.getCurrentElement()); + if (json.has("resultForDelete")) + res.setResultForDeleteElement(parseEnumeration(json.get("resultForDelete").getAsString(), SubscriptionTopic.CriteriaNotExistsBehavior.NULL, new SubscriptionTopic.CriteriaNotExistsBehaviorEnumFactory())); + if (json.has("_resultForDelete")) + parseElementProperties(getJObject(json, "_resultForDelete"), res.getResultForDeleteElement()); if (json.has("requireBoth")) res.setRequireBothElement(parseBoolean(json.get("requireBoth").getAsBoolean())); if (json.has("_requireBoth")) parseElementProperties(getJObject(json, "_requireBoth"), res.getRequireBothElement()); } - protected SubscriptionTopic.SubscriptionTopicCanFilterByComponent parseSubscriptionTopicCanFilterByComponent(JsonObject json) throws IOException, FHIRFormatError { - SubscriptionTopic.SubscriptionTopicCanFilterByComponent res = new SubscriptionTopic.SubscriptionTopicCanFilterByComponent(); - parseSubscriptionTopicCanFilterByComponentProperties(json, res); + protected SubscriptionTopic.SubscriptionTopicResourceTriggerCanFilterByComponent parseSubscriptionTopicResourceTriggerCanFilterByComponent(JsonObject json) throws IOException, FHIRFormatError { + SubscriptionTopic.SubscriptionTopicResourceTriggerCanFilterByComponent res = new SubscriptionTopic.SubscriptionTopicResourceTriggerCanFilterByComponent(); + parseSubscriptionTopicResourceTriggerCanFilterByComponentProperties(json, res); return res; } - protected void parseSubscriptionTopicCanFilterByComponentProperties(JsonObject json, SubscriptionTopic.SubscriptionTopicCanFilterByComponent res) throws IOException, FHIRFormatError { + protected void parseSubscriptionTopicResourceTriggerCanFilterByComponentProperties(JsonObject json, SubscriptionTopic.SubscriptionTopicResourceTriggerCanFilterByComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("searchParamName")) res.setSearchParamNameElement(parseString(json.get("searchParamName").getAsString())); if (json.has("_searchParamName")) parseElementProperties(getJObject(json, "_searchParamName"), res.getSearchParamNameElement()); if (json.has("searchModifier")) { - JsonArray array = json.getAsJsonArray("searchModifier"); + JsonArray array = getJArray(json, "searchModifier"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getSearchModifier().add(new Enumeration(new Enumerations.SubscriptionSearchModifierEnumFactory(), Enumerations.SubscriptionSearchModifier.NULL)); @@ -27084,7 +27867,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_searchModifier")) { - JsonArray array = json.getAsJsonArray("_searchModifier"); + JsonArray array = getJArray(json, "_searchModifier"); for (int i = 0; i < array.size(); i++) { if (i == res.getSearchModifier().size()) res.getSearchModifier().add(parseEnumeration(null, Enumerations.SubscriptionSearchModifier.NULL, new Enumerations.SubscriptionSearchModifierEnumFactory())); @@ -27107,57 +27890,43 @@ public class JsonParser extends JsonParserBase { protected void parseSubstanceProperties(JsonObject json, Substance res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; + if (json.has("instance")) + res.setInstanceElement(parseBoolean(json.get("instance").getAsBoolean())); + if (json.has("_instance")) + parseElementProperties(getJObject(json, "_instance"), res.getInstanceElement()); if (json.has("status")) res.setStatusElement(parseEnumeration(json.get("status").getAsString(), Substance.FHIRSubstanceStatus.NULL, new Substance.FHIRSubstanceStatusEnumFactory())); if (json.has("_status")) parseElementProperties(getJObject(json, "_status"), res.getStatusElement()); if (json.has("category")) { - JsonArray array = json.getAsJsonArray("category"); + JsonArray array = getJArray(json, "category"); for (int i = 0; i < array.size(); i++) { res.getCategory().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("code")) - res.setCode(parseCodeableConcept(getJObject(json, "code"))); + res.setCode(parseCodeableReference(getJObject(json, "code"))); if (json.has("description")) res.setDescriptionElement(parseString(json.get("description").getAsString())); if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); - if (json.has("instance")) { - JsonArray array = json.getAsJsonArray("instance"); - for (int i = 0; i < array.size(); i++) { - res.getInstance().add(parseSubstanceInstanceComponent(array.get(i).getAsJsonObject())); - } - }; - if (json.has("ingredient")) { - JsonArray array = json.getAsJsonArray("ingredient"); - for (int i = 0; i < array.size(); i++) { - res.getIngredient().add(parseSubstanceIngredientComponent(array.get(i).getAsJsonObject())); - } - }; - } - - protected Substance.SubstanceInstanceComponent parseSubstanceInstanceComponent(JsonObject json) throws IOException, FHIRFormatError { - Substance.SubstanceInstanceComponent res = new Substance.SubstanceInstanceComponent(); - parseSubstanceInstanceComponentProperties(json, res); - return res; - } - - protected void parseSubstanceInstanceComponentProperties(JsonObject json, Substance.SubstanceInstanceComponent res) throws IOException, FHIRFormatError { - parseBackboneElementProperties(json, res); - if (json.has("identifier")) - res.setIdentifier(parseIdentifier(getJObject(json, "identifier"))); if (json.has("expiry")) res.setExpiryElement(parseDateTime(json.get("expiry").getAsString())); if (json.has("_expiry")) parseElementProperties(getJObject(json, "_expiry"), res.getExpiryElement()); if (json.has("quantity")) res.setQuantity(parseQuantity(getJObject(json, "quantity"))); + if (json.has("ingredient")) { + JsonArray array = getJArray(json, "ingredient"); + for (int i = 0; i < array.size(); i++) { + res.getIngredient().add(parseSubstanceIngredientComponent(array.get(i).getAsJsonObject())); + } + }; } protected Substance.SubstanceIngredientComponent parseSubstanceIngredientComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -27194,49 +27963,55 @@ public class JsonParser extends JsonParserBase { if (json.has("category")) res.setCategory(parseCodeableConcept(getJObject(json, "category"))); if (json.has("classification")) { - JsonArray array = json.getAsJsonArray("classification"); + JsonArray array = getJArray(json, "classification"); for (int i = 0; i < array.size(); i++) { res.getClassification().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("domain")) res.setDomain(parseCodeableConcept(getJObject(json, "domain"))); + if (json.has("grade")) { + JsonArray array = getJArray(json, "grade"); + for (int i = 0; i < array.size(); i++) { + res.getGrade().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; if (json.has("description")) res.setDescriptionElement(parseMarkdown(json.get("description").getAsString())); if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("source")) { - JsonArray array = json.getAsJsonArray("source"); + JsonArray array = getJArray(json, "source"); for (int i = 0; i < array.size(); i++) { res.getSource().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("manufacturer")) { - JsonArray array = json.getAsJsonArray("manufacturer"); + JsonArray array = getJArray(json, "manufacturer"); for (int i = 0; i < array.size(); i++) { res.getManufacturer().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("supplier")) { - JsonArray array = json.getAsJsonArray("supplier"); + JsonArray array = getJArray(json, "supplier"); for (int i = 0; i < array.size(); i++) { res.getSupplier().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("moiety")) { - JsonArray array = json.getAsJsonArray("moiety"); + JsonArray array = getJArray(json, "moiety"); for (int i = 0; i < array.size(); i++) { res.getMoiety().add(parseSubstanceDefinitionMoietyComponent(array.get(i).getAsJsonObject())); } }; if (json.has("property")) { - JsonArray array = json.getAsJsonArray("property"); + JsonArray array = getJArray(json, "property"); for (int i = 0; i < array.size(); i++) { res.getProperty().add(parseSubstanceDefinitionPropertyComponent(array.get(i).getAsJsonObject())); } @@ -27246,25 +28021,25 @@ public class JsonParser extends JsonParserBase { if (json.has("structure")) res.setStructure(parseSubstanceDefinitionStructureComponent(getJObject(json, "structure"))); if (json.has("code")) { - JsonArray array = json.getAsJsonArray("code"); + JsonArray array = getJArray(json, "code"); for (int i = 0; i < array.size(); i++) { res.getCode().add(parseSubstanceDefinitionCodeComponent(array.get(i).getAsJsonObject())); } }; if (json.has("name")) { - JsonArray array = json.getAsJsonArray("name"); + JsonArray array = getJArray(json, "name"); for (int i = 0; i < array.size(); i++) { res.getName().add(parseSubstanceDefinitionNameComponent(array.get(i).getAsJsonObject())); } }; if (json.has("molecularWeight")) { - JsonArray array = json.getAsJsonArray("molecularWeight"); + JsonArray array = getJArray(json, "molecularWeight"); for (int i = 0; i < array.size(); i++) { res.getMolecularWeight().add(parseSubstanceDefinitionStructureIsotopeMolecularWeightComponent(array.get(i).getAsJsonObject())); } }; if (json.has("relationship")) { - JsonArray array = json.getAsJsonArray("relationship"); + JsonArray array = getJArray(json, "relationship"); for (int i = 0; i < array.size(); i++) { res.getRelationship().add(parseSubstanceDefinitionRelationshipComponent(array.get(i).getAsJsonObject())); } @@ -27276,7 +28051,7 @@ public class JsonParser extends JsonParserBase { if (json.has("protein")) res.setProtein(parseReference(getJObject(json, "protein"))); if (json.has("sourceMaterial")) - res.setSourceMaterial(parseReference(getJObject(json, "sourceMaterial"))); + res.setSourceMaterial(parseSubstanceDefinitionSourceMaterialComponent(getJObject(json, "sourceMaterial"))); } protected SubstanceDefinition.SubstanceDefinitionMoietyComponent parseSubstanceDefinitionMoietyComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -27334,7 +28109,7 @@ public class JsonParser extends JsonParserBase { if (json.has("referenceRange")) res.setReferenceRange(parseRange(getJObject(json, "referenceRange"))); if (json.has("source")) { - JsonArray array = json.getAsJsonArray("source"); + JsonArray array = getJArray(json, "source"); for (int i = 0; i < array.size(); i++) { res.getSource().add(parseReference(array.get(i).getAsJsonObject())); } @@ -27362,7 +28137,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_molecularFormulaByMoiety")) parseElementProperties(getJObject(json, "_molecularFormulaByMoiety"), res.getMolecularFormulaByMoietyElement()); if (json.has("isotope")) { - JsonArray array = json.getAsJsonArray("isotope"); + JsonArray array = getJArray(json, "isotope"); for (int i = 0; i < array.size(); i++) { res.getIsotope().add(parseSubstanceDefinitionStructureIsotopeComponent(array.get(i).getAsJsonObject())); } @@ -27370,19 +28145,19 @@ public class JsonParser extends JsonParserBase { if (json.has("molecularWeight")) res.setMolecularWeight(parseSubstanceDefinitionStructureIsotopeMolecularWeightComponent(getJObject(json, "molecularWeight"))); if (json.has("technique")) { - JsonArray array = json.getAsJsonArray("technique"); + JsonArray array = getJArray(json, "technique"); for (int i = 0; i < array.size(); i++) { res.getTechnique().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("sourceDocument")) { - JsonArray array = json.getAsJsonArray("sourceDocument"); + JsonArray array = getJArray(json, "sourceDocument"); for (int i = 0; i < array.size(); i++) { res.getSourceDocument().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("representation")) { - JsonArray array = json.getAsJsonArray("representation"); + JsonArray array = getJArray(json, "representation"); for (int i = 0; i < array.size(); i++) { res.getRepresentation().add(parseSubstanceDefinitionStructureRepresentationComponent(array.get(i).getAsJsonObject())); } @@ -27462,13 +28237,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_statusDate")) parseElementProperties(getJObject(json, "_statusDate"), res.getStatusDateElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("source")) { - JsonArray array = json.getAsJsonArray("source"); + JsonArray array = getJArray(json, "source"); for (int i = 0; i < array.size(); i++) { res.getSource().add(parseReference(array.get(i).getAsJsonObject())); } @@ -27496,43 +28271,43 @@ public class JsonParser extends JsonParserBase { if (json.has("_preferred")) parseElementProperties(getJObject(json, "_preferred"), res.getPreferredElement()); if (json.has("language")) { - JsonArray array = json.getAsJsonArray("language"); + JsonArray array = getJArray(json, "language"); for (int i = 0; i < array.size(); i++) { res.getLanguage().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("domain")) { - JsonArray array = json.getAsJsonArray("domain"); + JsonArray array = getJArray(json, "domain"); for (int i = 0; i < array.size(); i++) { res.getDomain().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("synonym")) { - JsonArray array = json.getAsJsonArray("synonym"); + JsonArray array = getJArray(json, "synonym"); for (int i = 0; i < array.size(); i++) { res.getSynonym().add(parseSubstanceDefinitionNameComponent(array.get(i).getAsJsonObject())); } }; if (json.has("translation")) { - JsonArray array = json.getAsJsonArray("translation"); + JsonArray array = getJArray(json, "translation"); for (int i = 0; i < array.size(); i++) { res.getTranslation().add(parseSubstanceDefinitionNameComponent(array.get(i).getAsJsonObject())); } }; if (json.has("official")) { - JsonArray array = json.getAsJsonArray("official"); + JsonArray array = getJArray(json, "official"); for (int i = 0; i < array.size(); i++) { res.getOfficial().add(parseSubstanceDefinitionNameOfficialComponent(array.get(i).getAsJsonObject())); } }; if (json.has("source")) { - JsonArray array = json.getAsJsonArray("source"); + JsonArray array = getJArray(json, "source"); for (int i = 0; i < array.size(); i++) { res.getSource().add(parseReference(array.get(i).getAsJsonObject())); } @@ -27582,13 +28357,37 @@ public class JsonParser extends JsonParserBase { if (json.has("amountType")) res.setAmountType(parseCodeableConcept(getJObject(json, "amountType"))); if (json.has("source")) { - JsonArray array = json.getAsJsonArray("source"); + JsonArray array = getJArray(json, "source"); for (int i = 0; i < array.size(); i++) { res.getSource().add(parseReference(array.get(i).getAsJsonObject())); } }; } + protected SubstanceDefinition.SubstanceDefinitionSourceMaterialComponent parseSubstanceDefinitionSourceMaterialComponent(JsonObject json) throws IOException, FHIRFormatError { + SubstanceDefinition.SubstanceDefinitionSourceMaterialComponent res = new SubstanceDefinition.SubstanceDefinitionSourceMaterialComponent(); + parseSubstanceDefinitionSourceMaterialComponentProperties(json, res); + return res; + } + + protected void parseSubstanceDefinitionSourceMaterialComponentProperties(JsonObject json, SubstanceDefinition.SubstanceDefinitionSourceMaterialComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("type")) + res.setType(parseCodeableConcept(getJObject(json, "type"))); + if (json.has("genus")) + res.setGenus(parseCodeableConcept(getJObject(json, "genus"))); + if (json.has("species")) + res.setSpecies(parseCodeableConcept(getJObject(json, "species"))); + if (json.has("part")) + res.setPart(parseCodeableConcept(getJObject(json, "part"))); + if (json.has("countryOfOrigin")) { + JsonArray array = getJArray(json, "countryOfOrigin"); + for (int i = 0; i < array.size(); i++) { + res.getCountryOfOrigin().add(parseCodeableConcept(array.get(i).getAsJsonObject())); + } + }; + } + protected SubstanceNucleicAcid parseSubstanceNucleicAcid(JsonObject json) throws IOException, FHIRFormatError { SubstanceNucleicAcid res = new SubstanceNucleicAcid(); parseSubstanceNucleicAcidProperties(json, res); @@ -27610,7 +28409,7 @@ public class JsonParser extends JsonParserBase { if (json.has("oligoNucleotideType")) res.setOligoNucleotideType(parseCodeableConcept(getJObject(json, "oligoNucleotideType"))); if (json.has("subunit")) { - JsonArray array = json.getAsJsonArray("subunit"); + JsonArray array = getJArray(json, "subunit"); for (int i = 0; i < array.size(); i++) { res.getSubunit().add(parseSubstanceNucleicAcidSubunitComponent(array.get(i).getAsJsonObject())); } @@ -27644,13 +28443,13 @@ public class JsonParser extends JsonParserBase { if (json.has("threePrime")) res.setThreePrime(parseCodeableConcept(getJObject(json, "threePrime"))); if (json.has("linkage")) { - JsonArray array = json.getAsJsonArray("linkage"); + JsonArray array = getJArray(json, "linkage"); for (int i = 0; i < array.size(); i++) { res.getLinkage().add(parseSubstanceNucleicAcidSubunitLinkageComponent(array.get(i).getAsJsonObject())); } }; if (json.has("sugar")) { - JsonArray array = json.getAsJsonArray("sugar"); + JsonArray array = getJArray(json, "sugar"); for (int i = 0; i < array.size(); i++) { res.getSugar().add(parseSubstanceNucleicAcidSubunitSugarComponent(array.get(i).getAsJsonObject())); } @@ -27716,7 +28515,7 @@ public class JsonParser extends JsonParserBase { if (json.has("geometry")) res.setGeometry(parseCodeableConcept(getJObject(json, "geometry"))); if (json.has("copolymerConnectivity")) { - JsonArray array = json.getAsJsonArray("copolymerConnectivity"); + JsonArray array = getJArray(json, "copolymerConnectivity"); for (int i = 0; i < array.size(); i++) { res.getCopolymerConnectivity().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -27726,13 +28525,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_modification")) parseElementProperties(getJObject(json, "_modification"), res.getModificationElement()); if (json.has("monomerSet")) { - JsonArray array = json.getAsJsonArray("monomerSet"); + JsonArray array = getJArray(json, "monomerSet"); for (int i = 0; i < array.size(); i++) { res.getMonomerSet().add(parseSubstancePolymerMonomerSetComponent(array.get(i).getAsJsonObject())); } }; if (json.has("repeat")) { - JsonArray array = json.getAsJsonArray("repeat"); + JsonArray array = getJArray(json, "repeat"); for (int i = 0; i < array.size(); i++) { res.getRepeat().add(parseSubstancePolymerRepeatComponent(array.get(i).getAsJsonObject())); } @@ -27750,7 +28549,7 @@ public class JsonParser extends JsonParserBase { if (json.has("ratioType")) res.setRatioType(parseCodeableConcept(getJObject(json, "ratioType"))); if (json.has("startingMaterial")) { - JsonArray array = json.getAsJsonArray("startingMaterial"); + JsonArray array = getJArray(json, "startingMaterial"); for (int i = 0; i < array.size(); i++) { res.getStartingMaterial().add(parseSubstancePolymerMonomerSetStartingMaterialComponent(array.get(i).getAsJsonObject())); } @@ -27792,7 +28591,7 @@ public class JsonParser extends JsonParserBase { if (json.has("repeatUnitAmountType")) res.setRepeatUnitAmountType(parseCodeableConcept(getJObject(json, "repeatUnitAmountType"))); if (json.has("repeatUnit")) { - JsonArray array = json.getAsJsonArray("repeatUnit"); + JsonArray array = getJArray(json, "repeatUnit"); for (int i = 0; i < array.size(); i++) { res.getRepeatUnit().add(parseSubstancePolymerRepeatRepeatUnitComponent(array.get(i).getAsJsonObject())); } @@ -27818,13 +28617,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_amount")) parseElementProperties(getJObject(json, "_amount"), res.getAmountElement()); if (json.has("degreeOfPolymerisation")) { - JsonArray array = json.getAsJsonArray("degreeOfPolymerisation"); + JsonArray array = getJArray(json, "degreeOfPolymerisation"); for (int i = 0; i < array.size(); i++) { res.getDegreeOfPolymerisation().add(parseSubstancePolymerRepeatRepeatUnitDegreeOfPolymerisationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("structuralRepresentation")) { - JsonArray array = json.getAsJsonArray("structuralRepresentation"); + JsonArray array = getJArray(json, "structuralRepresentation"); for (int i = 0; i < array.size(); i++) { res.getStructuralRepresentation().add(parseSubstancePolymerRepeatRepeatUnitStructuralRepresentationComponent(array.get(i).getAsJsonObject())); } @@ -27890,7 +28689,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_numberOfSubunits")) parseElementProperties(getJObject(json, "_numberOfSubunits"), res.getNumberOfSubunitsElement()); if (json.has("disulfideLinkage")) { - JsonArray array = json.getAsJsonArray("disulfideLinkage"); + JsonArray array = getJArray(json, "disulfideLinkage"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getDisulfideLinkage().add(new StringType()); @@ -27900,7 +28699,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_disulfideLinkage")) { - JsonArray array = json.getAsJsonArray("_disulfideLinkage"); + JsonArray array = getJArray(json, "_disulfideLinkage"); for (int i = 0; i < array.size(); i++) { if (i == res.getDisulfideLinkage().size()) res.getDisulfideLinkage().add(parseString(null)); @@ -27909,7 +28708,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("subunit")) { - JsonArray array = json.getAsJsonArray("subunit"); + JsonArray array = getJArray(json, "subunit"); for (int i = 0; i < array.size(); i++) { res.getSubunit().add(parseSubstanceProteinSubunitComponent(array.get(i).getAsJsonObject())); } @@ -27965,19 +28764,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_comment")) parseElementProperties(getJObject(json, "_comment"), res.getCommentElement()); if (json.has("gene")) { - JsonArray array = json.getAsJsonArray("gene"); + JsonArray array = getJArray(json, "gene"); for (int i = 0; i < array.size(); i++) { res.getGene().add(parseSubstanceReferenceInformationGeneComponent(array.get(i).getAsJsonObject())); } }; if (json.has("geneElement")) { - JsonArray array = json.getAsJsonArray("geneElement"); + JsonArray array = getJArray(json, "geneElement"); for (int i = 0; i < array.size(); i++) { res.getGeneElement().add(parseSubstanceReferenceInformationGeneElementComponent(array.get(i).getAsJsonObject())); } }; if (json.has("target")) { - JsonArray array = json.getAsJsonArray("target"); + JsonArray array = getJArray(json, "target"); for (int i = 0; i < array.size(); i++) { res.getTarget().add(parseSubstanceReferenceInformationTargetComponent(array.get(i).getAsJsonObject())); } @@ -27997,7 +28796,7 @@ public class JsonParser extends JsonParserBase { if (json.has("gene")) res.setGene(parseCodeableConcept(getJObject(json, "gene"))); if (json.has("source")) { - JsonArray array = json.getAsJsonArray("source"); + JsonArray array = getJArray(json, "source"); for (int i = 0; i < array.size(); i++) { res.getSource().add(parseReference(array.get(i).getAsJsonObject())); } @@ -28017,7 +28816,7 @@ public class JsonParser extends JsonParserBase { if (json.has("element")) res.setElement(parseIdentifier(getJObject(json, "element"))); if (json.has("source")) { - JsonArray array = json.getAsJsonArray("source"); + JsonArray array = getJArray(json, "source"); for (int i = 0; i < array.size(); i++) { res.getSource().add(parseReference(array.get(i).getAsJsonObject())); } @@ -28048,7 +28847,7 @@ public class JsonParser extends JsonParserBase { if (json.has("amountType")) res.setAmountType(parseCodeableConcept(getJObject(json, "amountType"))); if (json.has("source")) { - JsonArray array = json.getAsJsonArray("source"); + JsonArray array = getJArray(json, "source"); for (int i = 0; i < array.size(); i++) { res.getSource().add(parseReference(array.get(i).getAsJsonObject())); } @@ -28076,13 +28875,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_organismName")) parseElementProperties(getJObject(json, "_organismName"), res.getOrganismNameElement()); if (json.has("parentSubstanceId")) { - JsonArray array = json.getAsJsonArray("parentSubstanceId"); + JsonArray array = getJArray(json, "parentSubstanceId"); for (int i = 0; i < array.size(); i++) { res.getParentSubstanceId().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("parentSubstanceName")) { - JsonArray array = json.getAsJsonArray("parentSubstanceName"); + JsonArray array = getJArray(json, "parentSubstanceName"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getParentSubstanceName().add(new StringType()); @@ -28092,7 +28891,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_parentSubstanceName")) { - JsonArray array = json.getAsJsonArray("_parentSubstanceName"); + JsonArray array = getJArray(json, "_parentSubstanceName"); for (int i = 0; i < array.size(); i++) { if (i == res.getParentSubstanceName().size()) res.getParentSubstanceName().add(parseString(null)); @@ -28101,13 +28900,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("countryOfOrigin")) { - JsonArray array = json.getAsJsonArray("countryOfOrigin"); + JsonArray array = getJArray(json, "countryOfOrigin"); for (int i = 0; i < array.size(); i++) { res.getCountryOfOrigin().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("geographicalLocation")) { - JsonArray array = json.getAsJsonArray("geographicalLocation"); + JsonArray array = getJArray(json, "geographicalLocation"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getGeographicalLocation().add(new StringType()); @@ -28117,7 +28916,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_geographicalLocation")) { - JsonArray array = json.getAsJsonArray("_geographicalLocation"); + JsonArray array = getJArray(json, "_geographicalLocation"); for (int i = 0; i < array.size(); i++) { if (i == res.getGeographicalLocation().size()) res.getGeographicalLocation().add(parseString(null)); @@ -28128,7 +28927,7 @@ public class JsonParser extends JsonParserBase { if (json.has("developmentStage")) res.setDevelopmentStage(parseCodeableConcept(getJObject(json, "developmentStage"))); if (json.has("fractionDescription")) { - JsonArray array = json.getAsJsonArray("fractionDescription"); + JsonArray array = getJArray(json, "fractionDescription"); for (int i = 0; i < array.size(); i++) { res.getFractionDescription().add(parseSubstanceSourceMaterialFractionDescriptionComponent(array.get(i).getAsJsonObject())); } @@ -28136,7 +28935,7 @@ public class JsonParser extends JsonParserBase { if (json.has("organism")) res.setOrganism(parseSubstanceSourceMaterialOrganismComponent(getJObject(json, "organism"))); if (json.has("partDescription")) { - JsonArray array = json.getAsJsonArray("partDescription"); + JsonArray array = getJArray(json, "partDescription"); for (int i = 0; i < array.size(); i++) { res.getPartDescription().add(parseSubstanceSourceMaterialPartDescriptionComponent(array.get(i).getAsJsonObject())); } @@ -28180,7 +28979,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_intraspecificDescription")) parseElementProperties(getJObject(json, "_intraspecificDescription"), res.getIntraspecificDescriptionElement()); if (json.has("author")) { - JsonArray array = json.getAsJsonArray("author"); + JsonArray array = getJArray(json, "author"); for (int i = 0; i < array.size(); i++) { res.getAuthor().add(parseSubstanceSourceMaterialOrganismAuthorComponent(array.get(i).getAsJsonObject())); } @@ -28276,19 +29075,19 @@ public class JsonParser extends JsonParserBase { protected void parseSupplyDeliveryProperties(JsonObject json, SupplyDelivery res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } }; if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("partOf")) { - JsonArray array = json.getAsJsonArray("partOf"); + JsonArray array = getJArray(json, "partOf"); for (int i = 0; i < array.size(); i++) { res.getPartOf().add(parseReference(array.get(i).getAsJsonObject())); } @@ -28311,7 +29110,7 @@ public class JsonParser extends JsonParserBase { if (json.has("destination")) res.setDestination(parseReference(getJObject(json, "destination"))); if (json.has("receiver")) { - JsonArray array = json.getAsJsonArray("receiver"); + JsonArray array = getJArray(json, "receiver"); for (int i = 0; i < array.size(); i++) { res.getReceiver().add(parseReference(array.get(i).getAsJsonObject())); } @@ -28342,7 +29141,7 @@ public class JsonParser extends JsonParserBase { protected void parseSupplyRequestProperties(JsonObject json, SupplyRequest res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -28362,7 +29161,7 @@ public class JsonParser extends JsonParserBase { if (json.has("quantity")) res.setQuantity(parseQuantity(getJObject(json, "quantity"))); if (json.has("parameter")) { - JsonArray array = json.getAsJsonArray("parameter"); + JsonArray array = getJArray(json, "parameter"); for (int i = 0; i < array.size(); i++) { res.getParameter().add(parseSupplyRequestParameterComponent(array.get(i).getAsJsonObject())); } @@ -28377,13 +29176,13 @@ public class JsonParser extends JsonParserBase { if (json.has("requester")) res.setRequester(parseReference(getJObject(json, "requester"))); if (json.has("supplier")) { - JsonArray array = json.getAsJsonArray("supplier"); + JsonArray array = getJArray(json, "supplier"); for (int i = 0; i < array.size(); i++) { res.getSupplier().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("reason")) { - JsonArray array = json.getAsJsonArray("reason"); + JsonArray array = getJArray(json, "reason"); for (int i = 0; i < array.size(); i++) { res.getReason().add(parseCodeableReference(array.get(i).getAsJsonObject())); } @@ -28418,7 +29217,7 @@ public class JsonParser extends JsonParserBase { protected void parseTaskProperties(JsonObject json, Task res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -28432,7 +29231,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_instantiatesUri")) parseElementProperties(getJObject(json, "_instantiatesUri"), res.getInstantiatesUriElement()); if (json.has("basedOn")) { - JsonArray array = json.getAsJsonArray("basedOn"); + JsonArray array = getJArray(json, "basedOn"); for (int i = 0; i < array.size(); i++) { res.getBasedOn().add(parseReference(array.get(i).getAsJsonObject())); } @@ -28440,7 +29239,7 @@ public class JsonParser extends JsonParserBase { if (json.has("groupIdentifier")) res.setGroupIdentifier(parseIdentifier(getJObject(json, "groupIdentifier"))); if (json.has("partOf")) { - JsonArray array = json.getAsJsonArray("partOf"); + JsonArray array = getJArray(json, "partOf"); for (int i = 0; i < array.size(); i++) { res.getPartOf().add(parseReference(array.get(i).getAsJsonObject())); } @@ -28486,7 +29285,7 @@ public class JsonParser extends JsonParserBase { if (json.has("requester")) res.setRequester(parseReference(getJObject(json, "requester"))); if (json.has("performerType")) { - JsonArray array = json.getAsJsonArray("performerType"); + JsonArray array = getJArray(json, "performerType"); for (int i = 0; i < array.size(); i++) { res.getPerformerType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -28500,19 +29299,19 @@ public class JsonParser extends JsonParserBase { if (json.has("reasonReference")) res.setReasonReference(parseReference(getJObject(json, "reasonReference"))); if (json.has("insurance")) { - JsonArray array = json.getAsJsonArray("insurance"); + JsonArray array = getJArray(json, "insurance"); for (int i = 0; i < array.size(); i++) { res.getInsurance().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } }; if (json.has("relevantHistory")) { - JsonArray array = json.getAsJsonArray("relevantHistory"); + JsonArray array = getJArray(json, "relevantHistory"); for (int i = 0; i < array.size(); i++) { res.getRelevantHistory().add(parseReference(array.get(i).getAsJsonObject())); } @@ -28520,13 +29319,13 @@ public class JsonParser extends JsonParserBase { if (json.has("restriction")) res.setRestriction(parseTaskRestrictionComponent(getJObject(json, "restriction"))); if (json.has("input")) { - JsonArray array = json.getAsJsonArray("input"); + JsonArray array = getJArray(json, "input"); for (int i = 0; i < array.size(); i++) { res.getInput().add(parseTaskParameterComponent(array.get(i).getAsJsonObject())); } }; if (json.has("output")) { - JsonArray array = json.getAsJsonArray("output"); + JsonArray array = getJArray(json, "output"); for (int i = 0; i < array.size(); i++) { res.getOutput().add(parseTaskOutputComponent(array.get(i).getAsJsonObject())); } @@ -28548,7 +29347,7 @@ public class JsonParser extends JsonParserBase { if (json.has("period")) res.setPeriod(parsePeriod(getJObject(json, "period"))); if (json.has("recipient")) { - JsonArray array = json.getAsJsonArray("recipient"); + JsonArray array = getJArray(json, "recipient"); for (int i = 0; i < array.size(); i++) { res.getRecipient().add(parseReference(array.get(i).getAsJsonObject())); } @@ -28598,7 +29397,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -28632,7 +29431,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -28642,13 +29441,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -28674,7 +29473,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_lockedDate")) parseElementProperties(getJObject(json, "_lockedDate"), res.getLockedDateElement()); if (json.has("codeSystem")) { - JsonArray array = json.getAsJsonArray("codeSystem"); + JsonArray array = getJArray(json, "codeSystem"); for (int i = 0; i < array.size(); i++) { res.getCodeSystem().add(parseTerminologyCapabilitiesCodeSystemComponent(array.get(i).getAsJsonObject())); } @@ -28742,7 +29541,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_uri")) parseElementProperties(getJObject(json, "_uri"), res.getUriElement()); if (json.has("version")) { - JsonArray array = json.getAsJsonArray("version"); + JsonArray array = getJArray(json, "version"); for (int i = 0; i < array.size(); i++) { res.getVersion().add(parseTerminologyCapabilitiesCodeSystemVersionComponent(array.get(i).getAsJsonObject())); } @@ -28774,7 +29573,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_compositional")) parseElementProperties(getJObject(json, "_compositional"), res.getCompositionalElement()); if (json.has("language")) { - JsonArray array = json.getAsJsonArray("language"); + JsonArray array = getJArray(json, "language"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getLanguage().add(new CodeType()); @@ -28784,7 +29583,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_language")) { - JsonArray array = json.getAsJsonArray("_language"); + JsonArray array = getJArray(json, "_language"); for (int i = 0; i < array.size(); i++) { if (i == res.getLanguage().size()) res.getLanguage().add(parseCode(null)); @@ -28793,13 +29592,13 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("filter")) { - JsonArray array = json.getAsJsonArray("filter"); + JsonArray array = getJArray(json, "filter"); for (int i = 0; i < array.size(); i++) { res.getFilter().add(parseTerminologyCapabilitiesCodeSystemVersionFilterComponent(array.get(i).getAsJsonObject())); } }; if (json.has("property")) { - JsonArray array = json.getAsJsonArray("property"); + JsonArray array = getJArray(json, "property"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getProperty().add(new CodeType()); @@ -28809,7 +29608,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_property")) { - JsonArray array = json.getAsJsonArray("_property"); + JsonArray array = getJArray(json, "_property"); for (int i = 0; i < array.size(); i++) { if (i == res.getProperty().size()) res.getProperty().add(parseCode(null)); @@ -28832,7 +29631,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_code")) parseElementProperties(getJObject(json, "_code"), res.getCodeElement()); if (json.has("op")) { - JsonArray array = json.getAsJsonArray("op"); + JsonArray array = getJArray(json, "op"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getOp().add(new CodeType()); @@ -28842,7 +29641,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_op")) { - JsonArray array = json.getAsJsonArray("_op"); + JsonArray array = getJArray(json, "_op"); for (int i = 0; i < array.size(); i++) { if (i == res.getOp().size()) res.getOp().add(parseCode(null)); @@ -28873,7 +29672,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_incomplete")) parseElementProperties(getJObject(json, "_incomplete"), res.getIncompleteElement()); if (json.has("parameter")) { - JsonArray array = json.getAsJsonArray("parameter"); + JsonArray array = getJArray(json, "parameter"); for (int i = 0; i < array.size(); i++) { res.getParameter().add(parseTerminologyCapabilitiesExpansionParameterComponent(array.get(i).getAsJsonObject())); } @@ -28981,7 +29780,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_issued")) parseElementProperties(getJObject(json, "_issued"), res.getIssuedElement()); if (json.has("participant")) { - JsonArray array = json.getAsJsonArray("participant"); + JsonArray array = getJArray(json, "participant"); for (int i = 0; i < array.size(); i++) { res.getParticipant().add(parseTestReportParticipantComponent(array.get(i).getAsJsonObject())); } @@ -28989,7 +29788,7 @@ public class JsonParser extends JsonParserBase { if (json.has("setup")) res.setSetup(parseTestReportSetupComponent(getJObject(json, "setup"))); if (json.has("test")) { - JsonArray array = json.getAsJsonArray("test"); + JsonArray array = getJArray(json, "test"); for (int i = 0; i < array.size(); i++) { res.getTest().add(parseTestReportTestComponent(array.get(i).getAsJsonObject())); } @@ -29029,7 +29828,7 @@ public class JsonParser extends JsonParserBase { protected void parseTestReportSetupComponentProperties(JsonObject json, TestReport.TestReportSetupComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("action")) { - JsonArray array = json.getAsJsonArray("action"); + JsonArray array = getJArray(json, "action"); for (int i = 0; i < array.size(); i++) { res.getAction().add(parseTestReportSetupActionComponent(array.get(i).getAsJsonObject())); } @@ -29111,7 +29910,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("action")) { - JsonArray array = json.getAsJsonArray("action"); + JsonArray array = getJArray(json, "action"); for (int i = 0; i < array.size(); i++) { res.getAction().add(parseTestReportTestActionComponent(array.get(i).getAsJsonObject())); } @@ -29141,7 +29940,7 @@ public class JsonParser extends JsonParserBase { protected void parseTestReportTeardownComponentProperties(JsonObject json, TestReport.TestReportTeardownComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("action")) { - JsonArray array = json.getAsJsonArray("action"); + JsonArray array = getJArray(json, "action"); for (int i = 0; i < array.size(); i++) { res.getAction().add(parseTestReportTeardownActionComponent(array.get(i).getAsJsonObject())); } @@ -29203,7 +30002,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -29213,13 +30012,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -29233,33 +30032,39 @@ public class JsonParser extends JsonParserBase { if (json.has("_copyright")) parseElementProperties(getJObject(json, "_copyright"), res.getCopyrightElement()); if (json.has("origin")) { - JsonArray array = json.getAsJsonArray("origin"); + JsonArray array = getJArray(json, "origin"); for (int i = 0; i < array.size(); i++) { res.getOrigin().add(parseTestScriptOriginComponent(array.get(i).getAsJsonObject())); } }; if (json.has("destination")) { - JsonArray array = json.getAsJsonArray("destination"); + JsonArray array = getJArray(json, "destination"); for (int i = 0; i < array.size(); i++) { res.getDestination().add(parseTestScriptDestinationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("metadata")) res.setMetadata(parseTestScriptMetadataComponent(getJObject(json, "metadata"))); + if (json.has("scope")) { + JsonArray array = getJArray(json, "scope"); + for (int i = 0; i < array.size(); i++) { + res.getScope().add(parseTestScriptScopeComponent(array.get(i).getAsJsonObject())); + } + }; if (json.has("fixture")) { - JsonArray array = json.getAsJsonArray("fixture"); + JsonArray array = getJArray(json, "fixture"); for (int i = 0; i < array.size(); i++) { res.getFixture().add(parseTestScriptFixtureComponent(array.get(i).getAsJsonObject())); } }; if (json.has("profile")) { - JsonArray array = json.getAsJsonArray("profile"); + JsonArray array = getJArray(json, "profile"); for (int i = 0; i < array.size(); i++) { res.getProfile().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("variable")) { - JsonArray array = json.getAsJsonArray("variable"); + JsonArray array = getJArray(json, "variable"); for (int i = 0; i < array.size(); i++) { res.getVariable().add(parseTestScriptVariableComponent(array.get(i).getAsJsonObject())); } @@ -29267,7 +30072,7 @@ public class JsonParser extends JsonParserBase { if (json.has("setup")) res.setSetup(parseTestScriptSetupComponent(getJObject(json, "setup"))); if (json.has("test")) { - JsonArray array = json.getAsJsonArray("test"); + JsonArray array = getJArray(json, "test"); for (int i = 0; i < array.size(); i++) { res.getTest().add(parseTestScriptTestComponent(array.get(i).getAsJsonObject())); } @@ -29317,13 +30122,13 @@ public class JsonParser extends JsonParserBase { protected void parseTestScriptMetadataComponentProperties(JsonObject json, TestScript.TestScriptMetadataComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("link")) { - JsonArray array = json.getAsJsonArray("link"); + JsonArray array = getJArray(json, "link"); for (int i = 0; i < array.size(); i++) { res.getLink().add(parseTestScriptMetadataLinkComponent(array.get(i).getAsJsonObject())); } }; if (json.has("capability")) { - JsonArray array = json.getAsJsonArray("capability"); + JsonArray array = getJArray(json, "capability"); for (int i = 0; i < array.size(); i++) { res.getCapability().add(parseTestScriptMetadataCapabilityComponent(array.get(i).getAsJsonObject())); } @@ -29369,7 +30174,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("origin")) { - JsonArray array = json.getAsJsonArray("origin"); + JsonArray array = getJArray(json, "origin"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getOrigin().add(new IntegerType()); @@ -29379,7 +30184,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_origin")) { - JsonArray array = json.getAsJsonArray("_origin"); + JsonArray array = getJArray(json, "_origin"); for (int i = 0; i < array.size(); i++) { if (i == res.getOrigin().size()) res.getOrigin().add(parseInteger(null)); @@ -29392,7 +30197,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_destination")) parseElementProperties(getJObject(json, "_destination"), res.getDestinationElement()); if (json.has("link")) { - JsonArray array = json.getAsJsonArray("link"); + JsonArray array = getJArray(json, "link"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getLink().add(new UriType()); @@ -29402,7 +30207,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_link")) { - JsonArray array = json.getAsJsonArray("_link"); + JsonArray array = getJArray(json, "_link"); for (int i = 0; i < array.size(); i++) { if (i == res.getLink().size()) res.getLink().add(parseUri(null)); @@ -29416,6 +30221,24 @@ public class JsonParser extends JsonParserBase { parseElementProperties(getJObject(json, "_capabilities"), res.getCapabilitiesElement()); } + protected TestScript.TestScriptScopeComponent parseTestScriptScopeComponent(JsonObject json) throws IOException, FHIRFormatError { + TestScript.TestScriptScopeComponent res = new TestScript.TestScriptScopeComponent(); + parseTestScriptScopeComponentProperties(json, res); + return res; + } + + protected void parseTestScriptScopeComponentProperties(JsonObject json, TestScript.TestScriptScopeComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("artifact")) + res.setArtifactElement(parseCanonical(json.get("artifact").getAsString())); + if (json.has("_artifact")) + parseElementProperties(getJObject(json, "_artifact"), res.getArtifactElement()); + if (json.has("conformance")) + res.setConformance(parseCodeableConcept(getJObject(json, "conformance"))); + if (json.has("phase")) + res.setPhase(parseCodeableConcept(getJObject(json, "phase"))); + } + protected TestScript.TestScriptFixtureComponent parseTestScriptFixtureComponent(JsonObject json) throws IOException, FHIRFormatError { TestScript.TestScriptFixtureComponent res = new TestScript.TestScriptFixtureComponent(); parseTestScriptFixtureComponentProperties(json, res); @@ -29487,7 +30310,7 @@ public class JsonParser extends JsonParserBase { protected void parseTestScriptSetupComponentProperties(JsonObject json, TestScript.TestScriptSetupComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("action")) { - JsonArray array = json.getAsJsonArray("action"); + JsonArray array = getJArray(json, "action"); for (int i = 0; i < array.size(); i++) { res.getAction().add(parseTestScriptSetupActionComponent(array.get(i).getAsJsonObject())); } @@ -29559,7 +30382,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_params")) parseElementProperties(getJObject(json, "_params"), res.getParamsElement()); if (json.has("requestHeader")) { - JsonArray array = json.getAsJsonArray("requestHeader"); + JsonArray array = getJArray(json, "requestHeader"); for (int i = 0; i < array.size(); i++) { res.getRequestHeader().add(parseTestScriptSetupActionOperationRequestHeaderComponent(array.get(i).getAsJsonObject())); } @@ -29688,6 +30511,10 @@ public class JsonParser extends JsonParserBase { res.setSourceIdElement(parseId(json.get("sourceId").getAsString())); if (json.has("_sourceId")) parseElementProperties(getJObject(json, "_sourceId"), res.getSourceIdElement()); + if (json.has("stopTestOnFail")) + res.setStopTestOnFailElement(parseBoolean(json.get("stopTestOnFail").getAsBoolean())); + if (json.has("_stopTestOnFail")) + parseElementProperties(getJObject(json, "_stopTestOnFail"), res.getStopTestOnFailElement()); if (json.has("validateProfileId")) res.setValidateProfileIdElement(parseId(json.get("validateProfileId").getAsString())); if (json.has("_validateProfileId")) @@ -29719,7 +30546,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("action")) { - JsonArray array = json.getAsJsonArray("action"); + JsonArray array = getJArray(json, "action"); for (int i = 0; i < array.size(); i++) { res.getAction().add(parseTestScriptTestActionComponent(array.get(i).getAsJsonObject())); } @@ -29749,7 +30576,7 @@ public class JsonParser extends JsonParserBase { protected void parseTestScriptTeardownComponentProperties(JsonObject json, TestScript.TestScriptTeardownComponent res) throws IOException, FHIRFormatError { parseBackboneElementProperties(json, res); if (json.has("action")) { - JsonArray array = json.getAsJsonArray("action"); + JsonArray array = getJArray(json, "action"); for (int i = 0; i < array.size(); i++) { res.getAction().add(parseTestScriptTeardownActionComponent(array.get(i).getAsJsonObject())); } @@ -29781,7 +30608,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_url")) parseElementProperties(getJObject(json, "_url"), res.getUrlElement()); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -29815,7 +30642,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_publisher")) parseElementProperties(getJObject(json, "_publisher"), res.getPublisherElement()); if (json.has("contact")) { - JsonArray array = json.getAsJsonArray("contact"); + JsonArray array = getJArray(json, "contact"); for (int i = 0; i < array.size(); i++) { res.getContact().add(parseContactDetail(array.get(i).getAsJsonObject())); } @@ -29825,13 +30652,13 @@ public class JsonParser extends JsonParserBase { if (json.has("_description")) parseElementProperties(getJObject(json, "_description"), res.getDescriptionElement()); if (json.has("useContext")) { - JsonArray array = json.getAsJsonArray("useContext"); + JsonArray array = getJArray(json, "useContext"); for (int i = 0; i < array.size(); i++) { res.getUseContext().add(parseUsageContext(array.get(i).getAsJsonObject())); } }; if (json.has("jurisdiction")) { - JsonArray array = json.getAsJsonArray("jurisdiction"); + JsonArray array = getJArray(json, "jurisdiction"); for (int i = 0; i < array.size(); i++) { res.getJurisdiction().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -29852,6 +30679,8 @@ public class JsonParser extends JsonParserBase { res.setCompose(parseValueSetComposeComponent(getJObject(json, "compose"))); if (json.has("expansion")) res.setExpansion(parseValueSetExpansionComponent(getJObject(json, "expansion"))); + if (json.has("scope")) + res.setScope(parseValueSetScopeComponent(getJObject(json, "scope"))); } protected ValueSet.ValueSetComposeComponent parseValueSetComposeComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -29871,19 +30700,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_inactive")) parseElementProperties(getJObject(json, "_inactive"), res.getInactiveElement()); if (json.has("include")) { - JsonArray array = json.getAsJsonArray("include"); + JsonArray array = getJArray(json, "include"); for (int i = 0; i < array.size(); i++) { res.getInclude().add(parseValueSetConceptSetComponent(array.get(i).getAsJsonObject())); } }; if (json.has("exclude")) { - JsonArray array = json.getAsJsonArray("exclude"); + JsonArray array = getJArray(json, "exclude"); for (int i = 0; i < array.size(); i++) { res.getExclude().add(parseValueSetConceptSetComponent(array.get(i).getAsJsonObject())); } }; if (json.has("property")) { - JsonArray array = json.getAsJsonArray("property"); + JsonArray array = getJArray(json, "property"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getProperty().add(new StringType()); @@ -29893,7 +30722,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_property")) { - JsonArray array = json.getAsJsonArray("_property"); + JsonArray array = getJArray(json, "_property"); for (int i = 0; i < array.size(); i++) { if (i == res.getProperty().size()) res.getProperty().add(parseString(null)); @@ -29920,19 +30749,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_version")) parseElementProperties(getJObject(json, "_version"), res.getVersionElement()); if (json.has("concept")) { - JsonArray array = json.getAsJsonArray("concept"); + JsonArray array = getJArray(json, "concept"); for (int i = 0; i < array.size(); i++) { res.getConcept().add(parseValueSetConceptReferenceComponent(array.get(i).getAsJsonObject())); } }; if (json.has("filter")) { - JsonArray array = json.getAsJsonArray("filter"); + JsonArray array = getJArray(json, "filter"); for (int i = 0; i < array.size(); i++) { res.getFilter().add(parseValueSetConceptSetFilterComponent(array.get(i).getAsJsonObject())); } }; if (json.has("valueSet")) { - JsonArray array = json.getAsJsonArray("valueSet"); + JsonArray array = getJArray(json, "valueSet"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getValueSet().add(new CanonicalType()); @@ -29942,7 +30771,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_valueSet")) { - JsonArray array = json.getAsJsonArray("_valueSet"); + JsonArray array = getJArray(json, "_valueSet"); for (int i = 0; i < array.size(); i++) { if (i == res.getValueSet().size()) res.getValueSet().add(parseCanonical(null)); @@ -29950,6 +30779,10 @@ public class JsonParser extends JsonParserBase { parseElementProperties(array.get(i).getAsJsonObject(), res.getValueSet().get(i)); } }; + if (json.has("copyright")) + res.setCopyrightElement(parseString(json.get("copyright").getAsString())); + if (json.has("_copyright")) + parseElementProperties(getJObject(json, "_copyright"), res.getCopyrightElement()); } protected ValueSet.ConceptReferenceComponent parseValueSetConceptReferenceComponent(JsonObject json) throws IOException, FHIRFormatError { @@ -29969,7 +30802,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_display")) parseElementProperties(getJObject(json, "_display"), res.getDisplayElement()); if (json.has("designation")) { - JsonArray array = json.getAsJsonArray("designation"); + JsonArray array = getJArray(json, "designation"); for (int i = 0; i < array.size(); i++) { res.getDesignation().add(parseValueSetConceptReferenceDesignationComponent(array.get(i).getAsJsonObject())); } @@ -30043,19 +30876,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_offset")) parseElementProperties(getJObject(json, "_offset"), res.getOffsetElement()); if (json.has("parameter")) { - JsonArray array = json.getAsJsonArray("parameter"); + JsonArray array = getJArray(json, "parameter"); for (int i = 0; i < array.size(); i++) { res.getParameter().add(parseValueSetExpansionParameterComponent(array.get(i).getAsJsonObject())); } }; if (json.has("property")) { - JsonArray array = json.getAsJsonArray("property"); + JsonArray array = getJArray(json, "property"); for (int i = 0; i < array.size(); i++) { res.getProperty().add(parseValueSetExpansionPropertyComponent(array.get(i).getAsJsonObject())); } }; if (json.has("contains")) { - JsonArray array = json.getAsJsonArray("contains"); + JsonArray array = getJArray(json, "contains"); for (int i = 0; i < array.size(); i++) { res.getContains().add(parseValueSetExpansionContainsComponent(array.get(i).getAsJsonObject())); } @@ -30130,19 +30963,19 @@ public class JsonParser extends JsonParserBase { if (json.has("_display")) parseElementProperties(getJObject(json, "_display"), res.getDisplayElement()); if (json.has("designation")) { - JsonArray array = json.getAsJsonArray("designation"); + JsonArray array = getJArray(json, "designation"); for (int i = 0; i < array.size(); i++) { res.getDesignation().add(parseValueSetConceptReferenceDesignationComponent(array.get(i).getAsJsonObject())); } }; if (json.has("property")) { - JsonArray array = json.getAsJsonArray("property"); + JsonArray array = getJArray(json, "property"); for (int i = 0; i < array.size(); i++) { res.getProperty().add(parseValueSetConceptPropertyComponent(array.get(i).getAsJsonObject())); } }; if (json.has("contains")) { - JsonArray array = json.getAsJsonArray("contains"); + JsonArray array = getJArray(json, "contains"); for (int i = 0; i < array.size(); i++) { res.getContains().add(parseValueSetExpansionContainsComponent(array.get(i).getAsJsonObject())); } @@ -30166,6 +30999,28 @@ public class JsonParser extends JsonParserBase { res.setValue(value); } + protected ValueSet.ValueSetScopeComponent parseValueSetScopeComponent(JsonObject json) throws IOException, FHIRFormatError { + ValueSet.ValueSetScopeComponent res = new ValueSet.ValueSetScopeComponent(); + parseValueSetScopeComponentProperties(json, res); + return res; + } + + protected void parseValueSetScopeComponentProperties(JsonObject json, ValueSet.ValueSetScopeComponent res) throws IOException, FHIRFormatError { + parseBackboneElementProperties(json, res); + if (json.has("focus")) + res.setFocusElement(parseString(json.get("focus").getAsString())); + if (json.has("_focus")) + parseElementProperties(getJObject(json, "_focus"), res.getFocusElement()); + if (json.has("inclusionCriteria")) + res.setInclusionCriteriaElement(parseString(json.get("inclusionCriteria").getAsString())); + if (json.has("_inclusionCriteria")) + parseElementProperties(getJObject(json, "_inclusionCriteria"), res.getInclusionCriteriaElement()); + if (json.has("exclusionCriteria")) + res.setExclusionCriteriaElement(parseString(json.get("exclusionCriteria").getAsString())); + if (json.has("_exclusionCriteria")) + parseElementProperties(getJObject(json, "_exclusionCriteria"), res.getExclusionCriteriaElement()); + } + protected VerificationResult parseVerificationResult(JsonObject json) throws IOException, FHIRFormatError { VerificationResult res = new VerificationResult(); parseVerificationResultProperties(json, res); @@ -30175,13 +31030,13 @@ public class JsonParser extends JsonParserBase { protected void parseVerificationResultProperties(JsonObject json, VerificationResult res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("target")) { - JsonArray array = json.getAsJsonArray("target"); + JsonArray array = getJArray(json, "target"); for (int i = 0; i < array.size(); i++) { res.getTarget().add(parseReference(array.get(i).getAsJsonObject())); } }; if (json.has("targetLocation")) { - JsonArray array = json.getAsJsonArray("targetLocation"); + JsonArray array = getJArray(json, "targetLocation"); for (int i = 0; i < array.size(); i++) { if (array.get(i).isJsonNull()) { res.getTargetLocation().add(new StringType()); @@ -30191,7 +31046,7 @@ public class JsonParser extends JsonParserBase { } }; if (json.has("_targetLocation")) { - JsonArray array = json.getAsJsonArray("_targetLocation"); + JsonArray array = getJArray(json, "_targetLocation"); for (int i = 0; i < array.size(); i++) { if (i == res.getTargetLocation().size()) res.getTargetLocation().add(parseString(null)); @@ -30212,7 +31067,7 @@ public class JsonParser extends JsonParserBase { if (json.has("validationType")) res.setValidationType(parseCodeableConcept(getJObject(json, "validationType"))); if (json.has("validationProcess")) { - JsonArray array = json.getAsJsonArray("validationProcess"); + JsonArray array = getJArray(json, "validationProcess"); for (int i = 0; i < array.size(); i++) { res.getValidationProcess().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -30230,7 +31085,7 @@ public class JsonParser extends JsonParserBase { if (json.has("failureAction")) res.setFailureAction(parseCodeableConcept(getJObject(json, "failureAction"))); if (json.has("primarySource")) { - JsonArray array = json.getAsJsonArray("primarySource"); + JsonArray array = getJArray(json, "primarySource"); for (int i = 0; i < array.size(); i++) { res.getPrimarySource().add(parseVerificationResultPrimarySourceComponent(array.get(i).getAsJsonObject())); } @@ -30238,7 +31093,7 @@ public class JsonParser extends JsonParserBase { if (json.has("attestation")) res.setAttestation(parseVerificationResultAttestationComponent(getJObject(json, "attestation"))); if (json.has("validator")) { - JsonArray array = json.getAsJsonArray("validator"); + JsonArray array = getJArray(json, "validator"); for (int i = 0; i < array.size(); i++) { res.getValidator().add(parseVerificationResultValidatorComponent(array.get(i).getAsJsonObject())); } @@ -30256,13 +31111,13 @@ public class JsonParser extends JsonParserBase { if (json.has("who")) res.setWho(parseReference(getJObject(json, "who"))); if (json.has("type")) { - JsonArray array = json.getAsJsonArray("type"); + JsonArray array = getJArray(json, "type"); for (int i = 0; i < array.size(); i++) { res.getType().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } }; if (json.has("communicationMethod")) { - JsonArray array = json.getAsJsonArray("communicationMethod"); + JsonArray array = getJArray(json, "communicationMethod"); for (int i = 0; i < array.size(); i++) { res.getCommunicationMethod().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -30276,7 +31131,7 @@ public class JsonParser extends JsonParserBase { if (json.has("canPushUpdates")) res.setCanPushUpdates(parseCodeableConcept(getJObject(json, "canPushUpdates"))); if (json.has("pushTypeAvailable")) { - JsonArray array = json.getAsJsonArray("pushTypeAvailable"); + JsonArray array = getJArray(json, "pushTypeAvailable"); for (int i = 0; i < array.size(); i++) { res.getPushTypeAvailable().add(parseCodeableConcept(array.get(i).getAsJsonObject())); } @@ -30342,7 +31197,7 @@ public class JsonParser extends JsonParserBase { protected void parseVisionPrescriptionProperties(JsonObject json, VisionPrescription res) throws IOException, FHIRFormatError { parseDomainResourceProperties(json, res); if (json.has("identifier")) { - JsonArray array = json.getAsJsonArray("identifier"); + JsonArray array = getJArray(json, "identifier"); for (int i = 0; i < array.size(); i++) { res.getIdentifier().add(parseIdentifier(array.get(i).getAsJsonObject())); } @@ -30366,7 +31221,7 @@ public class JsonParser extends JsonParserBase { if (json.has("prescriber")) res.setPrescriber(parseReference(getJObject(json, "prescriber"))); if (json.has("lensSpecification")) { - JsonArray array = json.getAsJsonArray("lensSpecification"); + JsonArray array = getJArray(json, "lensSpecification"); for (int i = 0; i < array.size(); i++) { res.getLensSpecification().add(parseVisionPrescriptionLensSpecificationComponent(array.get(i).getAsJsonObject())); } @@ -30400,7 +31255,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_axis")) parseElementProperties(getJObject(json, "_axis"), res.getAxisElement()); if (json.has("prism")) { - JsonArray array = json.getAsJsonArray("prism"); + JsonArray array = getJArray(json, "prism"); for (int i = 0; i < array.size(); i++) { res.getPrism().add(parseVisionPrescriptionPrismComponent(array.get(i).getAsJsonObject())); } @@ -30432,7 +31287,7 @@ public class JsonParser extends JsonParserBase { if (json.has("_brand")) parseElementProperties(getJObject(json, "_brand"), res.getBrandElement()); if (json.has("note")) { - JsonArray array = json.getAsJsonArray("note"); + JsonArray array = getJArray(json, "note"); for (int i = 0; i < array.size(); i++) { res.getNote().add(parseAnnotation(array.get(i).getAsJsonObject())); } @@ -30553,8 +31408,8 @@ public class JsonParser extends JsonParserBase { return parseDeviceMetric(json); } else if (t.equals("DeviceRequest")) { return parseDeviceRequest(json); - } else if (t.equals("DeviceUseStatement")) { - return parseDeviceUseStatement(json); + } else if (t.equals("DeviceUsage")) { + return parseDeviceUsage(json); } else if (t.equals("DiagnosticReport")) { return parseDiagnosticReport(json); } else if (t.equals("DocumentManifest")) { @@ -30611,6 +31466,8 @@ public class JsonParser extends JsonParserBase { return parseIngredient(json); } else if (t.equals("InsurancePlan")) { return parseInsurancePlan(json); + } else if (t.equals("InventoryReport")) { + return parseInventoryReport(json); } else if (t.equals("Invoice")) { return parseInvoice(json); } else if (t.equals("Library")) { @@ -30953,6 +31810,8 @@ public class JsonParser extends JsonParserBase { return parseRange(getJObject(json, prefix+"Range")); } else if (json.has(prefix+"Ratio")) { return parseRatio(getJObject(json, prefix+"Ratio")); + } else if (json.has(prefix+"RatioRange")) { + return parseRatioRange(getJObject(json, prefix+"RatioRange")); } else if (json.has(prefix+"Reference")) { return parseReference(getJObject(json, prefix+"Reference")); } else if (json.has(prefix+"RelatedArtifact")) { @@ -31048,6 +31907,8 @@ public class JsonParser extends JsonParserBase { return parseRange(json); } else if (type.equals("Ratio")) { return parseRatio(json); + } else if (type.equals("RatioRange")) { + return parseRatioRange(json); } else if (type.equals("Reference")) { return parseReference(json); } else if (type.equals("RelatedArtifact")) { @@ -31170,6 +32031,9 @@ public class JsonParser extends JsonParserBase { if (json.has(prefix+"Ratio")) { return true; }; + if (json.has(prefix+"RatioRange")) { + return true; + }; if (json.has(prefix+"Reference")) { return true; }; @@ -31323,7 +32187,7 @@ public class JsonParser extends JsonParserBase { if (json.has(prefix+"DeviceRequest")) { return true; }; - if (json.has(prefix+"DeviceUseStatement")) { + if (json.has(prefix+"DeviceUsage")) { return true; }; if (json.has(prefix+"DiagnosticReport")) { @@ -31410,6 +32274,9 @@ public class JsonParser extends JsonParserBase { if (json.has(prefix+"InsurancePlan")) { return true; }; + if (json.has(prefix+"InventoryReport")) { + return true; + }; if (json.has(prefix+"Invoice")) { return true; }; @@ -32123,10 +32990,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasLine()) { if (anyHasValue(element.getLine())) { - openArray("line"); - for (StringType e : element.getLine()) + openArray("line"); + for (StringType e : element.getLine()) composeStringCore(null, e, e != element.getLine().get(element.getLine().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getLine())) { openArray("_line"); @@ -32438,10 +33305,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasProfile()) { if (anyHasValue(element.getProfile())) { - openArray("profile"); - for (CanonicalType e : element.getProfile()) + openArray("profile"); + for (CanonicalType e : element.getProfile()) composeCanonicalCore(null, e, e != element.getProfile().get(element.getProfile().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getProfile())) { openArray("_profile"); @@ -32455,10 +33322,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasMustSupport()) { if (anyHasValue(element.getMustSupport())) { - openArray("mustSupport"); - for (StringType e : element.getMustSupport()) + openArray("mustSupport"); + for (StringType e : element.getMustSupport()) composeStringCore(null, e, e != element.getMustSupport().get(element.getMustSupport().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getMustSupport())) { openArray("_mustSupport"); @@ -32734,10 +33601,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasAlias()) { if (anyHasValue(element.getAlias())) { - openArray("alias"); - for (StringType e : element.getAlias()) + openArray("alias"); + for (StringType e : element.getAlias()) composeStringCore(null, e, e != element.getAlias().get(element.getAlias().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getAlias())) { openArray("_alias"); @@ -32802,10 +33669,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasCondition()) { if (anyHasValue(element.getCondition())) { - openArray("condition"); - for (IdType e : element.getCondition()) + openArray("condition"); + for (IdType e : element.getCondition()) composeIdCore(null, e, e != element.getCondition().get(element.getCondition().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getCondition())) { openArray("_condition"); @@ -32937,10 +33804,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasProfile()) { if (anyHasValue(element.getProfile())) { - openArray("profile"); - for (CanonicalType e : element.getProfile()) + openArray("profile"); + for (CanonicalType e : element.getProfile()) composeCanonicalCore(null, e, e != element.getProfile().get(element.getProfile().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getProfile())) { openArray("_profile"); @@ -32951,10 +33818,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasTargetProfile()) { if (anyHasValue(element.getTargetProfile())) { - openArray("targetProfile"); - for (CanonicalType e : element.getTargetProfile()) + openArray("targetProfile"); + for (CanonicalType e : element.getTargetProfile()) composeCanonicalCore(null, e, e != element.getTargetProfile().get(element.getTargetProfile().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getTargetProfile())) { openArray("_targetProfile"); @@ -33167,10 +34034,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasGiven()) { if (anyHasValue(element.getGiven())) { - openArray("given"); - for (StringType e : element.getGiven()) + openArray("given"); + for (StringType e : element.getGiven()) composeStringCore(null, e, e != element.getGiven().get(element.getGiven().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getGiven())) { openArray("_given"); @@ -33181,10 +34048,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasPrefix()) { if (anyHasValue(element.getPrefix())) { - openArray("prefix"); - for (StringType e : element.getPrefix()) + openArray("prefix"); + for (StringType e : element.getPrefix()) composeStringCore(null, e, e != element.getPrefix().get(element.getPrefix().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getPrefix())) { openArray("_prefix"); @@ -33195,10 +34062,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasSuffix()) { if (anyHasValue(element.getSuffix())) { - openArray("suffix"); - for (StringType e : element.getSuffix()) + openArray("suffix"); + for (StringType e : element.getSuffix()) composeStringCore(null, e, e != element.getSuffix().get(element.getSuffix().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getSuffix())) { openArray("_suffix"); @@ -33297,10 +34164,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasProfile()) { if (anyHasValue(element.getProfile())) { - openArray("profile"); - for (CanonicalType e : element.getProfile()) + openArray("profile"); + for (CanonicalType e : element.getProfile()) composeCanonicalCore(null, e, e != element.getProfile().get(element.getProfile().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getProfile())) { openArray("_profile"); @@ -33544,10 +34411,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasColor()) { if (anyHasValue(element.getColor())) { - openArray("color"); - for (StringType e : element.getColor()) + openArray("color"); + for (StringType e : element.getColor()) composeStringCore(null, e, e != element.getColor().get(element.getColor().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getColor())) { openArray("_color"); @@ -33558,10 +34425,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasImprint()) { if (anyHasValue(element.getImprint())) { - openArray("imprint"); - for (StringType e : element.getImprint()) + openArray("imprint"); + for (StringType e : element.getImprint()) composeStringCore(null, e, e != element.getImprint().get(element.getImprint().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getImprint())) { openArray("_imprint"); @@ -33673,6 +34540,27 @@ public class JsonParser extends JsonParserBase { } } + protected void composeRatioRange(String name, RatioRange element) throws IOException { + if (element != null) { + open(name); + composeRatioRangeProperties(element); + close(); + } + } + + protected void composeRatioRangeProperties(RatioRange element) throws IOException { + composeDataTypeProperties(element); + if (element.hasLowNumerator()) { + composeQuantity("lowNumerator", element.getLowNumerator()); + } + if (element.hasHighNumerator()) { + composeQuantity("highNumerator", element.getHighNumerator()); + } + if (element.hasDenominator()) { + composeQuantity("denominator", element.getDenominator()); + } + } + protected void composeReference(String name, Reference element) throws IOException { if (element != null) { open(name); @@ -33841,12 +34729,19 @@ public class JsonParser extends JsonParserBase { if (element.hasStatisticType()) { composeCodeableConcept("statisticType", element.getStatisticType()); } + if (element.hasCategory()) { + composeCodeableConcept("category", element.getCategory()); + } if (element.hasQuantity()) { composeQuantity("quantity", element.getQuantity()); } if (element.hasNumberOfEventsElement()) { - composeIntegerCore("numberOfEvents", element.getNumberOfEventsElement(), false); - composeIntegerExtras("numberOfEvents", element.getNumberOfEventsElement(), false); + composeUnsignedIntCore("numberOfEvents", element.getNumberOfEventsElement(), false); + composeUnsignedIntExtras("numberOfEvents", element.getNumberOfEventsElement(), false); + } + if (element.hasNumberAffectedElement()) { + composeUnsignedIntCore("numberAffected", element.getNumberAffectedElement(), false); + composeUnsignedIntExtras("numberAffected", element.getNumberAffectedElement(), false); } if (element.hasSampleSize()) { composeStatisticSampleSizeComponent("sampleSize", element.getSampleSize()); @@ -33886,16 +34781,16 @@ public class JsonParser extends JsonParserBase { closeArray(); }; if (element.hasNumberOfStudiesElement()) { - composeIntegerCore("numberOfStudies", element.getNumberOfStudiesElement(), false); - composeIntegerExtras("numberOfStudies", element.getNumberOfStudiesElement(), false); + composeUnsignedIntCore("numberOfStudies", element.getNumberOfStudiesElement(), false); + composeUnsignedIntExtras("numberOfStudies", element.getNumberOfStudiesElement(), false); } if (element.hasNumberOfParticipantsElement()) { - composeIntegerCore("numberOfParticipants", element.getNumberOfParticipantsElement(), false); - composeIntegerExtras("numberOfParticipants", element.getNumberOfParticipantsElement(), false); + composeUnsignedIntCore("numberOfParticipants", element.getNumberOfParticipantsElement(), false); + composeUnsignedIntExtras("numberOfParticipants", element.getNumberOfParticipantsElement(), false); } if (element.hasKnownDataCountElement()) { - composeIntegerCore("knownDataCount", element.getKnownDataCountElement(), false); - composeIntegerExtras("knownDataCount", element.getKnownDataCountElement(), false); + composeUnsignedIntCore("knownDataCount", element.getKnownDataCountElement(), false); + composeUnsignedIntExtras("knownDataCount", element.getKnownDataCountElement(), false); } } @@ -33989,7 +34884,7 @@ public class JsonParser extends JsonParserBase { composeCodeableConcept("code", element.getCode()); } if (element.hasValue()) { - composeType("value", element.getValue()); + composeQuantity("value", element.getValue()); } if (element.hasVariable()) { openArray("variable"); @@ -34135,10 +35030,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasTimeOfDay()) { if (anyHasValue(element.getTimeOfDay())) { - openArray("timeOfDay"); - for (TimeType e : element.getTimeOfDay()) + openArray("timeOfDay"); + for (TimeType e : element.getTimeOfDay()) composeTimeCore(null, e, e != element.getTimeOfDay().get(element.getTimeOfDay().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getTimeOfDay())) { openArray("_timeOfDay"); @@ -34507,10 +35402,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasLibrary()) { if (anyHasValue(element.getLibrary())) { - openArray("library"); - for (CanonicalType e : element.getLibrary()) + openArray("library"); + for (CanonicalType e : element.getLibrary()) composeCanonicalCore(null, e, e != element.getLibrary().get(element.getLibrary().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getLibrary())) { openArray("_library"); @@ -34546,7 +35441,7 @@ public class JsonParser extends JsonParserBase { composeType("timing", element.getTiming()); } if (element.hasLocation()) { - composeReference("location", element.getLocation()); + composeCodeableReference("location", element.getLocation()); } if (element.hasParticipant()) { openArray("participant"); @@ -34616,9 +35511,15 @@ public class JsonParser extends JsonParserBase { composeEnumerationCore("type", element.getTypeElement(), new Enumerations.ActionParticipantTypeEnumFactory(), false); composeEnumerationExtras("type", element.getTypeElement(), new Enumerations.ActionParticipantTypeEnumFactory(), false); } + if (element.hasTypeReference()) { + composeReference("typeReference", element.getTypeReference()); + } if (element.hasRole()) { composeCodeableConcept("role", element.getRole()); } + if (element.hasFunction()) { + composeCodeableConcept("function", element.getFunction()); + } } protected void composeActivityDefinitionDynamicValueComponent(String name, ActivityDefinition.ActivityDefinitionDynamicValueComponent element) throws IOException { @@ -34861,8 +35762,11 @@ public class JsonParser extends JsonParserBase { composeCodeableConcept("seriousness", element.getSeriousness()); } if (element.hasOutcome()) { - composeCodeableConcept("outcome", element.getOutcome()); - } + openArray("outcome"); + for (CodeableConcept e : element.getOutcome()) + composeCodeableConcept(null, e); + closeArray(); + }; if (element.hasRecorder()) { composeReference("recorder", element.getRecorder()); } @@ -35123,8 +36027,8 @@ public class JsonParser extends JsonParserBase { } if (element.hasManifestation()) { openArray("manifestation"); - for (CodeableConcept e : element.getManifestation()) - composeCodeableConcept(null, e); + for (CodeableReference e : element.getManifestation()) + composeCodeableReference(null, e); closeArray(); }; if (element.hasDescriptionElement()) { @@ -35199,9 +36103,8 @@ public class JsonParser extends JsonParserBase { composeCodeableReference(null, e); closeArray(); }; - if (element.hasPriorityElement()) { - composeUnsignedIntCore("priority", element.getPriorityElement(), false); - composeUnsignedIntExtras("priority", element.getPriorityElement(), false); + if (element.hasPriority()) { + composeCodeableConcept("priority", element.getPriority()); } if (element.hasDescriptionElement()) { composeStringCore("description", element.getDescriptionElement(), false); @@ -35382,6 +36285,15 @@ public class JsonParser extends JsonParserBase { composeCodeableConcept(null, e); closeArray(); }; + if (element.hasBasedOn()) { + openArray("basedOn"); + for (Reference e : element.getBasedOn()) + composeReference(null, e); + closeArray(); + }; + if (element.hasEncounter()) { + composeReference("encounter", element.getEncounter()); + } if (element.hasAgent()) { openArray("agent"); for (AuditEvent.AuditEventAgentComponent e : element.getAgent()) @@ -35438,10 +36350,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasPolicy()) { if (anyHasValue(element.getPolicy())) { - openArray("policy"); - for (UriType e : element.getPolicy()) + openArray("policy"); + for (UriType e : element.getPolicy()) composeUriCore(null, e, e != element.getPolicy().get(element.getPolicy().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getPolicy())) { openArray("_policy"); @@ -36087,10 +36999,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasInstantiates()) { if (anyHasValue(element.getInstantiates())) { - openArray("instantiates"); - for (CanonicalType e : element.getInstantiates()) + openArray("instantiates"); + for (CanonicalType e : element.getInstantiates()) composeCanonicalCore(null, e, e != element.getInstantiates().get(element.getInstantiates().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiates())) { openArray("_instantiates"); @@ -36101,10 +37013,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasImports()) { if (anyHasValue(element.getImports())) { - openArray("imports"); - for (CanonicalType e : element.getImports()) + openArray("imports"); + for (CanonicalType e : element.getImports()) composeCanonicalCore(null, e, e != element.getImports().get(element.getImports().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getImports())) { openArray("_imports"); @@ -36125,10 +37037,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasFormat()) { if (anyHasValue(element.getFormat())) { - openArray("format"); - for (CodeType e : element.getFormat()) + openArray("format"); + for (CodeType e : element.getFormat()) composeCodeCore(null, e, e != element.getFormat().get(element.getFormat().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getFormat())) { openArray("_format"); @@ -36139,10 +37051,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasPatchFormat()) { if (anyHasValue(element.getPatchFormat())) { - openArray("patchFormat"); - for (CodeType e : element.getPatchFormat()) + openArray("patchFormat"); + for (CodeType e : element.getPatchFormat()) composeCodeCore(null, e, e != element.getPatchFormat().get(element.getPatchFormat().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getPatchFormat())) { openArray("_patchFormat"); @@ -36153,10 +37065,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasImplementationGuide()) { if (anyHasValue(element.getImplementationGuide())) { - openArray("implementationGuide"); - for (CanonicalType e : element.getImplementationGuide()) + openArray("implementationGuide"); + for (CanonicalType e : element.getImplementationGuide()) composeCanonicalCore(null, e, e != element.getImplementationGuide().get(element.getImplementationGuide().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getImplementationGuide())) { openArray("_implementationGuide"); @@ -36279,10 +37191,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasCompartment()) { if (anyHasValue(element.getCompartment())) { - openArray("compartment"); - for (CanonicalType e : element.getCompartment()) + openArray("compartment"); + for (CanonicalType e : element.getCompartment()) composeCanonicalCore(null, e, e != element.getCompartment().get(element.getCompartment().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getCompartment())) { openArray("_compartment"); @@ -36339,10 +37251,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasSupportedProfile()) { if (anyHasValue(element.getSupportedProfile())) { - openArray("supportedProfile"); - for (CanonicalType e : element.getSupportedProfile()) + openArray("supportedProfile"); + for (CanonicalType e : element.getSupportedProfile()) composeCanonicalCore(null, e, e != element.getSupportedProfile().get(element.getSupportedProfile().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getSupportedProfile())) { openArray("_supportedProfile"); @@ -36403,10 +37315,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasSearchInclude()) { if (anyHasValue(element.getSearchInclude())) { - openArray("searchInclude"); - for (StringType e : element.getSearchInclude()) + openArray("searchInclude"); + for (StringType e : element.getSearchInclude()) composeStringCore(null, e, e != element.getSearchInclude().get(element.getSearchInclude().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getSearchInclude())) { openArray("_searchInclude"); @@ -36417,10 +37329,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasSearchRevInclude()) { if (anyHasValue(element.getSearchRevInclude())) { - openArray("searchRevInclude"); - for (StringType e : element.getSearchRevInclude()) + openArray("searchRevInclude"); + for (StringType e : element.getSearchRevInclude()) composeStringCore(null, e, e != element.getSearchRevInclude().get(element.getSearchRevInclude().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getSearchRevInclude())) { openArray("_searchRevInclude"); @@ -36707,10 +37619,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasInstantiates()) { if (anyHasValue(element.getInstantiates())) { - openArray("instantiates"); - for (CanonicalType e : element.getInstantiates()) + openArray("instantiates"); + for (CanonicalType e : element.getInstantiates()) composeCanonicalCore(null, e, e != element.getInstantiates().get(element.getInstantiates().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiates())) { openArray("_instantiates"); @@ -36721,10 +37633,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasImports()) { if (anyHasValue(element.getImports())) { - openArray("imports"); - for (CanonicalType e : element.getImports()) + openArray("imports"); + for (CanonicalType e : element.getImports()) composeCanonicalCore(null, e, e != element.getImports().get(element.getImports().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getImports())) { openArray("_imports"); @@ -36745,10 +37657,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasFormat()) { if (anyHasValue(element.getFormat())) { - openArray("format"); - for (CodeType e : element.getFormat()) + openArray("format"); + for (CodeType e : element.getFormat()) composeCodeCore(null, e, e != element.getFormat().get(element.getFormat().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getFormat())) { openArray("_format"); @@ -36759,10 +37671,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasPatchFormat()) { if (anyHasValue(element.getPatchFormat())) { - openArray("patchFormat"); - for (CodeType e : element.getPatchFormat()) + openArray("patchFormat"); + for (CodeType e : element.getPatchFormat()) composeCodeCore(null, e, e != element.getPatchFormat().get(element.getPatchFormat().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getPatchFormat())) { openArray("_patchFormat"); @@ -36773,10 +37685,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasImplementationGuide()) { if (anyHasValue(element.getImplementationGuide())) { - openArray("implementationGuide"); - for (CanonicalType e : element.getImplementationGuide()) + openArray("implementationGuide"); + for (CanonicalType e : element.getImplementationGuide()) composeCanonicalCore(null, e, e != element.getImplementationGuide().get(element.getImplementationGuide().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getImplementationGuide())) { openArray("_implementationGuide"); @@ -36858,6 +37770,12 @@ public class JsonParser extends JsonParserBase { composeMarkdownCore("documentation", element.getDocumentationElement(), false); composeMarkdownExtras("documentation", element.getDocumentationElement(), false); } + if (element.hasFeature()) { + openArray("feature"); + for (CapabilityStatement2.CapabilityStatement2RestFeatureComponent e : element.getFeature()) + composeCapabilityStatement2RestFeatureComponent(null, e); + closeArray(); + }; if (element.hasResource()) { openArray("resource"); for (CapabilityStatement2.CapabilityStatement2RestResourceComponent e : element.getResource()) @@ -36884,10 +37802,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasCompartment()) { if (anyHasValue(element.getCompartment())) { - openArray("compartment"); - for (CanonicalType e : element.getCompartment()) + openArray("compartment"); + for (CanonicalType e : element.getCompartment()) composeCanonicalCore(null, e, e != element.getCompartment().get(element.getCompartment().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getCompartment())) { openArray("_compartment"); @@ -36898,6 +37816,26 @@ public class JsonParser extends JsonParserBase { }; } + protected void composeCapabilityStatement2RestFeatureComponent(String name, CapabilityStatement2.CapabilityStatement2RestFeatureComponent element) throws IOException { + if (element != null) { + open(name); + composeCapabilityStatement2RestFeatureComponentProperties(element); + close(); + } + } + + protected void composeCapabilityStatement2RestFeatureComponentProperties(CapabilityStatement2.CapabilityStatement2RestFeatureComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasCodeElement()) { + composeEnumerationCore("code", element.getCodeElement(), new CapabilityStatement2.CapabilityFeatureEnumFactory(), false); + composeEnumerationExtras("code", element.getCodeElement(), new CapabilityStatement2.CapabilityFeatureEnumFactory(), false); + } + if (element.hasValueElement()) { + composeEnumerationCore("value", element.getValueElement(), new CapabilityStatement2.CapabilityFeatureValueEnumFactory(), false); + composeEnumerationExtras("value", element.getValueElement(), new CapabilityStatement2.CapabilityFeatureValueEnumFactory(), false); + } + } + protected void composeCapabilityStatement2RestResourceComponent(String name, CapabilityStatement2.CapabilityStatement2RestResourceComponent element) throws IOException { if (element != null) { open(name); @@ -36918,10 +37856,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasSupportedProfile()) { if (anyHasValue(element.getSupportedProfile())) { - openArray("supportedProfile"); - for (CanonicalType e : element.getSupportedProfile()) + openArray("supportedProfile"); + for (CanonicalType e : element.getSupportedProfile()) composeCanonicalCore(null, e, e != element.getSupportedProfile().get(element.getSupportedProfile().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getSupportedProfile())) { openArray("_supportedProfile"); @@ -36934,6 +37872,12 @@ public class JsonParser extends JsonParserBase { composeMarkdownCore("documentation", element.getDocumentationElement(), false); composeMarkdownExtras("documentation", element.getDocumentationElement(), false); } + if (element.hasFeature()) { + openArray("feature"); + for (CapabilityStatement2.CapabilityStatement2RestFeatureComponent e : element.getFeature()) + composeCapabilityStatement2RestFeatureComponent(null, e); + closeArray(); + }; if (element.hasInteraction()) { openArray("interaction"); for (CapabilityStatement2.ResourceInteractionComponent e : element.getInteraction()) @@ -36972,6 +37916,12 @@ public class JsonParser extends JsonParserBase { composeMarkdownCore("documentation", element.getDocumentationElement(), false); composeMarkdownExtras("documentation", element.getDocumentationElement(), false); } + if (element.hasFeature()) { + openArray("feature"); + for (CapabilityStatement2.CapabilityStatement2RestFeatureComponent e : element.getFeature()) + composeCapabilityStatement2RestFeatureComponent(null, e); + closeArray(); + }; } protected void composeCapabilityStatement2RestResourceSearchParamComponent(String name, CapabilityStatement2.CapabilityStatement2RestResourceSearchParamComponent element) throws IOException { @@ -37000,6 +37950,12 @@ public class JsonParser extends JsonParserBase { composeMarkdownCore("documentation", element.getDocumentationElement(), false); composeMarkdownExtras("documentation", element.getDocumentationElement(), false); } + if (element.hasFeature()) { + openArray("feature"); + for (CapabilityStatement2.CapabilityStatement2RestFeatureComponent e : element.getFeature()) + composeCapabilityStatement2RestFeatureComponent(null, e); + closeArray(); + }; } protected void composeCapabilityStatement2RestResourceOperationComponent(String name, CapabilityStatement2.CapabilityStatement2RestResourceOperationComponent element) throws IOException { @@ -37024,6 +37980,12 @@ public class JsonParser extends JsonParserBase { composeMarkdownCore("documentation", element.getDocumentationElement(), false); composeMarkdownExtras("documentation", element.getDocumentationElement(), false); } + if (element.hasFeature()) { + openArray("feature"); + for (CapabilityStatement2.CapabilityStatement2RestFeatureComponent e : element.getFeature()) + composeCapabilityStatement2RestFeatureComponent(null, e); + closeArray(); + }; } protected void composeSystemInteractionComponent(String name, CapabilityStatement2.SystemInteractionComponent element) throws IOException { @@ -37044,6 +38006,12 @@ public class JsonParser extends JsonParserBase { composeMarkdownCore("documentation", element.getDocumentationElement(), false); composeMarkdownExtras("documentation", element.getDocumentationElement(), false); } + if (element.hasFeature()) { + openArray("feature"); + for (CapabilityStatement2.CapabilityStatement2RestFeatureComponent e : element.getFeature()) + composeCapabilityStatement2RestFeatureComponent(null, e); + closeArray(); + }; } protected void composeCarePlan(String name, CarePlan element) throws IOException { @@ -37063,10 +38031,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesCanonical()) { if (anyHasValue(element.getInstantiatesCanonical())) { - openArray("instantiatesCanonical"); - for (CanonicalType e : element.getInstantiatesCanonical()) + openArray("instantiatesCanonical"); + for (CanonicalType e : element.getInstantiatesCanonical()) composeCanonicalCore(null, e, e != element.getInstantiatesCanonical().get(element.getInstantiatesCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesCanonical())) { openArray("_instantiatesCanonical"); @@ -37077,10 +38045,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesUri()) { if (anyHasValue(element.getInstantiatesUri())) { - openArray("instantiatesUri"); - for (UriType e : element.getInstantiatesUri()) + openArray("instantiatesUri"); + for (UriType e : element.getInstantiatesUri()) composeUriCore(null, e, e != element.getInstantiatesUri().get(element.getInstantiatesUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesUri())) { openArray("_instantiatesUri"); @@ -37199,9 +38167,9 @@ public class JsonParser extends JsonParserBase { protected void composeCarePlanActivityComponentProperties(CarePlan.CarePlanActivityComponent element) throws IOException { composeBackboneElementProperties(element); - if (element.hasOutcome()) { - openArray("outcome"); - for (CodeableReference e : element.getOutcome()) + if (element.hasPerformedActivity()) { + openArray("performedActivity"); + for (CodeableReference e : element.getPerformedActivity()) composeCodeableReference(null, e); closeArray(); }; @@ -37211,23 +38179,23 @@ public class JsonParser extends JsonParserBase { composeAnnotation(null, e); closeArray(); }; - if (element.hasReference()) { - composeReference("reference", element.getReference()); + if (element.hasPlannedActivityReference()) { + composeReference("plannedActivityReference", element.getPlannedActivityReference()); } - if (element.hasDetail()) { - composeCarePlanActivityDetailComponent("detail", element.getDetail()); + if (element.hasPlannedActivityDetail()) { + composeCarePlanActivityPlannedActivityDetailComponent("plannedActivityDetail", element.getPlannedActivityDetail()); } } - protected void composeCarePlanActivityDetailComponent(String name, CarePlan.CarePlanActivityDetailComponent element) throws IOException { + protected void composeCarePlanActivityPlannedActivityDetailComponent(String name, CarePlan.CarePlanActivityPlannedActivityDetailComponent element) throws IOException { if (element != null) { open(name); - composeCarePlanActivityDetailComponentProperties(element); + composeCarePlanActivityPlannedActivityDetailComponentProperties(element); close(); } } - protected void composeCarePlanActivityDetailComponentProperties(CarePlan.CarePlanActivityDetailComponent element) throws IOException { + protected void composeCarePlanActivityPlannedActivityDetailComponentProperties(CarePlan.CarePlanActivityPlannedActivityDetailComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasKindElement()) { composeEnumerationCore("kind", element.getKindElement(), new CarePlan.CarePlanActivityKindEnumFactory(), false); @@ -37235,10 +38203,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasInstantiatesCanonical()) { if (anyHasValue(element.getInstantiatesCanonical())) { - openArray("instantiatesCanonical"); - for (CanonicalType e : element.getInstantiatesCanonical()) + openArray("instantiatesCanonical"); + for (CanonicalType e : element.getInstantiatesCanonical()) composeCanonicalCore(null, e, e != element.getInstantiatesCanonical().get(element.getInstantiatesCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesCanonical())) { openArray("_instantiatesCanonical"); @@ -37249,10 +38217,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesUri()) { if (anyHasValue(element.getInstantiatesUri())) { - openArray("instantiatesUri"); - for (UriType e : element.getInstantiatesUri()) + openArray("instantiatesUri"); + for (UriType e : element.getInstantiatesUri()) composeUriCore(null, e, e != element.getInstantiatesUri().get(element.getInstantiatesUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesUri())) { openArray("_instantiatesUri"); @@ -37523,10 +38491,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasDefinitionUri()) { if (anyHasValue(element.getDefinitionUri())) { - openArray("definitionUri"); - for (UriType e : element.getDefinitionUri()) + openArray("definitionUri"); + for (UriType e : element.getDefinitionUri()) composeUriCore(null, e, e != element.getDefinitionUri().get(element.getDefinitionUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getDefinitionUri())) { openArray("_definitionUri"); @@ -37537,10 +38505,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasDefinitionCanonical()) { if (anyHasValue(element.getDefinitionCanonical())) { - openArray("definitionCanonical"); - for (CanonicalType e : element.getDefinitionCanonical()) + openArray("definitionCanonical"); + for (CanonicalType e : element.getDefinitionCanonical()) composeCanonicalCore(null, e, e != element.getDefinitionCanonical().get(element.getDefinitionCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getDefinitionCanonical())) { openArray("_definitionCanonical"); @@ -37695,10 +38663,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasDerivedFromUri()) { if (anyHasValue(element.getDerivedFromUri())) { - openArray("derivedFromUri"); - for (UriType e : element.getDerivedFromUri()) + openArray("derivedFromUri"); + for (UriType e : element.getDerivedFromUri()) composeUriCore(null, e, e != element.getDerivedFromUri().get(element.getDerivedFromUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getDerivedFromUri())) { openArray("_derivedFromUri"); @@ -37709,10 +38677,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasPartOf()) { if (anyHasValue(element.getPartOf())) { - openArray("partOf"); - for (CanonicalType e : element.getPartOf()) + openArray("partOf"); + for (CanonicalType e : element.getPartOf()) composeCanonicalCore(null, e, e != element.getPartOf().get(element.getPartOf().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getPartOf())) { openArray("_partOf"); @@ -37723,10 +38691,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasReplaces()) { if (anyHasValue(element.getReplaces())) { - openArray("replaces"); - for (CanonicalType e : element.getReplaces()) + openArray("replaces"); + for (CanonicalType e : element.getReplaces()) composeCanonicalCore(null, e, e != element.getReplaces().get(element.getReplaces().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getReplaces())) { openArray("_replaces"); @@ -37898,16 +38866,223 @@ public class JsonParser extends JsonParserBase { composeUriCore("url", element.getUrlElement(), false); composeUriExtras("url", element.getUrlElement(), false); } + if (element.hasIdentifier()) { + openArray("identifier"); + for (Identifier e : element.getIdentifier()) + composeIdentifier(null, e); + closeArray(); + }; + if (element.hasVersionElement()) { + composeStringCore("version", element.getVersionElement(), false); + composeStringExtras("version", element.getVersionElement(), false); + } + if (element.hasNameElement()) { + composeStringCore("name", element.getNameElement(), false); + composeStringExtras("name", element.getNameElement(), false); + } + if (element.hasTitleElement()) { + composeStringCore("title", element.getTitleElement(), false); + composeStringExtras("title", element.getTitleElement(), false); + } if (element.hasStatusElement()) { composeEnumerationCore("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false); composeEnumerationExtras("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false); } + if (element.hasExperimentalElement()) { + composeBooleanCore("experimental", element.getExperimentalElement(), false); + composeBooleanExtras("experimental", element.getExperimentalElement(), false); + } + if (element.hasDateElement()) { + composeDateTimeCore("date", element.getDateElement(), false); + composeDateTimeExtras("date", element.getDateElement(), false); + } + if (element.hasPublisherElement()) { + composeStringCore("publisher", element.getPublisherElement(), false); + composeStringExtras("publisher", element.getPublisherElement(), false); + } + if (element.hasContact()) { + openArray("contact"); + for (ContactDetail e : element.getContact()) + composeContactDetail(null, e); + closeArray(); + }; + if (element.hasDescriptionElement()) { + composeMarkdownCore("description", element.getDescriptionElement(), false); + composeMarkdownExtras("description", element.getDescriptionElement(), false); + } if (element.hasUseContext()) { openArray("useContext"); for (UsageContext e : element.getUseContext()) composeUsageContext(null, e); closeArray(); }; + if (element.hasJurisdiction()) { + openArray("jurisdiction"); + for (CodeableConcept e : element.getJurisdiction()) + composeCodeableConcept(null, e); + closeArray(); + }; + if (element.hasPurposeElement()) { + composeMarkdownCore("purpose", element.getPurposeElement(), false); + composeMarkdownExtras("purpose", element.getPurposeElement(), false); + } + if (element.hasCopyrightElement()) { + composeMarkdownCore("copyright", element.getCopyrightElement(), false); + composeMarkdownExtras("copyright", element.getCopyrightElement(), false); + } + if (element.hasApprovalDateElement()) { + composeDateCore("approvalDate", element.getApprovalDateElement(), false); + composeDateExtras("approvalDate", element.getApprovalDateElement(), false); + } + if (element.hasLastReviewDateElement()) { + composeDateCore("lastReviewDate", element.getLastReviewDateElement(), false); + composeDateExtras("lastReviewDate", element.getLastReviewDateElement(), false); + } + if (element.hasEffectivePeriod()) { + composePeriod("effectivePeriod", element.getEffectivePeriod()); + } + if (element.hasAuthor()) { + openArray("author"); + for (ContactDetail e : element.getAuthor()) + composeContactDetail(null, e); + closeArray(); + }; + if (element.hasEditor()) { + openArray("editor"); + for (ContactDetail e : element.getEditor()) + composeContactDetail(null, e); + closeArray(); + }; + if (element.hasReviewer()) { + openArray("reviewer"); + for (ContactDetail e : element.getReviewer()) + composeContactDetail(null, e); + closeArray(); + }; + if (element.hasEndorser()) { + openArray("endorser"); + for (ContactDetail e : element.getEndorser()) + composeContactDetail(null, e); + closeArray(); + }; + if (element.hasSummary()) { + openArray("summary"); + for (ContactDetail e : element.getSummary()) + composeContactDetail(null, e); + closeArray(); + }; + if (element.hasClassification()) { + openArray("classification"); + for (Citation.CitationClassificationComponent e : element.getClassification()) + composeCitationClassificationComponent(null, e); + closeArray(); + }; + if (element.hasNote()) { + openArray("note"); + for (Annotation e : element.getNote()) + composeAnnotation(null, e); + closeArray(); + }; + if (element.hasCurrentState()) { + openArray("currentState"); + for (CodeableConcept e : element.getCurrentState()) + composeCodeableConcept(null, e); + closeArray(); + }; + if (element.hasStatusDate()) { + openArray("statusDate"); + for (Citation.CitationStatusDateComponent e : element.getStatusDate()) + composeCitationStatusDateComponent(null, e); + closeArray(); + }; + if (element.hasRelatesTo()) { + openArray("relatesTo"); + for (Citation.CitationRelatesToComponent e : element.getRelatesTo()) + composeCitationRelatesToComponent(null, e); + closeArray(); + }; + if (element.hasCitedArtifact()) { + composeCitationCitedArtifactComponent("citedArtifact", element.getCitedArtifact()); + } + } + + protected void composeCitationClassificationComponent(String name, Citation.CitationClassificationComponent element) throws IOException { + if (element != null) { + open(name); + composeCitationClassificationComponentProperties(element); + close(); + } + } + + protected void composeCitationClassificationComponentProperties(Citation.CitationClassificationComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasClassifier()) { + openArray("classifier"); + for (CodeableConcept e : element.getClassifier()) + composeCodeableConcept(null, e); + closeArray(); + }; + } + + protected void composeCitationStatusDateComponent(String name, Citation.CitationStatusDateComponent element) throws IOException { + if (element != null) { + open(name); + composeCitationStatusDateComponentProperties(element); + close(); + } + } + + protected void composeCitationStatusDateComponentProperties(Citation.CitationStatusDateComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasActivity()) { + composeCodeableConcept("activity", element.getActivity()); + } + if (element.hasActualElement()) { + composeBooleanCore("actual", element.getActualElement(), false); + composeBooleanExtras("actual", element.getActualElement(), false); + } + if (element.hasPeriod()) { + composePeriod("period", element.getPeriod()); + } + } + + protected void composeCitationRelatesToComponent(String name, Citation.CitationRelatesToComponent element) throws IOException { + if (element != null) { + open(name); + composeCitationRelatesToComponentProperties(element); + close(); + } + } + + protected void composeCitationRelatesToComponentProperties(Citation.CitationRelatesToComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasRelationshipType()) { + composeCodeableConcept("relationshipType", element.getRelationshipType()); + } + if (element.hasTargetClassifier()) { + openArray("targetClassifier"); + for (CodeableConcept e : element.getTargetClassifier()) + composeCodeableConcept(null, e); + closeArray(); + }; + if (element.hasTarget()) { + composeType("target", element.getTarget()); + } + } + + protected void composeCitationCitedArtifactComponent(String name, Citation.CitationCitedArtifactComponent element) throws IOException { + if (element != null) { + open(name); + composeCitationCitedArtifactComponentProperties(element); + close(); + } + } + + protected void composeCitationCitedArtifactComponentProperties(Citation.CitationCitedArtifactComponent element) throws IOException { + composeBackboneElementProperties(element); if (element.hasIdentifier()) { openArray("identifier"); for (Identifier e : element.getIdentifier()) @@ -37920,114 +39095,131 @@ public class JsonParser extends JsonParserBase { composeIdentifier(null, e); closeArray(); }; - if (element.hasSummary()) { - openArray("summary"); - for (Citation.CitationSummaryComponent e : element.getSummary()) - composeCitationSummaryComponent(null, e); - closeArray(); - }; - if (element.hasDateCitedElement()) { - composeDateTimeCore("dateCited", element.getDateCitedElement(), false); - composeDateTimeExtras("dateCited", element.getDateCitedElement(), false); + if (element.hasDateAccessedElement()) { + composeDateTimeCore("dateAccessed", element.getDateAccessedElement(), false); + composeDateTimeExtras("dateAccessed", element.getDateAccessedElement(), false); } - if (element.hasVariantCitation()) { - composeCitationVariantCitationComponent("variantCitation", element.getVariantCitation()); + if (element.hasVersion()) { + composeCitationCitedArtifactVersionComponent("version", element.getVersion()); } - if (element.hasPublishingModel()) { - composeCodeableConcept("publishingModel", element.getPublishingModel()); - } - if (element.hasJournal()) { - composeCitationJournalComponent("journal", element.getJournal()); - } - if (element.hasPublicationInfo()) { - composeCitationPublicationInfoComponent("publicationInfo", element.getPublicationInfo()); - } - if (element.hasArticleTitleElement()) { - composeMarkdownCore("articleTitle", element.getArticleTitleElement(), false); - composeMarkdownExtras("articleTitle", element.getArticleTitleElement(), false); - } - if (element.hasAlternativeTitle()) { - openArray("alternativeTitle"); - for (Citation.CitationAlternativeTitleComponent e : element.getAlternativeTitle()) - composeCitationAlternativeTitleComponent(null, e); - closeArray(); - }; - if (element.hasPagination()) { - composeCitationPaginationComponent("pagination", element.getPagination()); - } - if (element.hasArticleUrl()) { - openArray("articleUrl"); - for (Citation.CitationArticleUrlComponent e : element.getArticleUrl()) - composeCitationArticleUrlComponent(null, e); - closeArray(); - }; - if (element.hasAbstractElement()) { - composeMarkdownCore("abstract", element.getAbstractElement(), false); - composeMarkdownExtras("abstract", element.getAbstractElement(), false); - } - if (element.hasAbstractCopyrightElement()) { - composeMarkdownCore("abstractCopyright", element.getAbstractCopyrightElement(), false); - composeMarkdownExtras("abstractCopyright", element.getAbstractCopyrightElement(), false); - } - if (element.hasAlternativeAbstract()) { - openArray("alternativeAbstract"); - for (Citation.CitationAlternativeAbstractComponent e : element.getAlternativeAbstract()) - composeCitationAlternativeAbstractComponent(null, e); - closeArray(); - }; - if (element.hasContributorship()) { - composeCitationContributorshipComponent("contributorship", element.getContributorship()); - } - if (element.hasArticleLanguage()) { - composeCodeableConcept("articleLanguage", element.getArticleLanguage()); - } - if (element.hasAlternativeForm()) { - openArray("alternativeForm"); - for (Citation.CitationAlternativeFormComponent e : element.getAlternativeForm()) - composeCitationAlternativeFormComponent(null, e); - closeArray(); - }; - if (element.hasClassifier()) { - openArray("classifier"); - for (CodeableConcept e : element.getClassifier()) + if (element.hasCurrentState()) { + openArray("currentState"); + for (CodeableConcept e : element.getCurrentState()) composeCodeableConcept(null, e); closeArray(); }; - if (element.hasKeywordList()) { - openArray("keywordList"); - for (Citation.CitationKeywordListComponent e : element.getKeywordList()) - composeCitationKeywordListComponent(null, e); + if (element.hasStatusDate()) { + openArray("statusDate"); + for (Citation.CitationCitedArtifactStatusDateComponent e : element.getStatusDate()) + composeCitationCitedArtifactStatusDateComponent(null, e); closeArray(); }; - if (element.hasRelatedArtifact()) { - openArray("relatedArtifact"); - for (RelatedArtifact e : element.getRelatedArtifact()) - composeRelatedArtifact(null, e); + if (element.hasTitle()) { + openArray("title"); + for (Citation.CitationCitedArtifactTitleComponent e : element.getTitle()) + composeCitationCitedArtifactTitleComponent(null, e); closeArray(); }; + if (element.hasAbstract()) { + openArray("abstract"); + for (Citation.CitationCitedArtifactAbstractComponent e : element.getAbstract()) + composeCitationCitedArtifactAbstractComponent(null, e); + closeArray(); + }; + if (element.hasPart()) { + composeCitationCitedArtifactPartComponent("part", element.getPart()); + } + if (element.hasRelatesTo()) { + openArray("relatesTo"); + for (Citation.CitationCitedArtifactRelatesToComponent e : element.getRelatesTo()) + composeCitationCitedArtifactRelatesToComponent(null, e); + closeArray(); + }; + if (element.hasPublicationForm()) { + openArray("publicationForm"); + for (Citation.CitationCitedArtifactPublicationFormComponent e : element.getPublicationForm()) + composeCitationCitedArtifactPublicationFormComponent(null, e); + closeArray(); + }; + if (element.hasWebLocation()) { + openArray("webLocation"); + for (Citation.CitationCitedArtifactWebLocationComponent e : element.getWebLocation()) + composeCitationCitedArtifactWebLocationComponent(null, e); + closeArray(); + }; + if (element.hasClassification()) { + openArray("classification"); + for (Citation.CitationCitedArtifactClassificationComponent e : element.getClassification()) + composeCitationCitedArtifactClassificationComponent(null, e); + closeArray(); + }; + if (element.hasContributorship()) { + composeCitationCitedArtifactContributorshipComponent("contributorship", element.getContributorship()); + } if (element.hasNote()) { openArray("note"); for (Annotation e : element.getNote()) composeAnnotation(null, e); closeArray(); }; - if (element.hasMedlinePubMed()) { - composeCitationMedlinePubMedComponent("medlinePubMed", element.getMedlinePubMed()); - } } - protected void composeCitationSummaryComponent(String name, Citation.CitationSummaryComponent element) throws IOException { + protected void composeCitationCitedArtifactVersionComponent(String name, Citation.CitationCitedArtifactVersionComponent element) throws IOException { if (element != null) { open(name); - composeCitationSummaryComponentProperties(element); + composeCitationCitedArtifactVersionComponentProperties(element); close(); } } - protected void composeCitationSummaryComponentProperties(Citation.CitationSummaryComponent element) throws IOException { + protected void composeCitationCitedArtifactVersionComponentProperties(Citation.CitationCitedArtifactVersionComponent element) throws IOException { composeBackboneElementProperties(element); - if (element.hasStyle()) { - composeCodeableConcept("style", element.getStyle()); + if (element.hasValueElement()) { + composeStringCore("value", element.getValueElement(), false); + composeStringExtras("value", element.getValueElement(), false); + } + if (element.hasBaseCitation()) { + composeReference("baseCitation", element.getBaseCitation()); + } + } + + protected void composeCitationCitedArtifactStatusDateComponent(String name, Citation.CitationCitedArtifactStatusDateComponent element) throws IOException { + if (element != null) { + open(name); + composeCitationCitedArtifactStatusDateComponentProperties(element); + close(); + } + } + + protected void composeCitationCitedArtifactStatusDateComponentProperties(Citation.CitationCitedArtifactStatusDateComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasActivity()) { + composeCodeableConcept("activity", element.getActivity()); + } + if (element.hasActualElement()) { + composeBooleanCore("actual", element.getActualElement(), false); + composeBooleanExtras("actual", element.getActualElement(), false); + } + if (element.hasPeriod()) { + composePeriod("period", element.getPeriod()); + } + } + + protected void composeCitationCitedArtifactTitleComponent(String name, Citation.CitationCitedArtifactTitleComponent element) throws IOException { + if (element != null) { + open(name); + composeCitationCitedArtifactTitleComponentProperties(element); + close(); + } + } + + protected void composeCitationCitedArtifactTitleComponentProperties(Citation.CitationCitedArtifactTitleComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasLanguage()) { + composeCodeableConcept("language", element.getLanguage()); } if (element.hasTextElement()) { composeMarkdownCore("text", element.getTextElement(), false); @@ -38035,15 +39227,41 @@ public class JsonParser extends JsonParserBase { } } - protected void composeCitationVariantCitationComponent(String name, Citation.CitationVariantCitationComponent element) throws IOException { + protected void composeCitationCitedArtifactAbstractComponent(String name, Citation.CitationCitedArtifactAbstractComponent element) throws IOException { if (element != null) { open(name); - composeCitationVariantCitationComponentProperties(element); + composeCitationCitedArtifactAbstractComponentProperties(element); close(); } } - protected void composeCitationVariantCitationComponentProperties(Citation.CitationVariantCitationComponent element) throws IOException { + protected void composeCitationCitedArtifactAbstractComponentProperties(Citation.CitationCitedArtifactAbstractComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasLanguage()) { + composeCodeableConcept("language", element.getLanguage()); + } + if (element.hasTextElement()) { + composeMarkdownCore("text", element.getTextElement(), false); + composeMarkdownExtras("text", element.getTextElement(), false); + } + if (element.hasCopyrightElement()) { + composeMarkdownCore("copyright", element.getCopyrightElement(), false); + composeMarkdownExtras("copyright", element.getCopyrightElement(), false); + } + } + + protected void composeCitationCitedArtifactPartComponent(String name, Citation.CitationCitedArtifactPartComponent element) throws IOException { + if (element != null) { + open(name); + composeCitationCitedArtifactPartComponentProperties(element); + close(); + } + } + + protected void composeCitationCitedArtifactPartComponentProperties(Citation.CitationCitedArtifactPartComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasType()) { composeCodeableConcept("type", element.getType()); @@ -38057,44 +39275,127 @@ public class JsonParser extends JsonParserBase { } } - protected void composeCitationJournalComponent(String name, Citation.CitationJournalComponent element) throws IOException { + protected void composeCitationCitedArtifactRelatesToComponent(String name, Citation.CitationCitedArtifactRelatesToComponent element) throws IOException { if (element != null) { open(name); - composeCitationJournalComponentProperties(element); + composeCitationCitedArtifactRelatesToComponentProperties(element); close(); } } - protected void composeCitationJournalComponentProperties(Citation.CitationJournalComponent element) throws IOException { + protected void composeCitationCitedArtifactRelatesToComponentProperties(Citation.CitationCitedArtifactRelatesToComponent element) throws IOException { composeBackboneElementProperties(element); + if (element.hasRelationshipType()) { + composeCodeableConcept("relationshipType", element.getRelationshipType()); + } + if (element.hasTargetClassifier()) { + openArray("targetClassifier"); + for (CodeableConcept e : element.getTargetClassifier()) + composeCodeableConcept(null, e); + closeArray(); + }; + if (element.hasTarget()) { + composeType("target", element.getTarget()); + } + } + + protected void composeCitationCitedArtifactPublicationFormComponent(String name, Citation.CitationCitedArtifactPublicationFormComponent element) throws IOException { + if (element != null) { + open(name); + composeCitationCitedArtifactPublicationFormComponentProperties(element); + close(); + } + } + + protected void composeCitationCitedArtifactPublicationFormComponentProperties(Citation.CitationCitedArtifactPublicationFormComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasPublishedIn()) { + composeCitationCitedArtifactPublicationFormPublishedInComponent("publishedIn", element.getPublishedIn()); + } + if (element.hasPeriodicRelease()) { + composeCitationCitedArtifactPublicationFormPeriodicReleaseComponent("periodicRelease", element.getPeriodicRelease()); + } + if (element.hasArticleDateElement()) { + composeDateTimeCore("articleDate", element.getArticleDateElement(), false); + composeDateTimeExtras("articleDate", element.getArticleDateElement(), false); + } + if (element.hasLastRevisionDateElement()) { + composeDateTimeCore("lastRevisionDate", element.getLastRevisionDateElement(), false); + composeDateTimeExtras("lastRevisionDate", element.getLastRevisionDateElement(), false); + } + if (element.hasLanguage()) { + openArray("language"); + for (CodeableConcept e : element.getLanguage()) + composeCodeableConcept(null, e); + closeArray(); + }; + if (element.hasAccessionNumberElement()) { + composeStringCore("accessionNumber", element.getAccessionNumberElement(), false); + composeStringExtras("accessionNumber", element.getAccessionNumberElement(), false); + } + if (element.hasPageStringElement()) { + composeStringCore("pageString", element.getPageStringElement(), false); + composeStringExtras("pageString", element.getPageStringElement(), false); + } + if (element.hasFirstPageElement()) { + composeStringCore("firstPage", element.getFirstPageElement(), false); + composeStringExtras("firstPage", element.getFirstPageElement(), false); + } + if (element.hasLastPageElement()) { + composeStringCore("lastPage", element.getLastPageElement(), false); + composeStringExtras("lastPage", element.getLastPageElement(), false); + } + if (element.hasPageCountElement()) { + composeStringCore("pageCount", element.getPageCountElement(), false); + composeStringExtras("pageCount", element.getPageCountElement(), false); + } + if (element.hasCopyrightElement()) { + composeMarkdownCore("copyright", element.getCopyrightElement(), false); + composeMarkdownExtras("copyright", element.getCopyrightElement(), false); + } + } + + protected void composeCitationCitedArtifactPublicationFormPublishedInComponent(String name, Citation.CitationCitedArtifactPublicationFormPublishedInComponent element) throws IOException { + if (element != null) { + open(name); + composeCitationCitedArtifactPublicationFormPublishedInComponentProperties(element); + close(); + } + } + + protected void composeCitationCitedArtifactPublicationFormPublishedInComponentProperties(Citation.CitationCitedArtifactPublicationFormPublishedInComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } if (element.hasIdentifier()) { openArray("identifier"); for (Identifier e : element.getIdentifier()) composeIdentifier(null, e); closeArray(); }; - if (element.hasCountryElement()) { - composeStringCore("country", element.getCountryElement(), false); - composeStringExtras("country", element.getCountryElement(), false); - } - if (element.hasJournalIssue()) { - composeCitationJournalJournalIssueComponent("journalIssue", element.getJournalIssue()); - } if (element.hasTitleElement()) { composeStringCore("title", element.getTitleElement(), false); composeStringExtras("title", element.getTitleElement(), false); } + if (element.hasPublisher()) { + composeReference("publisher", element.getPublisher()); + } + if (element.hasPublisherLocationElement()) { + composeStringCore("publisherLocation", element.getPublisherLocationElement(), false); + composeStringExtras("publisherLocation", element.getPublisherLocationElement(), false); + } } - protected void composeCitationJournalJournalIssueComponent(String name, Citation.CitationJournalJournalIssueComponent element) throws IOException { + protected void composeCitationCitedArtifactPublicationFormPeriodicReleaseComponent(String name, Citation.CitationCitedArtifactPublicationFormPeriodicReleaseComponent element) throws IOException { if (element != null) { open(name); - composeCitationJournalJournalIssueComponentProperties(element); + composeCitationCitedArtifactPublicationFormPeriodicReleaseComponentProperties(element); close(); } } - protected void composeCitationJournalJournalIssueComponentProperties(Citation.CitationJournalJournalIssueComponent element) throws IOException { + protected void composeCitationCitedArtifactPublicationFormPeriodicReleaseComponentProperties(Citation.CitationCitedArtifactPublicationFormPeriodicReleaseComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasCitedMedium()) { composeCodeableConcept("citedMedium", element.getCitedMedium()); @@ -38107,20 +39408,20 @@ public class JsonParser extends JsonParserBase { composeStringCore("issue", element.getIssueElement(), false); composeStringExtras("issue", element.getIssueElement(), false); } - if (element.hasPublicationDate()) { - composeCitationJournalJournalIssuePublicationDateComponent("publicationDate", element.getPublicationDate()); + if (element.hasDateOfPublication()) { + composeCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent("dateOfPublication", element.getDateOfPublication()); } } - protected void composeCitationJournalJournalIssuePublicationDateComponent(String name, Citation.CitationJournalJournalIssuePublicationDateComponent element) throws IOException { + protected void composeCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent(String name, Citation.CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent element) throws IOException { if (element != null) { open(name); - composeCitationJournalJournalIssuePublicationDateComponentProperties(element); + composeCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponentProperties(element); close(); } } - protected void composeCitationJournalJournalIssuePublicationDateComponentProperties(Citation.CitationJournalJournalIssuePublicationDateComponent element) throws IOException { + protected void composeCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponentProperties(Citation.CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasDateElement()) { composeDateCore("date", element.getDateElement(), false); @@ -38148,124 +39449,15 @@ public class JsonParser extends JsonParserBase { } } - protected void composeCitationPublicationInfoComponent(String name, Citation.CitationPublicationInfoComponent element) throws IOException { + protected void composeCitationCitedArtifactWebLocationComponent(String name, Citation.CitationCitedArtifactWebLocationComponent element) throws IOException { if (element != null) { open(name); - composeCitationPublicationInfoComponentProperties(element); + composeCitationCitedArtifactWebLocationComponentProperties(element); close(); } } - protected void composeCitationPublicationInfoComponentProperties(Citation.CitationPublicationInfoComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasPublishedIn()) { - composeCitationPublicationInfoPublishedInComponent("publishedIn", element.getPublishedIn()); - } - if (element.hasEntryDateElement()) { - composeDateTimeCore("entryDate", element.getEntryDateElement(), false); - composeDateTimeExtras("entryDate", element.getEntryDateElement(), false); - } - if (element.hasRevisionDateElement()) { - composeDateTimeCore("revisionDate", element.getRevisionDateElement(), false); - composeDateTimeExtras("revisionDate", element.getRevisionDateElement(), false); - } - if (element.hasPageCountElement()) { - composeStringCore("pageCount", element.getPageCountElement(), false); - composeStringExtras("pageCount", element.getPageCountElement(), false); - } - } - - protected void composeCitationPublicationInfoPublishedInComponent(String name, Citation.CitationPublicationInfoPublishedInComponent element) throws IOException { - if (element != null) { - open(name); - composeCitationPublicationInfoPublishedInComponentProperties(element); - close(); - } - } - - protected void composeCitationPublicationInfoPublishedInComponentProperties(Citation.CitationPublicationInfoPublishedInComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasType()) { - composeCodeableConcept("type", element.getType()); - } - if (element.hasIdentifier()) { - openArray("identifier"); - for (Identifier e : element.getIdentifier()) - composeIdentifier(null, e); - closeArray(); - }; - if (element.hasNameElement()) { - composeStringCore("name", element.getNameElement(), false); - composeStringExtras("name", element.getNameElement(), false); - } - if (element.hasPublisher()) { - composeReference("publisher", element.getPublisher()); - } - if (element.hasPublisherLocationElement()) { - composeStringCore("publisherLocation", element.getPublisherLocationElement(), false); - composeStringExtras("publisherLocation", element.getPublisherLocationElement(), false); - } - if (element.hasStartDateElement()) { - composeDateCore("startDate", element.getStartDateElement(), false); - composeDateExtras("startDate", element.getStartDateElement(), false); - } - } - - protected void composeCitationAlternativeTitleComponent(String name, Citation.CitationAlternativeTitleComponent element) throws IOException { - if (element != null) { - open(name); - composeCitationAlternativeTitleComponentProperties(element); - close(); - } - } - - protected void composeCitationAlternativeTitleComponentProperties(Citation.CitationAlternativeTitleComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasType()) { - composeCodeableConcept("type", element.getType()); - } - if (element.hasLanguage()) { - composeCodeableConcept("language", element.getLanguage()); - } - if (element.hasTitleElement()) { - composeMarkdownCore("title", element.getTitleElement(), false); - composeMarkdownExtras("title", element.getTitleElement(), false); - } - } - - protected void composeCitationPaginationComponent(String name, Citation.CitationPaginationComponent element) throws IOException { - if (element != null) { - open(name); - composeCitationPaginationComponentProperties(element); - close(); - } - } - - protected void composeCitationPaginationComponentProperties(Citation.CitationPaginationComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasPageStringElement()) { - composeStringCore("pageString", element.getPageStringElement(), false); - composeStringExtras("pageString", element.getPageStringElement(), false); - } - if (element.hasFirstPageElement()) { - composeStringCore("firstPage", element.getFirstPageElement(), false); - composeStringExtras("firstPage", element.getFirstPageElement(), false); - } - if (element.hasLastPageElement()) { - composeStringCore("lastPage", element.getLastPageElement(), false); - composeStringExtras("lastPage", element.getLastPageElement(), false); - } - } - - protected void composeCitationArticleUrlComponent(String name, Citation.CitationArticleUrlComponent element) throws IOException { - if (element != null) { - open(name); - composeCitationArticleUrlComponentProperties(element); - close(); - } - } - - protected void composeCitationArticleUrlComponentProperties(Citation.CitationArticleUrlComponent element) throws IOException { + protected void composeCitationCitedArtifactWebLocationComponentProperties(Citation.CitationCitedArtifactWebLocationComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasType()) { composeCodeableConcept("type", element.getType()); @@ -38276,41 +39468,68 @@ public class JsonParser extends JsonParserBase { } } - protected void composeCitationAlternativeAbstractComponent(String name, Citation.CitationAlternativeAbstractComponent element) throws IOException { + protected void composeCitationCitedArtifactClassificationComponent(String name, Citation.CitationCitedArtifactClassificationComponent element) throws IOException { if (element != null) { open(name); - composeCitationAlternativeAbstractComponentProperties(element); + composeCitationCitedArtifactClassificationComponentProperties(element); close(); } } - protected void composeCitationAlternativeAbstractComponentProperties(Citation.CitationAlternativeAbstractComponent element) throws IOException { + protected void composeCitationCitedArtifactClassificationComponentProperties(Citation.CitationCitedArtifactClassificationComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasType()) { composeCodeableConcept("type", element.getType()); } - if (element.hasLanguage()) { - composeCodeableConcept("language", element.getLanguage()); - } - if (element.hasAbstractElement()) { - composeMarkdownCore("abstract", element.getAbstractElement(), false); - composeMarkdownExtras("abstract", element.getAbstractElement(), false); - } - if (element.hasAbstractCopyrightElement()) { - composeMarkdownCore("abstractCopyright", element.getAbstractCopyrightElement(), false); - composeMarkdownExtras("abstractCopyright", element.getAbstractCopyrightElement(), false); + if (element.hasClassifier()) { + openArray("classifier"); + for (CodeableConcept e : element.getClassifier()) + composeCodeableConcept(null, e); + closeArray(); + }; + if (element.hasWhoClassified()) { + composeCitationCitedArtifactClassificationWhoClassifiedComponent("whoClassified", element.getWhoClassified()); } } - protected void composeCitationContributorshipComponent(String name, Citation.CitationContributorshipComponent element) throws IOException { + protected void composeCitationCitedArtifactClassificationWhoClassifiedComponent(String name, Citation.CitationCitedArtifactClassificationWhoClassifiedComponent element) throws IOException { if (element != null) { open(name); - composeCitationContributorshipComponentProperties(element); + composeCitationCitedArtifactClassificationWhoClassifiedComponentProperties(element); close(); } } - protected void composeCitationContributorshipComponentProperties(Citation.CitationContributorshipComponent element) throws IOException { + protected void composeCitationCitedArtifactClassificationWhoClassifiedComponentProperties(Citation.CitationCitedArtifactClassificationWhoClassifiedComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasPerson()) { + composeReference("person", element.getPerson()); + } + if (element.hasOrganization()) { + composeReference("organization", element.getOrganization()); + } + if (element.hasPublisher()) { + composeReference("publisher", element.getPublisher()); + } + if (element.hasClassifierCopyrightElement()) { + composeStringCore("classifierCopyright", element.getClassifierCopyrightElement(), false); + composeStringExtras("classifierCopyright", element.getClassifierCopyrightElement(), false); + } + if (element.hasFreeToShareElement()) { + composeBooleanCore("freeToShare", element.getFreeToShareElement(), false); + composeBooleanExtras("freeToShare", element.getFreeToShareElement(), false); + } + } + + protected void composeCitationCitedArtifactContributorshipComponent(String name, Citation.CitationCitedArtifactContributorshipComponent element) throws IOException { + if (element != null) { + open(name); + composeCitationCitedArtifactContributorshipComponentProperties(element); + close(); + } + } + + protected void composeCitationCitedArtifactContributorshipComponentProperties(Citation.CitationCitedArtifactContributorshipComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasCompleteElement()) { composeBooleanCore("complete", element.getCompleteElement(), false); @@ -38318,27 +39537,27 @@ public class JsonParser extends JsonParserBase { } if (element.hasEntry()) { openArray("entry"); - for (Citation.CitationContributorshipEntryComponent e : element.getEntry()) - composeCitationContributorshipEntryComponent(null, e); + for (Citation.CitationCitedArtifactContributorshipEntryComponent e : element.getEntry()) + composeCitationCitedArtifactContributorshipEntryComponent(null, e); closeArray(); }; if (element.hasSummary()) { openArray("summary"); - for (Citation.CitationContributorshipSummaryComponent e : element.getSummary()) - composeCitationContributorshipSummaryComponent(null, e); + for (Citation.CitationCitedArtifactContributorshipSummaryComponent e : element.getSummary()) + composeCitationCitedArtifactContributorshipSummaryComponent(null, e); closeArray(); }; } - protected void composeCitationContributorshipEntryComponent(String name, Citation.CitationContributorshipEntryComponent element) throws IOException { + protected void composeCitationCitedArtifactContributorshipEntryComponent(String name, Citation.CitationCitedArtifactContributorshipEntryComponent element) throws IOException { if (element != null) { open(name); - composeCitationContributorshipEntryComponentProperties(element); + composeCitationCitedArtifactContributorshipEntryComponentProperties(element); close(); } } - protected void composeCitationContributorshipEntryComponentProperties(Citation.CitationContributorshipEntryComponent element) throws IOException { + protected void composeCitationCitedArtifactContributorshipEntryComponentProperties(Citation.CitationCitedArtifactContributorshipEntryComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasName()) { composeHumanName("name", element.getName()); @@ -38359,15 +39578,15 @@ public class JsonParser extends JsonParserBase { }; if (element.hasAffiliationInfo()) { openArray("affiliationInfo"); - for (Citation.CitationContributorshipEntryAffiliationInfoComponent e : element.getAffiliationInfo()) - composeCitationContributorshipEntryAffiliationInfoComponent(null, e); + for (Citation.CitationCitedArtifactContributorshipEntryAffiliationInfoComponent e : element.getAffiliationInfo()) + composeCitationCitedArtifactContributorshipEntryAffiliationInfoComponent(null, e); closeArray(); }; if (element.hasAddress()) { openArray("address"); for (Address e : element.getAddress()) composeAddress(null, e); - closeArray(); + closeArray(); }; if (element.hasTelecom()) { openArray("telecom"); @@ -38375,19 +39594,24 @@ public class JsonParser extends JsonParserBase { composeContactPoint(null, e); closeArray(); }; - if (element.hasContribution()) { - openArray("contribution"); - for (CodeableConcept e : element.getContribution()) + if (element.hasContributionType()) { + openArray("contributionType"); + for (CodeableConcept e : element.getContributionType()) composeCodeableConcept(null, e); closeArray(); }; - if (element.hasNotAnAuthorElement()) { - composeBooleanCore("notAnAuthor", element.getNotAnAuthorElement(), false); - composeBooleanExtras("notAnAuthor", element.getNotAnAuthorElement(), false); + if (element.hasRole()) { + composeCodeableConcept("role", element.getRole()); } - if (element.hasCorrespondingAuthorElement()) { - composeBooleanCore("correspondingAuthor", element.getCorrespondingAuthorElement(), false); - composeBooleanExtras("correspondingAuthor", element.getCorrespondingAuthorElement(), false); + if (element.hasContributionInstance()) { + openArray("contributionInstance"); + for (Citation.CitationCitedArtifactContributorshipEntryContributionInstanceComponent e : element.getContributionInstance()) + composeCitationCitedArtifactContributorshipEntryContributionInstanceComponent(null, e); + closeArray(); + }; + if (element.hasCorrespondingContactElement()) { + composeBooleanCore("correspondingContact", element.getCorrespondingContactElement(), false); + composeBooleanExtras("correspondingContact", element.getCorrespondingContactElement(), false); } if (element.hasListOrderElement()) { composePositiveIntCore("listOrder", element.getListOrderElement(), false); @@ -38395,15 +39619,15 @@ public class JsonParser extends JsonParserBase { } } - protected void composeCitationContributorshipEntryAffiliationInfoComponent(String name, Citation.CitationContributorshipEntryAffiliationInfoComponent element) throws IOException { + protected void composeCitationCitedArtifactContributorshipEntryAffiliationInfoComponent(String name, Citation.CitationCitedArtifactContributorshipEntryAffiliationInfoComponent element) throws IOException { if (element != null) { open(name); - composeCitationContributorshipEntryAffiliationInfoComponentProperties(element); + composeCitationCitedArtifactContributorshipEntryAffiliationInfoComponentProperties(element); close(); } } - protected void composeCitationContributorshipEntryAffiliationInfoComponentProperties(Citation.CitationContributorshipEntryAffiliationInfoComponent element) throws IOException { + protected void composeCitationCitedArtifactContributorshipEntryAffiliationInfoComponentProperties(Citation.CitationCitedArtifactContributorshipEntryAffiliationInfoComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasAffiliationElement()) { composeStringCore("affiliation", element.getAffiliationElement(), false); @@ -38421,15 +39645,34 @@ public class JsonParser extends JsonParserBase { }; } - protected void composeCitationContributorshipSummaryComponent(String name, Citation.CitationContributorshipSummaryComponent element) throws IOException { + protected void composeCitationCitedArtifactContributorshipEntryContributionInstanceComponent(String name, Citation.CitationCitedArtifactContributorshipEntryContributionInstanceComponent element) throws IOException { if (element != null) { open(name); - composeCitationContributorshipSummaryComponentProperties(element); + composeCitationCitedArtifactContributorshipEntryContributionInstanceComponentProperties(element); close(); } } - protected void composeCitationContributorshipSummaryComponentProperties(Citation.CitationContributorshipSummaryComponent element) throws IOException { + protected void composeCitationCitedArtifactContributorshipEntryContributionInstanceComponentProperties(Citation.CitationCitedArtifactContributorshipEntryContributionInstanceComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasTimeElement()) { + composeDateTimeCore("time", element.getTimeElement(), false); + composeDateTimeExtras("time", element.getTimeElement(), false); + } + } + + protected void composeCitationCitedArtifactContributorshipSummaryComponent(String name, Citation.CitationCitedArtifactContributorshipSummaryComponent element) throws IOException { + if (element != null) { + open(name); + composeCitationCitedArtifactContributorshipSummaryComponentProperties(element); + close(); + } + } + + protected void composeCitationCitedArtifactContributorshipSummaryComponentProperties(Citation.CitationCitedArtifactContributorshipSummaryComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasType()) { composeCodeableConcept("type", element.getType()); @@ -38446,315 +39689,6 @@ public class JsonParser extends JsonParserBase { } } - protected void composeCitationAlternativeFormComponent(String name, Citation.CitationAlternativeFormComponent element) throws IOException { - if (element != null) { - open(name); - composeCitationAlternativeFormComponentProperties(element); - close(); - } - } - - protected void composeCitationAlternativeFormComponentProperties(Citation.CitationAlternativeFormComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasPublishingModel()) { - composeCodeableConcept("publishingModel", element.getPublishingModel()); - } - if (element.hasLanguage()) { - composeCodeableConcept("language", element.getLanguage()); - } - if (element.hasJournalIssue()) { - composeCitationAlternativeFormJournalIssueComponent("journalIssue", element.getJournalIssue()); - } - if (element.hasPagination()) { - composeCitationAlternativeFormPaginationComponent("pagination", element.getPagination()); - } - if (element.hasPublicationInfo()) { - composeCitationAlternativeFormPublicationInfoComponent("publicationInfo", element.getPublicationInfo()); - } - } - - protected void composeCitationAlternativeFormJournalIssueComponent(String name, Citation.CitationAlternativeFormJournalIssueComponent element) throws IOException { - if (element != null) { - open(name); - composeCitationAlternativeFormJournalIssueComponentProperties(element); - close(); - } - } - - protected void composeCitationAlternativeFormJournalIssueComponentProperties(Citation.CitationAlternativeFormJournalIssueComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasCitedMedium()) { - composeCodeableConcept("citedMedium", element.getCitedMedium()); - } - if (element.hasVolumeElement()) { - composeStringCore("volume", element.getVolumeElement(), false); - composeStringExtras("volume", element.getVolumeElement(), false); - } - if (element.hasIssueElement()) { - composeStringCore("issue", element.getIssueElement(), false); - composeStringExtras("issue", element.getIssueElement(), false); - } - if (element.hasPublicationDate()) { - composeCitationAlternativeFormJournalIssuePublicationDateComponent("publicationDate", element.getPublicationDate()); - } - } - - protected void composeCitationAlternativeFormJournalIssuePublicationDateComponent(String name, Citation.CitationAlternativeFormJournalIssuePublicationDateComponent element) throws IOException { - if (element != null) { - open(name); - composeCitationAlternativeFormJournalIssuePublicationDateComponentProperties(element); - close(); - } - } - - protected void composeCitationAlternativeFormJournalIssuePublicationDateComponentProperties(Citation.CitationAlternativeFormJournalIssuePublicationDateComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasDateElement()) { - composeDateCore("date", element.getDateElement(), false); - composeDateExtras("date", element.getDateElement(), false); - } - if (element.hasYearElement()) { - composeStringCore("year", element.getYearElement(), false); - composeStringExtras("year", element.getYearElement(), false); - } - if (element.hasMonthElement()) { - composeStringCore("month", element.getMonthElement(), false); - composeStringExtras("month", element.getMonthElement(), false); - } - if (element.hasDayElement()) { - composeStringCore("day", element.getDayElement(), false); - composeStringExtras("day", element.getDayElement(), false); - } - if (element.hasSeasonElement()) { - composeStringCore("season", element.getSeasonElement(), false); - composeStringExtras("season", element.getSeasonElement(), false); - } - if (element.hasTextElement()) { - composeStringCore("text", element.getTextElement(), false); - composeStringExtras("text", element.getTextElement(), false); - } - } - - protected void composeCitationAlternativeFormPaginationComponent(String name, Citation.CitationAlternativeFormPaginationComponent element) throws IOException { - if (element != null) { - open(name); - composeCitationAlternativeFormPaginationComponentProperties(element); - close(); - } - } - - protected void composeCitationAlternativeFormPaginationComponentProperties(Citation.CitationAlternativeFormPaginationComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasPageStringElement()) { - composeStringCore("pageString", element.getPageStringElement(), false); - composeStringExtras("pageString", element.getPageStringElement(), false); - } - if (element.hasFirstPageElement()) { - composeStringCore("firstPage", element.getFirstPageElement(), false); - composeStringExtras("firstPage", element.getFirstPageElement(), false); - } - if (element.hasLastPageElement()) { - composeStringCore("lastPage", element.getLastPageElement(), false); - composeStringExtras("lastPage", element.getLastPageElement(), false); - } - } - - protected void composeCitationAlternativeFormPublicationInfoComponent(String name, Citation.CitationAlternativeFormPublicationInfoComponent element) throws IOException { - if (element != null) { - open(name); - composeCitationAlternativeFormPublicationInfoComponentProperties(element); - close(); - } - } - - protected void composeCitationAlternativeFormPublicationInfoComponentProperties(Citation.CitationAlternativeFormPublicationInfoComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasPublishedIn()) { - composeCitationAlternativeFormPublicationInfoPublishedInComponent("publishedIn", element.getPublishedIn()); - } - if (element.hasEntryDateElement()) { - composeDateTimeCore("entryDate", element.getEntryDateElement(), false); - composeDateTimeExtras("entryDate", element.getEntryDateElement(), false); - } - if (element.hasRevisionDateElement()) { - composeDateTimeCore("revisionDate", element.getRevisionDateElement(), false); - composeDateTimeExtras("revisionDate", element.getRevisionDateElement(), false); - } - if (element.hasPageCountElement()) { - composeStringCore("pageCount", element.getPageCountElement(), false); - composeStringExtras("pageCount", element.getPageCountElement(), false); - } - } - - protected void composeCitationAlternativeFormPublicationInfoPublishedInComponent(String name, Citation.CitationAlternativeFormPublicationInfoPublishedInComponent element) throws IOException { - if (element != null) { - open(name); - composeCitationAlternativeFormPublicationInfoPublishedInComponentProperties(element); - close(); - } - } - - protected void composeCitationAlternativeFormPublicationInfoPublishedInComponentProperties(Citation.CitationAlternativeFormPublicationInfoPublishedInComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasType()) { - composeCodeableConcept("type", element.getType()); - } - if (element.hasNameElement()) { - composeStringCore("name", element.getNameElement(), false); - composeStringExtras("name", element.getNameElement(), false); - } - if (element.hasPublisher()) { - composeReference("publisher", element.getPublisher()); - } - if (element.hasPublisherLocationElement()) { - composeStringCore("publisherLocation", element.getPublisherLocationElement(), false); - composeStringExtras("publisherLocation", element.getPublisherLocationElement(), false); - } - if (element.hasStartDateElement()) { - composeDateCore("startDate", element.getStartDateElement(), false); - composeDateExtras("startDate", element.getStartDateElement(), false); - } - } - - protected void composeCitationKeywordListComponent(String name, Citation.CitationKeywordListComponent element) throws IOException { - if (element != null) { - open(name); - composeCitationKeywordListComponentProperties(element); - close(); - } - } - - protected void composeCitationKeywordListComponentProperties(Citation.CitationKeywordListComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasOwnerElement()) { - composeStringCore("owner", element.getOwnerElement(), false); - composeStringExtras("owner", element.getOwnerElement(), false); - } - if (element.hasKeyword()) { - openArray("keyword"); - for (Citation.CitationKeywordListKeywordComponent e : element.getKeyword()) - composeCitationKeywordListKeywordComponent(null, e); - closeArray(); - }; - } - - protected void composeCitationKeywordListKeywordComponent(String name, Citation.CitationKeywordListKeywordComponent element) throws IOException { - if (element != null) { - open(name); - composeCitationKeywordListKeywordComponentProperties(element); - close(); - } - } - - protected void composeCitationKeywordListKeywordComponentProperties(Citation.CitationKeywordListKeywordComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasMajorTopicElement()) { - composeBooleanCore("majorTopic", element.getMajorTopicElement(), false); - composeBooleanExtras("majorTopic", element.getMajorTopicElement(), false); - } - if (element.hasValueElement()) { - composeStringCore("value", element.getValueElement(), false); - composeStringExtras("value", element.getValueElement(), false); - } - } - - protected void composeCitationMedlinePubMedComponent(String name, Citation.CitationMedlinePubMedComponent element) throws IOException { - if (element != null) { - open(name); - composeCitationMedlinePubMedComponentProperties(element); - close(); - } - } - - protected void composeCitationMedlinePubMedComponentProperties(Citation.CitationMedlinePubMedComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasMedlineState()) { - composeCodeableConcept("medlineState", element.getMedlineState()); - } - if (element.hasOwner()) { - composeCodeableConcept("owner", element.getOwner()); - } - if (element.hasPmidElement()) { - composePositiveIntCore("pmid", element.getPmidElement(), false); - composePositiveIntExtras("pmid", element.getPmidElement(), false); - } - if (element.hasPmidVersionElement()) { - composePositiveIntCore("pmidVersion", element.getPmidVersionElement(), false); - composePositiveIntExtras("pmidVersion", element.getPmidVersionElement(), false); - } - if (element.hasDateCreatedElement()) { - composeDateCore("dateCreated", element.getDateCreatedElement(), false); - composeDateExtras("dateCreated", element.getDateCreatedElement(), false); - } - if (element.hasDateCompletedElement()) { - composeDateCore("dateCompleted", element.getDateCompletedElement(), false); - composeDateExtras("dateCompleted", element.getDateCompletedElement(), false); - } - if (element.hasDateRevisedElement()) { - composeDateCore("dateRevised", element.getDateRevisedElement(), false); - composeDateExtras("dateRevised", element.getDateRevisedElement(), false); - } - if (element.hasPubMedPubDate()) { - openArray("pubMedPubDate"); - for (Citation.CitationMedlinePubMedPubMedPubDateComponent e : element.getPubMedPubDate()) - composeCitationMedlinePubMedPubMedPubDateComponent(null, e); - closeArray(); - }; - if (element.hasPublicationState()) { - composeCodeableConcept("publicationState", element.getPublicationState()); - } - if (element.hasRelatedArticle()) { - openArray("relatedArticle"); - for (Citation.CitationMedlinePubMedRelatedArticleComponent e : element.getRelatedArticle()) - composeCitationMedlinePubMedRelatedArticleComponent(null, e); - closeArray(); - }; - } - - protected void composeCitationMedlinePubMedPubMedPubDateComponent(String name, Citation.CitationMedlinePubMedPubMedPubDateComponent element) throws IOException { - if (element != null) { - open(name); - composeCitationMedlinePubMedPubMedPubDateComponentProperties(element); - close(); - } - } - - protected void composeCitationMedlinePubMedPubMedPubDateComponentProperties(Citation.CitationMedlinePubMedPubMedPubDateComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasPublicationState()) { - composeCodeableConcept("publicationState", element.getPublicationState()); - } - if (element.hasDateElement()) { - composeDateTimeCore("date", element.getDateElement(), false); - composeDateTimeExtras("date", element.getDateElement(), false); - } - } - - protected void composeCitationMedlinePubMedRelatedArticleComponent(String name, Citation.CitationMedlinePubMedRelatedArticleComponent element) throws IOException { - if (element != null) { - open(name); - composeCitationMedlinePubMedRelatedArticleComponentProperties(element); - close(); - } - } - - protected void composeCitationMedlinePubMedRelatedArticleComponentProperties(Citation.CitationMedlinePubMedRelatedArticleComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasCitationReference()) { - composeReference("citationReference", element.getCitationReference()); - } - if (element.hasCitationMarkdownElement()) { - composeMarkdownCore("citationMarkdown", element.getCitationMarkdownElement(), false); - composeMarkdownExtras("citationMarkdown", element.getCitationMarkdownElement(), false); - } - if (element.hasIdentifier()) { - openArray("identifier"); - for (Identifier e : element.getIdentifier()) - composeIdentifier(null, e); - closeArray(); - }; - } - protected void composeClaim(String name, Claim element) throws IOException { if (element != null) { prop("resourceType", name); @@ -39069,10 +40003,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasPreAuthRef()) { if (anyHasValue(element.getPreAuthRef())) { - openArray("preAuthRef"); - for (StringType e : element.getPreAuthRef()) + openArray("preAuthRef"); + for (StringType e : element.getPreAuthRef()) composeStringCore(null, e, e != element.getPreAuthRef().get(element.getPreAuthRef().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getPreAuthRef())) { openArray("_preAuthRef"); @@ -39124,10 +40058,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasCareTeamSequence()) { if (anyHasValue(element.getCareTeamSequence())) { - openArray("careTeamSequence"); - for (PositiveIntType e : element.getCareTeamSequence()) + openArray("careTeamSequence"); + for (PositiveIntType e : element.getCareTeamSequence()) composePositiveIntCore(null, e, e != element.getCareTeamSequence().get(element.getCareTeamSequence().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getCareTeamSequence())) { openArray("_careTeamSequence"); @@ -39138,10 +40072,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasDiagnosisSequence()) { if (anyHasValue(element.getDiagnosisSequence())) { - openArray("diagnosisSequence"); - for (PositiveIntType e : element.getDiagnosisSequence()) + openArray("diagnosisSequence"); + for (PositiveIntType e : element.getDiagnosisSequence()) composePositiveIntCore(null, e, e != element.getDiagnosisSequence().get(element.getDiagnosisSequence().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getDiagnosisSequence())) { openArray("_diagnosisSequence"); @@ -39152,10 +40086,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasProcedureSequence()) { if (anyHasValue(element.getProcedureSequence())) { - openArray("procedureSequence"); - for (PositiveIntType e : element.getProcedureSequence()) + openArray("procedureSequence"); + for (PositiveIntType e : element.getProcedureSequence()) composePositiveIntCore(null, e, e != element.getProcedureSequence().get(element.getProcedureSequence().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getProcedureSequence())) { openArray("_procedureSequence"); @@ -39166,10 +40100,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInformationSequence()) { if (anyHasValue(element.getInformationSequence())) { - openArray("informationSequence"); - for (PositiveIntType e : element.getInformationSequence()) + openArray("informationSequence"); + for (PositiveIntType e : element.getInformationSequence()) composePositiveIntCore(null, e, e != element.getInformationSequence().get(element.getInformationSequence().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInformationSequence())) { openArray("_informationSequence"); @@ -39506,10 +40440,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasNoteNumber()) { if (anyHasValue(element.getNoteNumber())) { - openArray("noteNumber"); - for (PositiveIntType e : element.getNoteNumber()) + openArray("noteNumber"); + for (PositiveIntType e : element.getNoteNumber()) composePositiveIntCore(null, e, e != element.getNoteNumber().get(element.getNoteNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNoteNumber())) { openArray("_noteNumber"); @@ -39573,10 +40507,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasNoteNumber()) { if (anyHasValue(element.getNoteNumber())) { - openArray("noteNumber"); - for (PositiveIntType e : element.getNoteNumber()) + openArray("noteNumber"); + for (PositiveIntType e : element.getNoteNumber()) composePositiveIntCore(null, e, e != element.getNoteNumber().get(element.getNoteNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNoteNumber())) { openArray("_noteNumber"); @@ -39615,10 +40549,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasNoteNumber()) { if (anyHasValue(element.getNoteNumber())) { - openArray("noteNumber"); - for (PositiveIntType e : element.getNoteNumber()) + openArray("noteNumber"); + for (PositiveIntType e : element.getNoteNumber()) composePositiveIntCore(null, e, e != element.getNoteNumber().get(element.getNoteNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNoteNumber())) { openArray("_noteNumber"); @@ -39647,10 +40581,10 @@ public class JsonParser extends JsonParserBase { composeBackboneElementProperties(element); if (element.hasItemSequence()) { if (anyHasValue(element.getItemSequence())) { - openArray("itemSequence"); - for (PositiveIntType e : element.getItemSequence()) + openArray("itemSequence"); + for (PositiveIntType e : element.getItemSequence()) composePositiveIntCore(null, e, e != element.getItemSequence().get(element.getItemSequence().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getItemSequence())) { openArray("_itemSequence"); @@ -39661,10 +40595,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasDetailSequence()) { if (anyHasValue(element.getDetailSequence())) { - openArray("detailSequence"); - for (PositiveIntType e : element.getDetailSequence()) + openArray("detailSequence"); + for (PositiveIntType e : element.getDetailSequence()) composePositiveIntCore(null, e, e != element.getDetailSequence().get(element.getDetailSequence().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getDetailSequence())) { openArray("_detailSequence"); @@ -39675,10 +40609,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasSubdetailSequence()) { if (anyHasValue(element.getSubdetailSequence())) { - openArray("subdetailSequence"); - for (PositiveIntType e : element.getSubdetailSequence()) + openArray("subdetailSequence"); + for (PositiveIntType e : element.getSubdetailSequence()) composePositiveIntCore(null, e, e != element.getSubdetailSequence().get(element.getSubdetailSequence().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getSubdetailSequence())) { openArray("_subdetailSequence"); @@ -39738,10 +40672,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasNoteNumber()) { if (anyHasValue(element.getNoteNumber())) { - openArray("noteNumber"); - for (PositiveIntType e : element.getNoteNumber()) + openArray("noteNumber"); + for (PositiveIntType e : element.getNoteNumber()) composePositiveIntCore(null, e, e != element.getNoteNumber().get(element.getNoteNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNoteNumber())) { openArray("_noteNumber"); @@ -39798,10 +40732,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasNoteNumber()) { if (anyHasValue(element.getNoteNumber())) { - openArray("noteNumber"); - for (PositiveIntType e : element.getNoteNumber()) + openArray("noteNumber"); + for (PositiveIntType e : element.getNoteNumber()) composePositiveIntCore(null, e, e != element.getNoteNumber().get(element.getNoteNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNoteNumber())) { openArray("_noteNumber"); @@ -39858,10 +40792,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasNoteNumber()) { if (anyHasValue(element.getNoteNumber())) { - openArray("noteNumber"); - for (PositiveIntType e : element.getNoteNumber()) + openArray("noteNumber"); + for (PositiveIntType e : element.getNoteNumber()) composePositiveIntCore(null, e, e != element.getNoteNumber().get(element.getNoteNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNoteNumber())) { openArray("_noteNumber"); @@ -40064,10 +40998,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasProtocol()) { if (anyHasValue(element.getProtocol())) { - openArray("protocol"); - for (UriType e : element.getProtocol()) + openArray("protocol"); + for (UriType e : element.getProtocol()) composeUriCore(null, e, e != element.getProtocol().get(element.getProtocol().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getProtocol())) { openArray("_protocol"); @@ -40197,15 +41131,15 @@ public class JsonParser extends JsonParserBase { protected void composeClinicalUseIssueContraindicationComponentProperties(ClinicalUseIssue.ClinicalUseIssueContraindicationComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasDiseaseSymptomProcedure()) { - composeCodeableConcept("diseaseSymptomProcedure", element.getDiseaseSymptomProcedure()); + composeCodeableReference("diseaseSymptomProcedure", element.getDiseaseSymptomProcedure()); } if (element.hasDiseaseStatus()) { - composeCodeableConcept("diseaseStatus", element.getDiseaseStatus()); + composeCodeableReference("diseaseStatus", element.getDiseaseStatus()); } if (element.hasComorbidity()) { openArray("comorbidity"); - for (CodeableConcept e : element.getComorbidity()) - composeCodeableConcept(null, e); + for (CodeableReference e : element.getComorbidity()) + composeCodeableReference(null, e); closeArray(); }; if (element.hasIndication()) { @@ -40232,11 +41166,11 @@ public class JsonParser extends JsonParserBase { protected void composeClinicalUseIssueContraindicationOtherTherapyComponentProperties(ClinicalUseIssue.ClinicalUseIssueContraindicationOtherTherapyComponent element) throws IOException { composeBackboneElementProperties(element); - if (element.hasTherapyRelationshipType()) { - composeCodeableConcept("therapyRelationshipType", element.getTherapyRelationshipType()); + if (element.hasRelationshipType()) { + composeCodeableConcept("relationshipType", element.getRelationshipType()); } - if (element.hasMedication()) { - composeType("medication", element.getMedication()); + if (element.hasTherapy()) { + composeCodeableReference("therapy", element.getTherapy()); } } @@ -40251,19 +41185,19 @@ public class JsonParser extends JsonParserBase { protected void composeClinicalUseIssueIndicationComponentProperties(ClinicalUseIssue.ClinicalUseIssueIndicationComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasDiseaseSymptomProcedure()) { - composeCodeableConcept("diseaseSymptomProcedure", element.getDiseaseSymptomProcedure()); + composeCodeableReference("diseaseSymptomProcedure", element.getDiseaseSymptomProcedure()); } if (element.hasDiseaseStatus()) { - composeCodeableConcept("diseaseStatus", element.getDiseaseStatus()); + composeCodeableReference("diseaseStatus", element.getDiseaseStatus()); } if (element.hasComorbidity()) { openArray("comorbidity"); - for (CodeableConcept e : element.getComorbidity()) - composeCodeableConcept(null, e); + for (CodeableReference e : element.getComorbidity()) + composeCodeableReference(null, e); closeArray(); }; if (element.hasIntendedEffect()) { - composeCodeableConcept("intendedEffect", element.getIntendedEffect()); + composeCodeableReference("intendedEffect", element.getIntendedEffect()); } if (element.hasDuration()) { composeQuantity("duration", element.getDuration()); @@ -40302,7 +41236,7 @@ public class JsonParser extends JsonParserBase { composeCodeableConcept("type", element.getType()); } if (element.hasEffect()) { - composeCodeableConcept("effect", element.getEffect()); + composeCodeableReference("effect", element.getEffect()); } if (element.hasIncidence()) { composeCodeableConcept("incidence", element.getIncidence()); @@ -40338,7 +41272,7 @@ public class JsonParser extends JsonParserBase { protected void composeClinicalUseIssueUndesirableEffectComponentProperties(ClinicalUseIssue.ClinicalUseIssueUndesirableEffectComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasSymptomConditionEffect()) { - composeCodeableConcept("symptomConditionEffect", element.getSymptomConditionEffect()); + composeCodeableReference("symptomConditionEffect", element.getSymptomConditionEffect()); } if (element.hasClassification()) { composeCodeableConcept("classification", element.getClassification()); @@ -40642,10 +41576,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesCanonical()) { if (anyHasValue(element.getInstantiatesCanonical())) { - openArray("instantiatesCanonical"); - for (CanonicalType e : element.getInstantiatesCanonical()) + openArray("instantiatesCanonical"); + for (CanonicalType e : element.getInstantiatesCanonical()) composeCanonicalCore(null, e, e != element.getInstantiatesCanonical().get(element.getInstantiatesCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesCanonical())) { openArray("_instantiatesCanonical"); @@ -40656,10 +41590,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesUri()) { if (anyHasValue(element.getInstantiatesUri())) { - openArray("instantiatesUri"); - for (UriType e : element.getInstantiatesUri()) + openArray("instantiatesUri"); + for (UriType e : element.getInstantiatesUri()) composeUriCore(null, e, e != element.getInstantiatesUri().get(element.getInstantiatesUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesUri())) { openArray("_instantiatesUri"); @@ -40813,6 +41747,10 @@ public class JsonParser extends JsonParserBase { if (element.hasStatusReason()) { composeCodeableConcept("statusReason", element.getStatusReason()); } + if (element.hasIntentElement()) { + composeEnumerationCore("intent", element.getIntentElement(), new Enumerations.RequestIntentEnumFactory(), false); + composeEnumerationExtras("intent", element.getIntentElement(), new Enumerations.RequestIntentEnumFactory(), false); + } if (element.hasCategory()) { openArray("category"); for (CodeableConcept e : element.getCategory()) @@ -40991,10 +41929,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasParam()) { if (anyHasValue(element.getParam())) { - openArray("param"); - for (StringType e : element.getParam()) + openArray("param"); + for (StringType e : element.getParam()) composeStringCore(null, e, e != element.getParam().get(element.getParam().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getParam())) { openArray("_param"); @@ -41223,8 +42161,11 @@ public class JsonParser extends JsonParserBase { composeUriExtras("url", element.getUrlElement(), false); } if (element.hasIdentifier()) { - composeIdentifier("identifier", element.getIdentifierFirstRep()); - } + openArray("identifier"); + for (Identifier e : element.getIdentifier()) + composeIdentifier(null, e); + closeArray(); + }; if (element.hasVersionElement()) { composeStringCore("version", element.getVersionElement(), false); composeStringExtras("version", element.getVersionElement(), false); @@ -41308,20 +42249,12 @@ public class JsonParser extends JsonParserBase { protected void composeConceptMapGroupComponentProperties(ConceptMap.ConceptMapGroupComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasSourceElement()) { - composeUriCore("source", element.getSourceElement(), false); - composeUriExtras("source", element.getSourceElement(), false); - } - if (element.hasSourceVersionElement()) { - composeStringCore("sourceVersion", element.getSourceVersionElement(), false); - composeStringExtras("sourceVersion", element.getSourceVersionElement(), false); + composeCanonicalCore("source", element.getSourceElement(), false); + composeCanonicalExtras("source", element.getSourceElement(), false); } if (element.hasTargetElement()) { - composeUriCore("target", element.getTargetElement(), false); - composeUriExtras("target", element.getTargetElement(), false); - } - if (element.hasTargetVersionElement()) { - composeStringCore("targetVersion", element.getTargetVersionElement(), false); - composeStringExtras("targetVersion", element.getTargetVersionElement(), false); + composeCanonicalCore("target", element.getTargetElement(), false); + composeCanonicalExtras("target", element.getTargetElement(), false); } if (element.hasElement()) { openArray("element"); @@ -41688,10 +42621,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasDefinition()) { if (anyHasValue(element.getDefinition())) { - openArray("definition"); - for (UriType e : element.getDefinition()) + openArray("definition"); + for (UriType e : element.getDefinition()) composeUriCore(null, e, e != element.getDefinition().get(element.getDefinition().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getDefinition())) { openArray("_definition"); @@ -41963,10 +42896,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasVerificationDate()) { if (anyHasValue(element.getVerificationDate())) { - openArray("verificationDate"); - for (DateTimeType e : element.getVerificationDate()) + openArray("verificationDate"); + for (DateTimeType e : element.getVerificationDate()) composeDateTimeCore(null, e, e != element.getVerificationDate().get(element.getVerificationDate().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getVerificationDate())) { openArray("_verificationDate"); @@ -42172,10 +43105,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasAlias()) { if (anyHasValue(element.getAlias())) { - openArray("alias"); - for (StringType e : element.getAlias()) + openArray("alias"); + for (StringType e : element.getAlias()) composeStringCore(null, e, e != element.getAlias().get(element.getAlias().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getAlias())) { openArray("_alias"); @@ -42359,10 +43292,10 @@ public class JsonParser extends JsonParserBase { composeBackboneElementProperties(element); if (element.hasNumber()) { if (anyHasValue(element.getNumber())) { - openArray("number"); - for (UnsignedIntType e : element.getNumber()) + openArray("number"); + for (UnsignedIntType e : element.getNumber()) composeUnsignedIntCore(null, e, e != element.getNumber().get(element.getNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNumber())) { openArray("_number"); @@ -42437,10 +43370,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasLinkId()) { if (anyHasValue(element.getLinkId())) { - openArray("linkId"); - for (StringType e : element.getLinkId()) + openArray("linkId"); + for (StringType e : element.getLinkId()) composeStringCore(null, e, e != element.getLinkId().get(element.getLinkId().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getLinkId())) { openArray("_linkId"); @@ -42451,10 +43384,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasSecurityLabelNumber()) { if (anyHasValue(element.getSecurityLabelNumber())) { - openArray("securityLabelNumber"); - for (UnsignedIntType e : element.getSecurityLabelNumber()) + openArray("securityLabelNumber"); + for (UnsignedIntType e : element.getSecurityLabelNumber()) composeUnsignedIntCore(null, e, e != element.getSecurityLabelNumber().get(element.getSecurityLabelNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getSecurityLabelNumber())) { openArray("_securityLabelNumber"); @@ -42569,10 +43502,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasLinkId()) { if (anyHasValue(element.getLinkId())) { - openArray("linkId"); - for (StringType e : element.getLinkId()) + openArray("linkId"); + for (StringType e : element.getLinkId()) composeStringCore(null, e, e != element.getLinkId().get(element.getLinkId().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getLinkId())) { openArray("_linkId"); @@ -42589,10 +43522,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasSecurityLabelNumber()) { if (anyHasValue(element.getSecurityLabelNumber())) { - openArray("securityLabelNumber"); - for (UnsignedIntType e : element.getSecurityLabelNumber()) + openArray("securityLabelNumber"); + for (UnsignedIntType e : element.getSecurityLabelNumber()) composeUnsignedIntCore(null, e, e != element.getSecurityLabelNumber().get(element.getSecurityLabelNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getSecurityLabelNumber())) { openArray("_securityLabelNumber"); @@ -42687,10 +43620,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasLinkId()) { if (anyHasValue(element.getLinkId())) { - openArray("linkId"); - for (StringType e : element.getLinkId()) + openArray("linkId"); + for (StringType e : element.getLinkId()) composeStringCore(null, e, e != element.getLinkId().get(element.getLinkId().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getLinkId())) { openArray("_linkId"); @@ -42701,10 +43634,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasSecurityLabelNumber()) { if (anyHasValue(element.getSecurityLabelNumber())) { - openArray("securityLabelNumber"); - for (UnsignedIntType e : element.getSecurityLabelNumber()) + openArray("securityLabelNumber"); + for (UnsignedIntType e : element.getSecurityLabelNumber()) composeUnsignedIntCore(null, e, e != element.getSecurityLabelNumber().get(element.getSecurityLabelNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getSecurityLabelNumber())) { openArray("_securityLabelNumber"); @@ -42743,10 +43676,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasLinkId()) { if (anyHasValue(element.getLinkId())) { - openArray("linkId"); - for (StringType e : element.getLinkId()) + openArray("linkId"); + for (StringType e : element.getLinkId()) composeStringCore(null, e, e != element.getLinkId().get(element.getLinkId().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getLinkId())) { openArray("_linkId"); @@ -42763,10 +43696,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasContextLinkId()) { if (anyHasValue(element.getContextLinkId())) { - openArray("contextLinkId"); - for (StringType e : element.getContextLinkId()) + openArray("contextLinkId"); + for (StringType e : element.getContextLinkId()) composeStringCore(null, e, e != element.getContextLinkId().get(element.getContextLinkId().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getContextLinkId())) { openArray("_contextLinkId"); @@ -42786,10 +43719,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasRequesterLinkId()) { if (anyHasValue(element.getRequesterLinkId())) { - openArray("requesterLinkId"); - for (StringType e : element.getRequesterLinkId()) + openArray("requesterLinkId"); + for (StringType e : element.getRequesterLinkId()) composeStringCore(null, e, e != element.getRequesterLinkId().get(element.getRequesterLinkId().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getRequesterLinkId())) { openArray("_requesterLinkId"); @@ -42812,10 +43745,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasPerformerLinkId()) { if (anyHasValue(element.getPerformerLinkId())) { - openArray("performerLinkId"); - for (StringType e : element.getPerformerLinkId()) + openArray("performerLinkId"); + for (StringType e : element.getPerformerLinkId()) composeStringCore(null, e, e != element.getPerformerLinkId().get(element.getPerformerLinkId().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getPerformerLinkId())) { openArray("_performerLinkId"); @@ -42832,10 +43765,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasReasonLinkId()) { if (anyHasValue(element.getReasonLinkId())) { - openArray("reasonLinkId"); - for (StringType e : element.getReasonLinkId()) + openArray("reasonLinkId"); + for (StringType e : element.getReasonLinkId()) composeStringCore(null, e, e != element.getReasonLinkId().get(element.getReasonLinkId().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getReasonLinkId())) { openArray("_reasonLinkId"); @@ -42852,10 +43785,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasSecurityLabelNumber()) { if (anyHasValue(element.getSecurityLabelNumber())) { - openArray("securityLabelNumber"); - for (UnsignedIntType e : element.getSecurityLabelNumber()) + openArray("securityLabelNumber"); + for (UnsignedIntType e : element.getSecurityLabelNumber()) composeUnsignedIntCore(null, e, e != element.getSecurityLabelNumber().get(element.getSecurityLabelNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getSecurityLabelNumber())) { openArray("_securityLabelNumber"); @@ -43237,10 +44170,10 @@ public class JsonParser extends JsonParserBase { composeBackboneElementProperties(element); if (element.hasSupportingInfoSequence()) { if (anyHasValue(element.getSupportingInfoSequence())) { - openArray("supportingInfoSequence"); - for (PositiveIntType e : element.getSupportingInfoSequence()) + openArray("supportingInfoSequence"); + for (PositiveIntType e : element.getSupportingInfoSequence()) composePositiveIntCore(null, e, e != element.getSupportingInfoSequence().get(element.getSupportingInfoSequence().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getSupportingInfoSequence())) { openArray("_supportingInfoSequence"); @@ -43350,8 +44283,8 @@ public class JsonParser extends JsonParserBase { composeReference("request", element.getRequest()); } if (element.hasOutcomeElement()) { - composeEnumerationCore("outcome", element.getOutcomeElement(), new Enumerations.ClaimProcessingCodesEnumFactory(), false); - composeEnumerationExtras("outcome", element.getOutcomeElement(), new Enumerations.ClaimProcessingCodesEnumFactory(), false); + composeEnumerationCore("outcome", element.getOutcomeElement(), new CoverageEligibilityResponse.EligibilityOutcomeEnumFactory(), false); + composeEnumerationExtras("outcome", element.getOutcomeElement(), new CoverageEligibilityResponse.EligibilityOutcomeEnumFactory(), false); } if (element.hasDispositionElement()) { composeStringCore("disposition", element.getDispositionElement(), false); @@ -43874,18 +44807,9 @@ public class JsonParser extends JsonParserBase { if (element.hasType()) { composeCodeableConcept("type", element.getType()); } - if (element.hasValueQuantity()) { - openArray("valueQuantity"); - for (Quantity e : element.getValueQuantity()) - composeQuantity(null, e); - closeArray(); - }; - if (element.hasValueCode()) { - openArray("valueCode"); - for (CodeableConcept e : element.getValueCode()) - composeCodeableConcept(null, e); - closeArray(); - }; + if (element.hasValue()) { + composeType("value", element.getValue()); + } } protected void composeDeviceOperationalStatusComponent(String name, Device.DeviceOperationalStatusComponent element) throws IOException { @@ -43965,27 +44889,34 @@ public class JsonParser extends JsonParserBase { composeStringExtras("modelNumber", element.getModelNumberElement(), false); } if (element.hasType()) { - composeCodeableConcept("type", element.getType()); - } + openArray("type"); + for (CodeableConcept e : element.getType()) + composeCodeableConcept(null, e); + closeArray(); + }; if (element.hasSpecialization()) { openArray("specialization"); for (DeviceDefinition.DeviceDefinitionSpecializationComponent e : element.getSpecialization()) composeDeviceDefinitionSpecializationComponent(null, e); closeArray(); }; - if (element.hasVersion()) { - if (anyHasValue(element.getVersion())) { - openArray("version"); - for (StringType e : element.getVersion()) - composeStringCore(null, e, e != element.getVersion().get(element.getVersion().size()-1)); + if (element.hasHasPart()) { + openArray("hasPart"); + for (DeviceDefinition.DeviceDefinitionHasPartComponent e : element.getHasPart()) + composeDeviceDefinitionHasPartComponent(null, e); + closeArray(); + }; + if (element.hasPackaging()) { + openArray("packaging"); + for (DeviceDefinition.DeviceDefinitionPackagingComponent e : element.getPackaging()) + composeDeviceDefinitionPackagingComponent(null, e); + closeArray(); + }; + if (element.hasVersion()) { + openArray("version"); + for (DeviceDefinition.DeviceDefinitionVersionComponent e : element.getVersion()) + composeDeviceDefinitionVersionComponent(null, e); closeArray(); - } - if (anyHasExtras(element.getVersion())) { - openArray("_version"); - for (StringType e : element.getVersion()) - composeStringExtras(null, e, true); - closeArray(); - } }; if (element.hasSafety()) { openArray("safety"); @@ -44039,9 +44970,6 @@ public class JsonParser extends JsonParserBase { composeAnnotation(null, e); closeArray(); }; - if (element.hasQuantity()) { - composeQuantity("quantity", element.getQuantity()); - } if (element.hasParentDevice()) { composeReference("parentDevice", element.getParentDevice()); } @@ -44117,6 +45045,133 @@ public class JsonParser extends JsonParserBase { } } + protected void composeDeviceDefinitionHasPartComponent(String name, DeviceDefinition.DeviceDefinitionHasPartComponent element) throws IOException { + if (element != null) { + open(name); + composeDeviceDefinitionHasPartComponentProperties(element); + close(); + } + } + + protected void composeDeviceDefinitionHasPartComponentProperties(DeviceDefinition.DeviceDefinitionHasPartComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasReference()) { + composeReference("reference", element.getReference()); + } + if (element.hasCountElement()) { + composeIntegerCore("count", element.getCountElement(), false); + composeIntegerExtras("count", element.getCountElement(), false); + } + } + + protected void composeDeviceDefinitionPackagingComponent(String name, DeviceDefinition.DeviceDefinitionPackagingComponent element) throws IOException { + if (element != null) { + open(name); + composeDeviceDefinitionPackagingComponentProperties(element); + close(); + } + } + + protected void composeDeviceDefinitionPackagingComponentProperties(DeviceDefinition.DeviceDefinitionPackagingComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasIdentifier()) { + composeIdentifier("identifier", element.getIdentifier()); + } + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasCountElement()) { + composeIntegerCore("count", element.getCountElement(), false); + composeIntegerExtras("count", element.getCountElement(), false); + } + if (element.hasDistributor()) { + openArray("distributor"); + for (DeviceDefinition.DeviceDefinitionPackagingDistributorComponent e : element.getDistributor()) + composeDeviceDefinitionPackagingDistributorComponent(null, e); + closeArray(); + }; + if (element.hasUdiDeviceIdentifier()) { + openArray("udiDeviceIdentifier"); + for (DeviceDefinition.DeviceDefinitionPackagingUdiDeviceIdentifierComponent e : element.getUdiDeviceIdentifier()) + composeDeviceDefinitionPackagingUdiDeviceIdentifierComponent(null, e); + closeArray(); + }; + if (element.hasPackaging()) { + openArray("packaging"); + for (DeviceDefinition.DeviceDefinitionPackagingComponent e : element.getPackaging()) + composeDeviceDefinitionPackagingComponent(null, e); + closeArray(); + }; + } + + protected void composeDeviceDefinitionPackagingDistributorComponent(String name, DeviceDefinition.DeviceDefinitionPackagingDistributorComponent element) throws IOException { + if (element != null) { + open(name); + composeDeviceDefinitionPackagingDistributorComponentProperties(element); + close(); + } + } + + protected void composeDeviceDefinitionPackagingDistributorComponentProperties(DeviceDefinition.DeviceDefinitionPackagingDistributorComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasNameElement()) { + composeStringCore("name", element.getNameElement(), false); + composeStringExtras("name", element.getNameElement(), false); + } + if (element.hasOrganizationReference()) { + openArray("organizationReference"); + for (Reference e : element.getOrganizationReference()) + composeReference(null, e); + closeArray(); + }; + } + + protected void composeDeviceDefinitionPackagingUdiDeviceIdentifierComponent(String name, DeviceDefinition.DeviceDefinitionPackagingUdiDeviceIdentifierComponent element) throws IOException { + if (element != null) { + open(name); + composeDeviceDefinitionPackagingUdiDeviceIdentifierComponentProperties(element); + close(); + } + } + + protected void composeDeviceDefinitionPackagingUdiDeviceIdentifierComponentProperties(DeviceDefinition.DeviceDefinitionPackagingUdiDeviceIdentifierComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasDeviceIdentifierElement()) { + composeStringCore("deviceIdentifier", element.getDeviceIdentifierElement(), false); + composeStringExtras("deviceIdentifier", element.getDeviceIdentifierElement(), false); + } + if (element.hasIssuerElement()) { + composeUriCore("issuer", element.getIssuerElement(), false); + composeUriExtras("issuer", element.getIssuerElement(), false); + } + if (element.hasJurisdictionElement()) { + composeUriCore("jurisdiction", element.getJurisdictionElement(), false); + composeUriExtras("jurisdiction", element.getJurisdictionElement(), false); + } + } + + protected void composeDeviceDefinitionVersionComponent(String name, DeviceDefinition.DeviceDefinitionVersionComponent element) throws IOException { + if (element != null) { + open(name); + composeDeviceDefinitionVersionComponentProperties(element); + close(); + } + } + + protected void composeDeviceDefinitionVersionComponentProperties(DeviceDefinition.DeviceDefinitionVersionComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasComponent()) { + composeIdentifier("component", element.getComponent()); + } + if (element.hasValueElement()) { + composeStringCore("value", element.getValueElement(), false); + composeStringExtras("value", element.getValueElement(), false); + } + } + protected void composeDeviceDefinitionCapabilityComponent(String name, DeviceDefinition.DeviceDefinitionCapabilityComponent element) throws IOException { if (element != null) { open(name); @@ -44279,10 +45334,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesCanonical()) { if (anyHasValue(element.getInstantiatesCanonical())) { - openArray("instantiatesCanonical"); - for (CanonicalType e : element.getInstantiatesCanonical()) + openArray("instantiatesCanonical"); + for (CanonicalType e : element.getInstantiatesCanonical()) composeCanonicalCore(null, e, e != element.getInstantiatesCanonical().get(element.getInstantiatesCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesCanonical())) { openArray("_instantiatesCanonical"); @@ -44293,10 +45348,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesUri()) { if (anyHasValue(element.getInstantiatesUri())) { - openArray("instantiatesUri"); - for (UriType e : element.getInstantiatesUri()) + openArray("instantiatesUri"); + for (UriType e : element.getInstantiatesUri()) composeUriCore(null, e, e != element.getInstantiatesUri().get(element.getInstantiatesUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesUri())) { openArray("_instantiatesUri"); @@ -44332,9 +45387,17 @@ public class JsonParser extends JsonParserBase { composeEnumerationCore("priority", element.getPriorityElement(), new Enumerations.RequestPriorityEnumFactory(), false); composeEnumerationExtras("priority", element.getPriorityElement(), new Enumerations.RequestPriorityEnumFactory(), false); } + if (element.hasDoNotPerformElement()) { + composeBooleanCore("doNotPerform", element.getDoNotPerformElement(), false); + composeBooleanExtras("doNotPerform", element.getDoNotPerformElement(), false); + } if (element.hasCode()) { composeCodeableReference("code", element.getCode()); } + if (element.hasQuantityElement()) { + composeIntegerCore("quantity", element.getQuantityElement(), false); + composeIntegerExtras("quantity", element.getQuantityElement(), false); + } if (element.hasParameter()) { openArray("parameter"); for (DeviceRequest.DeviceRequestParameterComponent e : element.getParameter()) @@ -44413,14 +45476,14 @@ public class JsonParser extends JsonParserBase { } } - protected void composeDeviceUseStatement(String name, DeviceUseStatement element) throws IOException { + protected void composeDeviceUsage(String name, DeviceUsage element) throws IOException { if (element != null) { prop("resourceType", name); - composeDeviceUseStatementProperties(element); + composeDeviceUsageProperties(element); } } - protected void composeDeviceUseStatementProperties(DeviceUseStatement element) throws IOException { + protected void composeDeviceUsageProperties(DeviceUsage element) throws IOException { composeDomainResourceProperties(element); if (element.hasIdentifier()) { openArray("identifier"); @@ -44435,8 +45498,8 @@ public class JsonParser extends JsonParserBase { closeArray(); }; if (element.hasStatusElement()) { - composeEnumerationCore("status", element.getStatusElement(), new DeviceUseStatement.DeviceUseStatementStatusEnumFactory(), false); - composeEnumerationExtras("status", element.getStatusElement(), new DeviceUseStatement.DeviceUseStatementStatusEnumFactory(), false); + composeEnumerationCore("status", element.getStatusElement(), new DeviceUsage.DeviceUsageStatusEnumFactory(), false); + composeEnumerationExtras("status", element.getStatusElement(), new DeviceUsage.DeviceUsageStatusEnumFactory(), false); } if (element.hasCategory()) { openArray("category"); @@ -44578,6 +45641,9 @@ public class JsonParser extends JsonParserBase { composeDiagnosticReportMediaComponent(null, e); closeArray(); }; + if (element.hasComposition()) { + composeReference("composition", element.getComposition()); + } if (element.hasConclusionElement()) { composeStringCore("conclusion", element.getConclusionElement(), false); composeStringExtras("conclusion", element.getConclusionElement(), false); @@ -44873,7 +45939,7 @@ public class JsonParser extends JsonParserBase { } if (element.hasIdentifier()) { composeIdentifier("identifier", element.getIdentifier()); - } + } } protected void composeEncounter(String name, Encounter element) throws IOException { @@ -45195,10 +46261,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasPayloadMimeType()) { if (anyHasValue(element.getPayloadMimeType())) { - openArray("payloadMimeType"); - for (CodeType e : element.getPayloadMimeType()) + openArray("payloadMimeType"); + for (CodeType e : element.getPayloadMimeType()) composeCodeCore(null, e, e != element.getPayloadMimeType().get(element.getPayloadMimeType().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getPayloadMimeType())) { openArray("_payloadMimeType"); @@ -45213,10 +46279,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasHeader()) { if (anyHasValue(element.getHeader())) { - openArray("header"); - for (StringType e : element.getHeader()) + openArray("header"); + for (StringType e : element.getHeader()) composeStringCore(null, e, e != element.getHeader().get(element.getHeader().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getHeader())) { openArray("_header"); @@ -45287,8 +46353,8 @@ public class JsonParser extends JsonParserBase { composeReference("request", element.getRequest()); } if (element.hasOutcomeElement()) { - composeEnumerationCore("outcome", element.getOutcomeElement(), new Enumerations.ClaimProcessingCodesEnumFactory(), false); - composeEnumerationExtras("outcome", element.getOutcomeElement(), new Enumerations.ClaimProcessingCodesEnumFactory(), false); + composeEnumerationCore("outcome", element.getOutcomeElement(), new EnrollmentResponse.EnrollmentOutcomeEnumFactory(), false); + composeEnumerationExtras("outcome", element.getOutcomeElement(), new EnrollmentResponse.EnrollmentOutcomeEnumFactory(), false); } if (element.hasDispositionElement()) { composeStringCore("disposition", element.getDispositionElement(), false); @@ -45586,6 +46652,9 @@ public class JsonParser extends JsonParserBase { composeStringCore("title", element.getTitleElement(), false); composeStringExtras("title", element.getTitleElement(), false); } + if (element.hasCiteAs()) { + composeType("citeAs", element.getCiteAs()); + } if (element.hasStatusElement()) { composeEnumerationCore("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false); composeEnumerationExtras("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false); @@ -45737,40 +46806,6 @@ public class JsonParser extends JsonParserBase { } protected void composeEvidenceCertaintyComponentProperties(Evidence.EvidenceCertaintyComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasDescriptionElement()) { - composeStringCore("description", element.getDescriptionElement(), false); - composeStringExtras("description", element.getDescriptionElement(), false); - } - if (element.hasNote()) { - openArray("note"); - for (Annotation e : element.getNote()) - composeAnnotation(null, e); - closeArray(); - }; - if (element.hasRating()) { - openArray("rating"); - for (CodeableConcept e : element.getRating()) - composeCodeableConcept(null, e); - closeArray(); - }; - if (element.hasCertaintySubcomponent()) { - openArray("certaintySubcomponent"); - for (Evidence.EvidenceCertaintyCertaintySubcomponentComponent e : element.getCertaintySubcomponent()) - composeEvidenceCertaintyCertaintySubcomponentComponent(null, e); - closeArray(); - }; - } - - protected void composeEvidenceCertaintyCertaintySubcomponentComponent(String name, Evidence.EvidenceCertaintyCertaintySubcomponentComponent element) throws IOException { - if (element != null) { - open(name); - composeEvidenceCertaintyCertaintySubcomponentComponentProperties(element); - close(); - } - } - - protected void composeEvidenceCertaintyCertaintySubcomponentComponentProperties(Evidence.EvidenceCertaintyCertaintySubcomponentComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasDescriptionElement()) { composeStringCore("description", element.getDescriptionElement(), false); @@ -45783,15 +46818,19 @@ public class JsonParser extends JsonParserBase { closeArray(); }; if (element.hasType()) { - openArray("type"); - for (CodeableConcept e : element.getType()) - composeCodeableConcept(null, e); - closeArray(); - }; + composeCodeableConcept("type", element.getType()); + } if (element.hasRating()) { - openArray("rating"); - for (CodeableConcept e : element.getRating()) - composeCodeableConcept(null, e); + composeCodeableConcept("rating", element.getRating()); + } + if (element.hasRaterElement()) { + composeStringCore("rater", element.getRaterElement(), false); + composeStringExtras("rater", element.getRaterElement(), false); + } + if (element.hasSubcomponent()) { + openArray("subcomponent"); + for (Evidence.EvidenceCertaintyComponent e : element.getSubcomponent()) + composeEvidenceCertaintyComponent(null, e); closeArray(); }; } @@ -45832,7 +46871,7 @@ public class JsonParser extends JsonParserBase { closeArray(); }; if (element.hasCiteAs()) { - composeReference("citeAs", element.getCiteAs()); + composeType("citeAs", element.getCiteAs()); } if (element.hasType()) { composeCodeableConcept("type", element.getType()); @@ -46016,6 +47055,12 @@ public class JsonParser extends JsonParserBase { composeReference(null, e); closeArray(); }; + if (element.hasEntryQuantity()) { + openArray("entryQuantity"); + for (Quantity e : element.getEntryQuantity()) + composeQuantity(null, e); + closeArray(); + }; if (element.hasEmptyReason()) { composeCodeableConcept("emptyReason", element.getEmptyReason()); } @@ -46328,10 +47373,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasWorkflow()) { if (anyHasValue(element.getWorkflow())) { - openArray("workflow"); - for (CanonicalType e : element.getWorkflow()) + openArray("workflow"); + for (CanonicalType e : element.getWorkflow()) composeCanonicalCore(null, e, e != element.getWorkflow().get(element.getWorkflow().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getWorkflow())) { openArray("_workflow"); @@ -46685,10 +47730,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasPreAuthRef()) { if (anyHasValue(element.getPreAuthRef())) { - openArray("preAuthRef"); - for (StringType e : element.getPreAuthRef()) + openArray("preAuthRef"); + for (StringType e : element.getPreAuthRef()) composeStringCore(null, e, e != element.getPreAuthRef().get(element.getPreAuthRef().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getPreAuthRef())) { openArray("_preAuthRef"); @@ -46974,10 +48019,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasPreAuthRef()) { if (anyHasValue(element.getPreAuthRef())) { - openArray("preAuthRef"); - for (StringType e : element.getPreAuthRef()) + openArray("preAuthRef"); + for (StringType e : element.getPreAuthRef()) composeStringCore(null, e, e != element.getPreAuthRef().get(element.getPreAuthRef().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getPreAuthRef())) { openArray("_preAuthRef"); @@ -47026,10 +48071,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasCareTeamSequence()) { if (anyHasValue(element.getCareTeamSequence())) { - openArray("careTeamSequence"); - for (PositiveIntType e : element.getCareTeamSequence()) + openArray("careTeamSequence"); + for (PositiveIntType e : element.getCareTeamSequence()) composePositiveIntCore(null, e, e != element.getCareTeamSequence().get(element.getCareTeamSequence().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getCareTeamSequence())) { openArray("_careTeamSequence"); @@ -47040,10 +48085,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasDiagnosisSequence()) { if (anyHasValue(element.getDiagnosisSequence())) { - openArray("diagnosisSequence"); - for (PositiveIntType e : element.getDiagnosisSequence()) + openArray("diagnosisSequence"); + for (PositiveIntType e : element.getDiagnosisSequence()) composePositiveIntCore(null, e, e != element.getDiagnosisSequence().get(element.getDiagnosisSequence().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getDiagnosisSequence())) { openArray("_diagnosisSequence"); @@ -47054,10 +48099,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasProcedureSequence()) { if (anyHasValue(element.getProcedureSequence())) { - openArray("procedureSequence"); - for (PositiveIntType e : element.getProcedureSequence()) + openArray("procedureSequence"); + for (PositiveIntType e : element.getProcedureSequence()) composePositiveIntCore(null, e, e != element.getProcedureSequence().get(element.getProcedureSequence().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getProcedureSequence())) { openArray("_procedureSequence"); @@ -47068,10 +48113,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInformationSequence()) { if (anyHasValue(element.getInformationSequence())) { - openArray("informationSequence"); - for (PositiveIntType e : element.getInformationSequence()) + openArray("informationSequence"); + for (PositiveIntType e : element.getInformationSequence()) composePositiveIntCore(null, e, e != element.getInformationSequence().get(element.getInformationSequence().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInformationSequence())) { openArray("_informationSequence"); @@ -47143,10 +48188,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasNoteNumber()) { if (anyHasValue(element.getNoteNumber())) { - openArray("noteNumber"); - for (PositiveIntType e : element.getNoteNumber()) + openArray("noteNumber"); + for (PositiveIntType e : element.getNoteNumber()) composePositiveIntCore(null, e, e != element.getNoteNumber().get(element.getNoteNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNoteNumber())) { openArray("_noteNumber"); @@ -47250,10 +48295,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasNoteNumber()) { if (anyHasValue(element.getNoteNumber())) { - openArray("noteNumber"); - for (PositiveIntType e : element.getNoteNumber()) + openArray("noteNumber"); + for (PositiveIntType e : element.getNoteNumber()) composePositiveIntCore(null, e, e != element.getNoteNumber().get(element.getNoteNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNoteNumber())) { openArray("_noteNumber"); @@ -47332,10 +48377,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasNoteNumber()) { if (anyHasValue(element.getNoteNumber())) { - openArray("noteNumber"); - for (PositiveIntType e : element.getNoteNumber()) + openArray("noteNumber"); + for (PositiveIntType e : element.getNoteNumber()) composePositiveIntCore(null, e, e != element.getNoteNumber().get(element.getNoteNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNoteNumber())) { openArray("_noteNumber"); @@ -47364,10 +48409,10 @@ public class JsonParser extends JsonParserBase { composeBackboneElementProperties(element); if (element.hasItemSequence()) { if (anyHasValue(element.getItemSequence())) { - openArray("itemSequence"); - for (PositiveIntType e : element.getItemSequence()) + openArray("itemSequence"); + for (PositiveIntType e : element.getItemSequence()) composePositiveIntCore(null, e, e != element.getItemSequence().get(element.getItemSequence().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getItemSequence())) { openArray("_itemSequence"); @@ -47378,10 +48423,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasDetailSequence()) { if (anyHasValue(element.getDetailSequence())) { - openArray("detailSequence"); - for (PositiveIntType e : element.getDetailSequence()) + openArray("detailSequence"); + for (PositiveIntType e : element.getDetailSequence()) composePositiveIntCore(null, e, e != element.getDetailSequence().get(element.getDetailSequence().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getDetailSequence())) { openArray("_detailSequence"); @@ -47392,10 +48437,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasSubDetailSequence()) { if (anyHasValue(element.getSubDetailSequence())) { - openArray("subDetailSequence"); - for (PositiveIntType e : element.getSubDetailSequence()) + openArray("subDetailSequence"); + for (PositiveIntType e : element.getSubDetailSequence()) composePositiveIntCore(null, e, e != element.getSubDetailSequence().get(element.getSubDetailSequence().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getSubDetailSequence())) { openArray("_subDetailSequence"); @@ -47455,10 +48500,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasNoteNumber()) { if (anyHasValue(element.getNoteNumber())) { - openArray("noteNumber"); - for (PositiveIntType e : element.getNoteNumber()) + openArray("noteNumber"); + for (PositiveIntType e : element.getNoteNumber()) composePositiveIntCore(null, e, e != element.getNoteNumber().get(element.getNoteNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNoteNumber())) { openArray("_noteNumber"); @@ -47515,10 +48560,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasNoteNumber()) { if (anyHasValue(element.getNoteNumber())) { - openArray("noteNumber"); - for (PositiveIntType e : element.getNoteNumber()) + openArray("noteNumber"); + for (PositiveIntType e : element.getNoteNumber()) composePositiveIntCore(null, e, e != element.getNoteNumber().get(element.getNoteNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNoteNumber())) { openArray("_noteNumber"); @@ -47575,10 +48620,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasNoteNumber()) { if (anyHasValue(element.getNoteNumber())) { - openArray("noteNumber"); - for (PositiveIntType e : element.getNoteNumber()) + openArray("noteNumber"); + for (PositiveIntType e : element.getNoteNumber()) composePositiveIntCore(null, e, e != element.getNoteNumber().get(element.getNoteNumber().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNoteNumber())) { openArray("_noteNumber"); @@ -47751,10 +48796,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesCanonical()) { if (anyHasValue(element.getInstantiatesCanonical())) { - openArray("instantiatesCanonical"); - for (CanonicalType e : element.getInstantiatesCanonical()) + openArray("instantiatesCanonical"); + for (CanonicalType e : element.getInstantiatesCanonical()) composeCanonicalCore(null, e, e != element.getInstantiatesCanonical().get(element.getInstantiatesCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesCanonical())) { openArray("_instantiatesCanonical"); @@ -47765,10 +48810,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesUri()) { if (anyHasValue(element.getInstantiatesUri())) { - openArray("instantiatesUri"); - for (UriType e : element.getInstantiatesUri()) + openArray("instantiatesUri"); + for (UriType e : element.getInstantiatesUri()) composeUriCore(null, e, e != element.getInstantiatesUri().get(element.getInstantiatesUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesUri())) { openArray("_instantiatesUri"); @@ -48002,8 +49047,8 @@ public class JsonParser extends JsonParserBase { composeStringCore("statusReason", element.getStatusReasonElement(), false); composeStringExtras("statusReason", element.getStatusReasonElement(), false); } - if (element.hasExpressedBy()) { - composeReference("expressedBy", element.getExpressedBy()); + if (element.hasSource()) { + composeReference("source", element.getSource()); } if (element.hasAddresses()) { openArray("addresses"); @@ -48853,10 +49898,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesCanonical()) { if (anyHasValue(element.getInstantiatesCanonical())) { - openArray("instantiatesCanonical"); - for (CanonicalType e : element.getInstantiatesCanonical()) + openArray("instantiatesCanonical"); + for (CanonicalType e : element.getInstantiatesCanonical()) composeCanonicalCore(null, e, e != element.getInstantiatesCanonical().get(element.getInstantiatesCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesCanonical())) { openArray("_instantiatesCanonical"); @@ -48867,10 +49912,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesUri()) { if (anyHasValue(element.getInstantiatesUri())) { - openArray("instantiatesUri"); - for (UriType e : element.getInstantiatesUri()) + openArray("instantiatesUri"); + for (UriType e : element.getInstantiatesUri()) composeUriCore(null, e, e != element.getInstantiatesUri().get(element.getInstantiatesUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesUri())) { openArray("_instantiatesUri"); @@ -49176,10 +50221,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesCanonical()) { if (anyHasValue(element.getInstantiatesCanonical())) { - openArray("instantiatesCanonical"); - for (CanonicalType e : element.getInstantiatesCanonical()) + openArray("instantiatesCanonical"); + for (CanonicalType e : element.getInstantiatesCanonical()) composeCanonicalCore(null, e, e != element.getInstantiatesCanonical().get(element.getInstantiatesCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesCanonical())) { openArray("_instantiatesCanonical"); @@ -49190,10 +50235,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesUri()) { if (anyHasValue(element.getInstantiatesUri())) { - openArray("instantiatesUri"); - for (UriType e : element.getInstantiatesUri()) + openArray("instantiatesUri"); + for (UriType e : element.getInstantiatesUri()) composeUriCore(null, e, e != element.getInstantiatesUri().get(element.getInstantiatesUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesUri())) { openArray("_instantiatesUri"); @@ -49665,10 +50710,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasImage()) { if (anyHasValue(element.getImage())) { - openArray("image"); - for (StringType e : element.getImage()) + openArray("image"); + for (StringType e : element.getImage()) composeStringCore(null, e, e != element.getImage().get(element.getImage().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getImage())) { openArray("_image"); @@ -49679,10 +50724,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasOther()) { if (anyHasValue(element.getOther())) { - openArray("other"); - for (StringType e : element.getOther()) + openArray("other"); + for (StringType e : element.getOther()) composeStringCore(null, e, e != element.getOther().get(element.getOther().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getOther())) { openArray("_other"); @@ -49735,10 +50780,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasAnchor()) { if (anyHasValue(element.getAnchor())) { - openArray("anchor"); - for (StringType e : element.getAnchor()) + openArray("anchor"); + for (StringType e : element.getAnchor()) composeStringCore(null, e, e != element.getAnchor().get(element.getAnchor().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getAnchor())) { openArray("_anchor"); @@ -49770,6 +50815,9 @@ public class JsonParser extends JsonParserBase { composeCodeableConcept(null, e); closeArray(); }; + if (element.hasGroup()) { + composeCodeableConcept("group", element.getGroup()); + } if (element.hasDescriptionElement()) { composeMarkdownCore("description", element.getDescriptionElement(), false); composeMarkdownExtras("description", element.getDescriptionElement(), false); @@ -49806,7 +50854,7 @@ public class JsonParser extends JsonParserBase { protected void composeIngredientSubstanceComponentProperties(Ingredient.IngredientSubstanceComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasCode()) { - composeType("code", element.getCode()); + composeCodeableReference("code", element.getCode()); } if (element.hasStrength()) { openArray("strength"); @@ -49827,25 +50875,28 @@ public class JsonParser extends JsonParserBase { protected void composeIngredientSubstanceStrengthComponentProperties(Ingredient.IngredientSubstanceStrengthComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasPresentation()) { - composeRatio("presentation", element.getPresentation()); + composeType("presentation", element.getPresentation()); } if (element.hasPresentationHighLimit()) { - composeRatio("presentationHighLimit", element.getPresentationHighLimit()); + composeType("presentationHighLimit", element.getPresentationHighLimit()); } if (element.hasPresentationTextElement()) { composeStringCore("presentationText", element.getPresentationTextElement(), false); composeStringExtras("presentationText", element.getPresentationTextElement(), false); } if (element.hasConcentration()) { - composeRatio("concentration", element.getConcentration()); + composeType("concentration", element.getConcentration()); } if (element.hasConcentrationHighLimit()) { - composeRatio("concentrationHighLimit", element.getConcentrationHighLimit()); + composeType("concentrationHighLimit", element.getConcentrationHighLimit()); } if (element.hasConcentrationTextElement()) { composeStringCore("concentrationText", element.getConcentrationTextElement(), false); composeStringExtras("concentrationText", element.getConcentrationTextElement(), false); } + if (element.hasBasis()) { + composeCodeableConcept("basis", element.getBasis()); + } if (element.hasMeasurementPointElement()) { composeStringCore("measurementPoint", element.getMeasurementPointElement(), false); composeStringExtras("measurementPoint", element.getMeasurementPointElement(), false); @@ -49875,13 +50926,13 @@ public class JsonParser extends JsonParserBase { protected void composeIngredientSubstanceStrengthReferenceStrengthComponentProperties(Ingredient.IngredientSubstanceStrengthReferenceStrengthComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasSubstance()) { - composeType("substance", element.getSubstance()); + composeCodeableReference("substance", element.getSubstance()); } if (element.hasStrength()) { - composeRatio("strength", element.getStrength()); + composeType("strength", element.getStrength()); } if (element.hasStrengthHighLimit()) { - composeRatio("strengthHighLimit", element.getStrengthHighLimit()); + composeType("strengthHighLimit", element.getStrengthHighLimit()); } if (element.hasMeasurementPointElement()) { composeStringCore("measurementPoint", element.getMeasurementPointElement(), false); @@ -49906,7 +50957,7 @@ public class JsonParser extends JsonParserBase { protected void composeIngredientSpecifiedSubstanceComponentProperties(Ingredient.IngredientSpecifiedSubstanceComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasCode()) { - composeType("code", element.getCode()); + composeCodeableReference("code", element.getCode()); } if (element.hasGroup()) { composeCodeableConcept("group", element.getGroup()); @@ -49953,10 +51004,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasAlias()) { if (anyHasValue(element.getAlias())) { - openArray("alias"); - for (StringType e : element.getAlias()) + openArray("alias"); + for (StringType e : element.getAlias()) composeStringCore(null, e, e != element.getAlias().get(element.getAlias().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getAlias())) { openArray("_alias"); @@ -50249,6 +51300,121 @@ public class JsonParser extends JsonParserBase { } } + protected void composeInventoryReport(String name, InventoryReport element) throws IOException { + if (element != null) { + prop("resourceType", name); + composeInventoryReportProperties(element); + } + } + + protected void composeInventoryReportProperties(InventoryReport element) throws IOException { + composeDomainResourceProperties(element); + if (element.hasIdentifier()) { + openArray("identifier"); + for (Identifier e : element.getIdentifier()) + composeIdentifier(null, e); + closeArray(); + }; + if (element.hasStatusElement()) { + composeEnumerationCore("status", element.getStatusElement(), new InventoryReport.InventoryReportStatusEnumFactory(), false); + composeEnumerationExtras("status", element.getStatusElement(), new InventoryReport.InventoryReportStatusEnumFactory(), false); + } + if (element.hasCountTypeElement()) { + composeEnumerationCore("countType", element.getCountTypeElement(), new InventoryReport.InventoryCountTypeEnumFactory(), false); + composeEnumerationExtras("countType", element.getCountTypeElement(), new InventoryReport.InventoryCountTypeEnumFactory(), false); + } + if (element.hasOperationType()) { + composeCodeableConcept("operationType", element.getOperationType()); + } + if (element.hasOperationTypeReason()) { + composeCodeableConcept("operationTypeReason", element.getOperationTypeReason()); + } + if (element.hasReportedDateTimeElement()) { + composeDateTimeCore("reportedDateTime", element.getReportedDateTimeElement(), false); + composeDateTimeExtras("reportedDateTime", element.getReportedDateTimeElement(), false); + } + if (element.hasReporter()) { + composeReference("reporter", element.getReporter()); + } + if (element.hasReportingPeriod()) { + composePeriod("reportingPeriod", element.getReportingPeriod()); + } + if (element.hasInventoryListing()) { + openArray("inventoryListing"); + for (InventoryReport.InventoryReportInventoryListingComponent e : element.getInventoryListing()) + composeInventoryReportInventoryListingComponent(null, e); + closeArray(); + }; + if (element.hasNote()) { + composeAnnotation("note", element.getNote()); + } + } + + protected void composeInventoryReportInventoryListingComponent(String name, InventoryReport.InventoryReportInventoryListingComponent element) throws IOException { + if (element != null) { + open(name); + composeInventoryReportInventoryListingComponentProperties(element); + close(); + } + } + + protected void composeInventoryReportInventoryListingComponentProperties(InventoryReport.InventoryReportInventoryListingComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasLocation()) { + composeReference("location", element.getLocation()); + } + if (element.hasItemStatus()) { + composeCodeableConcept("itemStatus", element.getItemStatus()); + } + if (element.hasCountingDateTimeElement()) { + composeDateTimeCore("countingDateTime", element.getCountingDateTimeElement(), false); + composeDateTimeExtras("countingDateTime", element.getCountingDateTimeElement(), false); + } + if (element.hasItems()) { + openArray("items"); + for (InventoryReport.InventoryReportInventoryListingItemsComponent e : element.getItems()) + composeInventoryReportInventoryListingItemsComponent(null, e); + closeArray(); + }; + } + + protected void composeInventoryReportInventoryListingItemsComponent(String name, InventoryReport.InventoryReportInventoryListingItemsComponent element) throws IOException { + if (element != null) { + open(name); + composeInventoryReportInventoryListingItemsComponentProperties(element); + close(); + } + } + + protected void composeInventoryReportInventoryListingItemsComponentProperties(InventoryReport.InventoryReportInventoryListingItemsComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasCategory()) { + composeCodeableConcept("category", element.getCategory()); + } + if (element.hasQuantity()) { + composeQuantity("quantity", element.getQuantity()); + } + if (element.hasItem()) { + composeCodeableReference("item", element.getItem()); + } + if (element.hasLotElement()) { + composeStringCore("lot", element.getLotElement(), false); + composeStringExtras("lot", element.getLotElement(), false); + } + if (element.hasSerialElement()) { + composeStringCore("serial", element.getSerialElement(), false); + composeStringExtras("serial", element.getSerialElement(), false); + } + if (element.hasExpiryElement()) { + composeDateTimeCore("expiry", element.getExpiryElement(), false); + composeDateTimeExtras("expiry", element.getExpiryElement(), false); + } + if (element.hasManufacturingDateElement()) { + composeDateTimeCore("manufacturingDate", element.getManufacturingDateElement(), false); + composeDateTimeExtras("manufacturingDate", element.getManufacturingDateElement(), false); + } + } + protected void composeInvoice(String name, Invoice element) throws IOException { if (element != null) { prop("resourceType", name); @@ -50714,10 +51880,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasAlias()) { if (anyHasValue(element.getAlias())) { - openArray("alias"); - for (StringType e : element.getAlias()) + openArray("alias"); + for (StringType e : element.getAlias()) composeStringCore(null, e, e != element.getAlias().get(element.getAlias().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getAlias())) { openArray("_alias"); @@ -50868,8 +52034,8 @@ public class JsonParser extends JsonParserBase { }; if (element.hasIngredient()) { openArray("ingredient"); - for (Reference e : element.getIngredient()) - composeReference(null, e); + for (CodeableReference e : element.getIngredient()) + composeCodeableReference(null, e); closeArray(); }; if (element.hasProperty()) { @@ -50944,6 +52110,10 @@ public class JsonParser extends JsonParserBase { if (element.hasSubject()) { composeType("subject", element.getSubject()); } + if (element.hasBasisElement()) { + composeEnumerationCore("basis", element.getBasisElement(), new Enumerations.FHIRAllTypesEnumFactory(), false); + composeEnumerationExtras("basis", element.getBasisElement(), new Enumerations.FHIRAllTypesEnumFactory(), false); + } if (element.hasDateElement()) { composeDateTimeCore("date", element.getDateElement(), false); composeDateTimeExtras("date", element.getDateElement(), false); @@ -51035,10 +52205,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasLibrary()) { if (anyHasValue(element.getLibrary())) { - openArray("library"); - for (CanonicalType e : element.getLibrary()) + openArray("library"); + for (CanonicalType e : element.getLibrary()) composeCanonicalCore(null, e, e != element.getLibrary().get(element.getLibrary().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getLibrary())) { openArray("_library"); @@ -51054,6 +52224,9 @@ public class JsonParser extends JsonParserBase { if (element.hasScoring()) { composeCodeableConcept("scoring", element.getScoring()); } + if (element.hasScoringUnit()) { + composeCodeableConcept("scoringUnit", element.getScoringUnit()); + } if (element.hasCompositeScoring()) { composeCodeableConcept("compositeScoring", element.getCompositeScoring()); } @@ -51084,10 +52257,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasDefinition()) { if (anyHasValue(element.getDefinition())) { - openArray("definition"); - for (MarkdownType e : element.getDefinition()) + openArray("definition"); + for (MarkdownType e : element.getDefinition()) composeMarkdownCore(null, e, e != element.getDefinition().get(element.getDefinition().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getDefinition())) { openArray("_definition"); @@ -51131,6 +52304,25 @@ public class JsonParser extends JsonParserBase { composeStringCore("description", element.getDescriptionElement(), false); composeStringExtras("description", element.getDescriptionElement(), false); } + if (element.hasType()) { + openArray("type"); + for (CodeableConcept e : element.getType()) + composeCodeableConcept(null, e); + closeArray(); + }; + if (element.hasBasisElement()) { + composeEnumerationCore("basis", element.getBasisElement(), new Enumerations.FHIRAllTypesEnumFactory(), false); + composeEnumerationExtras("basis", element.getBasisElement(), new Enumerations.FHIRAllTypesEnumFactory(), false); + } + if (element.hasScoring()) { + composeCodeableConcept("scoring", element.getScoring()); + } + if (element.hasScoringUnit()) { + composeCodeableConcept("scoringUnit", element.getScoringUnit()); + } + if (element.hasImprovementNotation()) { + composeCodeableConcept("improvementNotation", element.getImprovementNotation()); + } if (element.hasPopulation()) { openArray("population"); for (Measure.MeasureGroupPopulationComponent e : element.getPopulation()) @@ -51165,6 +52357,13 @@ public class JsonParser extends JsonParserBase { if (element.hasCriteria()) { composeExpression("criteria", element.getCriteria()); } + if (element.hasInputPopulationIdElement()) { + composeStringCore("inputPopulationId", element.getInputPopulationIdElement(), false); + composeStringExtras("inputPopulationId", element.getInputPopulationIdElement(), false); + } + if (element.hasAggregateMethod()) { + composeCodeableConcept("aggregateMethod", element.getAggregateMethod()); + } } protected void composeMeasureGroupStratifierComponent(String name, Measure.MeasureGroupStratifierComponent element) throws IOException { @@ -51268,6 +52467,10 @@ public class JsonParser extends JsonParserBase { composeEnumerationCore("type", element.getTypeElement(), new MeasureReport.MeasureReportTypeEnumFactory(), false); composeEnumerationExtras("type", element.getTypeElement(), new MeasureReport.MeasureReportTypeEnumFactory(), false); } + if (element.hasDataUpdateTypeElement()) { + composeEnumerationCore("dataUpdateType", element.getDataUpdateTypeElement(), new MeasureReport.SubmitDataUpdateTypeEnumFactory(), false); + composeEnumerationExtras("dataUpdateType", element.getDataUpdateTypeElement(), new MeasureReport.SubmitDataUpdateTypeEnumFactory(), false); + } if (element.hasMeasureElement()) { composeCanonicalCore("measure", element.getMeasureElement(), false); composeCanonicalExtras("measure", element.getMeasureElement(), false); @@ -51282,9 +52485,15 @@ public class JsonParser extends JsonParserBase { if (element.hasReporter()) { composeReference("reporter", element.getReporter()); } + if (element.hasReportingVendor()) { + composeReference("reportingVendor", element.getReportingVendor()); + } if (element.hasPeriod()) { composePeriod("period", element.getPeriod()); } + if (element.hasScoring()) { + composeCodeableConcept("scoring", element.getScoring()); + } if (element.hasImprovementNotation()) { composeCodeableConcept("improvementNotation", element.getImprovementNotation()); } @@ -51322,7 +52531,7 @@ public class JsonParser extends JsonParserBase { closeArray(); }; if (element.hasMeasureScore()) { - composeQuantity("measureScore", element.getMeasureScore()); + composeType("measureScore", element.getMeasureScore()); } if (element.hasStratifier()) { openArray("stratifier"); @@ -51389,7 +52598,7 @@ public class JsonParser extends JsonParserBase { protected void composeStratifierGroupComponentProperties(MeasureReport.StratifierGroupComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasValue()) { - composeCodeableConcept("value", element.getValue()); + composeType("value", element.getValue()); } if (element.hasComponent()) { openArray("component"); @@ -51404,7 +52613,7 @@ public class JsonParser extends JsonParserBase { closeArray(); }; if (element.hasMeasureScore()) { - composeQuantity("measureScore", element.getMeasureScore()); + composeType("measureScore", element.getMeasureScore()); } } @@ -51422,7 +52631,7 @@ public class JsonParser extends JsonParserBase { composeCodeableConcept("code", element.getCode()); } if (element.hasValue()) { - composeCodeableConcept("value", element.getValue()); + composeType("value", element.getValue()); } } @@ -51470,8 +52679,8 @@ public class JsonParser extends JsonParserBase { composeEnumerationCore("status", element.getStatusElement(), new Medication.MedicationStatusCodesEnumFactory(), false); composeEnumerationExtras("status", element.getStatusElement(), new Medication.MedicationStatusCodesEnumFactory(), false); } - if (element.hasManufacturer()) { - composeReference("manufacturer", element.getManufacturer()); + if (element.hasSponsor()) { + composeReference("sponsor", element.getSponsor()); } if (element.hasDoseForm()) { composeCodeableConcept("doseForm", element.getDoseForm()); @@ -51549,10 +52758,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesCanonical()) { if (anyHasValue(element.getInstantiatesCanonical())) { - openArray("instantiatesCanonical"); - for (CanonicalType e : element.getInstantiatesCanonical()) + openArray("instantiatesCanonical"); + for (CanonicalType e : element.getInstantiatesCanonical()) composeCanonicalCore(null, e, e != element.getInstantiatesCanonical().get(element.getInstantiatesCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesCanonical())) { openArray("_instantiatesCanonical"); @@ -51563,10 +52772,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesUri()) { if (anyHasValue(element.getInstantiatesUri())) { - openArray("instantiatesUri"); - for (UriType e : element.getInstantiatesUri()) + openArray("instantiatesUri"); + for (UriType e : element.getInstantiatesUri()) composeUriCore(null, e, e != element.getInstantiatesUri().get(element.getInstantiatesUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesUri())) { openArray("_instantiatesUri"); @@ -51912,8 +53121,8 @@ public class JsonParser extends JsonParserBase { if (element.hasAuthor()) { composeReference("author", element.getAuthor()); } - if (element.hasManufacturer()) { - composeReference("manufacturer", element.getManufacturer()); + if (element.hasSponsor()) { + composeReference("sponsor", element.getSponsor()); } if (element.hasDoseForm()) { composeCodeableConcept("doseForm", element.getDoseForm()); @@ -51923,10 +53132,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasSynonym()) { if (anyHasValue(element.getSynonym())) { - openArray("synonym"); - for (StringType e : element.getSynonym()) + openArray("synonym"); + for (StringType e : element.getSynonym()) composeStringCore(null, e, e != element.getSynonym().get(element.getSynonym().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getSynonym())) { openArray("_synonym"); @@ -51996,10 +53205,10 @@ public class JsonParser extends JsonParserBase { composeMedicationKnowledgeMonitoringProgramComponent(null, e); closeArray(); }; - if (element.hasAdministrationGuideline()) { - openArray("administrationGuideline"); - for (MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineComponent e : element.getAdministrationGuideline()) - composeMedicationKnowledgeAdministrationGuidelineComponent(null, e); + if (element.hasIndicationGuideline()) { + openArray("indicationGuideline"); + for (MedicationKnowledge.MedicationKnowledgeIndicationGuidelineComponent e : element.getIndicationGuideline()) + composeMedicationKnowledgeIndicationGuidelineComponent(null, e); closeArray(); }; if (element.hasMedicineClassification()) { @@ -52092,9 +53301,8 @@ public class JsonParser extends JsonParserBase { if (element.hasItem()) { composeCodeableReference("item", element.getItem()); } - if (element.hasIsActiveElement()) { - composeBooleanCore("isActive", element.getIsActiveElement(), false); - composeBooleanExtras("isActive", element.getIsActiveElement(), false); + if (element.hasIsActive()) { + composeCodeableConcept("isActive", element.getIsActive()); } if (element.hasStrength()) { composeType("strength", element.getStrength()); @@ -52148,42 +53356,69 @@ public class JsonParser extends JsonParserBase { } } - protected void composeMedicationKnowledgeAdministrationGuidelineComponent(String name, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineComponent element) throws IOException { + protected void composeMedicationKnowledgeIndicationGuidelineComponent(String name, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineComponent element) throws IOException { if (element != null) { open(name); - composeMedicationKnowledgeAdministrationGuidelineComponentProperties(element); + composeMedicationKnowledgeIndicationGuidelineComponentProperties(element); close(); } } - protected void composeMedicationKnowledgeAdministrationGuidelineComponentProperties(MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineComponent element) throws IOException { + protected void composeMedicationKnowledgeIndicationGuidelineComponentProperties(MedicationKnowledge.MedicationKnowledgeIndicationGuidelineComponent element) throws IOException { composeBackboneElementProperties(element); - if (element.hasDosage()) { - openArray("dosage"); - for (MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineDosageComponent e : element.getDosage()) - composeMedicationKnowledgeAdministrationGuidelineDosageComponent(null, e); + if (element.hasIndication()) { + openArray("indication"); + for (CodeableReference e : element.getIndication()) + composeCodeableReference(null, e); closeArray(); }; - if (element.hasIndication()) { - composeCodeableReference("indication", element.getIndication()); + if (element.hasDosingGuideline()) { + openArray("dosingGuideline"); + for (MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent e : element.getDosingGuideline()) + composeMedicationKnowledgeIndicationGuidelineDosingGuidelineComponent(null, e); + closeArray(); + }; + } + + protected void composeMedicationKnowledgeIndicationGuidelineDosingGuidelineComponent(String name, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent element) throws IOException { + if (element != null) { + open(name); + composeMedicationKnowledgeIndicationGuidelineDosingGuidelineComponentProperties(element); + close(); + } + } + + protected void composeMedicationKnowledgeIndicationGuidelineDosingGuidelineComponentProperties(MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasTreatmentIntent()) { + composeCodeableConcept("treatmentIntent", element.getTreatmentIntent()); + } + if (element.hasDosage()) { + openArray("dosage"); + for (MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent e : element.getDosage()) + composeMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent(null, e); + closeArray(); + }; + if (element.hasAdministrationTreatment()) { + composeCodeableConcept("administrationTreatment", element.getAdministrationTreatment()); } if (element.hasPatientCharacteristic()) { openArray("patientCharacteristic"); - for (MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent e : element.getPatientCharacteristic()) - composeMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent(null, e); + for (MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent e : element.getPatientCharacteristic()) + composeMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent(null, e); closeArray(); }; } - protected void composeMedicationKnowledgeAdministrationGuidelineDosageComponent(String name, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineDosageComponent element) throws IOException { + protected void composeMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent(String name, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent element) throws IOException { if (element != null) { open(name); - composeMedicationKnowledgeAdministrationGuidelineDosageComponentProperties(element); + composeMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponentProperties(element); close(); } } - protected void composeMedicationKnowledgeAdministrationGuidelineDosageComponentProperties(MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineDosageComponent element) throws IOException { + protected void composeMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponentProperties(MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasType()) { composeCodeableConcept("type", element.getType()); @@ -52196,15 +53431,15 @@ public class JsonParser extends JsonParserBase { }; } - protected void composeMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent(String name, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent element) throws IOException { + protected void composeMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent(String name, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent element) throws IOException { if (element != null) { open(name); - composeMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponentProperties(element); + composeMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponentProperties(element); close(); } } - protected void composeMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponentProperties(MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent element) throws IOException { + protected void composeMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponentProperties(MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasType()) { composeCodeableConcept("type", element.getType()); @@ -52460,10 +53695,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesCanonical()) { if (anyHasValue(element.getInstantiatesCanonical())) { - openArray("instantiatesCanonical"); - for (CanonicalType e : element.getInstantiatesCanonical()) + openArray("instantiatesCanonical"); + for (CanonicalType e : element.getInstantiatesCanonical()) composeCanonicalCore(null, e, e != element.getInstantiatesCanonical().get(element.getInstantiatesCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesCanonical())) { openArray("_instantiatesCanonical"); @@ -52474,10 +53709,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesUri()) { if (anyHasValue(element.getInstantiatesUri())) { - openArray("instantiatesUri"); - for (UriType e : element.getInstantiatesUri()) + openArray("instantiatesUri"); + for (UriType e : element.getInstantiatesUri()) composeUriCore(null, e, e != element.getInstantiatesUri().get(element.getInstantiatesUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesUri())) { openArray("_instantiatesUri"); @@ -52575,6 +53810,15 @@ public class JsonParser extends JsonParserBase { if (element.hasDispenser()) { composeReference("dispenser", element.getDispenser()); } + if (element.hasDispenserInstruction()) { + openArray("dispenserInstruction"); + for (Annotation e : element.getDispenserInstruction()) + composeAnnotation(null, e); + closeArray(); + }; + if (element.hasDoseAdministrationAid()) { + composeCodeableConcept("doseAdministrationAid", element.getDoseAdministrationAid()); + } } protected void composeMedicationRequestDispenseRequestInitialFillComponent(String name, MedicationRequest.MedicationRequestDispenseRequestInitialFillComponent element) throws IOException { @@ -52703,9 +53947,8 @@ public class JsonParser extends JsonParserBase { composeDosage(null, e); closeArray(); }; - if (element.hasTakenAsOrderedElement()) { - composeBooleanCore("takenAsOrdered", element.getTakenAsOrderedElement(), false); - composeBooleanExtras("takenAsOrdered", element.getTakenAsOrderedElement(), false); + if (element.hasAdherence()) { + composeCodeableConcept("adherence", element.getAdherence()); } } @@ -52785,22 +54028,10 @@ public class JsonParser extends JsonParserBase { composeMarketingStatus(null, e); closeArray(); }; - if (element.hasPharmaceuticalProduct()) { - openArray("pharmaceuticalProduct"); - for (Reference e : element.getPharmaceuticalProduct()) - composeReference(null, e); - closeArray(); - }; - if (element.hasPackagedMedicinalProduct()) { - openArray("packagedMedicinalProduct"); - for (Reference e : element.getPackagedMedicinalProduct()) - composeReference(null, e); - closeArray(); - }; if (element.hasIngredient()) { openArray("ingredient"); - for (Reference e : element.getIngredient()) - composeReference(null, e); + for (CodeableReference e : element.getIngredient()) + composeCodeableReference(null, e); closeArray(); }; if (element.hasImpurity()) { @@ -52845,10 +54076,22 @@ public class JsonParser extends JsonParserBase { composeMedicinalProductDefinitionCrossReferenceComponent(null, e); closeArray(); }; - if (element.hasManufacturingBusinessOperation()) { - openArray("manufacturingBusinessOperation"); - for (MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent e : element.getManufacturingBusinessOperation()) - composeMedicinalProductDefinitionManufacturingBusinessOperationComponent(null, e); + if (element.hasOperation()) { + openArray("operation"); + for (MedicinalProductDefinition.MedicinalProductDefinitionOperationComponent e : element.getOperation()) + composeMedicinalProductDefinitionOperationComponent(null, e); + closeArray(); + }; + if (element.hasPackage()) { + openArray("package"); + for (MedicinalProductDefinition.MedicinalProductDefinitionPackageComponent e : element.getPackage()) + composeMedicinalProductDefinitionPackageComponent(null, e); + closeArray(); + }; + if (element.hasAdministrableProduct()) { + openArray("administrableProduct"); + for (MedicinalProductDefinition.MedicinalProductDefinitionAdministrableProductComponent e : element.getAdministrableProduct()) + composeMedicinalProductDefinitionAdministrableProductComponent(null, e); closeArray(); }; } @@ -52960,15 +54203,15 @@ public class JsonParser extends JsonParserBase { } } - protected void composeMedicinalProductDefinitionManufacturingBusinessOperationComponent(String name, MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent element) throws IOException { + protected void composeMedicinalProductDefinitionOperationComponent(String name, MedicinalProductDefinition.MedicinalProductDefinitionOperationComponent element) throws IOException { if (element != null) { open(name); - composeMedicinalProductDefinitionManufacturingBusinessOperationComponentProperties(element); + composeMedicinalProductDefinitionOperationComponentProperties(element); close(); } } - protected void composeMedicinalProductDefinitionManufacturingBusinessOperationComponentProperties(MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent element) throws IOException { + protected void composeMedicinalProductDefinitionOperationComponentProperties(MedicinalProductDefinition.MedicinalProductDefinitionOperationComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasType()) { composeCodeableReference("type", element.getType()); @@ -52976,9 +54219,9 @@ public class JsonParser extends JsonParserBase { if (element.hasEffectiveDate()) { composePeriod("effectiveDate", element.getEffectiveDate()); } - if (element.hasManufacturer()) { - openArray("manufacturer"); - for (Reference e : element.getManufacturer()) + if (element.hasOrganization()) { + openArray("organization"); + for (Reference e : element.getOrganization()) composeReference(null, e); closeArray(); }; @@ -52990,6 +54233,48 @@ public class JsonParser extends JsonParserBase { } } + protected void composeMedicinalProductDefinitionPackageComponent(String name, MedicinalProductDefinition.MedicinalProductDefinitionPackageComponent element) throws IOException { + if (element != null) { + open(name); + composeMedicinalProductDefinitionPackageComponentProperties(element); + close(); + } + } + + protected void composeMedicinalProductDefinitionPackageComponentProperties(MedicinalProductDefinition.MedicinalProductDefinitionPackageComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasSize()) { + composeType("size", element.getSize()); + } + if (element.hasPackage()) { + composeReference("package", element.getPackage()); + } + } + + protected void composeMedicinalProductDefinitionAdministrableProductComponent(String name, MedicinalProductDefinition.MedicinalProductDefinitionAdministrableProductComponent element) throws IOException { + if (element != null) { + open(name); + composeMedicinalProductDefinitionAdministrableProductComponentProperties(element); + close(); + } + } + + protected void composeMedicinalProductDefinitionAdministrableProductComponentProperties(MedicinalProductDefinition.MedicinalProductDefinitionAdministrableProductComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasRoute()) { + openArray("route"); + for (CodeableConcept e : element.getRoute()) + composeCodeableConcept(null, e); + closeArray(); + }; + if (element.hasProduct()) { + composeReference("product", element.getProduct()); + } + } + protected void composeMessageDefinition(String name, MessageDefinition element) throws IOException { if (element != null) { prop("resourceType", name); @@ -53023,10 +54308,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasReplaces()) { if (anyHasValue(element.getReplaces())) { - openArray("replaces"); - for (CanonicalType e : element.getReplaces()) + openArray("replaces"); + for (CanonicalType e : element.getReplaces()) composeCanonicalCore(null, e, e != element.getReplaces().get(element.getReplaces().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getReplaces())) { openArray("_replaces"); @@ -53087,10 +54372,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasParent()) { if (anyHasValue(element.getParent())) { - openArray("parent"); - for (CanonicalType e : element.getParent()) + openArray("parent"); + for (CanonicalType e : element.getParent()) composeCanonicalCore(null, e, e != element.getParent().get(element.getParent().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getParent())) { openArray("_parent"); @@ -53124,10 +54409,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasGraph()) { if (anyHasValue(element.getGraph())) { - openArray("graph"); - for (CanonicalType e : element.getGraph()) + openArray("graph"); + for (CanonicalType e : element.getGraph()) composeCanonicalCore(null, e, e != element.getGraph().get(element.getGraph().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getGraph())) { openArray("_graph"); @@ -53558,10 +54843,10 @@ public class JsonParser extends JsonParserBase { composeBackboneElementProperties(element); if (element.hasScore()) { if (anyHasValue(element.getScore())) { - openArray("score"); - for (IntegerType e : element.getScore()) + openArray("score"); + for (IntegerType e : element.getScore()) composeIntegerCore(null, e, e != element.getScore().get(element.getScore().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getScore())) { openArray("_score"); @@ -53572,10 +54857,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasNumTP()) { if (anyHasValue(element.getNumTP())) { - openArray("numTP"); - for (IntegerType e : element.getNumTP()) + openArray("numTP"); + for (IntegerType e : element.getNumTP()) composeIntegerCore(null, e, e != element.getNumTP().get(element.getNumTP().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNumTP())) { openArray("_numTP"); @@ -53586,10 +54871,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasNumFP()) { if (anyHasValue(element.getNumFP())) { - openArray("numFP"); - for (IntegerType e : element.getNumFP()) + openArray("numFP"); + for (IntegerType e : element.getNumFP()) composeIntegerCore(null, e, e != element.getNumFP().get(element.getNumFP().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNumFP())) { openArray("_numFP"); @@ -53600,10 +54885,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasNumFN()) { if (anyHasValue(element.getNumFN())) { - openArray("numFN"); - for (IntegerType e : element.getNumFN()) + openArray("numFN"); + for (IntegerType e : element.getNumFN()) composeIntegerCore(null, e, e != element.getNumFN().get(element.getNumFN().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getNumFN())) { openArray("_numFN"); @@ -53614,10 +54899,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasPrecision()) { if (anyHasValue(element.getPrecision())) { - openArray("precision"); - for (DecimalType e : element.getPrecision()) + openArray("precision"); + for (DecimalType e : element.getPrecision()) composeDecimalCore(null, e, e != element.getPrecision().get(element.getPrecision().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getPrecision())) { openArray("_precision"); @@ -53628,10 +54913,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasSensitivity()) { if (anyHasValue(element.getSensitivity())) { - openArray("sensitivity"); - for (DecimalType e : element.getSensitivity()) + openArray("sensitivity"); + for (DecimalType e : element.getSensitivity()) composeDecimalCore(null, e, e != element.getSensitivity().get(element.getSensitivity().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getSensitivity())) { openArray("_sensitivity"); @@ -53642,10 +54927,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasFMeasure()) { if (anyHasValue(element.getFMeasure())) { - openArray("fMeasure"); - for (DecimalType e : element.getFMeasure()) + openArray("fMeasure"); + for (DecimalType e : element.getFMeasure()) composeDecimalCore(null, e, e != element.getFMeasure().get(element.getFMeasure().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getFMeasure())) { openArray("_fMeasure"); @@ -53782,6 +55067,10 @@ public class JsonParser extends JsonParserBase { composeStringCore("name", element.getNameElement(), false); composeStringExtras("name", element.getNameElement(), false); } + if (element.hasTitleElement()) { + composeStringCore("title", element.getTitleElement(), false); + composeStringExtras("title", element.getTitleElement(), false); + } if (element.hasStatusElement()) { composeEnumerationCore("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false); composeEnumerationExtras("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false); @@ -53868,6 +55157,10 @@ public class JsonParser extends JsonParserBase { if (element.hasPeriod()) { composePeriod("period", element.getPeriod()); } + if (element.hasAuthoritativeElement()) { + composeBooleanCore("authoritative", element.getAuthoritativeElement(), false); + composeBooleanExtras("authoritative", element.getAuthoritativeElement(), false); + } } protected void composeNutritionIntake(String name, NutritionIntake element) throws IOException { @@ -53887,10 +55180,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesCanonical()) { if (anyHasValue(element.getInstantiatesCanonical())) { - openArray("instantiatesCanonical"); - for (CanonicalType e : element.getInstantiatesCanonical()) + openArray("instantiatesCanonical"); + for (CanonicalType e : element.getInstantiatesCanonical()) composeCanonicalCore(null, e, e != element.getInstantiatesCanonical().get(element.getInstantiatesCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesCanonical())) { openArray("_instantiatesCanonical"); @@ -53901,10 +55194,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesUri()) { if (anyHasValue(element.getInstantiatesUri())) { - openArray("instantiatesUri"); - for (UriType e : element.getInstantiatesUri()) + openArray("instantiatesUri"); + for (UriType e : element.getInstantiatesUri()) composeUriCore(null, e, e != element.getInstantiatesUri().get(element.getInstantiatesUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesUri())) { openArray("_instantiatesUri"); @@ -54082,10 +55375,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesCanonical()) { if (anyHasValue(element.getInstantiatesCanonical())) { - openArray("instantiatesCanonical"); - for (CanonicalType e : element.getInstantiatesCanonical()) + openArray("instantiatesCanonical"); + for (CanonicalType e : element.getInstantiatesCanonical()) composeCanonicalCore(null, e, e != element.getInstantiatesCanonical().get(element.getInstantiatesCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesCanonical())) { openArray("_instantiatesCanonical"); @@ -54096,10 +55389,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesUri()) { if (anyHasValue(element.getInstantiatesUri())) { - openArray("instantiatesUri"); - for (UriType e : element.getInstantiatesUri()) + openArray("instantiatesUri"); + for (UriType e : element.getInstantiatesUri()) composeUriCore(null, e, e != element.getInstantiatesUri().get(element.getInstantiatesUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesUri())) { openArray("_instantiatesUri"); @@ -54110,10 +55403,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiates()) { if (anyHasValue(element.getInstantiates())) { - openArray("instantiates"); - for (UriType e : element.getInstantiates()) + openArray("instantiates"); + for (UriType e : element.getInstantiates()) composeUriCore(null, e, e != element.getInstantiates().get(element.getInstantiates().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiates())) { openArray("_instantiates"); @@ -54532,6 +55825,9 @@ public class JsonParser extends JsonParserBase { composeIdentifier(null, e); closeArray(); }; + if (element.hasInstantiates()) { + composeType("instantiates", element.getInstantiates()); + } if (element.hasBasedOn()) { openArray("basedOn"); for (Reference e : element.getBasedOn()) @@ -54725,38 +56021,14 @@ public class JsonParser extends JsonParserBase { composeStringCore("version", element.getVersionElement(), false); composeStringExtras("version", element.getVersionElement(), false); } + if (element.hasNameElement()) { + composeStringCore("name", element.getNameElement(), false); + composeStringExtras("name", element.getNameElement(), false); + } if (element.hasTitleElement()) { composeStringCore("title", element.getTitleElement(), false); composeStringExtras("title", element.getTitleElement(), false); } - if (element.hasDerivedFromCanonical()) { - if (anyHasValue(element.getDerivedFromCanonical())) { - openArray("derivedFromCanonical"); - for (CanonicalType e : element.getDerivedFromCanonical()) - composeCanonicalCore(null, e, e != element.getDerivedFromCanonical().get(element.getDerivedFromCanonical().size()-1)); - closeArray(); - } - if (anyHasExtras(element.getDerivedFromCanonical())) { - openArray("_derivedFromCanonical"); - for (CanonicalType e : element.getDerivedFromCanonical()) - composeCanonicalExtras(null, e, true); - closeArray(); - } - }; - if (element.hasDerivedFromUri()) { - if (anyHasValue(element.getDerivedFromUri())) { - openArray("derivedFromUri"); - for (UriType e : element.getDerivedFromUri()) - composeUriCore(null, e, e != element.getDerivedFromUri().get(element.getDerivedFromUri().size()-1)); - closeArray(); - } - if (anyHasExtras(element.getDerivedFromUri())) { - openArray("_derivedFromUri"); - for (UriType e : element.getDerivedFromUri()) - composeUriExtras(null, e, true); - closeArray(); - } - }; if (element.hasStatusElement()) { composeEnumerationCore("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false); composeEnumerationExtras("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false); @@ -54765,9 +56037,6 @@ public class JsonParser extends JsonParserBase { composeBooleanCore("experimental", element.getExperimentalElement(), false); composeBooleanExtras("experimental", element.getExperimentalElement(), false); } - if (element.hasSubject()) { - composeType("subject", element.getSubject()); - } if (element.hasDateElement()) { composeDateTimeCore("date", element.getDateElement(), false); composeDateTimeExtras("date", element.getDateElement(), false); @@ -54816,6 +56085,37 @@ public class JsonParser extends JsonParserBase { if (element.hasEffectivePeriod()) { composePeriod("effectivePeriod", element.getEffectivePeriod()); } + if (element.hasDerivedFromCanonical()) { + if (anyHasValue(element.getDerivedFromCanonical())) { + openArray("derivedFromCanonical"); + for (CanonicalType e : element.getDerivedFromCanonical()) + composeCanonicalCore(null, e, e != element.getDerivedFromCanonical().get(element.getDerivedFromCanonical().size()-1)); + closeArray(); + } + if (anyHasExtras(element.getDerivedFromCanonical())) { + openArray("_derivedFromCanonical"); + for (CanonicalType e : element.getDerivedFromCanonical()) + composeCanonicalExtras(null, e, true); + closeArray(); + } + }; + if (element.hasDerivedFromUri()) { + if (anyHasValue(element.getDerivedFromUri())) { + openArray("derivedFromUri"); + for (UriType e : element.getDerivedFromUri()) + composeUriCore(null, e, e != element.getDerivedFromUri().get(element.getDerivedFromUri().size()-1)); + closeArray(); + } + if (anyHasExtras(element.getDerivedFromUri())) { + openArray("_derivedFromUri"); + for (UriType e : element.getDerivedFromUri()) + composeUriExtras(null, e, true); + closeArray(); + } + }; + if (element.hasSubject()) { + composeCodeableConcept("subject", element.getSubject()); + } if (element.hasPerformerType()) { composeCodeableConcept("performerType", element.getPerformerType()); } @@ -54851,11 +56151,17 @@ public class JsonParser extends JsonParserBase { composeCodeableConcept("method", element.getMethod()); } if (element.hasSpecimen()) { - composeReference("specimen", element.getSpecimen()); - } + openArray("specimen"); + for (Reference e : element.getSpecimen()) + composeReference(null, e); + closeArray(); + }; if (element.hasDevice()) { - composeReference("device", element.getDevice()); - } + openArray("device"); + for (Reference e : element.getDevice()) + composeReference(null, e); + closeArray(); + }; if (element.hasPreferredReportNameElement()) { composeStringCore("preferredReportName", element.getPreferredReportNameElement(), false); composeStringExtras("preferredReportName", element.getPreferredReportNameElement(), false); @@ -54863,24 +56169,12 @@ public class JsonParser extends JsonParserBase { if (element.hasQuantitativeDetails()) { composeObservationDefinitionQuantitativeDetailsComponent("quantitativeDetails", element.getQuantitativeDetails()); } - if (element.hasQualifiedInterval()) { - openArray("qualifiedInterval"); - for (ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent e : element.getQualifiedInterval()) - composeObservationDefinitionQualifiedIntervalComponent(null, e); + if (element.hasQualifiedValue()) { + openArray("qualifiedValue"); + for (ObservationDefinition.ObservationDefinitionQualifiedValueComponent e : element.getQualifiedValue()) + composeObservationDefinitionQualifiedValueComponent(null, e); closeArray(); }; - if (element.hasValidCodedValueSet()) { - composeReference("validCodedValueSet", element.getValidCodedValueSet()); - } - if (element.hasNormalCodedValueSet()) { - composeReference("normalCodedValueSet", element.getNormalCodedValueSet()); - } - if (element.hasAbnormalCodedValueSet()) { - composeReference("abnormalCodedValueSet", element.getAbnormalCodedValueSet()); - } - if (element.hasCriticalCodedValueSet()) { - composeReference("criticalCodedValueSet", element.getCriticalCodedValueSet()); - } if (element.hasHasMember()) { openArray("hasMember"); for (Reference e : element.getHasMember()) @@ -54905,12 +56199,12 @@ public class JsonParser extends JsonParserBase { protected void composeObservationDefinitionQuantitativeDetailsComponentProperties(ObservationDefinition.ObservationDefinitionQuantitativeDetailsComponent element) throws IOException { composeBackboneElementProperties(element); - if (element.hasCustomaryUnit()) { - composeCodeableConcept("customaryUnit", element.getCustomaryUnit()); - } if (element.hasUnit()) { composeCodeableConcept("unit", element.getUnit()); } + if (element.hasCustomaryUnit()) { + composeCodeableConcept("customaryUnit", element.getCustomaryUnit()); + } if (element.hasConversionFactorElement()) { composeDecimalCore("conversionFactor", element.getConversionFactorElement(), false); composeDecimalExtras("conversionFactor", element.getConversionFactorElement(), false); @@ -54921,23 +56215,16 @@ public class JsonParser extends JsonParserBase { } } - protected void composeObservationDefinitionQualifiedIntervalComponent(String name, ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent element) throws IOException { + protected void composeObservationDefinitionQualifiedValueComponent(String name, ObservationDefinition.ObservationDefinitionQualifiedValueComponent element) throws IOException { if (element != null) { open(name); - composeObservationDefinitionQualifiedIntervalComponentProperties(element); + composeObservationDefinitionQualifiedValueComponentProperties(element); close(); } } - protected void composeObservationDefinitionQualifiedIntervalComponentProperties(ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent element) throws IOException { + protected void composeObservationDefinitionQualifiedValueComponentProperties(ObservationDefinition.ObservationDefinitionQualifiedValueComponent element) throws IOException { composeBackboneElementProperties(element); - if (element.hasCategoryElement()) { - composeEnumerationCore("category", element.getCategoryElement(), new ObservationDefinition.ObservationRangeCategoryEnumFactory(), false); - composeEnumerationExtras("category", element.getCategoryElement(), new ObservationDefinition.ObservationRangeCategoryEnumFactory(), false); - } - if (element.hasRange()) { - composeRange("range", element.getRange()); - } if (element.hasContext()) { composeCodeableConcept("context", element.getContext()); } @@ -54961,6 +56248,29 @@ public class JsonParser extends JsonParserBase { composeStringCore("condition", element.getConditionElement(), false); composeStringExtras("condition", element.getConditionElement(), false); } + if (element.hasRangeCategoryElement()) { + composeEnumerationCore("rangeCategory", element.getRangeCategoryElement(), new ObservationDefinition.ObservationRangeCategoryEnumFactory(), false); + composeEnumerationExtras("rangeCategory", element.getRangeCategoryElement(), new ObservationDefinition.ObservationRangeCategoryEnumFactory(), false); + } + if (element.hasRange()) { + composeRange("range", element.getRange()); + } + if (element.hasValidCodedValueSetElement()) { + composeCanonicalCore("validCodedValueSet", element.getValidCodedValueSetElement(), false); + composeCanonicalExtras("validCodedValueSet", element.getValidCodedValueSetElement(), false); + } + if (element.hasNormalCodedValueSetElement()) { + composeCanonicalCore("normalCodedValueSet", element.getNormalCodedValueSetElement(), false); + composeCanonicalExtras("normalCodedValueSet", element.getNormalCodedValueSetElement(), false); + } + if (element.hasAbnormalCodedValueSetElement()) { + composeCanonicalCore("abnormalCodedValueSet", element.getAbnormalCodedValueSetElement(), false); + composeCanonicalExtras("abnormalCodedValueSet", element.getAbnormalCodedValueSetElement(), false); + } + if (element.hasCriticalCodedValueSetElement()) { + composeCanonicalCore("criticalCodedValueSet", element.getCriticalCodedValueSetElement(), false); + composeCanonicalExtras("criticalCodedValueSet", element.getCriticalCodedValueSetElement(), false); + } } protected void composeObservationDefinitionComponentComponent(String name, ObservationDefinition.ObservationDefinitionComponentComponent element) throws IOException { @@ -54991,10 +56301,10 @@ public class JsonParser extends JsonParserBase { if (element.hasQuantitativeDetails()) { composeObservationDefinitionQuantitativeDetailsComponent("quantitativeDetails", element.getQuantitativeDetails()); } - if (element.hasQualifiedInterval()) { - openArray("qualifiedInterval"); - for (ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent e : element.getQualifiedInterval()) - composeObservationDefinitionQualifiedIntervalComponent(null, e); + if (element.hasQualifiedValue()) { + openArray("qualifiedValue"); + for (ObservationDefinition.ObservationDefinitionQualifiedValueComponent e : element.getQualifiedValue()) + composeObservationDefinitionQualifiedValueComponent(null, e); closeArray(); }; } @@ -55088,10 +56398,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasResource()) { if (anyHasValue(element.getResource())) { - openArray("resource"); - for (CodeType e : element.getResource()) + openArray("resource"); + for (CodeType e : element.getResource()) composeCodeCore(null, e, e != element.getResource().get(element.getResource().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getResource())) { openArray("_resource"); @@ -55170,10 +56480,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasTargetProfile()) { if (anyHasValue(element.getTargetProfile())) { - openArray("targetProfile"); - for (CanonicalType e : element.getTargetProfile()) + openArray("targetProfile"); + for (CanonicalType e : element.getTargetProfile()) composeCanonicalCore(null, e, e != element.getTargetProfile().get(element.getTargetProfile().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getTargetProfile())) { openArray("_targetProfile"); @@ -55255,10 +56565,10 @@ public class JsonParser extends JsonParserBase { composeBackboneElementProperties(element); if (element.hasParameterName()) { if (anyHasValue(element.getParameterName())) { - openArray("parameterName"); - for (StringType e : element.getParameterName()) + openArray("parameterName"); + for (StringType e : element.getParameterName()) composeStringCore(null, e, e != element.getParameterName().get(element.getParameterName().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getParameterName())) { openArray("_parameterName"); @@ -55317,10 +56627,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasLocation()) { if (anyHasValue(element.getLocation())) { - openArray("location"); - for (StringType e : element.getLocation()) + openArray("location"); + for (StringType e : element.getLocation()) composeStringCore(null, e, e != element.getLocation().get(element.getLocation().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getLocation())) { openArray("_location"); @@ -55331,10 +56641,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasExpression()) { if (anyHasValue(element.getExpression())) { - openArray("expression"); - for (StringType e : element.getExpression()) + openArray("expression"); + for (StringType e : element.getExpression()) composeStringCore(null, e, e != element.getExpression().get(element.getExpression().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getExpression())) { openArray("_expression"); @@ -55376,10 +56686,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasAlias()) { if (anyHasValue(element.getAlias())) { - openArray("alias"); - for (StringType e : element.getAlias()) + openArray("alias"); + for (StringType e : element.getAlias()) composeStringCore(null, e, e != element.getAlias().get(element.getAlias().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getAlias())) { openArray("_alias"); @@ -55551,6 +56861,12 @@ public class JsonParser extends JsonParserBase { composeDateTimeCore("statusDate", element.getStatusDateElement(), false); composeDateTimeExtras("statusDate", element.getStatusDateElement(), false); } + if (element.hasContainedItemQuantity()) { + openArray("containedItemQuantity"); + for (Quantity e : element.getContainedItemQuantity()) + composeQuantity(null, e); + closeArray(); + }; if (element.hasDescriptionElement()) { composeMarkdownCore("description", element.getDescriptionElement(), false); composeMarkdownExtras("description", element.getDescriptionElement(), false); @@ -55583,35 +56899,14 @@ public class JsonParser extends JsonParserBase { composeReference(null, e); closeArray(); }; - if (element.hasBatchIdentifier()) { - openArray("batchIdentifier"); - for (PackagedProductDefinition.PackagedProductDefinitionBatchIdentifierComponent e : element.getBatchIdentifier()) - composePackagedProductDefinitionBatchIdentifierComponent(null, e); + if (element.hasAttachedDocument()) { + openArray("attachedDocument"); + for (Reference e : element.getAttachedDocument()) + composeReference(null, e); closeArray(); }; if (element.hasPackage()) { - openArray("package"); - for (PackagedProductDefinition.PackagedProductDefinitionPackageComponent e : element.getPackage()) - composePackagedProductDefinitionPackageComponent(null, e); - closeArray(); - }; - } - - protected void composePackagedProductDefinitionBatchIdentifierComponent(String name, PackagedProductDefinition.PackagedProductDefinitionBatchIdentifierComponent element) throws IOException { - if (element != null) { - open(name); - composePackagedProductDefinitionBatchIdentifierComponentProperties(element); - close(); - } - } - - protected void composePackagedProductDefinitionBatchIdentifierComponentProperties(PackagedProductDefinition.PackagedProductDefinitionBatchIdentifierComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasOuterPackaging()) { - composeIdentifier("outerPackaging", element.getOuterPackaging()); - } - if (element.hasImmediatePackaging()) { - composeIdentifier("immediatePackaging", element.getImmediatePackaging()); + composePackagedProductDefinitionPackageComponent("package", element.getPackage()); } } @@ -55712,8 +57007,8 @@ public class JsonParser extends JsonParserBase { composeBackboneElementProperties(element); if (element.hasItem()) { openArray("item"); - for (Reference e : element.getItem()) - composeReference(null, e); + for (CodeableReference e : element.getItem()) + composeCodeableReference(null, e); closeArray(); }; if (element.hasAmount()) { @@ -56024,8 +57319,8 @@ public class JsonParser extends JsonParserBase { composeReference("requestor", element.getRequestor()); } if (element.hasOutcomeElement()) { - composeEnumerationCore("outcome", element.getOutcomeElement(), new Enumerations.ClaimProcessingCodesEnumFactory(), false); - composeEnumerationExtras("outcome", element.getOutcomeElement(), new Enumerations.ClaimProcessingCodesEnumFactory(), false); + composeEnumerationCore("outcome", element.getOutcomeElement(), new PaymentReconciliation.PaymentOutcomeEnumFactory(), false); + composeEnumerationExtras("outcome", element.getOutcomeElement(), new PaymentReconciliation.PaymentOutcomeEnumFactory(), false); } if (element.hasDispositionElement()) { composeStringCore("disposition", element.getDispositionElement(), false); @@ -56142,10 +57437,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasAssertionDate()) { if (anyHasValue(element.getAssertionDate())) { - openArray("assertionDate"); - for (DateTimeType e : element.getAssertionDate()) + openArray("assertionDate"); + for (DateTimeType e : element.getAssertionDate()) composeDateTimeCore(null, e, e != element.getAssertionDate().get(element.getAssertionDate().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getAssertionDate())) { openArray("_assertionDate"); @@ -56458,10 +57753,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasLibrary()) { if (anyHasValue(element.getLibrary())) { - openArray("library"); - for (CanonicalType e : element.getLibrary()) + openArray("library"); + for (CanonicalType e : element.getLibrary()) composeCanonicalCore(null, e, e != element.getLibrary().get(element.getLibrary().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getLibrary())) { openArray("_library"); @@ -56476,6 +57771,12 @@ public class JsonParser extends JsonParserBase { composePlanDefinitionGoalComponent(null, e); closeArray(); }; + if (element.hasActor()) { + openArray("actor"); + for (PlanDefinition.PlanDefinitionActorComponent e : element.getActor()) + composePlanDefinitionActorComponent(null, e); + closeArray(); + }; if (element.hasAction()) { openArray("action"); for (PlanDefinition.PlanDefinitionActionComponent e : element.getAction()) @@ -56547,6 +57848,54 @@ public class JsonParser extends JsonParserBase { } } + protected void composePlanDefinitionActorComponent(String name, PlanDefinition.PlanDefinitionActorComponent element) throws IOException { + if (element != null) { + open(name); + composePlanDefinitionActorComponentProperties(element); + close(); + } + } + + protected void composePlanDefinitionActorComponentProperties(PlanDefinition.PlanDefinitionActorComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasTitleElement()) { + composeStringCore("title", element.getTitleElement(), false); + composeStringExtras("title", element.getTitleElement(), false); + } + if (element.hasDescriptionElement()) { + composeMarkdownCore("description", element.getDescriptionElement(), false); + composeMarkdownExtras("description", element.getDescriptionElement(), false); + } + if (element.hasOption()) { + openArray("option"); + for (PlanDefinition.PlanDefinitionActorOptionComponent e : element.getOption()) + composePlanDefinitionActorOptionComponent(null, e); + closeArray(); + }; + } + + protected void composePlanDefinitionActorOptionComponent(String name, PlanDefinition.PlanDefinitionActorOptionComponent element) throws IOException { + if (element != null) { + open(name); + composePlanDefinitionActorOptionComponentProperties(element); + close(); + } + } + + protected void composePlanDefinitionActorOptionComponentProperties(PlanDefinition.PlanDefinitionActorOptionComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasTypeElement()) { + composeEnumerationCore("type", element.getTypeElement(), new Enumerations.ActionParticipantTypeEnumFactory(), false); + composeEnumerationExtras("type", element.getTypeElement(), new Enumerations.ActionParticipantTypeEnumFactory(), false); + } + if (element.hasTypeReference()) { + composeReference("typeReference", element.getTypeReference()); + } + if (element.hasRole()) { + composeCodeableConcept("role", element.getRole()); + } + } + protected void composePlanDefinitionActionComponent(String name, PlanDefinition.PlanDefinitionActionComponent element) throws IOException { if (element != null) { open(name); @@ -56578,11 +57927,8 @@ public class JsonParser extends JsonParserBase { composeEnumerationExtras("priority", element.getPriorityElement(), new Enumerations.RequestPriorityEnumFactory(), false); } if (element.hasCode()) { - openArray("code"); - for (CodeableConcept e : element.getCode()) - composeCodeableConcept(null, e); - closeArray(); - }; + composeCodeableConcept("code", element.getCode()); + } if (element.hasReason()) { openArray("reason"); for (CodeableConcept e : element.getReason()) @@ -56597,10 +57943,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasGoalId()) { if (anyHasValue(element.getGoalId())) { - openArray("goalId"); - for (IdType e : element.getGoalId()) + openArray("goalId"); + for (IdType e : element.getGoalId()) composeIdCore(null, e, e != element.getGoalId().get(element.getGoalId().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getGoalId())) { openArray("_goalId"); @@ -56626,14 +57972,14 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInput()) { openArray("input"); - for (DataRequirement e : element.getInput()) - composeDataRequirement(null, e); + for (PlanDefinition.PlanDefinitionActionInputComponent e : element.getInput()) + composePlanDefinitionActionInputComponent(null, e); closeArray(); }; if (element.hasOutput()) { openArray("output"); - for (DataRequirement e : element.getOutput()) - composeDataRequirement(null, e); + for (PlanDefinition.PlanDefinitionActionOutputComponent e : element.getOutput()) + composePlanDefinitionActionOutputComponent(null, e); closeArray(); }; if (element.hasRelatedAction()) { @@ -56645,6 +57991,9 @@ public class JsonParser extends JsonParserBase { if (element.hasTiming()) { composeType("timing", element.getTiming()); } + if (element.hasLocation()) { + composeCodeableReference("location", element.getLocation()); + } if (element.hasParticipant()) { openArray("participant"); for (PlanDefinition.PlanDefinitionActionParticipantComponent e : element.getParticipant()) @@ -56714,6 +58063,52 @@ public class JsonParser extends JsonParserBase { } } + protected void composePlanDefinitionActionInputComponent(String name, PlanDefinition.PlanDefinitionActionInputComponent element) throws IOException { + if (element != null) { + open(name); + composePlanDefinitionActionInputComponentProperties(element); + close(); + } + } + + protected void composePlanDefinitionActionInputComponentProperties(PlanDefinition.PlanDefinitionActionInputComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasTitleElement()) { + composeStringCore("title", element.getTitleElement(), false); + composeStringExtras("title", element.getTitleElement(), false); + } + if (element.hasRequirement()) { + composeDataRequirement("requirement", element.getRequirement()); + } + if (element.hasRelatedDataElement()) { + composeIdCore("relatedData", element.getRelatedDataElement(), false); + composeIdExtras("relatedData", element.getRelatedDataElement(), false); + } + } + + protected void composePlanDefinitionActionOutputComponent(String name, PlanDefinition.PlanDefinitionActionOutputComponent element) throws IOException { + if (element != null) { + open(name); + composePlanDefinitionActionOutputComponentProperties(element); + close(); + } + } + + protected void composePlanDefinitionActionOutputComponentProperties(PlanDefinition.PlanDefinitionActionOutputComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasTitleElement()) { + composeStringCore("title", element.getTitleElement(), false); + composeStringExtras("title", element.getTitleElement(), false); + } + if (element.hasRequirement()) { + composeDataRequirement("requirement", element.getRequirement()); + } + if (element.hasRelatedDataElement()) { + composeStringCore("relatedData", element.getRelatedDataElement(), false); + composeStringExtras("relatedData", element.getRelatedDataElement(), false); + } + } + protected void composePlanDefinitionActionRelatedActionComponent(String name, PlanDefinition.PlanDefinitionActionRelatedActionComponent element) throws IOException { if (element != null) { open(name); @@ -56724,9 +58119,9 @@ public class JsonParser extends JsonParserBase { protected void composePlanDefinitionActionRelatedActionComponentProperties(PlanDefinition.PlanDefinitionActionRelatedActionComponent element) throws IOException { composeBackboneElementProperties(element); - if (element.hasActionIdElement()) { - composeIdCore("actionId", element.getActionIdElement(), false); - composeIdExtras("actionId", element.getActionIdElement(), false); + if (element.hasTargetIdElement()) { + composeIdCore("targetId", element.getTargetIdElement(), false); + composeIdExtras("targetId", element.getTargetIdElement(), false); } if (element.hasRelationshipElement()) { composeEnumerationCore("relationship", element.getRelationshipElement(), new Enumerations.ActionRelationshipTypeEnumFactory(), false); @@ -56747,13 +58142,23 @@ public class JsonParser extends JsonParserBase { protected void composePlanDefinitionActionParticipantComponentProperties(PlanDefinition.PlanDefinitionActionParticipantComponent element) throws IOException { composeBackboneElementProperties(element); + if (element.hasActorIdElement()) { + composeStringCore("actorId", element.getActorIdElement(), false); + composeStringExtras("actorId", element.getActorIdElement(), false); + } if (element.hasTypeElement()) { composeEnumerationCore("type", element.getTypeElement(), new Enumerations.ActionParticipantTypeEnumFactory(), false); composeEnumerationExtras("type", element.getTypeElement(), new Enumerations.ActionParticipantTypeEnumFactory(), false); } + if (element.hasTypeReference()) { + composeReference("typeReference", element.getTypeReference()); + } if (element.hasRole()) { composeCodeableConcept("role", element.getRole()); } + if (element.hasFunction()) { + composeCodeableConcept("function", element.getFunction()); + } } protected void composePlanDefinitionActionDynamicValueComponent(String name, PlanDefinition.PlanDefinitionActionDynamicValueComponent element) throws IOException { @@ -57021,10 +58426,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesCanonical()) { if (anyHasValue(element.getInstantiatesCanonical())) { - openArray("instantiatesCanonical"); - for (CanonicalType e : element.getInstantiatesCanonical()) + openArray("instantiatesCanonical"); + for (CanonicalType e : element.getInstantiatesCanonical()) composeCanonicalCore(null, e, e != element.getInstantiatesCanonical().get(element.getInstantiatesCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesCanonical())) { openArray("_instantiatesCanonical"); @@ -57035,10 +58440,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesUri()) { if (anyHasValue(element.getInstantiatesUri())) { - openArray("instantiatesUri"); - for (UriType e : element.getInstantiatesUri()) + openArray("instantiatesUri"); + for (UriType e : element.getInstantiatesUri()) composeUriCore(null, e, e != element.getInstantiatesUri().get(element.getInstantiatesUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesUri())) { openArray("_instantiatesUri"); @@ -57160,6 +58565,12 @@ public class JsonParser extends JsonParserBase { composeCodeableReference(null, e); closeArray(); }; + if (element.hasSupportingInfo()) { + openArray("supportingInfo"); + for (Reference e : element.getSupportingInfo()) + composeReference(null, e); + closeArray(); + }; } protected void composeProcedurePerformerComponent(String name, Procedure.ProcedurePerformerComponent element) throws IOException { @@ -57225,10 +58636,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasPolicy()) { if (anyHasValue(element.getPolicy())) { - openArray("policy"); - for (UriType e : element.getPolicy()) + openArray("policy"); + for (UriType e : element.getPolicy()) composeUriCore(null, e, e != element.getPolicy().get(element.getPolicy().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getPolicy())) { openArray("_policy"); @@ -57249,6 +58660,15 @@ public class JsonParser extends JsonParserBase { if (element.hasActivity()) { composeCodeableConcept("activity", element.getActivity()); } + if (element.hasBasedOn()) { + openArray("basedOn"); + for (Reference e : element.getBasedOn()) + composeReference(null, e); + closeArray(); + }; + if (element.hasEncounter()) { + composeReference("encounter", element.getEncounter()); + } if (element.hasAgent()) { openArray("agent"); for (Provenance.ProvenanceAgentComponent e : element.getAgent()) @@ -57354,10 +58774,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasDerivedFrom()) { if (anyHasValue(element.getDerivedFrom())) { - openArray("derivedFrom"); - for (CanonicalType e : element.getDerivedFrom()) + openArray("derivedFrom"); + for (CanonicalType e : element.getDerivedFrom()) composeCanonicalCore(null, e, e != element.getDerivedFrom().get(element.getDerivedFrom().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getDerivedFrom())) { openArray("_derivedFrom"); @@ -57376,10 +58796,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasSubjectType()) { if (anyHasValue(element.getSubjectType())) { - openArray("subjectType"); - for (CodeType e : element.getSubjectType()) + openArray("subjectType"); + for (CodeType e : element.getSubjectType()) composeCodeCore(null, e, e != element.getSubjectType().get(element.getSubjectType().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getSubjectType())) { openArray("_subjectType"); @@ -57480,8 +58900,8 @@ public class JsonParser extends JsonParserBase { composeStringExtras("prefix", element.getPrefixElement(), false); } if (element.hasTextElement()) { - composeStringCore("text", element.getTextElement(), false); - composeStringExtras("text", element.getTextElement(), false); + composeMarkdownCore("text", element.getTextElement(), false); + composeMarkdownExtras("text", element.getTextElement(), false); } if (element.hasTypeElement()) { composeEnumerationCore("type", element.getTypeElement(), new Questionnaire.QuestionnaireItemTypeEnumFactory(), false); @@ -57497,6 +58917,10 @@ public class JsonParser extends JsonParserBase { composeEnumerationCore("enableBehavior", element.getEnableBehaviorElement(), new Questionnaire.EnableWhenBehaviorEnumFactory(), false); composeEnumerationExtras("enableBehavior", element.getEnableBehaviorElement(), new Questionnaire.EnableWhenBehaviorEnumFactory(), false); } + if (element.hasDisabledDisplayElement()) { + composeEnumerationCore("disabledDisplay", element.getDisabledDisplayElement(), new Questionnaire.QuestionnaireItemDisabledDisplayEnumFactory(), false); + composeEnumerationExtras("disabledDisplay", element.getDisabledDisplayElement(), new Questionnaire.QuestionnaireItemDisabledDisplayEnumFactory(), false); + } if (element.hasRequiredElement()) { composeBooleanCore("required", element.getRequiredElement(), false); composeBooleanExtras("required", element.getRequiredElement(), false); @@ -57513,6 +58937,10 @@ public class JsonParser extends JsonParserBase { composeIntegerCore("maxLength", element.getMaxLengthElement(), false); composeIntegerExtras("maxLength", element.getMaxLengthElement(), false); } + if (element.hasAnswerConstraintElement()) { + composeEnumerationCore("answerConstraint", element.getAnswerConstraintElement(), new Questionnaire.QuestionnaireAnswerConstraintEnumFactory(), false); + composeEnumerationExtras("answerConstraint", element.getAnswerConstraintElement(), new Questionnaire.QuestionnaireAnswerConstraintEnumFactory(), false); + } if (element.hasAnswerValueSetElement()) { composeCanonicalCore("answerValueSet", element.getAnswerValueSetElement(), false); composeCanonicalExtras("answerValueSet", element.getAnswerValueSetElement(), false); @@ -57749,7 +59177,7 @@ public class JsonParser extends JsonParserBase { composePeriod("validityPeriod", element.getValidityPeriod()); } if (element.hasIndication()) { - composeType("indication", element.getIndication()); + composeCodeableReference("indication", element.getIndication()); } if (element.hasIntendedUse()) { composeCodeableConcept("intendedUse", element.getIntendedUse()); @@ -57778,6 +59206,12 @@ public class JsonParser extends JsonParserBase { if (element.hasRegulator()) { composeReference("regulator", element.getRegulator()); } + if (element.hasAttachedDocument()) { + openArray("attachedDocument"); + for (Reference e : element.getAttachedDocument()) + composeReference(null, e); + closeArray(); + }; if (element.hasCase()) { composeRegulatedAuthorizationCaseComponent("case", element.getCase()); } @@ -57938,10 +59372,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesCanonical()) { if (anyHasValue(element.getInstantiatesCanonical())) { - openArray("instantiatesCanonical"); - for (CanonicalType e : element.getInstantiatesCanonical()) + openArray("instantiatesCanonical"); + for (CanonicalType e : element.getInstantiatesCanonical()) composeCanonicalCore(null, e, e != element.getInstantiatesCanonical().get(element.getInstantiatesCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesCanonical())) { openArray("_instantiatesCanonical"); @@ -57952,10 +59386,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesUri()) { if (anyHasValue(element.getInstantiatesUri())) { - openArray("instantiatesUri"); - for (UriType e : element.getInstantiatesUri()) + openArray("instantiatesUri"); + for (UriType e : element.getInstantiatesUri()) composeUriCore(null, e, e != element.getInstantiatesUri().get(element.getInstantiatesUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesUri())) { openArray("_instantiatesUri"); @@ -58084,10 +59518,13 @@ public class JsonParser extends JsonParserBase { if (element.hasTiming()) { composeType("timing", element.getTiming()); } + if (element.hasLocation()) { + composeCodeableReference("location", element.getLocation()); + } if (element.hasParticipant()) { openArray("participant"); - for (Reference e : element.getParticipant()) - composeReference(null, e); + for (RequestGroup.RequestGroupActionParticipantComponent e : element.getParticipant()) + composeRequestGroupActionParticipantComponent(null, e); closeArray(); }; if (element.hasType()) { @@ -58153,9 +59590,9 @@ public class JsonParser extends JsonParserBase { protected void composeRequestGroupActionRelatedActionComponentProperties(RequestGroup.RequestGroupActionRelatedActionComponent element) throws IOException { composeBackboneElementProperties(element); - if (element.hasActionIdElement()) { - composeIdCore("actionId", element.getActionIdElement(), false); - composeIdExtras("actionId", element.getActionIdElement(), false); + if (element.hasTargetIdElement()) { + composeIdCore("targetId", element.getTargetIdElement(), false); + composeIdExtras("targetId", element.getTargetIdElement(), false); } if (element.hasRelationshipElement()) { composeEnumerationCore("relationship", element.getRelationshipElement(), new Enumerations.ActionRelationshipTypeEnumFactory(), false); @@ -58166,6 +59603,34 @@ public class JsonParser extends JsonParserBase { } } + protected void composeRequestGroupActionParticipantComponent(String name, RequestGroup.RequestGroupActionParticipantComponent element) throws IOException { + if (element != null) { + open(name); + composeRequestGroupActionParticipantComponentProperties(element); + close(); + } + } + + protected void composeRequestGroupActionParticipantComponentProperties(RequestGroup.RequestGroupActionParticipantComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasTypeElement()) { + composeEnumerationCore("type", element.getTypeElement(), new Enumerations.ActionParticipantTypeEnumFactory(), false); + composeEnumerationExtras("type", element.getTypeElement(), new Enumerations.ActionParticipantTypeEnumFactory(), false); + } + if (element.hasTypeReference()) { + composeReference("typeReference", element.getTypeReference()); + } + if (element.hasRole()) { + composeCodeableConcept("role", element.getRole()); + } + if (element.hasFunction()) { + composeCodeableConcept("function", element.getFunction()); + } + if (element.hasActor()) { + composeReference("actor", element.getActor()); + } + } + protected void composeResearchStudy(String name, ResearchStudy element) throws IOException { if (element != null) { prop("resourceType", name); @@ -58175,16 +59640,34 @@ public class JsonParser extends JsonParserBase { protected void composeResearchStudyProperties(ResearchStudy element) throws IOException { composeDomainResourceProperties(element); + if (element.hasUrlElement()) { + composeUriCore("url", element.getUrlElement(), false); + composeUriExtras("url", element.getUrlElement(), false); + } if (element.hasIdentifier()) { openArray("identifier"); for (Identifier e : element.getIdentifier()) composeIdentifier(null, e); closeArray(); }; + if (element.hasVersionElement()) { + composeStringCore("version", element.getVersionElement(), false); + composeStringExtras("version", element.getVersionElement(), false); + } + if (element.hasNameElement()) { + composeStringCore("name", element.getNameElement(), false); + composeStringExtras("name", element.getNameElement(), false); + } if (element.hasTitleElement()) { composeStringCore("title", element.getTitleElement(), false); composeStringExtras("title", element.getTitleElement(), false); } + if (element.hasLabel()) { + openArray("label"); + for (ResearchStudy.ResearchStudyLabelComponent e : element.getLabel()) + composeResearchStudyLabelComponent(null, e); + closeArray(); + }; if (element.hasProtocol()) { openArray("protocol"); for (Reference e : element.getProtocol()) @@ -58197,9 +59680,19 @@ public class JsonParser extends JsonParserBase { composeReference(null, e); closeArray(); }; + if (element.hasRelatedArtifact()) { + openArray("relatedArtifact"); + for (RelatedArtifact e : element.getRelatedArtifact()) + composeRelatedArtifact(null, e); + closeArray(); + }; + if (element.hasDateElement()) { + composeDateTimeCore("date", element.getDateElement(), false); + composeDateTimeExtras("date", element.getDateElement(), false); + } if (element.hasStatusElement()) { - composeEnumerationCore("status", element.getStatusElement(), new ResearchStudy.ResearchStudyStatusEnumFactory(), false); - composeEnumerationExtras("status", element.getStatusElement(), new ResearchStudy.ResearchStudyStatusEnumFactory(), false); + composeEnumerationCore("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false); + composeEnumerationExtras("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false); } if (element.hasPrimaryPurposeType()) { composeCodeableConcept("primaryPurposeType", element.getPrimaryPurposeType()); @@ -58215,8 +59708,8 @@ public class JsonParser extends JsonParserBase { }; if (element.hasFocus()) { openArray("focus"); - for (CodeableConcept e : element.getFocus()) - composeCodeableConcept(null, e); + for (ResearchStudy.ResearchStudyFocusComponent e : element.getFocus()) + composeResearchStudyFocusComponent(null, e); closeArray(); }; if (element.hasCondition()) { @@ -58225,18 +59718,6 @@ public class JsonParser extends JsonParserBase { composeCodeableConcept(null, e); closeArray(); }; - if (element.hasContact()) { - openArray("contact"); - for (ContactDetail e : element.getContact()) - composeContactDetail(null, e); - closeArray(); - }; - if (element.hasRelatedArtifact()) { - openArray("relatedArtifact"); - for (RelatedArtifact e : element.getRelatedArtifact()) - composeRelatedArtifact(null, e); - closeArray(); - }; if (element.hasKeyword()) { openArray("keyword"); for (CodeableConcept e : element.getKeyword()) @@ -58249,19 +59730,23 @@ public class JsonParser extends JsonParserBase { composeCodeableConcept(null, e); closeArray(); }; + if (element.hasDescriptionSummaryElement()) { + composeMarkdownCore("descriptionSummary", element.getDescriptionSummaryElement(), false); + composeMarkdownExtras("descriptionSummary", element.getDescriptionSummaryElement(), false); + } if (element.hasDescriptionElement()) { composeMarkdownCore("description", element.getDescriptionElement(), false); composeMarkdownExtras("description", element.getDescriptionElement(), false); } - if (element.hasEnrollment()) { - openArray("enrollment"); - for (Reference e : element.getEnrollment()) - composeReference(null, e); - closeArray(); - }; if (element.hasPeriod()) { composePeriod("period", element.getPeriod()); } + if (element.hasContact()) { + openArray("contact"); + for (ContactDetail e : element.getContact()) + composeContactDetail(null, e); + closeArray(); + }; if (element.hasSponsor()) { composeReference("sponsor", element.getSponsor()); } @@ -58274,19 +59759,46 @@ public class JsonParser extends JsonParserBase { composeReference(null, e); closeArray(); }; - if (element.hasReasonStopped()) { - composeCodeableConcept("reasonStopped", element.getReasonStopped()); - } if (element.hasNote()) { openArray("note"); for (Annotation e : element.getNote()) composeAnnotation(null, e); closeArray(); }; - if (element.hasArm()) { - openArray("arm"); - for (ResearchStudy.ResearchStudyArmComponent e : element.getArm()) - composeResearchStudyArmComponent(null, e); + if (element.hasClassification()) { + openArray("classification"); + for (ResearchStudy.ResearchStudyClassificationComponent e : element.getClassification()) + composeResearchStudyClassificationComponent(null, e); + closeArray(); + }; + if (element.hasAssociatedParty()) { + openArray("associatedParty"); + for (ResearchStudy.ResearchStudyAssociatedPartyComponent e : element.getAssociatedParty()) + composeResearchStudyAssociatedPartyComponent(null, e); + closeArray(); + }; + if (element.hasCurrentState()) { + openArray("currentState"); + for (CodeableConcept e : element.getCurrentState()) + composeCodeableConcept(null, e); + closeArray(); + }; + if (element.hasStatusDate()) { + openArray("statusDate"); + for (ResearchStudy.ResearchStudyStatusDateComponent e : element.getStatusDate()) + composeResearchStudyStatusDateComponent(null, e); + closeArray(); + }; + if (element.hasWhyStopped()) { + composeCodeableConcept("whyStopped", element.getWhyStopped()); + } + if (element.hasRecruitment()) { + composeResearchStudyRecruitmentComponent("recruitment", element.getRecruitment()); + } + if (element.hasComparisonGroup()) { + openArray("comparisonGroup"); + for (ResearchStudy.ResearchStudyComparisonGroupComponent e : element.getComparisonGroup()) + composeResearchStudyComparisonGroupComponent(null, e); closeArray(); }; if (element.hasObjective()) { @@ -58295,18 +59807,180 @@ public class JsonParser extends JsonParserBase { composeResearchStudyObjectiveComponent(null, e); closeArray(); }; + if (element.hasOutcomeMeasure()) { + openArray("outcomeMeasure"); + for (ResearchStudy.ResearchStudyOutcomeMeasureComponent e : element.getOutcomeMeasure()) + composeResearchStudyOutcomeMeasureComponent(null, e); + closeArray(); + }; + if (element.hasResult()) { + openArray("result"); + for (Reference e : element.getResult()) + composeReference(null, e); + closeArray(); + }; + if (element.hasWebLocation()) { + openArray("webLocation"); + for (ResearchStudy.ResearchStudyWebLocationComponent e : element.getWebLocation()) + composeResearchStudyWebLocationComponent(null, e); + closeArray(); + }; } - protected void composeResearchStudyArmComponent(String name, ResearchStudy.ResearchStudyArmComponent element) throws IOException { + protected void composeResearchStudyLabelComponent(String name, ResearchStudy.ResearchStudyLabelComponent element) throws IOException { if (element != null) { open(name); - composeResearchStudyArmComponentProperties(element); + composeResearchStudyLabelComponentProperties(element); close(); } } - protected void composeResearchStudyArmComponentProperties(ResearchStudy.ResearchStudyArmComponent element) throws IOException { + protected void composeResearchStudyLabelComponentProperties(ResearchStudy.ResearchStudyLabelComponent element) throws IOException { composeBackboneElementProperties(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasValueElement()) { + composeStringCore("value", element.getValueElement(), false); + composeStringExtras("value", element.getValueElement(), false); + } + } + + protected void composeResearchStudyFocusComponent(String name, ResearchStudy.ResearchStudyFocusComponent element) throws IOException { + if (element != null) { + open(name); + composeResearchStudyFocusComponentProperties(element); + close(); + } + } + + protected void composeResearchStudyFocusComponentProperties(ResearchStudy.ResearchStudyFocusComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasProductCode()) { + composeCodeableConcept("productCode", element.getProductCode()); + } + if (element.hasFocusType()) { + openArray("focusType"); + for (CodeableConcept e : element.getFocusType()) + composeCodeableConcept(null, e); + closeArray(); + }; + if (element.hasFactorElement()) { + composeMarkdownCore("factor", element.getFactorElement(), false); + composeMarkdownExtras("factor", element.getFactorElement(), false); + } + } + + protected void composeResearchStudyClassificationComponent(String name, ResearchStudy.ResearchStudyClassificationComponent element) throws IOException { + if (element != null) { + open(name); + composeResearchStudyClassificationComponentProperties(element); + close(); + } + } + + protected void composeResearchStudyClassificationComponentProperties(ResearchStudy.ResearchStudyClassificationComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasClassifier()) { + openArray("classifier"); + for (CodeableConcept e : element.getClassifier()) + composeCodeableConcept(null, e); + closeArray(); + }; + } + + protected void composeResearchStudyAssociatedPartyComponent(String name, ResearchStudy.ResearchStudyAssociatedPartyComponent element) throws IOException { + if (element != null) { + open(name); + composeResearchStudyAssociatedPartyComponentProperties(element); + close(); + } + } + + protected void composeResearchStudyAssociatedPartyComponentProperties(ResearchStudy.ResearchStudyAssociatedPartyComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasNameElement()) { + composeStringCore("name", element.getNameElement(), false); + composeStringExtras("name", element.getNameElement(), false); + } + if (element.hasRole()) { + composeCodeableConcept("role", element.getRole()); + } + if (element.hasClassifier()) { + openArray("classifier"); + for (CodeableConcept e : element.getClassifier()) + composeCodeableConcept(null, e); + closeArray(); + }; + if (element.hasParty()) { + composeReference("party", element.getParty()); + } + } + + protected void composeResearchStudyStatusDateComponent(String name, ResearchStudy.ResearchStudyStatusDateComponent element) throws IOException { + if (element != null) { + open(name); + composeResearchStudyStatusDateComponentProperties(element); + close(); + } + } + + protected void composeResearchStudyStatusDateComponentProperties(ResearchStudy.ResearchStudyStatusDateComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasActivity()) { + composeCodeableConcept("activity", element.getActivity()); + } + if (element.hasActualElement()) { + composeBooleanCore("actual", element.getActualElement(), false); + composeBooleanExtras("actual", element.getActualElement(), false); + } + if (element.hasPeriod()) { + composePeriod("period", element.getPeriod()); + } + } + + protected void composeResearchStudyRecruitmentComponent(String name, ResearchStudy.ResearchStudyRecruitmentComponent element) throws IOException { + if (element != null) { + open(name); + composeResearchStudyRecruitmentComponentProperties(element); + close(); + } + } + + protected void composeResearchStudyRecruitmentComponentProperties(ResearchStudy.ResearchStudyRecruitmentComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasTargetNumberElement()) { + composeUnsignedIntCore("targetNumber", element.getTargetNumberElement(), false); + composeUnsignedIntExtras("targetNumber", element.getTargetNumberElement(), false); + } + if (element.hasActualNumberElement()) { + composeUnsignedIntCore("actualNumber", element.getActualNumberElement(), false); + composeUnsignedIntExtras("actualNumber", element.getActualNumberElement(), false); + } + if (element.hasEligibility()) { + composeReference("eligibility", element.getEligibility()); + } + if (element.hasActualGroup()) { + composeReference("actualGroup", element.getActualGroup()); + } + } + + protected void composeResearchStudyComparisonGroupComponent(String name, ResearchStudy.ResearchStudyComparisonGroupComponent element) throws IOException { + if (element != null) { + open(name); + composeResearchStudyComparisonGroupComponentProperties(element); + close(); + } + } + + protected void composeResearchStudyComparisonGroupComponentProperties(ResearchStudy.ResearchStudyComparisonGroupComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasIdentifier()) { + composeType("identifier", element.getIdentifier()); + } if (element.hasNameElement()) { composeStringCore("name", element.getNameElement(), false); composeStringExtras("name", element.getNameElement(), false); @@ -58315,8 +59989,17 @@ public class JsonParser extends JsonParserBase { composeCodeableConcept("type", element.getType()); } if (element.hasDescriptionElement()) { - composeStringCore("description", element.getDescriptionElement(), false); - composeStringExtras("description", element.getDescriptionElement(), false); + composeMarkdownCore("description", element.getDescriptionElement(), false); + composeMarkdownExtras("description", element.getDescriptionElement(), false); + } + if (element.hasIntendedExposure()) { + openArray("intendedExposure"); + for (Reference e : element.getIntendedExposure()) + composeReference(null, e); + closeArray(); + }; + if (element.hasObservedGroup()) { + composeReference("observedGroup", element.getObservedGroup()); } } @@ -58337,6 +60020,58 @@ public class JsonParser extends JsonParserBase { if (element.hasType()) { composeCodeableConcept("type", element.getType()); } + if (element.hasDescriptionElement()) { + composeMarkdownCore("description", element.getDescriptionElement(), false); + composeMarkdownExtras("description", element.getDescriptionElement(), false); + } + } + + protected void composeResearchStudyOutcomeMeasureComponent(String name, ResearchStudy.ResearchStudyOutcomeMeasureComponent element) throws IOException { + if (element != null) { + open(name); + composeResearchStudyOutcomeMeasureComponentProperties(element); + close(); + } + } + + protected void composeResearchStudyOutcomeMeasureComponentProperties(ResearchStudy.ResearchStudyOutcomeMeasureComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasNameElement()) { + composeStringCore("name", element.getNameElement(), false); + composeStringExtras("name", element.getNameElement(), false); + } + if (element.hasType()) { + openArray("type"); + for (CodeableConcept e : element.getType()) + composeCodeableConcept(null, e); + closeArray(); + }; + if (element.hasDescriptionElement()) { + composeMarkdownCore("description", element.getDescriptionElement(), false); + composeMarkdownExtras("description", element.getDescriptionElement(), false); + } + if (element.hasReference()) { + composeReference("reference", element.getReference()); + } + } + + protected void composeResearchStudyWebLocationComponent(String name, ResearchStudy.ResearchStudyWebLocationComponent element) throws IOException { + if (element != null) { + open(name); + composeResearchStudyWebLocationComponentProperties(element); + close(); + } + } + + protected void composeResearchStudyWebLocationComponentProperties(ResearchStudy.ResearchStudyWebLocationComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasUrlElement()) { + composeUriCore("url", element.getUrlElement(), false); + composeUriExtras("url", element.getUrlElement(), false); + } } protected void composeResearchSubject(String name, ResearchSubject element) throws IOException { @@ -58355,8 +60090,8 @@ public class JsonParser extends JsonParserBase { closeArray(); }; if (element.hasStatusElement()) { - composeEnumerationCore("status", element.getStatusElement(), new ResearchSubject.ResearchSubjectStatusEnumFactory(), false); - composeEnumerationExtras("status", element.getStatusElement(), new ResearchSubject.ResearchSubjectStatusEnumFactory(), false); + composeEnumerationCore("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false); + composeEnumerationExtras("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory(), false); } if (element.hasProgress()) { openArray("progress"); @@ -58370,8 +60105,8 @@ public class JsonParser extends JsonParserBase { if (element.hasStudy()) { composeReference("study", element.getStudy()); } - if (element.hasIndividual()) { - composeReference("individual", element.getIndividual()); + if (element.hasSubject()) { + composeReference("subject", element.getSubject()); } if (element.hasAssignedArmElement()) { composeStringCore("assignedArm", element.getAssignedArmElement(), false); @@ -58399,8 +60134,8 @@ public class JsonParser extends JsonParserBase { if (element.hasType()) { composeCodeableConcept("type", element.getType()); } - if (element.hasState()) { - composeCodeableConcept("state", element.getState()); + if (element.hasSubjectState()) { + composeCodeableConcept("subjectState", element.getSubjectState()); } if (element.hasMilestone()) { composeCodeableConcept("milestone", element.getMilestone()); @@ -58412,6 +60147,10 @@ public class JsonParser extends JsonParserBase { composeDateTimeCore("startDate", element.getStartDateElement(), false); composeDateTimeExtras("startDate", element.getStartDateElement(), false); } + if (element.hasEndDateElement()) { + composeDateTimeCore("endDate", element.getEndDateElement(), false); + composeDateTimeExtras("endDate", element.getEndDateElement(), false); + } } protected void composeRiskAssessment(String name, RiskAssessment element) throws IOException { @@ -58647,10 +60386,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasBase()) { if (anyHasValue(element.getBase())) { - openArray("base"); - for (CodeType e : element.getBase()) + openArray("base"); + for (CodeType e : element.getBase()) composeCodeCore(null, e, e != element.getBase().get(element.getBase().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getBase())) { openArray("_base"); @@ -58677,10 +60416,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasTarget()) { if (anyHasValue(element.getTarget())) { - openArray("target"); - for (CodeType e : element.getTarget()) + openArray("target"); + for (CodeType e : element.getTarget()) composeCodeCore(null, e, e != element.getTarget().get(element.getTarget().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getTarget())) { openArray("_target"); @@ -58723,10 +60462,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasChain()) { if (anyHasValue(element.getChain())) { - openArray("chain"); - for (StringType e : element.getChain()) + openArray("chain"); + for (StringType e : element.getChain()) composeStringCore(null, e, e != element.getChain().get(element.getChain().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getChain())) { openArray("_chain"); @@ -58780,10 +60519,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesCanonical()) { if (anyHasValue(element.getInstantiatesCanonical())) { - openArray("instantiatesCanonical"); - for (CanonicalType e : element.getInstantiatesCanonical()) + openArray("instantiatesCanonical"); + for (CanonicalType e : element.getInstantiatesCanonical()) composeCanonicalCore(null, e, e != element.getInstantiatesCanonical().get(element.getInstantiatesCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesCanonical())) { openArray("_instantiatesCanonical"); @@ -58794,10 +60533,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasInstantiatesUri()) { if (anyHasValue(element.getInstantiatesUri())) { - openArray("instantiatesUri"); - for (UriType e : element.getInstantiatesUri()) + openArray("instantiatesUri"); + for (UriType e : element.getInstantiatesUri()) composeUriCore(null, e, e != element.getInstantiatesUri().get(element.getInstantiatesUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getInstantiatesUri())) { openArray("_instantiatesUri"); @@ -59192,10 +60931,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasDerivedFromCanonical()) { if (anyHasValue(element.getDerivedFromCanonical())) { - openArray("derivedFromCanonical"); - for (CanonicalType e : element.getDerivedFromCanonical()) + openArray("derivedFromCanonical"); + for (CanonicalType e : element.getDerivedFromCanonical()) composeCanonicalCore(null, e, e != element.getDerivedFromCanonical().get(element.getDerivedFromCanonical().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getDerivedFromCanonical())) { openArray("_derivedFromCanonical"); @@ -59206,10 +60945,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasDerivedFromUri()) { if (anyHasValue(element.getDerivedFromUri())) { - openArray("derivedFromUri"); - for (UriType e : element.getDerivedFromUri()) + openArray("derivedFromUri"); + for (UriType e : element.getDerivedFromUri()) composeUriCore(null, e, e != element.getDerivedFromUri().get(element.getDerivedFromUri().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getDerivedFromUri())) { openArray("_derivedFromUri"); @@ -59549,10 +61288,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasContextInvariant()) { if (anyHasValue(element.getContextInvariant())) { - openArray("contextInvariant"); - for (StringType e : element.getContextInvariant()) + openArray("contextInvariant"); + for (StringType e : element.getContextInvariant()) composeStringCore(null, e, e != element.getContextInvariant().get(element.getContextInvariant().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getContextInvariant())) { openArray("_contextInvariant"); @@ -59750,10 +61489,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasImport()) { if (anyHasValue(element.getImport())) { - openArray("import"); - for (CanonicalType e : element.getImport()) + openArray("import"); + for (CanonicalType e : element.getImport()) composeCanonicalCore(null, e, e != element.getImport().get(element.getImport().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getImport())) { openArray("_import"); @@ -59979,10 +61718,6 @@ public class JsonParser extends JsonParserBase { composeIdCore("context", element.getContextElement(), false); composeIdExtras("context", element.getContextElement(), false); } - if (element.hasContextTypeElement()) { - composeEnumerationCore("contextType", element.getContextTypeElement(), new StructureMap.StructureMapContextTypeEnumFactory(), false); - composeEnumerationExtras("contextType", element.getContextTypeElement(), new StructureMap.StructureMapContextTypeEnumFactory(), false); - } if (element.hasElementElement()) { composeStringCore("element", element.getElementElement(), false); composeStringExtras("element", element.getElementElement(), false); @@ -60050,10 +61785,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasVariable()) { if (anyHasValue(element.getVariable())) { - openArray("variable"); - for (StringType e : element.getVariable()) + openArray("variable"); + for (StringType e : element.getVariable()) composeStringCore(null, e, e != element.getVariable().get(element.getVariable().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getVariable())) { openArray("_variable"); @@ -60087,8 +61822,9 @@ public class JsonParser extends JsonParserBase { composeEnumerationCore("status", element.getStatusElement(), new Enumerations.SubscriptionStateEnumFactory(), false); composeEnumerationExtras("status", element.getStatusElement(), new Enumerations.SubscriptionStateEnumFactory(), false); } - if (element.hasTopic()) { - composeReference("topic", element.getTopic()); + if (element.hasTopicElement()) { + composeCanonicalCore("topic", element.getTopicElement(), false); + composeCanonicalExtras("topic", element.getTopicElement(), false); } if (element.hasContact()) { openArray("contact"); @@ -60119,10 +61855,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasHeader()) { if (anyHasValue(element.getHeader())) { - openArray("header"); - for (StringType e : element.getHeader()) + openArray("header"); + for (StringType e : element.getHeader()) composeStringCore(null, e, e != element.getHeader().get(element.getHeader().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getHeader())) { openArray("_header"); @@ -60147,6 +61883,14 @@ public class JsonParser extends JsonParserBase { composeEnumerationCore("content", element.getContentElement(), new Subscription.SubscriptionPayloadContentEnumFactory(), false); composeEnumerationExtras("content", element.getContentElement(), new Subscription.SubscriptionPayloadContentEnumFactory(), false); } + if (element.hasNotificationUrlLocationElement()) { + composeEnumerationCore("notificationUrlLocation", element.getNotificationUrlLocationElement(), new Subscription.SubscriptionUrlLocationEnumFactory(), false); + composeEnumerationExtras("notificationUrlLocation", element.getNotificationUrlLocationElement(), new Subscription.SubscriptionUrlLocationEnumFactory(), false); + } + if (element.hasMaxCountElement()) { + composePositiveIntCore("maxCount", element.getMaxCountElement(), false); + composePositiveIntExtras("maxCount", element.getMaxCountElement(), false); + } } protected void composeSubscriptionFilterByComponent(String name, Subscription.SubscriptionFilterByComponent element) throws IOException { @@ -60159,6 +61903,10 @@ public class JsonParser extends JsonParserBase { protected void composeSubscriptionFilterByComponentProperties(Subscription.SubscriptionFilterByComponent element) throws IOException { composeBackboneElementProperties(element); + if (element.hasResourceTypeElement()) { + composeUriCore("resourceType", element.getResourceTypeElement(), false); + composeUriExtras("resourceType", element.getResourceTypeElement(), false); + } if (element.hasSearchParamNameElement()) { composeStringCore("searchParamName", element.getSearchParamNameElement(), false); composeStringExtras("searchParamName", element.getSearchParamNameElement(), false); @@ -60182,6 +61930,10 @@ public class JsonParser extends JsonParserBase { protected void composeSubscriptionStatusProperties(SubscriptionStatus element) throws IOException { composeDomainResourceProperties(element); + if (element.hasStatusElement()) { + composeEnumerationCore("status", element.getStatusElement(), new Enumerations.SubscriptionStateEnumFactory(), false); + composeEnumerationExtras("status", element.getStatusElement(), new Enumerations.SubscriptionStateEnumFactory(), false); + } if (element.hasTypeElement()) { composeEnumerationCore("type", element.getTypeElement(), new SubscriptionStatus.SubscriptionNotificationTypeEnumFactory(), false); composeEnumerationExtras("type", element.getTypeElement(), new SubscriptionStatus.SubscriptionNotificationTypeEnumFactory(), false); @@ -60197,10 +61949,6 @@ public class JsonParser extends JsonParserBase { if (element.hasSubscription()) { composeReference("subscription", element.getSubscription()); } - if (element.hasStatusElement()) { - composeEnumerationCore("status", element.getStatusElement(), new Enumerations.SubscriptionStateEnumFactory(), false); - composeEnumerationExtras("status", element.getStatusElement(), new Enumerations.SubscriptionStateEnumFactory(), false); - } if (element.hasTopicElement()) { composeCanonicalCore("topic", element.getTopicElement(), false); composeCanonicalExtras("topic", element.getTopicElement(), false); @@ -60242,10 +61990,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasDerivedFrom()) { if (anyHasValue(element.getDerivedFrom())) { - openArray("derivedFrom"); - for (CanonicalType e : element.getDerivedFrom()) + openArray("derivedFrom"); + for (CanonicalType e : element.getDerivedFrom()) composeCanonicalCore(null, e, e != element.getDerivedFrom().get(element.getDerivedFrom().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getDerivedFrom())) { openArray("_derivedFrom"); @@ -60311,12 +62059,9 @@ public class JsonParser extends JsonParserBase { composePeriod("effectivePeriod", element.getEffectivePeriod()); } if (element.hasResourceTrigger()) { - composeSubscriptionTopicResourceTriggerComponent("resourceTrigger", element.getResourceTrigger()); - } - if (element.hasCanFilterBy()) { - openArray("canFilterBy"); - for (SubscriptionTopic.SubscriptionTopicCanFilterByComponent e : element.getCanFilterBy()) - composeSubscriptionTopicCanFilterByComponent(null, e); + openArray("resourceTrigger"); + for (SubscriptionTopic.SubscriptionTopicResourceTriggerComponent e : element.getResourceTrigger()) + composeSubscriptionTopicResourceTriggerComponent(null, e); closeArray(); }; } @@ -60335,20 +62080,10 @@ public class JsonParser extends JsonParserBase { composeStringCore("description", element.getDescriptionElement(), false); composeStringExtras("description", element.getDescriptionElement(), false); } - if (element.hasResourceType()) { - if (anyHasValue(element.getResourceType())) { - openArray("resourceType"); - for (CodeType e : element.getResourceType()) - composeCodeCore(null, e, e != element.getResourceType().get(element.getResourceType().size()-1)); - closeArray(); - } - if (anyHasExtras(element.getResourceType())) { - openArray("_resourceType"); - for (CodeType e : element.getResourceType()) - composeCodeExtras(null, e, true); - closeArray(); - } - }; + if (element.hasResourceTypeElement()) { + composeUriCore("resourceType", element.getResourceTypeElement(), false); + composeUriExtras("resourceType", element.getResourceTypeElement(), false); + } if (element.hasMethodCriteria()) { openArray("methodCriteria"); for (Enumeration e : element.getMethodCriteria()) @@ -60366,10 +62101,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasFhirPathCriteria()) { if (anyHasValue(element.getFhirPathCriteria())) { - openArray("fhirPathCriteria"); - for (StringType e : element.getFhirPathCriteria()) + openArray("fhirPathCriteria"); + for (StringType e : element.getFhirPathCriteria()) composeStringCore(null, e, e != element.getFhirPathCriteria().get(element.getFhirPathCriteria().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getFhirPathCriteria())) { openArray("_fhirPathCriteria"); @@ -60378,6 +62113,12 @@ public class JsonParser extends JsonParserBase { closeArray(); } }; + if (element.hasCanFilterBy()) { + openArray("canFilterBy"); + for (SubscriptionTopic.SubscriptionTopicResourceTriggerCanFilterByComponent e : element.getCanFilterBy()) + composeSubscriptionTopicResourceTriggerCanFilterByComponent(null, e); + closeArray(); + }; } protected void composeSubscriptionTopicResourceTriggerQueryCriteriaComponent(String name, SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent element) throws IOException { @@ -60394,25 +62135,33 @@ public class JsonParser extends JsonParserBase { composeStringCore("previous", element.getPreviousElement(), false); composeStringExtras("previous", element.getPreviousElement(), false); } + if (element.hasResultForCreateElement()) { + composeEnumerationCore("resultForCreate", element.getResultForCreateElement(), new SubscriptionTopic.CriteriaNotExistsBehaviorEnumFactory(), false); + composeEnumerationExtras("resultForCreate", element.getResultForCreateElement(), new SubscriptionTopic.CriteriaNotExistsBehaviorEnumFactory(), false); + } if (element.hasCurrentElement()) { composeStringCore("current", element.getCurrentElement(), false); composeStringExtras("current", element.getCurrentElement(), false); } + if (element.hasResultForDeleteElement()) { + composeEnumerationCore("resultForDelete", element.getResultForDeleteElement(), new SubscriptionTopic.CriteriaNotExistsBehaviorEnumFactory(), false); + composeEnumerationExtras("resultForDelete", element.getResultForDeleteElement(), new SubscriptionTopic.CriteriaNotExistsBehaviorEnumFactory(), false); + } if (element.hasRequireBothElement()) { composeBooleanCore("requireBoth", element.getRequireBothElement(), false); composeBooleanExtras("requireBoth", element.getRequireBothElement(), false); } } - protected void composeSubscriptionTopicCanFilterByComponent(String name, SubscriptionTopic.SubscriptionTopicCanFilterByComponent element) throws IOException { + protected void composeSubscriptionTopicResourceTriggerCanFilterByComponent(String name, SubscriptionTopic.SubscriptionTopicResourceTriggerCanFilterByComponent element) throws IOException { if (element != null) { open(name); - composeSubscriptionTopicCanFilterByComponentProperties(element); + composeSubscriptionTopicResourceTriggerCanFilterByComponentProperties(element); close(); } } - protected void composeSubscriptionTopicCanFilterByComponentProperties(SubscriptionTopic.SubscriptionTopicCanFilterByComponent element) throws IOException { + protected void composeSubscriptionTopicResourceTriggerCanFilterByComponentProperties(SubscriptionTopic.SubscriptionTopicResourceTriggerCanFilterByComponent element) throws IOException { composeBackboneElementProperties(element); if (element.hasSearchParamNameElement()) { composeStringCore("searchParamName", element.getSearchParamNameElement(), false); @@ -60451,6 +62200,10 @@ public class JsonParser extends JsonParserBase { composeIdentifier(null, e); closeArray(); }; + if (element.hasInstanceElement()) { + composeBooleanCore("instance", element.getInstanceElement(), false); + composeBooleanExtras("instance", element.getInstanceElement(), false); + } if (element.hasStatusElement()) { composeEnumerationCore("status", element.getStatusElement(), new Substance.FHIRSubstanceStatusEnumFactory(), false); composeEnumerationExtras("status", element.getStatusElement(), new Substance.FHIRSubstanceStatusEnumFactory(), false); @@ -60462,39 +62215,12 @@ public class JsonParser extends JsonParserBase { closeArray(); }; if (element.hasCode()) { - composeCodeableConcept("code", element.getCode()); + composeCodeableReference("code", element.getCode()); } if (element.hasDescriptionElement()) { composeStringCore("description", element.getDescriptionElement(), false); composeStringExtras("description", element.getDescriptionElement(), false); } - if (element.hasInstance()) { - openArray("instance"); - for (Substance.SubstanceInstanceComponent e : element.getInstance()) - composeSubstanceInstanceComponent(null, e); - closeArray(); - }; - if (element.hasIngredient()) { - openArray("ingredient"); - for (Substance.SubstanceIngredientComponent e : element.getIngredient()) - composeSubstanceIngredientComponent(null, e); - closeArray(); - }; - } - - protected void composeSubstanceInstanceComponent(String name, Substance.SubstanceInstanceComponent element) throws IOException { - if (element != null) { - open(name); - composeSubstanceInstanceComponentProperties(element); - close(); - } - } - - protected void composeSubstanceInstanceComponentProperties(Substance.SubstanceInstanceComponent element) throws IOException { - composeBackboneElementProperties(element); - if (element.hasIdentifier()) { - composeIdentifier("identifier", element.getIdentifier()); - } if (element.hasExpiryElement()) { composeDateTimeCore("expiry", element.getExpiryElement(), false); composeDateTimeExtras("expiry", element.getExpiryElement(), false); @@ -60502,6 +62228,12 @@ public class JsonParser extends JsonParserBase { if (element.hasQuantity()) { composeQuantity("quantity", element.getQuantity()); } + if (element.hasIngredient()) { + openArray("ingredient"); + for (Substance.SubstanceIngredientComponent e : element.getIngredient()) + composeSubstanceIngredientComponent(null, e); + closeArray(); + }; } protected void composeSubstanceIngredientComponent(String name, Substance.SubstanceIngredientComponent element) throws IOException { @@ -60553,6 +62285,12 @@ public class JsonParser extends JsonParserBase { if (element.hasDomain()) { composeCodeableConcept("domain", element.getDomain()); } + if (element.hasGrade()) { + openArray("grade"); + for (CodeableConcept e : element.getGrade()) + composeCodeableConcept(null, e); + closeArray(); + }; if (element.hasDescriptionElement()) { composeMarkdownCore("description", element.getDescriptionElement(), false); composeMarkdownExtras("description", element.getDescriptionElement(), false); @@ -60633,7 +62371,7 @@ public class JsonParser extends JsonParserBase { composeReference("protein", element.getProtein()); } if (element.hasSourceMaterial()) { - composeReference("sourceMaterial", element.getSourceMaterial()); + composeSubstanceDefinitionSourceMaterialComponent("sourceMaterial", element.getSourceMaterial()); } } @@ -60999,6 +62737,36 @@ public class JsonParser extends JsonParserBase { }; } + protected void composeSubstanceDefinitionSourceMaterialComponent(String name, SubstanceDefinition.SubstanceDefinitionSourceMaterialComponent element) throws IOException { + if (element != null) { + open(name); + composeSubstanceDefinitionSourceMaterialComponentProperties(element); + close(); + } + } + + protected void composeSubstanceDefinitionSourceMaterialComponentProperties(SubstanceDefinition.SubstanceDefinitionSourceMaterialComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasGenus()) { + composeCodeableConcept("genus", element.getGenus()); + } + if (element.hasSpecies()) { + composeCodeableConcept("species", element.getSpecies()); + } + if (element.hasPart()) { + composeCodeableConcept("part", element.getPart()); + } + if (element.hasCountryOfOrigin()) { + openArray("countryOfOrigin"); + for (CodeableConcept e : element.getCountryOfOrigin()) + composeCodeableConcept(null, e); + closeArray(); + }; + } + protected void composeSubstanceNucleicAcid(String name, SubstanceNucleicAcid element) throws IOException { if (element != null) { prop("resourceType", name); @@ -61343,10 +63111,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasDisulfideLinkage()) { if (anyHasValue(element.getDisulfideLinkage())) { - openArray("disulfideLinkage"); - for (StringType e : element.getDisulfideLinkage()) + openArray("disulfideLinkage"); + for (StringType e : element.getDisulfideLinkage()) composeStringCore(null, e, e != element.getDisulfideLinkage().get(element.getDisulfideLinkage().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getDisulfideLinkage())) { openArray("_disulfideLinkage"); @@ -61557,10 +63325,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasParentSubstanceName()) { if (anyHasValue(element.getParentSubstanceName())) { - openArray("parentSubstanceName"); - for (StringType e : element.getParentSubstanceName()) + openArray("parentSubstanceName"); + for (StringType e : element.getParentSubstanceName()) composeStringCore(null, e, e != element.getParentSubstanceName().get(element.getParentSubstanceName().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getParentSubstanceName())) { openArray("_parentSubstanceName"); @@ -61577,10 +63345,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasGeographicalLocation()) { if (anyHasValue(element.getGeographicalLocation())) { - openArray("geographicalLocation"); - for (StringType e : element.getGeographicalLocation()) + openArray("geographicalLocation"); + for (StringType e : element.getGeographicalLocation()) composeStringCore(null, e, e != element.getGeographicalLocation().get(element.getGeographicalLocation().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getGeographicalLocation())) { openArray("_geographicalLocation"); @@ -62326,10 +64094,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasLanguage()) { if (anyHasValue(element.getLanguage())) { - openArray("language"); - for (CodeType e : element.getLanguage()) + openArray("language"); + for (CodeType e : element.getLanguage()) composeCodeCore(null, e, e != element.getLanguage().get(element.getLanguage().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getLanguage())) { openArray("_language"); @@ -62346,10 +64114,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasProperty()) { if (anyHasValue(element.getProperty())) { - openArray("property"); - for (CodeType e : element.getProperty()) + openArray("property"); + for (CodeType e : element.getProperty()) composeCodeCore(null, e, e != element.getProperty().get(element.getProperty().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getProperty())) { openArray("_property"); @@ -62376,10 +64144,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasOp()) { if (anyHasValue(element.getOp())) { - openArray("op"); - for (CodeType e : element.getOp()) + openArray("op"); + for (CodeType e : element.getOp()) composeCodeCore(null, e, e != element.getOp().get(element.getOp().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getOp())) { openArray("_op"); @@ -62825,6 +64593,12 @@ public class JsonParser extends JsonParserBase { if (element.hasMetadata()) { composeTestScriptMetadataComponent("metadata", element.getMetadata()); } + if (element.hasScope()) { + openArray("scope"); + for (TestScript.TestScriptScopeComponent e : element.getScope()) + composeTestScriptScopeComponent(null, e); + closeArray(); + }; if (element.hasFixture()) { openArray("fixture"); for (TestScript.TestScriptFixtureComponent e : element.getFixture()) @@ -62963,10 +64737,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasOrigin()) { if (anyHasValue(element.getOrigin())) { - openArray("origin"); - for (IntegerType e : element.getOrigin()) + openArray("origin"); + for (IntegerType e : element.getOrigin()) composeIntegerCore(null, e, e != element.getOrigin().get(element.getOrigin().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getOrigin())) { openArray("_origin"); @@ -62981,10 +64755,10 @@ public class JsonParser extends JsonParserBase { } if (element.hasLink()) { if (anyHasValue(element.getLink())) { - openArray("link"); - for (UriType e : element.getLink()) + openArray("link"); + for (UriType e : element.getLink()) composeUriCore(null, e, e != element.getLink().get(element.getLink().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getLink())) { openArray("_link"); @@ -62999,6 +64773,28 @@ public class JsonParser extends JsonParserBase { } } + protected void composeTestScriptScopeComponent(String name, TestScript.TestScriptScopeComponent element) throws IOException { + if (element != null) { + open(name); + composeTestScriptScopeComponentProperties(element); + close(); + } + } + + protected void composeTestScriptScopeComponentProperties(TestScript.TestScriptScopeComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasArtifactElement()) { + composeCanonicalCore("artifact", element.getArtifactElement(), false); + composeCanonicalExtras("artifact", element.getArtifactElement(), false); + } + if (element.hasConformance()) { + composeCodeableConcept("conformance", element.getConformance()); + } + if (element.hasPhase()) { + composeCodeableConcept("phase", element.getPhase()); + } + } + protected void composeTestScriptFixtureComponent(String name, TestScript.TestScriptFixtureComponent element) throws IOException { if (element != null) { open(name); @@ -63289,6 +65085,10 @@ public class JsonParser extends JsonParserBase { composeIdCore("sourceId", element.getSourceIdElement(), false); composeIdExtras("sourceId", element.getSourceIdElement(), false); } + if (element.hasStopTestOnFailElement()) { + composeBooleanCore("stopTestOnFail", element.getStopTestOnFailElement(), false); + composeBooleanExtras("stopTestOnFail", element.getStopTestOnFailElement(), false); + } if (element.hasValidateProfileIdElement()) { composeIdCore("validateProfileId", element.getValidateProfileIdElement(), false); composeIdExtras("validateProfileId", element.getValidateProfileIdElement(), false); @@ -63467,6 +65267,9 @@ public class JsonParser extends JsonParserBase { if (element.hasExpansion()) { composeValueSetExpansionComponent("expansion", element.getExpansion()); } + if (element.hasScope()) { + composeValueSetScopeComponent("scope", element.getScope()); + } } protected void composeValueSetComposeComponent(String name, ValueSet.ValueSetComposeComponent element) throws IOException { @@ -63501,10 +65304,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasProperty()) { if (anyHasValue(element.getProperty())) { - openArray("property"); - for (StringType e : element.getProperty()) + openArray("property"); + for (StringType e : element.getProperty()) composeStringCore(null, e, e != element.getProperty().get(element.getProperty().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getProperty())) { openArray("_property"); @@ -63547,10 +65350,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasValueSet()) { if (anyHasValue(element.getValueSet())) { - openArray("valueSet"); - for (CanonicalType e : element.getValueSet()) + openArray("valueSet"); + for (CanonicalType e : element.getValueSet()) composeCanonicalCore(null, e, e != element.getValueSet().get(element.getValueSet().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getValueSet())) { openArray("_valueSet"); @@ -63559,6 +65362,10 @@ public class JsonParser extends JsonParserBase { closeArray(); } }; + if (element.hasCopyrightElement()) { + composeStringCore("copyright", element.getCopyrightElement(), false); + composeStringExtras("copyright", element.getCopyrightElement(), false); + } } protected void composeConceptReferenceComponent(String name, ValueSet.ConceptReferenceComponent element) throws IOException { @@ -63792,6 +65599,30 @@ public class JsonParser extends JsonParserBase { } } + protected void composeValueSetScopeComponent(String name, ValueSet.ValueSetScopeComponent element) throws IOException { + if (element != null) { + open(name); + composeValueSetScopeComponentProperties(element); + close(); + } + } + + protected void composeValueSetScopeComponentProperties(ValueSet.ValueSetScopeComponent element) throws IOException { + composeBackboneElementProperties(element); + if (element.hasFocusElement()) { + composeStringCore("focus", element.getFocusElement(), false); + composeStringExtras("focus", element.getFocusElement(), false); + } + if (element.hasInclusionCriteriaElement()) { + composeStringCore("inclusionCriteria", element.getInclusionCriteriaElement(), false); + composeStringExtras("inclusionCriteria", element.getInclusionCriteriaElement(), false); + } + if (element.hasExclusionCriteriaElement()) { + composeStringCore("exclusionCriteria", element.getExclusionCriteriaElement(), false); + composeStringExtras("exclusionCriteria", element.getExclusionCriteriaElement(), false); + } + } + protected void composeVerificationResult(String name, VerificationResult element) throws IOException { if (element != null) { prop("resourceType", name); @@ -63809,10 +65640,10 @@ public class JsonParser extends JsonParserBase { }; if (element.hasTargetLocation()) { if (anyHasValue(element.getTargetLocation())) { - openArray("targetLocation"); - for (StringType e : element.getTargetLocation()) + openArray("targetLocation"); + for (StringType e : element.getTargetLocation()) composeStringCore(null, e, e != element.getTargetLocation().get(element.getTargetLocation().size()-1)); - closeArray(); + closeArray(); } if (anyHasExtras(element.getTargetLocation())) { openArray("_targetLocation"); @@ -64202,8 +66033,8 @@ public class JsonParser extends JsonParserBase { composeDeviceMetric("DeviceMetric", (DeviceMetric)resource); } else if (resource instanceof DeviceRequest) { composeDeviceRequest("DeviceRequest", (DeviceRequest)resource); - } else if (resource instanceof DeviceUseStatement) { - composeDeviceUseStatement("DeviceUseStatement", (DeviceUseStatement)resource); + } else if (resource instanceof DeviceUsage) { + composeDeviceUsage("DeviceUsage", (DeviceUsage)resource); } else if (resource instanceof DiagnosticReport) { composeDiagnosticReport("DiagnosticReport", (DiagnosticReport)resource); } else if (resource instanceof DocumentManifest) { @@ -64260,6 +66091,8 @@ public class JsonParser extends JsonParserBase { composeIngredient("Ingredient", (Ingredient)resource); } else if (resource instanceof InsurancePlan) { composeInsurancePlan("InsurancePlan", (InsurancePlan)resource); + } else if (resource instanceof InventoryReport) { + composeInventoryReport("InventoryReport", (InventoryReport)resource); } else if (resource instanceof Invoice) { composeInvoice("Invoice", (Invoice)resource); } else if (resource instanceof Library) { @@ -64504,8 +66337,8 @@ public class JsonParser extends JsonParserBase { composeDeviceMetric(name, (DeviceMetric)resource); } else if (resource instanceof DeviceRequest) { composeDeviceRequest(name, (DeviceRequest)resource); - } else if (resource instanceof DeviceUseStatement) { - composeDeviceUseStatement(name, (DeviceUseStatement)resource); + } else if (resource instanceof DeviceUsage) { + composeDeviceUsage(name, (DeviceUsage)resource); } else if (resource instanceof DiagnosticReport) { composeDiagnosticReport(name, (DiagnosticReport)resource); } else if (resource instanceof DocumentManifest) { @@ -64562,6 +66395,8 @@ public class JsonParser extends JsonParserBase { composeIngredient(name, (Ingredient)resource); } else if (resource instanceof InsurancePlan) { composeInsurancePlan(name, (InsurancePlan)resource); + } else if (resource instanceof InventoryReport) { + composeInventoryReport(name, (InventoryReport)resource); } else if (resource instanceof Invoice) { composeInvoice(name, (Invoice)resource); } else if (resource instanceof Library) { @@ -64786,6 +66621,8 @@ public class JsonParser extends JsonParserBase { composeRange(prefix+"Range", (Range) type); } else if (type instanceof Ratio) { composeRatio(prefix+"Ratio", (Ratio) type); + } else if (type instanceof RatioRange) { + composeRatioRange(prefix+"RatioRange", (RatioRange) type); } else if (type instanceof Reference) { composeReference(prefix+"Reference", (Reference) type); } else if (type instanceof RelatedArtifact) { @@ -64955,6 +66792,8 @@ public class JsonParser extends JsonParserBase { composeRangeProperties((Range) type); } else if (type instanceof Ratio) { composeRatioProperties((Ratio) type); + } else if (type instanceof RatioRange) { + composeRatioRangeProperties((RatioRange) type); } else if (type instanceof Reference) { composeReferenceProperties((Reference) type); } else if (type instanceof RelatedArtifact) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/JsonParserBase.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/JsonParserBase.java index e6dc9c217..80032e70d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/JsonParserBase.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/JsonParserBase.java @@ -156,6 +156,18 @@ public abstract class JsonParserBase extends ParserBase implements IParser { } return (JsonObject) j; } + + protected JsonArray getJArray(JsonObject parent, String name) throws IOException { + JsonElement j = parent.get(name); + if (j == null) { + return null; + } + if (!(j instanceof JsonArray)) { + throw new IOException("property "+name+" is a "+j.getClass()+" looking for an Array"); + } + return (JsonArray) j; + } + /** * Compose a resource to a stream, possibly using pretty presentation for a human reader (used in the spec, for example, but not normally in production) * @throws IOException diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/RdfParser.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/RdfParser.java index 9ebbb3a7d..94b622437 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/RdfParser.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/RdfParser.java @@ -3,8 +3,6 @@ package org.hl7.fhir.r5.formats; // generated - - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -33,15 +31,16 @@ package org.hl7.fhir.r5.formats; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import org.hl7.fhir.r5.model.*; +import org.hl7.fhir.r5.model.StringType; import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.exceptions.FHIRFormatError; import org.hl7.fhir.exceptions.FHIRException; -import org.hl7.fhir.utilities.turtle.Turtle.Complex; +import org.hl7.fhir.utilities.turtle.Turtle.*; import java.io.IOException; public class RdfParser extends RdfParserBase { @@ -1471,6 +1470,27 @@ public class RdfParser extends RdfParserBase { } } + protected void composeRatioRange(Complex parent, String parentType, String name, RatioRange element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeDataType(t, "RatioRange", name, element, index); + if (element.hasLowNumerator()) { + composeQuantity(t, "RatioRange", "lowNumerator", element.getLowNumerator(), -1); + } + if (element.hasHighNumerator()) { + composeQuantity(t, "RatioRange", "highNumerator", element.getHighNumerator(), -1); + } + if (element.hasDenominator()) { + composeQuantity(t, "RatioRange", "denominator", element.getDenominator(), -1); + } + } + protected void composeReference(Complex parent, String parentType, String name, Reference element, int index) { if (element == null) return; @@ -1613,11 +1633,17 @@ public class RdfParser extends RdfParserBase { if (element.hasStatisticType()) { composeCodeableConcept(t, "Statistic", "statisticType", element.getStatisticType(), -1); } + if (element.hasCategory()) { + composeCodeableConcept(t, "Statistic", "category", element.getCategory(), -1); + } if (element.hasQuantity()) { composeQuantity(t, "Statistic", "quantity", element.getQuantity(), -1); } if (element.hasNumberOfEventsElement()) { - composeInteger(t, "Statistic", "numberOfEvents", element.getNumberOfEventsElement(), -1); + composeUnsignedInt(t, "Statistic", "numberOfEvents", element.getNumberOfEventsElement(), -1); + } + if (element.hasNumberAffectedElement()) { + composeUnsignedInt(t, "Statistic", "numberAffected", element.getNumberAffectedElement(), -1); } if (element.hasSampleSize()) { composeStatisticSampleSizeComponent(t, "Statistic", "sampleSize", element.getSampleSize(), -1); @@ -1647,13 +1673,13 @@ public class RdfParser extends RdfParserBase { composeAnnotation(t, "StatisticSampleSizeComponent", "note", element.getNote().get(i), i); } if (element.hasNumberOfStudiesElement()) { - composeInteger(t, "StatisticSampleSizeComponent", "numberOfStudies", element.getNumberOfStudiesElement(), -1); + composeUnsignedInt(t, "StatisticSampleSizeComponent", "numberOfStudies", element.getNumberOfStudiesElement(), -1); } if (element.hasNumberOfParticipantsElement()) { - composeInteger(t, "StatisticSampleSizeComponent", "numberOfParticipants", element.getNumberOfParticipantsElement(), -1); + composeUnsignedInt(t, "StatisticSampleSizeComponent", "numberOfParticipants", element.getNumberOfParticipantsElement(), -1); } if (element.hasKnownDataCountElement()) { - composeInteger(t, "StatisticSampleSizeComponent", "knownDataCount", element.getKnownDataCountElement(), -1); + composeUnsignedInt(t, "StatisticSampleSizeComponent", "knownDataCount", element.getKnownDataCountElement(), -1); } } @@ -1734,7 +1760,7 @@ public class RdfParser extends RdfParserBase { composeCodeableConcept(t, "StatisticModelCharacteristicComponent", "code", element.getCode(), -1); } if (element.hasValue()) { - composeType(t, "StatisticModelCharacteristicComponent", "value", element.getValue(), -1); + composeQuantity(t, "StatisticModelCharacteristicComponent", "value", element.getValue(), -1); } for (int i = 0; i < element.getVariable().size(); i++) { composeStatisticModelCharacteristicVariableComponent(t, "StatisticModelCharacteristicComponent", "variable", element.getVariable().get(i), i); @@ -1967,6 +1993,24 @@ public class RdfParser extends RdfParserBase { if (element.hasEffectivePeriod()) { composePeriod(t, "MetadataResource", "effectivePeriod", element.getEffectivePeriod(), -1); } + for (int i = 0; i < element.getTopic().size(); i++) { + composeCodeableConcept(t, "MetadataResource", "topic", element.getTopic().get(i), i); + } + for (int i = 0; i < element.getAuthor().size(); i++) { + composeContactDetail(t, "MetadataResource", "author", element.getAuthor().get(i), i); + } + for (int i = 0; i < element.getEditor().size(); i++) { + composeContactDetail(t, "MetadataResource", "editor", element.getEditor().get(i), i); + } + for (int i = 0; i < element.getReviewer().size(); i++) { + composeContactDetail(t, "MetadataResource", "reviewer", element.getReviewer().get(i), i); + } + for (int i = 0; i < element.getEndorser().size(); i++) { + composeContactDetail(t, "MetadataResource", "endorser", element.getEndorser().get(i), i); + } + for (int i = 0; i < element.getRelatedArtifact().size(); i++) { + composeRelatedArtifact(t, "MetadataResource", "relatedArtifact", element.getRelatedArtifact().get(i), i); + } } protected void composeResource(Complex t, String parentType, String name, Resource element, int index) { @@ -2185,7 +2229,7 @@ public class RdfParser extends RdfParserBase { composeType(t, "ActivityDefinition", "timing", element.getTiming(), -1); } if (element.hasLocation()) { - composeReference(t, "ActivityDefinition", "location", element.getLocation(), -1); + composeCodeableReference(t, "ActivityDefinition", "location", element.getLocation(), -1); } for (int i = 0; i < element.getParticipant().size(); i++) { composeActivityDefinitionParticipantComponent(t, "ActivityDefinition", "participant", element.getParticipant().get(i), i); @@ -2232,9 +2276,15 @@ public class RdfParser extends RdfParserBase { if (element.hasTypeElement()) { composeEnum(t, "ActivityDefinitionParticipantComponent", "type", element.getTypeElement(), -1); } + if (element.hasTypeReference()) { + composeReference(t, "ActivityDefinitionParticipantComponent", "typeReference", element.getTypeReference(), -1); + } if (element.hasRole()) { composeCodeableConcept(t, "ActivityDefinitionParticipantComponent", "role", element.getRole(), -1); } + if (element.hasFunction()) { + composeCodeableConcept(t, "ActivityDefinitionParticipantComponent", "function", element.getFunction(), -1); + } } protected void composeActivityDefinitionDynamicValueComponent(Complex parent, String parentType, String name, ActivityDefinition.ActivityDefinitionDynamicValueComponent element, int index) { @@ -2436,8 +2486,8 @@ public class RdfParser extends RdfParserBase { if (element.hasSeriousness()) { composeCodeableConcept(t, "AdverseEvent", "seriousness", element.getSeriousness(), -1); } - if (element.hasOutcome()) { - composeCodeableConcept(t, "AdverseEvent", "outcome", element.getOutcome(), -1); + for (int i = 0; i < element.getOutcome().size(); i++) { + composeCodeableConcept(t, "AdverseEvent", "outcome", element.getOutcome().get(i), i); } if (element.hasRecorder()) { composeReference(t, "AdverseEvent", "recorder", element.getRecorder(), -1); @@ -2656,7 +2706,7 @@ public class RdfParser extends RdfParserBase { composeCodeableConcept(t, "AllergyIntoleranceReactionComponent", "substance", element.getSubstance(), -1); } for (int i = 0; i < element.getManifestation().size(); i++) { - composeCodeableConcept(t, "AllergyIntoleranceReactionComponent", "manifestation", element.getManifestation().get(i), i); + composeCodeableReference(t, "AllergyIntoleranceReactionComponent", "manifestation", element.getManifestation().get(i), i); } if (element.hasDescriptionElement()) { composeString(t, "AllergyIntoleranceReactionComponent", "description", element.getDescriptionElement(), -1); @@ -2709,8 +2759,8 @@ public class RdfParser extends RdfParserBase { 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); + if (element.hasPriority()) { + composeCodeableConcept(t, "Appointment", "priority", element.getPriority(), -1); } if (element.hasDescriptionElement()) { composeString(t, "Appointment", "description", element.getDescriptionElement(), -1); @@ -2847,6 +2897,12 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getPurposeOfEvent().size(); i++) { composeCodeableConcept(t, "AuditEvent", "purposeOfEvent", element.getPurposeOfEvent().get(i), i); } + for (int i = 0; i < element.getBasedOn().size(); i++) { + composeReference(t, "AuditEvent", "basedOn", element.getBasedOn().get(i), i); + } + if (element.hasEncounter()) { + composeReference(t, "AuditEvent", "encounter", element.getEncounter(), -1); + } for (int i = 0; i < element.getAgent().size(); i++) { composeAuditEventAgentComponent(t, "AuditEvent", "agent", element.getAgent().get(i), i); } @@ -3924,6 +3980,9 @@ public class RdfParser extends RdfParserBase { if (element.hasDocumentationElement()) { composeMarkdown(t, "CapabilityStatement2RestComponent", "documentation", element.getDocumentationElement(), -1); } + for (int i = 0; i < element.getFeature().size(); i++) { + composeCapabilityStatement2RestFeatureComponent(t, "CapabilityStatement2RestComponent", "feature", element.getFeature().get(i), i); + } for (int i = 0; i < element.getResource().size(); i++) { composeCapabilityStatement2RestResourceComponent(t, "CapabilityStatement2RestComponent", "resource", element.getResource().get(i), i); } @@ -3941,6 +4000,24 @@ public class RdfParser extends RdfParserBase { } } + protected void composeCapabilityStatement2RestFeatureComponent(Complex parent, String parentType, String name, CapabilityStatement2.CapabilityStatement2RestFeatureComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "feature", name, element, index); + if (element.hasCodeElement()) { + composeEnum(t, "CapabilityStatement2RestFeatureComponent", "code", element.getCodeElement(), -1); + } + if (element.hasValueElement()) { + composeEnum(t, "CapabilityStatement2RestFeatureComponent", "value", element.getValueElement(), -1); + } + } + protected void composeCapabilityStatement2RestResourceComponent(Complex parent, String parentType, String name, CapabilityStatement2.CapabilityStatement2RestResourceComponent element, int index) { if (element == null) return; @@ -3963,6 +4040,9 @@ public class RdfParser extends RdfParserBase { if (element.hasDocumentationElement()) { composeMarkdown(t, "CapabilityStatement2RestResourceComponent", "documentation", element.getDocumentationElement(), -1); } + for (int i = 0; i < element.getFeature().size(); i++) { + composeCapabilityStatement2RestFeatureComponent(t, "CapabilityStatement2RestResourceComponent", "feature", element.getFeature().get(i), i); + } for (int i = 0; i < element.getInteraction().size(); i++) { composeCapabilityStatement2ResourceInteractionComponent(t, "CapabilityStatement2RestResourceComponent", "interaction", element.getInteraction().get(i), i); } @@ -3990,6 +4070,9 @@ public class RdfParser extends RdfParserBase { if (element.hasDocumentationElement()) { composeMarkdown(t, "ResourceInteractionComponent", "documentation", element.getDocumentationElement(), -1); } + for (int i = 0; i < element.getFeature().size(); i++) { + composeCapabilityStatement2RestFeatureComponent(t, "ResourceInteractionComponent", "feature", element.getFeature().get(i), i); + } } protected void composeCapabilityStatement2RestResourceSearchParamComponent(Complex parent, String parentType, String name, CapabilityStatement2.CapabilityStatement2RestResourceSearchParamComponent element, int index) { @@ -4014,6 +4097,9 @@ public class RdfParser extends RdfParserBase { if (element.hasDocumentationElement()) { composeMarkdown(t, "CapabilityStatement2RestResourceSearchParamComponent", "documentation", element.getDocumentationElement(), -1); } + for (int i = 0; i < element.getFeature().size(); i++) { + composeCapabilityStatement2RestFeatureComponent(t, "CapabilityStatement2RestResourceSearchParamComponent", "feature", element.getFeature().get(i), i); + } } protected void composeCapabilityStatement2RestResourceOperationComponent(Complex parent, String parentType, String name, CapabilityStatement2.CapabilityStatement2RestResourceOperationComponent element, int index) { @@ -4035,6 +4121,9 @@ public class RdfParser extends RdfParserBase { if (element.hasDocumentationElement()) { composeMarkdown(t, "CapabilityStatement2RestResourceOperationComponent", "documentation", element.getDocumentationElement(), -1); } + for (int i = 0; i < element.getFeature().size(); i++) { + composeCapabilityStatement2RestFeatureComponent(t, "CapabilityStatement2RestResourceOperationComponent", "feature", element.getFeature().get(i), i); + } } protected void composeCapabilityStatement2SystemInteractionComponent(Complex parent, String parentType, String name, CapabilityStatement2.SystemInteractionComponent element, int index) { @@ -4053,6 +4142,9 @@ public class RdfParser extends RdfParserBase { if (element.hasDocumentationElement()) { composeMarkdown(t, "SystemInteractionComponent", "documentation", element.getDocumentationElement(), -1); } + for (int i = 0; i < element.getFeature().size(); i++) { + composeCapabilityStatement2RestFeatureComponent(t, "SystemInteractionComponent", "feature", element.getFeature().get(i), i); + } } protected void composeCarePlan(Complex parent, String parentType, String name, CarePlan element, int index) { @@ -4146,21 +4238,21 @@ public class RdfParser extends RdfParserBase { t = parent.predicate("fhir:"+parentType+'.'+name); } composeBackboneElement(t, "activity", name, element, index); - for (int i = 0; i < element.getOutcome().size(); i++) { - composeCodeableReference(t, "CarePlanActivityComponent", "outcome", element.getOutcome().get(i), i); + for (int i = 0; i < element.getPerformedActivity().size(); i++) { + composeCodeableReference(t, "CarePlanActivityComponent", "performedActivity", element.getPerformedActivity().get(i), i); } for (int i = 0; i < element.getProgress().size(); i++) { composeAnnotation(t, "CarePlanActivityComponent", "progress", element.getProgress().get(i), i); } - if (element.hasReference()) { - composeReference(t, "CarePlanActivityComponent", "reference", element.getReference(), -1); + if (element.hasPlannedActivityReference()) { + composeReference(t, "CarePlanActivityComponent", "plannedActivityReference", element.getPlannedActivityReference(), -1); } - if (element.hasDetail()) { - composeCarePlanActivityDetailComponent(t, "CarePlanActivityComponent", "detail", element.getDetail(), -1); + if (element.hasPlannedActivityDetail()) { + composeCarePlanActivityPlannedActivityDetailComponent(t, "CarePlanActivityComponent", "plannedActivityDetail", element.getPlannedActivityDetail(), -1); } } - protected void composeCarePlanActivityDetailComponent(Complex parent, String parentType, String name, CarePlan.CarePlanActivityDetailComponent element, int index) { + protected void composeCarePlanActivityPlannedActivityDetailComponent(Complex parent, String parentType, String name, CarePlan.CarePlanActivityPlannedActivityDetailComponent element, int index) { if (element == null) return; Complex t; @@ -4169,57 +4261,57 @@ public class RdfParser extends RdfParserBase { else { t = parent.predicate("fhir:"+parentType+'.'+name); } - composeBackboneElement(t, "detail", name, element, index); + composeBackboneElement(t, "plannedActivityDetail", name, element, index); if (element.hasKindElement()) { - composeEnum(t, "CarePlanActivityDetailComponent", "kind", element.getKindElement(), -1); + composeEnum(t, "CarePlanActivityPlannedActivityDetailComponent", "kind", element.getKindElement(), -1); } for (int i = 0; i < element.getInstantiatesCanonical().size(); i++) { - composeCanonical(t, "CarePlanActivityDetailComponent", "instantiatesCanonical", element.getInstantiatesCanonical().get(i), i); + composeCanonical(t, "CarePlanActivityPlannedActivityDetailComponent", "instantiatesCanonical", element.getInstantiatesCanonical().get(i), i); } for (int i = 0; i < element.getInstantiatesUri().size(); i++) { - composeUri(t, "CarePlanActivityDetailComponent", "instantiatesUri", element.getInstantiatesUri().get(i), i); + composeUri(t, "CarePlanActivityPlannedActivityDetailComponent", "instantiatesUri", element.getInstantiatesUri().get(i), i); } if (element.hasCode()) { - composeCodeableConcept(t, "CarePlanActivityDetailComponent", "code", element.getCode(), -1); + composeCodeableConcept(t, "CarePlanActivityPlannedActivityDetailComponent", "code", element.getCode(), -1); } for (int i = 0; i < element.getReason().size(); i++) { - composeCodeableReference(t, "CarePlanActivityDetailComponent", "reason", element.getReason().get(i), i); + composeCodeableReference(t, "CarePlanActivityPlannedActivityDetailComponent", "reason", element.getReason().get(i), i); } for (int i = 0; i < element.getGoal().size(); i++) { - composeReference(t, "CarePlanActivityDetailComponent", "goal", element.getGoal().get(i), i); + composeReference(t, "CarePlanActivityPlannedActivityDetailComponent", "goal", element.getGoal().get(i), i); } if (element.hasStatusElement()) { - composeEnum(t, "CarePlanActivityDetailComponent", "status", element.getStatusElement(), -1); + composeEnum(t, "CarePlanActivityPlannedActivityDetailComponent", "status", element.getStatusElement(), -1); } if (element.hasStatusReason()) { - composeCodeableConcept(t, "CarePlanActivityDetailComponent", "statusReason", element.getStatusReason(), -1); + composeCodeableConcept(t, "CarePlanActivityPlannedActivityDetailComponent", "statusReason", element.getStatusReason(), -1); } if (element.hasDoNotPerformElement()) { - composeBoolean(t, "CarePlanActivityDetailComponent", "doNotPerform", element.getDoNotPerformElement(), -1); + composeBoolean(t, "CarePlanActivityPlannedActivityDetailComponent", "doNotPerform", element.getDoNotPerformElement(), -1); } if (element.hasScheduled()) { - composeType(t, "CarePlanActivityDetailComponent", "scheduled", element.getScheduled(), -1); + composeType(t, "CarePlanActivityPlannedActivityDetailComponent", "scheduled", element.getScheduled(), -1); } if (element.hasLocation()) { - composeCodeableReference(t, "CarePlanActivityDetailComponent", "location", element.getLocation(), -1); + composeCodeableReference(t, "CarePlanActivityPlannedActivityDetailComponent", "location", element.getLocation(), -1); } if (element.hasReported()) { - composeType(t, "CarePlanActivityDetailComponent", "reported", element.getReported(), -1); + composeType(t, "CarePlanActivityPlannedActivityDetailComponent", "reported", element.getReported(), -1); } for (int i = 0; i < element.getPerformer().size(); i++) { - composeReference(t, "CarePlanActivityDetailComponent", "performer", element.getPerformer().get(i), i); + composeReference(t, "CarePlanActivityPlannedActivityDetailComponent", "performer", element.getPerformer().get(i), i); } if (element.hasProduct()) { - composeType(t, "CarePlanActivityDetailComponent", "product", element.getProduct(), -1); + composeType(t, "CarePlanActivityPlannedActivityDetailComponent", "product", element.getProduct(), -1); } if (element.hasDailyAmount()) { - composeQuantity(t, "CarePlanActivityDetailComponent", "dailyAmount", element.getDailyAmount(), -1); + composeQuantity(t, "CarePlanActivityPlannedActivityDetailComponent", "dailyAmount", element.getDailyAmount(), -1); } if (element.hasQuantity()) { - composeQuantity(t, "CarePlanActivityDetailComponent", "quantity", element.getQuantity(), -1); + composeQuantity(t, "CarePlanActivityPlannedActivityDetailComponent", "quantity", element.getQuantity(), -1); } if (element.hasDescriptionElement()) { - composeString(t, "CarePlanActivityDetailComponent", "description", element.getDescriptionElement(), -1); + composeString(t, "CarePlanActivityPlannedActivityDetailComponent", "description", element.getDescriptionElement(), -1); } } @@ -4635,84 +4727,93 @@ public class RdfParser extends RdfParserBase { if (element.hasUrlElement()) { composeUri(t, "Citation", "url", element.getUrlElement(), -1); } + for (int i = 0; i < element.getIdentifier().size(); i++) { + composeIdentifier(t, "Citation", "identifier", element.getIdentifier().get(i), i); + } + if (element.hasVersionElement()) { + composeString(t, "Citation", "version", element.getVersionElement(), -1); + } + if (element.hasNameElement()) { + composeString(t, "Citation", "name", element.getNameElement(), -1); + } + if (element.hasTitleElement()) { + composeString(t, "Citation", "title", element.getTitleElement(), -1); + } if (element.hasStatusElement()) { composeEnum(t, "Citation", "status", element.getStatusElement(), -1); } + if (element.hasExperimentalElement()) { + composeBoolean(t, "Citation", "experimental", element.getExperimentalElement(), -1); + } + if (element.hasDateElement()) { + composeDateTime(t, "Citation", "date", element.getDateElement(), -1); + } + if (element.hasPublisherElement()) { + composeString(t, "Citation", "publisher", element.getPublisherElement(), -1); + } + for (int i = 0; i < element.getContact().size(); i++) { + composeContactDetail(t, "Citation", "contact", element.getContact().get(i), i); + } + if (element.hasDescriptionElement()) { + composeMarkdown(t, "Citation", "description", element.getDescriptionElement(), -1); + } for (int i = 0; i < element.getUseContext().size(); i++) { composeUsageContext(t, "Citation", "useContext", element.getUseContext().get(i), i); } - for (int i = 0; i < element.getIdentifier().size(); i++) { - composeIdentifier(t, "Citation", "identifier", element.getIdentifier().get(i), i); + for (int i = 0; i < element.getJurisdiction().size(); i++) { + composeCodeableConcept(t, "Citation", "jurisdiction", element.getJurisdiction().get(i), i); } - for (int i = 0; i < element.getRelatedIdentifier().size(); i++) { - composeIdentifier(t, "Citation", "relatedIdentifier", element.getRelatedIdentifier().get(i), i); + if (element.hasPurposeElement()) { + composeMarkdown(t, "Citation", "purpose", element.getPurposeElement(), -1); + } + if (element.hasCopyrightElement()) { + composeMarkdown(t, "Citation", "copyright", element.getCopyrightElement(), -1); + } + if (element.hasApprovalDateElement()) { + composeDate(t, "Citation", "approvalDate", element.getApprovalDateElement(), -1); + } + if (element.hasLastReviewDateElement()) { + composeDate(t, "Citation", "lastReviewDate", element.getLastReviewDateElement(), -1); + } + if (element.hasEffectivePeriod()) { + composePeriod(t, "Citation", "effectivePeriod", element.getEffectivePeriod(), -1); + } + for (int i = 0; i < element.getAuthor().size(); i++) { + composeContactDetail(t, "Citation", "author", element.getAuthor().get(i), i); + } + for (int i = 0; i < element.getEditor().size(); i++) { + composeContactDetail(t, "Citation", "editor", element.getEditor().get(i), i); + } + for (int i = 0; i < element.getReviewer().size(); i++) { + composeContactDetail(t, "Citation", "reviewer", element.getReviewer().get(i), i); + } + for (int i = 0; i < element.getEndorser().size(); i++) { + composeContactDetail(t, "Citation", "endorser", element.getEndorser().get(i), i); } for (int i = 0; i < element.getSummary().size(); i++) { - composeCitationSummaryComponent(t, "Citation", "summary", element.getSummary().get(i), i); + composeContactDetail(t, "Citation", "summary", element.getSummary().get(i), i); } - if (element.hasDateCitedElement()) { - composeDateTime(t, "Citation", "dateCited", element.getDateCitedElement(), -1); - } - if (element.hasVariantCitation()) { - composeCitationVariantCitationComponent(t, "Citation", "variantCitation", element.getVariantCitation(), -1); - } - if (element.hasPublishingModel()) { - composeCodeableConcept(t, "Citation", "publishingModel", element.getPublishingModel(), -1); - } - if (element.hasJournal()) { - composeCitationJournalComponent(t, "Citation", "journal", element.getJournal(), -1); - } - if (element.hasPublicationInfo()) { - composeCitationPublicationInfoComponent(t, "Citation", "publicationInfo", element.getPublicationInfo(), -1); - } - if (element.hasArticleTitleElement()) { - composeMarkdown(t, "Citation", "articleTitle", element.getArticleTitleElement(), -1); - } - for (int i = 0; i < element.getAlternativeTitle().size(); i++) { - composeCitationAlternativeTitleComponent(t, "Citation", "alternativeTitle", element.getAlternativeTitle().get(i), i); - } - if (element.hasPagination()) { - composeCitationPaginationComponent(t, "Citation", "pagination", element.getPagination(), -1); - } - for (int i = 0; i < element.getArticleUrl().size(); i++) { - composeCitationArticleUrlComponent(t, "Citation", "articleUrl", element.getArticleUrl().get(i), i); - } - if (element.hasAbstractElement()) { - composeMarkdown(t, "Citation", "abstract", element.getAbstractElement(), -1); - } - if (element.hasAbstractCopyrightElement()) { - composeMarkdown(t, "Citation", "abstractCopyright", element.getAbstractCopyrightElement(), -1); - } - for (int i = 0; i < element.getAlternativeAbstract().size(); i++) { - composeCitationAlternativeAbstractComponent(t, "Citation", "alternativeAbstract", element.getAlternativeAbstract().get(i), i); - } - if (element.hasContributorship()) { - composeCitationContributorshipComponent(t, "Citation", "contributorship", element.getContributorship(), -1); - } - if (element.hasArticleLanguage()) { - composeCodeableConcept(t, "Citation", "articleLanguage", element.getArticleLanguage(), -1); - } - for (int i = 0; i < element.getAlternativeForm().size(); i++) { - composeCitationAlternativeFormComponent(t, "Citation", "alternativeForm", element.getAlternativeForm().get(i), i); - } - for (int i = 0; i < element.getClassifier().size(); i++) { - composeCodeableConcept(t, "Citation", "classifier", element.getClassifier().get(i), i); - } - for (int i = 0; i < element.getKeywordList().size(); i++) { - composeCitationKeywordListComponent(t, "Citation", "keywordList", element.getKeywordList().get(i), i); - } - for (int i = 0; i < element.getRelatedArtifact().size(); i++) { - composeRelatedArtifact(t, "Citation", "relatedArtifact", element.getRelatedArtifact().get(i), i); + for (int i = 0; i < element.getClassification().size(); i++) { + composeCitationClassificationComponent(t, "Citation", "classification", element.getClassification().get(i), i); } for (int i = 0; i < element.getNote().size(); i++) { composeAnnotation(t, "Citation", "note", element.getNote().get(i), i); } - if (element.hasMedlinePubMed()) { - composeCitationMedlinePubMedComponent(t, "Citation", "medlinePubMed", element.getMedlinePubMed(), -1); + for (int i = 0; i < element.getCurrentState().size(); i++) { + composeCodeableConcept(t, "Citation", "currentState", element.getCurrentState().get(i), i); + } + for (int i = 0; i < element.getStatusDate().size(); i++) { + composeCitationStatusDateComponent(t, "Citation", "statusDate", element.getStatusDate().get(i), i); + } + for (int i = 0; i < element.getRelatesTo().size(); i++) { + composeCitationRelatesToComponent(t, "Citation", "relatesTo", element.getRelatesTo().get(i), i); + } + if (element.hasCitedArtifact()) { + composeCitationCitedArtifactComponent(t, "Citation", "citedArtifact", element.getCitedArtifact(), -1); } } - protected void composeCitationSummaryComponent(Complex parent, String parentType, String name, Citation.CitationSummaryComponent element, int index) { + protected void composeCitationClassificationComponent(Complex parent, String parentType, String name, Citation.CitationClassificationComponent element, int index) { if (element == null) return; Complex t; @@ -4721,37 +4822,133 @@ public class RdfParser extends RdfParserBase { else { t = parent.predicate("fhir:"+parentType+'.'+name); } - composeBackboneElement(t, "summary", name, element, index); - if (element.hasStyle()) { - composeCodeableConcept(t, "CitationSummaryComponent", "style", element.getStyle(), -1); - } - if (element.hasTextElement()) { - composeMarkdown(t, "CitationSummaryComponent", "text", element.getTextElement(), -1); - } - } - - protected void composeCitationVariantCitationComponent(Complex parent, String parentType, String name, Citation.CitationVariantCitationComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "variantCitation", name, element, index); + composeBackboneElement(t, "classification", name, element, index); if (element.hasType()) { - composeCodeableConcept(t, "CitationVariantCitationComponent", "type", element.getType(), -1); + composeCodeableConcept(t, "CitationClassificationComponent", "type", element.getType(), -1); } + for (int i = 0; i < element.getClassifier().size(); i++) { + composeCodeableConcept(t, "CitationClassificationComponent", "classifier", element.getClassifier().get(i), i); + } + } + + protected void composeCitationStatusDateComponent(Complex parent, String parentType, String name, Citation.CitationStatusDateComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "statusDate", name, element, index); + if (element.hasActivity()) { + composeCodeableConcept(t, "CitationStatusDateComponent", "activity", element.getActivity(), -1); + } + if (element.hasActualElement()) { + composeBoolean(t, "CitationStatusDateComponent", "actual", element.getActualElement(), -1); + } + if (element.hasPeriod()) { + composePeriod(t, "CitationStatusDateComponent", "period", element.getPeriod(), -1); + } + } + + protected void composeCitationRelatesToComponent(Complex parent, String parentType, String name, Citation.CitationRelatesToComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "relatesTo", name, element, index); + if (element.hasRelationshipType()) { + composeCodeableConcept(t, "CitationRelatesToComponent", "relationshipType", element.getRelationshipType(), -1); + } + for (int i = 0; i < element.getTargetClassifier().size(); i++) { + composeCodeableConcept(t, "CitationRelatesToComponent", "targetClassifier", element.getTargetClassifier().get(i), i); + } + if (element.hasTarget()) { + composeType(t, "CitationRelatesToComponent", "target", element.getTarget(), -1); + } + } + + protected void composeCitationCitedArtifactComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "citedArtifact", name, element, index); + for (int i = 0; i < element.getIdentifier().size(); i++) { + composeIdentifier(t, "CitationCitedArtifactComponent", "identifier", element.getIdentifier().get(i), i); + } + for (int i = 0; i < element.getRelatedIdentifier().size(); i++) { + composeIdentifier(t, "CitationCitedArtifactComponent", "relatedIdentifier", element.getRelatedIdentifier().get(i), i); + } + if (element.hasDateAccessedElement()) { + composeDateTime(t, "CitationCitedArtifactComponent", "dateAccessed", element.getDateAccessedElement(), -1); + } + if (element.hasVersion()) { + composeCitationCitedArtifactVersionComponent(t, "CitationCitedArtifactComponent", "version", element.getVersion(), -1); + } + for (int i = 0; i < element.getCurrentState().size(); i++) { + composeCodeableConcept(t, "CitationCitedArtifactComponent", "currentState", element.getCurrentState().get(i), i); + } + for (int i = 0; i < element.getStatusDate().size(); i++) { + composeCitationCitedArtifactStatusDateComponent(t, "CitationCitedArtifactComponent", "statusDate", element.getStatusDate().get(i), i); + } + for (int i = 0; i < element.getTitle().size(); i++) { + composeCitationCitedArtifactTitleComponent(t, "CitationCitedArtifactComponent", "title", element.getTitle().get(i), i); + } + for (int i = 0; i < element.getAbstract().size(); i++) { + composeCitationCitedArtifactAbstractComponent(t, "CitationCitedArtifactComponent", "abstract", element.getAbstract().get(i), i); + } + if (element.hasPart()) { + composeCitationCitedArtifactPartComponent(t, "CitationCitedArtifactComponent", "part", element.getPart(), -1); + } + for (int i = 0; i < element.getRelatesTo().size(); i++) { + composeCitationCitedArtifactRelatesToComponent(t, "CitationCitedArtifactComponent", "relatesTo", element.getRelatesTo().get(i), i); + } + for (int i = 0; i < element.getPublicationForm().size(); i++) { + composeCitationCitedArtifactPublicationFormComponent(t, "CitationCitedArtifactComponent", "publicationForm", element.getPublicationForm().get(i), i); + } + for (int i = 0; i < element.getWebLocation().size(); i++) { + composeCitationCitedArtifactWebLocationComponent(t, "CitationCitedArtifactComponent", "webLocation", element.getWebLocation().get(i), i); + } + for (int i = 0; i < element.getClassification().size(); i++) { + composeCitationCitedArtifactClassificationComponent(t, "CitationCitedArtifactComponent", "classification", element.getClassification().get(i), i); + } + if (element.hasContributorship()) { + composeCitationCitedArtifactContributorshipComponent(t, "CitationCitedArtifactComponent", "contributorship", element.getContributorship(), -1); + } + for (int i = 0; i < element.getNote().size(); i++) { + composeAnnotation(t, "CitationCitedArtifactComponent", "note", element.getNote().get(i), i); + } + } + + protected void composeCitationCitedArtifactVersionComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactVersionComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "version", name, element, index); if (element.hasValueElement()) { - composeString(t, "CitationVariantCitationComponent", "value", element.getValueElement(), -1); + composeString(t, "CitationCitedArtifactVersionComponent", "value", element.getValueElement(), -1); } if (element.hasBaseCitation()) { - composeReference(t, "CitationVariantCitationComponent", "baseCitation", element.getBaseCitation(), -1); + composeReference(t, "CitationCitedArtifactVersionComponent", "baseCitation", element.getBaseCitation(), -1); } } - protected void composeCitationJournalComponent(Complex parent, String parentType, String name, Citation.CitationJournalComponent element, int index) { + protected void composeCitationCitedArtifactStatusDateComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactStatusDateComponent element, int index) { if (element == null) return; Complex t; @@ -4760,22 +4957,19 @@ public class RdfParser extends RdfParserBase { else { t = parent.predicate("fhir:"+parentType+'.'+name); } - composeBackboneElement(t, "journal", name, element, index); - for (int i = 0; i < element.getIdentifier().size(); i++) { - composeIdentifier(t, "CitationJournalComponent", "identifier", element.getIdentifier().get(i), i); + composeBackboneElement(t, "statusDate", name, element, index); + if (element.hasActivity()) { + composeCodeableConcept(t, "CitationCitedArtifactStatusDateComponent", "activity", element.getActivity(), -1); } - if (element.hasCountryElement()) { - composeString(t, "CitationJournalComponent", "country", element.getCountryElement(), -1); + if (element.hasActualElement()) { + composeBoolean(t, "CitationCitedArtifactStatusDateComponent", "actual", element.getActualElement(), -1); } - if (element.hasJournalIssue()) { - composeCitationJournalJournalIssueComponent(t, "CitationJournalComponent", "journalIssue", element.getJournalIssue(), -1); - } - if (element.hasTitleElement()) { - composeString(t, "CitationJournalComponent", "title", element.getTitleElement(), -1); + if (element.hasPeriod()) { + composePeriod(t, "CitationCitedArtifactStatusDateComponent", "period", element.getPeriod(), -1); } } - protected void composeCitationJournalJournalIssueComponent(Complex parent, String parentType, String name, Citation.CitationJournalJournalIssueComponent element, int index) { + protected void composeCitationCitedArtifactTitleComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactTitleComponent element, int index) { if (element == null) return; Complex t; @@ -4784,52 +4978,19 @@ public class RdfParser extends RdfParserBase { else { t = parent.predicate("fhir:"+parentType+'.'+name); } - composeBackboneElement(t, "journalIssue", name, element, index); - if (element.hasCitedMedium()) { - composeCodeableConcept(t, "CitationJournalJournalIssueComponent", "citedMedium", element.getCitedMedium(), -1); + composeBackboneElement(t, "title", name, element, index); + if (element.hasType()) { + composeCodeableConcept(t, "CitationCitedArtifactTitleComponent", "type", element.getType(), -1); } - if (element.hasVolumeElement()) { - composeString(t, "CitationJournalJournalIssueComponent", "volume", element.getVolumeElement(), -1); - } - if (element.hasIssueElement()) { - composeString(t, "CitationJournalJournalIssueComponent", "issue", element.getIssueElement(), -1); - } - if (element.hasPublicationDate()) { - composeCitationJournalJournalIssuePublicationDateComponent(t, "CitationJournalJournalIssueComponent", "publicationDate", element.getPublicationDate(), -1); - } - } - - protected void composeCitationJournalJournalIssuePublicationDateComponent(Complex parent, String parentType, String name, Citation.CitationJournalJournalIssuePublicationDateComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "publicationDate", name, element, index); - if (element.hasDateElement()) { - composeDate(t, "CitationJournalJournalIssuePublicationDateComponent", "date", element.getDateElement(), -1); - } - if (element.hasYearElement()) { - composeString(t, "CitationJournalJournalIssuePublicationDateComponent", "year", element.getYearElement(), -1); - } - if (element.hasMonthElement()) { - composeString(t, "CitationJournalJournalIssuePublicationDateComponent", "month", element.getMonthElement(), -1); - } - if (element.hasDayElement()) { - composeString(t, "CitationJournalJournalIssuePublicationDateComponent", "day", element.getDayElement(), -1); - } - if (element.hasSeasonElement()) { - composeString(t, "CitationJournalJournalIssuePublicationDateComponent", "season", element.getSeasonElement(), -1); + if (element.hasLanguage()) { + composeCodeableConcept(t, "CitationCitedArtifactTitleComponent", "language", element.getLanguage(), -1); } if (element.hasTextElement()) { - composeString(t, "CitationJournalJournalIssuePublicationDateComponent", "text", element.getTextElement(), -1); + composeMarkdown(t, "CitationCitedArtifactTitleComponent", "text", element.getTextElement(), -1); } } - protected void composeCitationPublicationInfoComponent(Complex parent, String parentType, String name, Citation.CitationPublicationInfoComponent element, int index) { + protected void composeCitationCitedArtifactAbstractComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactAbstractComponent element, int index) { if (element == null) return; Complex t; @@ -4838,22 +4999,109 @@ public class RdfParser extends RdfParserBase { else { t = parent.predicate("fhir:"+parentType+'.'+name); } - composeBackboneElement(t, "publicationInfo", name, element, index); - if (element.hasPublishedIn()) { - composeCitationPublicationInfoPublishedInComponent(t, "CitationPublicationInfoComponent", "publishedIn", element.getPublishedIn(), -1); + composeBackboneElement(t, "abstract", name, element, index); + if (element.hasType()) { + composeCodeableConcept(t, "CitationCitedArtifactAbstractComponent", "type", element.getType(), -1); } - if (element.hasEntryDateElement()) { - composeDateTime(t, "CitationPublicationInfoComponent", "entryDate", element.getEntryDateElement(), -1); + if (element.hasLanguage()) { + composeCodeableConcept(t, "CitationCitedArtifactAbstractComponent", "language", element.getLanguage(), -1); } - if (element.hasRevisionDateElement()) { - composeDateTime(t, "CitationPublicationInfoComponent", "revisionDate", element.getRevisionDateElement(), -1); + if (element.hasTextElement()) { + composeMarkdown(t, "CitationCitedArtifactAbstractComponent", "text", element.getTextElement(), -1); } - if (element.hasPageCountElement()) { - composeString(t, "CitationPublicationInfoComponent", "pageCount", element.getPageCountElement(), -1); + if (element.hasCopyrightElement()) { + composeMarkdown(t, "CitationCitedArtifactAbstractComponent", "copyright", element.getCopyrightElement(), -1); } } - protected void composeCitationPublicationInfoPublishedInComponent(Complex parent, String parentType, String name, Citation.CitationPublicationInfoPublishedInComponent element, int index) { + protected void composeCitationCitedArtifactPartComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactPartComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "part", name, element, index); + if (element.hasType()) { + composeCodeableConcept(t, "CitationCitedArtifactPartComponent", "type", element.getType(), -1); + } + if (element.hasValueElement()) { + composeString(t, "CitationCitedArtifactPartComponent", "value", element.getValueElement(), -1); + } + if (element.hasBaseCitation()) { + composeReference(t, "CitationCitedArtifactPartComponent", "baseCitation", element.getBaseCitation(), -1); + } + } + + protected void composeCitationCitedArtifactRelatesToComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactRelatesToComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "relatesTo", name, element, index); + if (element.hasRelationshipType()) { + composeCodeableConcept(t, "CitationCitedArtifactRelatesToComponent", "relationshipType", element.getRelationshipType(), -1); + } + for (int i = 0; i < element.getTargetClassifier().size(); i++) { + composeCodeableConcept(t, "CitationCitedArtifactRelatesToComponent", "targetClassifier", element.getTargetClassifier().get(i), i); + } + if (element.hasTarget()) { + composeType(t, "CitationCitedArtifactRelatesToComponent", "target", element.getTarget(), -1); + } + } + + protected void composeCitationCitedArtifactPublicationFormComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactPublicationFormComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "publicationForm", name, element, index); + if (element.hasPublishedIn()) { + composeCitationCitedArtifactPublicationFormPublishedInComponent(t, "CitationCitedArtifactPublicationFormComponent", "publishedIn", element.getPublishedIn(), -1); + } + if (element.hasPeriodicRelease()) { + composeCitationCitedArtifactPublicationFormPeriodicReleaseComponent(t, "CitationCitedArtifactPublicationFormComponent", "periodicRelease", element.getPeriodicRelease(), -1); + } + if (element.hasArticleDateElement()) { + composeDateTime(t, "CitationCitedArtifactPublicationFormComponent", "articleDate", element.getArticleDateElement(), -1); + } + if (element.hasLastRevisionDateElement()) { + composeDateTime(t, "CitationCitedArtifactPublicationFormComponent", "lastRevisionDate", element.getLastRevisionDateElement(), -1); + } + for (int i = 0; i < element.getLanguage().size(); i++) { + composeCodeableConcept(t, "CitationCitedArtifactPublicationFormComponent", "language", element.getLanguage().get(i), i); + } + if (element.hasAccessionNumberElement()) { + composeString(t, "CitationCitedArtifactPublicationFormComponent", "accessionNumber", element.getAccessionNumberElement(), -1); + } + if (element.hasPageStringElement()) { + composeString(t, "CitationCitedArtifactPublicationFormComponent", "pageString", element.getPageStringElement(), -1); + } + if (element.hasFirstPageElement()) { + composeString(t, "CitationCitedArtifactPublicationFormComponent", "firstPage", element.getFirstPageElement(), -1); + } + if (element.hasLastPageElement()) { + composeString(t, "CitationCitedArtifactPublicationFormComponent", "lastPage", element.getLastPageElement(), -1); + } + if (element.hasPageCountElement()) { + composeString(t, "CitationCitedArtifactPublicationFormComponent", "pageCount", element.getPageCountElement(), -1); + } + if (element.hasCopyrightElement()) { + composeMarkdown(t, "CitationCitedArtifactPublicationFormComponent", "copyright", element.getCopyrightElement(), -1); + } + } + + protected void composeCitationCitedArtifactPublicationFormPublishedInComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactPublicationFormPublishedInComponent element, int index) { if (element == null) return; Complex t; @@ -4864,47 +5112,23 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "publishedIn", name, element, index); if (element.hasType()) { - composeCodeableConcept(t, "CitationPublicationInfoPublishedInComponent", "type", element.getType(), -1); + composeCodeableConcept(t, "CitationCitedArtifactPublicationFormPublishedInComponent", "type", element.getType(), -1); } for (int i = 0; i < element.getIdentifier().size(); i++) { - composeIdentifier(t, "CitationPublicationInfoPublishedInComponent", "identifier", element.getIdentifier().get(i), i); - } - if (element.hasNameElement()) { - composeString(t, "CitationPublicationInfoPublishedInComponent", "name", element.getNameElement(), -1); - } - if (element.hasPublisher()) { - composeReference(t, "CitationPublicationInfoPublishedInComponent", "publisher", element.getPublisher(), -1); - } - if (element.hasPublisherLocationElement()) { - composeString(t, "CitationPublicationInfoPublishedInComponent", "publisherLocation", element.getPublisherLocationElement(), -1); - } - if (element.hasStartDateElement()) { - composeDate(t, "CitationPublicationInfoPublishedInComponent", "startDate", element.getStartDateElement(), -1); - } - } - - protected void composeCitationAlternativeTitleComponent(Complex parent, String parentType, String name, Citation.CitationAlternativeTitleComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "alternativeTitle", name, element, index); - if (element.hasType()) { - composeCodeableConcept(t, "CitationAlternativeTitleComponent", "type", element.getType(), -1); - } - if (element.hasLanguage()) { - composeCodeableConcept(t, "CitationAlternativeTitleComponent", "language", element.getLanguage(), -1); + composeIdentifier(t, "CitationCitedArtifactPublicationFormPublishedInComponent", "identifier", element.getIdentifier().get(i), i); } if (element.hasTitleElement()) { - composeMarkdown(t, "CitationAlternativeTitleComponent", "title", element.getTitleElement(), -1); + composeString(t, "CitationCitedArtifactPublicationFormPublishedInComponent", "title", element.getTitleElement(), -1); + } + if (element.hasPublisher()) { + composeReference(t, "CitationCitedArtifactPublicationFormPublishedInComponent", "publisher", element.getPublisher(), -1); + } + if (element.hasPublisherLocationElement()) { + composeString(t, "CitationCitedArtifactPublicationFormPublishedInComponent", "publisherLocation", element.getPublisherLocationElement(), -1); } } - protected void composeCitationPaginationComponent(Complex parent, String parentType, String name, Citation.CitationPaginationComponent element, int index) { + protected void composeCitationCitedArtifactPublicationFormPeriodicReleaseComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactPublicationFormPeriodicReleaseComponent element, int index) { if (element == null) return; Complex t; @@ -4913,19 +5137,22 @@ public class RdfParser extends RdfParserBase { else { t = parent.predicate("fhir:"+parentType+'.'+name); } - composeBackboneElement(t, "pagination", name, element, index); - if (element.hasPageStringElement()) { - composeString(t, "CitationPaginationComponent", "pageString", element.getPageStringElement(), -1); + composeBackboneElement(t, "periodicRelease", name, element, index); + if (element.hasCitedMedium()) { + composeCodeableConcept(t, "CitationCitedArtifactPublicationFormPeriodicReleaseComponent", "citedMedium", element.getCitedMedium(), -1); } - if (element.hasFirstPageElement()) { - composeString(t, "CitationPaginationComponent", "firstPage", element.getFirstPageElement(), -1); + if (element.hasVolumeElement()) { + composeString(t, "CitationCitedArtifactPublicationFormPeriodicReleaseComponent", "volume", element.getVolumeElement(), -1); } - if (element.hasLastPageElement()) { - composeString(t, "CitationPaginationComponent", "lastPage", element.getLastPageElement(), -1); + if (element.hasIssueElement()) { + composeString(t, "CitationCitedArtifactPublicationFormPeriodicReleaseComponent", "issue", element.getIssueElement(), -1); + } + if (element.hasDateOfPublication()) { + composeCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent(t, "CitationCitedArtifactPublicationFormPeriodicReleaseComponent", "dateOfPublication", element.getDateOfPublication(), -1); } } - protected void composeCitationArticleUrlComponent(Complex parent, String parentType, String name, Citation.CitationArticleUrlComponent element, int index) { + protected void composeCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent element, int index) { if (element == null) return; Complex t; @@ -4934,16 +5161,46 @@ public class RdfParser extends RdfParserBase { else { t = parent.predicate("fhir:"+parentType+'.'+name); } - composeBackboneElement(t, "articleUrl", name, element, index); + composeBackboneElement(t, "dateOfPublication", name, element, index); + if (element.hasDateElement()) { + composeDate(t, "CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent", "date", element.getDateElement(), -1); + } + if (element.hasYearElement()) { + composeString(t, "CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent", "year", element.getYearElement(), -1); + } + if (element.hasMonthElement()) { + composeString(t, "CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent", "month", element.getMonthElement(), -1); + } + if (element.hasDayElement()) { + composeString(t, "CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent", "day", element.getDayElement(), -1); + } + if (element.hasSeasonElement()) { + composeString(t, "CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent", "season", element.getSeasonElement(), -1); + } + if (element.hasTextElement()) { + composeString(t, "CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent", "text", element.getTextElement(), -1); + } + } + + protected void composeCitationCitedArtifactWebLocationComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactWebLocationComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "webLocation", name, element, index); if (element.hasType()) { - composeCodeableConcept(t, "CitationArticleUrlComponent", "type", element.getType(), -1); + composeCodeableConcept(t, "CitationCitedArtifactWebLocationComponent", "type", element.getType(), -1); } if (element.hasUrlElement()) { - composeUri(t, "CitationArticleUrlComponent", "url", element.getUrlElement(), -1); + composeUri(t, "CitationCitedArtifactWebLocationComponent", "url", element.getUrlElement(), -1); } } - protected void composeCitationAlternativeAbstractComponent(Complex parent, String parentType, String name, Citation.CitationAlternativeAbstractComponent element, int index) { + protected void composeCitationCitedArtifactClassificationComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactClassificationComponent element, int index) { if (element == null) return; Complex t; @@ -4952,22 +5209,46 @@ public class RdfParser extends RdfParserBase { else { t = parent.predicate("fhir:"+parentType+'.'+name); } - composeBackboneElement(t, "alternativeAbstract", name, element, index); + composeBackboneElement(t, "classification", name, element, index); if (element.hasType()) { - composeCodeableConcept(t, "CitationAlternativeAbstractComponent", "type", element.getType(), -1); + composeCodeableConcept(t, "CitationCitedArtifactClassificationComponent", "type", element.getType(), -1); } - if (element.hasLanguage()) { - composeCodeableConcept(t, "CitationAlternativeAbstractComponent", "language", element.getLanguage(), -1); + for (int i = 0; i < element.getClassifier().size(); i++) { + composeCodeableConcept(t, "CitationCitedArtifactClassificationComponent", "classifier", element.getClassifier().get(i), i); } - if (element.hasAbstractElement()) { - composeMarkdown(t, "CitationAlternativeAbstractComponent", "abstract", element.getAbstractElement(), -1); - } - if (element.hasAbstractCopyrightElement()) { - composeMarkdown(t, "CitationAlternativeAbstractComponent", "abstractCopyright", element.getAbstractCopyrightElement(), -1); + if (element.hasWhoClassified()) { + composeCitationCitedArtifactClassificationWhoClassifiedComponent(t, "CitationCitedArtifactClassificationComponent", "whoClassified", element.getWhoClassified(), -1); } } - protected void composeCitationContributorshipComponent(Complex parent, String parentType, String name, Citation.CitationContributorshipComponent element, int index) { + protected void composeCitationCitedArtifactClassificationWhoClassifiedComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactClassificationWhoClassifiedComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "whoClassified", name, element, index); + if (element.hasPerson()) { + composeReference(t, "CitationCitedArtifactClassificationWhoClassifiedComponent", "person", element.getPerson(), -1); + } + if (element.hasOrganization()) { + composeReference(t, "CitationCitedArtifactClassificationWhoClassifiedComponent", "organization", element.getOrganization(), -1); + } + if (element.hasPublisher()) { + composeReference(t, "CitationCitedArtifactClassificationWhoClassifiedComponent", "publisher", element.getPublisher(), -1); + } + if (element.hasClassifierCopyrightElement()) { + composeString(t, "CitationCitedArtifactClassificationWhoClassifiedComponent", "classifierCopyright", element.getClassifierCopyrightElement(), -1); + } + if (element.hasFreeToShareElement()) { + composeBoolean(t, "CitationCitedArtifactClassificationWhoClassifiedComponent", "freeToShare", element.getFreeToShareElement(), -1); + } + } + + protected void composeCitationCitedArtifactContributorshipComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactContributorshipComponent element, int index) { if (element == null) return; Complex t; @@ -4978,17 +5259,17 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "contributorship", name, element, index); if (element.hasCompleteElement()) { - composeBoolean(t, "CitationContributorshipComponent", "complete", element.getCompleteElement(), -1); + composeBoolean(t, "CitationCitedArtifactContributorshipComponent", "complete", element.getCompleteElement(), -1); } for (int i = 0; i < element.getEntry().size(); i++) { - composeCitationContributorshipEntryComponent(t, "CitationContributorshipComponent", "entry", element.getEntry().get(i), i); + composeCitationCitedArtifactContributorshipEntryComponent(t, "CitationCitedArtifactContributorshipComponent", "entry", element.getEntry().get(i), i); } for (int i = 0; i < element.getSummary().size(); i++) { - composeCitationContributorshipSummaryComponent(t, "CitationContributorshipComponent", "summary", element.getSummary().get(i), i); + composeCitationCitedArtifactContributorshipSummaryComponent(t, "CitationCitedArtifactContributorshipComponent", "summary", element.getSummary().get(i), i); } } - protected void composeCitationContributorshipEntryComponent(Complex parent, String parentType, String name, Citation.CitationContributorshipEntryComponent element, int index) { + protected void composeCitationCitedArtifactContributorshipEntryComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactContributorshipEntryComponent element, int index) { if (element == null) return; Complex t; @@ -4999,41 +5280,44 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "entry", name, element, index); if (element.hasName()) { - composeHumanName(t, "CitationContributorshipEntryComponent", "name", element.getName(), -1); + composeHumanName(t, "CitationCitedArtifactContributorshipEntryComponent", "name", element.getName(), -1); } if (element.hasInitialsElement()) { - composeString(t, "CitationContributorshipEntryComponent", "initials", element.getInitialsElement(), -1); + composeString(t, "CitationCitedArtifactContributorshipEntryComponent", "initials", element.getInitialsElement(), -1); } if (element.hasCollectiveNameElement()) { - composeString(t, "CitationContributorshipEntryComponent", "collectiveName", element.getCollectiveNameElement(), -1); + composeString(t, "CitationCitedArtifactContributorshipEntryComponent", "collectiveName", element.getCollectiveNameElement(), -1); } for (int i = 0; i < element.getIdentifier().size(); i++) { - composeIdentifier(t, "CitationContributorshipEntryComponent", "identifier", element.getIdentifier().get(i), i); + composeIdentifier(t, "CitationCitedArtifactContributorshipEntryComponent", "identifier", element.getIdentifier().get(i), i); } for (int i = 0; i < element.getAffiliationInfo().size(); i++) { - composeCitationContributorshipEntryAffiliationInfoComponent(t, "CitationContributorshipEntryComponent", "affiliationInfo", element.getAffiliationInfo().get(i), i); + composeCitationCitedArtifactContributorshipEntryAffiliationInfoComponent(t, "CitationCitedArtifactContributorshipEntryComponent", "affiliationInfo", element.getAffiliationInfo().get(i), i); } for (int i = 0; i < element.getAddress().size(); i++) { - composeAddress(t, "CitationContributorshipEntryComponent", "address", element.getAddress().get(i), i); + composeAddress(t, "CitationCitedArtifactContributorshipEntryComponent", "address", element.getAddress().get(i), i); } for (int i = 0; i < element.getTelecom().size(); i++) { - composeContactPoint(t, "CitationContributorshipEntryComponent", "telecom", element.getTelecom().get(i), i); + composeContactPoint(t, "CitationCitedArtifactContributorshipEntryComponent", "telecom", element.getTelecom().get(i), i); } - for (int i = 0; i < element.getContribution().size(); i++) { - composeCodeableConcept(t, "CitationContributorshipEntryComponent", "contribution", element.getContribution().get(i), i); + for (int i = 0; i < element.getContributionType().size(); i++) { + composeCodeableConcept(t, "CitationCitedArtifactContributorshipEntryComponent", "contributionType", element.getContributionType().get(i), i); } - if (element.hasNotAnAuthorElement()) { - composeBoolean(t, "CitationContributorshipEntryComponent", "notAnAuthor", element.getNotAnAuthorElement(), -1); + if (element.hasRole()) { + composeCodeableConcept(t, "CitationCitedArtifactContributorshipEntryComponent", "role", element.getRole(), -1); } - if (element.hasCorrespondingAuthorElement()) { - composeBoolean(t, "CitationContributorshipEntryComponent", "correspondingAuthor", element.getCorrespondingAuthorElement(), -1); + for (int i = 0; i < element.getContributionInstance().size(); i++) { + composeCitationCitedArtifactContributorshipEntryContributionInstanceComponent(t, "CitationCitedArtifactContributorshipEntryComponent", "contributionInstance", element.getContributionInstance().get(i), i); + } + if (element.hasCorrespondingContactElement()) { + composeBoolean(t, "CitationCitedArtifactContributorshipEntryComponent", "correspondingContact", element.getCorrespondingContactElement(), -1); } if (element.hasListOrderElement()) { - composePositiveInt(t, "CitationContributorshipEntryComponent", "listOrder", element.getListOrderElement(), -1); + composePositiveInt(t, "CitationCitedArtifactContributorshipEntryComponent", "listOrder", element.getListOrderElement(), -1); } } - protected void composeCitationContributorshipEntryAffiliationInfoComponent(Complex parent, String parentType, String name, Citation.CitationContributorshipEntryAffiliationInfoComponent element, int index) { + protected void composeCitationCitedArtifactContributorshipEntryAffiliationInfoComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactContributorshipEntryAffiliationInfoComponent element, int index) { if (element == null) return; Complex t; @@ -5044,17 +5328,35 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "affiliationInfo", name, element, index); if (element.hasAffiliationElement()) { - composeString(t, "CitationContributorshipEntryAffiliationInfoComponent", "affiliation", element.getAffiliationElement(), -1); + composeString(t, "CitationCitedArtifactContributorshipEntryAffiliationInfoComponent", "affiliation", element.getAffiliationElement(), -1); } if (element.hasRoleElement()) { - composeString(t, "CitationContributorshipEntryAffiliationInfoComponent", "role", element.getRoleElement(), -1); + composeString(t, "CitationCitedArtifactContributorshipEntryAffiliationInfoComponent", "role", element.getRoleElement(), -1); } for (int i = 0; i < element.getIdentifier().size(); i++) { - composeIdentifier(t, "CitationContributorshipEntryAffiliationInfoComponent", "identifier", element.getIdentifier().get(i), i); + composeIdentifier(t, "CitationCitedArtifactContributorshipEntryAffiliationInfoComponent", "identifier", element.getIdentifier().get(i), i); } } - protected void composeCitationContributorshipSummaryComponent(Complex parent, String parentType, String name, Citation.CitationContributorshipSummaryComponent element, int index) { + protected void composeCitationCitedArtifactContributorshipEntryContributionInstanceComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactContributorshipEntryContributionInstanceComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "contributionInstance", name, element, index); + if (element.hasType()) { + composeCodeableConcept(t, "CitationCitedArtifactContributorshipEntryContributionInstanceComponent", "type", element.getType(), -1); + } + if (element.hasTimeElement()) { + composeDateTime(t, "CitationCitedArtifactContributorshipEntryContributionInstanceComponent", "time", element.getTimeElement(), -1); + } + } + + protected void composeCitationCitedArtifactContributorshipSummaryComponent(Complex parent, String parentType, String name, Citation.CitationCitedArtifactContributorshipSummaryComponent element, int index) { if (element == null) return; Complex t; @@ -5065,286 +5367,16 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "summary", name, element, index); if (element.hasType()) { - composeCodeableConcept(t, "CitationContributorshipSummaryComponent", "type", element.getType(), -1); + composeCodeableConcept(t, "CitationCitedArtifactContributorshipSummaryComponent", "type", element.getType(), -1); } if (element.hasStyle()) { - composeCodeableConcept(t, "CitationContributorshipSummaryComponent", "style", element.getStyle(), -1); + composeCodeableConcept(t, "CitationCitedArtifactContributorshipSummaryComponent", "style", element.getStyle(), -1); } if (element.hasSource()) { - composeCodeableConcept(t, "CitationContributorshipSummaryComponent", "source", element.getSource(), -1); + composeCodeableConcept(t, "CitationCitedArtifactContributorshipSummaryComponent", "source", element.getSource(), -1); } if (element.hasValueElement()) { - composeMarkdown(t, "CitationContributorshipSummaryComponent", "value", element.getValueElement(), -1); - } - } - - protected void composeCitationAlternativeFormComponent(Complex parent, String parentType, String name, Citation.CitationAlternativeFormComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "alternativeForm", name, element, index); - if (element.hasPublishingModel()) { - composeCodeableConcept(t, "CitationAlternativeFormComponent", "publishingModel", element.getPublishingModel(), -1); - } - if (element.hasLanguage()) { - composeCodeableConcept(t, "CitationAlternativeFormComponent", "language", element.getLanguage(), -1); - } - if (element.hasJournalIssue()) { - composeCitationAlternativeFormJournalIssueComponent(t, "CitationAlternativeFormComponent", "journalIssue", element.getJournalIssue(), -1); - } - if (element.hasPagination()) { - composeCitationAlternativeFormPaginationComponent(t, "CitationAlternativeFormComponent", "pagination", element.getPagination(), -1); - } - if (element.hasPublicationInfo()) { - composeCitationAlternativeFormPublicationInfoComponent(t, "CitationAlternativeFormComponent", "publicationInfo", element.getPublicationInfo(), -1); - } - } - - protected void composeCitationAlternativeFormJournalIssueComponent(Complex parent, String parentType, String name, Citation.CitationAlternativeFormJournalIssueComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "journalIssue", name, element, index); - if (element.hasCitedMedium()) { - composeCodeableConcept(t, "CitationAlternativeFormJournalIssueComponent", "citedMedium", element.getCitedMedium(), -1); - } - if (element.hasVolumeElement()) { - composeString(t, "CitationAlternativeFormJournalIssueComponent", "volume", element.getVolumeElement(), -1); - } - if (element.hasIssueElement()) { - composeString(t, "CitationAlternativeFormJournalIssueComponent", "issue", element.getIssueElement(), -1); - } - if (element.hasPublicationDate()) { - composeCitationAlternativeFormJournalIssuePublicationDateComponent(t, "CitationAlternativeFormJournalIssueComponent", "publicationDate", element.getPublicationDate(), -1); - } - } - - protected void composeCitationAlternativeFormJournalIssuePublicationDateComponent(Complex parent, String parentType, String name, Citation.CitationAlternativeFormJournalIssuePublicationDateComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "publicationDate", name, element, index); - if (element.hasDateElement()) { - composeDate(t, "CitationAlternativeFormJournalIssuePublicationDateComponent", "date", element.getDateElement(), -1); - } - if (element.hasYearElement()) { - composeString(t, "CitationAlternativeFormJournalIssuePublicationDateComponent", "year", element.getYearElement(), -1); - } - if (element.hasMonthElement()) { - composeString(t, "CitationAlternativeFormJournalIssuePublicationDateComponent", "month", element.getMonthElement(), -1); - } - if (element.hasDayElement()) { - composeString(t, "CitationAlternativeFormJournalIssuePublicationDateComponent", "day", element.getDayElement(), -1); - } - if (element.hasSeasonElement()) { - composeString(t, "CitationAlternativeFormJournalIssuePublicationDateComponent", "season", element.getSeasonElement(), -1); - } - if (element.hasTextElement()) { - composeString(t, "CitationAlternativeFormJournalIssuePublicationDateComponent", "text", element.getTextElement(), -1); - } - } - - protected void composeCitationAlternativeFormPaginationComponent(Complex parent, String parentType, String name, Citation.CitationAlternativeFormPaginationComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "pagination", name, element, index); - if (element.hasPageStringElement()) { - composeString(t, "CitationAlternativeFormPaginationComponent", "pageString", element.getPageStringElement(), -1); - } - if (element.hasFirstPageElement()) { - composeString(t, "CitationAlternativeFormPaginationComponent", "firstPage", element.getFirstPageElement(), -1); - } - if (element.hasLastPageElement()) { - composeString(t, "CitationAlternativeFormPaginationComponent", "lastPage", element.getLastPageElement(), -1); - } - } - - protected void composeCitationAlternativeFormPublicationInfoComponent(Complex parent, String parentType, String name, Citation.CitationAlternativeFormPublicationInfoComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "publicationInfo", name, element, index); - if (element.hasPublishedIn()) { - composeCitationAlternativeFormPublicationInfoPublishedInComponent(t, "CitationAlternativeFormPublicationInfoComponent", "publishedIn", element.getPublishedIn(), -1); - } - if (element.hasEntryDateElement()) { - composeDateTime(t, "CitationAlternativeFormPublicationInfoComponent", "entryDate", element.getEntryDateElement(), -1); - } - if (element.hasRevisionDateElement()) { - composeDateTime(t, "CitationAlternativeFormPublicationInfoComponent", "revisionDate", element.getRevisionDateElement(), -1); - } - if (element.hasPageCountElement()) { - composeString(t, "CitationAlternativeFormPublicationInfoComponent", "pageCount", element.getPageCountElement(), -1); - } - } - - protected void composeCitationAlternativeFormPublicationInfoPublishedInComponent(Complex parent, String parentType, String name, Citation.CitationAlternativeFormPublicationInfoPublishedInComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "publishedIn", name, element, index); - if (element.hasType()) { - composeCodeableConcept(t, "CitationAlternativeFormPublicationInfoPublishedInComponent", "type", element.getType(), -1); - } - if (element.hasNameElement()) { - composeString(t, "CitationAlternativeFormPublicationInfoPublishedInComponent", "name", element.getNameElement(), -1); - } - if (element.hasPublisher()) { - composeReference(t, "CitationAlternativeFormPublicationInfoPublishedInComponent", "publisher", element.getPublisher(), -1); - } - if (element.hasPublisherLocationElement()) { - composeString(t, "CitationAlternativeFormPublicationInfoPublishedInComponent", "publisherLocation", element.getPublisherLocationElement(), -1); - } - if (element.hasStartDateElement()) { - composeDate(t, "CitationAlternativeFormPublicationInfoPublishedInComponent", "startDate", element.getStartDateElement(), -1); - } - } - - protected void composeCitationKeywordListComponent(Complex parent, String parentType, String name, Citation.CitationKeywordListComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "keywordList", name, element, index); - if (element.hasOwnerElement()) { - composeString(t, "CitationKeywordListComponent", "owner", element.getOwnerElement(), -1); - } - for (int i = 0; i < element.getKeyword().size(); i++) { - composeCitationKeywordListKeywordComponent(t, "CitationKeywordListComponent", "keyword", element.getKeyword().get(i), i); - } - } - - protected void composeCitationKeywordListKeywordComponent(Complex parent, String parentType, String name, Citation.CitationKeywordListKeywordComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "keyword", name, element, index); - if (element.hasMajorTopicElement()) { - composeBoolean(t, "CitationKeywordListKeywordComponent", "majorTopic", element.getMajorTopicElement(), -1); - } - if (element.hasValueElement()) { - composeString(t, "CitationKeywordListKeywordComponent", "value", element.getValueElement(), -1); - } - } - - protected void composeCitationMedlinePubMedComponent(Complex parent, String parentType, String name, Citation.CitationMedlinePubMedComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "medlinePubMed", name, element, index); - if (element.hasMedlineState()) { - composeCodeableConcept(t, "CitationMedlinePubMedComponent", "medlineState", element.getMedlineState(), -1); - } - if (element.hasOwner()) { - composeCodeableConcept(t, "CitationMedlinePubMedComponent", "owner", element.getOwner(), -1); - } - if (element.hasPmidElement()) { - composePositiveInt(t, "CitationMedlinePubMedComponent", "pmid", element.getPmidElement(), -1); - } - if (element.hasPmidVersionElement()) { - composePositiveInt(t, "CitationMedlinePubMedComponent", "pmidVersion", element.getPmidVersionElement(), -1); - } - if (element.hasDateCreatedElement()) { - composeDate(t, "CitationMedlinePubMedComponent", "dateCreated", element.getDateCreatedElement(), -1); - } - if (element.hasDateCompletedElement()) { - composeDate(t, "CitationMedlinePubMedComponent", "dateCompleted", element.getDateCompletedElement(), -1); - } - if (element.hasDateRevisedElement()) { - composeDate(t, "CitationMedlinePubMedComponent", "dateRevised", element.getDateRevisedElement(), -1); - } - for (int i = 0; i < element.getPubMedPubDate().size(); i++) { - composeCitationMedlinePubMedPubMedPubDateComponent(t, "CitationMedlinePubMedComponent", "pubMedPubDate", element.getPubMedPubDate().get(i), i); - } - if (element.hasPublicationState()) { - composeCodeableConcept(t, "CitationMedlinePubMedComponent", "publicationState", element.getPublicationState(), -1); - } - for (int i = 0; i < element.getRelatedArticle().size(); i++) { - composeCitationMedlinePubMedRelatedArticleComponent(t, "CitationMedlinePubMedComponent", "relatedArticle", element.getRelatedArticle().get(i), i); - } - } - - protected void composeCitationMedlinePubMedPubMedPubDateComponent(Complex parent, String parentType, String name, Citation.CitationMedlinePubMedPubMedPubDateComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "pubMedPubDate", name, element, index); - if (element.hasPublicationState()) { - composeCodeableConcept(t, "CitationMedlinePubMedPubMedPubDateComponent", "publicationState", element.getPublicationState(), -1); - } - if (element.hasDateElement()) { - composeDateTime(t, "CitationMedlinePubMedPubMedPubDateComponent", "date", element.getDateElement(), -1); - } - } - - protected void composeCitationMedlinePubMedRelatedArticleComponent(Complex parent, String parentType, String name, Citation.CitationMedlinePubMedRelatedArticleComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "relatedArticle", name, element, index); - if (element.hasCitationReference()) { - composeReference(t, "CitationMedlinePubMedRelatedArticleComponent", "citationReference", element.getCitationReference(), -1); - } - if (element.hasCitationMarkdownElement()) { - composeMarkdown(t, "CitationMedlinePubMedRelatedArticleComponent", "citationMarkdown", element.getCitationMarkdownElement(), -1); - } - for (int i = 0; i < element.getIdentifier().size(); i++) { - composeIdentifier(t, "CitationMedlinePubMedRelatedArticleComponent", "identifier", element.getIdentifier().get(i), i); + composeMarkdown(t, "CitationCitedArtifactContributorshipSummaryComponent", "value", element.getValueElement(), -1); } } @@ -6403,13 +6435,13 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "contraindication", name, element, index); if (element.hasDiseaseSymptomProcedure()) { - composeCodeableConcept(t, "ClinicalUseIssueContraindicationComponent", "diseaseSymptomProcedure", element.getDiseaseSymptomProcedure(), -1); + composeCodeableReference(t, "ClinicalUseIssueContraindicationComponent", "diseaseSymptomProcedure", element.getDiseaseSymptomProcedure(), -1); } if (element.hasDiseaseStatus()) { - composeCodeableConcept(t, "ClinicalUseIssueContraindicationComponent", "diseaseStatus", element.getDiseaseStatus(), -1); + composeCodeableReference(t, "ClinicalUseIssueContraindicationComponent", "diseaseStatus", element.getDiseaseStatus(), -1); } for (int i = 0; i < element.getComorbidity().size(); i++) { - composeCodeableConcept(t, "ClinicalUseIssueContraindicationComponent", "comorbidity", element.getComorbidity().get(i), i); + composeCodeableReference(t, "ClinicalUseIssueContraindicationComponent", "comorbidity", element.getComorbidity().get(i), i); } for (int i = 0; i < element.getIndication().size(); i++) { composeReference(t, "ClinicalUseIssueContraindicationComponent", "indication", element.getIndication().get(i), i); @@ -6429,11 +6461,11 @@ public class RdfParser extends RdfParserBase { t = parent.predicate("fhir:"+parentType+'.'+name); } composeBackboneElement(t, "otherTherapy", name, element, index); - if (element.hasTherapyRelationshipType()) { - composeCodeableConcept(t, "ClinicalUseIssueContraindicationOtherTherapyComponent", "therapyRelationshipType", element.getTherapyRelationshipType(), -1); + if (element.hasRelationshipType()) { + composeCodeableConcept(t, "ClinicalUseIssueContraindicationOtherTherapyComponent", "relationshipType", element.getRelationshipType(), -1); } - if (element.hasMedication()) { - composeType(t, "ClinicalUseIssueContraindicationOtherTherapyComponent", "medication", element.getMedication(), -1); + if (element.hasTherapy()) { + composeCodeableReference(t, "ClinicalUseIssueContraindicationOtherTherapyComponent", "therapy", element.getTherapy(), -1); } } @@ -6448,16 +6480,16 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "indication", name, element, index); if (element.hasDiseaseSymptomProcedure()) { - composeCodeableConcept(t, "ClinicalUseIssueIndicationComponent", "diseaseSymptomProcedure", element.getDiseaseSymptomProcedure(), -1); + composeCodeableReference(t, "ClinicalUseIssueIndicationComponent", "diseaseSymptomProcedure", element.getDiseaseSymptomProcedure(), -1); } if (element.hasDiseaseStatus()) { - composeCodeableConcept(t, "ClinicalUseIssueIndicationComponent", "diseaseStatus", element.getDiseaseStatus(), -1); + composeCodeableReference(t, "ClinicalUseIssueIndicationComponent", "diseaseStatus", element.getDiseaseStatus(), -1); } for (int i = 0; i < element.getComorbidity().size(); i++) { - composeCodeableConcept(t, "ClinicalUseIssueIndicationComponent", "comorbidity", element.getComorbidity().get(i), i); + composeCodeableReference(t, "ClinicalUseIssueIndicationComponent", "comorbidity", element.getComorbidity().get(i), i); } if (element.hasIntendedEffect()) { - composeCodeableConcept(t, "ClinicalUseIssueIndicationComponent", "intendedEffect", element.getIntendedEffect(), -1); + composeCodeableReference(t, "ClinicalUseIssueIndicationComponent", "intendedEffect", element.getIntendedEffect(), -1); } if (element.hasDuration()) { composeQuantity(t, "ClinicalUseIssueIndicationComponent", "duration", element.getDuration(), -1); @@ -6487,7 +6519,7 @@ public class RdfParser extends RdfParserBase { composeCodeableConcept(t, "ClinicalUseIssueInteractionComponent", "type", element.getType(), -1); } if (element.hasEffect()) { - composeCodeableConcept(t, "ClinicalUseIssueInteractionComponent", "effect", element.getEffect(), -1); + composeCodeableReference(t, "ClinicalUseIssueInteractionComponent", "effect", element.getEffect(), -1); } if (element.hasIncidence()) { composeCodeableConcept(t, "ClinicalUseIssueInteractionComponent", "incidence", element.getIncidence(), -1); @@ -6523,7 +6555,7 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "undesirableEffect", name, element, index); if (element.hasSymptomConditionEffect()) { - composeCodeableConcept(t, "ClinicalUseIssueUndesirableEffectComponent", "symptomConditionEffect", element.getSymptomConditionEffect(), -1); + composeCodeableReference(t, "ClinicalUseIssueUndesirableEffectComponent", "symptomConditionEffect", element.getSymptomConditionEffect(), -1); } if (element.hasClassification()) { composeCodeableConcept(t, "ClinicalUseIssueUndesirableEffectComponent", "classification", element.getClassification(), -1); @@ -6861,6 +6893,9 @@ public class RdfParser extends RdfParserBase { if (element.hasStatusReason()) { composeCodeableConcept(t, "CommunicationRequest", "statusReason", element.getStatusReason(), -1); } + if (element.hasIntentElement()) { + composeEnum(t, "CommunicationRequest", "intent", element.getIntentElement(), -1); + } for (int i = 0; i < element.getCategory().size(); i++) { composeCodeableConcept(t, "CommunicationRequest", "category", element.getCategory().get(i), i); } @@ -7170,8 +7205,8 @@ public class RdfParser extends RdfParserBase { if (element.hasUrlElement()) { composeUri(t, "ConceptMap", "url", element.getUrlElement(), -1); } - if (element.hasIdentifier()) { - composeIdentifier(t, "ConceptMap", "identifier", element.getIdentifierFirstRep(), -1); + for (int i = 0; i < element.getIdentifier().size(); i++) { + composeIdentifier(t, "ConceptMap", "identifier", element.getIdentifier().get(i), i); } if (element.hasVersionElement()) { composeString(t, "ConceptMap", "version", element.getVersionElement(), -1); @@ -7234,16 +7269,10 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "group", name, element, index); if (element.hasSourceElement()) { - composeUri(t, "ConceptMapGroupComponent", "source", element.getSourceElement(), -1); - } - if (element.hasSourceVersionElement()) { - composeString(t, "ConceptMapGroupComponent", "sourceVersion", element.getSourceVersionElement(), -1); + composeCanonical(t, "ConceptMapGroupComponent", "source", element.getSourceElement(), -1); } if (element.hasTargetElement()) { - composeUri(t, "ConceptMapGroupComponent", "target", element.getTargetElement(), -1); - } - if (element.hasTargetVersionElement()) { - composeString(t, "ConceptMapGroupComponent", "targetVersion", element.getTargetVersionElement(), -1); + composeCanonical(t, "ConceptMapGroupComponent", "target", element.getTargetElement(), -1); } for (int i = 0; i < element.getElement().size(); i++) { composeConceptMapSourceElementComponent(t, "ConceptMapGroupComponent", "element", element.getElement().get(i), i); @@ -9135,11 +9164,8 @@ public class RdfParser extends RdfParserBase { if (element.hasType()) { composeCodeableConcept(t, "DevicePropertyComponent", "type", element.getType(), -1); } - for (int i = 0; i < element.getValueQuantity().size(); i++) { - composeQuantity(t, "DevicePropertyComponent", "valueQuantity", element.getValueQuantity().get(i), i); - } - for (int i = 0; i < element.getValueCode().size(); i++) { - composeCodeableConcept(t, "DevicePropertyComponent", "valueCode", element.getValueCode().get(i), i); + if (element.hasValue()) { + composeType(t, "DevicePropertyComponent", "value", element.getValue(), -1); } } @@ -9204,14 +9230,20 @@ public class RdfParser extends RdfParserBase { if (element.hasModelNumberElement()) { composeString(t, "DeviceDefinition", "modelNumber", element.getModelNumberElement(), -1); } - if (element.hasType()) { - composeCodeableConcept(t, "DeviceDefinition", "type", element.getType(), -1); + for (int i = 0; i < element.getType().size(); i++) { + composeCodeableConcept(t, "DeviceDefinition", "type", element.getType().get(i), i); } for (int i = 0; i < element.getSpecialization().size(); i++) { composeDeviceDefinitionSpecializationComponent(t, "DeviceDefinition", "specialization", element.getSpecialization().get(i), i); } + for (int i = 0; i < element.getHasPart().size(); i++) { + composeDeviceDefinitionHasPartComponent(t, "DeviceDefinition", "hasPart", element.getHasPart().get(i), i); + } + for (int i = 0; i < element.getPackaging().size(); i++) { + composeDeviceDefinitionPackagingComponent(t, "DeviceDefinition", "packaging", element.getPackaging().get(i), i); + } for (int i = 0; i < element.getVersion().size(); i++) { - composeString(t, "DeviceDefinition", "version", element.getVersion().get(i), i); + composeDeviceDefinitionVersionComponent(t, "DeviceDefinition", "version", element.getVersion().get(i), i); } for (int i = 0; i < element.getSafety().size(); i++) { composeCodeableConcept(t, "DeviceDefinition", "safety", element.getSafety().get(i), i); @@ -9243,9 +9275,6 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getNote().size(); i++) { composeAnnotation(t, "DeviceDefinition", "note", element.getNote().get(i), i); } - if (element.hasQuantity()) { - composeQuantity(t, "DeviceDefinition", "quantity", element.getQuantity(), -1); - } if (element.hasParentDevice()) { composeReference(t, "DeviceDefinition", "parentDevice", element.getParentDevice(), -1); } @@ -9311,6 +9340,114 @@ public class RdfParser extends RdfParserBase { } } + protected void composeDeviceDefinitionHasPartComponent(Complex parent, String parentType, String name, DeviceDefinition.DeviceDefinitionHasPartComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "hasPart", name, element, index); + if (element.hasReference()) { + composeReference(t, "DeviceDefinitionHasPartComponent", "reference", element.getReference(), -1); + } + if (element.hasCountElement()) { + composeInteger(t, "DeviceDefinitionHasPartComponent", "count", element.getCountElement(), -1); + } + } + + protected void composeDeviceDefinitionPackagingComponent(Complex parent, String parentType, String name, DeviceDefinition.DeviceDefinitionPackagingComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "packaging", name, element, index); + if (element.hasIdentifier()) { + composeIdentifier(t, "DeviceDefinitionPackagingComponent", "identifier", element.getIdentifier(), -1); + } + if (element.hasType()) { + composeCodeableConcept(t, "DeviceDefinitionPackagingComponent", "type", element.getType(), -1); + } + if (element.hasCountElement()) { + composeInteger(t, "DeviceDefinitionPackagingComponent", "count", element.getCountElement(), -1); + } + for (int i = 0; i < element.getDistributor().size(); i++) { + composeDeviceDefinitionPackagingDistributorComponent(t, "DeviceDefinitionPackagingComponent", "distributor", element.getDistributor().get(i), i); + } + for (int i = 0; i < element.getUdiDeviceIdentifier().size(); i++) { + composeDeviceDefinitionPackagingUdiDeviceIdentifierComponent(t, "DeviceDefinitionPackagingComponent", "udiDeviceIdentifier", element.getUdiDeviceIdentifier().get(i), i); + } + for (int i = 0; i < element.getPackaging().size(); i++) { + composeDeviceDefinitionPackagingComponent(t, "DeviceDefinitionPackagingComponent", "packaging", element.getPackaging().get(i), i); + } + } + + protected void composeDeviceDefinitionPackagingDistributorComponent(Complex parent, String parentType, String name, DeviceDefinition.DeviceDefinitionPackagingDistributorComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "distributor", name, element, index); + if (element.hasNameElement()) { + composeString(t, "DeviceDefinitionPackagingDistributorComponent", "name", element.getNameElement(), -1); + } + for (int i = 0; i < element.getOrganizationReference().size(); i++) { + composeReference(t, "DeviceDefinitionPackagingDistributorComponent", "organizationReference", element.getOrganizationReference().get(i), i); + } + } + + protected void composeDeviceDefinitionPackagingUdiDeviceIdentifierComponent(Complex parent, String parentType, String name, DeviceDefinition.DeviceDefinitionPackagingUdiDeviceIdentifierComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "udiDeviceIdentifier", name, element, index); + if (element.hasDeviceIdentifierElement()) { + composeString(t, "DeviceDefinitionPackagingUdiDeviceIdentifierComponent", "deviceIdentifier", element.getDeviceIdentifierElement(), -1); + } + if (element.hasIssuerElement()) { + composeUri(t, "DeviceDefinitionPackagingUdiDeviceIdentifierComponent", "issuer", element.getIssuerElement(), -1); + } + if (element.hasJurisdictionElement()) { + composeUri(t, "DeviceDefinitionPackagingUdiDeviceIdentifierComponent", "jurisdiction", element.getJurisdictionElement(), -1); + } + } + + protected void composeDeviceDefinitionVersionComponent(Complex parent, String parentType, String name, DeviceDefinition.DeviceDefinitionVersionComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "version", name, element, index); + if (element.hasType()) { + composeCodeableConcept(t, "DeviceDefinitionVersionComponent", "type", element.getType(), -1); + } + if (element.hasComponent()) { + composeIdentifier(t, "DeviceDefinitionVersionComponent", "component", element.getComponent(), -1); + } + if (element.hasValueElement()) { + composeString(t, "DeviceDefinitionVersionComponent", "value", element.getValueElement(), -1); + } + } + protected void composeDeviceDefinitionCapabilityComponent(Complex parent, String parentType, String name, DeviceDefinition.DeviceDefinitionCapabilityComponent element, int index) { if (element == null) return; @@ -9471,9 +9608,15 @@ public class RdfParser extends RdfParserBase { if (element.hasPriorityElement()) { composeEnum(t, "DeviceRequest", "priority", element.getPriorityElement(), -1); } + if (element.hasDoNotPerformElement()) { + composeBoolean(t, "DeviceRequest", "doNotPerform", element.getDoNotPerformElement(), -1); + } if (element.hasCode()) { composeCodeableReference(t, "DeviceRequest", "code", element.getCode(), -1); } + if (element.hasQuantityElement()) { + composeInteger(t, "DeviceRequest", "quantity", element.getQuantityElement(), -1); + } for (int i = 0; i < element.getParameter().size(); i++) { composeDeviceRequestParameterComponent(t, "DeviceRequest", "parameter", element.getParameter().get(i), i); } @@ -9533,7 +9676,7 @@ public class RdfParser extends RdfParserBase { } } - protected void composeDeviceUseStatement(Complex parent, String parentType, String name, DeviceUseStatement element, int index) { + protected void composeDeviceUsage(Complex parent, String parentType, String name, DeviceUsage element, int index) { if (element == null) return; Complex t; @@ -9542,54 +9685,54 @@ public class RdfParser extends RdfParserBase { else { t = parent.predicate("fhir:"+parentType+'.'+name); } - composeDomainResource(t, "DeviceUseStatement", name, element, index); + composeDomainResource(t, "DeviceUsage", name, element, index); for (int i = 0; i < element.getIdentifier().size(); i++) { - composeIdentifier(t, "DeviceUseStatement", "identifier", element.getIdentifier().get(i), i); + composeIdentifier(t, "DeviceUsage", "identifier", element.getIdentifier().get(i), i); } for (int i = 0; i < element.getBasedOn().size(); i++) { - composeReference(t, "DeviceUseStatement", "basedOn", element.getBasedOn().get(i), i); + composeReference(t, "DeviceUsage", "basedOn", element.getBasedOn().get(i), i); } if (element.hasStatusElement()) { - composeEnum(t, "DeviceUseStatement", "status", element.getStatusElement(), -1); + composeEnum(t, "DeviceUsage", "status", element.getStatusElement(), -1); } for (int i = 0; i < element.getCategory().size(); i++) { - composeCodeableConcept(t, "DeviceUseStatement", "category", element.getCategory().get(i), i); + composeCodeableConcept(t, "DeviceUsage", "category", element.getCategory().get(i), i); } if (element.hasSubject()) { - composeReference(t, "DeviceUseStatement", "subject", element.getSubject(), -1); + composeReference(t, "DeviceUsage", "subject", element.getSubject(), -1); } for (int i = 0; i < element.getDerivedFrom().size(); i++) { - composeReference(t, "DeviceUseStatement", "derivedFrom", element.getDerivedFrom().get(i), i); + composeReference(t, "DeviceUsage", "derivedFrom", element.getDerivedFrom().get(i), i); } if (element.hasContext()) { - composeReference(t, "DeviceUseStatement", "context", element.getContext(), -1); + composeReference(t, "DeviceUsage", "context", element.getContext(), -1); } if (element.hasTiming()) { - composeType(t, "DeviceUseStatement", "timing", element.getTiming(), -1); + composeType(t, "DeviceUsage", "timing", element.getTiming(), -1); } if (element.hasDateAssertedElement()) { - composeDateTime(t, "DeviceUseStatement", "dateAsserted", element.getDateAssertedElement(), -1); + composeDateTime(t, "DeviceUsage", "dateAsserted", element.getDateAssertedElement(), -1); } if (element.hasUsageStatus()) { - composeCodeableConcept(t, "DeviceUseStatement", "usageStatus", element.getUsageStatus(), -1); + composeCodeableConcept(t, "DeviceUsage", "usageStatus", element.getUsageStatus(), -1); } for (int i = 0; i < element.getUsageReason().size(); i++) { - composeCodeableConcept(t, "DeviceUseStatement", "usageReason", element.getUsageReason().get(i), i); + composeCodeableConcept(t, "DeviceUsage", "usageReason", element.getUsageReason().get(i), i); } if (element.hasInformationSource()) { - composeReference(t, "DeviceUseStatement", "informationSource", element.getInformationSource(), -1); + composeReference(t, "DeviceUsage", "informationSource", element.getInformationSource(), -1); } if (element.hasDevice()) { - composeCodeableReference(t, "DeviceUseStatement", "device", element.getDevice(), -1); + composeCodeableReference(t, "DeviceUsage", "device", element.getDevice(), -1); } for (int i = 0; i < element.getReason().size(); i++) { - composeCodeableReference(t, "DeviceUseStatement", "reason", element.getReason().get(i), i); + composeCodeableReference(t, "DeviceUsage", "reason", element.getReason().get(i), i); } if (element.hasBodySite()) { - composeCodeableReference(t, "DeviceUseStatement", "bodySite", element.getBodySite(), -1); + composeCodeableReference(t, "DeviceUsage", "bodySite", element.getBodySite(), -1); } for (int i = 0; i < element.getNote().size(); i++) { - composeAnnotation(t, "DeviceUseStatement", "note", element.getNote().get(i), i); + composeAnnotation(t, "DeviceUsage", "note", element.getNote().get(i), i); } } @@ -9648,6 +9791,9 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getMedia().size(); i++) { composeDiagnosticReportMediaComponent(t, "DiagnosticReport", "media", element.getMedia().get(i), i); } + if (element.hasComposition()) { + composeReference(t, "DiagnosticReport", "composition", element.getComposition(), -1); + } if (element.hasConclusionElement()) { composeString(t, "DiagnosticReport", "conclusion", element.getConclusionElement(), -1); } @@ -10422,6 +10568,9 @@ public class RdfParser extends RdfParserBase { if (element.hasTitleElement()) { composeString(t, "Evidence", "title", element.getTitleElement(), -1); } + if (element.hasCiteAs()) { + composeType(t, "Evidence", "citeAs", element.getCiteAs(), -1); + } if (element.hasStatusElement()) { composeEnum(t, "Evidence", "status", element.getStatusElement(), -1); } @@ -10533,35 +10682,17 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getNote().size(); i++) { composeAnnotation(t, "EvidenceCertaintyComponent", "note", element.getNote().get(i), i); } - for (int i = 0; i < element.getRating().size(); i++) { - composeCodeableConcept(t, "EvidenceCertaintyComponent", "rating", element.getRating().get(i), i); + if (element.hasType()) { + composeCodeableConcept(t, "EvidenceCertaintyComponent", "type", element.getType(), -1); } - for (int i = 0; i < element.getCertaintySubcomponent().size(); i++) { - composeEvidenceCertaintyCertaintySubcomponentComponent(t, "EvidenceCertaintyComponent", "certaintySubcomponent", element.getCertaintySubcomponent().get(i), i); + if (element.hasRating()) { + composeCodeableConcept(t, "EvidenceCertaintyComponent", "rating", element.getRating(), -1); } - } - - protected void composeEvidenceCertaintyCertaintySubcomponentComponent(Complex parent, String parentType, String name, Evidence.EvidenceCertaintyCertaintySubcomponentComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); + if (element.hasRaterElement()) { + composeString(t, "EvidenceCertaintyComponent", "rater", element.getRaterElement(), -1); } - composeBackboneElement(t, "certaintySubcomponent", name, element, index); - if (element.hasDescriptionElement()) { - composeString(t, "EvidenceCertaintyCertaintySubcomponentComponent", "description", element.getDescriptionElement(), -1); - } - for (int i = 0; i < element.getNote().size(); i++) { - composeAnnotation(t, "EvidenceCertaintyCertaintySubcomponentComponent", "note", element.getNote().get(i), i); - } - for (int i = 0; i < element.getType().size(); i++) { - composeCodeableConcept(t, "EvidenceCertaintyCertaintySubcomponentComponent", "type", element.getType().get(i), i); - } - for (int i = 0; i < element.getRating().size(); i++) { - composeCodeableConcept(t, "EvidenceCertaintyCertaintySubcomponentComponent", "rating", element.getRating().get(i), i); + for (int i = 0; i < element.getSubcomponent().size(); i++) { + composeEvidenceCertaintyComponent(t, "EvidenceCertaintyComponent", "subcomponent", element.getSubcomponent().get(i), i); } } @@ -10591,7 +10722,7 @@ public class RdfParser extends RdfParserBase { composeIdentifier(t, "EvidenceReport", "relatedIdentifier", element.getRelatedIdentifier().get(i), i); } if (element.hasCiteAs()) { - composeReference(t, "EvidenceReport", "citeAs", element.getCiteAs(), -1); + composeType(t, "EvidenceReport", "citeAs", element.getCiteAs(), -1); } if (element.hasType()) { composeCodeableConcept(t, "EvidenceReport", "type", element.getType(), -1); @@ -10728,6 +10859,9 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getEntryReference().size(); i++) { composeReference(t, "SectionComponent", "entryReference", element.getEntryReference().get(i), i); } + for (int i = 0; i < element.getEntryQuantity().size(); i++) { + composeQuantity(t, "SectionComponent", "entryQuantity", element.getEntryQuantity().get(i), i); + } if (element.hasEmptyReason()) { composeCodeableConcept(t, "SectionComponent", "emptyReason", element.getEmptyReason(), -1); } @@ -12177,8 +12311,8 @@ public class RdfParser extends RdfParserBase { if (element.hasStatusReasonElement()) { composeString(t, "Goal", "statusReason", element.getStatusReasonElement(), -1); } - if (element.hasExpressedBy()) { - composeReference(t, "Goal", "expressedBy", element.getExpressedBy(), -1); + if (element.hasSource()) { + composeReference(t, "Goal", "source", element.getSource(), -1); } for (int i = 0; i < element.getAddresses().size(); i++) { composeReference(t, "Goal", "addresses", element.getAddresses().get(i), i); @@ -13488,6 +13622,9 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getFunction().size(); i++) { composeCodeableConcept(t, "Ingredient", "function", element.getFunction().get(i), i); } + if (element.hasGroup()) { + composeCodeableConcept(t, "Ingredient", "group", element.getGroup(), -1); + } if (element.hasDescriptionElement()) { composeMarkdown(t, "Ingredient", "description", element.getDescriptionElement(), -1); } @@ -13516,7 +13653,7 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "substance", name, element, index); if (element.hasCode()) { - composeType(t, "IngredientSubstanceComponent", "code", element.getCode(), -1); + composeCodeableReference(t, "IngredientSubstanceComponent", "code", element.getCode(), -1); } for (int i = 0; i < element.getStrength().size(); i++) { composeIngredientSubstanceStrengthComponent(t, "IngredientSubstanceComponent", "strength", element.getStrength().get(i), i); @@ -13534,23 +13671,26 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "strength", name, element, index); if (element.hasPresentation()) { - composeRatio(t, "IngredientSubstanceStrengthComponent", "presentation", element.getPresentation(), -1); + composeType(t, "IngredientSubstanceStrengthComponent", "presentation", element.getPresentation(), -1); } if (element.hasPresentationHighLimit()) { - composeRatio(t, "IngredientSubstanceStrengthComponent", "presentationHighLimit", element.getPresentationHighLimit(), -1); + composeType(t, "IngredientSubstanceStrengthComponent", "presentationHighLimit", element.getPresentationHighLimit(), -1); } if (element.hasPresentationTextElement()) { composeString(t, "IngredientSubstanceStrengthComponent", "presentationText", element.getPresentationTextElement(), -1); } if (element.hasConcentration()) { - composeRatio(t, "IngredientSubstanceStrengthComponent", "concentration", element.getConcentration(), -1); + composeType(t, "IngredientSubstanceStrengthComponent", "concentration", element.getConcentration(), -1); } if (element.hasConcentrationHighLimit()) { - composeRatio(t, "IngredientSubstanceStrengthComponent", "concentrationHighLimit", element.getConcentrationHighLimit(), -1); + composeType(t, "IngredientSubstanceStrengthComponent", "concentrationHighLimit", element.getConcentrationHighLimit(), -1); } if (element.hasConcentrationTextElement()) { composeString(t, "IngredientSubstanceStrengthComponent", "concentrationText", element.getConcentrationTextElement(), -1); } + if (element.hasBasis()) { + composeCodeableConcept(t, "IngredientSubstanceStrengthComponent", "basis", element.getBasis(), -1); + } if (element.hasMeasurementPointElement()) { composeString(t, "IngredientSubstanceStrengthComponent", "measurementPoint", element.getMeasurementPointElement(), -1); } @@ -13573,13 +13713,13 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "referenceStrength", name, element, index); if (element.hasSubstance()) { - composeType(t, "IngredientSubstanceStrengthReferenceStrengthComponent", "substance", element.getSubstance(), -1); + composeCodeableReference(t, "IngredientSubstanceStrengthReferenceStrengthComponent", "substance", element.getSubstance(), -1); } if (element.hasStrength()) { - composeRatio(t, "IngredientSubstanceStrengthReferenceStrengthComponent", "strength", element.getStrength(), -1); + composeType(t, "IngredientSubstanceStrengthReferenceStrengthComponent", "strength", element.getStrength(), -1); } if (element.hasStrengthHighLimit()) { - composeRatio(t, "IngredientSubstanceStrengthReferenceStrengthComponent", "strengthHighLimit", element.getStrengthHighLimit(), -1); + composeType(t, "IngredientSubstanceStrengthReferenceStrengthComponent", "strengthHighLimit", element.getStrengthHighLimit(), -1); } if (element.hasMeasurementPointElement()) { composeString(t, "IngredientSubstanceStrengthReferenceStrengthComponent", "measurementPoint", element.getMeasurementPointElement(), -1); @@ -13600,7 +13740,7 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "specifiedSubstance", name, element, index); if (element.hasCode()) { - composeType(t, "IngredientSpecifiedSubstanceComponent", "code", element.getCode(), -1); + composeCodeableReference(t, "IngredientSpecifiedSubstanceComponent", "code", element.getCode(), -1); } if (element.hasGroup()) { composeCodeableConcept(t, "IngredientSpecifiedSubstanceComponent", "group", element.getGroup(), -1); @@ -13865,6 +14005,105 @@ public class RdfParser extends RdfParserBase { } } + protected void composeInventoryReport(Complex parent, String parentType, String name, InventoryReport element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeDomainResource(t, "InventoryReport", name, element, index); + for (int i = 0; i < element.getIdentifier().size(); i++) { + composeIdentifier(t, "InventoryReport", "identifier", element.getIdentifier().get(i), i); + } + if (element.hasStatusElement()) { + composeEnum(t, "InventoryReport", "status", element.getStatusElement(), -1); + } + if (element.hasCountTypeElement()) { + composeEnum(t, "InventoryReport", "countType", element.getCountTypeElement(), -1); + } + if (element.hasOperationType()) { + composeCodeableConcept(t, "InventoryReport", "operationType", element.getOperationType(), -1); + } + if (element.hasOperationTypeReason()) { + composeCodeableConcept(t, "InventoryReport", "operationTypeReason", element.getOperationTypeReason(), -1); + } + if (element.hasReportedDateTimeElement()) { + composeDateTime(t, "InventoryReport", "reportedDateTime", element.getReportedDateTimeElement(), -1); + } + if (element.hasReporter()) { + composeReference(t, "InventoryReport", "reporter", element.getReporter(), -1); + } + if (element.hasReportingPeriod()) { + composePeriod(t, "InventoryReport", "reportingPeriod", element.getReportingPeriod(), -1); + } + for (int i = 0; i < element.getInventoryListing().size(); i++) { + composeInventoryReportInventoryListingComponent(t, "InventoryReport", "inventoryListing", element.getInventoryListing().get(i), i); + } + if (element.hasNote()) { + composeAnnotation(t, "InventoryReport", "note", element.getNote(), -1); + } + } + + protected void composeInventoryReportInventoryListingComponent(Complex parent, String parentType, String name, InventoryReport.InventoryReportInventoryListingComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "inventoryListing", name, element, index); + if (element.hasLocation()) { + composeReference(t, "InventoryReportInventoryListingComponent", "location", element.getLocation(), -1); + } + if (element.hasItemStatus()) { + composeCodeableConcept(t, "InventoryReportInventoryListingComponent", "itemStatus", element.getItemStatus(), -1); + } + if (element.hasCountingDateTimeElement()) { + composeDateTime(t, "InventoryReportInventoryListingComponent", "countingDateTime", element.getCountingDateTimeElement(), -1); + } + for (int i = 0; i < element.getItems().size(); i++) { + composeInventoryReportInventoryListingItemsComponent(t, "InventoryReportInventoryListingComponent", "items", element.getItems().get(i), i); + } + } + + protected void composeInventoryReportInventoryListingItemsComponent(Complex parent, String parentType, String name, InventoryReport.InventoryReportInventoryListingItemsComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "items", name, element, index); + if (element.hasCategory()) { + composeCodeableConcept(t, "InventoryReportInventoryListingItemsComponent", "category", element.getCategory(), -1); + } + if (element.hasQuantity()) { + composeQuantity(t, "InventoryReportInventoryListingItemsComponent", "quantity", element.getQuantity(), -1); + } + if (element.hasItem()) { + composeCodeableReference(t, "InventoryReportInventoryListingItemsComponent", "item", element.getItem(), -1); + } + if (element.hasLotElement()) { + composeString(t, "InventoryReportInventoryListingItemsComponent", "lot", element.getLotElement(), -1); + } + if (element.hasSerialElement()) { + composeString(t, "InventoryReportInventoryListingItemsComponent", "serial", element.getSerialElement(), -1); + } + if (element.hasExpiryElement()) { + composeDateTime(t, "InventoryReportInventoryListingItemsComponent", "expiry", element.getExpiryElement(), -1); + } + if (element.hasManufacturingDateElement()) { + composeDateTime(t, "InventoryReportInventoryListingItemsComponent", "manufacturingDate", element.getManufacturingDateElement(), -1); + } + } + protected void composeInvoice(Complex parent, String parentType, String name, Invoice element, int index) { if (element == null) return; @@ -14338,7 +14577,7 @@ public class RdfParser extends RdfParserBase { composeReference(t, "ManufacturedItemDefinition", "manufacturer", element.getManufacturer().get(i), i); } for (int i = 0; i < element.getIngredient().size(); i++) { - composeReference(t, "ManufacturedItemDefinition", "ingredient", element.getIngredient().get(i), i); + composeCodeableReference(t, "ManufacturedItemDefinition", "ingredient", element.getIngredient().get(i), i); } for (int i = 0; i < element.getProperty().size(); i++) { composeManufacturedItemDefinitionPropertyComponent(t, "ManufacturedItemDefinition", "property", element.getProperty().get(i), i); @@ -14400,6 +14639,9 @@ public class RdfParser extends RdfParserBase { if (element.hasSubject()) { composeType(t, "Measure", "subject", element.getSubject(), -1); } + if (element.hasBasisElement()) { + composeEnum(t, "Measure", "basis", element.getBasisElement(), -1); + } if (element.hasDateElement()) { composeDateTime(t, "Measure", "date", element.getDateElement(), -1); } @@ -14463,6 +14705,9 @@ public class RdfParser extends RdfParserBase { if (element.hasScoring()) { composeCodeableConcept(t, "Measure", "scoring", element.getScoring(), -1); } + if (element.hasScoringUnit()) { + composeCodeableConcept(t, "Measure", "scoringUnit", element.getScoringUnit(), -1); + } if (element.hasCompositeScoring()) { composeCodeableConcept(t, "Measure", "compositeScoring", element.getCompositeScoring(), -1); } @@ -14514,6 +14759,21 @@ public class RdfParser extends RdfParserBase { if (element.hasDescriptionElement()) { composeString(t, "MeasureGroupComponent", "description", element.getDescriptionElement(), -1); } + for (int i = 0; i < element.getType().size(); i++) { + composeCodeableConcept(t, "MeasureGroupComponent", "type", element.getType().get(i), i); + } + if (element.hasBasisElement()) { + composeEnum(t, "MeasureGroupComponent", "basis", element.getBasisElement(), -1); + } + if (element.hasScoring()) { + composeCodeableConcept(t, "MeasureGroupComponent", "scoring", element.getScoring(), -1); + } + if (element.hasScoringUnit()) { + composeCodeableConcept(t, "MeasureGroupComponent", "scoringUnit", element.getScoringUnit(), -1); + } + if (element.hasImprovementNotation()) { + composeCodeableConcept(t, "MeasureGroupComponent", "improvementNotation", element.getImprovementNotation(), -1); + } for (int i = 0; i < element.getPopulation().size(); i++) { composeMeasureGroupPopulationComponent(t, "MeasureGroupComponent", "population", element.getPopulation().get(i), i); } @@ -14541,6 +14801,12 @@ public class RdfParser extends RdfParserBase { if (element.hasCriteria()) { composeExpression(t, "MeasureGroupPopulationComponent", "criteria", element.getCriteria(), -1); } + if (element.hasInputPopulationIdElement()) { + composeString(t, "MeasureGroupPopulationComponent", "inputPopulationId", element.getInputPopulationIdElement(), -1); + } + if (element.hasAggregateMethod()) { + composeCodeableConcept(t, "MeasureGroupPopulationComponent", "aggregateMethod", element.getAggregateMethod(), -1); + } } protected void composeMeasureGroupStratifierComponent(Complex parent, String parentType, String name, Measure.MeasureGroupStratifierComponent element, int index) { @@ -14631,6 +14897,9 @@ public class RdfParser extends RdfParserBase { if (element.hasTypeElement()) { composeEnum(t, "MeasureReport", "type", element.getTypeElement(), -1); } + if (element.hasDataUpdateTypeElement()) { + composeEnum(t, "MeasureReport", "dataUpdateType", element.getDataUpdateTypeElement(), -1); + } if (element.hasMeasureElement()) { composeCanonical(t, "MeasureReport", "measure", element.getMeasureElement(), -1); } @@ -14643,9 +14912,15 @@ public class RdfParser extends RdfParserBase { if (element.hasReporter()) { composeReference(t, "MeasureReport", "reporter", element.getReporter(), -1); } + if (element.hasReportingVendor()) { + composeReference(t, "MeasureReport", "reportingVendor", element.getReportingVendor(), -1); + } if (element.hasPeriod()) { composePeriod(t, "MeasureReport", "period", element.getPeriod(), -1); } + if (element.hasScoring()) { + composeCodeableConcept(t, "MeasureReport", "scoring", element.getScoring(), -1); + } if (element.hasImprovementNotation()) { composeCodeableConcept(t, "MeasureReport", "improvementNotation", element.getImprovementNotation(), -1); } @@ -14674,7 +14949,7 @@ public class RdfParser extends RdfParserBase { composeMeasureReportGroupPopulationComponent(t, "MeasureReportGroupComponent", "population", element.getPopulation().get(i), i); } if (element.hasMeasureScore()) { - composeQuantity(t, "MeasureReportGroupComponent", "measureScore", element.getMeasureScore(), -1); + composeType(t, "MeasureReportGroupComponent", "measureScore", element.getMeasureScore(), -1); } for (int i = 0; i < element.getStratifier().size(); i++) { composeMeasureReportGroupStratifierComponent(t, "MeasureReportGroupComponent", "stratifier", element.getStratifier().get(i), i); @@ -14731,7 +15006,7 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "stratum", name, element, index); if (element.hasValue()) { - composeCodeableConcept(t, "StratifierGroupComponent", "value", element.getValue(), -1); + composeType(t, "StratifierGroupComponent", "value", element.getValue(), -1); } for (int i = 0; i < element.getComponent().size(); i++) { composeMeasureReportStratifierGroupComponentComponent(t, "StratifierGroupComponent", "component", element.getComponent().get(i), i); @@ -14740,7 +15015,7 @@ public class RdfParser extends RdfParserBase { composeMeasureReportStratifierGroupPopulationComponent(t, "StratifierGroupComponent", "population", element.getPopulation().get(i), i); } if (element.hasMeasureScore()) { - composeQuantity(t, "StratifierGroupComponent", "measureScore", element.getMeasureScore(), -1); + composeType(t, "StratifierGroupComponent", "measureScore", element.getMeasureScore(), -1); } } @@ -14758,7 +15033,7 @@ public class RdfParser extends RdfParserBase { composeCodeableConcept(t, "StratifierGroupComponentComponent", "code", element.getCode(), -1); } if (element.hasValue()) { - composeCodeableConcept(t, "StratifierGroupComponentComponent", "value", element.getValue(), -1); + composeType(t, "StratifierGroupComponentComponent", "value", element.getValue(), -1); } } @@ -14802,8 +15077,8 @@ public class RdfParser extends RdfParserBase { if (element.hasStatusElement()) { composeEnum(t, "Medication", "status", element.getStatusElement(), -1); } - if (element.hasManufacturer()) { - composeReference(t, "Medication", "manufacturer", element.getManufacturer(), -1); + if (element.hasSponsor()) { + composeReference(t, "Medication", "sponsor", element.getSponsor(), -1); } if (element.hasDoseForm()) { composeCodeableConcept(t, "Medication", "doseForm", element.getDoseForm(), -1); @@ -15135,8 +15410,8 @@ public class RdfParser extends RdfParserBase { if (element.hasAuthor()) { composeReference(t, "MedicationKnowledge", "author", element.getAuthor(), -1); } - if (element.hasManufacturer()) { - composeReference(t, "MedicationKnowledge", "manufacturer", element.getManufacturer(), -1); + if (element.hasSponsor()) { + composeReference(t, "MedicationKnowledge", "sponsor", element.getSponsor(), -1); } if (element.hasDoseForm()) { composeCodeableConcept(t, "MedicationKnowledge", "doseForm", element.getDoseForm(), -1); @@ -15180,8 +15455,8 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getMonitoringProgram().size(); i++) { composeMedicationKnowledgeMonitoringProgramComponent(t, "MedicationKnowledge", "monitoringProgram", element.getMonitoringProgram().get(i), i); } - for (int i = 0; i < element.getAdministrationGuideline().size(); i++) { - composeMedicationKnowledgeAdministrationGuidelineComponent(t, "MedicationKnowledge", "administrationGuideline", element.getAdministrationGuideline().get(i), i); + for (int i = 0; i < element.getIndicationGuideline().size(); i++) { + composeMedicationKnowledgeIndicationGuidelineComponent(t, "MedicationKnowledge", "indicationGuideline", element.getIndicationGuideline().get(i), i); } for (int i = 0; i < element.getMedicineClassification().size(); i++) { composeMedicationKnowledgeMedicineClassificationComponent(t, "MedicationKnowledge", "medicineClassification", element.getMedicineClassification().get(i), i); @@ -15252,8 +15527,8 @@ public class RdfParser extends RdfParserBase { if (element.hasItem()) { composeCodeableReference(t, "MedicationKnowledgeIngredientComponent", "item", element.getItem(), -1); } - if (element.hasIsActiveElement()) { - composeBoolean(t, "MedicationKnowledgeIngredientComponent", "isActive", element.getIsActiveElement(), -1); + if (element.hasIsActive()) { + composeCodeableConcept(t, "MedicationKnowledgeIngredientComponent", "isActive", element.getIsActive(), -1); } if (element.hasStrength()) { composeType(t, "MedicationKnowledgeIngredientComponent", "strength", element.getStrength(), -1); @@ -15302,7 +15577,7 @@ public class RdfParser extends RdfParserBase { } } - protected void composeMedicationKnowledgeAdministrationGuidelineComponent(Complex parent, String parentType, String name, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineComponent element, int index) { + protected void composeMedicationKnowledgeIndicationGuidelineComponent(Complex parent, String parentType, String name, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineComponent element, int index) { if (element == null) return; Complex t; @@ -15311,19 +15586,40 @@ public class RdfParser extends RdfParserBase { else { t = parent.predicate("fhir:"+parentType+'.'+name); } - composeBackboneElement(t, "administrationGuideline", name, element, index); - for (int i = 0; i < element.getDosage().size(); i++) { - composeMedicationKnowledgeAdministrationGuidelineDosageComponent(t, "MedicationKnowledgeAdministrationGuidelineComponent", "dosage", element.getDosage().get(i), i); + composeBackboneElement(t, "indicationGuideline", name, element, index); + for (int i = 0; i < element.getIndication().size(); i++) { + composeCodeableReference(t, "MedicationKnowledgeIndicationGuidelineComponent", "indication", element.getIndication().get(i), i); } - if (element.hasIndication()) { - composeCodeableReference(t, "MedicationKnowledgeAdministrationGuidelineComponent", "indication", element.getIndication(), -1); - } - for (int i = 0; i < element.getPatientCharacteristic().size(); i++) { - composeMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent(t, "MedicationKnowledgeAdministrationGuidelineComponent", "patientCharacteristic", element.getPatientCharacteristic().get(i), i); + for (int i = 0; i < element.getDosingGuideline().size(); i++) { + composeMedicationKnowledgeIndicationGuidelineDosingGuidelineComponent(t, "MedicationKnowledgeIndicationGuidelineComponent", "dosingGuideline", element.getDosingGuideline().get(i), i); } } - protected void composeMedicationKnowledgeAdministrationGuidelineDosageComponent(Complex parent, String parentType, String name, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineDosageComponent element, int index) { + protected void composeMedicationKnowledgeIndicationGuidelineDosingGuidelineComponent(Complex parent, String parentType, String name, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "dosingGuideline", name, element, index); + if (element.hasTreatmentIntent()) { + composeCodeableConcept(t, "MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent", "treatmentIntent", element.getTreatmentIntent(), -1); + } + for (int i = 0; i < element.getDosage().size(); i++) { + composeMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent(t, "MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent", "dosage", element.getDosage().get(i), i); + } + if (element.hasAdministrationTreatment()) { + composeCodeableConcept(t, "MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent", "administrationTreatment", element.getAdministrationTreatment(), -1); + } + for (int i = 0; i < element.getPatientCharacteristic().size(); i++) { + composeMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent(t, "MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent", "patientCharacteristic", element.getPatientCharacteristic().get(i), i); + } + } + + protected void composeMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent(Complex parent, String parentType, String name, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent element, int index) { if (element == null) return; Complex t; @@ -15334,14 +15630,14 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "dosage", name, element, index); if (element.hasType()) { - composeCodeableConcept(t, "MedicationKnowledgeAdministrationGuidelineDosageComponent", "type", element.getType(), -1); + composeCodeableConcept(t, "MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent", "type", element.getType(), -1); } for (int i = 0; i < element.getDosage().size(); i++) { - composeDosage(t, "MedicationKnowledgeAdministrationGuidelineDosageComponent", "dosage", element.getDosage().get(i), i); + composeDosage(t, "MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent", "dosage", element.getDosage().get(i), i); } } - protected void composeMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent(Complex parent, String parentType, String name, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent element, int index) { + protected void composeMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent(Complex parent, String parentType, String name, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent element, int index) { if (element == null) return; Complex t; @@ -15352,10 +15648,10 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "patientCharacteristic", name, element, index); if (element.hasType()) { - composeCodeableConcept(t, "MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent", "type", element.getType(), -1); + composeCodeableConcept(t, "MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent", "type", element.getType(), -1); } if (element.hasValue()) { - composeType(t, "MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent", "value", element.getValue(), -1); + composeType(t, "MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent", "value", element.getValue(), -1); } } @@ -15648,6 +15944,12 @@ public class RdfParser extends RdfParserBase { if (element.hasDispenser()) { composeReference(t, "MedicationRequestDispenseRequestComponent", "dispenser", element.getDispenser(), -1); } + for (int i = 0; i < element.getDispenserInstruction().size(); i++) { + composeAnnotation(t, "MedicationRequestDispenseRequestComponent", "dispenserInstruction", element.getDispenserInstruction().get(i), i); + } + if (element.hasDoseAdministrationAid()) { + composeCodeableConcept(t, "MedicationRequestDispenseRequestComponent", "doseAdministrationAid", element.getDoseAdministrationAid(), -1); + } } protected void composeMedicationRequestDispenseRequestInitialFillComponent(Complex parent, String parentType, String name, MedicationRequest.MedicationRequestDispenseRequestInitialFillComponent element, int index) { @@ -15747,8 +16049,8 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getDosage().size(); i++) { composeDosage(t, "MedicationUsage", "dosage", element.getDosage().get(i), i); } - if (element.hasTakenAsOrderedElement()) { - composeBoolean(t, "MedicationUsage", "takenAsOrdered", element.getTakenAsOrderedElement(), -1); + if (element.hasAdherence()) { + composeCodeableConcept(t, "MedicationUsage", "adherence", element.getAdherence(), -1); } } @@ -15810,14 +16112,8 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getMarketingStatus().size(); i++) { composeMarketingStatus(t, "MedicinalProductDefinition", "marketingStatus", element.getMarketingStatus().get(i), i); } - for (int i = 0; i < element.getPharmaceuticalProduct().size(); i++) { - composeReference(t, "MedicinalProductDefinition", "pharmaceuticalProduct", element.getPharmaceuticalProduct().get(i), i); - } - for (int i = 0; i < element.getPackagedMedicinalProduct().size(); i++) { - composeReference(t, "MedicinalProductDefinition", "packagedMedicinalProduct", element.getPackagedMedicinalProduct().get(i), i); - } for (int i = 0; i < element.getIngredient().size(); i++) { - composeReference(t, "MedicinalProductDefinition", "ingredient", element.getIngredient().get(i), i); + composeCodeableReference(t, "MedicinalProductDefinition", "ingredient", element.getIngredient().get(i), i); } for (int i = 0; i < element.getImpurity().size(); i++) { composeReference(t, "MedicinalProductDefinition", "impurity", element.getImpurity().get(i), i); @@ -15840,8 +16136,14 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getCrossReference().size(); i++) { composeMedicinalProductDefinitionCrossReferenceComponent(t, "MedicinalProductDefinition", "crossReference", element.getCrossReference().get(i), i); } - for (int i = 0; i < element.getManufacturingBusinessOperation().size(); i++) { - composeMedicinalProductDefinitionManufacturingBusinessOperationComponent(t, "MedicinalProductDefinition", "manufacturingBusinessOperation", element.getManufacturingBusinessOperation().get(i), i); + for (int i = 0; i < element.getOperation().size(); i++) { + composeMedicinalProductDefinitionOperationComponent(t, "MedicinalProductDefinition", "operation", element.getOperation().get(i), i); + } + for (int i = 0; i < element.getPackage().size(); i++) { + composeMedicinalProductDefinitionPackageComponent(t, "MedicinalProductDefinition", "package", element.getPackage().get(i), i); + } + for (int i = 0; i < element.getAdministrableProduct().size(); i++) { + composeMedicinalProductDefinitionAdministrableProductComponent(t, "MedicinalProductDefinition", "administrableProduct", element.getAdministrableProduct().get(i), i); } } @@ -15944,7 +16246,7 @@ public class RdfParser extends RdfParserBase { } } - protected void composeMedicinalProductDefinitionManufacturingBusinessOperationComponent(Complex parent, String parentType, String name, MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent element, int index) { + protected void composeMedicinalProductDefinitionOperationComponent(Complex parent, String parentType, String name, MedicinalProductDefinition.MedicinalProductDefinitionOperationComponent element, int index) { if (element == null) return; Complex t; @@ -15953,21 +16255,60 @@ public class RdfParser extends RdfParserBase { else { t = parent.predicate("fhir:"+parentType+'.'+name); } - composeBackboneElement(t, "manufacturingBusinessOperation", name, element, index); + composeBackboneElement(t, "operation", name, element, index); if (element.hasType()) { - composeCodeableReference(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "type", element.getType(), -1); + composeCodeableReference(t, "MedicinalProductDefinitionOperationComponent", "type", element.getType(), -1); } if (element.hasEffectiveDate()) { - composePeriod(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "effectiveDate", element.getEffectiveDate(), -1); + composePeriod(t, "MedicinalProductDefinitionOperationComponent", "effectiveDate", element.getEffectiveDate(), -1); } - for (int i = 0; i < element.getManufacturer().size(); i++) { - composeReference(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "manufacturer", element.getManufacturer().get(i), i); + for (int i = 0; i < element.getOrganization().size(); i++) { + composeReference(t, "MedicinalProductDefinitionOperationComponent", "organization", element.getOrganization().get(i), i); } if (element.hasAuthorization()) { - composeReference(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "authorization", element.getAuthorization(), -1); + composeReference(t, "MedicinalProductDefinitionOperationComponent", "authorization", element.getAuthorization(), -1); } if (element.hasConfidentialityIndicator()) { - composeCodeableConcept(t, "MedicinalProductDefinitionManufacturingBusinessOperationComponent", "confidentialityIndicator", element.getConfidentialityIndicator(), -1); + composeCodeableConcept(t, "MedicinalProductDefinitionOperationComponent", "confidentialityIndicator", element.getConfidentialityIndicator(), -1); + } + } + + protected void composeMedicinalProductDefinitionPackageComponent(Complex parent, String parentType, String name, MedicinalProductDefinition.MedicinalProductDefinitionPackageComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "package", name, element, index); + if (element.hasType()) { + composeCodeableConcept(t, "MedicinalProductDefinitionPackageComponent", "type", element.getType(), -1); + } + if (element.hasSize()) { + composeType(t, "MedicinalProductDefinitionPackageComponent", "size", element.getSize(), -1); + } + if (element.hasPackage()) { + composeReference(t, "MedicinalProductDefinitionPackageComponent", "package", element.getPackage(), -1); + } + } + + protected void composeMedicinalProductDefinitionAdministrableProductComponent(Complex parent, String parentType, String name, MedicinalProductDefinition.MedicinalProductDefinitionAdministrableProductComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "administrableProduct", name, element, index); + for (int i = 0; i < element.getRoute().size(); i++) { + composeCodeableConcept(t, "MedicinalProductDefinitionAdministrableProductComponent", "route", element.getRoute().get(i), i); + } + if (element.hasProduct()) { + composeReference(t, "MedicinalProductDefinitionAdministrableProductComponent", "product", element.getProduct(), -1); } } @@ -16545,6 +16886,9 @@ public class RdfParser extends RdfParserBase { if (element.hasNameElement()) { composeString(t, "NamingSystem", "name", element.getNameElement(), -1); } + if (element.hasTitleElement()) { + composeString(t, "NamingSystem", "title", element.getTitleElement(), -1); + } if (element.hasStatusElement()) { composeEnum(t, "NamingSystem", "status", element.getStatusElement(), -1); } @@ -16608,6 +16952,9 @@ public class RdfParser extends RdfParserBase { if (element.hasPeriod()) { composePeriod(t, "NamingSystemUniqueIdComponent", "period", element.getPeriod(), -1); } + if (element.hasAuthoritativeElement()) { + composeBoolean(t, "NamingSystemUniqueIdComponent", "authoritative", element.getAuthoritativeElement(), -1); + } } protected void composeNutritionIntake(Complex parent, String parentType, String name, NutritionIntake element, int index) { @@ -17103,6 +17450,9 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getIdentifier().size(); i++) { composeIdentifier(t, "Observation", "identifier", element.getIdentifier().get(i), i); } + if (element.hasInstantiates()) { + composeType(t, "Observation", "instantiates", element.getInstantiates(), -1); + } for (int i = 0; i < element.getBasedOn().size(); i++) { composeReference(t, "Observation", "basedOn", element.getBasedOn().get(i), i); } @@ -17250,24 +17600,18 @@ public class RdfParser extends RdfParserBase { if (element.hasVersionElement()) { composeString(t, "ObservationDefinition", "version", element.getVersionElement(), -1); } + if (element.hasNameElement()) { + composeString(t, "ObservationDefinition", "name", element.getNameElement(), -1); + } if (element.hasTitleElement()) { composeString(t, "ObservationDefinition", "title", element.getTitleElement(), -1); } - for (int i = 0; i < element.getDerivedFromCanonical().size(); i++) { - composeCanonical(t, "ObservationDefinition", "derivedFromCanonical", element.getDerivedFromCanonical().get(i), i); - } - for (int i = 0; i < element.getDerivedFromUri().size(); i++) { - composeUri(t, "ObservationDefinition", "derivedFromUri", element.getDerivedFromUri().get(i), i); - } if (element.hasStatusElement()) { composeEnum(t, "ObservationDefinition", "status", element.getStatusElement(), -1); } if (element.hasExperimentalElement()) { composeBoolean(t, "ObservationDefinition", "experimental", element.getExperimentalElement(), -1); } - if (element.hasSubject()) { - composeType(t, "ObservationDefinition", "subject", element.getSubject(), -1); - } if (element.hasDateElement()) { composeDateTime(t, "ObservationDefinition", "date", element.getDateElement(), -1); } @@ -17301,6 +17645,15 @@ public class RdfParser extends RdfParserBase { if (element.hasEffectivePeriod()) { composePeriod(t, "ObservationDefinition", "effectivePeriod", element.getEffectivePeriod(), -1); } + for (int i = 0; i < element.getDerivedFromCanonical().size(); i++) { + composeCanonical(t, "ObservationDefinition", "derivedFromCanonical", element.getDerivedFromCanonical().get(i), i); + } + for (int i = 0; i < element.getDerivedFromUri().size(); i++) { + composeUri(t, "ObservationDefinition", "derivedFromUri", element.getDerivedFromUri().get(i), i); + } + if (element.hasSubject()) { + composeCodeableConcept(t, "ObservationDefinition", "subject", element.getSubject(), -1); + } if (element.hasPerformerType()) { composeCodeableConcept(t, "ObservationDefinition", "performerType", element.getPerformerType(), -1); } @@ -17322,11 +17675,11 @@ public class RdfParser extends RdfParserBase { if (element.hasMethod()) { composeCodeableConcept(t, "ObservationDefinition", "method", element.getMethod(), -1); } - if (element.hasSpecimen()) { - composeReference(t, "ObservationDefinition", "specimen", element.getSpecimen(), -1); + for (int i = 0; i < element.getSpecimen().size(); i++) { + composeReference(t, "ObservationDefinition", "specimen", element.getSpecimen().get(i), i); } - if (element.hasDevice()) { - composeReference(t, "ObservationDefinition", "device", element.getDevice(), -1); + for (int i = 0; i < element.getDevice().size(); i++) { + composeReference(t, "ObservationDefinition", "device", element.getDevice().get(i), i); } if (element.hasPreferredReportNameElement()) { composeString(t, "ObservationDefinition", "preferredReportName", element.getPreferredReportNameElement(), -1); @@ -17334,20 +17687,8 @@ public class RdfParser extends RdfParserBase { if (element.hasQuantitativeDetails()) { composeObservationDefinitionQuantitativeDetailsComponent(t, "ObservationDefinition", "quantitativeDetails", element.getQuantitativeDetails(), -1); } - for (int i = 0; i < element.getQualifiedInterval().size(); i++) { - composeObservationDefinitionQualifiedIntervalComponent(t, "ObservationDefinition", "qualifiedInterval", element.getQualifiedInterval().get(i), i); - } - if (element.hasValidCodedValueSet()) { - composeReference(t, "ObservationDefinition", "validCodedValueSet", element.getValidCodedValueSet(), -1); - } - if (element.hasNormalCodedValueSet()) { - composeReference(t, "ObservationDefinition", "normalCodedValueSet", element.getNormalCodedValueSet(), -1); - } - if (element.hasAbnormalCodedValueSet()) { - composeReference(t, "ObservationDefinition", "abnormalCodedValueSet", element.getAbnormalCodedValueSet(), -1); - } - if (element.hasCriticalCodedValueSet()) { - composeReference(t, "ObservationDefinition", "criticalCodedValueSet", element.getCriticalCodedValueSet(), -1); + for (int i = 0; i < element.getQualifiedValue().size(); i++) { + composeObservationDefinitionQualifiedValueComponent(t, "ObservationDefinition", "qualifiedValue", element.getQualifiedValue().get(i), i); } for (int i = 0; i < element.getHasMember().size(); i++) { composeReference(t, "ObservationDefinition", "hasMember", element.getHasMember().get(i), i); @@ -17367,12 +17708,12 @@ public class RdfParser extends RdfParserBase { t = parent.predicate("fhir:"+parentType+'.'+name); } composeBackboneElement(t, "quantitativeDetails", name, element, index); - if (element.hasCustomaryUnit()) { - composeCodeableConcept(t, "ObservationDefinitionQuantitativeDetailsComponent", "customaryUnit", element.getCustomaryUnit(), -1); - } if (element.hasUnit()) { composeCodeableConcept(t, "ObservationDefinitionQuantitativeDetailsComponent", "unit", element.getUnit(), -1); } + if (element.hasCustomaryUnit()) { + composeCodeableConcept(t, "ObservationDefinitionQuantitativeDetailsComponent", "customaryUnit", element.getCustomaryUnit(), -1); + } if (element.hasConversionFactorElement()) { composeDecimal(t, "ObservationDefinitionQuantitativeDetailsComponent", "conversionFactor", element.getConversionFactorElement(), -1); } @@ -17381,7 +17722,7 @@ public class RdfParser extends RdfParserBase { } } - protected void composeObservationDefinitionQualifiedIntervalComponent(Complex parent, String parentType, String name, ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent element, int index) { + protected void composeObservationDefinitionQualifiedValueComponent(Complex parent, String parentType, String name, ObservationDefinition.ObservationDefinitionQualifiedValueComponent element, int index) { if (element == null) return; Complex t; @@ -17390,30 +17731,42 @@ public class RdfParser extends RdfParserBase { else { t = parent.predicate("fhir:"+parentType+'.'+name); } - composeBackboneElement(t, "qualifiedInterval", name, element, index); - if (element.hasCategoryElement()) { - composeEnum(t, "ObservationDefinitionQualifiedIntervalComponent", "category", element.getCategoryElement(), -1); - } - if (element.hasRange()) { - composeRange(t, "ObservationDefinitionQualifiedIntervalComponent", "range", element.getRange(), -1); - } + composeBackboneElement(t, "qualifiedValue", name, element, index); if (element.hasContext()) { - composeCodeableConcept(t, "ObservationDefinitionQualifiedIntervalComponent", "context", element.getContext(), -1); + composeCodeableConcept(t, "ObservationDefinitionQualifiedValueComponent", "context", element.getContext(), -1); } for (int i = 0; i < element.getAppliesTo().size(); i++) { - composeCodeableConcept(t, "ObservationDefinitionQualifiedIntervalComponent", "appliesTo", element.getAppliesTo().get(i), i); + composeCodeableConcept(t, "ObservationDefinitionQualifiedValueComponent", "appliesTo", element.getAppliesTo().get(i), i); } if (element.hasGenderElement()) { - composeEnum(t, "ObservationDefinitionQualifiedIntervalComponent", "gender", element.getGenderElement(), -1); + composeEnum(t, "ObservationDefinitionQualifiedValueComponent", "gender", element.getGenderElement(), -1); } if (element.hasAge()) { - composeRange(t, "ObservationDefinitionQualifiedIntervalComponent", "age", element.getAge(), -1); + composeRange(t, "ObservationDefinitionQualifiedValueComponent", "age", element.getAge(), -1); } if (element.hasGestationalAge()) { - composeRange(t, "ObservationDefinitionQualifiedIntervalComponent", "gestationalAge", element.getGestationalAge(), -1); + composeRange(t, "ObservationDefinitionQualifiedValueComponent", "gestationalAge", element.getGestationalAge(), -1); } if (element.hasConditionElement()) { - composeString(t, "ObservationDefinitionQualifiedIntervalComponent", "condition", element.getConditionElement(), -1); + composeString(t, "ObservationDefinitionQualifiedValueComponent", "condition", element.getConditionElement(), -1); + } + if (element.hasRangeCategoryElement()) { + composeEnum(t, "ObservationDefinitionQualifiedValueComponent", "rangeCategory", element.getRangeCategoryElement(), -1); + } + if (element.hasRange()) { + composeRange(t, "ObservationDefinitionQualifiedValueComponent", "range", element.getRange(), -1); + } + if (element.hasValidCodedValueSetElement()) { + composeCanonical(t, "ObservationDefinitionQualifiedValueComponent", "validCodedValueSet", element.getValidCodedValueSetElement(), -1); + } + if (element.hasNormalCodedValueSetElement()) { + composeCanonical(t, "ObservationDefinitionQualifiedValueComponent", "normalCodedValueSet", element.getNormalCodedValueSetElement(), -1); + } + if (element.hasAbnormalCodedValueSetElement()) { + composeCanonical(t, "ObservationDefinitionQualifiedValueComponent", "abnormalCodedValueSet", element.getAbnormalCodedValueSetElement(), -1); + } + if (element.hasCriticalCodedValueSetElement()) { + composeCanonical(t, "ObservationDefinitionQualifiedValueComponent", "criticalCodedValueSet", element.getCriticalCodedValueSetElement(), -1); } } @@ -17436,8 +17789,8 @@ public class RdfParser extends RdfParserBase { if (element.hasQuantitativeDetails()) { composeObservationDefinitionQuantitativeDetailsComponent(t, "ObservationDefinitionComponentComponent", "quantitativeDetails", element.getQuantitativeDetails(), -1); } - for (int i = 0; i < element.getQualifiedInterval().size(); i++) { - composeObservationDefinitionQualifiedIntervalComponent(t, "ObservationDefinitionComponentComponent", "qualifiedInterval", element.getQualifiedInterval().get(i), i); + for (int i = 0; i < element.getQualifiedValue().size(); i++) { + composeObservationDefinitionQualifiedValueComponent(t, "ObservationDefinitionComponentComponent", "qualifiedValue", element.getQualifiedValue().get(i), i); } } @@ -17817,6 +18170,9 @@ public class RdfParser extends RdfParserBase { if (element.hasStatusDateElement()) { composeDateTime(t, "PackagedProductDefinition", "statusDate", element.getStatusDateElement(), -1); } + for (int i = 0; i < element.getContainedItemQuantity().size(); i++) { + composeQuantity(t, "PackagedProductDefinition", "containedItemQuantity", element.getContainedItemQuantity().get(i), i); + } if (element.hasDescriptionElement()) { composeMarkdown(t, "PackagedProductDefinition", "description", element.getDescriptionElement(), -1); } @@ -17838,29 +18194,11 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getManufacturer().size(); i++) { composeReference(t, "PackagedProductDefinition", "manufacturer", element.getManufacturer().get(i), i); } - for (int i = 0; i < element.getBatchIdentifier().size(); i++) { - composePackagedProductDefinitionBatchIdentifierComponent(t, "PackagedProductDefinition", "batchIdentifier", element.getBatchIdentifier().get(i), i); + for (int i = 0; i < element.getAttachedDocument().size(); i++) { + composeReference(t, "PackagedProductDefinition", "attachedDocument", element.getAttachedDocument().get(i), i); } - for (int i = 0; i < element.getPackage().size(); i++) { - composePackagedProductDefinitionPackageComponent(t, "PackagedProductDefinition", "package", element.getPackage().get(i), i); - } - } - - protected void composePackagedProductDefinitionBatchIdentifierComponent(Complex parent, String parentType, String name, PackagedProductDefinition.PackagedProductDefinitionBatchIdentifierComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "batchIdentifier", name, element, index); - if (element.hasOuterPackaging()) { - composeIdentifier(t, "PackagedProductDefinitionBatchIdentifierComponent", "outerPackaging", element.getOuterPackaging(), -1); - } - if (element.hasImmediatePackaging()) { - composeIdentifier(t, "PackagedProductDefinitionBatchIdentifierComponent", "immediatePackaging", element.getImmediatePackaging(), -1); + if (element.hasPackage()) { + composePackagedProductDefinitionPackageComponent(t, "PackagedProductDefinition", "package", element.getPackage(), -1); } } @@ -17935,7 +18273,7 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "containedItem", name, element, index); for (int i = 0; i < element.getItem().size(); i++) { - composeReference(t, "PackagedProductDefinitionPackageContainedItemComponent", "item", element.getItem().get(i), i); + composeCodeableReference(t, "PackagedProductDefinitionPackageContainedItemComponent", "item", element.getItem().get(i), i); } if (element.hasAmount()) { composeType(t, "PackagedProductDefinitionPackageContainedItemComponent", "amount", element.getAmount(), -1); @@ -18516,6 +18854,9 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getGoal().size(); i++) { composePlanDefinitionGoalComponent(t, "PlanDefinition", "goal", element.getGoal().get(i), i); } + for (int i = 0; i < element.getActor().size(); i++) { + composePlanDefinitionActorComponent(t, "PlanDefinition", "actor", element.getActor().get(i), i); + } for (int i = 0; i < element.getAction().size(); i++) { composePlanDefinitionActionComponent(t, "PlanDefinition", "action", element.getAction().get(i), i); } @@ -18575,6 +18916,48 @@ public class RdfParser extends RdfParserBase { } } + protected void composePlanDefinitionActorComponent(Complex parent, String parentType, String name, PlanDefinition.PlanDefinitionActorComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "actor", name, element, index); + if (element.hasTitleElement()) { + composeString(t, "PlanDefinitionActorComponent", "title", element.getTitleElement(), -1); + } + if (element.hasDescriptionElement()) { + composeMarkdown(t, "PlanDefinitionActorComponent", "description", element.getDescriptionElement(), -1); + } + for (int i = 0; i < element.getOption().size(); i++) { + composePlanDefinitionActorOptionComponent(t, "PlanDefinitionActorComponent", "option", element.getOption().get(i), i); + } + } + + protected void composePlanDefinitionActorOptionComponent(Complex parent, String parentType, String name, PlanDefinition.PlanDefinitionActorOptionComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "option", name, element, index); + if (element.hasTypeElement()) { + composeEnum(t, "PlanDefinitionActorOptionComponent", "type", element.getTypeElement(), -1); + } + if (element.hasTypeReference()) { + composeReference(t, "PlanDefinitionActorOptionComponent", "typeReference", element.getTypeReference(), -1); + } + if (element.hasRole()) { + composeCodeableConcept(t, "PlanDefinitionActorOptionComponent", "role", element.getRole(), -1); + } + } + protected void composePlanDefinitionActionComponent(Complex parent, String parentType, String name, PlanDefinition.PlanDefinitionActionComponent element, int index) { if (element == null) return; @@ -18600,8 +18983,8 @@ public class RdfParser extends RdfParserBase { if (element.hasPriorityElement()) { composeEnum(t, "PlanDefinitionActionComponent", "priority", element.getPriorityElement(), -1); } - for (int i = 0; i < element.getCode().size(); i++) { - composeCodeableConcept(t, "PlanDefinitionActionComponent", "code", element.getCode().get(i), i); + if (element.hasCode()) { + composeCodeableConcept(t, "PlanDefinitionActionComponent", "code", element.getCode(), -1); } for (int i = 0; i < element.getReason().size(); i++) { composeCodeableConcept(t, "PlanDefinitionActionComponent", "reason", element.getReason().get(i), i); @@ -18622,10 +19005,10 @@ public class RdfParser extends RdfParserBase { composePlanDefinitionActionConditionComponent(t, "PlanDefinitionActionComponent", "condition", element.getCondition().get(i), i); } for (int i = 0; i < element.getInput().size(); i++) { - composeDataRequirement(t, "PlanDefinitionActionComponent", "input", element.getInput().get(i), i); + composePlanDefinitionActionInputComponent(t, "PlanDefinitionActionComponent", "input", element.getInput().get(i), i); } for (int i = 0; i < element.getOutput().size(); i++) { - composeDataRequirement(t, "PlanDefinitionActionComponent", "output", element.getOutput().get(i), i); + composePlanDefinitionActionOutputComponent(t, "PlanDefinitionActionComponent", "output", element.getOutput().get(i), i); } for (int i = 0; i < element.getRelatedAction().size(); i++) { composePlanDefinitionActionRelatedActionComponent(t, "PlanDefinitionActionComponent", "relatedAction", element.getRelatedAction().get(i), i); @@ -18633,6 +19016,9 @@ public class RdfParser extends RdfParserBase { if (element.hasTiming()) { composeType(t, "PlanDefinitionActionComponent", "timing", element.getTiming(), -1); } + if (element.hasLocation()) { + composeCodeableReference(t, "PlanDefinitionActionComponent", "location", element.getLocation(), -1); + } for (int i = 0; i < element.getParticipant().size(); i++) { composePlanDefinitionActionParticipantComponent(t, "PlanDefinitionActionComponent", "participant", element.getParticipant().get(i), i); } @@ -18686,6 +19072,48 @@ public class RdfParser extends RdfParserBase { } } + protected void composePlanDefinitionActionInputComponent(Complex parent, String parentType, String name, PlanDefinition.PlanDefinitionActionInputComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "input", name, element, index); + if (element.hasTitleElement()) { + composeString(t, "PlanDefinitionActionInputComponent", "title", element.getTitleElement(), -1); + } + if (element.hasRequirement()) { + composeDataRequirement(t, "PlanDefinitionActionInputComponent", "requirement", element.getRequirement(), -1); + } + if (element.hasRelatedDataElement()) { + composeId(t, "PlanDefinitionActionInputComponent", "relatedData", element.getRelatedDataElement(), -1); + } + } + + protected void composePlanDefinitionActionOutputComponent(Complex parent, String parentType, String name, PlanDefinition.PlanDefinitionActionOutputComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "output", name, element, index); + if (element.hasTitleElement()) { + composeString(t, "PlanDefinitionActionOutputComponent", "title", element.getTitleElement(), -1); + } + if (element.hasRequirement()) { + composeDataRequirement(t, "PlanDefinitionActionOutputComponent", "requirement", element.getRequirement(), -1); + } + if (element.hasRelatedDataElement()) { + composeString(t, "PlanDefinitionActionOutputComponent", "relatedData", element.getRelatedDataElement(), -1); + } + } + protected void composePlanDefinitionActionRelatedActionComponent(Complex parent, String parentType, String name, PlanDefinition.PlanDefinitionActionRelatedActionComponent element, int index) { if (element == null) return; @@ -18696,8 +19124,8 @@ public class RdfParser extends RdfParserBase { t = parent.predicate("fhir:"+parentType+'.'+name); } composeBackboneElement(t, "relatedAction", name, element, index); - if (element.hasActionIdElement()) { - composeId(t, "PlanDefinitionActionRelatedActionComponent", "actionId", element.getActionIdElement(), -1); + if (element.hasTargetIdElement()) { + composeId(t, "PlanDefinitionActionRelatedActionComponent", "targetId", element.getTargetIdElement(), -1); } if (element.hasRelationshipElement()) { composeEnum(t, "PlanDefinitionActionRelatedActionComponent", "relationship", element.getRelationshipElement(), -1); @@ -18717,12 +19145,21 @@ public class RdfParser extends RdfParserBase { t = parent.predicate("fhir:"+parentType+'.'+name); } composeBackboneElement(t, "participant", name, element, index); + if (element.hasActorIdElement()) { + composeString(t, "PlanDefinitionActionParticipantComponent", "actorId", element.getActorIdElement(), -1); + } if (element.hasTypeElement()) { composeEnum(t, "PlanDefinitionActionParticipantComponent", "type", element.getTypeElement(), -1); } + if (element.hasTypeReference()) { + composeReference(t, "PlanDefinitionActionParticipantComponent", "typeReference", element.getTypeReference(), -1); + } if (element.hasRole()) { composeCodeableConcept(t, "PlanDefinitionActionParticipantComponent", "role", element.getRole(), -1); } + if (element.hasFunction()) { + composeCodeableConcept(t, "PlanDefinitionActionParticipantComponent", "function", element.getFunction(), -1); + } } protected void composePlanDefinitionActionDynamicValueComponent(Complex parent, String parentType, String name, PlanDefinition.PlanDefinitionActionDynamicValueComponent element, int index) { @@ -18996,6 +19433,9 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getUsed().size(); i++) { composeCodeableReference(t, "Procedure", "used", element.getUsed().get(i), i); } + for (int i = 0; i < element.getSupportingInfo().size(); i++) { + composeReference(t, "Procedure", "supportingInfo", element.getSupportingInfo().get(i), i); + } } protected void composeProcedurePerformerComponent(Complex parent, String parentType, String name, Procedure.ProcedurePerformerComponent element, int index) { @@ -19068,6 +19508,12 @@ public class RdfParser extends RdfParserBase { if (element.hasActivity()) { composeCodeableConcept(t, "Provenance", "activity", element.getActivity(), -1); } + for (int i = 0; i < element.getBasedOn().size(); i++) { + composeReference(t, "Provenance", "basedOn", element.getBasedOn().get(i), i); + } + if (element.hasEncounter()) { + composeReference(t, "Provenance", "encounter", element.getEncounter(), -1); + } for (int i = 0; i < element.getAgent().size(); i++) { composeProvenanceAgentComponent(t, "Provenance", "agent", element.getAgent().get(i), i); } @@ -19225,7 +19671,7 @@ public class RdfParser extends RdfParserBase { composeString(t, "QuestionnaireItemComponent", "prefix", element.getPrefixElement(), -1); } if (element.hasTextElement()) { - composeString(t, "QuestionnaireItemComponent", "text", element.getTextElement(), -1); + composeMarkdown(t, "QuestionnaireItemComponent", "text", element.getTextElement(), -1); } if (element.hasTypeElement()) { composeEnum(t, "QuestionnaireItemComponent", "type", element.getTypeElement(), -1); @@ -19236,6 +19682,9 @@ public class RdfParser extends RdfParserBase { if (element.hasEnableBehaviorElement()) { composeEnum(t, "QuestionnaireItemComponent", "enableBehavior", element.getEnableBehaviorElement(), -1); } + if (element.hasDisabledDisplayElement()) { + composeEnum(t, "QuestionnaireItemComponent", "disabledDisplay", element.getDisabledDisplayElement(), -1); + } if (element.hasRequiredElement()) { composeBoolean(t, "QuestionnaireItemComponent", "required", element.getRequiredElement(), -1); } @@ -19248,6 +19697,9 @@ public class RdfParser extends RdfParserBase { if (element.hasMaxLengthElement()) { composeInteger(t, "QuestionnaireItemComponent", "maxLength", element.getMaxLengthElement(), -1); } + if (element.hasAnswerConstraintElement()) { + composeEnum(t, "QuestionnaireItemComponent", "answerConstraint", element.getAnswerConstraintElement(), -1); + } if (element.hasAnswerValueSetElement()) { composeCanonical(t, "QuestionnaireItemComponent", "answerValueSet", element.getAnswerValueSetElement(), -1); } @@ -19441,7 +19893,7 @@ public class RdfParser extends RdfParserBase { composePeriod(t, "RegulatedAuthorization", "validityPeriod", element.getValidityPeriod(), -1); } if (element.hasIndication()) { - composeType(t, "RegulatedAuthorization", "indication", element.getIndication(), -1); + composeCodeableReference(t, "RegulatedAuthorization", "indication", element.getIndication(), -1); } if (element.hasIntendedUse()) { composeCodeableConcept(t, "RegulatedAuthorization", "intendedUse", element.getIntendedUse(), -1); @@ -19461,6 +19913,9 @@ public class RdfParser extends RdfParserBase { if (element.hasRegulator()) { composeReference(t, "RegulatedAuthorization", "regulator", element.getRegulator(), -1); } + for (int i = 0; i < element.getAttachedDocument().size(); i++) { + composeReference(t, "RegulatedAuthorization", "attachedDocument", element.getAttachedDocument().get(i), i); + } if (element.hasCase()) { composeRegulatedAuthorizationCaseComponent(t, "RegulatedAuthorization", "case", element.getCase(), -1); } @@ -19680,8 +20135,11 @@ public class RdfParser extends RdfParserBase { if (element.hasTiming()) { composeType(t, "RequestGroupActionComponent", "timing", element.getTiming(), -1); } + if (element.hasLocation()) { + composeCodeableReference(t, "RequestGroupActionComponent", "location", element.getLocation(), -1); + } for (int i = 0; i < element.getParticipant().size(); i++) { - composeReference(t, "RequestGroupActionComponent", "participant", element.getParticipant().get(i), i); + composeRequestGroupActionParticipantComponent(t, "RequestGroupActionComponent", "participant", element.getParticipant().get(i), i); } if (element.hasType()) { composeCodeableConcept(t, "RequestGroupActionComponent", "type", element.getType(), -1); @@ -19737,8 +20195,8 @@ public class RdfParser extends RdfParserBase { t = parent.predicate("fhir:"+parentType+'.'+name); } composeBackboneElement(t, "relatedAction", name, element, index); - if (element.hasActionIdElement()) { - composeId(t, "RequestGroupActionRelatedActionComponent", "actionId", element.getActionIdElement(), -1); + if (element.hasTargetIdElement()) { + composeId(t, "RequestGroupActionRelatedActionComponent", "targetId", element.getTargetIdElement(), -1); } if (element.hasRelationshipElement()) { composeEnum(t, "RequestGroupActionRelatedActionComponent", "relationship", element.getRelationshipElement(), -1); @@ -19748,6 +20206,33 @@ public class RdfParser extends RdfParserBase { } } + protected void composeRequestGroupActionParticipantComponent(Complex parent, String parentType, String name, RequestGroup.RequestGroupActionParticipantComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "participant", name, element, index); + if (element.hasTypeElement()) { + composeEnum(t, "RequestGroupActionParticipantComponent", "type", element.getTypeElement(), -1); + } + if (element.hasTypeReference()) { + composeReference(t, "RequestGroupActionParticipantComponent", "typeReference", element.getTypeReference(), -1); + } + if (element.hasRole()) { + composeCodeableConcept(t, "RequestGroupActionParticipantComponent", "role", element.getRole(), -1); + } + if (element.hasFunction()) { + composeCodeableConcept(t, "RequestGroupActionParticipantComponent", "function", element.getFunction(), -1); + } + if (element.hasActor()) { + composeReference(t, "RequestGroupActionParticipantComponent", "actor", element.getActor(), -1); + } + } + protected void composeResearchStudy(Complex parent, String parentType, String name, ResearchStudy element, int index) { if (element == null) return; @@ -19758,18 +20243,36 @@ public class RdfParser extends RdfParserBase { t = parent.predicate("fhir:"+parentType+'.'+name); } composeDomainResource(t, "ResearchStudy", name, element, index); + if (element.hasUrlElement()) { + composeUri(t, "ResearchStudy", "url", element.getUrlElement(), -1); + } for (int i = 0; i < element.getIdentifier().size(); i++) { composeIdentifier(t, "ResearchStudy", "identifier", element.getIdentifier().get(i), i); } + if (element.hasVersionElement()) { + composeString(t, "ResearchStudy", "version", element.getVersionElement(), -1); + } + if (element.hasNameElement()) { + composeString(t, "ResearchStudy", "name", element.getNameElement(), -1); + } if (element.hasTitleElement()) { composeString(t, "ResearchStudy", "title", element.getTitleElement(), -1); } + for (int i = 0; i < element.getLabel().size(); i++) { + composeResearchStudyLabelComponent(t, "ResearchStudy", "label", element.getLabel().get(i), i); + } for (int i = 0; i < element.getProtocol().size(); i++) { composeReference(t, "ResearchStudy", "protocol", element.getProtocol().get(i), i); } for (int i = 0; i < element.getPartOf().size(); i++) { composeReference(t, "ResearchStudy", "partOf", element.getPartOf().get(i), i); } + for (int i = 0; i < element.getRelatedArtifact().size(); i++) { + composeRelatedArtifact(t, "ResearchStudy", "relatedArtifact", element.getRelatedArtifact().get(i), i); + } + if (element.hasDateElement()) { + composeDateTime(t, "ResearchStudy", "date", element.getDateElement(), -1); + } if (element.hasStatusElement()) { composeEnum(t, "ResearchStudy", "status", element.getStatusElement(), -1); } @@ -19783,32 +20286,29 @@ public class RdfParser extends RdfParserBase { composeCodeableConcept(t, "ResearchStudy", "category", element.getCategory().get(i), i); } for (int i = 0; i < element.getFocus().size(); i++) { - composeCodeableConcept(t, "ResearchStudy", "focus", element.getFocus().get(i), i); + composeResearchStudyFocusComponent(t, "ResearchStudy", "focus", element.getFocus().get(i), i); } for (int i = 0; i < element.getCondition().size(); i++) { composeCodeableConcept(t, "ResearchStudy", "condition", element.getCondition().get(i), i); } - for (int i = 0; i < element.getContact().size(); i++) { - composeContactDetail(t, "ResearchStudy", "contact", element.getContact().get(i), i); - } - for (int i = 0; i < element.getRelatedArtifact().size(); i++) { - composeRelatedArtifact(t, "ResearchStudy", "relatedArtifact", element.getRelatedArtifact().get(i), i); - } for (int i = 0; i < element.getKeyword().size(); i++) { composeCodeableConcept(t, "ResearchStudy", "keyword", element.getKeyword().get(i), i); } for (int i = 0; i < element.getLocation().size(); i++) { composeCodeableConcept(t, "ResearchStudy", "location", element.getLocation().get(i), i); } + if (element.hasDescriptionSummaryElement()) { + composeMarkdown(t, "ResearchStudy", "descriptionSummary", element.getDescriptionSummaryElement(), -1); + } if (element.hasDescriptionElement()) { composeMarkdown(t, "ResearchStudy", "description", element.getDescriptionElement(), -1); } - for (int i = 0; i < element.getEnrollment().size(); i++) { - composeReference(t, "ResearchStudy", "enrollment", element.getEnrollment().get(i), i); - } if (element.hasPeriod()) { composePeriod(t, "ResearchStudy", "period", element.getPeriod(), -1); } + for (int i = 0; i < element.getContact().size(); i++) { + composeContactDetail(t, "ResearchStudy", "contact", element.getContact().get(i), i); + } if (element.hasSponsor()) { composeReference(t, "ResearchStudy", "sponsor", element.getSponsor(), -1); } @@ -19818,21 +20318,45 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getSite().size(); i++) { composeReference(t, "ResearchStudy", "site", element.getSite().get(i), i); } - if (element.hasReasonStopped()) { - composeCodeableConcept(t, "ResearchStudy", "reasonStopped", element.getReasonStopped(), -1); - } for (int i = 0; i < element.getNote().size(); i++) { composeAnnotation(t, "ResearchStudy", "note", element.getNote().get(i), i); } - for (int i = 0; i < element.getArm().size(); i++) { - composeResearchStudyArmComponent(t, "ResearchStudy", "arm", element.getArm().get(i), i); + for (int i = 0; i < element.getClassification().size(); i++) { + composeResearchStudyClassificationComponent(t, "ResearchStudy", "classification", element.getClassification().get(i), i); + } + for (int i = 0; i < element.getAssociatedParty().size(); i++) { + composeResearchStudyAssociatedPartyComponent(t, "ResearchStudy", "associatedParty", element.getAssociatedParty().get(i), i); + } + for (int i = 0; i < element.getCurrentState().size(); i++) { + composeCodeableConcept(t, "ResearchStudy", "currentState", element.getCurrentState().get(i), i); + } + for (int i = 0; i < element.getStatusDate().size(); i++) { + composeResearchStudyStatusDateComponent(t, "ResearchStudy", "statusDate", element.getStatusDate().get(i), i); + } + if (element.hasWhyStopped()) { + composeCodeableConcept(t, "ResearchStudy", "whyStopped", element.getWhyStopped(), -1); + } + if (element.hasRecruitment()) { + composeResearchStudyRecruitmentComponent(t, "ResearchStudy", "recruitment", element.getRecruitment(), -1); + } + for (int i = 0; i < element.getComparisonGroup().size(); i++) { + composeResearchStudyComparisonGroupComponent(t, "ResearchStudy", "comparisonGroup", element.getComparisonGroup().get(i), i); } for (int i = 0; i < element.getObjective().size(); i++) { composeResearchStudyObjectiveComponent(t, "ResearchStudy", "objective", element.getObjective().get(i), i); } + for (int i = 0; i < element.getOutcomeMeasure().size(); i++) { + composeResearchStudyOutcomeMeasureComponent(t, "ResearchStudy", "outcomeMeasure", element.getOutcomeMeasure().get(i), i); + } + for (int i = 0; i < element.getResult().size(); i++) { + composeReference(t, "ResearchStudy", "result", element.getResult().get(i), i); + } + for (int i = 0; i < element.getWebLocation().size(); i++) { + composeResearchStudyWebLocationComponent(t, "ResearchStudy", "webLocation", element.getWebLocation().get(i), i); + } } - protected void composeResearchStudyArmComponent(Complex parent, String parentType, String name, ResearchStudy.ResearchStudyArmComponent element, int index) { + protected void composeResearchStudyLabelComponent(Complex parent, String parentType, String name, ResearchStudy.ResearchStudyLabelComponent element, int index) { if (element == null) return; Complex t; @@ -19841,15 +20365,150 @@ public class RdfParser extends RdfParserBase { else { t = parent.predicate("fhir:"+parentType+'.'+name); } - composeBackboneElement(t, "arm", name, element, index); + composeBackboneElement(t, "label", name, element, index); + if (element.hasType()) { + composeCodeableConcept(t, "ResearchStudyLabelComponent", "type", element.getType(), -1); + } + if (element.hasValueElement()) { + composeString(t, "ResearchStudyLabelComponent", "value", element.getValueElement(), -1); + } + } + + protected void composeResearchStudyFocusComponent(Complex parent, String parentType, String name, ResearchStudy.ResearchStudyFocusComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "focus", name, element, index); + if (element.hasProductCode()) { + composeCodeableConcept(t, "ResearchStudyFocusComponent", "productCode", element.getProductCode(), -1); + } + for (int i = 0; i < element.getFocusType().size(); i++) { + composeCodeableConcept(t, "ResearchStudyFocusComponent", "focusType", element.getFocusType().get(i), i); + } + if (element.hasFactorElement()) { + composeMarkdown(t, "ResearchStudyFocusComponent", "factor", element.getFactorElement(), -1); + } + } + + protected void composeResearchStudyClassificationComponent(Complex parent, String parentType, String name, ResearchStudy.ResearchStudyClassificationComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "classification", name, element, index); + if (element.hasType()) { + composeCodeableConcept(t, "ResearchStudyClassificationComponent", "type", element.getType(), -1); + } + for (int i = 0; i < element.getClassifier().size(); i++) { + composeCodeableConcept(t, "ResearchStudyClassificationComponent", "classifier", element.getClassifier().get(i), i); + } + } + + protected void composeResearchStudyAssociatedPartyComponent(Complex parent, String parentType, String name, ResearchStudy.ResearchStudyAssociatedPartyComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "associatedParty", name, element, index); if (element.hasNameElement()) { - composeString(t, "ResearchStudyArmComponent", "name", element.getNameElement(), -1); + composeString(t, "ResearchStudyAssociatedPartyComponent", "name", element.getNameElement(), -1); + } + if (element.hasRole()) { + composeCodeableConcept(t, "ResearchStudyAssociatedPartyComponent", "role", element.getRole(), -1); + } + for (int i = 0; i < element.getClassifier().size(); i++) { + composeCodeableConcept(t, "ResearchStudyAssociatedPartyComponent", "classifier", element.getClassifier().get(i), i); + } + if (element.hasParty()) { + composeReference(t, "ResearchStudyAssociatedPartyComponent", "party", element.getParty(), -1); + } + } + + protected void composeResearchStudyStatusDateComponent(Complex parent, String parentType, String name, ResearchStudy.ResearchStudyStatusDateComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "statusDate", name, element, index); + if (element.hasActivity()) { + composeCodeableConcept(t, "ResearchStudyStatusDateComponent", "activity", element.getActivity(), -1); + } + if (element.hasActualElement()) { + composeBoolean(t, "ResearchStudyStatusDateComponent", "actual", element.getActualElement(), -1); + } + if (element.hasPeriod()) { + composePeriod(t, "ResearchStudyStatusDateComponent", "period", element.getPeriod(), -1); + } + } + + protected void composeResearchStudyRecruitmentComponent(Complex parent, String parentType, String name, ResearchStudy.ResearchStudyRecruitmentComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "recruitment", name, element, index); + if (element.hasTargetNumberElement()) { + composeUnsignedInt(t, "ResearchStudyRecruitmentComponent", "targetNumber", element.getTargetNumberElement(), -1); + } + if (element.hasActualNumberElement()) { + composeUnsignedInt(t, "ResearchStudyRecruitmentComponent", "actualNumber", element.getActualNumberElement(), -1); + } + if (element.hasEligibility()) { + composeReference(t, "ResearchStudyRecruitmentComponent", "eligibility", element.getEligibility(), -1); + } + if (element.hasActualGroup()) { + composeReference(t, "ResearchStudyRecruitmentComponent", "actualGroup", element.getActualGroup(), -1); + } + } + + protected void composeResearchStudyComparisonGroupComponent(Complex parent, String parentType, String name, ResearchStudy.ResearchStudyComparisonGroupComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "comparisonGroup", name, element, index); + if (element.hasIdentifier()) { + composeType(t, "ResearchStudyComparisonGroupComponent", "identifier", element.getIdentifier(), -1); + } + if (element.hasNameElement()) { + composeString(t, "ResearchStudyComparisonGroupComponent", "name", element.getNameElement(), -1); } if (element.hasType()) { - composeCodeableConcept(t, "ResearchStudyArmComponent", "type", element.getType(), -1); + composeCodeableConcept(t, "ResearchStudyComparisonGroupComponent", "type", element.getType(), -1); } if (element.hasDescriptionElement()) { - composeString(t, "ResearchStudyArmComponent", "description", element.getDescriptionElement(), -1); + composeMarkdown(t, "ResearchStudyComparisonGroupComponent", "description", element.getDescriptionElement(), -1); + } + for (int i = 0; i < element.getIntendedExposure().size(); i++) { + composeReference(t, "ResearchStudyComparisonGroupComponent", "intendedExposure", element.getIntendedExposure().get(i), i); + } + if (element.hasObservedGroup()) { + composeReference(t, "ResearchStudyComparisonGroupComponent", "observedGroup", element.getObservedGroup(), -1); } } @@ -19869,6 +20528,51 @@ public class RdfParser extends RdfParserBase { if (element.hasType()) { composeCodeableConcept(t, "ResearchStudyObjectiveComponent", "type", element.getType(), -1); } + if (element.hasDescriptionElement()) { + composeMarkdown(t, "ResearchStudyObjectiveComponent", "description", element.getDescriptionElement(), -1); + } + } + + protected void composeResearchStudyOutcomeMeasureComponent(Complex parent, String parentType, String name, ResearchStudy.ResearchStudyOutcomeMeasureComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "outcomeMeasure", name, element, index); + if (element.hasNameElement()) { + composeString(t, "ResearchStudyOutcomeMeasureComponent", "name", element.getNameElement(), -1); + } + for (int i = 0; i < element.getType().size(); i++) { + composeCodeableConcept(t, "ResearchStudyOutcomeMeasureComponent", "type", element.getType().get(i), i); + } + if (element.hasDescriptionElement()) { + composeMarkdown(t, "ResearchStudyOutcomeMeasureComponent", "description", element.getDescriptionElement(), -1); + } + if (element.hasReference()) { + composeReference(t, "ResearchStudyOutcomeMeasureComponent", "reference", element.getReference(), -1); + } + } + + protected void composeResearchStudyWebLocationComponent(Complex parent, String parentType, String name, ResearchStudy.ResearchStudyWebLocationComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "webLocation", name, element, index); + if (element.hasType()) { + composeCodeableConcept(t, "ResearchStudyWebLocationComponent", "type", element.getType(), -1); + } + if (element.hasUrlElement()) { + composeUri(t, "ResearchStudyWebLocationComponent", "url", element.getUrlElement(), -1); + } } protected void composeResearchSubject(Complex parent, String parentType, String name, ResearchSubject element, int index) { @@ -19896,8 +20600,8 @@ public class RdfParser extends RdfParserBase { if (element.hasStudy()) { composeReference(t, "ResearchSubject", "study", element.getStudy(), -1); } - if (element.hasIndividual()) { - composeReference(t, "ResearchSubject", "individual", element.getIndividual(), -1); + if (element.hasSubject()) { + composeReference(t, "ResearchSubject", "subject", element.getSubject(), -1); } if (element.hasAssignedArmElement()) { composeString(t, "ResearchSubject", "assignedArm", element.getAssignedArmElement(), -1); @@ -19923,8 +20627,8 @@ public class RdfParser extends RdfParserBase { if (element.hasType()) { composeCodeableConcept(t, "ResearchSubjectProgressComponent", "type", element.getType(), -1); } - if (element.hasState()) { - composeCodeableConcept(t, "ResearchSubjectProgressComponent", "state", element.getState(), -1); + if (element.hasSubjectState()) { + composeCodeableConcept(t, "ResearchSubjectProgressComponent", "subjectState", element.getSubjectState(), -1); } if (element.hasMilestone()) { composeCodeableConcept(t, "ResearchSubjectProgressComponent", "milestone", element.getMilestone(), -1); @@ -19935,6 +20639,9 @@ public class RdfParser extends RdfParserBase { if (element.hasStartDateElement()) { composeDateTime(t, "ResearchSubjectProgressComponent", "startDate", element.getStartDateElement(), -1); } + if (element.hasEndDateElement()) { + composeDateTime(t, "ResearchSubjectProgressComponent", "endDate", element.getEndDateElement(), -1); + } } protected void composeRiskAssessment(Complex parent, String parentType, String name, RiskAssessment element, int index) { @@ -21060,9 +21767,6 @@ public class RdfParser extends RdfParserBase { if (element.hasContextElement()) { composeId(t, "StructureMapGroupRuleTargetComponent", "context", element.getContextElement(), -1); } - if (element.hasContextTypeElement()) { - composeEnum(t, "StructureMapGroupRuleTargetComponent", "contextType", element.getContextTypeElement(), -1); - } if (element.hasElementElement()) { composeString(t, "StructureMapGroupRuleTargetComponent", "element", element.getElementElement(), -1); } @@ -21135,8 +21839,8 @@ public class RdfParser extends RdfParserBase { if (element.hasStatusElement()) { composeEnum(t, "Subscription", "status", element.getStatusElement(), -1); } - if (element.hasTopic()) { - composeReference(t, "Subscription", "topic", element.getTopic(), -1); + if (element.hasTopicElement()) { + composeCanonical(t, "Subscription", "topic", element.getTopicElement(), -1); } for (int i = 0; i < element.getContact().size(); i++) { composeContactPoint(t, "Subscription", "contact", element.getContact().get(i), i); @@ -21171,6 +21875,12 @@ public class RdfParser extends RdfParserBase { if (element.hasContentElement()) { composeEnum(t, "Subscription", "content", element.getContentElement(), -1); } + if (element.hasNotificationUrlLocationElement()) { + composeEnum(t, "Subscription", "notificationUrlLocation", element.getNotificationUrlLocationElement(), -1); + } + if (element.hasMaxCountElement()) { + composePositiveInt(t, "Subscription", "maxCount", element.getMaxCountElement(), -1); + } } protected void composeSubscriptionFilterByComponent(Complex parent, String parentType, String name, Subscription.SubscriptionFilterByComponent element, int index) { @@ -21183,6 +21893,9 @@ public class RdfParser extends RdfParserBase { t = parent.predicate("fhir:"+parentType+'.'+name); } composeBackboneElement(t, "filterBy", name, element, index); + if (element.hasResourceTypeElement()) { + composeUri(t, "SubscriptionFilterByComponent", "resourceType", element.getResourceTypeElement(), -1); + } if (element.hasSearchParamNameElement()) { composeString(t, "SubscriptionFilterByComponent", "searchParamName", element.getSearchParamNameElement(), -1); } @@ -21204,6 +21917,9 @@ public class RdfParser extends RdfParserBase { t = parent.predicate("fhir:"+parentType+'.'+name); } composeDomainResource(t, "SubscriptionStatus", name, element, index); + if (element.hasStatusElement()) { + composeEnum(t, "SubscriptionStatus", "status", element.getStatusElement(), -1); + } if (element.hasTypeElement()) { composeEnum(t, "SubscriptionStatus", "type", element.getTypeElement(), -1); } @@ -21216,9 +21932,6 @@ public class RdfParser extends RdfParserBase { if (element.hasSubscription()) { composeReference(t, "SubscriptionStatus", "subscription", element.getSubscription(), -1); } - if (element.hasStatusElement()) { - composeEnum(t, "SubscriptionStatus", "status", element.getStatusElement(), -1); - } if (element.hasTopicElement()) { composeCanonical(t, "SubscriptionStatus", "topic", element.getTopicElement(), -1); } @@ -21291,11 +22004,8 @@ public class RdfParser extends RdfParserBase { if (element.hasEffectivePeriod()) { composePeriod(t, "SubscriptionTopic", "effectivePeriod", element.getEffectivePeriod(), -1); } - if (element.hasResourceTrigger()) { - composeSubscriptionTopicResourceTriggerComponent(t, "SubscriptionTopic", "resourceTrigger", element.getResourceTrigger(), -1); - } - for (int i = 0; i < element.getCanFilterBy().size(); i++) { - composeSubscriptionTopicCanFilterByComponent(t, "SubscriptionTopic", "canFilterBy", element.getCanFilterBy().get(i), i); + for (int i = 0; i < element.getResourceTrigger().size(); i++) { + composeSubscriptionTopicResourceTriggerComponent(t, "SubscriptionTopic", "resourceTrigger", element.getResourceTrigger().get(i), i); } } @@ -21312,8 +22022,8 @@ public class RdfParser extends RdfParserBase { if (element.hasDescriptionElement()) { composeString(t, "SubscriptionTopicResourceTriggerComponent", "description", element.getDescriptionElement(), -1); } - for (int i = 0; i < element.getResourceType().size(); i++) { - composeCode(t, "SubscriptionTopicResourceTriggerComponent", "resourceType", element.getResourceType().get(i), i); + if (element.hasResourceTypeElement()) { + composeUri(t, "SubscriptionTopicResourceTriggerComponent", "resourceType", element.getResourceTypeElement(), -1); } for (int i = 0; i < element.getMethodCriteria().size(); i++) { composeEnum(t, "SubscriptionTopicResourceTriggerComponent", "methodCriteria", element.getMethodCriteria().get(i), i); @@ -21324,6 +22034,9 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getFhirPathCriteria().size(); i++) { composeString(t, "SubscriptionTopicResourceTriggerComponent", "fhirPathCriteria", element.getFhirPathCriteria().get(i), i); } + for (int i = 0; i < element.getCanFilterBy().size(); i++) { + composeSubscriptionTopicResourceTriggerCanFilterByComponent(t, "SubscriptionTopicResourceTriggerComponent", "canFilterBy", element.getCanFilterBy().get(i), i); + } } protected void composeSubscriptionTopicResourceTriggerQueryCriteriaComponent(Complex parent, String parentType, String name, SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent element, int index) { @@ -21339,15 +22052,21 @@ public class RdfParser extends RdfParserBase { if (element.hasPreviousElement()) { composeString(t, "SubscriptionTopicResourceTriggerQueryCriteriaComponent", "previous", element.getPreviousElement(), -1); } + if (element.hasResultForCreateElement()) { + composeEnum(t, "SubscriptionTopicResourceTriggerQueryCriteriaComponent", "resultForCreate", element.getResultForCreateElement(), -1); + } if (element.hasCurrentElement()) { composeString(t, "SubscriptionTopicResourceTriggerQueryCriteriaComponent", "current", element.getCurrentElement(), -1); } + if (element.hasResultForDeleteElement()) { + composeEnum(t, "SubscriptionTopicResourceTriggerQueryCriteriaComponent", "resultForDelete", element.getResultForDeleteElement(), -1); + } if (element.hasRequireBothElement()) { composeBoolean(t, "SubscriptionTopicResourceTriggerQueryCriteriaComponent", "requireBoth", element.getRequireBothElement(), -1); } } - protected void composeSubscriptionTopicCanFilterByComponent(Complex parent, String parentType, String name, SubscriptionTopic.SubscriptionTopicCanFilterByComponent element, int index) { + protected void composeSubscriptionTopicResourceTriggerCanFilterByComponent(Complex parent, String parentType, String name, SubscriptionTopic.SubscriptionTopicResourceTriggerCanFilterByComponent element, int index) { if (element == null) return; Complex t; @@ -21358,13 +22077,13 @@ public class RdfParser extends RdfParserBase { } composeBackboneElement(t, "canFilterBy", name, element, index); if (element.hasSearchParamNameElement()) { - composeString(t, "SubscriptionTopicCanFilterByComponent", "searchParamName", element.getSearchParamNameElement(), -1); + composeString(t, "SubscriptionTopicResourceTriggerCanFilterByComponent", "searchParamName", element.getSearchParamNameElement(), -1); } for (int i = 0; i < element.getSearchModifier().size(); i++) { - composeEnum(t, "SubscriptionTopicCanFilterByComponent", "searchModifier", element.getSearchModifier().get(i), i); + composeEnum(t, "SubscriptionTopicResourceTriggerCanFilterByComponent", "searchModifier", element.getSearchModifier().get(i), i); } if (element.hasDocumentationElement()) { - composeMarkdown(t, "SubscriptionTopicCanFilterByComponent", "documentation", element.getDocumentationElement(), -1); + composeMarkdown(t, "SubscriptionTopicResourceTriggerCanFilterByComponent", "documentation", element.getDocumentationElement(), -1); } } @@ -21381,6 +22100,9 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getIdentifier().size(); i++) { composeIdentifier(t, "Substance", "identifier", element.getIdentifier().get(i), i); } + if (element.hasInstanceElement()) { + composeBoolean(t, "Substance", "instance", element.getInstanceElement(), -1); + } if (element.hasStatusElement()) { composeEnum(t, "Substance", "status", element.getStatusElement(), -1); } @@ -21388,40 +22110,22 @@ public class RdfParser extends RdfParserBase { composeCodeableConcept(t, "Substance", "category", element.getCategory().get(i), i); } if (element.hasCode()) { - composeCodeableConcept(t, "Substance", "code", element.getCode(), -1); + composeCodeableReference(t, "Substance", "code", element.getCode(), -1); } if (element.hasDescriptionElement()) { composeString(t, "Substance", "description", element.getDescriptionElement(), -1); } - for (int i = 0; i < element.getInstance().size(); i++) { - composeSubstanceInstanceComponent(t, "Substance", "instance", element.getInstance().get(i), i); + if (element.hasExpiryElement()) { + composeDateTime(t, "Substance", "expiry", element.getExpiryElement(), -1); + } + if (element.hasQuantity()) { + composeQuantity(t, "Substance", "quantity", element.getQuantity(), -1); } for (int i = 0; i < element.getIngredient().size(); i++) { composeSubstanceIngredientComponent(t, "Substance", "ingredient", element.getIngredient().get(i), i); } } - protected void composeSubstanceInstanceComponent(Complex parent, String parentType, String name, Substance.SubstanceInstanceComponent element, int index) { - if (element == null) - return; - Complex t; - if (Utilities.noString(parentType)) - t = parent; - else { - t = parent.predicate("fhir:"+parentType+'.'+name); - } - composeBackboneElement(t, "instance", name, element, index); - if (element.hasIdentifier()) { - composeIdentifier(t, "SubstanceInstanceComponent", "identifier", element.getIdentifier(), -1); - } - if (element.hasExpiryElement()) { - composeDateTime(t, "SubstanceInstanceComponent", "expiry", element.getExpiryElement(), -1); - } - if (element.hasQuantity()) { - composeQuantity(t, "SubstanceInstanceComponent", "quantity", element.getQuantity(), -1); - } - } - protected void composeSubstanceIngredientComponent(Complex parent, String parentType, String name, Substance.SubstanceIngredientComponent element, int index) { if (element == null) return; @@ -21468,6 +22172,9 @@ public class RdfParser extends RdfParserBase { if (element.hasDomain()) { composeCodeableConcept(t, "SubstanceDefinition", "domain", element.getDomain(), -1); } + for (int i = 0; i < element.getGrade().size(); i++) { + composeCodeableConcept(t, "SubstanceDefinition", "grade", element.getGrade().get(i), i); + } if (element.hasDescriptionElement()) { composeMarkdown(t, "SubstanceDefinition", "description", element.getDescriptionElement(), -1); } @@ -21517,7 +22224,7 @@ public class RdfParser extends RdfParserBase { composeReference(t, "SubstanceDefinition", "protein", element.getProtein(), -1); } if (element.hasSourceMaterial()) { - composeReference(t, "SubstanceDefinition", "sourceMaterial", element.getSourceMaterial(), -1); + composeSubstanceDefinitionSourceMaterialComponent(t, "SubstanceDefinition", "sourceMaterial", element.getSourceMaterial(), -1); } } @@ -21827,6 +22534,33 @@ public class RdfParser extends RdfParserBase { } } + protected void composeSubstanceDefinitionSourceMaterialComponent(Complex parent, String parentType, String name, SubstanceDefinition.SubstanceDefinitionSourceMaterialComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "sourceMaterial", name, element, index); + if (element.hasType()) { + composeCodeableConcept(t, "SubstanceDefinitionSourceMaterialComponent", "type", element.getType(), -1); + } + if (element.hasGenus()) { + composeCodeableConcept(t, "SubstanceDefinitionSourceMaterialComponent", "genus", element.getGenus(), -1); + } + if (element.hasSpecies()) { + composeCodeableConcept(t, "SubstanceDefinitionSourceMaterialComponent", "species", element.getSpecies(), -1); + } + if (element.hasPart()) { + composeCodeableConcept(t, "SubstanceDefinitionSourceMaterialComponent", "part", element.getPart(), -1); + } + for (int i = 0; i < element.getCountryOfOrigin().size(); i++) { + composeCodeableConcept(t, "SubstanceDefinitionSourceMaterialComponent", "countryOfOrigin", element.getCountryOfOrigin().get(i), i); + } + } + protected void composeSubstanceNucleicAcid(Complex parent, String parentType, String name, SubstanceNucleicAcid element, int index) { if (element == null) return; @@ -23316,6 +24050,9 @@ public class RdfParser extends RdfParserBase { if (element.hasMetadata()) { composeTestScriptMetadataComponent(t, "TestScript", "metadata", element.getMetadata(), -1); } + for (int i = 0; i < element.getScope().size(); i++) { + composeTestScriptScopeComponent(t, "TestScript", "scope", element.getScope().get(i), i); + } for (int i = 0; i < element.getFixture().size(); i++) { composeTestScriptFixtureComponent(t, "TestScript", "fixture", element.getFixture().get(i), i); } @@ -23441,6 +24178,27 @@ public class RdfParser extends RdfParserBase { } } + protected void composeTestScriptScopeComponent(Complex parent, String parentType, String name, TestScript.TestScriptScopeComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "scope", name, element, index); + if (element.hasArtifactElement()) { + composeCanonical(t, "TestScriptScopeComponent", "artifact", element.getArtifactElement(), -1); + } + if (element.hasConformance()) { + composeCodeableConcept(t, "TestScriptScopeComponent", "conformance", element.getConformance(), -1); + } + if (element.hasPhase()) { + composeCodeableConcept(t, "TestScriptScopeComponent", "phase", element.getPhase(), -1); + } + } + protected void composeTestScriptFixtureComponent(Complex parent, String parentType, String name, TestScript.TestScriptFixtureComponent element, int index) { if (element == null) return; @@ -23679,6 +24437,9 @@ public class RdfParser extends RdfParserBase { if (element.hasSourceIdElement()) { composeId(t, "SetupActionAssertComponent", "sourceId", element.getSourceIdElement(), -1); } + if (element.hasStopTestOnFailElement()) { + composeBoolean(t, "SetupActionAssertComponent", "stopTestOnFail", element.getStopTestOnFailElement(), -1); + } if (element.hasValidateProfileIdElement()) { composeId(t, "SetupActionAssertComponent", "validateProfileId", element.getValidateProfileIdElement(), -1); } @@ -23823,6 +24584,9 @@ public class RdfParser extends RdfParserBase { if (element.hasExpansion()) { composeValueSetExpansionComponent(t, "ValueSet", "expansion", element.getExpansion(), -1); } + if (element.hasScope()) { + composeValueSetScopeComponent(t, "ValueSet", "scope", element.getScope(), -1); + } } protected void composeValueSetComposeComponent(Complex parent, String parentType, String name, ValueSet.ValueSetComposeComponent element, int index) { @@ -23877,6 +24641,9 @@ public class RdfParser extends RdfParserBase { for (int i = 0; i < element.getValueSet().size(); i++) { composeCanonical(t, "ConceptSetComponent", "valueSet", element.getValueSet().get(i), i); } + if (element.hasCopyrightElement()) { + composeString(t, "ConceptSetComponent", "copyright", element.getCopyrightElement(), -1); + } } protected void composeValueSetConceptReferenceComponent(Complex parent, String parentType, String name, ValueSet.ConceptReferenceComponent element, int index) { @@ -24068,6 +24835,27 @@ public class RdfParser extends RdfParserBase { } } + protected void composeValueSetScopeComponent(Complex parent, String parentType, String name, ValueSet.ValueSetScopeComponent element, int index) { + if (element == null) + return; + Complex t; + if (Utilities.noString(parentType)) + t = parent; + else { + t = parent.predicate("fhir:"+parentType+'.'+name); + } + composeBackboneElement(t, "scope", name, element, index); + if (element.hasFocusElement()) { + composeString(t, "ValueSetScopeComponent", "focus", element.getFocusElement(), -1); + } + if (element.hasInclusionCriteriaElement()) { + composeString(t, "ValueSetScopeComponent", "inclusionCriteria", element.getInclusionCriteriaElement(), -1); + } + if (element.hasExclusionCriteriaElement()) { + composeString(t, "ValueSetScopeComponent", "exclusionCriteria", element.getExclusionCriteriaElement(), -1); + } + } + protected void composeVerificationResult(Complex parent, String parentType, String name, VerificationResult element, int index) { if (element == null) return; @@ -24415,8 +25203,8 @@ public class RdfParser extends RdfParserBase { composeDeviceMetric(parent, null, "DeviceMetric", (DeviceMetric)resource, -1); } else if (resource instanceof DeviceRequest) { composeDeviceRequest(parent, null, "DeviceRequest", (DeviceRequest)resource, -1); - } else if (resource instanceof DeviceUseStatement) { - composeDeviceUseStatement(parent, null, "DeviceUseStatement", (DeviceUseStatement)resource, -1); + } else if (resource instanceof DeviceUsage) { + composeDeviceUsage(parent, null, "DeviceUsage", (DeviceUsage)resource, -1); } else if (resource instanceof DiagnosticReport) { composeDiagnosticReport(parent, null, "DiagnosticReport", (DiagnosticReport)resource, -1); } else if (resource instanceof DocumentManifest) { @@ -24473,6 +25261,8 @@ public class RdfParser extends RdfParserBase { composeIngredient(parent, null, "Ingredient", (Ingredient)resource, -1); } else if (resource instanceof InsurancePlan) { composeInsurancePlan(parent, null, "InsurancePlan", (InsurancePlan)resource, -1); + } else if (resource instanceof InventoryReport) { + composeInventoryReport(parent, null, "InventoryReport", (InventoryReport)resource, -1); } else if (resource instanceof Invoice) { composeInvoice(parent, null, "Invoice", (Invoice)resource, -1); } else if (resource instanceof Library) { @@ -24744,6 +25534,8 @@ public class RdfParser extends RdfParserBase { composeRange(parent, parentType, name, (Range)value, index); } else if (value instanceof Ratio) { composeRatio(parent, parentType, name, (Ratio)value, index); + } else if (value instanceof RatioRange) { + composeRatioRange(parent, parentType, name, (RatioRange)value, index); } else if (value instanceof Reference) { composeReference(parent, parentType, name, (Reference)value, index); } else if (value instanceof RelatedArtifact) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/XmlParser.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/XmlParser.java index 3fcd374bc..be8a0348d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/XmlParser.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/formats/XmlParser.java @@ -2,8 +2,6 @@ package org.hl7.fhir.r5.formats; // generated - - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -32,7 +30,7 @@ package org.hl7.fhir.r5.formats; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 @@ -1864,6 +1862,34 @@ public class XmlParser extends XmlParserBase { return true; } + protected RatioRange parseRatioRange(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + RatioRange res = new RatioRange(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseRatioRangeContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseRatioRangeContent(int eventType, XmlPullParser xpp, RatioRange res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("lowNumerator")) { + res.setLowNumerator(parseQuantity(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("highNumerator")) { + res.setHighNumerator(parseQuantity(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("denominator")) { + res.setDenominator(parseQuantity(xpp)); + } else if (!parseDataTypeContent(eventType, xpp, res)){ + return false; + } + return true; + } + protected Reference parseReference(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { Reference res = new Reference(); parseElementAttributes(xpp, res); @@ -2024,10 +2050,14 @@ public class XmlParser extends XmlParserBase { res.getNote().add(parseAnnotation(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("statisticType")) { res.setStatisticType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("category")) { + res.setCategory(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("quantity")) { res.setQuantity(parseQuantity(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("numberOfEvents")) { - res.setNumberOfEventsElement(parseInteger(xpp)); + res.setNumberOfEventsElement(parseUnsignedInt(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("numberAffected")) { + res.setNumberAffectedElement(parseUnsignedInt(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("sampleSize")) { res.setSampleSize(parseStatisticSampleSizeComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("attributeEstimate")) { @@ -2061,11 +2091,11 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) { res.getNote().add(parseAnnotation(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("numberOfStudies")) { - res.setNumberOfStudiesElement(parseInteger(xpp)); + res.setNumberOfStudiesElement(parseUnsignedInt(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("numberOfParticipants")) { - res.setNumberOfParticipantsElement(parseInteger(xpp)); + res.setNumberOfParticipantsElement(parseUnsignedInt(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("knownDataCount")) { - res.setKnownDataCountElement(parseInteger(xpp)); + res.setKnownDataCountElement(parseUnsignedInt(xpp)); } else if (!parseElementContent(eventType, xpp, res)){ return false; } @@ -2160,8 +2190,8 @@ public class XmlParser extends XmlParserBase { protected boolean parseStatisticModelCharacteristicComponentContent(int eventType, XmlPullParser xpp, Statistic.StatisticModelCharacteristicComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) { res.setCode(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "value")) { - res.setValue(parseType("value", xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("value")) { + res.setValue(parseQuantity(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("variable")) { res.getVariable().add(parseStatisticModelCharacteristicVariableComponent(xpp)); } else if (!parseElementContent(eventType, xpp, res)){ @@ -2569,7 +2599,7 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "timing")) { res.setTiming(parseType("timing", xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("location")) { - res.setLocation(parseReference(xpp)); + res.setLocation(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("participant")) { res.getParticipant().add(parseActivityDefinitionParticipantComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "product")) { @@ -2614,8 +2644,12 @@ public class XmlParser extends XmlParserBase { protected boolean parseActivityDefinitionParticipantComponentContent(int eventType, XmlPullParser xpp, ActivityDefinition.ActivityDefinitionParticipantComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setTypeElement(parseEnumeration(xpp, Enumerations.ActionParticipantType.NULL, new Enumerations.ActionParticipantTypeEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("typeReference")) { + res.setTypeReference(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("role")) { res.setRole(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("function")) { + res.setFunction(parseCodeableConcept(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -2849,7 +2883,7 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("seriousness")) { res.setSeriousness(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("outcome")) { - res.setOutcome(parseCodeableConcept(xpp)); + res.getOutcome().add(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("recorder")) { res.setRecorder(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("participant")) { @@ -3121,7 +3155,7 @@ public class XmlParser extends XmlParserBase { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("substance")) { res.setSubstance(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("manifestation")) { - res.getManifestation().add(parseCodeableConcept(xpp)); + res.getManifestation().add(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) { res.setDescriptionElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("onset")) { @@ -3171,7 +3205,7 @@ public class XmlParser extends XmlParserBase { } 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)); + res.setPriority(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) { res.setDescriptionElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("supportingInformation")) { @@ -3304,6 +3338,10 @@ public class XmlParser extends XmlParserBase { res.setOutcome(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("purposeOfEvent")) { res.getPurposeOfEvent().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("basedOn")) { + res.getBasedOn().add(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("encounter")) { + res.setEncounter(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("agent")) { res.getAgent().add(parseAuditEventAgentComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("source")) { @@ -4540,6 +4578,8 @@ public class XmlParser extends XmlParserBase { res.setModeElement(parseEnumeration(xpp, Enumerations.RestfulCapabilityMode.NULL, new Enumerations.RestfulCapabilityModeEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("documentation")) { res.setDocumentationElement(parseMarkdown(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("feature")) { + res.getFeature().add(parseCapabilityStatement2RestFeatureComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("resource")) { res.getResource().add(parseCapabilityStatement2RestResourceComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("interaction")) { @@ -4556,6 +4596,32 @@ public class XmlParser extends XmlParserBase { return true; } + protected CapabilityStatement2.CapabilityStatement2RestFeatureComponent parseCapabilityStatement2RestFeatureComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + CapabilityStatement2.CapabilityStatement2RestFeatureComponent res = new CapabilityStatement2.CapabilityStatement2RestFeatureComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseCapabilityStatement2RestFeatureComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseCapabilityStatement2RestFeatureComponentContent(int eventType, XmlPullParser xpp, CapabilityStatement2.CapabilityStatement2RestFeatureComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) { + res.setCodeElement(parseEnumeration(xpp, CapabilityStatement2.CapabilityFeature.NULL, new CapabilityStatement2.CapabilityFeatureEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("value")) { + res.setValueElement(parseEnumeration(xpp, CapabilityStatement2.CapabilityFeatureValue.NULL, new CapabilityStatement2.CapabilityFeatureValueEnumFactory())); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + protected CapabilityStatement2.CapabilityStatement2RestResourceComponent parseCapabilityStatement2RestResourceComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { CapabilityStatement2.CapabilityStatement2RestResourceComponent res = new CapabilityStatement2.CapabilityStatement2RestResourceComponent(); parseElementAttributes(xpp, res); @@ -4580,6 +4646,8 @@ public class XmlParser extends XmlParserBase { res.getSupportedProfile().add(parseCanonical(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("documentation")) { res.setDocumentationElement(parseMarkdown(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("feature")) { + res.getFeature().add(parseCapabilityStatement2RestFeatureComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("interaction")) { res.getInteraction().add(parseCapabilityStatement2ResourceInteractionComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("searchParam")) { @@ -4612,6 +4680,8 @@ public class XmlParser extends XmlParserBase { res.setCodeElement(parseEnumeration(xpp, CapabilityStatement2.TypeRestfulInteraction.NULL, new CapabilityStatement2.TypeRestfulInteractionEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("documentation")) { res.setDocumentationElement(parseMarkdown(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("feature")) { + res.getFeature().add(parseCapabilityStatement2RestFeatureComponent(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -4642,6 +4712,8 @@ public class XmlParser extends XmlParserBase { res.setTypeElement(parseEnumeration(xpp, Enumerations.SearchParamType.NULL, new Enumerations.SearchParamTypeEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("documentation")) { res.setDocumentationElement(parseMarkdown(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("feature")) { + res.getFeature().add(parseCapabilityStatement2RestFeatureComponent(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -4670,6 +4742,8 @@ public class XmlParser extends XmlParserBase { res.setDefinitionElement(parseCanonical(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("documentation")) { res.setDocumentationElement(parseMarkdown(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("feature")) { + res.getFeature().add(parseCapabilityStatement2RestFeatureComponent(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -4696,6 +4770,8 @@ public class XmlParser extends XmlParserBase { res.setCodeElement(parseEnumeration(xpp, CapabilityStatement2.SystemRestfulInteraction.NULL, new CapabilityStatement2.SystemRestfulInteractionEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("documentation")) { res.setDocumentationElement(parseMarkdown(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("feature")) { + res.getFeature().add(parseCapabilityStatement2RestFeatureComponent(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -4786,27 +4862,27 @@ 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("outcome")) { - res.getOutcome().add(parseCodeableReference(xpp)); + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("performedActivity")) { + res.getPerformedActivity().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")) { - res.setReference(parseReference(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("detail")) { - res.setDetail(parseCarePlanActivityDetailComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("plannedActivityReference")) { + res.setPlannedActivityReference(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("plannedActivityDetail")) { + res.setPlannedActivityDetail(parseCarePlanActivityPlannedActivityDetailComponent(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } return true; } - protected CarePlan.CarePlanActivityDetailComponent parseCarePlanActivityDetailComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - CarePlan.CarePlanActivityDetailComponent res = new CarePlan.CarePlanActivityDetailComponent(); + protected CarePlan.CarePlanActivityPlannedActivityDetailComponent parseCarePlanActivityPlannedActivityDetailComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + CarePlan.CarePlanActivityPlannedActivityDetailComponent res = new CarePlan.CarePlanActivityPlannedActivityDetailComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseCarePlanActivityDetailComponentContent(eventType, xpp, res)) + if (!parseCarePlanActivityPlannedActivityDetailComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -4815,7 +4891,7 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseCarePlanActivityDetailComponentContent(int eventType, XmlPullParser xpp, CarePlan.CarePlanActivityDetailComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseCarePlanActivityPlannedActivityDetailComponentContent(int eventType, XmlPullParser xpp, CarePlan.CarePlanActivityPlannedActivityDetailComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("kind")) { res.setKindElement(parseEnumeration(xpp, CarePlan.CarePlanActivityKind.NULL, new CarePlan.CarePlanActivityKindEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("instantiatesCanonical")) { @@ -5280,69 +5356,75 @@ public class XmlParser extends XmlParserBase { protected boolean parseCitationContent(int eventType, XmlPullParser xpp, Citation res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("url")) { res.setUrlElement(parseUri(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) { - res.setStatusElement(parseEnumeration(xpp, Enumerations.PublicationStatus.NULL, new Enumerations.PublicationStatusEnumFactory())); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("useContext")) { - res.getUseContext().add(parseUsageContext(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { res.getIdentifier().add(parseIdentifier(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relatedIdentifier")) { - res.getRelatedIdentifier().add(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("name")) { + res.setNameElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("title")) { + res.setTitleElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) { + res.setStatusElement(parseEnumeration(xpp, Enumerations.PublicationStatus.NULL, new Enumerations.PublicationStatusEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("experimental")) { + res.setExperimentalElement(parseBoolean(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("date")) { + res.setDateElement(parseDateTime(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publisher")) { + res.setPublisherElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("contact")) { + res.getContact().add(parseContactDetail(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) { + res.setDescriptionElement(parseMarkdown(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("useContext")) { + res.getUseContext().add(parseUsageContext(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("jurisdiction")) { + res.getJurisdiction().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("purpose")) { + res.setPurposeElement(parseMarkdown(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("copyright")) { + res.setCopyrightElement(parseMarkdown(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("approvalDate")) { + res.setApprovalDateElement(parseDate(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("lastReviewDate")) { + res.setLastReviewDateElement(parseDate(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("effectivePeriod")) { + res.setEffectivePeriod(parsePeriod(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("author")) { + res.getAuthor().add(parseContactDetail(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("editor")) { + res.getEditor().add(parseContactDetail(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reviewer")) { + res.getReviewer().add(parseContactDetail(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("endorser")) { + res.getEndorser().add(parseContactDetail(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("summary")) { - res.getSummary().add(parseCitationSummaryComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dateCited")) { - res.setDateCitedElement(parseDateTime(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("variantCitation")) { - res.setVariantCitation(parseCitationVariantCitationComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publishingModel")) { - res.setPublishingModel(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("journal")) { - res.setJournal(parseCitationJournalComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publicationInfo")) { - res.setPublicationInfo(parseCitationPublicationInfoComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("articleTitle")) { - res.setArticleTitleElement(parseMarkdown(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("alternativeTitle")) { - res.getAlternativeTitle().add(parseCitationAlternativeTitleComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("pagination")) { - res.setPagination(parseCitationPaginationComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("articleUrl")) { - res.getArticleUrl().add(parseCitationArticleUrlComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("abstract")) { - res.setAbstractElement(parseMarkdown(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("abstractCopyright")) { - res.setAbstractCopyrightElement(parseMarkdown(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("alternativeAbstract")) { - res.getAlternativeAbstract().add(parseCitationAlternativeAbstractComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("contributorship")) { - res.setContributorship(parseCitationContributorshipComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("articleLanguage")) { - res.setArticleLanguage(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("alternativeForm")) { - res.getAlternativeForm().add(parseCitationAlternativeFormComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("classifier")) { - res.getClassifier().add(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("keywordList")) { - res.getKeywordList().add(parseCitationKeywordListComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relatedArtifact")) { - res.getRelatedArtifact().add(parseRelatedArtifact(xpp)); + res.getSummary().add(parseContactDetail(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("classification")) { + res.getClassification().add(parseCitationClassificationComponent(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("medlinePubMed")) { - res.setMedlinePubMed(parseCitationMedlinePubMedComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("currentState")) { + res.getCurrentState().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("statusDate")) { + res.getStatusDate().add(parseCitationStatusDateComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relatesTo")) { + res.getRelatesTo().add(parseCitationRelatesToComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("citedArtifact")) { + res.setCitedArtifact(parseCitationCitedArtifactComponent(xpp)); } else if (!parseMetadataResourceContent(eventType, xpp, res)){ return false; } return true; } - protected Citation.CitationSummaryComponent parseCitationSummaryComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationSummaryComponent res = new Citation.CitationSummaryComponent(); + protected Citation.CitationClassificationComponent parseCitationClassificationComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationClassificationComponent res = new Citation.CitationClassificationComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationSummaryComponentContent(eventType, xpp, res)) + if (!parseCitationClassificationComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -5351,9 +5433,199 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseCitationSummaryComponentContent(int eventType, XmlPullParser xpp, Citation.CitationSummaryComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("style")) { - res.setStyle(parseCodeableConcept(xpp)); + protected boolean parseCitationClassificationComponentContent(int eventType, XmlPullParser xpp, Citation.CitationClassificationComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + res.setType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("classifier")) { + res.getClassifier().add(parseCodeableConcept(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected Citation.CitationStatusDateComponent parseCitationStatusDateComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationStatusDateComponent res = new Citation.CitationStatusDateComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseCitationStatusDateComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseCitationStatusDateComponentContent(int eventType, XmlPullParser xpp, Citation.CitationStatusDateComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("activity")) { + res.setActivity(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("actual")) { + res.setActualElement(parseBoolean(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("period")) { + res.setPeriod(parsePeriod(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected Citation.CitationRelatesToComponent parseCitationRelatesToComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationRelatesToComponent res = new Citation.CitationRelatesToComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseCitationRelatesToComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseCitationRelatesToComponentContent(int eventType, XmlPullParser xpp, Citation.CitationRelatesToComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relationshipType")) { + res.setRelationshipType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("targetClassifier")) { + res.getTargetClassifier().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "target")) { + res.setTarget(parseType("target", xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected Citation.CitationCitedArtifactComponent parseCitationCitedArtifactComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactComponent res = new Citation.CitationCitedArtifactComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseCitationCitedArtifactComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseCitationCitedArtifactComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { + res.getIdentifier().add(parseIdentifier(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relatedIdentifier")) { + res.getRelatedIdentifier().add(parseIdentifier(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dateAccessed")) { + res.setDateAccessedElement(parseDateTime(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("version")) { + res.setVersion(parseCitationCitedArtifactVersionComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("currentState")) { + res.getCurrentState().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("statusDate")) { + res.getStatusDate().add(parseCitationCitedArtifactStatusDateComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("title")) { + res.getTitle().add(parseCitationCitedArtifactTitleComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("abstract")) { + res.getAbstract().add(parseCitationCitedArtifactAbstractComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("part")) { + res.setPart(parseCitationCitedArtifactPartComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relatesTo")) { + res.getRelatesTo().add(parseCitationCitedArtifactRelatesToComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publicationForm")) { + res.getPublicationForm().add(parseCitationCitedArtifactPublicationFormComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("webLocation")) { + res.getWebLocation().add(parseCitationCitedArtifactWebLocationComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("classification")) { + res.getClassification().add(parseCitationCitedArtifactClassificationComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("contributorship")) { + res.setContributorship(parseCitationCitedArtifactContributorshipComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) { + res.getNote().add(parseAnnotation(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected Citation.CitationCitedArtifactVersionComponent parseCitationCitedArtifactVersionComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactVersionComponent res = new Citation.CitationCitedArtifactVersionComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseCitationCitedArtifactVersionComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseCitationCitedArtifactVersionComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactVersionComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("value")) { + res.setValueElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("baseCitation")) { + res.setBaseCitation(parseReference(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected Citation.CitationCitedArtifactStatusDateComponent parseCitationCitedArtifactStatusDateComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactStatusDateComponent res = new Citation.CitationCitedArtifactStatusDateComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseCitationCitedArtifactStatusDateComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseCitationCitedArtifactStatusDateComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactStatusDateComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("activity")) { + res.setActivity(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("actual")) { + res.setActualElement(parseBoolean(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("period")) { + res.setPeriod(parsePeriod(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected Citation.CitationCitedArtifactTitleComponent parseCitationCitedArtifactTitleComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactTitleComponent res = new Citation.CitationCitedArtifactTitleComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseCitationCitedArtifactTitleComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseCitationCitedArtifactTitleComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactTitleComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + res.setType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("language")) { + res.setLanguage(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("text")) { res.setTextElement(parseMarkdown(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ @@ -5362,13 +5634,13 @@ public class XmlParser extends XmlParserBase { return true; } - protected Citation.CitationVariantCitationComponent parseCitationVariantCitationComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationVariantCitationComponent res = new Citation.CitationVariantCitationComponent(); + protected Citation.CitationCitedArtifactAbstractComponent parseCitationCitedArtifactAbstractComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactAbstractComponent res = new Citation.CitationCitedArtifactAbstractComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationVariantCitationComponentContent(eventType, xpp, res)) + if (!parseCitationCitedArtifactAbstractComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -5377,7 +5649,37 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseCitationVariantCitationComponentContent(int eventType, XmlPullParser xpp, Citation.CitationVariantCitationComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseCitationCitedArtifactAbstractComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactAbstractComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + res.setType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("language")) { + res.setLanguage(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("text")) { + res.setTextElement(parseMarkdown(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("copyright")) { + res.setCopyrightElement(parseMarkdown(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected Citation.CitationCitedArtifactPartComponent parseCitationCitedArtifactPartComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactPartComponent res = new Citation.CitationCitedArtifactPartComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseCitationCitedArtifactPartComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseCitationCitedArtifactPartComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactPartComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setType(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("value")) { @@ -5390,13 +5692,13 @@ public class XmlParser extends XmlParserBase { return true; } - protected Citation.CitationJournalComponent parseCitationJournalComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationJournalComponent res = new Citation.CitationJournalComponent(); + protected Citation.CitationCitedArtifactRelatesToComponent parseCitationCitedArtifactRelatesToComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactRelatesToComponent res = new Citation.CitationCitedArtifactRelatesToComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationJournalComponentContent(eventType, xpp, res)) + if (!parseCitationCitedArtifactRelatesToComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -5405,28 +5707,26 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseCitationJournalComponentContent(int eventType, XmlPullParser xpp, Citation.CitationJournalComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { - res.getIdentifier().add(parseIdentifier(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("country")) { - res.setCountryElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("journalIssue")) { - res.setJournalIssue(parseCitationJournalJournalIssueComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("title")) { - res.setTitleElement(parseString(xpp)); + protected boolean parseCitationCitedArtifactRelatesToComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactRelatesToComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relationshipType")) { + res.setRelationshipType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("targetClassifier")) { + res.getTargetClassifier().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "target")) { + res.setTarget(parseType("target", xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } return true; } - protected Citation.CitationJournalJournalIssueComponent parseCitationJournalJournalIssueComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationJournalJournalIssueComponent res = new Citation.CitationJournalJournalIssueComponent(); + protected Citation.CitationCitedArtifactPublicationFormComponent parseCitationCitedArtifactPublicationFormComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactPublicationFormComponent res = new Citation.CitationCitedArtifactPublicationFormComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationJournalJournalIssueComponentContent(eventType, xpp, res)) + if (!parseCitationCitedArtifactPublicationFormComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -5435,28 +5735,104 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseCitationJournalJournalIssueComponentContent(int eventType, XmlPullParser xpp, Citation.CitationJournalJournalIssueComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseCitationCitedArtifactPublicationFormComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactPublicationFormComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publishedIn")) { + res.setPublishedIn(parseCitationCitedArtifactPublicationFormPublishedInComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("periodicRelease")) { + res.setPeriodicRelease(parseCitationCitedArtifactPublicationFormPeriodicReleaseComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("articleDate")) { + res.setArticleDateElement(parseDateTime(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("lastRevisionDate")) { + res.setLastRevisionDateElement(parseDateTime(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("language")) { + res.getLanguage().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("accessionNumber")) { + res.setAccessionNumberElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("pageString")) { + res.setPageStringElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("firstPage")) { + res.setFirstPageElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("lastPage")) { + res.setLastPageElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("pageCount")) { + res.setPageCountElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("copyright")) { + res.setCopyrightElement(parseMarkdown(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected Citation.CitationCitedArtifactPublicationFormPublishedInComponent parseCitationCitedArtifactPublicationFormPublishedInComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactPublicationFormPublishedInComponent res = new Citation.CitationCitedArtifactPublicationFormPublishedInComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseCitationCitedArtifactPublicationFormPublishedInComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseCitationCitedArtifactPublicationFormPublishedInComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactPublicationFormPublishedInComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + res.setType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { + res.getIdentifier().add(parseIdentifier(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("title")) { + res.setTitleElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publisher")) { + res.setPublisher(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publisherLocation")) { + res.setPublisherLocationElement(parseString(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected Citation.CitationCitedArtifactPublicationFormPeriodicReleaseComponent parseCitationCitedArtifactPublicationFormPeriodicReleaseComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactPublicationFormPeriodicReleaseComponent res = new Citation.CitationCitedArtifactPublicationFormPeriodicReleaseComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseCitationCitedArtifactPublicationFormPeriodicReleaseComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseCitationCitedArtifactPublicationFormPeriodicReleaseComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactPublicationFormPeriodicReleaseComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("citedMedium")) { res.setCitedMedium(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("volume")) { res.setVolumeElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("issue")) { res.setIssueElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publicationDate")) { - res.setPublicationDate(parseCitationJournalJournalIssuePublicationDateComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dateOfPublication")) { + res.setDateOfPublication(parseCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } return true; } - protected Citation.CitationJournalJournalIssuePublicationDateComponent parseCitationJournalJournalIssuePublicationDateComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationJournalJournalIssuePublicationDateComponent res = new Citation.CitationJournalJournalIssuePublicationDateComponent(); + protected Citation.CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent parseCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent res = new Citation.CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationJournalJournalIssuePublicationDateComponentContent(eventType, xpp, res)) + if (!parseCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -5465,7 +5841,7 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseCitationJournalJournalIssuePublicationDateComponentContent(int eventType, XmlPullParser xpp, Citation.CitationJournalJournalIssuePublicationDateComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("date")) { res.setDateElement(parseDate(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("year")) { @@ -5484,13 +5860,13 @@ public class XmlParser extends XmlParserBase { return true; } - protected Citation.CitationPublicationInfoComponent parseCitationPublicationInfoComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationPublicationInfoComponent res = new Citation.CitationPublicationInfoComponent(); + protected Citation.CitationCitedArtifactWebLocationComponent parseCitationCitedArtifactWebLocationComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactWebLocationComponent res = new Citation.CitationCitedArtifactWebLocationComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationPublicationInfoComponentContent(eventType, xpp, res)) + if (!parseCitationCitedArtifactWebLocationComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -5499,127 +5875,7 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseCitationPublicationInfoComponentContent(int eventType, XmlPullParser xpp, Citation.CitationPublicationInfoComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publishedIn")) { - res.setPublishedIn(parseCitationPublicationInfoPublishedInComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("entryDate")) { - res.setEntryDateElement(parseDateTime(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("revisionDate")) { - res.setRevisionDateElement(parseDateTime(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("pageCount")) { - res.setPageCountElement(parseString(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Citation.CitationPublicationInfoPublishedInComponent parseCitationPublicationInfoPublishedInComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationPublicationInfoPublishedInComponent res = new Citation.CitationPublicationInfoPublishedInComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationPublicationInfoPublishedInComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseCitationPublicationInfoPublishedInComponentContent(int eventType, XmlPullParser xpp, Citation.CitationPublicationInfoPublishedInComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { - res.setType(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { - res.getIdentifier().add(parseIdentifier(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("name")) { - res.setNameElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publisher")) { - res.setPublisher(parseReference(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publisherLocation")) { - res.setPublisherLocationElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("startDate")) { - res.setStartDateElement(parseDate(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Citation.CitationAlternativeTitleComponent parseCitationAlternativeTitleComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationAlternativeTitleComponent res = new Citation.CitationAlternativeTitleComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationAlternativeTitleComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseCitationAlternativeTitleComponentContent(int eventType, XmlPullParser xpp, Citation.CitationAlternativeTitleComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { - res.setType(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("language")) { - res.setLanguage(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("title")) { - res.setTitleElement(parseMarkdown(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Citation.CitationPaginationComponent parseCitationPaginationComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationPaginationComponent res = new Citation.CitationPaginationComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationPaginationComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseCitationPaginationComponentContent(int eventType, XmlPullParser xpp, Citation.CitationPaginationComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("pageString")) { - res.setPageStringElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("firstPage")) { - res.setFirstPageElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("lastPage")) { - res.setLastPageElement(parseString(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Citation.CitationArticleUrlComponent parseCitationArticleUrlComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationArticleUrlComponent res = new Citation.CitationArticleUrlComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationArticleUrlComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseCitationArticleUrlComponentContent(int eventType, XmlPullParser xpp, Citation.CitationArticleUrlComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseCitationCitedArtifactWebLocationComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactWebLocationComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setType(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("url")) { @@ -5630,13 +5886,13 @@ public class XmlParser extends XmlParserBase { return true; } - protected Citation.CitationAlternativeAbstractComponent parseCitationAlternativeAbstractComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationAlternativeAbstractComponent res = new Citation.CitationAlternativeAbstractComponent(); + protected Citation.CitationCitedArtifactClassificationComponent parseCitationCitedArtifactClassificationComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactClassificationComponent res = new Citation.CitationCitedArtifactClassificationComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationAlternativeAbstractComponentContent(eventType, xpp, res)) + if (!parseCitationCitedArtifactClassificationComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -5645,28 +5901,26 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseCitationAlternativeAbstractComponentContent(int eventType, XmlPullParser xpp, Citation.CitationAlternativeAbstractComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseCitationCitedArtifactClassificationComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactClassificationComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setType(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("language")) { - res.setLanguage(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("abstract")) { - res.setAbstractElement(parseMarkdown(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("abstractCopyright")) { - res.setAbstractCopyrightElement(parseMarkdown(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("classifier")) { + res.getClassifier().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("whoClassified")) { + res.setWhoClassified(parseCitationCitedArtifactClassificationWhoClassifiedComponent(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } return true; } - protected Citation.CitationContributorshipComponent parseCitationContributorshipComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationContributorshipComponent res = new Citation.CitationContributorshipComponent(); + protected Citation.CitationCitedArtifactClassificationWhoClassifiedComponent parseCitationCitedArtifactClassificationWhoClassifiedComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactClassificationWhoClassifiedComponent res = new Citation.CitationCitedArtifactClassificationWhoClassifiedComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationContributorshipComponentContent(eventType, xpp, res)) + if (!parseCitationCitedArtifactClassificationWhoClassifiedComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -5675,26 +5929,58 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseCitationContributorshipComponentContent(int eventType, XmlPullParser xpp, Citation.CitationContributorshipComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseCitationCitedArtifactClassificationWhoClassifiedComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactClassificationWhoClassifiedComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("person")) { + res.setPerson(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("organization")) { + res.setOrganization(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publisher")) { + res.setPublisher(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("classifierCopyright")) { + res.setClassifierCopyrightElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("freeToShare")) { + res.setFreeToShareElement(parseBoolean(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected Citation.CitationCitedArtifactContributorshipComponent parseCitationCitedArtifactContributorshipComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactContributorshipComponent res = new Citation.CitationCitedArtifactContributorshipComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseCitationCitedArtifactContributorshipComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseCitationCitedArtifactContributorshipComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactContributorshipComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("complete")) { res.setCompleteElement(parseBoolean(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("entry")) { - res.getEntry().add(parseCitationContributorshipEntryComponent(xpp)); + res.getEntry().add(parseCitationCitedArtifactContributorshipEntryComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("summary")) { - res.getSummary().add(parseCitationContributorshipSummaryComponent(xpp)); + res.getSummary().add(parseCitationCitedArtifactContributorshipSummaryComponent(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } return true; } - protected Citation.CitationContributorshipEntryComponent parseCitationContributorshipEntryComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationContributorshipEntryComponent res = new Citation.CitationContributorshipEntryComponent(); + protected Citation.CitationCitedArtifactContributorshipEntryComponent parseCitationCitedArtifactContributorshipEntryComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactContributorshipEntryComponent res = new Citation.CitationCitedArtifactContributorshipEntryComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationContributorshipEntryComponentContent(eventType, xpp, res)) + if (!parseCitationCitedArtifactContributorshipEntryComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -5703,7 +5989,7 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseCitationContributorshipEntryComponentContent(int eventType, XmlPullParser xpp, Citation.CitationContributorshipEntryComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseCitationCitedArtifactContributorshipEntryComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactContributorshipEntryComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("name")) { res.setName(parseHumanName(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("initials")) { @@ -5713,17 +5999,19 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { res.getIdentifier().add(parseIdentifier(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("affiliationInfo")) { - res.getAffiliationInfo().add(parseCitationContributorshipEntryAffiliationInfoComponent(xpp)); + res.getAffiliationInfo().add(parseCitationCitedArtifactContributorshipEntryAffiliationInfoComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("address")) { res.getAddress().add(parseAddress(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("telecom")) { res.getTelecom().add(parseContactPoint(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("contribution")) { - res.getContribution().add(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("notAnAuthor")) { - res.setNotAnAuthorElement(parseBoolean(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("correspondingAuthor")) { - res.setCorrespondingAuthorElement(parseBoolean(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("contributionType")) { + res.getContributionType().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("role")) { + res.setRole(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("contributionInstance")) { + res.getContributionInstance().add(parseCitationCitedArtifactContributorshipEntryContributionInstanceComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("correspondingContact")) { + res.setCorrespondingContactElement(parseBoolean(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("listOrder")) { res.setListOrderElement(parsePositiveInt(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ @@ -5732,13 +6020,13 @@ public class XmlParser extends XmlParserBase { return true; } - protected Citation.CitationContributorshipEntryAffiliationInfoComponent parseCitationContributorshipEntryAffiliationInfoComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationContributorshipEntryAffiliationInfoComponent res = new Citation.CitationContributorshipEntryAffiliationInfoComponent(); + protected Citation.CitationCitedArtifactContributorshipEntryAffiliationInfoComponent parseCitationCitedArtifactContributorshipEntryAffiliationInfoComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactContributorshipEntryAffiliationInfoComponent res = new Citation.CitationCitedArtifactContributorshipEntryAffiliationInfoComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationContributorshipEntryAffiliationInfoComponentContent(eventType, xpp, res)) + if (!parseCitationCitedArtifactContributorshipEntryAffiliationInfoComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -5747,7 +6035,7 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseCitationContributorshipEntryAffiliationInfoComponentContent(int eventType, XmlPullParser xpp, Citation.CitationContributorshipEntryAffiliationInfoComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseCitationCitedArtifactContributorshipEntryAffiliationInfoComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactContributorshipEntryAffiliationInfoComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("affiliation")) { res.setAffiliationElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("role")) { @@ -5760,13 +6048,13 @@ public class XmlParser extends XmlParserBase { return true; } - protected Citation.CitationContributorshipSummaryComponent parseCitationContributorshipSummaryComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationContributorshipSummaryComponent res = new Citation.CitationContributorshipSummaryComponent(); + protected Citation.CitationCitedArtifactContributorshipEntryContributionInstanceComponent parseCitationCitedArtifactContributorshipEntryContributionInstanceComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactContributorshipEntryContributionInstanceComponent res = new Citation.CitationCitedArtifactContributorshipEntryContributionInstanceComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationContributorshipSummaryComponentContent(eventType, xpp, res)) + if (!parseCitationCitedArtifactContributorshipEntryContributionInstanceComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -5775,7 +6063,33 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseCitationContributorshipSummaryComponentContent(int eventType, XmlPullParser xpp, Citation.CitationContributorshipSummaryComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseCitationCitedArtifactContributorshipEntryContributionInstanceComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactContributorshipEntryContributionInstanceComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + res.setType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("time")) { + res.setTimeElement(parseDateTime(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected Citation.CitationCitedArtifactContributorshipSummaryComponent parseCitationCitedArtifactContributorshipSummaryComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + Citation.CitationCitedArtifactContributorshipSummaryComponent res = new Citation.CitationCitedArtifactContributorshipSummaryComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseCitationCitedArtifactContributorshipSummaryComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseCitationCitedArtifactContributorshipSummaryComponentContent(int eventType, XmlPullParser xpp, Citation.CitationCitedArtifactContributorshipSummaryComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setType(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("style")) { @@ -5790,340 +6104,6 @@ public class XmlParser extends XmlParserBase { return true; } - protected Citation.CitationAlternativeFormComponent parseCitationAlternativeFormComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationAlternativeFormComponent res = new Citation.CitationAlternativeFormComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationAlternativeFormComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseCitationAlternativeFormComponentContent(int eventType, XmlPullParser xpp, Citation.CitationAlternativeFormComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publishingModel")) { - res.setPublishingModel(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("language")) { - res.setLanguage(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("journalIssue")) { - res.setJournalIssue(parseCitationAlternativeFormJournalIssueComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("pagination")) { - res.setPagination(parseCitationAlternativeFormPaginationComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publicationInfo")) { - res.setPublicationInfo(parseCitationAlternativeFormPublicationInfoComponent(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Citation.CitationAlternativeFormJournalIssueComponent parseCitationAlternativeFormJournalIssueComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationAlternativeFormJournalIssueComponent res = new Citation.CitationAlternativeFormJournalIssueComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationAlternativeFormJournalIssueComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseCitationAlternativeFormJournalIssueComponentContent(int eventType, XmlPullParser xpp, Citation.CitationAlternativeFormJournalIssueComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("citedMedium")) { - res.setCitedMedium(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("volume")) { - res.setVolumeElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("issue")) { - res.setIssueElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publicationDate")) { - res.setPublicationDate(parseCitationAlternativeFormJournalIssuePublicationDateComponent(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Citation.CitationAlternativeFormJournalIssuePublicationDateComponent parseCitationAlternativeFormJournalIssuePublicationDateComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationAlternativeFormJournalIssuePublicationDateComponent res = new Citation.CitationAlternativeFormJournalIssuePublicationDateComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationAlternativeFormJournalIssuePublicationDateComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseCitationAlternativeFormJournalIssuePublicationDateComponentContent(int eventType, XmlPullParser xpp, Citation.CitationAlternativeFormJournalIssuePublicationDateComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("date")) { - res.setDateElement(parseDate(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("year")) { - res.setYearElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("month")) { - res.setMonthElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("day")) { - res.setDayElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("season")) { - res.setSeasonElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("text")) { - res.setTextElement(parseString(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Citation.CitationAlternativeFormPaginationComponent parseCitationAlternativeFormPaginationComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationAlternativeFormPaginationComponent res = new Citation.CitationAlternativeFormPaginationComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationAlternativeFormPaginationComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseCitationAlternativeFormPaginationComponentContent(int eventType, XmlPullParser xpp, Citation.CitationAlternativeFormPaginationComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("pageString")) { - res.setPageStringElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("firstPage")) { - res.setFirstPageElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("lastPage")) { - res.setLastPageElement(parseString(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Citation.CitationAlternativeFormPublicationInfoComponent parseCitationAlternativeFormPublicationInfoComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationAlternativeFormPublicationInfoComponent res = new Citation.CitationAlternativeFormPublicationInfoComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationAlternativeFormPublicationInfoComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseCitationAlternativeFormPublicationInfoComponentContent(int eventType, XmlPullParser xpp, Citation.CitationAlternativeFormPublicationInfoComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publishedIn")) { - res.setPublishedIn(parseCitationAlternativeFormPublicationInfoPublishedInComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("entryDate")) { - res.setEntryDateElement(parseDateTime(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("revisionDate")) { - res.setRevisionDateElement(parseDateTime(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("pageCount")) { - res.setPageCountElement(parseString(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Citation.CitationAlternativeFormPublicationInfoPublishedInComponent parseCitationAlternativeFormPublicationInfoPublishedInComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationAlternativeFormPublicationInfoPublishedInComponent res = new Citation.CitationAlternativeFormPublicationInfoPublishedInComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationAlternativeFormPublicationInfoPublishedInComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseCitationAlternativeFormPublicationInfoPublishedInComponentContent(int eventType, XmlPullParser xpp, Citation.CitationAlternativeFormPublicationInfoPublishedInComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { - res.setType(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("name")) { - res.setNameElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publisher")) { - res.setPublisher(parseReference(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publisherLocation")) { - res.setPublisherLocationElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("startDate")) { - res.setStartDateElement(parseDate(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Citation.CitationKeywordListComponent parseCitationKeywordListComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationKeywordListComponent res = new Citation.CitationKeywordListComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationKeywordListComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseCitationKeywordListComponentContent(int eventType, XmlPullParser xpp, Citation.CitationKeywordListComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("owner")) { - res.setOwnerElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("keyword")) { - res.getKeyword().add(parseCitationKeywordListKeywordComponent(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Citation.CitationKeywordListKeywordComponent parseCitationKeywordListKeywordComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationKeywordListKeywordComponent res = new Citation.CitationKeywordListKeywordComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationKeywordListKeywordComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseCitationKeywordListKeywordComponentContent(int eventType, XmlPullParser xpp, Citation.CitationKeywordListKeywordComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("majorTopic")) { - res.setMajorTopicElement(parseBoolean(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("value")) { - res.setValueElement(parseString(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Citation.CitationMedlinePubMedComponent parseCitationMedlinePubMedComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationMedlinePubMedComponent res = new Citation.CitationMedlinePubMedComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationMedlinePubMedComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseCitationMedlinePubMedComponentContent(int eventType, XmlPullParser xpp, Citation.CitationMedlinePubMedComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("medlineState")) { - res.setMedlineState(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("owner")) { - res.setOwner(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("pmid")) { - res.setPmidElement(parsePositiveInt(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("pmidVersion")) { - res.setPmidVersionElement(parsePositiveInt(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dateCreated")) { - res.setDateCreatedElement(parseDate(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dateCompleted")) { - res.setDateCompletedElement(parseDate(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dateRevised")) { - res.setDateRevisedElement(parseDate(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("pubMedPubDate")) { - res.getPubMedPubDate().add(parseCitationMedlinePubMedPubMedPubDateComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publicationState")) { - res.setPublicationState(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relatedArticle")) { - res.getRelatedArticle().add(parseCitationMedlinePubMedRelatedArticleComponent(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Citation.CitationMedlinePubMedPubMedPubDateComponent parseCitationMedlinePubMedPubMedPubDateComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationMedlinePubMedPubMedPubDateComponent res = new Citation.CitationMedlinePubMedPubMedPubDateComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationMedlinePubMedPubMedPubDateComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseCitationMedlinePubMedPubMedPubDateComponentContent(int eventType, XmlPullParser xpp, Citation.CitationMedlinePubMedPubMedPubDateComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publicationState")) { - res.setPublicationState(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("date")) { - res.setDateElement(parseDateTime(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Citation.CitationMedlinePubMedRelatedArticleComponent parseCitationMedlinePubMedRelatedArticleComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Citation.CitationMedlinePubMedRelatedArticleComponent res = new Citation.CitationMedlinePubMedRelatedArticleComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseCitationMedlinePubMedRelatedArticleComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseCitationMedlinePubMedRelatedArticleComponentContent(int eventType, XmlPullParser xpp, Citation.CitationMedlinePubMedRelatedArticleComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("citationReference")) { - res.setCitationReference(parseReference(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("citationMarkdown")) { - res.setCitationMarkdownElement(parseMarkdown(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { - res.getIdentifier().add(parseIdentifier(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - protected Claim parseClaim(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { Claim res = new Claim(); parseResourceAttributes(xpp, res); @@ -7229,11 +7209,11 @@ public class XmlParser extends XmlParserBase { protected boolean parseClinicalUseIssueContraindicationComponentContent(int eventType, XmlPullParser xpp, ClinicalUseIssue.ClinicalUseIssueContraindicationComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("diseaseSymptomProcedure")) { - res.setDiseaseSymptomProcedure(parseCodeableConcept(xpp)); + res.setDiseaseSymptomProcedure(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("diseaseStatus")) { - res.setDiseaseStatus(parseCodeableConcept(xpp)); + res.setDiseaseStatus(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("comorbidity")) { - res.getComorbidity().add(parseCodeableConcept(xpp)); + res.getComorbidity().add(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("indication")) { res.getIndication().add(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("otherTherapy")) { @@ -7260,10 +7240,10 @@ public class XmlParser extends XmlParserBase { } protected boolean parseClinicalUseIssueContraindicationOtherTherapyComponentContent(int eventType, XmlPullParser xpp, ClinicalUseIssue.ClinicalUseIssueContraindicationOtherTherapyComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("therapyRelationshipType")) { - res.setTherapyRelationshipType(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "medication")) { - res.setMedication(parseType("medication", xpp)); + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relationshipType")) { + res.setRelationshipType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("therapy")) { + res.setTherapy(parseCodeableReference(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -7287,13 +7267,13 @@ public class XmlParser extends XmlParserBase { protected boolean parseClinicalUseIssueIndicationComponentContent(int eventType, XmlPullParser xpp, ClinicalUseIssue.ClinicalUseIssueIndicationComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("diseaseSymptomProcedure")) { - res.setDiseaseSymptomProcedure(parseCodeableConcept(xpp)); + res.setDiseaseSymptomProcedure(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("diseaseStatus")) { - res.setDiseaseStatus(parseCodeableConcept(xpp)); + res.setDiseaseStatus(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("comorbidity")) { - res.getComorbidity().add(parseCodeableConcept(xpp)); + res.getComorbidity().add(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("intendedEffect")) { - res.setIntendedEffect(parseCodeableConcept(xpp)); + res.setIntendedEffect(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("duration")) { res.setDuration(parseQuantity(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("undesirableEffect")) { @@ -7327,7 +7307,7 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setType(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("effect")) { - res.setEffect(parseCodeableConcept(xpp)); + res.setEffect(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("incidence")) { res.setIncidence(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("management")) { @@ -7379,7 +7359,7 @@ public class XmlParser extends XmlParserBase { protected boolean parseClinicalUseIssueUndesirableEffectComponentContent(int eventType, XmlPullParser xpp, ClinicalUseIssue.ClinicalUseIssueUndesirableEffectComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("symptomConditionEffect")) { - res.setSymptomConditionEffect(parseCodeableConcept(xpp)); + res.setSymptomConditionEffect(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("classification")) { res.setClassification(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("frequencyOfOccurrence")) { @@ -7730,6 +7710,8 @@ public class XmlParser extends XmlParserBase { res.setStatusElement(parseEnumeration(xpp, Enumerations.RequestStatus.NULL, new Enumerations.RequestStatusEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("statusReason")) { res.setStatusReason(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("intent")) { + res.setIntentElement(parseEnumeration(xpp, Enumerations.RequestIntent.NULL, new Enumerations.RequestIntentEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("category")) { res.getCategory().add(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("priority")) { @@ -8063,7 +8045,7 @@ public class XmlParser extends XmlParserBase { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("url")) { res.setUrlElement(parseUri(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { - res.addIdentifier(parseIdentifier(xpp)); + res.getIdentifier().add(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("name")) { @@ -8119,13 +8101,9 @@ public class XmlParser extends XmlParserBase { protected boolean parseConceptMapGroupComponentContent(int eventType, XmlPullParser xpp, ConceptMap.ConceptMapGroupComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("source")) { - res.setSourceElement(parseUri(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("sourceVersion")) { - res.setSourceVersionElement(parseString(xpp)); + res.setSourceElement(parseCanonical(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("target")) { - res.setTargetElement(parseUri(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("targetVersion")) { - res.setTargetVersionElement(parseString(xpp)); + res.setTargetElement(parseCanonical(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("element")) { res.getElement().add(parseConceptMapSourceElementComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("unmapped")) { @@ -9735,7 +9713,7 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("request")) { res.setRequest(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("outcome")) { - res.setOutcomeElement(parseEnumeration(xpp, Enumerations.ClaimProcessingCodes.NULL, new Enumerations.ClaimProcessingCodesEnumFactory())); + res.setOutcomeElement(parseEnumeration(xpp, CoverageEligibilityResponse.EligibilityOutcome.NULL, new CoverageEligibilityResponse.EligibilityOutcomeEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("disposition")) { res.setDispositionElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("insurer")) { @@ -10198,10 +10176,8 @@ public class XmlParser extends XmlParserBase { protected boolean parseDevicePropertyComponentContent(int eventType, XmlPullParser xpp, Device.DevicePropertyComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setType(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("valueQuantity")) { - res.getValueQuantity().add(parseQuantity(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("valueCode")) { - res.getValueCode().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "value")) { + res.setValue(parseType("value", xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -10287,11 +10263,15 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("modelNumber")) { res.setModelNumberElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { - res.setType(parseCodeableConcept(xpp)); + res.getType().add(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("specialization")) { res.getSpecialization().add(parseDeviceDefinitionSpecializationComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("hasPart")) { + res.getHasPart().add(parseDeviceDefinitionHasPartComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("packaging")) { + res.getPackaging().add(parseDeviceDefinitionPackagingComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("version")) { - res.getVersion().add(parseString(xpp)); + res.getVersion().add(parseDeviceDefinitionVersionComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("safety")) { res.getSafety().add(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("shelfLifeStorage")) { @@ -10312,8 +10292,6 @@ public class XmlParser extends XmlParserBase { res.setOnlineInformationElement(parseUri(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("quantity")) { - res.setQuantity(parseQuantity(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("parentDevice")) { res.setParentDevice(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("material")) { @@ -10404,6 +10382,148 @@ public class XmlParser extends XmlParserBase { return true; } + protected DeviceDefinition.DeviceDefinitionHasPartComponent parseDeviceDefinitionHasPartComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + DeviceDefinition.DeviceDefinitionHasPartComponent res = new DeviceDefinition.DeviceDefinitionHasPartComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseDeviceDefinitionHasPartComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseDeviceDefinitionHasPartComponentContent(int eventType, XmlPullParser xpp, DeviceDefinition.DeviceDefinitionHasPartComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reference")) { + res.setReference(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("count")) { + res.setCountElement(parseInteger(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected DeviceDefinition.DeviceDefinitionPackagingComponent parseDeviceDefinitionPackagingComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + DeviceDefinition.DeviceDefinitionPackagingComponent res = new DeviceDefinition.DeviceDefinitionPackagingComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseDeviceDefinitionPackagingComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseDeviceDefinitionPackagingComponentContent(int eventType, XmlPullParser xpp, DeviceDefinition.DeviceDefinitionPackagingComponent 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("type")) { + res.setType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("count")) { + res.setCountElement(parseInteger(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("distributor")) { + res.getDistributor().add(parseDeviceDefinitionPackagingDistributorComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("udiDeviceIdentifier")) { + res.getUdiDeviceIdentifier().add(parseDeviceDefinitionPackagingUdiDeviceIdentifierComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("packaging")) { + res.getPackaging().add(parseDeviceDefinitionPackagingComponent(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected DeviceDefinition.DeviceDefinitionPackagingDistributorComponent parseDeviceDefinitionPackagingDistributorComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + DeviceDefinition.DeviceDefinitionPackagingDistributorComponent res = new DeviceDefinition.DeviceDefinitionPackagingDistributorComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseDeviceDefinitionPackagingDistributorComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseDeviceDefinitionPackagingDistributorComponentContent(int eventType, XmlPullParser xpp, DeviceDefinition.DeviceDefinitionPackagingDistributorComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("name")) { + res.setNameElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("organizationReference")) { + res.getOrganizationReference().add(parseReference(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected DeviceDefinition.DeviceDefinitionPackagingUdiDeviceIdentifierComponent parseDeviceDefinitionPackagingUdiDeviceIdentifierComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + DeviceDefinition.DeviceDefinitionPackagingUdiDeviceIdentifierComponent res = new DeviceDefinition.DeviceDefinitionPackagingUdiDeviceIdentifierComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseDeviceDefinitionPackagingUdiDeviceIdentifierComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseDeviceDefinitionPackagingUdiDeviceIdentifierComponentContent(int eventType, XmlPullParser xpp, DeviceDefinition.DeviceDefinitionPackagingUdiDeviceIdentifierComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("deviceIdentifier")) { + res.setDeviceIdentifierElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("issuer")) { + res.setIssuerElement(parseUri(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("jurisdiction")) { + res.setJurisdictionElement(parseUri(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected DeviceDefinition.DeviceDefinitionVersionComponent parseDeviceDefinitionVersionComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + DeviceDefinition.DeviceDefinitionVersionComponent res = new DeviceDefinition.DeviceDefinitionVersionComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseDeviceDefinitionVersionComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseDeviceDefinitionVersionComponentContent(int eventType, XmlPullParser xpp, DeviceDefinition.DeviceDefinitionVersionComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + res.setType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("component")) { + res.setComponent(parseIdentifier(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("value")) { + res.setValueElement(parseString(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + protected DeviceDefinition.DeviceDefinitionCapabilityComponent parseDeviceDefinitionCapabilityComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { DeviceDefinition.DeviceDefinitionCapabilityComponent res = new DeviceDefinition.DeviceDefinitionCapabilityComponent(); parseElementAttributes(xpp, res); @@ -10590,8 +10710,12 @@ public class XmlParser extends XmlParserBase { res.setIntentElement(parseEnumeration(xpp, Enumerations.RequestIntent.NULL, new Enumerations.RequestIntentEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("priority")) { res.setPriorityElement(parseEnumeration(xpp, Enumerations.RequestPriority.NULL, new Enumerations.RequestPriorityEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("doNotPerform")) { + res.setDoNotPerformElement(parseBoolean(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) { res.setCode(parseCodeableReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("quantity")) { + res.setQuantityElement(parseInteger(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("parameter")) { res.getParameter().add(parseDeviceRequestParameterComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subject")) { @@ -10650,13 +10774,13 @@ public class XmlParser extends XmlParserBase { return true; } - protected DeviceUseStatement parseDeviceUseStatement(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - DeviceUseStatement res = new DeviceUseStatement(); + protected DeviceUsage parseDeviceUsage(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + DeviceUsage res = new DeviceUsage(); parseResourceAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseDeviceUseStatementContent(eventType, xpp, res)) + if (!parseDeviceUsageContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -10665,13 +10789,13 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseDeviceUseStatementContent(int eventType, XmlPullParser xpp, DeviceUseStatement res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseDeviceUsageContent(int eventType, XmlPullParser xpp, DeviceUsage res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { res.getIdentifier().add(parseIdentifier(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("basedOn")) { res.getBasedOn().add(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) { - res.setStatusElement(parseEnumeration(xpp, DeviceUseStatement.DeviceUseStatementStatus.NULL, new DeviceUseStatement.DeviceUseStatementStatusEnumFactory())); + res.setStatusElement(parseEnumeration(xpp, DeviceUsage.DeviceUsageStatus.NULL, new DeviceUsage.DeviceUsageStatusEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("category")) { res.getCategory().add(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subject")) { @@ -10750,6 +10874,8 @@ public class XmlParser extends XmlParserBase { res.getImagingStudy().add(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("media")) { res.getMedia().add(parseDiagnosticReportMediaComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("composition")) { + res.setComposition(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("conclusion")) { res.setConclusionElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("conclusionCode")) { @@ -11357,7 +11483,7 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("request")) { res.setRequest(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("outcome")) { - res.setOutcomeElement(parseEnumeration(xpp, Enumerations.ClaimProcessingCodes.NULL, new Enumerations.ClaimProcessingCodesEnumFactory())); + res.setOutcomeElement(parseEnumeration(xpp, EnrollmentResponse.EnrollmentOutcome.NULL, new EnrollmentResponse.EnrollmentOutcomeEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("disposition")) { res.setDispositionElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("created")) { @@ -11574,6 +11700,8 @@ public class XmlParser extends XmlParserBase { res.setVersionElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("title")) { res.setTitleElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "citeAs")) { + res.setCiteAs(parseType("citeAs", xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) { res.setStatusElement(parseEnumeration(xpp, Enumerations.PublicationStatus.NULL, new Enumerations.PublicationStatusEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("date")) { @@ -11672,44 +11800,18 @@ public class XmlParser extends XmlParserBase { } protected boolean parseEvidenceCertaintyComponentContent(int eventType, XmlPullParser xpp, Evidence.EvidenceCertaintyComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) { - res.setDescriptionElement(parseString(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("rating")) { - res.getRating().add(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("certaintySubcomponent")) { - res.getCertaintySubcomponent().add(parseEvidenceCertaintyCertaintySubcomponentComponent(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Evidence.EvidenceCertaintyCertaintySubcomponentComponent parseEvidenceCertaintyCertaintySubcomponentComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Evidence.EvidenceCertaintyCertaintySubcomponentComponent res = new Evidence.EvidenceCertaintyCertaintySubcomponentComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseEvidenceCertaintyCertaintySubcomponentComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseEvidenceCertaintyCertaintySubcomponentComponentContent(int eventType, XmlPullParser xpp, Evidence.EvidenceCertaintyCertaintySubcomponentComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) { res.setDescriptionElement(parseString(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("type")) { - res.getType().add(parseCodeableConcept(xpp)); + res.setType(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("rating")) { - res.getRating().add(parseCodeableConcept(xpp)); + res.setRating(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("rater")) { + res.setRaterElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subcomponent")) { + res.getSubcomponent().add(parseEvidenceCertaintyComponent(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -11742,8 +11844,8 @@ public class XmlParser extends XmlParserBase { res.getIdentifier().add(parseIdentifier(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relatedIdentifier")) { res.getRelatedIdentifier().add(parseIdentifier(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("citeAs")) { - res.setCiteAs(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "citeAs")) { + res.setCiteAs(parseType("citeAs", xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setType(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) { @@ -11890,6 +11992,8 @@ public class XmlParser extends XmlParserBase { res.getEntryClassifier().add(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("entryReference")) { res.getEntryReference().add(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("entryQuantity")) { + res.getEntryQuantity().add(parseQuantity(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("emptyReason")) { res.setEmptyReason(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("section")) { @@ -13402,8 +13506,8 @@ public class XmlParser extends XmlParserBase { res.setStatusDateElement(parseDate(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("statusReason")) { res.setStatusReasonElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("expressedBy")) { - res.setExpressedBy(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("source")) { + res.setSource(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("addresses")) { res.getAddresses().add(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) { @@ -14836,6 +14940,8 @@ public class XmlParser extends XmlParserBase { res.setRole(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("function")) { res.getFunction().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("group")) { + res.setGroup(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) { res.setDescriptionElement(parseMarkdown(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("allergenicIndicator")) { @@ -14868,8 +14974,8 @@ public class XmlParser extends XmlParserBase { } protected boolean parseIngredientSubstanceComponentContent(int eventType, XmlPullParser xpp, Ingredient.IngredientSubstanceComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "code")) { - res.setCode(parseType("code", xpp)); + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) { + res.setCode(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("strength")) { res.getStrength().add(parseIngredientSubstanceStrengthComponent(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ @@ -14894,18 +15000,20 @@ public class XmlParser extends XmlParserBase { } protected boolean parseIngredientSubstanceStrengthComponentContent(int eventType, XmlPullParser xpp, Ingredient.IngredientSubstanceStrengthComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("presentation")) { - res.setPresentation(parseRatio(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("presentationHighLimit")) { - res.setPresentationHighLimit(parseRatio(xpp)); + if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "presentation")) { + res.setPresentation(parseType("presentation", xpp)); + } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "presentationHighLimit")) { + res.setPresentationHighLimit(parseType("presentationHighLimit", xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("presentationText")) { res.setPresentationTextElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("concentration")) { - res.setConcentration(parseRatio(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("concentrationHighLimit")) { - res.setConcentrationHighLimit(parseRatio(xpp)); + } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "concentration")) { + res.setConcentration(parseType("concentration", xpp)); + } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "concentrationHighLimit")) { + res.setConcentrationHighLimit(parseType("concentrationHighLimit", xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("concentrationText")) { res.setConcentrationTextElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("basis")) { + res.setBasis(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("measurementPoint")) { res.setMeasurementPointElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("country")) { @@ -14934,12 +15042,12 @@ public class XmlParser extends XmlParserBase { } protected boolean parseIngredientSubstanceStrengthReferenceStrengthComponentContent(int eventType, XmlPullParser xpp, Ingredient.IngredientSubstanceStrengthReferenceStrengthComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "substance")) { - res.setSubstance(parseType("substance", xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("strength")) { - res.setStrength(parseRatio(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("strengthHighLimit")) { - res.setStrengthHighLimit(parseRatio(xpp)); + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("substance")) { + res.setSubstance(parseCodeableReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "strength")) { + res.setStrength(parseType("strength", xpp)); + } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "strengthHighLimit")) { + res.setStrengthHighLimit(parseType("strengthHighLimit", xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("measurementPoint")) { res.setMeasurementPointElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("country")) { @@ -14966,8 +15074,8 @@ public class XmlParser extends XmlParserBase { } protected boolean parseIngredientSpecifiedSubstanceComponentContent(int eventType, XmlPullParser xpp, Ingredient.IngredientSpecifiedSubstanceComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "code")) { - res.setCode(parseType("code", xpp)); + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) { + res.setCode(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("group")) { res.setGroup(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("confidentiality")) { @@ -15288,6 +15396,114 @@ public class XmlParser extends XmlParserBase { return true; } + protected InventoryReport parseInventoryReport(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + InventoryReport res = new InventoryReport(); + parseResourceAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseInventoryReportContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseInventoryReportContent(int eventType, XmlPullParser xpp, InventoryReport res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { + res.getIdentifier().add(parseIdentifier(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) { + res.setStatusElement(parseEnumeration(xpp, InventoryReport.InventoryReportStatus.NULL, new InventoryReport.InventoryReportStatusEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("countType")) { + res.setCountTypeElement(parseEnumeration(xpp, InventoryReport.InventoryCountType.NULL, new InventoryReport.InventoryCountTypeEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("operationType")) { + res.setOperationType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("operationTypeReason")) { + res.setOperationTypeReason(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reportedDateTime")) { + res.setReportedDateTimeElement(parseDateTime(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reporter")) { + res.setReporter(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reportingPeriod")) { + res.setReportingPeriod(parsePeriod(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("inventoryListing")) { + res.getInventoryListing().add(parseInventoryReportInventoryListingComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("note")) { + res.setNote(parseAnnotation(xpp)); + } else if (!parseDomainResourceContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected InventoryReport.InventoryReportInventoryListingComponent parseInventoryReportInventoryListingComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + InventoryReport.InventoryReportInventoryListingComponent res = new InventoryReport.InventoryReportInventoryListingComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseInventoryReportInventoryListingComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseInventoryReportInventoryListingComponentContent(int eventType, XmlPullParser xpp, InventoryReport.InventoryReportInventoryListingComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("location")) { + res.setLocation(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("itemStatus")) { + res.setItemStatus(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("countingDateTime")) { + res.setCountingDateTimeElement(parseDateTime(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("items")) { + res.getItems().add(parseInventoryReportInventoryListingItemsComponent(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected InventoryReport.InventoryReportInventoryListingItemsComponent parseInventoryReportInventoryListingItemsComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + InventoryReport.InventoryReportInventoryListingItemsComponent res = new InventoryReport.InventoryReportInventoryListingItemsComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseInventoryReportInventoryListingItemsComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseInventoryReportInventoryListingItemsComponentContent(int eventType, XmlPullParser xpp, InventoryReport.InventoryReportInventoryListingItemsComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("category")) { + res.setCategory(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("quantity")) { + res.setQuantity(parseQuantity(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("item")) { + res.setItem(parseCodeableReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("lot")) { + res.setLotElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("serial")) { + res.setSerialElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("expiry")) { + res.setExpiryElement(parseDateTime(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("manufacturingDate")) { + res.setManufacturingDateElement(parseDateTime(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + protected Invoice parseInvoice(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { Invoice res = new Invoice(); parseResourceAttributes(xpp, res); @@ -15781,7 +15997,7 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("manufacturer")) { res.getManufacturer().add(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("ingredient")) { - res.getIngredient().add(parseReference(xpp)); + res.getIngredient().add(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("property")) { res.getProperty().add(parseManufacturedItemDefinitionPropertyComponent(xpp)); } else if (!parseDomainResourceContent(eventType, xpp, res)){ @@ -15850,6 +16066,8 @@ public class XmlParser extends XmlParserBase { res.setExperimentalElement(parseBoolean(xpp)); } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "subject")) { res.setSubject(parseType("subject", xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("basis")) { + res.setBasisElement(parseEnumeration(xpp, Enumerations.FHIRAllTypes.NULL, new Enumerations.FHIRAllTypesEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("date")) { res.setDateElement(parseDateTime(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publisher")) { @@ -15892,6 +16110,8 @@ public class XmlParser extends XmlParserBase { res.setDisclaimerElement(parseMarkdown(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("scoring")) { res.setScoring(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("scoringUnit")) { + res.setScoringUnit(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("compositeScoring")) { res.setCompositeScoring(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { @@ -15940,6 +16160,16 @@ public class XmlParser extends XmlParserBase { res.setCode(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) { res.setDescriptionElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + res.getType().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("basis")) { + res.setBasisElement(parseEnumeration(xpp, Enumerations.FHIRAllTypes.NULL, new Enumerations.FHIRAllTypesEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("scoring")) { + res.setScoring(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("scoringUnit")) { + res.setScoringUnit(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("improvementNotation")) { + res.setImprovementNotation(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("population")) { res.getPopulation().add(parseMeasureGroupPopulationComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("stratifier")) { @@ -15972,6 +16202,10 @@ public class XmlParser extends XmlParserBase { res.setDescriptionElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("criteria")) { res.setCriteria(parseExpression(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("inputPopulationId")) { + res.setInputPopulationIdElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("aggregateMethod")) { + res.setAggregateMethod(parseCodeableConcept(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -16088,6 +16322,8 @@ public class XmlParser extends XmlParserBase { res.setStatusElement(parseEnumeration(xpp, MeasureReport.MeasureReportStatus.NULL, new MeasureReport.MeasureReportStatusEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setTypeElement(parseEnumeration(xpp, MeasureReport.MeasureReportType.NULL, new MeasureReport.MeasureReportTypeEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dataUpdateType")) { + res.setDataUpdateTypeElement(parseEnumeration(xpp, MeasureReport.SubmitDataUpdateType.NULL, new MeasureReport.SubmitDataUpdateTypeEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("measure")) { res.setMeasureElement(parseCanonical(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subject")) { @@ -16096,8 +16332,12 @@ public class XmlParser extends XmlParserBase { res.setDateElement(parseDateTime(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reporter")) { res.setReporter(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reportingVendor")) { + res.setReportingVendor(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("period")) { res.setPeriod(parsePeriod(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("scoring")) { + res.setScoring(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("improvementNotation")) { res.setImprovementNotation(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("group")) { @@ -16130,8 +16370,8 @@ public class XmlParser extends XmlParserBase { res.setCode(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("population")) { res.getPopulation().add(parseMeasureReportGroupPopulationComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("measureScore")) { - res.setMeasureScore(parseQuantity(xpp)); + } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "measureScore")) { + res.setMeasureScore(parseType("measureScore", xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("stratifier")) { res.getStratifier().add(parseMeasureReportGroupStratifierComponent(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ @@ -16210,14 +16450,14 @@ public class XmlParser extends XmlParserBase { } protected boolean parseMeasureReportStratifierGroupComponentContent(int eventType, XmlPullParser xpp, MeasureReport.StratifierGroupComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("value")) { - res.setValue(parseCodeableConcept(xpp)); + if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "value")) { + res.setValue(parseType("value", xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("component")) { res.getComponent().add(parseMeasureReportStratifierGroupComponentComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("population")) { res.getPopulation().add(parseMeasureReportStratifierGroupPopulationComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("measureScore")) { - res.setMeasureScore(parseQuantity(xpp)); + } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "measureScore")) { + res.setMeasureScore(parseType("measureScore", xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -16242,8 +16482,8 @@ public class XmlParser extends XmlParserBase { protected boolean parseMeasureReportStratifierGroupComponentComponentContent(int eventType, XmlPullParser xpp, MeasureReport.StratifierGroupComponentComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) { res.setCode(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("value")) { - res.setValue(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "value")) { + res.setValue(parseType("value", xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -16300,8 +16540,8 @@ public class XmlParser extends XmlParserBase { res.setCode(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) { res.setStatusElement(parseEnumeration(xpp, Medication.MedicationStatusCodes.NULL, new Medication.MedicationStatusCodesEnumFactory())); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("manufacturer")) { - res.setManufacturer(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("sponsor")) { + res.setSponsor(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("doseForm")) { res.setDoseForm(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("amount")) { @@ -16648,8 +16888,8 @@ public class XmlParser extends XmlParserBase { res.setStatusElement(parseEnumeration(xpp, MedicationKnowledge.MedicationKnowledgeStatusCodes.NULL, new MedicationKnowledge.MedicationKnowledgeStatusCodesEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("author")) { res.setAuthor(parseReference(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("manufacturer")) { - res.setManufacturer(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("sponsor")) { + res.setSponsor(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("doseForm")) { res.setDoseForm(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("amount")) { @@ -16678,8 +16918,8 @@ public class XmlParser extends XmlParserBase { res.getCost().add(parseMedicationKnowledgeCostComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("monitoringProgram")) { res.getMonitoringProgram().add(parseMedicationKnowledgeMonitoringProgramComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("administrationGuideline")) { - res.getAdministrationGuideline().add(parseMedicationKnowledgeAdministrationGuidelineComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("indicationGuideline")) { + res.getIndicationGuideline().add(parseMedicationKnowledgeIndicationGuidelineComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("medicineClassification")) { res.getMedicineClassification().add(parseMedicationKnowledgeMedicineClassificationComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("packaging")) { @@ -16769,7 +17009,7 @@ public class XmlParser extends XmlParserBase { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("item")) { res.setItem(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("isActive")) { - res.setIsActiveElement(parseBoolean(xpp)); + res.setIsActive(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "strength")) { res.setStrength(parseType("strength", xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ @@ -16834,13 +17074,13 @@ public class XmlParser extends XmlParserBase { return true; } - protected MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineComponent parseMedicationKnowledgeAdministrationGuidelineComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineComponent res = new MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineComponent(); + protected MedicationKnowledge.MedicationKnowledgeIndicationGuidelineComponent parseMedicationKnowledgeIndicationGuidelineComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + MedicationKnowledge.MedicationKnowledgeIndicationGuidelineComponent res = new MedicationKnowledge.MedicationKnowledgeIndicationGuidelineComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseMedicationKnowledgeAdministrationGuidelineComponentContent(eventType, xpp, res)) + if (!parseMedicationKnowledgeIndicationGuidelineComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -16849,26 +17089,24 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseMedicationKnowledgeAdministrationGuidelineComponentContent(int eventType, XmlPullParser xpp, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dosage")) { - res.getDosage().add(parseMedicationKnowledgeAdministrationGuidelineDosageComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("indication")) { - res.setIndication(parseCodeableReference(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("patientCharacteristic")) { - res.getPatientCharacteristic().add(parseMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent(xpp)); + protected boolean parseMedicationKnowledgeIndicationGuidelineComponentContent(int eventType, XmlPullParser xpp, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("indication")) { + res.getIndication().add(parseCodeableReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dosingGuideline")) { + res.getDosingGuideline().add(parseMedicationKnowledgeIndicationGuidelineDosingGuidelineComponent(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } return true; } - protected MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineDosageComponent parseMedicationKnowledgeAdministrationGuidelineDosageComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineDosageComponent res = new MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineDosageComponent(); + protected MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent parseMedicationKnowledgeIndicationGuidelineDosingGuidelineComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent res = new MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseMedicationKnowledgeAdministrationGuidelineDosageComponentContent(eventType, xpp, res)) + if (!parseMedicationKnowledgeIndicationGuidelineDosingGuidelineComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -16877,7 +17115,37 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseMedicationKnowledgeAdministrationGuidelineDosageComponentContent(int eventType, XmlPullParser xpp, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineDosageComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseMedicationKnowledgeIndicationGuidelineDosingGuidelineComponentContent(int eventType, XmlPullParser xpp, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("treatmentIntent")) { + res.setTreatmentIntent(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dosage")) { + res.getDosage().add(parseMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("administrationTreatment")) { + res.setAdministrationTreatment(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("patientCharacteristic")) { + res.getPatientCharacteristic().add(parseMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent parseMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent res = new MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponentContent(int eventType, XmlPullParser xpp, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setType(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dosage")) { @@ -16888,13 +17156,13 @@ public class XmlParser extends XmlParserBase { return true; } - protected MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent parseMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent res = new MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent(); + protected MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent parseMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent res = new MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponentContent(eventType, xpp, res)) + if (!parseMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -16903,7 +17171,7 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponentContent(int eventType, XmlPullParser xpp, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponentContent(int eventType, XmlPullParser xpp, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setType(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "value")) { @@ -17228,6 +17496,10 @@ public class XmlParser extends XmlParserBase { res.setExpectedSupplyDuration(parseDuration(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dispenser")) { res.setDispenser(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("dispenserInstruction")) { + res.getDispenserInstruction().add(parseAnnotation(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("doseAdministrationAid")) { + res.setDoseAdministrationAid(parseCodeableConcept(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -17336,8 +17608,8 @@ public class XmlParser extends XmlParserBase { 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")) { - res.setTakenAsOrderedElement(parseBoolean(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("adherence")) { + res.setAdherence(parseCodeableConcept(xpp)); } else if (!parseDomainResourceContent(eventType, xpp, res)){ return false; } @@ -17392,12 +17664,8 @@ public class XmlParser extends XmlParserBase { res.getCharacteristic().add(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("marketingStatus")) { res.getMarketingStatus().add(parseMarketingStatus(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("pharmaceuticalProduct")) { - res.getPharmaceuticalProduct().add(parseReference(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("packagedMedicinalProduct")) { - res.getPackagedMedicinalProduct().add(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("ingredient")) { - res.getIngredient().add(parseReference(xpp)); + res.getIngredient().add(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("impurity")) { res.getImpurity().add(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("attachedDocument")) { @@ -17412,8 +17680,12 @@ public class XmlParser extends XmlParserBase { res.getName().add(parseMedicinalProductDefinitionNameComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("crossReference")) { res.getCrossReference().add(parseMedicinalProductDefinitionCrossReferenceComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("manufacturingBusinessOperation")) { - res.getManufacturingBusinessOperation().add(parseMedicinalProductDefinitionManufacturingBusinessOperationComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("operation")) { + res.getOperation().add(parseMedicinalProductDefinitionOperationComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("package")) { + res.getPackage().add(parseMedicinalProductDefinitionPackageComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("administrableProduct")) { + res.getAdministrableProduct().add(parseMedicinalProductDefinitionAdministrableProductComponent(xpp)); } else if (!parseDomainResourceContent(eventType, xpp, res)){ return false; } @@ -17556,13 +17828,13 @@ public class XmlParser extends XmlParserBase { return true; } - protected MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent parseMedicinalProductDefinitionManufacturingBusinessOperationComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent res = new MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent(); + protected MedicinalProductDefinition.MedicinalProductDefinitionOperationComponent parseMedicinalProductDefinitionOperationComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + MedicinalProductDefinition.MedicinalProductDefinitionOperationComponent res = new MedicinalProductDefinition.MedicinalProductDefinitionOperationComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseMedicinalProductDefinitionManufacturingBusinessOperationComponentContent(eventType, xpp, res)) + if (!parseMedicinalProductDefinitionOperationComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -17571,13 +17843,13 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseMedicinalProductDefinitionManufacturingBusinessOperationComponentContent(int eventType, XmlPullParser xpp, MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseMedicinalProductDefinitionOperationComponentContent(int eventType, XmlPullParser xpp, MedicinalProductDefinition.MedicinalProductDefinitionOperationComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setType(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("effectiveDate")) { res.setEffectiveDate(parsePeriod(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("organization")) { + res.getOrganization().add(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")) { @@ -17588,6 +17860,60 @@ public class XmlParser extends XmlParserBase { return true; } + protected MedicinalProductDefinition.MedicinalProductDefinitionPackageComponent parseMedicinalProductDefinitionPackageComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + MedicinalProductDefinition.MedicinalProductDefinitionPackageComponent res = new MedicinalProductDefinition.MedicinalProductDefinitionPackageComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseMedicinalProductDefinitionPackageComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseMedicinalProductDefinitionPackageComponentContent(int eventType, XmlPullParser xpp, MedicinalProductDefinition.MedicinalProductDefinitionPackageComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + res.setType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "size")) { + res.setSize(parseType("size", xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("package")) { + res.setPackage(parseReference(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected MedicinalProductDefinition.MedicinalProductDefinitionAdministrableProductComponent parseMedicinalProductDefinitionAdministrableProductComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + MedicinalProductDefinition.MedicinalProductDefinitionAdministrableProductComponent res = new MedicinalProductDefinition.MedicinalProductDefinitionAdministrableProductComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseMedicinalProductDefinitionAdministrableProductComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseMedicinalProductDefinitionAdministrableProductComponentContent(int eventType, XmlPullParser xpp, MedicinalProductDefinition.MedicinalProductDefinitionAdministrableProductComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("route")) { + res.getRoute().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("product")) { + res.setProduct(parseReference(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + protected MessageDefinition parseMessageDefinition(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { MessageDefinition res = new MessageDefinition(); parseResourceAttributes(xpp, res); @@ -18204,6 +18530,8 @@ public class XmlParser extends XmlParserBase { res.setVersionElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("name")) { res.setNameElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("title")) { + res.setTitleElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) { res.setStatusElement(parseEnumeration(xpp, Enumerations.PublicationStatus.NULL, new Enumerations.PublicationStatusEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("kind")) { @@ -18260,6 +18588,8 @@ public class XmlParser extends XmlParserBase { res.setCommentElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("period")) { res.setPeriod(parsePeriod(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("authoritative")) { + res.setAuthoritativeElement(parseBoolean(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -18828,6 +19158,8 @@ public class XmlParser extends XmlParserBase { protected boolean parseObservationContent(int eventType, XmlPullParser xpp, Observation res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { res.getIdentifier().add(parseIdentifier(xpp)); + } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "instantiates")) { + res.setInstantiates(parseType("instantiates", xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("basedOn")) { res.getBasedOn().add(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("partOf")) { @@ -18968,18 +19300,14 @@ public class XmlParser extends XmlParserBase { 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("name")) { + res.setNameElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("title")) { res.setTitleElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("derivedFromCanonical")) { - res.getDerivedFromCanonical().add(parseCanonical(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("derivedFromUri")) { - res.getDerivedFromUri().add(parseUri(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) { res.setStatusElement(parseEnumeration(xpp, Enumerations.PublicationStatus.NULL, new Enumerations.PublicationStatusEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("experimental")) { res.setExperimentalElement(parseBoolean(xpp)); - } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "subject")) { - res.setSubject(parseType("subject", xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("date")) { res.setDateElement(parseDateTime(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("publisher")) { @@ -19002,6 +19330,12 @@ public class XmlParser extends XmlParserBase { res.setLastReviewDateElement(parseDate(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("effectivePeriod")) { res.setEffectivePeriod(parsePeriod(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("derivedFromCanonical")) { + res.getDerivedFromCanonical().add(parseCanonical(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("derivedFromUri")) { + res.getDerivedFromUri().add(parseUri(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subject")) { + res.setSubject(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("performerType")) { res.setPerformerType(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("category")) { @@ -19017,23 +19351,15 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("method")) { res.setMethod(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("specimen")) { - res.setSpecimen(parseReference(xpp)); + res.getSpecimen().add(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("device")) { - res.setDevice(parseReference(xpp)); + res.getDevice().add(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("preferredReportName")) { res.setPreferredReportNameElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("quantitativeDetails")) { res.setQuantitativeDetails(parseObservationDefinitionQuantitativeDetailsComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("qualifiedInterval")) { - res.getQualifiedInterval().add(parseObservationDefinitionQualifiedIntervalComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("validCodedValueSet")) { - res.setValidCodedValueSet(parseReference(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("normalCodedValueSet")) { - res.setNormalCodedValueSet(parseReference(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("abnormalCodedValueSet")) { - res.setAbnormalCodedValueSet(parseReference(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("criticalCodedValueSet")) { - res.setCriticalCodedValueSet(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("qualifiedValue")) { + res.getQualifiedValue().add(parseObservationDefinitionQualifiedValueComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("hasMember")) { res.getHasMember().add(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("component")) { @@ -19060,10 +19386,10 @@ public class XmlParser extends XmlParserBase { } protected boolean parseObservationDefinitionQuantitativeDetailsComponentContent(int eventType, XmlPullParser xpp, ObservationDefinition.ObservationDefinitionQuantitativeDetailsComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("customaryUnit")) { - res.setCustomaryUnit(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("unit")) { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("unit")) { res.setUnit(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("customaryUnit")) { + res.setCustomaryUnit(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("conversionFactor")) { res.setConversionFactorElement(parseDecimal(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("decimalPrecision")) { @@ -19074,13 +19400,13 @@ public class XmlParser extends XmlParserBase { return true; } - protected ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent parseObservationDefinitionQualifiedIntervalComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent res = new ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent(); + protected ObservationDefinition.ObservationDefinitionQualifiedValueComponent parseObservationDefinitionQualifiedValueComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + ObservationDefinition.ObservationDefinitionQualifiedValueComponent res = new ObservationDefinition.ObservationDefinitionQualifiedValueComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseObservationDefinitionQualifiedIntervalComponentContent(eventType, xpp, res)) + if (!parseObservationDefinitionQualifiedValueComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -19089,12 +19415,8 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseObservationDefinitionQualifiedIntervalComponentContent(int eventType, XmlPullParser xpp, ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("category")) { - res.setCategoryElement(parseEnumeration(xpp, ObservationDefinition.ObservationRangeCategory.NULL, new ObservationDefinition.ObservationRangeCategoryEnumFactory())); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("range")) { - res.setRange(parseRange(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("context")) { + protected boolean parseObservationDefinitionQualifiedValueComponentContent(int eventType, XmlPullParser xpp, ObservationDefinition.ObservationDefinitionQualifiedValueComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("context")) { res.setContext(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("appliesTo")) { res.getAppliesTo().add(parseCodeableConcept(xpp)); @@ -19106,6 +19428,18 @@ public class XmlParser extends XmlParserBase { res.setGestationalAge(parseRange(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("condition")) { res.setConditionElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("rangeCategory")) { + res.setRangeCategoryElement(parseEnumeration(xpp, ObservationDefinition.ObservationRangeCategory.NULL, new ObservationDefinition.ObservationRangeCategoryEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("range")) { + res.setRange(parseRange(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("validCodedValueSet")) { + res.setValidCodedValueSetElement(parseCanonical(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("normalCodedValueSet")) { + res.setNormalCodedValueSetElement(parseCanonical(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("abnormalCodedValueSet")) { + res.setAbnormalCodedValueSetElement(parseCanonical(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("criticalCodedValueSet")) { + res.setCriticalCodedValueSetElement(parseCanonical(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -19134,8 +19468,8 @@ public class XmlParser extends XmlParserBase { res.getPermittedDataType().add(parseEnumeration(xpp, ObservationDefinition.ObservationDataType.NULL, new ObservationDefinition.ObservationDataTypeEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("quantitativeDetails")) { res.setQuantitativeDetails(parseObservationDefinitionQuantitativeDetailsComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("qualifiedInterval")) { - res.getQualifiedInterval().add(parseObservationDefinitionQualifiedIntervalComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("qualifiedValue")) { + res.getQualifiedValue().add(parseObservationDefinitionQualifiedValueComponent(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -19542,6 +19876,8 @@ public class XmlParser extends XmlParserBase { res.setStatus(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("statusDate")) { res.setStatusDateElement(parseDateTime(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("containedItemQuantity")) { + res.getContainedItemQuantity().add(parseQuantity(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) { res.setDescriptionElement(parseMarkdown(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("legalStatusOfSupply")) { @@ -19556,42 +19892,16 @@ public class XmlParser extends XmlParserBase { res.setMarketingAuthorization(parseReference(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("batchIdentifier")) { - res.getBatchIdentifier().add(parsePackagedProductDefinitionBatchIdentifierComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("attachedDocument")) { + res.getAttachedDocument().add(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("package")) { - res.getPackage().add(parsePackagedProductDefinitionPackageComponent(xpp)); + res.setPackage(parsePackagedProductDefinitionPackageComponent(xpp)); } else if (!parseDomainResourceContent(eventType, xpp, res)){ return false; } return true; } - protected PackagedProductDefinition.PackagedProductDefinitionBatchIdentifierComponent parsePackagedProductDefinitionBatchIdentifierComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - PackagedProductDefinition.PackagedProductDefinitionBatchIdentifierComponent res = new PackagedProductDefinition.PackagedProductDefinitionBatchIdentifierComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parsePackagedProductDefinitionBatchIdentifierComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parsePackagedProductDefinitionBatchIdentifierComponentContent(int eventType, XmlPullParser xpp, PackagedProductDefinition.PackagedProductDefinitionBatchIdentifierComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("outerPackaging")) { - res.setOuterPackaging(parseIdentifier(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("immediatePackaging")) { - res.setImmediatePackaging(parseIdentifier(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ - return false; - } - return true; - } - protected PackagedProductDefinition.PackagedProductDefinitionPackageComponent parsePackagedProductDefinitionPackageComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { PackagedProductDefinition.PackagedProductDefinitionPackageComponent res = new PackagedProductDefinition.PackagedProductDefinitionPackageComponent(); parseElementAttributes(xpp, res); @@ -19677,7 +19987,7 @@ public class XmlParser extends XmlParserBase { protected boolean parsePackagedProductDefinitionPackageContainedItemComponentContent(int eventType, XmlPullParser xpp, PackagedProductDefinition.PackagedProductDefinitionPackageContainedItemComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("item")) { - res.getItem().add(parseReference(xpp)); + res.getItem().add(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "amount")) { res.setAmount(parseType("amount", xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ @@ -19959,7 +20269,7 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("requestor")) { res.setRequestor(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("outcome")) { - res.setOutcomeElement(parseEnumeration(xpp, Enumerations.ClaimProcessingCodes.NULL, new Enumerations.ClaimProcessingCodesEnumFactory())); + res.setOutcomeElement(parseEnumeration(xpp, PaymentReconciliation.PaymentOutcome.NULL, new PaymentReconciliation.PaymentOutcomeEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("disposition")) { res.setDispositionElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("paymentDate")) { @@ -20288,6 +20598,8 @@ public class XmlParser extends XmlParserBase { res.getLibrary().add(parseCanonical(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("goal")) { res.getGoal().add(parsePlanDefinitionGoalComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("actor")) { + res.getActor().add(parsePlanDefinitionActorComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("action")) { res.getAction().add(parsePlanDefinitionActionComponent(xpp)); } else if (!parseMetadataResourceContent(eventType, xpp, res)){ @@ -20360,6 +20672,62 @@ public class XmlParser extends XmlParserBase { return true; } + protected PlanDefinition.PlanDefinitionActorComponent parsePlanDefinitionActorComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + PlanDefinition.PlanDefinitionActorComponent res = new PlanDefinition.PlanDefinitionActorComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parsePlanDefinitionActorComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parsePlanDefinitionActorComponentContent(int eventType, XmlPullParser xpp, PlanDefinition.PlanDefinitionActorComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("title")) { + res.setTitleElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) { + res.setDescriptionElement(parseMarkdown(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("option")) { + res.getOption().add(parsePlanDefinitionActorOptionComponent(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected PlanDefinition.PlanDefinitionActorOptionComponent parsePlanDefinitionActorOptionComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + PlanDefinition.PlanDefinitionActorOptionComponent res = new PlanDefinition.PlanDefinitionActorOptionComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parsePlanDefinitionActorOptionComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parsePlanDefinitionActorOptionComponentContent(int eventType, XmlPullParser xpp, PlanDefinition.PlanDefinitionActorOptionComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + res.setTypeElement(parseEnumeration(xpp, Enumerations.ActionParticipantType.NULL, new Enumerations.ActionParticipantTypeEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("typeReference")) { + res.setTypeReference(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("role")) { + res.setRole(parseCodeableConcept(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + protected PlanDefinition.PlanDefinitionActionComponent parsePlanDefinitionActionComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { PlanDefinition.PlanDefinitionActionComponent res = new PlanDefinition.PlanDefinitionActionComponent(); parseElementAttributes(xpp, res); @@ -20387,7 +20755,7 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("priority")) { res.setPriorityElement(parseEnumeration(xpp, Enumerations.RequestPriority.NULL, new Enumerations.RequestPriorityEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) { - res.getCode().add(parseCodeableConcept(xpp)); + res.setCode(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) { res.getReason().add(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("documentation")) { @@ -20401,13 +20769,15 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("condition")) { res.getCondition().add(parsePlanDefinitionActionConditionComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("input")) { - res.getInput().add(parseDataRequirement(xpp)); + res.getInput().add(parsePlanDefinitionActionInputComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("output")) { - res.getOutput().add(parseDataRequirement(xpp)); + res.getOutput().add(parsePlanDefinitionActionOutputComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relatedAction")) { res.getRelatedAction().add(parsePlanDefinitionActionRelatedActionComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "timing")) { res.setTiming(parseType("timing", xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("location")) { + res.setLocation(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("participant")) { res.getParticipant().add(parsePlanDefinitionActionParticipantComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { @@ -20462,6 +20832,62 @@ public class XmlParser extends XmlParserBase { return true; } + protected PlanDefinition.PlanDefinitionActionInputComponent parsePlanDefinitionActionInputComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + PlanDefinition.PlanDefinitionActionInputComponent res = new PlanDefinition.PlanDefinitionActionInputComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parsePlanDefinitionActionInputComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parsePlanDefinitionActionInputComponentContent(int eventType, XmlPullParser xpp, PlanDefinition.PlanDefinitionActionInputComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("title")) { + res.setTitleElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("requirement")) { + res.setRequirement(parseDataRequirement(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relatedData")) { + res.setRelatedDataElement(parseId(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected PlanDefinition.PlanDefinitionActionOutputComponent parsePlanDefinitionActionOutputComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + PlanDefinition.PlanDefinitionActionOutputComponent res = new PlanDefinition.PlanDefinitionActionOutputComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parsePlanDefinitionActionOutputComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parsePlanDefinitionActionOutputComponentContent(int eventType, XmlPullParser xpp, PlanDefinition.PlanDefinitionActionOutputComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("title")) { + res.setTitleElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("requirement")) { + res.setRequirement(parseDataRequirement(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relatedData")) { + res.setRelatedDataElement(parseString(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + protected PlanDefinition.PlanDefinitionActionRelatedActionComponent parsePlanDefinitionActionRelatedActionComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { PlanDefinition.PlanDefinitionActionRelatedActionComponent res = new PlanDefinition.PlanDefinitionActionRelatedActionComponent(); parseElementAttributes(xpp, res); @@ -20478,8 +20904,8 @@ public class XmlParser extends XmlParserBase { } protected boolean parsePlanDefinitionActionRelatedActionComponentContent(int eventType, XmlPullParser xpp, PlanDefinition.PlanDefinitionActionRelatedActionComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("actionId")) { - res.setActionIdElement(parseId(xpp)); + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("targetId")) { + res.setTargetIdElement(parseId(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relationship")) { res.setRelationshipElement(parseEnumeration(xpp, Enumerations.ActionRelationshipType.NULL, new Enumerations.ActionRelationshipTypeEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "offset")) { @@ -20506,10 +20932,16 @@ public class XmlParser extends XmlParserBase { } protected boolean parsePlanDefinitionActionParticipantComponentContent(int eventType, XmlPullParser xpp, PlanDefinition.PlanDefinitionActionParticipantComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("actorId")) { + res.setActorIdElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setTypeElement(parseEnumeration(xpp, Enumerations.ActionParticipantType.NULL, new Enumerations.ActionParticipantTypeEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("typeReference")) { + res.setTypeReference(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("role")) { res.setRole(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("function")) { + res.setFunction(parseCodeableConcept(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -20790,6 +21222,8 @@ public class XmlParser extends XmlParserBase { res.getFocalDevice().add(parseProcedureFocalDeviceComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("used")) { res.getUsed().add(parseCodeableReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("supportingInfo")) { + res.getSupportingInfo().add(parseReference(xpp)); } else if (!parseDomainResourceContent(eventType, xpp, res)){ return false; } @@ -20880,6 +21314,10 @@ public class XmlParser extends XmlParserBase { res.getReason().add(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("activity")) { res.setActivity(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("basedOn")) { + res.getBasedOn().add(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("encounter")) { + res.setEncounter(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("agent")) { res.getAgent().add(parseProvenanceAgentComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("entity")) { @@ -21041,13 +21479,15 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("prefix")) { res.setPrefixElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("text")) { - res.setTextElement(parseString(xpp)); + res.setTextElement(parseMarkdown(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setTypeElement(parseEnumeration(xpp, Questionnaire.QuestionnaireItemType.NULL, new Questionnaire.QuestionnaireItemTypeEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("enableWhen")) { res.getEnableWhen().add(parseQuestionnaireItemEnableWhenComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("enableBehavior")) { res.setEnableBehaviorElement(parseEnumeration(xpp, Questionnaire.EnableWhenBehavior.NULL, new Questionnaire.EnableWhenBehaviorEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("disabledDisplay")) { + res.setDisabledDisplayElement(parseEnumeration(xpp, Questionnaire.QuestionnaireItemDisabledDisplay.NULL, new Questionnaire.QuestionnaireItemDisabledDisplayEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("required")) { res.setRequiredElement(parseBoolean(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("repeats")) { @@ -21056,6 +21496,8 @@ public class XmlParser extends XmlParserBase { res.setReadOnlyElement(parseBoolean(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("maxLength")) { res.setMaxLengthElement(parseInteger(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("answerConstraint")) { + res.setAnswerConstraintElement(parseEnumeration(xpp, Questionnaire.QuestionnaireAnswerConstraint.NULL, new Questionnaire.QuestionnaireAnswerConstraintEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("answerValueSet")) { res.setAnswerValueSetElement(parseCanonical(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("answerOption")) { @@ -21282,8 +21724,8 @@ public class XmlParser extends XmlParserBase { res.setStatusDateElement(parseDateTime(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("validityPeriod")) { res.setValidityPeriod(parsePeriod(xpp)); - } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "indication")) { - res.setIndication(parseType("indication", xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("indication")) { + res.setIndication(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("intendedUse")) { res.setIntendedUse(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("basis")) { @@ -21296,6 +21738,8 @@ public class XmlParser extends XmlParserBase { res.setHolder(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("attachedDocument")) { + res.getAttachedDocument().add(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("case")) { res.setCase(parseRegulatedAuthorizationCaseComponent(xpp)); } else if (!parseDomainResourceContent(eventType, xpp, res)){ @@ -21526,8 +21970,10 @@ public class XmlParser extends XmlParserBase { res.getRelatedAction().add(parseRequestGroupActionRelatedActionComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "timing")) { res.setTiming(parseType("timing", xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("location")) { + res.setLocation(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("participant")) { - res.getParticipant().add(parseReference(xpp)); + res.getParticipant().add(parseRequestGroupActionParticipantComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setType(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("groupingBehavior")) { @@ -21592,8 +22038,8 @@ public class XmlParser extends XmlParserBase { } protected boolean parseRequestGroupActionRelatedActionComponentContent(int eventType, XmlPullParser xpp, RequestGroup.RequestGroupActionRelatedActionComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("actionId")) { - res.setActionIdElement(parseId(xpp)); + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("targetId")) { + res.setTargetIdElement(parseId(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relationship")) { res.setRelationshipElement(parseEnumeration(xpp, Enumerations.ActionRelationshipType.NULL, new Enumerations.ActionRelationshipTypeEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "offset")) { @@ -21604,6 +22050,38 @@ public class XmlParser extends XmlParserBase { return true; } + protected RequestGroup.RequestGroupActionParticipantComponent parseRequestGroupActionParticipantComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + RequestGroup.RequestGroupActionParticipantComponent res = new RequestGroup.RequestGroupActionParticipantComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseRequestGroupActionParticipantComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseRequestGroupActionParticipantComponentContent(int eventType, XmlPullParser xpp, RequestGroup.RequestGroupActionParticipantComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + res.setTypeElement(parseEnumeration(xpp, Enumerations.ActionParticipantType.NULL, new Enumerations.ActionParticipantTypeEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("typeReference")) { + res.setTypeReference(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("role")) { + res.setRole(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("function")) { + res.setFunction(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("actor")) { + res.setActor(parseReference(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + protected ResearchStudy parseResearchStudy(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { ResearchStudy res = new ResearchStudy(); parseResourceAttributes(xpp, res); @@ -21620,16 +22098,28 @@ public class XmlParser extends XmlParserBase { } protected boolean parseResearchStudyContent(int eventType, XmlPullParser xpp, ResearchStudy res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("url")) { + res.setUrlElement(parseUri(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { res.getIdentifier().add(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("name")) { + res.setNameElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("title")) { res.setTitleElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("label")) { + res.getLabel().add(parseResearchStudyLabelComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("protocol")) { res.getProtocol().add(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("partOf")) { res.getPartOf().add(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relatedArtifact")) { + res.getRelatedArtifact().add(parseRelatedArtifact(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("date")) { + res.setDateElement(parseDateTime(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) { - res.setStatusElement(parseEnumeration(xpp, ResearchStudy.ResearchStudyStatus.NULL, new ResearchStudy.ResearchStudyStatusEnumFactory())); + res.setStatusElement(parseEnumeration(xpp, Enumerations.PublicationStatus.NULL, new Enumerations.PublicationStatusEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("primaryPurposeType")) { res.setPrimaryPurposeType(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("phase")) { @@ -21637,50 +22127,64 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("category")) { res.getCategory().add(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("focus")) { - res.getFocus().add(parseCodeableConcept(xpp)); + res.getFocus().add(parseResearchStudyFocusComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("condition")) { res.getCondition().add(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("contact")) { - res.getContact().add(parseContactDetail(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("relatedArtifact")) { - res.getRelatedArtifact().add(parseRelatedArtifact(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("keyword")) { res.getKeyword().add(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("location")) { res.getLocation().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("descriptionSummary")) { + res.setDescriptionSummaryElement(parseMarkdown(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) { res.setDescriptionElement(parseMarkdown(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("enrollment")) { - res.getEnrollment().add(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("period")) { res.setPeriod(parsePeriod(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("contact")) { + res.getContact().add(parseContactDetail(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("sponsor")) { res.setSponsor(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("principalInvestigator")) { res.setPrincipalInvestigator(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("site")) { res.getSite().add(parseReference(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reasonStopped")) { - res.setReasonStopped(parseCodeableConcept(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("arm")) { - res.getArm().add(parseResearchStudyArmComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("classification")) { + res.getClassification().add(parseResearchStudyClassificationComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("associatedParty")) { + res.getAssociatedParty().add(parseResearchStudyAssociatedPartyComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("currentState")) { + res.getCurrentState().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("statusDate")) { + res.getStatusDate().add(parseResearchStudyStatusDateComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("whyStopped")) { + res.setWhyStopped(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("recruitment")) { + res.setRecruitment(parseResearchStudyRecruitmentComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("comparisonGroup")) { + res.getComparisonGroup().add(parseResearchStudyComparisonGroupComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("objective")) { res.getObjective().add(parseResearchStudyObjectiveComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("outcomeMeasure")) { + res.getOutcomeMeasure().add(parseResearchStudyOutcomeMeasureComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("result")) { + res.getResult().add(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("webLocation")) { + res.getWebLocation().add(parseResearchStudyWebLocationComponent(xpp)); } else if (!parseDomainResourceContent(eventType, xpp, res)){ return false; } return true; } - protected ResearchStudy.ResearchStudyArmComponent parseResearchStudyArmComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - ResearchStudy.ResearchStudyArmComponent res = new ResearchStudy.ResearchStudyArmComponent(); + protected ResearchStudy.ResearchStudyLabelComponent parseResearchStudyLabelComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + ResearchStudy.ResearchStudyLabelComponent res = new ResearchStudy.ResearchStudyLabelComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseResearchStudyArmComponentContent(eventType, xpp, res)) + if (!parseResearchStudyLabelComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -21689,13 +22193,187 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseResearchStudyArmComponentContent(int eventType, XmlPullParser xpp, ResearchStudy.ResearchStudyArmComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseResearchStudyLabelComponentContent(int eventType, XmlPullParser xpp, ResearchStudy.ResearchStudyLabelComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + res.setType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("value")) { + res.setValueElement(parseString(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected ResearchStudy.ResearchStudyFocusComponent parseResearchStudyFocusComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + ResearchStudy.ResearchStudyFocusComponent res = new ResearchStudy.ResearchStudyFocusComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseResearchStudyFocusComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseResearchStudyFocusComponentContent(int eventType, XmlPullParser xpp, ResearchStudy.ResearchStudyFocusComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("productCode")) { + res.setProductCode(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("focusType")) { + res.getFocusType().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("factor")) { + res.setFactorElement(parseMarkdown(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected ResearchStudy.ResearchStudyClassificationComponent parseResearchStudyClassificationComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + ResearchStudy.ResearchStudyClassificationComponent res = new ResearchStudy.ResearchStudyClassificationComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseResearchStudyClassificationComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseResearchStudyClassificationComponentContent(int eventType, XmlPullParser xpp, ResearchStudy.ResearchStudyClassificationComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + res.setType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("classifier")) { + res.getClassifier().add(parseCodeableConcept(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected ResearchStudy.ResearchStudyAssociatedPartyComponent parseResearchStudyAssociatedPartyComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + ResearchStudy.ResearchStudyAssociatedPartyComponent res = new ResearchStudy.ResearchStudyAssociatedPartyComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseResearchStudyAssociatedPartyComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseResearchStudyAssociatedPartyComponentContent(int eventType, XmlPullParser xpp, ResearchStudy.ResearchStudyAssociatedPartyComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("name")) { res.setNameElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("role")) { + res.setRole(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("classifier")) { + res.getClassifier().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("party")) { + res.setParty(parseReference(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected ResearchStudy.ResearchStudyStatusDateComponent parseResearchStudyStatusDateComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + ResearchStudy.ResearchStudyStatusDateComponent res = new ResearchStudy.ResearchStudyStatusDateComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseResearchStudyStatusDateComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseResearchStudyStatusDateComponentContent(int eventType, XmlPullParser xpp, ResearchStudy.ResearchStudyStatusDateComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("activity")) { + res.setActivity(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("actual")) { + res.setActualElement(parseBoolean(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("period")) { + res.setPeriod(parsePeriod(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected ResearchStudy.ResearchStudyRecruitmentComponent parseResearchStudyRecruitmentComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + ResearchStudy.ResearchStudyRecruitmentComponent res = new ResearchStudy.ResearchStudyRecruitmentComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseResearchStudyRecruitmentComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseResearchStudyRecruitmentComponentContent(int eventType, XmlPullParser xpp, ResearchStudy.ResearchStudyRecruitmentComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("targetNumber")) { + res.setTargetNumberElement(parseUnsignedInt(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("actualNumber")) { + res.setActualNumberElement(parseUnsignedInt(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("eligibility")) { + res.setEligibility(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("actualGroup")) { + res.setActualGroup(parseReference(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected ResearchStudy.ResearchStudyComparisonGroupComponent parseResearchStudyComparisonGroupComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + ResearchStudy.ResearchStudyComparisonGroupComponent res = new ResearchStudy.ResearchStudyComparisonGroupComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseResearchStudyComparisonGroupComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseResearchStudyComparisonGroupComponentContent(int eventType, XmlPullParser xpp, ResearchStudy.ResearchStudyComparisonGroupComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && nameIsTypeName(xpp, "identifier")) { + res.setIdentifier(parseType("identifier", xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("name")) { + res.setNameElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setType(parseCodeableConcept(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("intendedExposure")) { + res.getIntendedExposure().add(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("observedGroup")) { + res.setObservedGroup(parseReference(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -21722,6 +22400,64 @@ public class XmlParser extends XmlParserBase { res.setNameElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) { + res.setDescriptionElement(parseMarkdown(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected ResearchStudy.ResearchStudyOutcomeMeasureComponent parseResearchStudyOutcomeMeasureComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + ResearchStudy.ResearchStudyOutcomeMeasureComponent res = new ResearchStudy.ResearchStudyOutcomeMeasureComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseResearchStudyOutcomeMeasureComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseResearchStudyOutcomeMeasureComponentContent(int eventType, XmlPullParser xpp, ResearchStudy.ResearchStudyOutcomeMeasureComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("name")) { + res.setNameElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + res.getType().add(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) { + res.setDescriptionElement(parseMarkdown(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reference")) { + res.setReference(parseReference(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + + protected ResearchStudy.ResearchStudyWebLocationComponent parseResearchStudyWebLocationComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + ResearchStudy.ResearchStudyWebLocationComponent res = new ResearchStudy.ResearchStudyWebLocationComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseResearchStudyWebLocationComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseResearchStudyWebLocationComponentContent(int eventType, XmlPullParser xpp, ResearchStudy.ResearchStudyWebLocationComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + res.setType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("url")) { + res.setUrlElement(parseUri(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -21747,15 +22483,15 @@ public class XmlParser extends XmlParserBase { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { res.getIdentifier().add(parseIdentifier(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) { - res.setStatusElement(parseEnumeration(xpp, ResearchSubject.ResearchSubjectStatus.NULL, new ResearchSubject.ResearchSubjectStatusEnumFactory())); + res.setStatusElement(parseEnumeration(xpp, Enumerations.PublicationStatus.NULL, new Enumerations.PublicationStatusEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("progress")) { res.getProgress().add(parseResearchSubjectProgressComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("period")) { res.setPeriod(parsePeriod(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("study")) { res.setStudy(parseReference(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("individual")) { - res.setIndividual(parseReference(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subject")) { + res.setSubject(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("assignedArm")) { res.setAssignedArmElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("actualArm")) { @@ -21786,14 +22522,16 @@ public class XmlParser extends XmlParserBase { protected boolean parseResearchSubjectProgressComponentContent(int eventType, XmlPullParser xpp, ResearchSubject.ResearchSubjectProgressComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setType(parseCodeableConcept(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("state")) { - res.setState(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subjectState")) { + res.setSubjectState(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("milestone")) { res.setMilestone(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("reason")) { res.setReason(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("startDate")) { res.setStartDateElement(parseDateTime(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("endDate")) { + res.setEndDateElement(parseDateTime(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -22936,8 +23674,6 @@ public class XmlParser extends XmlParserBase { protected boolean parseStructureMapGroupRuleTargetComponentContent(int eventType, XmlPullParser xpp, StructureMap.StructureMapGroupRuleTargetComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("context")) { res.setContextElement(parseId(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("contextType")) { - res.setContextTypeElement(parseEnumeration(xpp, StructureMap.StructureMapContextType.NULL, new StructureMap.StructureMapContextTypeEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("element")) { res.setElementElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("variable")) { @@ -23029,7 +23765,7 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) { res.setStatusElement(parseEnumeration(xpp, Enumerations.SubscriptionState.NULL, new Enumerations.SubscriptionStateEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("topic")) { - res.setTopic(parseReference(xpp)); + res.setTopicElement(parseCanonical(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("contact")) { res.getContact().add(parseContactPoint(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("end")) { @@ -23052,6 +23788,10 @@ public class XmlParser extends XmlParserBase { res.setContentTypeElement(parseCode(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("content")) { res.setContentElement(parseEnumeration(xpp, Subscription.SubscriptionPayloadContent.NULL, new Subscription.SubscriptionPayloadContentEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("notificationUrlLocation")) { + res.setNotificationUrlLocationElement(parseEnumeration(xpp, Subscription.SubscriptionUrlLocation.NULL, new Subscription.SubscriptionUrlLocationEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("maxCount")) { + res.setMaxCountElement(parsePositiveInt(xpp)); } else if (!parseDomainResourceContent(eventType, xpp, res)){ return false; } @@ -23074,7 +23814,9 @@ public class XmlParser extends XmlParserBase { } protected boolean parseSubscriptionFilterByComponentContent(int eventType, XmlPullParser xpp, Subscription.SubscriptionFilterByComponent res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("searchParamName")) { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("resourceType")) { + res.setResourceTypeElement(parseUri(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("searchParamName")) { res.setSearchParamNameElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("searchModifier")) { res.setSearchModifierElement(parseEnumeration(xpp, Enumerations.SubscriptionSearchModifier.NULL, new Enumerations.SubscriptionSearchModifierEnumFactory())); @@ -23102,7 +23844,9 @@ public class XmlParser extends XmlParserBase { } protected boolean parseSubscriptionStatusContent(int eventType, XmlPullParser xpp, SubscriptionStatus res) throws XmlPullParserException, IOException, FHIRFormatError { - if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) { + res.setStatusElement(parseEnumeration(xpp, Enumerations.SubscriptionState.NULL, new Enumerations.SubscriptionStateEnumFactory())); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { res.setTypeElement(parseEnumeration(xpp, SubscriptionStatus.SubscriptionNotificationType.NULL, new SubscriptionStatus.SubscriptionNotificationTypeEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("eventsSinceSubscriptionStart")) { res.setEventsSinceSubscriptionStartElement(parseInteger64(xpp)); @@ -23110,8 +23854,6 @@ public class XmlParser extends XmlParserBase { res.setEventsInNotificationElement(parseInteger(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("subscription")) { res.setSubscription(parseReference(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) { - res.setStatusElement(parseEnumeration(xpp, Enumerations.SubscriptionState.NULL, new Enumerations.SubscriptionStateEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("topic")) { res.setTopicElement(parseCanonical(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("error")) { @@ -23175,9 +23917,7 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("effectivePeriod")) { res.setEffectivePeriod(parsePeriod(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("resourceTrigger")) { - res.setResourceTrigger(parseSubscriptionTopicResourceTriggerComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("canFilterBy")) { - res.getCanFilterBy().add(parseSubscriptionTopicCanFilterByComponent(xpp)); + res.getResourceTrigger().add(parseSubscriptionTopicResourceTriggerComponent(xpp)); } else if (!parseDomainResourceContent(eventType, xpp, res)){ return false; } @@ -23203,13 +23943,15 @@ public class XmlParser extends XmlParserBase { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) { res.setDescriptionElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("resourceType")) { - res.getResourceType().add(parseCode(xpp)); + res.setResourceTypeElement(parseUri(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("methodCriteria")) { res.getMethodCriteria().add(parseEnumeration(xpp, SubscriptionTopic.InteractionTrigger.NULL, new SubscriptionTopic.InteractionTriggerEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("queryCriteria")) { res.setQueryCriteria(parseSubscriptionTopicResourceTriggerQueryCriteriaComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("fhirPathCriteria")) { res.getFhirPathCriteria().add(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("canFilterBy")) { + res.getCanFilterBy().add(parseSubscriptionTopicResourceTriggerCanFilterByComponent(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -23234,8 +23976,12 @@ public class XmlParser extends XmlParserBase { protected boolean parseSubscriptionTopicResourceTriggerQueryCriteriaComponentContent(int eventType, XmlPullParser xpp, SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("previous")) { res.setPreviousElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("resultForCreate")) { + res.setResultForCreateElement(parseEnumeration(xpp, SubscriptionTopic.CriteriaNotExistsBehavior.NULL, new SubscriptionTopic.CriteriaNotExistsBehaviorEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("current")) { res.setCurrentElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("resultForDelete")) { + res.setResultForDeleteElement(parseEnumeration(xpp, SubscriptionTopic.CriteriaNotExistsBehavior.NULL, new SubscriptionTopic.CriteriaNotExistsBehaviorEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("requireBoth")) { res.setRequireBothElement(parseBoolean(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ @@ -23244,13 +23990,13 @@ public class XmlParser extends XmlParserBase { return true; } - protected SubscriptionTopic.SubscriptionTopicCanFilterByComponent parseSubscriptionTopicCanFilterByComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - SubscriptionTopic.SubscriptionTopicCanFilterByComponent res = new SubscriptionTopic.SubscriptionTopicCanFilterByComponent(); + protected SubscriptionTopic.SubscriptionTopicResourceTriggerCanFilterByComponent parseSubscriptionTopicResourceTriggerCanFilterByComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + SubscriptionTopic.SubscriptionTopicResourceTriggerCanFilterByComponent res = new SubscriptionTopic.SubscriptionTopicResourceTriggerCanFilterByComponent(); parseElementAttributes(xpp, res); next(xpp); int eventType = nextNoWhitespace(xpp); while (eventType != XmlPullParser.END_TAG) { - if (!parseSubscriptionTopicCanFilterByComponentContent(eventType, xpp, res)) + if (!parseSubscriptionTopicResourceTriggerCanFilterByComponentContent(eventType, xpp, res)) unknownContent(xpp); eventType = nextNoWhitespace(xpp); } @@ -23259,7 +24005,7 @@ public class XmlParser extends XmlParserBase { return res; } - protected boolean parseSubscriptionTopicCanFilterByComponentContent(int eventType, XmlPullParser xpp, SubscriptionTopic.SubscriptionTopicCanFilterByComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + protected boolean parseSubscriptionTopicResourceTriggerCanFilterByComponentContent(int eventType, XmlPullParser xpp, SubscriptionTopic.SubscriptionTopicResourceTriggerCanFilterByComponent res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("searchParamName")) { res.setSearchParamNameElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("searchModifier")) { @@ -23290,47 +24036,23 @@ public class XmlParser extends XmlParserBase { protected boolean parseSubstanceContent(int eventType, XmlPullParser xpp, Substance res) throws XmlPullParserException, IOException, FHIRFormatError { if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("identifier")) { res.getIdentifier().add(parseIdentifier(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("instance")) { + res.setInstanceElement(parseBoolean(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("status")) { res.setStatusElement(parseEnumeration(xpp, Substance.FHIRSubstanceStatus.NULL, new Substance.FHIRSubstanceStatusEnumFactory())); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("category")) { res.getCategory().add(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("code")) { - res.setCode(parseCodeableConcept(xpp)); + res.setCode(parseCodeableReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) { res.setDescriptionElement(parseString(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("instance")) { - res.getInstance().add(parseSubstanceInstanceComponent(xpp)); - } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("ingredient")) { - res.getIngredient().add(parseSubstanceIngredientComponent(xpp)); - } else if (!parseDomainResourceContent(eventType, xpp, res)){ - return false; - } - return true; - } - - protected Substance.SubstanceInstanceComponent parseSubstanceInstanceComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { - Substance.SubstanceInstanceComponent res = new Substance.SubstanceInstanceComponent(); - parseElementAttributes(xpp, res); - next(xpp); - int eventType = nextNoWhitespace(xpp); - while (eventType != XmlPullParser.END_TAG) { - if (!parseSubstanceInstanceComponentContent(eventType, xpp, res)) - unknownContent(xpp); - eventType = nextNoWhitespace(xpp); - } - next(xpp); - parseElementClose(res); - return res; - } - - protected boolean parseSubstanceInstanceComponentContent(int eventType, XmlPullParser xpp, Substance.SubstanceInstanceComponent 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("expiry")) { res.setExpiryElement(parseDateTime(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("quantity")) { res.setQuantity(parseQuantity(xpp)); - } else if (!parseBackboneElementContent(eventType, xpp, res)){ + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("ingredient")) { + res.getIngredient().add(parseSubstanceIngredientComponent(xpp)); + } else if (!parseDomainResourceContent(eventType, xpp, res)){ return false; } return true; @@ -23390,6 +24112,8 @@ public class XmlParser extends XmlParserBase { res.getClassification().add(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("domain")) { res.setDomain(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("grade")) { + res.getGrade().add(parseCodeableConcept(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("description")) { res.setDescriptionElement(parseMarkdown(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("source")) { @@ -23423,7 +24147,7 @@ public class XmlParser extends XmlParserBase { } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("protein")) { res.setProtein(parseReference(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("sourceMaterial")) { - res.setSourceMaterial(parseReference(xpp)); + res.setSourceMaterial(parseSubstanceDefinitionSourceMaterialComponent(xpp)); } else if (!parseDomainResourceContent(eventType, xpp, res)){ return false; } @@ -23774,6 +24498,38 @@ public class XmlParser extends XmlParserBase { return true; } + protected SubstanceDefinition.SubstanceDefinitionSourceMaterialComponent parseSubstanceDefinitionSourceMaterialComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + SubstanceDefinition.SubstanceDefinitionSourceMaterialComponent res = new SubstanceDefinition.SubstanceDefinitionSourceMaterialComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseSubstanceDefinitionSourceMaterialComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseSubstanceDefinitionSourceMaterialComponentContent(int eventType, XmlPullParser xpp, SubstanceDefinition.SubstanceDefinitionSourceMaterialComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("type")) { + res.setType(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("genus")) { + res.setGenus(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("species")) { + res.setSpecies(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("part")) { + res.setPart(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("countryOfOrigin")) { + res.getCountryOfOrigin().add(parseCodeableConcept(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + protected SubstanceNucleicAcid parseSubstanceNucleicAcid(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { SubstanceNucleicAcid res = new SubstanceNucleicAcid(); parseResourceAttributes(xpp, res); @@ -25518,6 +26274,8 @@ public class XmlParser extends XmlParserBase { res.getDestination().add(parseTestScriptDestinationComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("metadata")) { res.setMetadata(parseTestScriptMetadataComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("scope")) { + res.getScope().add(parseTestScriptScopeComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("fixture")) { res.getFixture().add(parseTestScriptFixtureComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("profile")) { @@ -25676,6 +26434,34 @@ public class XmlParser extends XmlParserBase { return true; } + protected TestScript.TestScriptScopeComponent parseTestScriptScopeComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + TestScript.TestScriptScopeComponent res = new TestScript.TestScriptScopeComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseTestScriptScopeComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseTestScriptScopeComponentContent(int eventType, XmlPullParser xpp, TestScript.TestScriptScopeComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("artifact")) { + res.setArtifactElement(parseCanonical(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("conformance")) { + res.setConformance(parseCodeableConcept(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("phase")) { + res.setPhase(parseCodeableConcept(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + protected TestScript.TestScriptFixtureComponent parseTestScriptFixtureComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { TestScript.TestScriptFixtureComponent res = new TestScript.TestScriptFixtureComponent(); parseElementAttributes(xpp, res); @@ -25928,6 +26714,8 @@ public class XmlParser extends XmlParserBase { res.setResponseCodeElement(parseString(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("sourceId")) { res.setSourceIdElement(parseId(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("stopTestOnFail")) { + res.setStopTestOnFailElement(parseBoolean(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("validateProfileId")) { res.setValidateProfileIdElement(parseId(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("value")) { @@ -26094,6 +26882,8 @@ public class XmlParser extends XmlParserBase { res.setCompose(parseValueSetComposeComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("expansion")) { res.setExpansion(parseValueSetExpansionComponent(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("scope")) { + res.setScope(parseValueSetScopeComponent(xpp)); } else if (!parseCanonicalResourceContent(eventType, xpp, res)){ return false; } @@ -26158,6 +26948,8 @@ public class XmlParser extends XmlParserBase { res.getFilter().add(parseValueSetConceptSetFilterComponent(xpp)); } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("valueSet")) { res.getValueSet().add(parseCanonical(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("copyright")) { + res.setCopyrightElement(parseString(xpp)); } else if (!parseBackboneElementContent(eventType, xpp, res)){ return false; } @@ -26402,6 +27194,34 @@ public class XmlParser extends XmlParserBase { return true; } + protected ValueSet.ValueSetScopeComponent parseValueSetScopeComponent(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { + ValueSet.ValueSetScopeComponent res = new ValueSet.ValueSetScopeComponent(); + parseElementAttributes(xpp, res); + next(xpp); + int eventType = nextNoWhitespace(xpp); + while (eventType != XmlPullParser.END_TAG) { + if (!parseValueSetScopeComponentContent(eventType, xpp, res)) + unknownContent(xpp); + eventType = nextNoWhitespace(xpp); + } + next(xpp); + parseElementClose(res); + return res; + } + + protected boolean parseValueSetScopeComponentContent(int eventType, XmlPullParser xpp, ValueSet.ValueSetScopeComponent res) throws XmlPullParserException, IOException, FHIRFormatError { + if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("focus")) { + res.setFocusElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("inclusionCriteria")) { + res.setInclusionCriteriaElement(parseString(xpp)); + } else if (eventType == XmlPullParser.START_TAG && xpp.getName().equals("exclusionCriteria")) { + res.setExclusionCriteriaElement(parseString(xpp)); + } else if (!parseBackboneElementContent(eventType, xpp, res)){ + return false; + } + return true; + } + protected VerificationResult parseVerificationResult(XmlPullParser xpp) throws XmlPullParserException, IOException, FHIRFormatError { VerificationResult res = new VerificationResult(); parseResourceAttributes(xpp, res); @@ -26760,8 +27580,8 @@ public class XmlParser extends XmlParserBase { return parseDeviceMetric(xpp); } else if (xpp.getName().equals("DeviceRequest")) { return parseDeviceRequest(xpp); - } else if (xpp.getName().equals("DeviceUseStatement")) { - return parseDeviceUseStatement(xpp); + } else if (xpp.getName().equals("DeviceUsage")) { + return parseDeviceUsage(xpp); } else if (xpp.getName().equals("DiagnosticReport")) { return parseDiagnosticReport(xpp); } else if (xpp.getName().equals("DocumentManifest")) { @@ -26818,6 +27638,8 @@ public class XmlParser extends XmlParserBase { return parseIngredient(xpp); } else if (xpp.getName().equals("InsurancePlan")) { return parseInsurancePlan(xpp); + } else if (xpp.getName().equals("InventoryReport")) { + return parseInventoryReport(xpp); } else if (xpp.getName().equals("Invoice")) { return parseInvoice(xpp); } else if (xpp.getName().equals("Library")) { @@ -27085,6 +27907,8 @@ public class XmlParser extends XmlParserBase { return parseRange(xpp); } else if (xpp.getName().equals(prefix+"Ratio")) { return parseRatio(xpp); + } else if (xpp.getName().equals(prefix+"RatioRange")) { + return parseRatioRange(xpp); } else if (xpp.getName().equals(prefix+"Reference")) { return parseReference(xpp); } else if (xpp.getName().equals(prefix+"RelatedArtifact")) { @@ -27218,6 +28042,8 @@ public class XmlParser extends XmlParserBase { return parseRange(xpp); } else if (type.equals("Ratio")) { return parseRatio(xpp); + } else if (type.equals("RatioRange")) { + return parseRatioRange(xpp); } else if (type.equals("Reference")) { return parseReference(xpp); } else if (type.equals("RelatedArtifact")) { @@ -27311,6 +28137,8 @@ public class XmlParser extends XmlParserBase { return parseRange(xpp); } else if (type.equals("Ratio")) { return parseRatio(xpp); + } else if (type.equals("RatioRange")) { + return parseRatioRange(xpp); } else if (type.equals("Reference")) { return parseReference(xpp); } else if (type.equals("RelatedArtifact")) { @@ -27413,8 +28241,8 @@ public class XmlParser extends XmlParserBase { return parseDeviceMetric(xpp); } else if (type.equals("DeviceRequest")) { return parseDeviceRequest(xpp); - } else if (type.equals("DeviceUseStatement")) { - return parseDeviceUseStatement(xpp); + } else if (type.equals("DeviceUsage")) { + return parseDeviceUsage(xpp); } else if (type.equals("DiagnosticReport")) { return parseDiagnosticReport(xpp); } else if (type.equals("DocumentManifest")) { @@ -27471,6 +28299,8 @@ public class XmlParser extends XmlParserBase { return parseIngredient(xpp); } else if (type.equals("InsurancePlan")) { return parseInsurancePlan(xpp); + } else if (type.equals("InventoryReport")) { + return parseInventoryReport(xpp); } else if (type.equals("Invoice")) { return parseInvoice(xpp); } else if (type.equals("Library")) { @@ -27738,6 +28568,8 @@ public class XmlParser extends XmlParserBase { return true; } else if (xpp.getName().equals(prefix+"Ratio")) { return true; + } else if (xpp.getName().equals(prefix+"RatioRange")) { + return true; } else if (xpp.getName().equals(prefix+"Reference")) { return true; } else if (xpp.getName().equals(prefix+"RelatedArtifact")) { @@ -27840,7 +28672,7 @@ public class XmlParser extends XmlParserBase { return true; } else if (xpp.getName().equals(prefix+"DeviceRequest")) { return true; - } else if (xpp.getName().equals(prefix+"DeviceUseStatement")) { + } else if (xpp.getName().equals(prefix+"DeviceUsage")) { return true; } else if (xpp.getName().equals(prefix+"DiagnosticReport")) { return true; @@ -27898,6 +28730,8 @@ public class XmlParser extends XmlParserBase { return true; } else if (xpp.getName().equals(prefix+"InsurancePlan")) { return true; + } else if (xpp.getName().equals(prefix+"InventoryReport")) { + return true; } else if (xpp.getName().equals(prefix+"Invoice")) { return true; } else if (xpp.getName().equals(prefix+"Library")) { @@ -29711,6 +30545,29 @@ public class XmlParser extends XmlParserBase { } } + protected void composeRatioRange(String name, RatioRange element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeRatioRangeElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeRatioRangeElements(RatioRange element) throws IOException { + composeDataTypeElements(element); + if (element.hasLowNumerator()) { + composeQuantity("lowNumerator", element.getLowNumerator()); + } + if (element.hasHighNumerator()) { + composeQuantity("highNumerator", element.getHighNumerator()); + } + if (element.hasDenominator()) { + composeQuantity("denominator", element.getDenominator()); + } + } + protected void composeReference(String name, Reference element) throws IOException { if (element != null) { composeElementAttributes(element); @@ -29864,11 +30721,17 @@ public class XmlParser extends XmlParserBase { if (element.hasStatisticType()) { composeCodeableConcept("statisticType", element.getStatisticType()); } + if (element.hasCategory()) { + composeCodeableConcept("category", element.getCategory()); + } if (element.hasQuantity()) { composeQuantity("quantity", element.getQuantity()); } if (element.hasNumberOfEventsElement()) { - composeInteger("numberOfEvents", element.getNumberOfEventsElement()); + composeUnsignedInt("numberOfEvents", element.getNumberOfEventsElement()); + } + if (element.hasNumberAffectedElement()) { + composeUnsignedInt("numberAffected", element.getNumberAffectedElement()); } if (element.hasSampleSize()) { composeStatisticSampleSizeComponent("sampleSize", element.getSampleSize()); @@ -29903,13 +30766,13 @@ public class XmlParser extends XmlParserBase { composeAnnotation("note", e); } if (element.hasNumberOfStudiesElement()) { - composeInteger("numberOfStudies", element.getNumberOfStudiesElement()); + composeUnsignedInt("numberOfStudies", element.getNumberOfStudiesElement()); } if (element.hasNumberOfParticipantsElement()) { - composeInteger("numberOfParticipants", element.getNumberOfParticipantsElement()); + composeUnsignedInt("numberOfParticipants", element.getNumberOfParticipantsElement()); } if (element.hasKnownDataCountElement()) { - composeInteger("knownDataCount", element.getKnownDataCountElement()); + composeUnsignedInt("knownDataCount", element.getKnownDataCountElement()); } } @@ -29999,8 +30862,9 @@ public class XmlParser extends XmlParserBase { composeCodeableConcept("code", element.getCode()); } if (element.hasValue()) { - composeType("value", element.getValue()); - } if (element.hasVariable()) { + composeQuantity("value", element.getValue()); + } + if (element.hasVariable()) { for (Statistic.StatisticModelCharacteristicVariableComponent e : element.getVariable()) composeStatisticModelCharacteristicVariableComponent("variable", e); } @@ -30428,7 +31292,7 @@ public class XmlParser extends XmlParserBase { if (element.hasTiming()) { composeType("timing", element.getTiming()); } if (element.hasLocation()) { - composeReference("location", element.getLocation()); + composeCodeableReference("location", element.getLocation()); } if (element.hasParticipant()) { for (ActivityDefinition.ActivityDefinitionParticipantComponent e : element.getParticipant()) @@ -30482,9 +31346,15 @@ public class XmlParser extends XmlParserBase { composeBackboneElementElements(element); if (element.hasTypeElement()) composeEnumeration("type", element.getTypeElement(), new Enumerations.ActionParticipantTypeEnumFactory()); + if (element.hasTypeReference()) { + composeReference("typeReference", element.getTypeReference()); + } if (element.hasRole()) { composeCodeableConcept("role", element.getRole()); } + if (element.hasFunction()) { + composeCodeableConcept("function", element.getFunction()); + } } protected void composeActivityDefinitionDynamicValueComponent(String name, ActivityDefinition.ActivityDefinitionDynamicValueComponent element) throws IOException { @@ -30708,8 +31578,9 @@ public class XmlParser extends XmlParserBase { if (element.hasSeriousness()) { composeCodeableConcept("seriousness", element.getSeriousness()); } - if (element.hasOutcome()) { - composeCodeableConcept("outcome", element.getOutcome()); + if (element.hasOutcome()) { + for (CodeableConcept e : element.getOutcome()) + composeCodeableConcept("outcome", e); } if (element.hasRecorder()) { composeReference("recorder", element.getRecorder()); @@ -30948,8 +31819,8 @@ public class XmlParser extends XmlParserBase { composeCodeableConcept("substance", element.getSubstance()); } if (element.hasManifestation()) { - for (CodeableConcept e : element.getManifestation()) - composeCodeableConcept("manifestation", e); + for (CodeableReference e : element.getManifestation()) + composeCodeableReference("manifestation", e); } if (element.hasDescriptionElement()) { composeString("description", element.getDescriptionElement()); @@ -31008,8 +31879,8 @@ public class XmlParser extends XmlParserBase { for (CodeableReference e : element.getReason()) composeCodeableReference("reason", e); } - if (element.hasPriorityElement()) { - composeUnsignedInt("priority", element.getPriorityElement()); + if (element.hasPriority()) { + composeCodeableConcept("priority", element.getPriority()); } if (element.hasDescriptionElement()) { composeString("description", element.getDescriptionElement()); @@ -31157,6 +32028,13 @@ public class XmlParser extends XmlParserBase { for (CodeableConcept e : element.getPurposeOfEvent()) composeCodeableConcept("purposeOfEvent", e); } + if (element.hasBasedOn()) { + for (Reference e : element.getBasedOn()) + composeReference("basedOn", e); + } + if (element.hasEncounter()) { + composeReference("encounter", element.getEncounter()); + } if (element.hasAgent()) { for (AuditEvent.AuditEventAgentComponent e : element.getAgent()) composeAuditEventAgentComponent("agent", e); @@ -32339,6 +33217,10 @@ public class XmlParser extends XmlParserBase { if (element.hasDocumentationElement()) { composeMarkdown("documentation", element.getDocumentationElement()); } + if (element.hasFeature()) { + for (CapabilityStatement2.CapabilityStatement2RestFeatureComponent e : element.getFeature()) + composeCapabilityStatement2RestFeatureComponent("feature", e); + } if (element.hasResource()) { for (CapabilityStatement2.CapabilityStatement2RestResourceComponent e : element.getResource()) composeCapabilityStatement2RestResourceComponent("resource", e); @@ -32361,6 +33243,24 @@ public class XmlParser extends XmlParserBase { } } + protected void composeCapabilityStatement2RestFeatureComponent(String name, CapabilityStatement2.CapabilityStatement2RestFeatureComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeCapabilityStatement2RestFeatureComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeCapabilityStatement2RestFeatureComponentElements(CapabilityStatement2.CapabilityStatement2RestFeatureComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasCodeElement()) + composeEnumeration("code", element.getCodeElement(), new CapabilityStatement2.CapabilityFeatureEnumFactory()); + if (element.hasValueElement()) + composeEnumeration("value", element.getValueElement(), new CapabilityStatement2.CapabilityFeatureValueEnumFactory()); + } + protected void composeCapabilityStatement2RestResourceComponent(String name, CapabilityStatement2.CapabilityStatement2RestResourceComponent element) throws IOException { if (element != null) { composeElementAttributes(element); @@ -32386,6 +33286,10 @@ public class XmlParser extends XmlParserBase { if (element.hasDocumentationElement()) { composeMarkdown("documentation", element.getDocumentationElement()); } + if (element.hasFeature()) { + for (CapabilityStatement2.CapabilityStatement2RestFeatureComponent e : element.getFeature()) + composeCapabilityStatement2RestFeatureComponent("feature", e); + } if (element.hasInteraction()) { for (CapabilityStatement2.ResourceInteractionComponent e : element.getInteraction()) composeCapabilityStatement2ResourceInteractionComponent("interaction", e); @@ -32417,6 +33321,10 @@ public class XmlParser extends XmlParserBase { if (element.hasDocumentationElement()) { composeMarkdown("documentation", element.getDocumentationElement()); } + if (element.hasFeature()) { + for (CapabilityStatement2.CapabilityStatement2RestFeatureComponent e : element.getFeature()) + composeCapabilityStatement2RestFeatureComponent("feature", e); + } } protected void composeCapabilityStatement2RestResourceSearchParamComponent(String name, CapabilityStatement2.CapabilityStatement2RestResourceSearchParamComponent element) throws IOException { @@ -32442,6 +33350,10 @@ public class XmlParser extends XmlParserBase { if (element.hasDocumentationElement()) { composeMarkdown("documentation", element.getDocumentationElement()); } + if (element.hasFeature()) { + for (CapabilityStatement2.CapabilityStatement2RestFeatureComponent e : element.getFeature()) + composeCapabilityStatement2RestFeatureComponent("feature", e); + } } protected void composeCapabilityStatement2RestResourceOperationComponent(String name, CapabilityStatement2.CapabilityStatement2RestResourceOperationComponent element) throws IOException { @@ -32465,6 +33377,10 @@ public class XmlParser extends XmlParserBase { if (element.hasDocumentationElement()) { composeMarkdown("documentation", element.getDocumentationElement()); } + if (element.hasFeature()) { + for (CapabilityStatement2.CapabilityStatement2RestFeatureComponent e : element.getFeature()) + composeCapabilityStatement2RestFeatureComponent("feature", e); + } } protected void composeCapabilityStatement2SystemInteractionComponent(String name, CapabilityStatement2.SystemInteractionComponent element) throws IOException { @@ -32484,6 +33400,10 @@ public class XmlParser extends XmlParserBase { if (element.hasDocumentationElement()) { composeMarkdown("documentation", element.getDocumentationElement()); } + if (element.hasFeature()) { + for (CapabilityStatement2.CapabilityStatement2RestFeatureComponent e : element.getFeature()) + composeCapabilityStatement2RestFeatureComponent("feature", e); + } } protected void composeCarePlan(String name, CarePlan element) throws IOException { @@ -32593,33 +33513,33 @@ public class XmlParser extends XmlParserBase { protected void composeCarePlanActivityComponentElements(CarePlan.CarePlanActivityComponent element) throws IOException { composeBackboneElementElements(element); - if (element.hasOutcome()) { - for (CodeableReference e : element.getOutcome()) - composeCodeableReference("outcome", e); + if (element.hasPerformedActivity()) { + for (CodeableReference e : element.getPerformedActivity()) + composeCodeableReference("performedActivity", e); } if (element.hasProgress()) { for (Annotation e : element.getProgress()) composeAnnotation("progress", e); } - if (element.hasReference()) { - composeReference("reference", element.getReference()); + if (element.hasPlannedActivityReference()) { + composeReference("plannedActivityReference", element.getPlannedActivityReference()); } - if (element.hasDetail()) { - composeCarePlanActivityDetailComponent("detail", element.getDetail()); + if (element.hasPlannedActivityDetail()) { + composeCarePlanActivityPlannedActivityDetailComponent("plannedActivityDetail", element.getPlannedActivityDetail()); } } - protected void composeCarePlanActivityDetailComponent(String name, CarePlan.CarePlanActivityDetailComponent element) throws IOException { + protected void composeCarePlanActivityPlannedActivityDetailComponent(String name, CarePlan.CarePlanActivityPlannedActivityDetailComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeCarePlanActivityDetailComponentElements(element); + composeCarePlanActivityPlannedActivityDetailComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeCarePlanActivityDetailComponentElements(CarePlan.CarePlanActivityDetailComponent element) throws IOException { + protected void composeCarePlanActivityPlannedActivityDetailComponentElements(CarePlan.CarePlanActivityPlannedActivityDetailComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasKindElement()) composeEnumeration("kind", element.getKindElement(), new CarePlan.CarePlanActivityKindEnumFactory()); @@ -33132,12 +34052,184 @@ public class XmlParser extends XmlParserBase { if (element.hasUrlElement()) { composeUri("url", element.getUrlElement()); } + if (element.hasIdentifier()) { + for (Identifier e : element.getIdentifier()) + composeIdentifier("identifier", e); + } + if (element.hasVersionElement()) { + composeString("version", element.getVersionElement()); + } + if (element.hasNameElement()) { + composeString("name", element.getNameElement()); + } + if (element.hasTitleElement()) { + composeString("title", element.getTitleElement()); + } if (element.hasStatusElement()) composeEnumeration("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory()); + if (element.hasExperimentalElement()) { + composeBoolean("experimental", element.getExperimentalElement()); + } + if (element.hasDateElement()) { + composeDateTime("date", element.getDateElement()); + } + if (element.hasPublisherElement()) { + composeString("publisher", element.getPublisherElement()); + } + if (element.hasContact()) { + for (ContactDetail e : element.getContact()) + composeContactDetail("contact", e); + } + if (element.hasDescriptionElement()) { + composeMarkdown("description", element.getDescriptionElement()); + } if (element.hasUseContext()) { for (UsageContext e : element.getUseContext()) composeUsageContext("useContext", e); } + if (element.hasJurisdiction()) { + for (CodeableConcept e : element.getJurisdiction()) + composeCodeableConcept("jurisdiction", e); + } + if (element.hasPurposeElement()) { + composeMarkdown("purpose", element.getPurposeElement()); + } + if (element.hasCopyrightElement()) { + composeMarkdown("copyright", element.getCopyrightElement()); + } + if (element.hasApprovalDateElement()) { + composeDate("approvalDate", element.getApprovalDateElement()); + } + if (element.hasLastReviewDateElement()) { + composeDate("lastReviewDate", element.getLastReviewDateElement()); + } + if (element.hasEffectivePeriod()) { + composePeriod("effectivePeriod", element.getEffectivePeriod()); + } + if (element.hasAuthor()) { + for (ContactDetail e : element.getAuthor()) + composeContactDetail("author", e); + } + if (element.hasEditor()) { + for (ContactDetail e : element.getEditor()) + composeContactDetail("editor", e); + } + if (element.hasReviewer()) { + for (ContactDetail e : element.getReviewer()) + composeContactDetail("reviewer", e); + } + if (element.hasEndorser()) { + for (ContactDetail e : element.getEndorser()) + composeContactDetail("endorser", e); + } + if (element.hasSummary()) { + for (ContactDetail e : element.getSummary()) + composeContactDetail("summary", e); + } + if (element.hasClassification()) { + for (Citation.CitationClassificationComponent e : element.getClassification()) + composeCitationClassificationComponent("classification", e); + } + if (element.hasNote()) { + for (Annotation e : element.getNote()) + composeAnnotation("note", e); + } + if (element.hasCurrentState()) { + for (CodeableConcept e : element.getCurrentState()) + composeCodeableConcept("currentState", e); + } + if (element.hasStatusDate()) { + for (Citation.CitationStatusDateComponent e : element.getStatusDate()) + composeCitationStatusDateComponent("statusDate", e); + } + if (element.hasRelatesTo()) { + for (Citation.CitationRelatesToComponent e : element.getRelatesTo()) + composeCitationRelatesToComponent("relatesTo", e); + } + if (element.hasCitedArtifact()) { + composeCitationCitedArtifactComponent("citedArtifact", element.getCitedArtifact()); + } + } + + protected void composeCitationClassificationComponent(String name, Citation.CitationClassificationComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeCitationClassificationComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeCitationClassificationComponentElements(Citation.CitationClassificationComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasClassifier()) { + for (CodeableConcept e : element.getClassifier()) + composeCodeableConcept("classifier", e); + } + } + + protected void composeCitationStatusDateComponent(String name, Citation.CitationStatusDateComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeCitationStatusDateComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeCitationStatusDateComponentElements(Citation.CitationStatusDateComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasActivity()) { + composeCodeableConcept("activity", element.getActivity()); + } + if (element.hasActualElement()) { + composeBoolean("actual", element.getActualElement()); + } + if (element.hasPeriod()) { + composePeriod("period", element.getPeriod()); + } + } + + protected void composeCitationRelatesToComponent(String name, Citation.CitationRelatesToComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeCitationRelatesToComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeCitationRelatesToComponentElements(Citation.CitationRelatesToComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasRelationshipType()) { + composeCodeableConcept("relationshipType", element.getRelationshipType()); + } + if (element.hasTargetClassifier()) { + for (CodeableConcept e : element.getTargetClassifier()) + composeCodeableConcept("targetClassifier", e); + } + if (element.hasTarget()) { + composeType("target", element.getTarget()); + } } + + protected void composeCitationCitedArtifactComponent(String name, Citation.CitationCitedArtifactComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeCitationCitedArtifactComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeCitationCitedArtifactComponentElements(Citation.CitationCitedArtifactComponent element) throws IOException { + composeBackboneElementElements(element); if (element.hasIdentifier()) { for (Identifier e : element.getIdentifier()) composeIdentifier("identifier", e); @@ -33146,111 +34238,159 @@ public class XmlParser extends XmlParserBase { for (Identifier e : element.getRelatedIdentifier()) composeIdentifier("relatedIdentifier", e); } - if (element.hasSummary()) { - for (Citation.CitationSummaryComponent e : element.getSummary()) - composeCitationSummaryComponent("summary", e); + if (element.hasDateAccessedElement()) { + composeDateTime("dateAccessed", element.getDateAccessedElement()); } - if (element.hasDateCitedElement()) { - composeDateTime("dateCited", element.getDateCitedElement()); + if (element.hasVersion()) { + composeCitationCitedArtifactVersionComponent("version", element.getVersion()); } - if (element.hasVariantCitation()) { - composeCitationVariantCitationComponent("variantCitation", element.getVariantCitation()); + if (element.hasCurrentState()) { + for (CodeableConcept e : element.getCurrentState()) + composeCodeableConcept("currentState", e); } - if (element.hasPublishingModel()) { - composeCodeableConcept("publishingModel", element.getPublishingModel()); + if (element.hasStatusDate()) { + for (Citation.CitationCitedArtifactStatusDateComponent e : element.getStatusDate()) + composeCitationCitedArtifactStatusDateComponent("statusDate", e); } - if (element.hasJournal()) { - composeCitationJournalComponent("journal", element.getJournal()); + if (element.hasTitle()) { + for (Citation.CitationCitedArtifactTitleComponent e : element.getTitle()) + composeCitationCitedArtifactTitleComponent("title", e); } - if (element.hasPublicationInfo()) { - composeCitationPublicationInfoComponent("publicationInfo", element.getPublicationInfo()); + if (element.hasAbstract()) { + for (Citation.CitationCitedArtifactAbstractComponent e : element.getAbstract()) + composeCitationCitedArtifactAbstractComponent("abstract", e); } - if (element.hasArticleTitleElement()) { - composeMarkdown("articleTitle", element.getArticleTitleElement()); + if (element.hasPart()) { + composeCitationCitedArtifactPartComponent("part", element.getPart()); } - if (element.hasAlternativeTitle()) { - for (Citation.CitationAlternativeTitleComponent e : element.getAlternativeTitle()) - composeCitationAlternativeTitleComponent("alternativeTitle", e); + if (element.hasRelatesTo()) { + for (Citation.CitationCitedArtifactRelatesToComponent e : element.getRelatesTo()) + composeCitationCitedArtifactRelatesToComponent("relatesTo", e); } - if (element.hasPagination()) { - composeCitationPaginationComponent("pagination", element.getPagination()); + if (element.hasPublicationForm()) { + for (Citation.CitationCitedArtifactPublicationFormComponent e : element.getPublicationForm()) + composeCitationCitedArtifactPublicationFormComponent("publicationForm", e); } - if (element.hasArticleUrl()) { - for (Citation.CitationArticleUrlComponent e : element.getArticleUrl()) - composeCitationArticleUrlComponent("articleUrl", e); + if (element.hasWebLocation()) { + for (Citation.CitationCitedArtifactWebLocationComponent e : element.getWebLocation()) + composeCitationCitedArtifactWebLocationComponent("webLocation", e); } - if (element.hasAbstractElement()) { - composeMarkdown("abstract", element.getAbstractElement()); - } - if (element.hasAbstractCopyrightElement()) { - composeMarkdown("abstractCopyright", element.getAbstractCopyrightElement()); - } - if (element.hasAlternativeAbstract()) { - for (Citation.CitationAlternativeAbstractComponent e : element.getAlternativeAbstract()) - composeCitationAlternativeAbstractComponent("alternativeAbstract", e); + if (element.hasClassification()) { + for (Citation.CitationCitedArtifactClassificationComponent e : element.getClassification()) + composeCitationCitedArtifactClassificationComponent("classification", e); } if (element.hasContributorship()) { - composeCitationContributorshipComponent("contributorship", element.getContributorship()); - } - if (element.hasArticleLanguage()) { - composeCodeableConcept("articleLanguage", element.getArticleLanguage()); - } - if (element.hasAlternativeForm()) { - for (Citation.CitationAlternativeFormComponent e : element.getAlternativeForm()) - composeCitationAlternativeFormComponent("alternativeForm", e); - } - if (element.hasClassifier()) { - for (CodeableConcept e : element.getClassifier()) - composeCodeableConcept("classifier", e); - } - if (element.hasKeywordList()) { - for (Citation.CitationKeywordListComponent e : element.getKeywordList()) - composeCitationKeywordListComponent("keywordList", e); - } - if (element.hasRelatedArtifact()) { - for (RelatedArtifact e : element.getRelatedArtifact()) - composeRelatedArtifact("relatedArtifact", e); + composeCitationCitedArtifactContributorshipComponent("contributorship", element.getContributorship()); } if (element.hasNote()) { for (Annotation e : element.getNote()) composeAnnotation("note", e); } - if (element.hasMedlinePubMed()) { - composeCitationMedlinePubMedComponent("medlinePubMed", element.getMedlinePubMed()); - } } - protected void composeCitationSummaryComponent(String name, Citation.CitationSummaryComponent element) throws IOException { + protected void composeCitationCitedArtifactVersionComponent(String name, Citation.CitationCitedArtifactVersionComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeCitationSummaryComponentElements(element); + composeCitationCitedArtifactVersionComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeCitationSummaryComponentElements(Citation.CitationSummaryComponent element) throws IOException { + protected void composeCitationCitedArtifactVersionComponentElements(Citation.CitationCitedArtifactVersionComponent element) throws IOException { composeBackboneElementElements(element); - if (element.hasStyle()) { - composeCodeableConcept("style", element.getStyle()); + if (element.hasValueElement()) { + composeString("value", element.getValueElement()); + } + if (element.hasBaseCitation()) { + composeReference("baseCitation", element.getBaseCitation()); + } + } + + protected void composeCitationCitedArtifactStatusDateComponent(String name, Citation.CitationCitedArtifactStatusDateComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeCitationCitedArtifactStatusDateComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeCitationCitedArtifactStatusDateComponentElements(Citation.CitationCitedArtifactStatusDateComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasActivity()) { + composeCodeableConcept("activity", element.getActivity()); + } + if (element.hasActualElement()) { + composeBoolean("actual", element.getActualElement()); + } + if (element.hasPeriod()) { + composePeriod("period", element.getPeriod()); + } + } + + protected void composeCitationCitedArtifactTitleComponent(String name, Citation.CitationCitedArtifactTitleComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeCitationCitedArtifactTitleComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeCitationCitedArtifactTitleComponentElements(Citation.CitationCitedArtifactTitleComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasLanguage()) { + composeCodeableConcept("language", element.getLanguage()); } if (element.hasTextElement()) { composeMarkdown("text", element.getTextElement()); } } - protected void composeCitationVariantCitationComponent(String name, Citation.CitationVariantCitationComponent element) throws IOException { + protected void composeCitationCitedArtifactAbstractComponent(String name, Citation.CitationCitedArtifactAbstractComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeCitationVariantCitationComponentElements(element); + composeCitationCitedArtifactAbstractComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeCitationVariantCitationComponentElements(Citation.CitationVariantCitationComponent element) throws IOException { + protected void composeCitationCitedArtifactAbstractComponentElements(Citation.CitationCitedArtifactAbstractComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasLanguage()) { + composeCodeableConcept("language", element.getLanguage()); + } + if (element.hasTextElement()) { + composeMarkdown("text", element.getTextElement()); + } + if (element.hasCopyrightElement()) { + composeMarkdown("copyright", element.getCopyrightElement()); + } + } + + protected void composeCitationCitedArtifactPartComponent(String name, Citation.CitationCitedArtifactPartComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeCitationCitedArtifactPartComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeCitationCitedArtifactPartComponentElements(Citation.CitationCitedArtifactPartComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasType()) { composeCodeableConcept("type", element.getType()); @@ -33263,44 +34403,118 @@ public class XmlParser extends XmlParserBase { } } - protected void composeCitationJournalComponent(String name, Citation.CitationJournalComponent element) throws IOException { + protected void composeCitationCitedArtifactRelatesToComponent(String name, Citation.CitationCitedArtifactRelatesToComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeCitationJournalComponentElements(element); + composeCitationCitedArtifactRelatesToComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeCitationJournalComponentElements(Citation.CitationJournalComponent element) throws IOException { + protected void composeCitationCitedArtifactRelatesToComponentElements(Citation.CitationCitedArtifactRelatesToComponent element) throws IOException { composeBackboneElementElements(element); + if (element.hasRelationshipType()) { + composeCodeableConcept("relationshipType", element.getRelationshipType()); + } + if (element.hasTargetClassifier()) { + for (CodeableConcept e : element.getTargetClassifier()) + composeCodeableConcept("targetClassifier", e); + } + if (element.hasTarget()) { + composeType("target", element.getTarget()); + } } + + protected void composeCitationCitedArtifactPublicationFormComponent(String name, Citation.CitationCitedArtifactPublicationFormComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeCitationCitedArtifactPublicationFormComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeCitationCitedArtifactPublicationFormComponentElements(Citation.CitationCitedArtifactPublicationFormComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasPublishedIn()) { + composeCitationCitedArtifactPublicationFormPublishedInComponent("publishedIn", element.getPublishedIn()); + } + if (element.hasPeriodicRelease()) { + composeCitationCitedArtifactPublicationFormPeriodicReleaseComponent("periodicRelease", element.getPeriodicRelease()); + } + if (element.hasArticleDateElement()) { + composeDateTime("articleDate", element.getArticleDateElement()); + } + if (element.hasLastRevisionDateElement()) { + composeDateTime("lastRevisionDate", element.getLastRevisionDateElement()); + } + if (element.hasLanguage()) { + for (CodeableConcept e : element.getLanguage()) + composeCodeableConcept("language", e); + } + if (element.hasAccessionNumberElement()) { + composeString("accessionNumber", element.getAccessionNumberElement()); + } + if (element.hasPageStringElement()) { + composeString("pageString", element.getPageStringElement()); + } + if (element.hasFirstPageElement()) { + composeString("firstPage", element.getFirstPageElement()); + } + if (element.hasLastPageElement()) { + composeString("lastPage", element.getLastPageElement()); + } + if (element.hasPageCountElement()) { + composeString("pageCount", element.getPageCountElement()); + } + if (element.hasCopyrightElement()) { + composeMarkdown("copyright", element.getCopyrightElement()); + } + } + + protected void composeCitationCitedArtifactPublicationFormPublishedInComponent(String name, Citation.CitationCitedArtifactPublicationFormPublishedInComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeCitationCitedArtifactPublicationFormPublishedInComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeCitationCitedArtifactPublicationFormPublishedInComponentElements(Citation.CitationCitedArtifactPublicationFormPublishedInComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } if (element.hasIdentifier()) { for (Identifier e : element.getIdentifier()) composeIdentifier("identifier", e); } - if (element.hasCountryElement()) { - composeString("country", element.getCountryElement()); - } - if (element.hasJournalIssue()) { - composeCitationJournalJournalIssueComponent("journalIssue", element.getJournalIssue()); - } if (element.hasTitleElement()) { composeString("title", element.getTitleElement()); } + if (element.hasPublisher()) { + composeReference("publisher", element.getPublisher()); + } + if (element.hasPublisherLocationElement()) { + composeString("publisherLocation", element.getPublisherLocationElement()); + } } - protected void composeCitationJournalJournalIssueComponent(String name, Citation.CitationJournalJournalIssueComponent element) throws IOException { + protected void composeCitationCitedArtifactPublicationFormPeriodicReleaseComponent(String name, Citation.CitationCitedArtifactPublicationFormPeriodicReleaseComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeCitationJournalJournalIssueComponentElements(element); + composeCitationCitedArtifactPublicationFormPeriodicReleaseComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeCitationJournalJournalIssueComponentElements(Citation.CitationJournalJournalIssueComponent element) throws IOException { + protected void composeCitationCitedArtifactPublicationFormPeriodicReleaseComponentElements(Citation.CitationCitedArtifactPublicationFormPeriodicReleaseComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasCitedMedium()) { composeCodeableConcept("citedMedium", element.getCitedMedium()); @@ -33311,22 +34525,22 @@ public class XmlParser extends XmlParserBase { if (element.hasIssueElement()) { composeString("issue", element.getIssueElement()); } - if (element.hasPublicationDate()) { - composeCitationJournalJournalIssuePublicationDateComponent("publicationDate", element.getPublicationDate()); + if (element.hasDateOfPublication()) { + composeCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent("dateOfPublication", element.getDateOfPublication()); } } - protected void composeCitationJournalJournalIssuePublicationDateComponent(String name, Citation.CitationJournalJournalIssuePublicationDateComponent element) throws IOException { + protected void composeCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent(String name, Citation.CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeCitationJournalJournalIssuePublicationDateComponentElements(element); + composeCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeCitationJournalJournalIssuePublicationDateComponentElements(Citation.CitationJournalJournalIssuePublicationDateComponent element) throws IOException { + protected void composeCitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponentElements(Citation.CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasDateElement()) { composeDate("date", element.getDateElement()); @@ -33348,122 +34562,17 @@ public class XmlParser extends XmlParserBase { } } - protected void composeCitationPublicationInfoComponent(String name, Citation.CitationPublicationInfoComponent element) throws IOException { + protected void composeCitationCitedArtifactWebLocationComponent(String name, Citation.CitationCitedArtifactWebLocationComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeCitationPublicationInfoComponentElements(element); + composeCitationCitedArtifactWebLocationComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeCitationPublicationInfoComponentElements(Citation.CitationPublicationInfoComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasPublishedIn()) { - composeCitationPublicationInfoPublishedInComponent("publishedIn", element.getPublishedIn()); - } - if (element.hasEntryDateElement()) { - composeDateTime("entryDate", element.getEntryDateElement()); - } - if (element.hasRevisionDateElement()) { - composeDateTime("revisionDate", element.getRevisionDateElement()); - } - if (element.hasPageCountElement()) { - composeString("pageCount", element.getPageCountElement()); - } - } - - protected void composeCitationPublicationInfoPublishedInComponent(String name, Citation.CitationPublicationInfoPublishedInComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeCitationPublicationInfoPublishedInComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeCitationPublicationInfoPublishedInComponentElements(Citation.CitationPublicationInfoPublishedInComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasType()) { - composeCodeableConcept("type", element.getType()); - } - if (element.hasIdentifier()) { - for (Identifier e : element.getIdentifier()) - composeIdentifier("identifier", e); - } - if (element.hasNameElement()) { - composeString("name", element.getNameElement()); - } - if (element.hasPublisher()) { - composeReference("publisher", element.getPublisher()); - } - if (element.hasPublisherLocationElement()) { - composeString("publisherLocation", element.getPublisherLocationElement()); - } - if (element.hasStartDateElement()) { - composeDate("startDate", element.getStartDateElement()); - } - } - - protected void composeCitationAlternativeTitleComponent(String name, Citation.CitationAlternativeTitleComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeCitationAlternativeTitleComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeCitationAlternativeTitleComponentElements(Citation.CitationAlternativeTitleComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasType()) { - composeCodeableConcept("type", element.getType()); - } - if (element.hasLanguage()) { - composeCodeableConcept("language", element.getLanguage()); - } - if (element.hasTitleElement()) { - composeMarkdown("title", element.getTitleElement()); - } - } - - protected void composeCitationPaginationComponent(String name, Citation.CitationPaginationComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeCitationPaginationComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeCitationPaginationComponentElements(Citation.CitationPaginationComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasPageStringElement()) { - composeString("pageString", element.getPageStringElement()); - } - if (element.hasFirstPageElement()) { - composeString("firstPage", element.getFirstPageElement()); - } - if (element.hasLastPageElement()) { - composeString("lastPage", element.getLastPageElement()); - } - } - - protected void composeCitationArticleUrlComponent(String name, Citation.CitationArticleUrlComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeCitationArticleUrlComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeCitationArticleUrlComponentElements(Citation.CitationArticleUrlComponent element) throws IOException { + protected void composeCitationCitedArtifactWebLocationComponentElements(Citation.CitationCitedArtifactWebLocationComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasType()) { composeCodeableConcept("type", element.getType()); @@ -33473,68 +34582,95 @@ public class XmlParser extends XmlParserBase { } } - protected void composeCitationAlternativeAbstractComponent(String name, Citation.CitationAlternativeAbstractComponent element) throws IOException { + protected void composeCitationCitedArtifactClassificationComponent(String name, Citation.CitationCitedArtifactClassificationComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeCitationAlternativeAbstractComponentElements(element); + composeCitationCitedArtifactClassificationComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeCitationAlternativeAbstractComponentElements(Citation.CitationAlternativeAbstractComponent element) throws IOException { + protected void composeCitationCitedArtifactClassificationComponentElements(Citation.CitationCitedArtifactClassificationComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasType()) { composeCodeableConcept("type", element.getType()); } - if (element.hasLanguage()) { - composeCodeableConcept("language", element.getLanguage()); + if (element.hasClassifier()) { + for (CodeableConcept e : element.getClassifier()) + composeCodeableConcept("classifier", e); } - if (element.hasAbstractElement()) { - composeMarkdown("abstract", element.getAbstractElement()); - } - if (element.hasAbstractCopyrightElement()) { - composeMarkdown("abstractCopyright", element.getAbstractCopyrightElement()); + if (element.hasWhoClassified()) { + composeCitationCitedArtifactClassificationWhoClassifiedComponent("whoClassified", element.getWhoClassified()); } } - protected void composeCitationContributorshipComponent(String name, Citation.CitationContributorshipComponent element) throws IOException { + protected void composeCitationCitedArtifactClassificationWhoClassifiedComponent(String name, Citation.CitationCitedArtifactClassificationWhoClassifiedComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeCitationContributorshipComponentElements(element); + composeCitationCitedArtifactClassificationWhoClassifiedComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeCitationContributorshipComponentElements(Citation.CitationContributorshipComponent element) throws IOException { + protected void composeCitationCitedArtifactClassificationWhoClassifiedComponentElements(Citation.CitationCitedArtifactClassificationWhoClassifiedComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasPerson()) { + composeReference("person", element.getPerson()); + } + if (element.hasOrganization()) { + composeReference("organization", element.getOrganization()); + } + if (element.hasPublisher()) { + composeReference("publisher", element.getPublisher()); + } + if (element.hasClassifierCopyrightElement()) { + composeString("classifierCopyright", element.getClassifierCopyrightElement()); + } + if (element.hasFreeToShareElement()) { + composeBoolean("freeToShare", element.getFreeToShareElement()); + } + } + + protected void composeCitationCitedArtifactContributorshipComponent(String name, Citation.CitationCitedArtifactContributorshipComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeCitationCitedArtifactContributorshipComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeCitationCitedArtifactContributorshipComponentElements(Citation.CitationCitedArtifactContributorshipComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasCompleteElement()) { composeBoolean("complete", element.getCompleteElement()); } if (element.hasEntry()) { - for (Citation.CitationContributorshipEntryComponent e : element.getEntry()) - composeCitationContributorshipEntryComponent("entry", e); + for (Citation.CitationCitedArtifactContributorshipEntryComponent e : element.getEntry()) + composeCitationCitedArtifactContributorshipEntryComponent("entry", e); } if (element.hasSummary()) { - for (Citation.CitationContributorshipSummaryComponent e : element.getSummary()) - composeCitationContributorshipSummaryComponent("summary", e); + for (Citation.CitationCitedArtifactContributorshipSummaryComponent e : element.getSummary()) + composeCitationCitedArtifactContributorshipSummaryComponent("summary", e); } } - protected void composeCitationContributorshipEntryComponent(String name, Citation.CitationContributorshipEntryComponent element) throws IOException { + protected void composeCitationCitedArtifactContributorshipEntryComponent(String name, Citation.CitationCitedArtifactContributorshipEntryComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeCitationContributorshipEntryComponentElements(element); + composeCitationCitedArtifactContributorshipEntryComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeCitationContributorshipEntryComponentElements(Citation.CitationContributorshipEntryComponent element) throws IOException { + protected void composeCitationCitedArtifactContributorshipEntryComponentElements(Citation.CitationCitedArtifactContributorshipEntryComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasName()) { composeHumanName("name", element.getName()); @@ -33550,8 +34686,8 @@ public class XmlParser extends XmlParserBase { composeIdentifier("identifier", e); } if (element.hasAffiliationInfo()) { - for (Citation.CitationContributorshipEntryAffiliationInfoComponent e : element.getAffiliationInfo()) - composeCitationContributorshipEntryAffiliationInfoComponent("affiliationInfo", e); + for (Citation.CitationCitedArtifactContributorshipEntryAffiliationInfoComponent e : element.getAffiliationInfo()) + composeCitationCitedArtifactContributorshipEntryAffiliationInfoComponent("affiliationInfo", e); } if (element.hasAddress()) { for (Address e : element.getAddress()) @@ -33561,32 +34697,36 @@ public class XmlParser extends XmlParserBase { for (ContactPoint e : element.getTelecom()) composeContactPoint("telecom", e); } - if (element.hasContribution()) { - for (CodeableConcept e : element.getContribution()) - composeCodeableConcept("contribution", e); + if (element.hasContributionType()) { + for (CodeableConcept e : element.getContributionType()) + composeCodeableConcept("contributionType", e); } - if (element.hasNotAnAuthorElement()) { - composeBoolean("notAnAuthor", element.getNotAnAuthorElement()); + if (element.hasRole()) { + composeCodeableConcept("role", element.getRole()); } - if (element.hasCorrespondingAuthorElement()) { - composeBoolean("correspondingAuthor", element.getCorrespondingAuthorElement()); + if (element.hasContributionInstance()) { + for (Citation.CitationCitedArtifactContributorshipEntryContributionInstanceComponent e : element.getContributionInstance()) + composeCitationCitedArtifactContributorshipEntryContributionInstanceComponent("contributionInstance", e); + } + if (element.hasCorrespondingContactElement()) { + composeBoolean("correspondingContact", element.getCorrespondingContactElement()); } if (element.hasListOrderElement()) { composePositiveInt("listOrder", element.getListOrderElement()); } } - protected void composeCitationContributorshipEntryAffiliationInfoComponent(String name, Citation.CitationContributorshipEntryAffiliationInfoComponent element) throws IOException { + protected void composeCitationCitedArtifactContributorshipEntryAffiliationInfoComponent(String name, Citation.CitationCitedArtifactContributorshipEntryAffiliationInfoComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeCitationContributorshipEntryAffiliationInfoComponentElements(element); + composeCitationCitedArtifactContributorshipEntryAffiliationInfoComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeCitationContributorshipEntryAffiliationInfoComponentElements(Citation.CitationContributorshipEntryAffiliationInfoComponent element) throws IOException { + protected void composeCitationCitedArtifactContributorshipEntryAffiliationInfoComponentElements(Citation.CitationCitedArtifactContributorshipEntryAffiliationInfoComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasAffiliationElement()) { composeString("affiliation", element.getAffiliationElement()); @@ -33600,17 +34740,37 @@ public class XmlParser extends XmlParserBase { } } - protected void composeCitationContributorshipSummaryComponent(String name, Citation.CitationContributorshipSummaryComponent element) throws IOException { + protected void composeCitationCitedArtifactContributorshipEntryContributionInstanceComponent(String name, Citation.CitationCitedArtifactContributorshipEntryContributionInstanceComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeCitationContributorshipSummaryComponentElements(element); + composeCitationCitedArtifactContributorshipEntryContributionInstanceComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeCitationContributorshipSummaryComponentElements(Citation.CitationContributorshipSummaryComponent element) throws IOException { + protected void composeCitationCitedArtifactContributorshipEntryContributionInstanceComponentElements(Citation.CitationCitedArtifactContributorshipEntryContributionInstanceComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasTimeElement()) { + composeDateTime("time", element.getTimeElement()); + } + } + + protected void composeCitationCitedArtifactContributorshipSummaryComponent(String name, Citation.CitationCitedArtifactContributorshipSummaryComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeCitationCitedArtifactContributorshipSummaryComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeCitationCitedArtifactContributorshipSummaryComponentElements(Citation.CitationCitedArtifactContributorshipSummaryComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasType()) { composeCodeableConcept("type", element.getType()); @@ -33626,302 +34786,6 @@ public class XmlParser extends XmlParserBase { } } - protected void composeCitationAlternativeFormComponent(String name, Citation.CitationAlternativeFormComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeCitationAlternativeFormComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeCitationAlternativeFormComponentElements(Citation.CitationAlternativeFormComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasPublishingModel()) { - composeCodeableConcept("publishingModel", element.getPublishingModel()); - } - if (element.hasLanguage()) { - composeCodeableConcept("language", element.getLanguage()); - } - if (element.hasJournalIssue()) { - composeCitationAlternativeFormJournalIssueComponent("journalIssue", element.getJournalIssue()); - } - if (element.hasPagination()) { - composeCitationAlternativeFormPaginationComponent("pagination", element.getPagination()); - } - if (element.hasPublicationInfo()) { - composeCitationAlternativeFormPublicationInfoComponent("publicationInfo", element.getPublicationInfo()); - } - } - - protected void composeCitationAlternativeFormJournalIssueComponent(String name, Citation.CitationAlternativeFormJournalIssueComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeCitationAlternativeFormJournalIssueComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeCitationAlternativeFormJournalIssueComponentElements(Citation.CitationAlternativeFormJournalIssueComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasCitedMedium()) { - composeCodeableConcept("citedMedium", element.getCitedMedium()); - } - if (element.hasVolumeElement()) { - composeString("volume", element.getVolumeElement()); - } - if (element.hasIssueElement()) { - composeString("issue", element.getIssueElement()); - } - if (element.hasPublicationDate()) { - composeCitationAlternativeFormJournalIssuePublicationDateComponent("publicationDate", element.getPublicationDate()); - } - } - - protected void composeCitationAlternativeFormJournalIssuePublicationDateComponent(String name, Citation.CitationAlternativeFormJournalIssuePublicationDateComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeCitationAlternativeFormJournalIssuePublicationDateComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeCitationAlternativeFormJournalIssuePublicationDateComponentElements(Citation.CitationAlternativeFormJournalIssuePublicationDateComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasDateElement()) { - composeDate("date", element.getDateElement()); - } - if (element.hasYearElement()) { - composeString("year", element.getYearElement()); - } - if (element.hasMonthElement()) { - composeString("month", element.getMonthElement()); - } - if (element.hasDayElement()) { - composeString("day", element.getDayElement()); - } - if (element.hasSeasonElement()) { - composeString("season", element.getSeasonElement()); - } - if (element.hasTextElement()) { - composeString("text", element.getTextElement()); - } - } - - protected void composeCitationAlternativeFormPaginationComponent(String name, Citation.CitationAlternativeFormPaginationComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeCitationAlternativeFormPaginationComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeCitationAlternativeFormPaginationComponentElements(Citation.CitationAlternativeFormPaginationComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasPageStringElement()) { - composeString("pageString", element.getPageStringElement()); - } - if (element.hasFirstPageElement()) { - composeString("firstPage", element.getFirstPageElement()); - } - if (element.hasLastPageElement()) { - composeString("lastPage", element.getLastPageElement()); - } - } - - protected void composeCitationAlternativeFormPublicationInfoComponent(String name, Citation.CitationAlternativeFormPublicationInfoComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeCitationAlternativeFormPublicationInfoComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeCitationAlternativeFormPublicationInfoComponentElements(Citation.CitationAlternativeFormPublicationInfoComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasPublishedIn()) { - composeCitationAlternativeFormPublicationInfoPublishedInComponent("publishedIn", element.getPublishedIn()); - } - if (element.hasEntryDateElement()) { - composeDateTime("entryDate", element.getEntryDateElement()); - } - if (element.hasRevisionDateElement()) { - composeDateTime("revisionDate", element.getRevisionDateElement()); - } - if (element.hasPageCountElement()) { - composeString("pageCount", element.getPageCountElement()); - } - } - - protected void composeCitationAlternativeFormPublicationInfoPublishedInComponent(String name, Citation.CitationAlternativeFormPublicationInfoPublishedInComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeCitationAlternativeFormPublicationInfoPublishedInComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeCitationAlternativeFormPublicationInfoPublishedInComponentElements(Citation.CitationAlternativeFormPublicationInfoPublishedInComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasType()) { - composeCodeableConcept("type", element.getType()); - } - if (element.hasNameElement()) { - composeString("name", element.getNameElement()); - } - if (element.hasPublisher()) { - composeReference("publisher", element.getPublisher()); - } - if (element.hasPublisherLocationElement()) { - composeString("publisherLocation", element.getPublisherLocationElement()); - } - if (element.hasStartDateElement()) { - composeDate("startDate", element.getStartDateElement()); - } - } - - protected void composeCitationKeywordListComponent(String name, Citation.CitationKeywordListComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeCitationKeywordListComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeCitationKeywordListComponentElements(Citation.CitationKeywordListComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasOwnerElement()) { - composeString("owner", element.getOwnerElement()); - } - if (element.hasKeyword()) { - for (Citation.CitationKeywordListKeywordComponent e : element.getKeyword()) - composeCitationKeywordListKeywordComponent("keyword", e); - } - } - - protected void composeCitationKeywordListKeywordComponent(String name, Citation.CitationKeywordListKeywordComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeCitationKeywordListKeywordComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeCitationKeywordListKeywordComponentElements(Citation.CitationKeywordListKeywordComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasMajorTopicElement()) { - composeBoolean("majorTopic", element.getMajorTopicElement()); - } - if (element.hasValueElement()) { - composeString("value", element.getValueElement()); - } - } - - protected void composeCitationMedlinePubMedComponent(String name, Citation.CitationMedlinePubMedComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeCitationMedlinePubMedComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeCitationMedlinePubMedComponentElements(Citation.CitationMedlinePubMedComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasMedlineState()) { - composeCodeableConcept("medlineState", element.getMedlineState()); - } - if (element.hasOwner()) { - composeCodeableConcept("owner", element.getOwner()); - } - if (element.hasPmidElement()) { - composePositiveInt("pmid", element.getPmidElement()); - } - if (element.hasPmidVersionElement()) { - composePositiveInt("pmidVersion", element.getPmidVersionElement()); - } - if (element.hasDateCreatedElement()) { - composeDate("dateCreated", element.getDateCreatedElement()); - } - if (element.hasDateCompletedElement()) { - composeDate("dateCompleted", element.getDateCompletedElement()); - } - if (element.hasDateRevisedElement()) { - composeDate("dateRevised", element.getDateRevisedElement()); - } - if (element.hasPubMedPubDate()) { - for (Citation.CitationMedlinePubMedPubMedPubDateComponent e : element.getPubMedPubDate()) - composeCitationMedlinePubMedPubMedPubDateComponent("pubMedPubDate", e); - } - if (element.hasPublicationState()) { - composeCodeableConcept("publicationState", element.getPublicationState()); - } - if (element.hasRelatedArticle()) { - for (Citation.CitationMedlinePubMedRelatedArticleComponent e : element.getRelatedArticle()) - composeCitationMedlinePubMedRelatedArticleComponent("relatedArticle", e); - } - } - - protected void composeCitationMedlinePubMedPubMedPubDateComponent(String name, Citation.CitationMedlinePubMedPubMedPubDateComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeCitationMedlinePubMedPubMedPubDateComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeCitationMedlinePubMedPubMedPubDateComponentElements(Citation.CitationMedlinePubMedPubMedPubDateComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasPublicationState()) { - composeCodeableConcept("publicationState", element.getPublicationState()); - } - if (element.hasDateElement()) { - composeDateTime("date", element.getDateElement()); - } - } - - protected void composeCitationMedlinePubMedRelatedArticleComponent(String name, Citation.CitationMedlinePubMedRelatedArticleComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeCitationMedlinePubMedRelatedArticleComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeCitationMedlinePubMedRelatedArticleComponentElements(Citation.CitationMedlinePubMedRelatedArticleComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasCitationReference()) { - composeReference("citationReference", element.getCitationReference()); - } - if (element.hasCitationMarkdownElement()) { - composeMarkdown("citationMarkdown", element.getCitationMarkdownElement()); - } - if (element.hasIdentifier()) { - for (Identifier e : element.getIdentifier()) - composeIdentifier("identifier", e); - } - } - protected void composeClaim(String name, Claim element) throws IOException { if (element != null) { composeResourceAttributes(element); @@ -35091,14 +35955,14 @@ public class XmlParser extends XmlParserBase { protected void composeClinicalUseIssueContraindicationComponentElements(ClinicalUseIssue.ClinicalUseIssueContraindicationComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasDiseaseSymptomProcedure()) { - composeCodeableConcept("diseaseSymptomProcedure", element.getDiseaseSymptomProcedure()); + composeCodeableReference("diseaseSymptomProcedure", element.getDiseaseSymptomProcedure()); } if (element.hasDiseaseStatus()) { - composeCodeableConcept("diseaseStatus", element.getDiseaseStatus()); + composeCodeableReference("diseaseStatus", element.getDiseaseStatus()); } if (element.hasComorbidity()) { - for (CodeableConcept e : element.getComorbidity()) - composeCodeableConcept("comorbidity", e); + for (CodeableReference e : element.getComorbidity()) + composeCodeableReference("comorbidity", e); } if (element.hasIndication()) { for (Reference e : element.getIndication()) @@ -35122,12 +35986,13 @@ public class XmlParser extends XmlParserBase { protected void composeClinicalUseIssueContraindicationOtherTherapyComponentElements(ClinicalUseIssue.ClinicalUseIssueContraindicationOtherTherapyComponent element) throws IOException { composeBackboneElementElements(element); - if (element.hasTherapyRelationshipType()) { - composeCodeableConcept("therapyRelationshipType", element.getTherapyRelationshipType()); + if (element.hasRelationshipType()) { + composeCodeableConcept("relationshipType", element.getRelationshipType()); } - if (element.hasMedication()) { - composeType("medication", element.getMedication()); - } } + if (element.hasTherapy()) { + composeCodeableReference("therapy", element.getTherapy()); + } + } protected void composeClinicalUseIssueIndicationComponent(String name, ClinicalUseIssue.ClinicalUseIssueIndicationComponent element) throws IOException { if (element != null) { @@ -35142,17 +36007,17 @@ public class XmlParser extends XmlParserBase { protected void composeClinicalUseIssueIndicationComponentElements(ClinicalUseIssue.ClinicalUseIssueIndicationComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasDiseaseSymptomProcedure()) { - composeCodeableConcept("diseaseSymptomProcedure", element.getDiseaseSymptomProcedure()); + composeCodeableReference("diseaseSymptomProcedure", element.getDiseaseSymptomProcedure()); } if (element.hasDiseaseStatus()) { - composeCodeableConcept("diseaseStatus", element.getDiseaseStatus()); + composeCodeableReference("diseaseStatus", element.getDiseaseStatus()); } if (element.hasComorbidity()) { - for (CodeableConcept e : element.getComorbidity()) - composeCodeableConcept("comorbidity", e); + for (CodeableReference e : element.getComorbidity()) + composeCodeableReference("comorbidity", e); } if (element.hasIntendedEffect()) { - composeCodeableConcept("intendedEffect", element.getIntendedEffect()); + composeCodeableReference("intendedEffect", element.getIntendedEffect()); } if (element.hasDuration()) { composeQuantity("duration", element.getDuration()); @@ -35187,7 +36052,7 @@ public class XmlParser extends XmlParserBase { composeCodeableConcept("type", element.getType()); } if (element.hasEffect()) { - composeCodeableConcept("effect", element.getEffect()); + composeCodeableReference("effect", element.getEffect()); } if (element.hasIncidence()) { composeCodeableConcept("incidence", element.getIncidence()); @@ -35226,7 +36091,7 @@ public class XmlParser extends XmlParserBase { protected void composeClinicalUseIssueUndesirableEffectComponentElements(ClinicalUseIssue.ClinicalUseIssueUndesirableEffectComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasSymptomConditionEffect()) { - composeCodeableConcept("symptomConditionEffect", element.getSymptomConditionEffect()); + composeCodeableReference("symptomConditionEffect", element.getSymptomConditionEffect()); } if (element.hasClassification()) { composeCodeableConcept("classification", element.getClassification()); @@ -35599,6 +36464,8 @@ public class XmlParser extends XmlParserBase { if (element.hasStatusReason()) { composeCodeableConcept("statusReason", element.getStatusReason()); } + if (element.hasIntentElement()) + composeEnumeration("intent", element.getIntentElement(), new Enumerations.RequestIntentEnumFactory()); if (element.hasCategory()) { for (CodeableConcept e : element.getCategory()) composeCodeableConcept("category", e); @@ -35939,8 +36806,9 @@ public class XmlParser extends XmlParserBase { if (element.hasUrlElement()) { composeUri("url", element.getUrlElement()); } - if (element.hasIdentifier()) { - composeIdentifier("identifier", element.getIdentifierFirstRep()); + if (element.hasIdentifier()) { + for (Identifier e : element.getIdentifier()) + composeIdentifier("identifier", e); } if (element.hasVersionElement()) { composeString("version", element.getVersionElement()); @@ -36006,16 +36874,10 @@ public class XmlParser extends XmlParserBase { protected void composeConceptMapGroupComponentElements(ConceptMap.ConceptMapGroupComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasSourceElement()) { - composeUri("source", element.getSourceElement()); - } - if (element.hasSourceVersionElement()) { - composeString("sourceVersion", element.getSourceVersionElement()); + composeCanonical("source", element.getSourceElement()); } if (element.hasTargetElement()) { - composeUri("target", element.getTargetElement()); - } - if (element.hasTargetVersionElement()) { - composeString("targetVersion", element.getTargetVersionElement()); + composeCanonical("target", element.getTargetElement()); } if (element.hasElement()) { for (ConceptMap.SourceElementComponent e : element.getElement()) @@ -37658,7 +38520,7 @@ public class XmlParser extends XmlParserBase { composeReference("request", element.getRequest()); } if (element.hasOutcomeElement()) - composeEnumeration("outcome", element.getOutcomeElement(), new Enumerations.ClaimProcessingCodesEnumFactory()); + composeEnumeration("outcome", element.getOutcomeElement(), new CoverageEligibilityResponse.EligibilityOutcomeEnumFactory()); if (element.hasDispositionElement()) { composeString("disposition", element.getDispositionElement()); } @@ -38120,15 +38982,9 @@ public class XmlParser extends XmlParserBase { if (element.hasType()) { composeCodeableConcept("type", element.getType()); } - if (element.hasValueQuantity()) { - for (Quantity e : element.getValueQuantity()) - composeQuantity("valueQuantity", e); - } - if (element.hasValueCode()) { - for (CodeableConcept e : element.getValueCode()) - composeCodeableConcept("valueCode", e); - } - } + if (element.hasValue()) { + composeType("value", element.getValue()); + } } protected void composeDeviceOperationalStatusComponent(String name, Device.DeviceOperationalStatusComponent element) throws IOException { if (element != null) { @@ -38201,16 +39057,25 @@ public class XmlParser extends XmlParserBase { if (element.hasModelNumberElement()) { composeString("modelNumber", element.getModelNumberElement()); } - if (element.hasType()) { - composeCodeableConcept("type", element.getType()); + if (element.hasType()) { + for (CodeableConcept e : element.getType()) + composeCodeableConcept("type", e); } if (element.hasSpecialization()) { for (DeviceDefinition.DeviceDefinitionSpecializationComponent e : element.getSpecialization()) composeDeviceDefinitionSpecializationComponent("specialization", e); } + if (element.hasHasPart()) { + for (DeviceDefinition.DeviceDefinitionHasPartComponent e : element.getHasPart()) + composeDeviceDefinitionHasPartComponent("hasPart", e); + } + if (element.hasPackaging()) { + for (DeviceDefinition.DeviceDefinitionPackagingComponent e : element.getPackaging()) + composeDeviceDefinitionPackagingComponent("packaging", e); + } if (element.hasVersion()) { - for (StringType e : element.getVersion()) - composeString("version", e); + for (DeviceDefinition.DeviceDefinitionVersionComponent e : element.getVersion()) + composeDeviceDefinitionVersionComponent("version", e); } if (element.hasSafety()) { for (CodeableConcept e : element.getSafety()) @@ -38249,9 +39114,6 @@ public class XmlParser extends XmlParserBase { for (Annotation e : element.getNote()) composeAnnotation("note", e); } - if (element.hasQuantity()) { - composeQuantity("quantity", element.getQuantity()); - } if (element.hasParentDevice()) { composeReference("parentDevice", element.getParentDevice()); } @@ -38323,6 +39185,128 @@ public class XmlParser extends XmlParserBase { } } + protected void composeDeviceDefinitionHasPartComponent(String name, DeviceDefinition.DeviceDefinitionHasPartComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeDeviceDefinitionHasPartComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeDeviceDefinitionHasPartComponentElements(DeviceDefinition.DeviceDefinitionHasPartComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasReference()) { + composeReference("reference", element.getReference()); + } + if (element.hasCountElement()) { + composeInteger("count", element.getCountElement()); + } + } + + protected void composeDeviceDefinitionPackagingComponent(String name, DeviceDefinition.DeviceDefinitionPackagingComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeDeviceDefinitionPackagingComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeDeviceDefinitionPackagingComponentElements(DeviceDefinition.DeviceDefinitionPackagingComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasIdentifier()) { + composeIdentifier("identifier", element.getIdentifier()); + } + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasCountElement()) { + composeInteger("count", element.getCountElement()); + } + if (element.hasDistributor()) { + for (DeviceDefinition.DeviceDefinitionPackagingDistributorComponent e : element.getDistributor()) + composeDeviceDefinitionPackagingDistributorComponent("distributor", e); + } + if (element.hasUdiDeviceIdentifier()) { + for (DeviceDefinition.DeviceDefinitionPackagingUdiDeviceIdentifierComponent e : element.getUdiDeviceIdentifier()) + composeDeviceDefinitionPackagingUdiDeviceIdentifierComponent("udiDeviceIdentifier", e); + } + if (element.hasPackaging()) { + for (DeviceDefinition.DeviceDefinitionPackagingComponent e : element.getPackaging()) + composeDeviceDefinitionPackagingComponent("packaging", e); + } + } + + protected void composeDeviceDefinitionPackagingDistributorComponent(String name, DeviceDefinition.DeviceDefinitionPackagingDistributorComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeDeviceDefinitionPackagingDistributorComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeDeviceDefinitionPackagingDistributorComponentElements(DeviceDefinition.DeviceDefinitionPackagingDistributorComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasNameElement()) { + composeString("name", element.getNameElement()); + } + if (element.hasOrganizationReference()) { + for (Reference e : element.getOrganizationReference()) + composeReference("organizationReference", e); + } + } + + protected void composeDeviceDefinitionPackagingUdiDeviceIdentifierComponent(String name, DeviceDefinition.DeviceDefinitionPackagingUdiDeviceIdentifierComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeDeviceDefinitionPackagingUdiDeviceIdentifierComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeDeviceDefinitionPackagingUdiDeviceIdentifierComponentElements(DeviceDefinition.DeviceDefinitionPackagingUdiDeviceIdentifierComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasDeviceIdentifierElement()) { + composeString("deviceIdentifier", element.getDeviceIdentifierElement()); + } + if (element.hasIssuerElement()) { + composeUri("issuer", element.getIssuerElement()); + } + if (element.hasJurisdictionElement()) { + composeUri("jurisdiction", element.getJurisdictionElement()); + } + } + + protected void composeDeviceDefinitionVersionComponent(String name, DeviceDefinition.DeviceDefinitionVersionComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeDeviceDefinitionVersionComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeDeviceDefinitionVersionComponentElements(DeviceDefinition.DeviceDefinitionVersionComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasComponent()) { + composeIdentifier("component", element.getComponent()); + } + if (element.hasValueElement()) { + composeString("value", element.getValueElement()); + } + } + protected void composeDeviceDefinitionCapabilityComponent(String name, DeviceDefinition.DeviceDefinitionCapabilityComponent element) throws IOException { if (element != null) { composeElementAttributes(element); @@ -38497,9 +39481,15 @@ public class XmlParser extends XmlParserBase { composeEnumeration("intent", element.getIntentElement(), new Enumerations.RequestIntentEnumFactory()); if (element.hasPriorityElement()) composeEnumeration("priority", element.getPriorityElement(), new Enumerations.RequestPriorityEnumFactory()); + if (element.hasDoNotPerformElement()) { + composeBoolean("doNotPerform", element.getDoNotPerformElement()); + } if (element.hasCode()) { composeCodeableReference("code", element.getCode()); } + if (element.hasQuantityElement()) { + composeInteger("quantity", element.getQuantityElement()); + } if (element.hasParameter()) { for (DeviceRequest.DeviceRequestParameterComponent e : element.getParameter()) composeDeviceRequestParameterComponent("parameter", e); @@ -38565,17 +39555,17 @@ public class XmlParser extends XmlParserBase { composeType("value", element.getValue()); } } - protected void composeDeviceUseStatement(String name, DeviceUseStatement element) throws IOException { + protected void composeDeviceUsage(String name, DeviceUsage element) throws IOException { if (element != null) { composeResourceAttributes(element); xml.enter(FHIR_NS, name); - composeDeviceUseStatementElements(element); + composeDeviceUsageElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeDeviceUseStatementElements(DeviceUseStatement element) throws IOException { + protected void composeDeviceUsageElements(DeviceUsage element) throws IOException { composeDomainResourceElements(element); if (element.hasIdentifier()) { for (Identifier e : element.getIdentifier()) @@ -38586,7 +39576,7 @@ public class XmlParser extends XmlParserBase { composeReference("basedOn", e); } if (element.hasStatusElement()) - composeEnumeration("status", element.getStatusElement(), new DeviceUseStatement.DeviceUseStatementStatusEnumFactory()); + composeEnumeration("status", element.getStatusElement(), new DeviceUsage.DeviceUsageStatusEnumFactory()); if (element.hasCategory()) { for (CodeableConcept e : element.getCategory()) composeCodeableConcept("category", e); @@ -38696,6 +39686,9 @@ public class XmlParser extends XmlParserBase { for (DiagnosticReport.DiagnosticReportMediaComponent e : element.getMedia()) composeDiagnosticReportMediaComponent("media", e); } + if (element.hasComposition()) { + composeReference("composition", element.getComposition()); + } if (element.hasConclusionElement()) { composeString("conclusion", element.getConclusionElement()); } @@ -39313,7 +40306,7 @@ public class XmlParser extends XmlParserBase { composeReference("request", element.getRequest()); } if (element.hasOutcomeElement()) - composeEnumeration("outcome", element.getOutcomeElement(), new Enumerations.ClaimProcessingCodesEnumFactory()); + composeEnumeration("outcome", element.getOutcomeElement(), new EnrollmentResponse.EnrollmentOutcomeEnumFactory()); if (element.hasDispositionElement()) { composeString("disposition", element.getDispositionElement()); } @@ -39558,7 +40551,9 @@ public class XmlParser extends XmlParserBase { if (element.hasTitleElement()) { composeString("title", element.getTitleElement()); } - if (element.hasStatusElement()) + if (element.hasCiteAs()) { + composeType("citeAs", element.getCiteAs()); + } if (element.hasStatusElement()) composeEnumeration("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory()); if (element.hasDateElement()) { composeDateTime("date", element.getDateElement()); @@ -39682,46 +40677,22 @@ public class XmlParser extends XmlParserBase { if (element.hasDescriptionElement()) { composeString("description", element.getDescriptionElement()); } - if (element.hasNote()) { + if (element.hasNote()) { for (Annotation e : element.getNote()) composeAnnotation("note", e); } - if (element.hasRating()) { - for (CodeableConcept e : element.getRating()) - composeCodeableConcept("rating", e); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); } - if (element.hasCertaintySubcomponent()) { - for (Evidence.EvidenceCertaintyCertaintySubcomponentComponent e : element.getCertaintySubcomponent()) - composeEvidenceCertaintyCertaintySubcomponentComponent("certaintySubcomponent", e); + if (element.hasRating()) { + composeCodeableConcept("rating", element.getRating()); } - } - - protected void composeEvidenceCertaintyCertaintySubcomponentComponent(String name, Evidence.EvidenceCertaintyCertaintySubcomponentComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeEvidenceCertaintyCertaintySubcomponentComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); + if (element.hasRaterElement()) { + composeString("rater", element.getRaterElement()); } - } - - protected void composeEvidenceCertaintyCertaintySubcomponentComponentElements(Evidence.EvidenceCertaintyCertaintySubcomponentComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasDescriptionElement()) { - composeString("description", element.getDescriptionElement()); - } - if (element.hasNote()) { - for (Annotation e : element.getNote()) - composeAnnotation("note", e); - } - if (element.hasType()) { - for (CodeableConcept e : element.getType()) - composeCodeableConcept("type", e); - } - if (element.hasRating()) { - for (CodeableConcept e : element.getRating()) - composeCodeableConcept("rating", e); + if (element.hasSubcomponent()) { + for (Evidence.EvidenceCertaintyComponent e : element.getSubcomponent()) + composeEvidenceCertaintyComponent("subcomponent", e); } } @@ -39755,9 +40726,8 @@ public class XmlParser extends XmlParserBase { composeIdentifier("relatedIdentifier", e); } if (element.hasCiteAs()) { - composeReference("citeAs", element.getCiteAs()); - } - if (element.hasType()) { + composeType("citeAs", element.getCiteAs()); + } if (element.hasType()) { composeCodeableConcept("type", element.getType()); } if (element.hasNote()) { @@ -39910,6 +40880,10 @@ public class XmlParser extends XmlParserBase { for (Reference e : element.getEntryReference()) composeReference("entryReference", e); } + if (element.hasEntryQuantity()) { + for (Quantity e : element.getEntryQuantity()) + composeQuantity("entryQuantity", e); + } if (element.hasEmptyReason()) { composeCodeableConcept("emptyReason", element.getEmptyReason()); } @@ -41506,8 +42480,8 @@ public class XmlParser extends XmlParserBase { if (element.hasStatusReasonElement()) { composeString("statusReason", element.getStatusReasonElement()); } - if (element.hasExpressedBy()) { - composeReference("expressedBy", element.getExpressedBy()); + if (element.hasSource()) { + composeReference("source", element.getSource()); } if (element.hasAddresses()) { for (Reference e : element.getAddresses()) @@ -42964,6 +43938,9 @@ public class XmlParser extends XmlParserBase { for (CodeableConcept e : element.getFunction()) composeCodeableConcept("function", e); } + if (element.hasGroup()) { + composeCodeableConcept("group", element.getGroup()); + } if (element.hasDescriptionElement()) { composeMarkdown("description", element.getDescriptionElement()); } @@ -42996,8 +43973,9 @@ public class XmlParser extends XmlParserBase { protected void composeIngredientSubstanceComponentElements(Ingredient.IngredientSubstanceComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasCode()) { - composeType("code", element.getCode()); - } if (element.hasStrength()) { + composeCodeableReference("code", element.getCode()); + } + if (element.hasStrength()) { for (Ingredient.IngredientSubstanceStrengthComponent e : element.getStrength()) composeIngredientSubstanceStrengthComponent("strength", e); } @@ -43016,23 +43994,22 @@ public class XmlParser extends XmlParserBase { protected void composeIngredientSubstanceStrengthComponentElements(Ingredient.IngredientSubstanceStrengthComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasPresentation()) { - composeRatio("presentation", element.getPresentation()); - } - if (element.hasPresentationHighLimit()) { - composeRatio("presentationHighLimit", element.getPresentationHighLimit()); - } - if (element.hasPresentationTextElement()) { + composeType("presentation", element.getPresentation()); + } if (element.hasPresentationHighLimit()) { + composeType("presentationHighLimit", element.getPresentationHighLimit()); + } if (element.hasPresentationTextElement()) { composeString("presentationText", element.getPresentationTextElement()); } if (element.hasConcentration()) { - composeRatio("concentration", element.getConcentration()); - } - if (element.hasConcentrationHighLimit()) { - composeRatio("concentrationHighLimit", element.getConcentrationHighLimit()); - } - if (element.hasConcentrationTextElement()) { + composeType("concentration", element.getConcentration()); + } if (element.hasConcentrationHighLimit()) { + composeType("concentrationHighLimit", element.getConcentrationHighLimit()); + } if (element.hasConcentrationTextElement()) { composeString("concentrationText", element.getConcentrationTextElement()); } + if (element.hasBasis()) { + composeCodeableConcept("basis", element.getBasis()); + } if (element.hasMeasurementPointElement()) { composeString("measurementPoint", element.getMeasurementPointElement()); } @@ -43059,14 +44036,13 @@ public class XmlParser extends XmlParserBase { protected void composeIngredientSubstanceStrengthReferenceStrengthComponentElements(Ingredient.IngredientSubstanceStrengthReferenceStrengthComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasSubstance()) { - composeType("substance", element.getSubstance()); - } if (element.hasStrength()) { - composeRatio("strength", element.getStrength()); + composeCodeableReference("substance", element.getSubstance()); } - if (element.hasStrengthHighLimit()) { - composeRatio("strengthHighLimit", element.getStrengthHighLimit()); - } - if (element.hasMeasurementPointElement()) { + if (element.hasStrength()) { + composeType("strength", element.getStrength()); + } if (element.hasStrengthHighLimit()) { + composeType("strengthHighLimit", element.getStrengthHighLimit()); + } if (element.hasMeasurementPointElement()) { composeString("measurementPoint", element.getMeasurementPointElement()); } if (element.hasCountry()) { @@ -43088,8 +44064,9 @@ public class XmlParser extends XmlParserBase { protected void composeIngredientSpecifiedSubstanceComponentElements(Ingredient.IngredientSpecifiedSubstanceComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasCode()) { - composeType("code", element.getCode()); - } if (element.hasGroup()) { + composeCodeableReference("code", element.getCode()); + } + if (element.hasGroup()) { composeCodeableConcept("group", element.getGroup()); } if (element.hasConfidentiality()) { @@ -43393,6 +44370,112 @@ public class XmlParser extends XmlParserBase { } } + protected void composeInventoryReport(String name, InventoryReport element) throws IOException { + if (element != null) { + composeResourceAttributes(element); + xml.enter(FHIR_NS, name); + composeInventoryReportElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeInventoryReportElements(InventoryReport element) throws IOException { + composeDomainResourceElements(element); + if (element.hasIdentifier()) { + for (Identifier e : element.getIdentifier()) + composeIdentifier("identifier", e); + } + if (element.hasStatusElement()) + composeEnumeration("status", element.getStatusElement(), new InventoryReport.InventoryReportStatusEnumFactory()); + if (element.hasCountTypeElement()) + composeEnumeration("countType", element.getCountTypeElement(), new InventoryReport.InventoryCountTypeEnumFactory()); + if (element.hasOperationType()) { + composeCodeableConcept("operationType", element.getOperationType()); + } + if (element.hasOperationTypeReason()) { + composeCodeableConcept("operationTypeReason", element.getOperationTypeReason()); + } + if (element.hasReportedDateTimeElement()) { + composeDateTime("reportedDateTime", element.getReportedDateTimeElement()); + } + if (element.hasReporter()) { + composeReference("reporter", element.getReporter()); + } + if (element.hasReportingPeriod()) { + composePeriod("reportingPeriod", element.getReportingPeriod()); + } + if (element.hasInventoryListing()) { + for (InventoryReport.InventoryReportInventoryListingComponent e : element.getInventoryListing()) + composeInventoryReportInventoryListingComponent("inventoryListing", e); + } + if (element.hasNote()) { + composeAnnotation("note", element.getNote()); + } + } + + protected void composeInventoryReportInventoryListingComponent(String name, InventoryReport.InventoryReportInventoryListingComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeInventoryReportInventoryListingComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeInventoryReportInventoryListingComponentElements(InventoryReport.InventoryReportInventoryListingComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasLocation()) { + composeReference("location", element.getLocation()); + } + if (element.hasItemStatus()) { + composeCodeableConcept("itemStatus", element.getItemStatus()); + } + if (element.hasCountingDateTimeElement()) { + composeDateTime("countingDateTime", element.getCountingDateTimeElement()); + } + if (element.hasItems()) { + for (InventoryReport.InventoryReportInventoryListingItemsComponent e : element.getItems()) + composeInventoryReportInventoryListingItemsComponent("items", e); + } + } + + protected void composeInventoryReportInventoryListingItemsComponent(String name, InventoryReport.InventoryReportInventoryListingItemsComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeInventoryReportInventoryListingItemsComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeInventoryReportInventoryListingItemsComponentElements(InventoryReport.InventoryReportInventoryListingItemsComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasCategory()) { + composeCodeableConcept("category", element.getCategory()); + } + if (element.hasQuantity()) { + composeQuantity("quantity", element.getQuantity()); + } + if (element.hasItem()) { + composeCodeableReference("item", element.getItem()); + } + if (element.hasLotElement()) { + composeString("lot", element.getLotElement()); + } + if (element.hasSerialElement()) { + composeString("serial", element.getSerialElement()); + } + if (element.hasExpiryElement()) { + composeDateTime("expiry", element.getExpiryElement()); + } + if (element.hasManufacturingDateElement()) { + composeDateTime("manufacturingDate", element.getManufacturingDateElement()); + } + } + protected void composeInvoice(String name, Invoice element) throws IOException { if (element != null) { composeResourceAttributes(element); @@ -43913,8 +44996,8 @@ public class XmlParser extends XmlParserBase { composeReference("manufacturer", e); } if (element.hasIngredient()) { - for (Reference e : element.getIngredient()) - composeReference("ingredient", e); + for (CodeableReference e : element.getIngredient()) + composeCodeableReference("ingredient", e); } if (element.hasProperty()) { for (ManufacturedItemDefinition.ManufacturedItemDefinitionPropertyComponent e : element.getProperty()) @@ -43979,7 +45062,9 @@ public class XmlParser extends XmlParserBase { } if (element.hasSubject()) { composeType("subject", element.getSubject()); - } if (element.hasDateElement()) { + } if (element.hasBasisElement()) + composeEnumeration("basis", element.getBasisElement(), new Enumerations.FHIRAllTypesEnumFactory()); + if (element.hasDateElement()) { composeDateTime("date", element.getDateElement()); } if (element.hasPublisherElement()) { @@ -44052,6 +45137,9 @@ public class XmlParser extends XmlParserBase { if (element.hasScoring()) { composeCodeableConcept("scoring", element.getScoring()); } + if (element.hasScoringUnit()) { + composeCodeableConcept("scoringUnit", element.getScoringUnit()); + } if (element.hasCompositeScoring()) { composeCodeableConcept("compositeScoring", element.getCompositeScoring()); } @@ -44109,6 +45197,21 @@ public class XmlParser extends XmlParserBase { if (element.hasDescriptionElement()) { composeString("description", element.getDescriptionElement()); } + if (element.hasType()) { + for (CodeableConcept e : element.getType()) + composeCodeableConcept("type", e); + } + if (element.hasBasisElement()) + composeEnumeration("basis", element.getBasisElement(), new Enumerations.FHIRAllTypesEnumFactory()); + if (element.hasScoring()) { + composeCodeableConcept("scoring", element.getScoring()); + } + if (element.hasScoringUnit()) { + composeCodeableConcept("scoringUnit", element.getScoringUnit()); + } + if (element.hasImprovementNotation()) { + composeCodeableConcept("improvementNotation", element.getImprovementNotation()); + } if (element.hasPopulation()) { for (Measure.MeasureGroupPopulationComponent e : element.getPopulation()) composeMeasureGroupPopulationComponent("population", e); @@ -44140,6 +45243,12 @@ public class XmlParser extends XmlParserBase { if (element.hasCriteria()) { composeExpression("criteria", element.getCriteria()); } + if (element.hasInputPopulationIdElement()) { + composeString("inputPopulationId", element.getInputPopulationIdElement()); + } + if (element.hasAggregateMethod()) { + composeCodeableConcept("aggregateMethod", element.getAggregateMethod()); + } } protected void composeMeasureGroupStratifierComponent(String name, Measure.MeasureGroupStratifierComponent element) throws IOException { @@ -44239,6 +45348,8 @@ public class XmlParser extends XmlParserBase { composeEnumeration("status", element.getStatusElement(), new MeasureReport.MeasureReportStatusEnumFactory()); if (element.hasTypeElement()) composeEnumeration("type", element.getTypeElement(), new MeasureReport.MeasureReportTypeEnumFactory()); + if (element.hasDataUpdateTypeElement()) + composeEnumeration("dataUpdateType", element.getDataUpdateTypeElement(), new MeasureReport.SubmitDataUpdateTypeEnumFactory()); if (element.hasMeasureElement()) { composeCanonical("measure", element.getMeasureElement()); } @@ -44251,9 +45362,15 @@ public class XmlParser extends XmlParserBase { if (element.hasReporter()) { composeReference("reporter", element.getReporter()); } + if (element.hasReportingVendor()) { + composeReference("reportingVendor", element.getReportingVendor()); + } if (element.hasPeriod()) { composePeriod("period", element.getPeriod()); } + if (element.hasScoring()) { + composeCodeableConcept("scoring", element.getScoring()); + } if (element.hasImprovementNotation()) { composeCodeableConcept("improvementNotation", element.getImprovementNotation()); } @@ -44287,9 +45404,8 @@ public class XmlParser extends XmlParserBase { composeMeasureReportGroupPopulationComponent("population", e); } if (element.hasMeasureScore()) { - composeQuantity("measureScore", element.getMeasureScore()); - } - if (element.hasStratifier()) { + composeType("measureScore", element.getMeasureScore()); + } if (element.hasStratifier()) { for (MeasureReport.MeasureReportGroupStratifierComponent e : element.getStratifier()) composeMeasureReportGroupStratifierComponent("stratifier", e); } @@ -44353,9 +45469,8 @@ public class XmlParser extends XmlParserBase { protected void composeMeasureReportStratifierGroupComponentElements(MeasureReport.StratifierGroupComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasValue()) { - composeCodeableConcept("value", element.getValue()); - } - if (element.hasComponent()) { + composeType("value", element.getValue()); + } if (element.hasComponent()) { for (MeasureReport.StratifierGroupComponentComponent e : element.getComponent()) composeMeasureReportStratifierGroupComponentComponent("component", e); } @@ -44364,9 +45479,8 @@ public class XmlParser extends XmlParserBase { composeMeasureReportStratifierGroupPopulationComponent("population", e); } if (element.hasMeasureScore()) { - composeQuantity("measureScore", element.getMeasureScore()); - } - } + composeType("measureScore", element.getMeasureScore()); + } } protected void composeMeasureReportStratifierGroupComponentComponent(String name, MeasureReport.StratifierGroupComponentComponent element) throws IOException { if (element != null) { @@ -44384,9 +45498,8 @@ public class XmlParser extends XmlParserBase { composeCodeableConcept("code", element.getCode()); } if (element.hasValue()) { - composeCodeableConcept("value", element.getValue()); - } - } + composeType("value", element.getValue()); + } } protected void composeMeasureReportStratifierGroupPopulationComponent(String name, MeasureReport.StratifierGroupPopulationComponent element) throws IOException { if (element != null) { @@ -44432,8 +45545,8 @@ public class XmlParser extends XmlParserBase { } if (element.hasStatusElement()) composeEnumeration("status", element.getStatusElement(), new Medication.MedicationStatusCodesEnumFactory()); - if (element.hasManufacturer()) { - composeReference("manufacturer", element.getManufacturer()); + if (element.hasSponsor()) { + composeReference("sponsor", element.getSponsor()); } if (element.hasDoseForm()) { composeCodeableConcept("doseForm", element.getDoseForm()); @@ -44805,8 +45918,8 @@ public class XmlParser extends XmlParserBase { if (element.hasAuthor()) { composeReference("author", element.getAuthor()); } - if (element.hasManufacturer()) { - composeReference("manufacturer", element.getManufacturer()); + if (element.hasSponsor()) { + composeReference("sponsor", element.getSponsor()); } if (element.hasDoseForm()) { composeCodeableConcept("doseForm", element.getDoseForm()); @@ -44860,15 +45973,15 @@ public class XmlParser extends XmlParserBase { for (MedicationKnowledge.MedicationKnowledgeMonitoringProgramComponent e : element.getMonitoringProgram()) composeMedicationKnowledgeMonitoringProgramComponent("monitoringProgram", e); } - if (element.hasAdministrationGuideline()) { - for (MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineComponent e : element.getAdministrationGuideline()) - composeMedicationKnowledgeAdministrationGuidelineComponent("administrationGuideline", e); + if (element.hasIndicationGuideline()) { + for (MedicationKnowledge.MedicationKnowledgeIndicationGuidelineComponent e : element.getIndicationGuideline()) + composeMedicationKnowledgeIndicationGuidelineComponent("indicationGuideline", e); } if (element.hasMedicineClassification()) { for (MedicationKnowledge.MedicationKnowledgeMedicineClassificationComponent e : element.getMedicineClassification()) composeMedicationKnowledgeMedicineClassificationComponent("medicineClassification", e); } - if (element.hasPackaging()) { + if (element.hasPackaging()) { for (MedicationKnowledge.MedicationKnowledgePackagingComponent e : element.getPackaging()) composeMedicationKnowledgePackagingComponent("packaging", e); } @@ -44946,8 +46059,8 @@ public class XmlParser extends XmlParserBase { if (element.hasItem()) { composeCodeableReference("item", element.getItem()); } - if (element.hasIsActiveElement()) { - composeBoolean("isActive", element.getIsActiveElement()); + if (element.hasIsActive()) { + composeCodeableConcept("isActive", element.getIsActive()); } if (element.hasStrength()) { composeType("strength", element.getStrength()); @@ -44999,42 +46112,67 @@ public class XmlParser extends XmlParserBase { } } - protected void composeMedicationKnowledgeAdministrationGuidelineComponent(String name, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineComponent element) throws IOException { + protected void composeMedicationKnowledgeIndicationGuidelineComponent(String name, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeMedicationKnowledgeAdministrationGuidelineComponentElements(element); + composeMedicationKnowledgeIndicationGuidelineComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeMedicationKnowledgeAdministrationGuidelineComponentElements(MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineComponent element) throws IOException { + protected void composeMedicationKnowledgeIndicationGuidelineComponentElements(MedicationKnowledge.MedicationKnowledgeIndicationGuidelineComponent element) throws IOException { composeBackboneElementElements(element); - if (element.hasDosage()) { - for (MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineDosageComponent e : element.getDosage()) - composeMedicationKnowledgeAdministrationGuidelineDosageComponent("dosage", e); + if (element.hasIndication()) { + for (CodeableReference e : element.getIndication()) + composeCodeableReference("indication", e); } - if (element.hasIndication()) { - composeCodeableReference("indication", element.getIndication()); + if (element.hasDosingGuideline()) { + for (MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent e : element.getDosingGuideline()) + composeMedicationKnowledgeIndicationGuidelineDosingGuidelineComponent("dosingGuideline", e); + } + } + + protected void composeMedicationKnowledgeIndicationGuidelineDosingGuidelineComponent(String name, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeMedicationKnowledgeIndicationGuidelineDosingGuidelineComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeMedicationKnowledgeIndicationGuidelineDosingGuidelineComponentElements(MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasTreatmentIntent()) { + composeCodeableConcept("treatmentIntent", element.getTreatmentIntent()); + } + if (element.hasDosage()) { + for (MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent e : element.getDosage()) + composeMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent("dosage", e); + } + if (element.hasAdministrationTreatment()) { + composeCodeableConcept("administrationTreatment", element.getAdministrationTreatment()); } if (element.hasPatientCharacteristic()) { - for (MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent e : element.getPatientCharacteristic()) - composeMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent("patientCharacteristic", e); + for (MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent e : element.getPatientCharacteristic()) + composeMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent("patientCharacteristic", e); } } - protected void composeMedicationKnowledgeAdministrationGuidelineDosageComponent(String name, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineDosageComponent element) throws IOException { + protected void composeMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent(String name, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeMedicationKnowledgeAdministrationGuidelineDosageComponentElements(element); + composeMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeMedicationKnowledgeAdministrationGuidelineDosageComponentElements(MedicationKnowledge.MedicationKnowledgeAdministrationGuidelineDosageComponent element) throws IOException { + protected void composeMedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponentElements(MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasType()) { composeCodeableConcept("type", element.getType()); @@ -45045,17 +46183,17 @@ public class XmlParser extends XmlParserBase { } } - protected void composeMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent(String name, MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent element) throws IOException { + protected void composeMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent(String name, MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponentElements(element); + composeMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeMedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponentElements(MedicationKnowledge.MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent element) throws IOException { + protected void composeMedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponentElements(MedicationKnowledge.MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasType()) { composeCodeableConcept("type", element.getType()); @@ -45382,6 +46520,13 @@ public class XmlParser extends XmlParserBase { if (element.hasDispenser()) { composeReference("dispenser", element.getDispenser()); } + if (element.hasDispenserInstruction()) { + for (Annotation e : element.getDispenserInstruction()) + composeAnnotation("dispenserInstruction", e); + } + if (element.hasDoseAdministrationAid()) { + composeCodeableConcept("doseAdministrationAid", element.getDoseAdministrationAid()); + } } protected void composeMedicationRequestDispenseRequestInitialFillComponent(String name, MedicationRequest.MedicationRequestDispenseRequestInitialFillComponent element) throws IOException { @@ -45493,8 +46638,8 @@ public class XmlParser extends XmlParserBase { for (Dosage e : element.getDosage()) composeDosage("dosage", e); } - if (element.hasTakenAsOrderedElement()) { - composeBoolean("takenAsOrdered", element.getTakenAsOrderedElement()); + if (element.hasAdherence()) { + composeCodeableConcept("adherence", element.getAdherence()); } } @@ -45563,17 +46708,9 @@ public class XmlParser extends XmlParserBase { for (MarketingStatus e : element.getMarketingStatus()) composeMarketingStatus("marketingStatus", e); } - if (element.hasPharmaceuticalProduct()) { - for (Reference e : element.getPharmaceuticalProduct()) - composeReference("pharmaceuticalProduct", e); - } - if (element.hasPackagedMedicinalProduct()) { - for (Reference e : element.getPackagedMedicinalProduct()) - composeReference("packagedMedicinalProduct", e); - } if (element.hasIngredient()) { - for (Reference e : element.getIngredient()) - composeReference("ingredient", e); + for (CodeableReference e : element.getIngredient()) + composeCodeableReference("ingredient", e); } if (element.hasImpurity()) { for (Reference e : element.getImpurity()) @@ -45603,9 +46740,17 @@ public class XmlParser extends XmlParserBase { for (MedicinalProductDefinition.MedicinalProductDefinitionCrossReferenceComponent e : element.getCrossReference()) composeMedicinalProductDefinitionCrossReferenceComponent("crossReference", e); } - if (element.hasManufacturingBusinessOperation()) { - for (MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent e : element.getManufacturingBusinessOperation()) - composeMedicinalProductDefinitionManufacturingBusinessOperationComponent("manufacturingBusinessOperation", e); + if (element.hasOperation()) { + for (MedicinalProductDefinition.MedicinalProductDefinitionOperationComponent e : element.getOperation()) + composeMedicinalProductDefinitionOperationComponent("operation", e); + } + if (element.hasPackage()) { + for (MedicinalProductDefinition.MedicinalProductDefinitionPackageComponent e : element.getPackage()) + composeMedicinalProductDefinitionPackageComponent("package", e); + } + if (element.hasAdministrableProduct()) { + for (MedicinalProductDefinition.MedicinalProductDefinitionAdministrableProductComponent e : element.getAdministrableProduct()) + composeMedicinalProductDefinitionAdministrableProductComponent("administrableProduct", e); } } @@ -45720,17 +46865,17 @@ public class XmlParser extends XmlParserBase { } } - protected void composeMedicinalProductDefinitionManufacturingBusinessOperationComponent(String name, MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent element) throws IOException { + protected void composeMedicinalProductDefinitionOperationComponent(String name, MedicinalProductDefinition.MedicinalProductDefinitionOperationComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeMedicinalProductDefinitionManufacturingBusinessOperationComponentElements(element); + composeMedicinalProductDefinitionOperationComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeMedicinalProductDefinitionManufacturingBusinessOperationComponentElements(MedicinalProductDefinition.MedicinalProductDefinitionManufacturingBusinessOperationComponent element) throws IOException { + protected void composeMedicinalProductDefinitionOperationComponentElements(MedicinalProductDefinition.MedicinalProductDefinitionOperationComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasType()) { composeCodeableReference("type", element.getType()); @@ -45738,9 +46883,9 @@ public class XmlParser extends XmlParserBase { if (element.hasEffectiveDate()) { composePeriod("effectiveDate", element.getEffectiveDate()); } - if (element.hasManufacturer()) { - for (Reference e : element.getManufacturer()) - composeReference("manufacturer", e); + if (element.hasOrganization()) { + for (Reference e : element.getOrganization()) + composeReference("organization", e); } if (element.hasAuthorization()) { composeReference("authorization", element.getAuthorization()); @@ -45750,6 +46895,49 @@ public class XmlParser extends XmlParserBase { } } + protected void composeMedicinalProductDefinitionPackageComponent(String name, MedicinalProductDefinition.MedicinalProductDefinitionPackageComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeMedicinalProductDefinitionPackageComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeMedicinalProductDefinitionPackageComponentElements(MedicinalProductDefinition.MedicinalProductDefinitionPackageComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasSize()) { + composeType("size", element.getSize()); + } if (element.hasPackage()) { + composeReference("package", element.getPackage()); + } + } + + protected void composeMedicinalProductDefinitionAdministrableProductComponent(String name, MedicinalProductDefinition.MedicinalProductDefinitionAdministrableProductComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeMedicinalProductDefinitionAdministrableProductComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeMedicinalProductDefinitionAdministrableProductComponentElements(MedicinalProductDefinition.MedicinalProductDefinitionAdministrableProductComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasRoute()) { + for (CodeableConcept e : element.getRoute()) + composeCodeableConcept("route", e); + } + if (element.hasProduct()) { + composeReference("product", element.getProduct()); + } + } + protected void composeMessageDefinition(String name, MessageDefinition element) throws IOException { if (element != null) { composeResourceAttributes(element); @@ -46371,6 +47559,9 @@ public class XmlParser extends XmlParserBase { if (element.hasNameElement()) { composeString("name", element.getNameElement()); } + if (element.hasTitleElement()) { + composeString("title", element.getTitleElement()); + } if (element.hasStatusElement()) composeEnumeration("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory()); if (element.hasKindElement()) @@ -46437,6 +47628,9 @@ public class XmlParser extends XmlParserBase { if (element.hasPeriod()) { composePeriod("period", element.getPeriod()); } + if (element.hasAuthoritativeElement()) { + composeBoolean("authoritative", element.getAuthoritativeElement()); + } } protected void composeNutritionIntake(String name, NutritionIntake element) throws IOException { @@ -46997,7 +48191,9 @@ public class XmlParser extends XmlParserBase { for (Identifier e : element.getIdentifier()) composeIdentifier("identifier", e); } - if (element.hasBasedOn()) { + if (element.hasInstantiates()) { + composeType("instantiates", element.getInstantiates()); + } if (element.hasBasedOn()) { for (Reference e : element.getBasedOn()) composeReference("basedOn", e); } @@ -47160,25 +48356,18 @@ public class XmlParser extends XmlParserBase { if (element.hasVersionElement()) { composeString("version", element.getVersionElement()); } + if (element.hasNameElement()) { + composeString("name", element.getNameElement()); + } if (element.hasTitleElement()) { composeString("title", element.getTitleElement()); } - if (element.hasDerivedFromCanonical()) { - for (CanonicalType e : element.getDerivedFromCanonical()) - composeCanonical("derivedFromCanonical", e); - } - if (element.hasDerivedFromUri()) { - for (UriType e : element.getDerivedFromUri()) - composeUri("derivedFromUri", e); - } if (element.hasStatusElement()) composeEnumeration("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory()); if (element.hasExperimentalElement()) { composeBoolean("experimental", element.getExperimentalElement()); } - if (element.hasSubject()) { - composeType("subject", element.getSubject()); - } if (element.hasDateElement()) { + if (element.hasDateElement()) { composeDateTime("date", element.getDateElement()); } if (element.hasPublisher()) { @@ -47214,6 +48403,17 @@ public class XmlParser extends XmlParserBase { if (element.hasEffectivePeriod()) { composePeriod("effectivePeriod", element.getEffectivePeriod()); } + if (element.hasDerivedFromCanonical()) { + for (CanonicalType e : element.getDerivedFromCanonical()) + composeCanonical("derivedFromCanonical", e); + } + if (element.hasDerivedFromUri()) { + for (UriType e : element.getDerivedFromUri()) + composeUri("derivedFromUri", e); + } + if (element.hasSubject()) { + composeCodeableConcept("subject", element.getSubject()); + } if (element.hasPerformerType()) { composeCodeableConcept("performerType", element.getPerformerType()); } @@ -47236,11 +48436,13 @@ public class XmlParser extends XmlParserBase { if (element.hasMethod()) { composeCodeableConcept("method", element.getMethod()); } - if (element.hasSpecimen()) { - composeReference("specimen", element.getSpecimen()); + if (element.hasSpecimen()) { + for (Reference e : element.getSpecimen()) + composeReference("specimen", e); } - if (element.hasDevice()) { - composeReference("device", element.getDevice()); + if (element.hasDevice()) { + for (Reference e : element.getDevice()) + composeReference("device", e); } if (element.hasPreferredReportNameElement()) { composeString("preferredReportName", element.getPreferredReportNameElement()); @@ -47248,21 +48450,9 @@ public class XmlParser extends XmlParserBase { if (element.hasQuantitativeDetails()) { composeObservationDefinitionQuantitativeDetailsComponent("quantitativeDetails", element.getQuantitativeDetails()); } - if (element.hasQualifiedInterval()) { - for (ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent e : element.getQualifiedInterval()) - composeObservationDefinitionQualifiedIntervalComponent("qualifiedInterval", e); - } - if (element.hasValidCodedValueSet()) { - composeReference("validCodedValueSet", element.getValidCodedValueSet()); - } - if (element.hasNormalCodedValueSet()) { - composeReference("normalCodedValueSet", element.getNormalCodedValueSet()); - } - if (element.hasAbnormalCodedValueSet()) { - composeReference("abnormalCodedValueSet", element.getAbnormalCodedValueSet()); - } - if (element.hasCriticalCodedValueSet()) { - composeReference("criticalCodedValueSet", element.getCriticalCodedValueSet()); + if (element.hasQualifiedValue()) { + for (ObservationDefinition.ObservationDefinitionQualifiedValueComponent e : element.getQualifiedValue()) + composeObservationDefinitionQualifiedValueComponent("qualifiedValue", e); } if (element.hasHasMember()) { for (Reference e : element.getHasMember()) @@ -47286,12 +48476,12 @@ public class XmlParser extends XmlParserBase { protected void composeObservationDefinitionQuantitativeDetailsComponentElements(ObservationDefinition.ObservationDefinitionQuantitativeDetailsComponent element) throws IOException { composeBackboneElementElements(element); - if (element.hasCustomaryUnit()) { - composeCodeableConcept("customaryUnit", element.getCustomaryUnit()); - } if (element.hasUnit()) { composeCodeableConcept("unit", element.getUnit()); } + if (element.hasCustomaryUnit()) { + composeCodeableConcept("customaryUnit", element.getCustomaryUnit()); + } if (element.hasConversionFactorElement()) { composeDecimal("conversionFactor", element.getConversionFactorElement()); } @@ -47300,23 +48490,18 @@ public class XmlParser extends XmlParserBase { } } - protected void composeObservationDefinitionQualifiedIntervalComponent(String name, ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent element) throws IOException { + protected void composeObservationDefinitionQualifiedValueComponent(String name, ObservationDefinition.ObservationDefinitionQualifiedValueComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeObservationDefinitionQualifiedIntervalComponentElements(element); + composeObservationDefinitionQualifiedValueComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeObservationDefinitionQualifiedIntervalComponentElements(ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent element) throws IOException { + protected void composeObservationDefinitionQualifiedValueComponentElements(ObservationDefinition.ObservationDefinitionQualifiedValueComponent element) throws IOException { composeBackboneElementElements(element); - if (element.hasCategoryElement()) - composeEnumeration("category", element.getCategoryElement(), new ObservationDefinition.ObservationRangeCategoryEnumFactory()); - if (element.hasRange()) { - composeRange("range", element.getRange()); - } if (element.hasContext()) { composeCodeableConcept("context", element.getContext()); } @@ -47335,6 +48520,23 @@ public class XmlParser extends XmlParserBase { if (element.hasConditionElement()) { composeString("condition", element.getConditionElement()); } + if (element.hasRangeCategoryElement()) + composeEnumeration("rangeCategory", element.getRangeCategoryElement(), new ObservationDefinition.ObservationRangeCategoryEnumFactory()); + if (element.hasRange()) { + composeRange("range", element.getRange()); + } + if (element.hasValidCodedValueSetElement()) { + composeCanonical("validCodedValueSet", element.getValidCodedValueSetElement()); + } + if (element.hasNormalCodedValueSetElement()) { + composeCanonical("normalCodedValueSet", element.getNormalCodedValueSetElement()); + } + if (element.hasAbnormalCodedValueSetElement()) { + composeCanonical("abnormalCodedValueSet", element.getAbnormalCodedValueSetElement()); + } + if (element.hasCriticalCodedValueSetElement()) { + composeCanonical("criticalCodedValueSet", element.getCriticalCodedValueSetElement()); + } } protected void composeObservationDefinitionComponentComponent(String name, ObservationDefinition.ObservationDefinitionComponentComponent element) throws IOException { @@ -47358,9 +48560,9 @@ public class XmlParser extends XmlParserBase { if (element.hasQuantitativeDetails()) { composeObservationDefinitionQuantitativeDetailsComponent("quantitativeDetails", element.getQuantitativeDetails()); } - if (element.hasQualifiedInterval()) { - for (ObservationDefinition.ObservationDefinitionQualifiedIntervalComponent e : element.getQualifiedInterval()) - composeObservationDefinitionQualifiedIntervalComponent("qualifiedInterval", e); + if (element.hasQualifiedValue()) { + for (ObservationDefinition.ObservationDefinitionQualifiedValueComponent e : element.getQualifiedValue()) + composeObservationDefinitionQualifiedValueComponent("qualifiedValue", e); } } @@ -47785,6 +48987,10 @@ public class XmlParser extends XmlParserBase { if (element.hasStatusDateElement()) { composeDateTime("statusDate", element.getStatusDateElement()); } + if (element.hasContainedItemQuantity()) { + for (Quantity e : element.getContainedItemQuantity()) + composeQuantity("containedItemQuantity", e); + } if (element.hasDescriptionElement()) { composeMarkdown("description", element.getDescriptionElement()); } @@ -47809,33 +49015,12 @@ public class XmlParser extends XmlParserBase { for (Reference e : element.getManufacturer()) composeReference("manufacturer", e); } - if (element.hasBatchIdentifier()) { - for (PackagedProductDefinition.PackagedProductDefinitionBatchIdentifierComponent e : element.getBatchIdentifier()) - composePackagedProductDefinitionBatchIdentifierComponent("batchIdentifier", e); + if (element.hasAttachedDocument()) { + for (Reference e : element.getAttachedDocument()) + composeReference("attachedDocument", e); } - if (element.hasPackage()) { - for (PackagedProductDefinition.PackagedProductDefinitionPackageComponent e : element.getPackage()) - composePackagedProductDefinitionPackageComponent("package", e); - } - } - - protected void composePackagedProductDefinitionBatchIdentifierComponent(String name, PackagedProductDefinition.PackagedProductDefinitionBatchIdentifierComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composePackagedProductDefinitionBatchIdentifierComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composePackagedProductDefinitionBatchIdentifierComponentElements(PackagedProductDefinition.PackagedProductDefinitionBatchIdentifierComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasOuterPackaging()) { - composeIdentifier("outerPackaging", element.getOuterPackaging()); - } - if (element.hasImmediatePackaging()) { - composeIdentifier("immediatePackaging", element.getImmediatePackaging()); + if (element.hasPackage()) { + composePackagedProductDefinitionPackageComponent("package", element.getPackage()); } } @@ -47923,8 +49108,8 @@ public class XmlParser extends XmlParserBase { protected void composePackagedProductDefinitionPackageContainedItemComponentElements(PackagedProductDefinition.PackagedProductDefinitionPackageContainedItemComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasItem()) { - for (Reference e : element.getItem()) - composeReference("item", e); + for (CodeableReference e : element.getItem()) + composeCodeableReference("item", e); } if (element.hasAmount()) { composeType("amount", element.getAmount()); @@ -48203,7 +49388,7 @@ public class XmlParser extends XmlParserBase { composeReference("requestor", element.getRequestor()); } if (element.hasOutcomeElement()) - composeEnumeration("outcome", element.getOutcomeElement(), new Enumerations.ClaimProcessingCodesEnumFactory()); + composeEnumeration("outcome", element.getOutcomeElement(), new PaymentReconciliation.PaymentOutcomeEnumFactory()); if (element.hasDispositionElement()) { composeString("disposition", element.getDispositionElement()); } @@ -48567,6 +49752,10 @@ public class XmlParser extends XmlParserBase { for (PlanDefinition.PlanDefinitionGoalComponent e : element.getGoal()) composePlanDefinitionGoalComponent("goal", e); } + if (element.hasActor()) { + for (PlanDefinition.PlanDefinitionActorComponent e : element.getActor()) + composePlanDefinitionActorComponent("actor", e); + } if (element.hasAction()) { for (PlanDefinition.PlanDefinitionActionComponent e : element.getAction()) composePlanDefinitionActionComponent("action", e); @@ -48633,6 +49822,52 @@ public class XmlParser extends XmlParserBase { } } + protected void composePlanDefinitionActorComponent(String name, PlanDefinition.PlanDefinitionActorComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composePlanDefinitionActorComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composePlanDefinitionActorComponentElements(PlanDefinition.PlanDefinitionActorComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasTitleElement()) { + composeString("title", element.getTitleElement()); + } + if (element.hasDescriptionElement()) { + composeMarkdown("description", element.getDescriptionElement()); + } + if (element.hasOption()) { + for (PlanDefinition.PlanDefinitionActorOptionComponent e : element.getOption()) + composePlanDefinitionActorOptionComponent("option", e); + } + } + + protected void composePlanDefinitionActorOptionComponent(String name, PlanDefinition.PlanDefinitionActorOptionComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composePlanDefinitionActorOptionComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composePlanDefinitionActorOptionComponentElements(PlanDefinition.PlanDefinitionActorOptionComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasTypeElement()) + composeEnumeration("type", element.getTypeElement(), new Enumerations.ActionParticipantTypeEnumFactory()); + if (element.hasTypeReference()) { + composeReference("typeReference", element.getTypeReference()); + } + if (element.hasRole()) { + composeCodeableConcept("role", element.getRole()); + } + } + protected void composePlanDefinitionActionComponent(String name, PlanDefinition.PlanDefinitionActionComponent element) throws IOException { if (element != null) { composeElementAttributes(element); @@ -48659,9 +49894,8 @@ public class XmlParser extends XmlParserBase { } if (element.hasPriorityElement()) composeEnumeration("priority", element.getPriorityElement(), new Enumerations.RequestPriorityEnumFactory()); - if (element.hasCode()) { - for (CodeableConcept e : element.getCode()) - composeCodeableConcept("code", e); + if (element.hasCode()) { + composeCodeableConcept("code", element.getCode()); } if (element.hasReason()) { for (CodeableConcept e : element.getReason()) @@ -48686,12 +49920,12 @@ public class XmlParser extends XmlParserBase { composePlanDefinitionActionConditionComponent("condition", e); } if (element.hasInput()) { - for (DataRequirement e : element.getInput()) - composeDataRequirement("input", e); + for (PlanDefinition.PlanDefinitionActionInputComponent e : element.getInput()) + composePlanDefinitionActionInputComponent("input", e); } if (element.hasOutput()) { - for (DataRequirement e : element.getOutput()) - composeDataRequirement("output", e); + for (PlanDefinition.PlanDefinitionActionOutputComponent e : element.getOutput()) + composePlanDefinitionActionOutputComponent("output", e); } if (element.hasRelatedAction()) { for (PlanDefinition.PlanDefinitionActionRelatedActionComponent e : element.getRelatedAction()) @@ -48699,7 +49933,10 @@ public class XmlParser extends XmlParserBase { } if (element.hasTiming()) { composeType("timing", element.getTiming()); - } if (element.hasParticipant()) { + } if (element.hasLocation()) { + composeCodeableReference("location", element.getLocation()); + } + if (element.hasParticipant()) { for (PlanDefinition.PlanDefinitionActionParticipantComponent e : element.getParticipant()) composePlanDefinitionActionParticipantComponent("participant", e); } @@ -48750,6 +49987,52 @@ public class XmlParser extends XmlParserBase { } } + protected void composePlanDefinitionActionInputComponent(String name, PlanDefinition.PlanDefinitionActionInputComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composePlanDefinitionActionInputComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composePlanDefinitionActionInputComponentElements(PlanDefinition.PlanDefinitionActionInputComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasTitleElement()) { + composeString("title", element.getTitleElement()); + } + if (element.hasRequirement()) { + composeDataRequirement("requirement", element.getRequirement()); + } + if (element.hasRelatedDataElement()) { + composeId("relatedData", element.getRelatedDataElement()); + } + } + + protected void composePlanDefinitionActionOutputComponent(String name, PlanDefinition.PlanDefinitionActionOutputComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composePlanDefinitionActionOutputComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composePlanDefinitionActionOutputComponentElements(PlanDefinition.PlanDefinitionActionOutputComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasTitleElement()) { + composeString("title", element.getTitleElement()); + } + if (element.hasRequirement()) { + composeDataRequirement("requirement", element.getRequirement()); + } + if (element.hasRelatedDataElement()) { + composeString("relatedData", element.getRelatedDataElement()); + } + } + protected void composePlanDefinitionActionRelatedActionComponent(String name, PlanDefinition.PlanDefinitionActionRelatedActionComponent element) throws IOException { if (element != null) { composeElementAttributes(element); @@ -48762,8 +50045,8 @@ public class XmlParser extends XmlParserBase { protected void composePlanDefinitionActionRelatedActionComponentElements(PlanDefinition.PlanDefinitionActionRelatedActionComponent element) throws IOException { composeBackboneElementElements(element); - if (element.hasActionIdElement()) { - composeId("actionId", element.getActionIdElement()); + if (element.hasTargetIdElement()) { + composeId("targetId", element.getTargetIdElement()); } if (element.hasRelationshipElement()) composeEnumeration("relationship", element.getRelationshipElement(), new Enumerations.ActionRelationshipTypeEnumFactory()); @@ -48783,11 +50066,20 @@ public class XmlParser extends XmlParserBase { protected void composePlanDefinitionActionParticipantComponentElements(PlanDefinition.PlanDefinitionActionParticipantComponent element) throws IOException { composeBackboneElementElements(element); + if (element.hasActorIdElement()) { + composeString("actorId", element.getActorIdElement()); + } if (element.hasTypeElement()) composeEnumeration("type", element.getTypeElement(), new Enumerations.ActionParticipantTypeEnumFactory()); + if (element.hasTypeReference()) { + composeReference("typeReference", element.getTypeReference()); + } if (element.hasRole()) { composeCodeableConcept("role", element.getRole()); } + if (element.hasFunction()) { + composeCodeableConcept("function", element.getFunction()); + } } protected void composePlanDefinitionActionDynamicValueComponent(String name, PlanDefinition.PlanDefinitionActionDynamicValueComponent element) throws IOException { @@ -49104,6 +50396,10 @@ public class XmlParser extends XmlParserBase { for (CodeableReference e : element.getUsed()) composeCodeableReference("used", e); } + if (element.hasSupportingInfo()) { + for (Reference e : element.getSupportingInfo()) + composeReference("supportingInfo", e); + } } protected void composeProcedurePerformerComponent(String name, Procedure.ProcedurePerformerComponent element) throws IOException { @@ -49184,6 +50480,13 @@ public class XmlParser extends XmlParserBase { if (element.hasActivity()) { composeCodeableConcept("activity", element.getActivity()); } + if (element.hasBasedOn()) { + for (Reference e : element.getBasedOn()) + composeReference("basedOn", e); + } + if (element.hasEncounter()) { + composeReference("encounter", element.getEncounter()); + } if (element.hasAgent()) { for (Provenance.ProvenanceAgentComponent e : element.getAgent()) composeProvenanceAgentComponent("agent", e); @@ -49361,7 +50664,7 @@ public class XmlParser extends XmlParserBase { composeString("prefix", element.getPrefixElement()); } if (element.hasTextElement()) { - composeString("text", element.getTextElement()); + composeMarkdown("text", element.getTextElement()); } if (element.hasTypeElement()) composeEnumeration("type", element.getTypeElement(), new Questionnaire.QuestionnaireItemTypeEnumFactory()); @@ -49371,6 +50674,8 @@ public class XmlParser extends XmlParserBase { } if (element.hasEnableBehaviorElement()) composeEnumeration("enableBehavior", element.getEnableBehaviorElement(), new Questionnaire.EnableWhenBehaviorEnumFactory()); + if (element.hasDisabledDisplayElement()) + composeEnumeration("disabledDisplay", element.getDisabledDisplayElement(), new Questionnaire.QuestionnaireItemDisabledDisplayEnumFactory()); if (element.hasRequiredElement()) { composeBoolean("required", element.getRequiredElement()); } @@ -49383,6 +50688,8 @@ public class XmlParser extends XmlParserBase { if (element.hasMaxLengthElement()) { composeInteger("maxLength", element.getMaxLengthElement()); } + if (element.hasAnswerConstraintElement()) + composeEnumeration("answerConstraint", element.getAnswerConstraintElement(), new Questionnaire.QuestionnaireAnswerConstraintEnumFactory()); if (element.hasAnswerValueSetElement()) { composeCanonical("answerValueSet", element.getAnswerValueSetElement()); } @@ -49595,8 +50902,9 @@ public class XmlParser extends XmlParserBase { composePeriod("validityPeriod", element.getValidityPeriod()); } if (element.hasIndication()) { - composeType("indication", element.getIndication()); - } if (element.hasIntendedUse()) { + composeCodeableReference("indication", element.getIndication()); + } + if (element.hasIntendedUse()) { composeCodeableConcept("intendedUse", element.getIntendedUse()); } if (element.hasBasis()) { @@ -49617,6 +50925,10 @@ public class XmlParser extends XmlParserBase { if (element.hasRegulator()) { composeReference("regulator", element.getRegulator()); } + if (element.hasAttachedDocument()) { + for (Reference e : element.getAttachedDocument()) + composeReference("attachedDocument", e); + } if (element.hasCase()) { composeRegulatedAuthorizationCaseComponent("case", element.getCase()); } @@ -49860,9 +51172,12 @@ public class XmlParser extends XmlParserBase { } if (element.hasTiming()) { composeType("timing", element.getTiming()); - } if (element.hasParticipant()) { - for (Reference e : element.getParticipant()) - composeReference("participant", e); + } if (element.hasLocation()) { + composeCodeableReference("location", element.getLocation()); + } + if (element.hasParticipant()) { + for (RequestGroup.RequestGroupActionParticipantComponent e : element.getParticipant()) + composeRequestGroupActionParticipantComponent("participant", e); } if (element.hasType()) { composeCodeableConcept("type", element.getType()); @@ -49917,8 +51232,8 @@ public class XmlParser extends XmlParserBase { protected void composeRequestGroupActionRelatedActionComponentElements(RequestGroup.RequestGroupActionRelatedActionComponent element) throws IOException { composeBackboneElementElements(element); - if (element.hasActionIdElement()) { - composeId("actionId", element.getActionIdElement()); + if (element.hasTargetIdElement()) { + composeId("targetId", element.getTargetIdElement()); } if (element.hasRelationshipElement()) composeEnumeration("relationship", element.getRelationshipElement(), new Enumerations.ActionRelationshipTypeEnumFactory()); @@ -49926,6 +51241,34 @@ public class XmlParser extends XmlParserBase { composeType("offset", element.getOffset()); } } + protected void composeRequestGroupActionParticipantComponent(String name, RequestGroup.RequestGroupActionParticipantComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeRequestGroupActionParticipantComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeRequestGroupActionParticipantComponentElements(RequestGroup.RequestGroupActionParticipantComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasTypeElement()) + composeEnumeration("type", element.getTypeElement(), new Enumerations.ActionParticipantTypeEnumFactory()); + if (element.hasTypeReference()) { + composeReference("typeReference", element.getTypeReference()); + } + if (element.hasRole()) { + composeCodeableConcept("role", element.getRole()); + } + if (element.hasFunction()) { + composeCodeableConcept("function", element.getFunction()); + } + if (element.hasActor()) { + composeReference("actor", element.getActor()); + } + } + protected void composeResearchStudy(String name, ResearchStudy element) throws IOException { if (element != null) { composeResourceAttributes(element); @@ -49938,13 +51281,26 @@ public class XmlParser extends XmlParserBase { protected void composeResearchStudyElements(ResearchStudy element) throws IOException { composeDomainResourceElements(element); + if (element.hasUrlElement()) { + composeUri("url", element.getUrlElement()); + } if (element.hasIdentifier()) { for (Identifier e : element.getIdentifier()) composeIdentifier("identifier", e); } + if (element.hasVersionElement()) { + composeString("version", element.getVersionElement()); + } + if (element.hasNameElement()) { + composeString("name", element.getNameElement()); + } if (element.hasTitleElement()) { composeString("title", element.getTitleElement()); } + if (element.hasLabel()) { + for (ResearchStudy.ResearchStudyLabelComponent e : element.getLabel()) + composeResearchStudyLabelComponent("label", e); + } if (element.hasProtocol()) { for (Reference e : element.getProtocol()) composeReference("protocol", e); @@ -49953,8 +51309,15 @@ public class XmlParser extends XmlParserBase { for (Reference e : element.getPartOf()) composeReference("partOf", e); } + if (element.hasRelatedArtifact()) { + for (RelatedArtifact e : element.getRelatedArtifact()) + composeRelatedArtifact("relatedArtifact", e); + } + if (element.hasDateElement()) { + composeDateTime("date", element.getDateElement()); + } if (element.hasStatusElement()) - composeEnumeration("status", element.getStatusElement(), new ResearchStudy.ResearchStudyStatusEnumFactory()); + composeEnumeration("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory()); if (element.hasPrimaryPurposeType()) { composeCodeableConcept("primaryPurposeType", element.getPrimaryPurposeType()); } @@ -49966,21 +51329,13 @@ public class XmlParser extends XmlParserBase { composeCodeableConcept("category", e); } if (element.hasFocus()) { - for (CodeableConcept e : element.getFocus()) - composeCodeableConcept("focus", e); + for (ResearchStudy.ResearchStudyFocusComponent e : element.getFocus()) + composeResearchStudyFocusComponent("focus", e); } if (element.hasCondition()) { for (CodeableConcept e : element.getCondition()) composeCodeableConcept("condition", e); } - if (element.hasContact()) { - for (ContactDetail e : element.getContact()) - composeContactDetail("contact", e); - } - if (element.hasRelatedArtifact()) { - for (RelatedArtifact e : element.getRelatedArtifact()) - composeRelatedArtifact("relatedArtifact", e); - } if (element.hasKeyword()) { for (CodeableConcept e : element.getKeyword()) composeCodeableConcept("keyword", e); @@ -49989,16 +51344,19 @@ public class XmlParser extends XmlParserBase { for (CodeableConcept e : element.getLocation()) composeCodeableConcept("location", e); } + if (element.hasDescriptionSummaryElement()) { + composeMarkdown("descriptionSummary", element.getDescriptionSummaryElement()); + } if (element.hasDescriptionElement()) { composeMarkdown("description", element.getDescriptionElement()); } - if (element.hasEnrollment()) { - for (Reference e : element.getEnrollment()) - composeReference("enrollment", e); - } if (element.hasPeriod()) { composePeriod("period", element.getPeriod()); } + if (element.hasContact()) { + for (ContactDetail e : element.getContact()) + composeContactDetail("contact", e); + } if (element.hasSponsor()) { composeReference("sponsor", element.getSponsor()); } @@ -50009,43 +51367,224 @@ public class XmlParser extends XmlParserBase { for (Reference e : element.getSite()) composeReference("site", e); } - if (element.hasReasonStopped()) { - composeCodeableConcept("reasonStopped", element.getReasonStopped()); - } if (element.hasNote()) { for (Annotation e : element.getNote()) composeAnnotation("note", e); } - if (element.hasArm()) { - for (ResearchStudy.ResearchStudyArmComponent e : element.getArm()) - composeResearchStudyArmComponent("arm", e); + if (element.hasClassification()) { + for (ResearchStudy.ResearchStudyClassificationComponent e : element.getClassification()) + composeResearchStudyClassificationComponent("classification", e); + } + if (element.hasAssociatedParty()) { + for (ResearchStudy.ResearchStudyAssociatedPartyComponent e : element.getAssociatedParty()) + composeResearchStudyAssociatedPartyComponent("associatedParty", e); + } + if (element.hasCurrentState()) { + for (CodeableConcept e : element.getCurrentState()) + composeCodeableConcept("currentState", e); + } + if (element.hasStatusDate()) { + for (ResearchStudy.ResearchStudyStatusDateComponent e : element.getStatusDate()) + composeResearchStudyStatusDateComponent("statusDate", e); + } + if (element.hasWhyStopped()) { + composeCodeableConcept("whyStopped", element.getWhyStopped()); + } + if (element.hasRecruitment()) { + composeResearchStudyRecruitmentComponent("recruitment", element.getRecruitment()); + } + if (element.hasComparisonGroup()) { + for (ResearchStudy.ResearchStudyComparisonGroupComponent e : element.getComparisonGroup()) + composeResearchStudyComparisonGroupComponent("comparisonGroup", e); } if (element.hasObjective()) { for (ResearchStudy.ResearchStudyObjectiveComponent e : element.getObjective()) composeResearchStudyObjectiveComponent("objective", e); } + if (element.hasOutcomeMeasure()) { + for (ResearchStudy.ResearchStudyOutcomeMeasureComponent e : element.getOutcomeMeasure()) + composeResearchStudyOutcomeMeasureComponent("outcomeMeasure", e); + } + if (element.hasResult()) { + for (Reference e : element.getResult()) + composeReference("result", e); + } + if (element.hasWebLocation()) { + for (ResearchStudy.ResearchStudyWebLocationComponent e : element.getWebLocation()) + composeResearchStudyWebLocationComponent("webLocation", e); + } } - protected void composeResearchStudyArmComponent(String name, ResearchStudy.ResearchStudyArmComponent element) throws IOException { + protected void composeResearchStudyLabelComponent(String name, ResearchStudy.ResearchStudyLabelComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeResearchStudyArmComponentElements(element); + composeResearchStudyLabelComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeResearchStudyArmComponentElements(ResearchStudy.ResearchStudyArmComponent element) throws IOException { + protected void composeResearchStudyLabelComponentElements(ResearchStudy.ResearchStudyLabelComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasValueElement()) { + composeString("value", element.getValueElement()); + } + } + + protected void composeResearchStudyFocusComponent(String name, ResearchStudy.ResearchStudyFocusComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeResearchStudyFocusComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeResearchStudyFocusComponentElements(ResearchStudy.ResearchStudyFocusComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasProductCode()) { + composeCodeableConcept("productCode", element.getProductCode()); + } + if (element.hasFocusType()) { + for (CodeableConcept e : element.getFocusType()) + composeCodeableConcept("focusType", e); + } + if (element.hasFactorElement()) { + composeMarkdown("factor", element.getFactorElement()); + } + } + + protected void composeResearchStudyClassificationComponent(String name, ResearchStudy.ResearchStudyClassificationComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeResearchStudyClassificationComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeResearchStudyClassificationComponentElements(ResearchStudy.ResearchStudyClassificationComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasClassifier()) { + for (CodeableConcept e : element.getClassifier()) + composeCodeableConcept("classifier", e); + } + } + + protected void composeResearchStudyAssociatedPartyComponent(String name, ResearchStudy.ResearchStudyAssociatedPartyComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeResearchStudyAssociatedPartyComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeResearchStudyAssociatedPartyComponentElements(ResearchStudy.ResearchStudyAssociatedPartyComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasNameElement()) { composeString("name", element.getNameElement()); } + if (element.hasRole()) { + composeCodeableConcept("role", element.getRole()); + } + if (element.hasClassifier()) { + for (CodeableConcept e : element.getClassifier()) + composeCodeableConcept("classifier", e); + } + if (element.hasParty()) { + composeReference("party", element.getParty()); + } + } + + protected void composeResearchStudyStatusDateComponent(String name, ResearchStudy.ResearchStudyStatusDateComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeResearchStudyStatusDateComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeResearchStudyStatusDateComponentElements(ResearchStudy.ResearchStudyStatusDateComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasActivity()) { + composeCodeableConcept("activity", element.getActivity()); + } + if (element.hasActualElement()) { + composeBoolean("actual", element.getActualElement()); + } + if (element.hasPeriod()) { + composePeriod("period", element.getPeriod()); + } + } + + protected void composeResearchStudyRecruitmentComponent(String name, ResearchStudy.ResearchStudyRecruitmentComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeResearchStudyRecruitmentComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeResearchStudyRecruitmentComponentElements(ResearchStudy.ResearchStudyRecruitmentComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasTargetNumberElement()) { + composeUnsignedInt("targetNumber", element.getTargetNumberElement()); + } + if (element.hasActualNumberElement()) { + composeUnsignedInt("actualNumber", element.getActualNumberElement()); + } + if (element.hasEligibility()) { + composeReference("eligibility", element.getEligibility()); + } + if (element.hasActualGroup()) { + composeReference("actualGroup", element.getActualGroup()); + } + } + + protected void composeResearchStudyComparisonGroupComponent(String name, ResearchStudy.ResearchStudyComparisonGroupComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeResearchStudyComparisonGroupComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeResearchStudyComparisonGroupComponentElements(ResearchStudy.ResearchStudyComparisonGroupComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasIdentifier()) { + composeType("identifier", element.getIdentifier()); + } if (element.hasNameElement()) { + composeString("name", element.getNameElement()); + } if (element.hasType()) { composeCodeableConcept("type", element.getType()); } if (element.hasDescriptionElement()) { - composeString("description", element.getDescriptionElement()); + composeMarkdown("description", element.getDescriptionElement()); + } + if (element.hasIntendedExposure()) { + for (Reference e : element.getIntendedExposure()) + composeReference("intendedExposure", e); + } + if (element.hasObservedGroup()) { + composeReference("observedGroup", element.getObservedGroup()); } } @@ -50067,6 +51606,56 @@ public class XmlParser extends XmlParserBase { if (element.hasType()) { composeCodeableConcept("type", element.getType()); } + if (element.hasDescriptionElement()) { + composeMarkdown("description", element.getDescriptionElement()); + } + } + + protected void composeResearchStudyOutcomeMeasureComponent(String name, ResearchStudy.ResearchStudyOutcomeMeasureComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeResearchStudyOutcomeMeasureComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeResearchStudyOutcomeMeasureComponentElements(ResearchStudy.ResearchStudyOutcomeMeasureComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasNameElement()) { + composeString("name", element.getNameElement()); + } + if (element.hasType()) { + for (CodeableConcept e : element.getType()) + composeCodeableConcept("type", e); + } + if (element.hasDescriptionElement()) { + composeMarkdown("description", element.getDescriptionElement()); + } + if (element.hasReference()) { + composeReference("reference", element.getReference()); + } + } + + protected void composeResearchStudyWebLocationComponent(String name, ResearchStudy.ResearchStudyWebLocationComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeResearchStudyWebLocationComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeResearchStudyWebLocationComponentElements(ResearchStudy.ResearchStudyWebLocationComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasUrlElement()) { + composeUri("url", element.getUrlElement()); + } } protected void composeResearchSubject(String name, ResearchSubject element) throws IOException { @@ -50086,7 +51675,7 @@ public class XmlParser extends XmlParserBase { composeIdentifier("identifier", e); } if (element.hasStatusElement()) - composeEnumeration("status", element.getStatusElement(), new ResearchSubject.ResearchSubjectStatusEnumFactory()); + composeEnumeration("status", element.getStatusElement(), new Enumerations.PublicationStatusEnumFactory()); if (element.hasProgress()) { for (ResearchSubject.ResearchSubjectProgressComponent e : element.getProgress()) composeResearchSubjectProgressComponent("progress", e); @@ -50097,8 +51686,8 @@ public class XmlParser extends XmlParserBase { if (element.hasStudy()) { composeReference("study", element.getStudy()); } - if (element.hasIndividual()) { - composeReference("individual", element.getIndividual()); + if (element.hasSubject()) { + composeReference("subject", element.getSubject()); } if (element.hasAssignedArmElement()) { composeString("assignedArm", element.getAssignedArmElement()); @@ -50126,8 +51715,8 @@ public class XmlParser extends XmlParserBase { if (element.hasType()) { composeCodeableConcept("type", element.getType()); } - if (element.hasState()) { - composeCodeableConcept("state", element.getState()); + if (element.hasSubjectState()) { + composeCodeableConcept("subjectState", element.getSubjectState()); } if (element.hasMilestone()) { composeCodeableConcept("milestone", element.getMilestone()); @@ -50138,6 +51727,9 @@ public class XmlParser extends XmlParserBase { if (element.hasStartDateElement()) { composeDateTime("startDate", element.getStartDateElement()); } + if (element.hasEndDateElement()) { + composeDateTime("endDate", element.getEndDateElement()); + } } protected void composeRiskAssessment(String name, RiskAssessment element) throws IOException { @@ -51365,8 +52957,6 @@ public class XmlParser extends XmlParserBase { if (element.hasContextElement()) { composeId("context", element.getContextElement()); } - if (element.hasContextTypeElement()) - composeEnumeration("contextType", element.getContextTypeElement(), new StructureMap.StructureMapContextTypeEnumFactory()); if (element.hasElementElement()) { composeString("element", element.getElementElement()); } @@ -51445,8 +53035,8 @@ public class XmlParser extends XmlParserBase { } if (element.hasStatusElement()) composeEnumeration("status", element.getStatusElement(), new Enumerations.SubscriptionStateEnumFactory()); - if (element.hasTopic()) { - composeReference("topic", element.getTopic()); + if (element.hasTopicElement()) { + composeCanonical("topic", element.getTopicElement()); } if (element.hasContact()) { for (ContactPoint e : element.getContact()) @@ -51483,6 +53073,11 @@ public class XmlParser extends XmlParserBase { } if (element.hasContentElement()) composeEnumeration("content", element.getContentElement(), new Subscription.SubscriptionPayloadContentEnumFactory()); + if (element.hasNotificationUrlLocationElement()) + composeEnumeration("notificationUrlLocation", element.getNotificationUrlLocationElement(), new Subscription.SubscriptionUrlLocationEnumFactory()); + if (element.hasMaxCountElement()) { + composePositiveInt("maxCount", element.getMaxCountElement()); + } } protected void composeSubscriptionFilterByComponent(String name, Subscription.SubscriptionFilterByComponent element) throws IOException { @@ -51497,6 +53092,9 @@ public class XmlParser extends XmlParserBase { protected void composeSubscriptionFilterByComponentElements(Subscription.SubscriptionFilterByComponent element) throws IOException { composeBackboneElementElements(element); + if (element.hasResourceTypeElement()) { + composeUri("resourceType", element.getResourceTypeElement()); + } if (element.hasSearchParamNameElement()) { composeString("searchParamName", element.getSearchParamNameElement()); } @@ -51519,6 +53117,8 @@ public class XmlParser extends XmlParserBase { protected void composeSubscriptionStatusElements(SubscriptionStatus element) throws IOException { composeDomainResourceElements(element); + if (element.hasStatusElement()) + composeEnumeration("status", element.getStatusElement(), new Enumerations.SubscriptionStateEnumFactory()); if (element.hasTypeElement()) composeEnumeration("type", element.getTypeElement(), new SubscriptionStatus.SubscriptionNotificationTypeEnumFactory()); if (element.hasEventsSinceSubscriptionStartElement()) { @@ -51530,8 +53130,6 @@ public class XmlParser extends XmlParserBase { if (element.hasSubscription()) { composeReference("subscription", element.getSubscription()); } - if (element.hasStatusElement()) - composeEnumeration("status", element.getStatusElement(), new Enumerations.SubscriptionStateEnumFactory()); if (element.hasTopicElement()) { composeCanonical("topic", element.getTopicElement()); } @@ -51611,12 +53209,9 @@ public class XmlParser extends XmlParserBase { if (element.hasEffectivePeriod()) { composePeriod("effectivePeriod", element.getEffectivePeriod()); } - if (element.hasResourceTrigger()) { - composeSubscriptionTopicResourceTriggerComponent("resourceTrigger", element.getResourceTrigger()); - } - if (element.hasCanFilterBy()) { - for (SubscriptionTopic.SubscriptionTopicCanFilterByComponent e : element.getCanFilterBy()) - composeSubscriptionTopicCanFilterByComponent("canFilterBy", e); + if (element.hasResourceTrigger()) { + for (SubscriptionTopic.SubscriptionTopicResourceTriggerComponent e : element.getResourceTrigger()) + composeSubscriptionTopicResourceTriggerComponent("resourceTrigger", e); } } @@ -51635,9 +53230,8 @@ public class XmlParser extends XmlParserBase { if (element.hasDescriptionElement()) { composeString("description", element.getDescriptionElement()); } - if (element.hasResourceType()) { - for (CodeType e : element.getResourceType()) - composeCode("resourceType", e); + if (element.hasResourceTypeElement()) { + composeUri("resourceType", element.getResourceTypeElement()); } if (element.hasMethodCriteria()) for (Enumeration e : element.getMethodCriteria()) @@ -51649,6 +53243,10 @@ public class XmlParser extends XmlParserBase { for (StringType e : element.getFhirPathCriteria()) composeString("fhirPathCriteria", e); } + if (element.hasCanFilterBy()) { + for (SubscriptionTopic.SubscriptionTopicResourceTriggerCanFilterByComponent e : element.getCanFilterBy()) + composeSubscriptionTopicResourceTriggerCanFilterByComponent("canFilterBy", e); + } } protected void composeSubscriptionTopicResourceTriggerQueryCriteriaComponent(String name, SubscriptionTopic.SubscriptionTopicResourceTriggerQueryCriteriaComponent element) throws IOException { @@ -51666,25 +53264,29 @@ public class XmlParser extends XmlParserBase { if (element.hasPreviousElement()) { composeString("previous", element.getPreviousElement()); } + if (element.hasResultForCreateElement()) + composeEnumeration("resultForCreate", element.getResultForCreateElement(), new SubscriptionTopic.CriteriaNotExistsBehaviorEnumFactory()); if (element.hasCurrentElement()) { composeString("current", element.getCurrentElement()); } + if (element.hasResultForDeleteElement()) + composeEnumeration("resultForDelete", element.getResultForDeleteElement(), new SubscriptionTopic.CriteriaNotExistsBehaviorEnumFactory()); if (element.hasRequireBothElement()) { composeBoolean("requireBoth", element.getRequireBothElement()); } } - protected void composeSubscriptionTopicCanFilterByComponent(String name, SubscriptionTopic.SubscriptionTopicCanFilterByComponent element) throws IOException { + protected void composeSubscriptionTopicResourceTriggerCanFilterByComponent(String name, SubscriptionTopic.SubscriptionTopicResourceTriggerCanFilterByComponent element) throws IOException { if (element != null) { composeElementAttributes(element); xml.enter(FHIR_NS, name); - composeSubscriptionTopicCanFilterByComponentElements(element); + composeSubscriptionTopicResourceTriggerCanFilterByComponentElements(element); composeElementClose(element); xml.exit(FHIR_NS, name); } } - protected void composeSubscriptionTopicCanFilterByComponentElements(SubscriptionTopic.SubscriptionTopicCanFilterByComponent element) throws IOException { + protected void composeSubscriptionTopicResourceTriggerCanFilterByComponentElements(SubscriptionTopic.SubscriptionTopicResourceTriggerCanFilterByComponent element) throws IOException { composeBackboneElementElements(element); if (element.hasSearchParamNameElement()) { composeString("searchParamName", element.getSearchParamNameElement()); @@ -51713,6 +53315,9 @@ public class XmlParser extends XmlParserBase { for (Identifier e : element.getIdentifier()) composeIdentifier("identifier", e); } + if (element.hasInstanceElement()) { + composeBoolean("instance", element.getInstanceElement()); + } if (element.hasStatusElement()) composeEnumeration("status", element.getStatusElement(), new Substance.FHIRSubstanceStatusEnumFactory()); if (element.hasCategory()) { @@ -51720,42 +53325,21 @@ public class XmlParser extends XmlParserBase { composeCodeableConcept("category", e); } if (element.hasCode()) { - composeCodeableConcept("code", element.getCode()); + composeCodeableReference("code", element.getCode()); } if (element.hasDescriptionElement()) { composeString("description", element.getDescriptionElement()); } - if (element.hasInstance()) { - for (Substance.SubstanceInstanceComponent e : element.getInstance()) - composeSubstanceInstanceComponent("instance", e); - } - if (element.hasIngredient()) { - for (Substance.SubstanceIngredientComponent e : element.getIngredient()) - composeSubstanceIngredientComponent("ingredient", e); - } - } - - protected void composeSubstanceInstanceComponent(String name, Substance.SubstanceInstanceComponent element) throws IOException { - if (element != null) { - composeElementAttributes(element); - xml.enter(FHIR_NS, name); - composeSubstanceInstanceComponentElements(element); - composeElementClose(element); - xml.exit(FHIR_NS, name); - } - } - - protected void composeSubstanceInstanceComponentElements(Substance.SubstanceInstanceComponent element) throws IOException { - composeBackboneElementElements(element); - if (element.hasIdentifier()) { - composeIdentifier("identifier", element.getIdentifier()); - } if (element.hasExpiryElement()) { composeDateTime("expiry", element.getExpiryElement()); } if (element.hasQuantity()) { composeQuantity("quantity", element.getQuantity()); } + if (element.hasIngredient()) { + for (Substance.SubstanceIngredientComponent e : element.getIngredient()) + composeSubstanceIngredientComponent("ingredient", e); + } } protected void composeSubstanceIngredientComponent(String name, Substance.SubstanceIngredientComponent element) throws IOException { @@ -51808,6 +53392,10 @@ public class XmlParser extends XmlParserBase { if (element.hasDomain()) { composeCodeableConcept("domain", element.getDomain()); } + if (element.hasGrade()) { + for (CodeableConcept e : element.getGrade()) + composeCodeableConcept("grade", e); + } if (element.hasDescriptionElement()) { composeMarkdown("description", element.getDescriptionElement()); } @@ -51867,7 +53455,7 @@ public class XmlParser extends XmlParserBase { composeReference("protein", element.getProtein()); } if (element.hasSourceMaterial()) { - composeReference("sourceMaterial", element.getSourceMaterial()); + composeSubstanceDefinitionSourceMaterialComponent("sourceMaterial", element.getSourceMaterial()); } } @@ -52208,6 +53796,36 @@ public class XmlParser extends XmlParserBase { } } + protected void composeSubstanceDefinitionSourceMaterialComponent(String name, SubstanceDefinition.SubstanceDefinitionSourceMaterialComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeSubstanceDefinitionSourceMaterialComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeSubstanceDefinitionSourceMaterialComponentElements(SubstanceDefinition.SubstanceDefinitionSourceMaterialComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasType()) { + composeCodeableConcept("type", element.getType()); + } + if (element.hasGenus()) { + composeCodeableConcept("genus", element.getGenus()); + } + if (element.hasSpecies()) { + composeCodeableConcept("species", element.getSpecies()); + } + if (element.hasPart()) { + composeCodeableConcept("part", element.getPart()); + } + if (element.hasCountryOfOrigin()) { + for (CodeableConcept e : element.getCountryOfOrigin()) + composeCodeableConcept("countryOfOrigin", e); + } + } + protected void composeSubstanceNucleicAcid(String name, SubstanceNucleicAcid element) throws IOException { if (element != null) { composeResourceAttributes(element); @@ -53847,6 +55465,10 @@ public class XmlParser extends XmlParserBase { if (element.hasMetadata()) { composeTestScriptMetadataComponent("metadata", element.getMetadata()); } + if (element.hasScope()) { + for (TestScript.TestScriptScopeComponent e : element.getScope()) + composeTestScriptScopeComponent("scope", e); + } if (element.hasFixture()) { for (TestScript.TestScriptFixtureComponent e : element.getFixture()) composeTestScriptFixtureComponent("fixture", e); @@ -53990,6 +55612,29 @@ public class XmlParser extends XmlParserBase { } } + protected void composeTestScriptScopeComponent(String name, TestScript.TestScriptScopeComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeTestScriptScopeComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeTestScriptScopeComponentElements(TestScript.TestScriptScopeComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasArtifactElement()) { + composeCanonical("artifact", element.getArtifactElement()); + } + if (element.hasConformance()) { + composeCodeableConcept("conformance", element.getConformance()); + } + if (element.hasPhase()) { + composeCodeableConcept("phase", element.getPhase()); + } + } + protected void composeTestScriptFixtureComponent(String name, TestScript.TestScriptFixtureComponent element) throws IOException { if (element != null) { composeElementAttributes(element); @@ -54237,6 +55882,9 @@ public class XmlParser extends XmlParserBase { if (element.hasSourceIdElement()) { composeId("sourceId", element.getSourceIdElement()); } + if (element.hasStopTestOnFailElement()) { + composeBoolean("stopTestOnFail", element.getStopTestOnFailElement()); + } if (element.hasValidateProfileIdElement()) { composeId("validateProfileId", element.getValidateProfileIdElement()); } @@ -54396,6 +56044,9 @@ public class XmlParser extends XmlParserBase { if (element.hasExpansion()) { composeValueSetExpansionComponent("expansion", element.getExpansion()); } + if (element.hasScope()) { + composeValueSetScopeComponent("scope", element.getScope()); + } } protected void composeValueSetComposeComponent(String name, ValueSet.ValueSetComposeComponent element) throws IOException { @@ -54460,6 +56111,9 @@ public class XmlParser extends XmlParserBase { for (CanonicalType e : element.getValueSet()) composeCanonical("valueSet", e); } + if (element.hasCopyrightElement()) { + composeString("copyright", element.getCopyrightElement()); + } } protected void composeValueSetConceptReferenceComponent(String name, ValueSet.ConceptReferenceComponent element) throws IOException { @@ -54671,6 +56325,29 @@ public class XmlParser extends XmlParserBase { composeType("value", element.getValue()); } } + protected void composeValueSetScopeComponent(String name, ValueSet.ValueSetScopeComponent element) throws IOException { + if (element != null) { + composeElementAttributes(element); + xml.enter(FHIR_NS, name); + composeValueSetScopeComponentElements(element); + composeElementClose(element); + xml.exit(FHIR_NS, name); + } + } + + protected void composeValueSetScopeComponentElements(ValueSet.ValueSetScopeComponent element) throws IOException { + composeBackboneElementElements(element); + if (element.hasFocusElement()) { + composeString("focus", element.getFocusElement()); + } + if (element.hasInclusionCriteriaElement()) { + composeString("inclusionCriteria", element.getInclusionCriteriaElement()); + } + if (element.hasExclusionCriteriaElement()) { + composeString("exclusionCriteria", element.getExclusionCriteriaElement()); + } + } + protected void composeVerificationResult(String name, VerificationResult element) throws IOException { if (element != null) { composeResourceAttributes(element); @@ -55037,8 +56714,8 @@ public class XmlParser extends XmlParserBase { composeDeviceMetric("DeviceMetric", (DeviceMetric)resource); } else if (resource instanceof DeviceRequest) { composeDeviceRequest("DeviceRequest", (DeviceRequest)resource); - } else if (resource instanceof DeviceUseStatement) { - composeDeviceUseStatement("DeviceUseStatement", (DeviceUseStatement)resource); + } else if (resource instanceof DeviceUsage) { + composeDeviceUsage("DeviceUsage", (DeviceUsage)resource); } else if (resource instanceof DiagnosticReport) { composeDiagnosticReport("DiagnosticReport", (DiagnosticReport)resource); } else if (resource instanceof DocumentManifest) { @@ -55095,6 +56772,8 @@ public class XmlParser extends XmlParserBase { composeIngredient("Ingredient", (Ingredient)resource); } else if (resource instanceof InsurancePlan) { composeInsurancePlan("InsurancePlan", (InsurancePlan)resource); + } else if (resource instanceof InventoryReport) { + composeInventoryReport("InventoryReport", (InventoryReport)resource); } else if (resource instanceof Invoice) { composeInvoice("Invoice", (Invoice)resource); } else if (resource instanceof Library) { @@ -55342,8 +57021,8 @@ public class XmlParser extends XmlParserBase { composeDeviceMetric(name, (DeviceMetric)resource); } else if (resource instanceof DeviceRequest) { composeDeviceRequest(name, (DeviceRequest)resource); - } else if (resource instanceof DeviceUseStatement) { - composeDeviceUseStatement(name, (DeviceUseStatement)resource); + } else if (resource instanceof DeviceUsage) { + composeDeviceUsage(name, (DeviceUsage)resource); } else if (resource instanceof DiagnosticReport) { composeDiagnosticReport(name, (DiagnosticReport)resource); } else if (resource instanceof DocumentManifest) { @@ -55400,6 +57079,8 @@ public class XmlParser extends XmlParserBase { composeIngredient(name, (Ingredient)resource); } else if (resource instanceof InsurancePlan) { composeInsurancePlan(name, (InsurancePlan)resource); + } else if (resource instanceof InventoryReport) { + composeInventoryReport(name, (InventoryReport)resource); } else if (resource instanceof Invoice) { composeInvoice(name, (Invoice)resource); } else if (resource instanceof Library) { @@ -55627,6 +57308,8 @@ public class XmlParser extends XmlParserBase { composeRange(prefix+"Range", (Range) type); } else if (type instanceof Ratio) { composeRatio(prefix+"Ratio", (Ratio) type); + } else if (type instanceof RatioRange) { + composeRatioRange(prefix+"RatioRange", (RatioRange) type); } else if (type instanceof Reference) { composeReference(prefix+"Reference", (Reference) type); } else if (type instanceof RelatedArtifact) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Account.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Account.java index 56993b2f6..ef116f987 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Account.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Account.java @@ -1,8 +1,6 @@ package org.hl7.fhir.r5.model; - - /* Copyright (c) 2011+, HL7, Inc. All rights reserved. @@ -31,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -105,7 +103,6 @@ public class Account extends DomainResource { case ENTEREDINERROR: return "entered-in-error"; case ONHOLD: return "on-hold"; case UNKNOWN: return "unknown"; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class Account extends DomainResource { case ENTEREDINERROR: return "http://hl7.org/fhir/account-status"; case ONHOLD: return "http://hl7.org/fhir/account-status"; case UNKNOWN: return "http://hl7.org/fhir/account-status"; - case NULL: return null; default: return "?"; } } @@ -127,7 +123,6 @@ public class Account extends DomainResource { case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record."; case ONHOLD: return "This account is on hold."; case UNKNOWN: return "The account status is unknown."; - case NULL: return null; default: return "?"; } } @@ -138,7 +133,6 @@ public class Account extends DomainResource { case ENTEREDINERROR: return "Entered in error"; case ONHOLD: return "On Hold"; case UNKNOWN: return "Unknown"; - case NULL: return null; default: return "?"; } } @@ -1618,7 +1612,7 @@ A coverage may only be responsible for specific types of charges, and the sequen * Path: Account.subject.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="Account.subject.where(resolve() is Patient)", description="The entity that caused the expenses", type="reference", target={Patient.class } ) + @SearchParamDefinition(name="patient", path="Account.subject.where(resolve() is Patient)", description="The entity that caused the expenses", type="reference", target={Device.class, HealthcareService.class, Location.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ActivityDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ActivityDefinition.java index af83be10f..7aac12e9f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ActivityDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ActivityDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -173,7 +173,6 @@ public class ActivityDefinition extends MetadataResource { case SUPPLYREQUEST: return "SupplyRequest"; case TASK: return "Task"; case VISIONPRESCRIPTION: return "VisionPrescription"; - case NULL: return null; default: return "?"; } } @@ -194,7 +193,6 @@ public class ActivityDefinition extends MetadataResource { case SUPPLYREQUEST: return "http://hl7.org/fhir/request-resource-types"; case TASK: return "http://hl7.org/fhir/request-resource-types"; case VISIONPRESCRIPTION: return "http://hl7.org/fhir/request-resource-types"; - case NULL: return null; default: return "?"; } } @@ -215,7 +213,6 @@ public class ActivityDefinition extends MetadataResource { case SUPPLYREQUEST: return "Request for a medication, substance or device."; case TASK: return "A task to be performed."; case VISIONPRESCRIPTION: return "Prescription for vision correction products for a patient."; - case NULL: return null; default: return "?"; } } @@ -236,7 +233,6 @@ public class ActivityDefinition extends MetadataResource { case SUPPLYREQUEST: return "SupplyRequest"; case TASK: return "Task"; case VISIONPRESCRIPTION: return "VisionPrescription"; - case NULL: return null; default: return "?"; } } @@ -362,20 +358,35 @@ public class ActivityDefinition extends MetadataResource { /** * The type of participant in the action. */ - @Child(name = "type", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="patient | practitioner | related-person | device", formalDefinition="The type of participant in the action." ) + @Child(name = "type", type = {CodeType.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="careteam | device | group | healthcareservice | location | organization | patient | practitioner | practitionerrole | relatedperson", formalDefinition="The type of participant in the action." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-participant-type") protected Enumeration type; + /** + * The type of participant in the action. + */ + @Child(name = "typeReference", type = {CareTeam.class, Device.class, Group.class, HealthcareService.class, Location.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Who or what can participate", formalDefinition="The type of participant in the action." ) + protected Reference typeReference; + /** * The role the participant should play in performing the described action. */ - @Child(name = "role", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Child(name = "role", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="E.g. Nurse, Surgeon, Parent, etc.", formalDefinition="The role the participant should play in performing the described action." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/action-participant-role") protected CodeableConcept role; - private static final long serialVersionUID = -1152013659L; + /** + * Indicates how the actor will be involved in the action - author, reviewer, witness, etc. + */ + @Child(name = "function", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="E.g. Author, Reviewer, Witness, etc.", formalDefinition="Indicates how the actor will be involved in the action - author, reviewer, witness, etc." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-participant-function") + protected CodeableConcept function; + + private static final long serialVersionUID = -136836616L; /** * Constructor @@ -384,14 +395,6 @@ public class ActivityDefinition extends MetadataResource { super(); } - /** - * Constructor - */ - public ActivityDefinitionParticipantComponent(ActionParticipantType type) { - super(); - this.setType(type); - } - /** * @return {@link #type} (The type of participant in the action.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value */ @@ -431,9 +434,37 @@ public class ActivityDefinition extends MetadataResource { * @param value The type of participant in the action. */ public ActivityDefinitionParticipantComponent setType(ActionParticipantType value) { + if (value == null) + this.type = null; + else { if (this.type == null) this.type = new Enumeration(new ActionParticipantTypeEnumFactory()); this.type.setValue(value); + } + return this; + } + + /** + * @return {@link #typeReference} (The type of participant in the action.) + */ + public Reference getTypeReference() { + if (this.typeReference == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ActivityDefinitionParticipantComponent.typeReference"); + else if (Configuration.doAutoCreate()) + this.typeReference = new Reference(); // cc + return this.typeReference; + } + + public boolean hasTypeReference() { + return this.typeReference != null && !this.typeReference.isEmpty(); + } + + /** + * @param value {@link #typeReference} (The type of participant in the action.) + */ + public ActivityDefinitionParticipantComponent setTypeReference(Reference value) { + this.typeReference = value; return this; } @@ -461,17 +492,45 @@ public class ActivityDefinition extends MetadataResource { return this; } + /** + * @return {@link #function} (Indicates how the actor will be involved in the action - author, reviewer, witness, etc.) + */ + public CodeableConcept getFunction() { + if (this.function == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ActivityDefinitionParticipantComponent.function"); + else if (Configuration.doAutoCreate()) + this.function = new CodeableConcept(); // cc + return this.function; + } + + public boolean hasFunction() { + return this.function != null && !this.function.isEmpty(); + } + + /** + * @param value {@link #function} (Indicates how the actor will be involved in the action - author, reviewer, witness, etc.) + */ + public ActivityDefinitionParticipantComponent setFunction(CodeableConcept value) { + this.function = value; + return this; + } + protected void listChildren(List children) { super.listChildren(children); children.add(new Property("type", "code", "The type of participant in the action.", 0, 1, type)); + children.add(new Property("typeReference", "Reference(CareTeam|Device|Group|HealthcareService|Location|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson)", "The type of participant in the action.", 0, 1, typeReference)); children.add(new Property("role", "CodeableConcept", "The role the participant should play in performing the described action.", 0, 1, role)); + children.add(new Property("function", "CodeableConcept", "Indicates how the actor will be involved in the action - author, reviewer, witness, etc.", 0, 1, function)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case 3575610: /*type*/ return new Property("type", "code", "The type of participant in the action.", 0, 1, type); + case 2074825009: /*typeReference*/ return new Property("typeReference", "Reference(CareTeam|Device|Group|HealthcareService|Location|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson)", "The type of participant in the action.", 0, 1, typeReference); case 3506294: /*role*/ return new Property("role", "CodeableConcept", "The role the participant should play in performing the described action.", 0, 1, role); + case 1380938712: /*function*/ return new Property("function", "CodeableConcept", "Indicates how the actor will be involved in the action - author, reviewer, witness, etc.", 0, 1, function); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -481,7 +540,9 @@ public class ActivityDefinition extends MetadataResource { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration + case 2074825009: /*typeReference*/ return this.typeReference == null ? new Base[0] : new Base[] {this.typeReference}; // Reference case 3506294: /*role*/ return this.role == null ? new Base[0] : new Base[] {this.role}; // CodeableConcept + case 1380938712: /*function*/ return this.function == null ? new Base[0] : new Base[] {this.function}; // CodeableConcept default: return super.getProperty(hash, name, checkValid); } @@ -494,9 +555,15 @@ public class ActivityDefinition extends MetadataResource { value = new ActionParticipantTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); this.type = (Enumeration) value; // Enumeration return value; + case 2074825009: // typeReference + this.typeReference = TypeConvertor.castToReference(value); // Reference + return value; case 3506294: // role this.role = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; + case 1380938712: // function + this.function = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; default: return super.setProperty(hash, name, value); } @@ -507,8 +574,12 @@ public class ActivityDefinition extends MetadataResource { if (name.equals("type")) { value = new ActionParticipantTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); this.type = (Enumeration) value; // Enumeration + } else if (name.equals("typeReference")) { + this.typeReference = TypeConvertor.castToReference(value); // Reference } else if (name.equals("role")) { this.role = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("function")) { + this.function = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else return super.setProperty(name, value); return value; @@ -518,7 +589,9 @@ public class ActivityDefinition extends MetadataResource { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: return getTypeElement(); + case 2074825009: return getTypeReference(); case 3506294: return getRole(); + case 1380938712: return getFunction(); default: return super.makeProperty(hash, name); } @@ -528,7 +601,9 @@ public class ActivityDefinition extends MetadataResource { public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: /*type*/ return new String[] {"code"}; + case 2074825009: /*typeReference*/ return new String[] {"Reference"}; case 3506294: /*role*/ return new String[] {"CodeableConcept"}; + case 1380938712: /*function*/ return new String[] {"CodeableConcept"}; default: return super.getTypesForProperty(hash, name); } @@ -539,10 +614,18 @@ public class ActivityDefinition extends MetadataResource { if (name.equals("type")) { throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.participant.type"); } + else if (name.equals("typeReference")) { + this.typeReference = new Reference(); + return this.typeReference; + } else if (name.equals("role")) { this.role = new CodeableConcept(); return this.role; } + else if (name.equals("function")) { + this.function = new CodeableConcept(); + return this.function; + } else return super.addChild(name); } @@ -556,7 +639,9 @@ public class ActivityDefinition extends MetadataResource { public void copyValues(ActivityDefinitionParticipantComponent dst) { super.copyValues(dst); dst.type = type == null ? null : type.copy(); + dst.typeReference = typeReference == null ? null : typeReference.copy(); dst.role = role == null ? null : role.copy(); + dst.function = function == null ? null : function.copy(); } @Override @@ -566,7 +651,8 @@ public class ActivityDefinition extends MetadataResource { if (!(other_ instanceof ActivityDefinitionParticipantComponent)) return false; ActivityDefinitionParticipantComponent o = (ActivityDefinitionParticipantComponent) other_; - return compareDeep(type, o.type, true) && compareDeep(role, o.role, true); + return compareDeep(type, o.type, true) && compareDeep(typeReference, o.typeReference, true) && compareDeep(role, o.role, true) + && compareDeep(function, o.function, true); } @Override @@ -580,7 +666,8 @@ public class ActivityDefinition extends MetadataResource { } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, role); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, typeReference, role + , function); } public String fhirType() { @@ -878,10 +965,10 @@ public class ActivityDefinition extends MetadataResource { protected BooleanType experimental; /** - * A code or group definition that describes the intended subject of the activity being defined. + * A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource. */ - @Child(name = "subject", type = {CodeableConcept.class, Group.class}, order=8, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Type of individual the activity definition is intended for", formalDefinition="A code or group definition that describes the intended subject of the activity being defined." ) + @Child(name = "subject", type = {CodeableConcept.class, Group.class, CanonicalType.class}, order=8, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Type of individual the activity definition is intended for", formalDefinition="A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subject-type") protected DataType subject; @@ -1067,18 +1154,18 @@ public class ActivityDefinition extends MetadataResource { protected BooleanType doNotPerform; /** - * The period, timing or frequency upon which the described activity is to occur. + * The timing or frequency upon which the described activity is to occur. */ - @Child(name = "timing", type = {Timing.class, DateTimeType.class, Age.class, Period.class, Range.class, Duration.class}, order=34, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="When activity is to occur", formalDefinition="The period, timing or frequency upon which the described activity is to occur." ) + @Child(name = "timing", type = {Timing.class, Age.class, Range.class, Duration.class}, order=34, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="When activity is to occur", formalDefinition="The timing or frequency upon which the described activity is to occur." ) protected DataType timing; /** * Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc. */ - @Child(name = "location", type = {Location.class}, order=35, min=0, max=1, modifier=false, summary=false) + @Child(name = "location", type = {CodeableReference.class}, order=35, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Where it should happen", formalDefinition="Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc." ) - protected Reference location; + protected CodeableReference location; /** * Indicates who should participate in performing the action described. @@ -1090,7 +1177,7 @@ public class ActivityDefinition extends MetadataResource { /** * Identifies the food, drug or other product being consumed or supplied in the activity. */ - @Child(name = "product", type = {Medication.class, Substance.class, CodeableConcept.class}, order=37, min=0, max=1, modifier=false, summary=false) + @Child(name = "product", type = {Medication.class, Substance.class, Ingredient.class, CodeableConcept.class}, order=37, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="What's administered/supplied", formalDefinition="Identifies the food, drug or other product being consumed or supplied in the activity." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/medication-codes") protected DataType product; @@ -1152,7 +1239,7 @@ public class ActivityDefinition extends MetadataResource { @Description(shortDefinition="Dynamic aspects of the definition", formalDefinition="Dynamic values that will be evaluated to produce values for elements of the resulting resource. For example, if the dosage of a medication must be computed based on the patient's weight, a dynamic value would be used to specify an expression that calculated the weight, and the path on the request resource that would contain the result." ) protected List dynamicValue; - private static final long serialVersionUID = 1615489416L; + private static final long serialVersionUID = 173439425L; /** * Constructor @@ -1558,14 +1645,14 @@ public class ActivityDefinition extends MetadataResource { } /** - * @return {@link #subject} (A code or group definition that describes the intended subject of the activity being defined.) + * @return {@link #subject} (A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.) */ public DataType getSubject() { return this.subject; } /** - * @return {@link #subject} (A code or group definition that describes the intended subject of the activity being defined.) + * @return {@link #subject} (A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.) */ public CodeableConcept getSubjectCodeableConcept() throws FHIRException { if (this.subject == null) @@ -1580,7 +1667,7 @@ public class ActivityDefinition extends MetadataResource { } /** - * @return {@link #subject} (A code or group definition that describes the intended subject of the activity being defined.) + * @return {@link #subject} (A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.) */ public Reference getSubjectReference() throws FHIRException { if (this.subject == null) @@ -1594,15 +1681,30 @@ public class ActivityDefinition extends MetadataResource { return this != null && this.subject instanceof Reference; } + /** + * @return {@link #subject} (A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.) + */ + public CanonicalType getSubjectCanonicalType() throws FHIRException { + if (this.subject == null) + this.subject = new CanonicalType(); + if (!(this.subject instanceof CanonicalType)) + throw new FHIRException("Type mismatch: the type CanonicalType was expected, but "+this.subject.getClass().getName()+" was encountered"); + return (CanonicalType) this.subject; + } + + public boolean hasSubjectCanonicalType() { + return this != null && this.subject instanceof CanonicalType; + } + public boolean hasSubject() { return this.subject != null && !this.subject.isEmpty(); } /** - * @param value {@link #subject} (A code or group definition that describes the intended subject of the activity being defined.) + * @param value {@link #subject} (A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.) */ public ActivityDefinition setSubject(DataType value) { - if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) + if (value != null && !(value instanceof CodeableConcept || value instanceof Reference || value instanceof CanonicalType)) throw new Error("Not the right type for ActivityDefinition.subject[x]: "+value.fhirType()); this.subject = value; return this; @@ -2828,14 +2930,14 @@ public class ActivityDefinition extends MetadataResource { } /** - * @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) + * @return {@link #timing} (The timing or frequency upon which the described activity is to occur.) */ public DataType getTiming() { return this.timing; } /** - * @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) + * @return {@link #timing} (The timing or frequency upon which the described activity is to occur.) */ public Timing getTimingTiming() throws FHIRException { if (this.timing == null) @@ -2850,22 +2952,7 @@ public class ActivityDefinition extends MetadataResource { } /** - * @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) - */ - public DateTimeType getTimingDateTimeType() throws FHIRException { - if (this.timing == null) - this.timing = new DateTimeType(); - if (!(this.timing instanceof DateTimeType)) - throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.timing.getClass().getName()+" was encountered"); - return (DateTimeType) this.timing; - } - - public boolean hasTimingDateTimeType() { - return this != null && this.timing instanceof DateTimeType; - } - - /** - * @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) + * @return {@link #timing} (The timing or frequency upon which the described activity is to occur.) */ public Age getTimingAge() throws FHIRException { if (this.timing == null) @@ -2880,22 +2967,7 @@ public class ActivityDefinition extends MetadataResource { } /** - * @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) - */ - public Period getTimingPeriod() throws FHIRException { - if (this.timing == null) - this.timing = new Period(); - if (!(this.timing instanceof Period)) - throw new FHIRException("Type mismatch: the type Period was expected, but "+this.timing.getClass().getName()+" was encountered"); - return (Period) this.timing; - } - - public boolean hasTimingPeriod() { - return this != null && this.timing instanceof Period; - } - - /** - * @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) + * @return {@link #timing} (The timing or frequency upon which the described activity is to occur.) */ public Range getTimingRange() throws FHIRException { if (this.timing == null) @@ -2910,7 +2982,7 @@ public class ActivityDefinition extends MetadataResource { } /** - * @return {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) + * @return {@link #timing} (The timing or frequency upon which the described activity is to occur.) */ public Duration getTimingDuration() throws FHIRException { if (this.timing == null) @@ -2929,10 +3001,10 @@ public class ActivityDefinition extends MetadataResource { } /** - * @param value {@link #timing} (The period, timing or frequency upon which the described activity is to occur.) + * @param value {@link #timing} (The timing or frequency upon which the described activity is to occur.) */ public ActivityDefinition setTiming(DataType value) { - if (value != null && !(value instanceof Timing || value instanceof DateTimeType || value instanceof Age || value instanceof Period || value instanceof Range || value instanceof Duration)) + if (value != null && !(value instanceof Timing || value instanceof Age || value instanceof Range || value instanceof Duration)) throw new Error("Not the right type for ActivityDefinition.timing[x]: "+value.fhirType()); this.timing = value; return this; @@ -2941,12 +3013,12 @@ public class ActivityDefinition extends MetadataResource { /** * @return {@link #location} (Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.) */ - public Reference getLocation() { + public CodeableReference getLocation() { if (this.location == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ActivityDefinition.location"); else if (Configuration.doAutoCreate()) - this.location = new Reference(); // cc + this.location = new CodeableReference(); // cc return this.location; } @@ -2957,7 +3029,7 @@ public class ActivityDefinition extends MetadataResource { /** * @param value {@link #location} (Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.) */ - public ActivityDefinition setLocation(Reference value) { + public ActivityDefinition setLocation(CodeableReference value) { this.location = value; return this; } @@ -3467,7 +3539,7 @@ public class ActivityDefinition extends MetadataResource { children.add(new Property("subtitle", "string", "An explanatory or alternate title for the activity definition giving additional information about its content.", 0, 1, subtitle)); children.add(new Property("status", "code", "The status of this activity definition. Enables tracking the life-cycle of the content.", 0, 1, status)); children.add(new Property("experimental", "boolean", "A Boolean value to indicate that this activity definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental)); - children.add(new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the activity being defined.", 0, 1, subject)); + children.add(new Property("subject[x]", "CodeableConcept|Reference(Group)|canonical", "A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject)); children.add(new Property("date", "dateTime", "The date (and optionally time) when the activity definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the activity definition changes.", 0, 1, date)); children.add(new Property("publisher", "string", "The name of the organization or individual that published the activity definition.", 0, 1, publisher)); children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact)); @@ -3493,10 +3565,10 @@ public class ActivityDefinition extends MetadataResource { children.add(new Property("intent", "code", "Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain.", 0, 1, intent)); children.add(new Property("priority", "code", "Indicates how quickly the activity should be addressed with respect to other requests.", 0, 1, priority)); children.add(new Property("doNotPerform", "boolean", "Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action.", 0, 1, doNotPerform)); - children.add(new Property("timing[x]", "Timing|dateTime|Age|Period|Range|Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing)); - children.add(new Property("location", "Reference(Location)", "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.", 0, 1, location)); + children.add(new Property("timing[x]", "Timing|Age|Range|Duration", "The timing or frequency upon which the described activity is to occur.", 0, 1, timing)); + children.add(new Property("location", "CodeableReference(Location)", "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.", 0, 1, location)); children.add(new Property("participant", "", "Indicates who should participate in performing the action described.", 0, java.lang.Integer.MAX_VALUE, participant)); - children.add(new Property("product[x]", "Reference(Medication|Substance)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product)); + children.add(new Property("product[x]", "Reference(Medication|Substance|Ingredient)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product)); children.add(new Property("quantity", "Quantity", "Identifies the quantity expected to be consumed at once (per dose, per meal, etc.).", 0, 1, quantity)); children.add(new Property("dosage", "Dosage", "Provides detailed dosage instructions in the same way that they are described for MedicationRequest resources.", 0, java.lang.Integer.MAX_VALUE, dosage)); children.add(new Property("bodySite", "CodeableConcept", "Indicates the sites on the subject's body where the procedure should be performed (I.e. the target sites).", 0, java.lang.Integer.MAX_VALUE, bodySite)); @@ -3518,10 +3590,11 @@ public class ActivityDefinition extends MetadataResource { case -2060497896: /*subtitle*/ return new Property("subtitle", "string", "An explanatory or alternate title for the activity definition giving additional information about its content.", 0, 1, subtitle); case -892481550: /*status*/ return new Property("status", "code", "The status of this activity definition. Enables tracking the life-cycle of the content.", 0, 1, status); case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A Boolean value to indicate that this activity definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental); - case -573640748: /*subject[x]*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the activity being defined.", 0, 1, subject); - case -1867885268: /*subject*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the activity being defined.", 0, 1, subject); - case -1257122603: /*subjectCodeableConcept*/ return new Property("subject[x]", "CodeableConcept", "A code or group definition that describes the intended subject of the activity being defined.", 0, 1, subject); - case 772938623: /*subjectReference*/ return new Property("subject[x]", "Reference(Group)", "A code or group definition that describes the intended subject of the activity being defined.", 0, 1, subject); + case -573640748: /*subject[x]*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)|canonical", "A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject); + case -1867885268: /*subject*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)|canonical", "A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject); + case -1257122603: /*subjectCodeableConcept*/ return new Property("subject[x]", "CodeableConcept", "A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject); + case 772938623: /*subjectReference*/ return new Property("subject[x]", "Reference(Group)", "A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject); + case -1768521432: /*subjectCanonical*/ return new Property("subject[x]", "canonical", "A code, group definition, or canonical reference that describes or identifies the intended subject of the activity being defined. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject); case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the activity definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the activity definition changes.", 0, 1, date); case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the organization or individual that published the activity definition.", 0, 1, publisher); case 951526432: /*contact*/ return new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact); @@ -3547,19 +3620,17 @@ public class ActivityDefinition extends MetadataResource { case -1183762788: /*intent*/ return new Property("intent", "code", "Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain.", 0, 1, intent); case -1165461084: /*priority*/ return new Property("priority", "code", "Indicates how quickly the activity should be addressed with respect to other requests.", 0, 1, priority); case -1788508167: /*doNotPerform*/ return new Property("doNotPerform", "boolean", "Set this to true if the definition is to indicate that a particular activity should NOT be performed. If true, this element should be interpreted to reinforce a negative coding. For example NPO as a code with a doNotPerform of true would still indicate to NOT perform the action.", 0, 1, doNotPerform); - case 164632566: /*timing[x]*/ return new Property("timing[x]", "Timing|dateTime|Age|Period|Range|Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); - case -873664438: /*timing*/ return new Property("timing[x]", "Timing|dateTime|Age|Period|Range|Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); - case -497554124: /*timingTiming*/ return new Property("timing[x]", "Timing", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); - case -1837458939: /*timingDateTime*/ return new Property("timing[x]", "dateTime", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); - case 164607061: /*timingAge*/ return new Property("timing[x]", "Age", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); - case -615615829: /*timingPeriod*/ return new Property("timing[x]", "Period", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); - case -710871277: /*timingRange*/ return new Property("timing[x]", "Range", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); - case -1327253506: /*timingDuration*/ return new Property("timing[x]", "Duration", "The period, timing or frequency upon which the described activity is to occur.", 0, 1, timing); - case 1901043637: /*location*/ return new Property("location", "Reference(Location)", "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.", 0, 1, location); + case 164632566: /*timing[x]*/ return new Property("timing[x]", "Timing|Age|Range|Duration", "The timing or frequency upon which the described activity is to occur.", 0, 1, timing); + case -873664438: /*timing*/ return new Property("timing[x]", "Timing|Age|Range|Duration", "The timing or frequency upon which the described activity is to occur.", 0, 1, timing); + case -497554124: /*timingTiming*/ return new Property("timing[x]", "Timing", "The timing or frequency upon which the described activity is to occur.", 0, 1, timing); + case 164607061: /*timingAge*/ return new Property("timing[x]", "Age", "The timing or frequency upon which the described activity is to occur.", 0, 1, timing); + case -710871277: /*timingRange*/ return new Property("timing[x]", "Range", "The timing or frequency upon which the described activity is to occur.", 0, 1, timing); + case -1327253506: /*timingDuration*/ return new Property("timing[x]", "Duration", "The timing or frequency upon which the described activity is to occur.", 0, 1, timing); + case 1901043637: /*location*/ return new Property("location", "CodeableReference(Location)", "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.", 0, 1, location); case 767422259: /*participant*/ return new Property("participant", "", "Indicates who should participate in performing the action described.", 0, java.lang.Integer.MAX_VALUE, participant); - case 1753005361: /*product[x]*/ return new Property("product[x]", "Reference(Medication|Substance)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product); - case -309474065: /*product*/ return new Property("product[x]", "Reference(Medication|Substance)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product); - case -669667556: /*productReference*/ return new Property("product[x]", "Reference(Medication|Substance)", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product); + case 1753005361: /*product[x]*/ return new Property("product[x]", "Reference(Medication|Substance|Ingredient)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product); + case -309474065: /*product*/ return new Property("product[x]", "Reference(Medication|Substance|Ingredient)|CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product); + case -669667556: /*productReference*/ return new Property("product[x]", "Reference(Medication|Substance|Ingredient)", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product); case 906854066: /*productCodeableConcept*/ return new Property("product[x]", "CodeableConcept", "Identifies the food, drug or other product being consumed or supplied in the activity.", 0, 1, product); case -1285004149: /*quantity*/ return new Property("quantity", "Quantity", "Identifies the quantity expected to be consumed at once (per dose, per meal, etc.).", 0, 1, quantity); case -1326018889: /*dosage*/ return new Property("dosage", "Dosage", "Provides detailed dosage instructions in the same way that they are described for MedicationRequest resources.", 0, java.lang.Integer.MAX_VALUE, dosage); @@ -3612,7 +3683,7 @@ public class ActivityDefinition extends MetadataResource { case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // Enumeration case -1788508167: /*doNotPerform*/ return this.doNotPerform == null ? new Base[0] : new Base[] {this.doNotPerform}; // BooleanType case -873664438: /*timing*/ return this.timing == null ? new Base[0] : new Base[] {this.timing}; // DataType - case 1901043637: /*location*/ return this.location == null ? new Base[0] : new Base[] {this.location}; // Reference + case 1901043637: /*location*/ return this.location == null ? new Base[0] : new Base[] {this.location}; // CodeableReference case 767422259: /*participant*/ return this.participant == null ? new Base[0] : this.participant.toArray(new Base[this.participant.size()]); // ActivityDefinitionParticipantComponent case -309474065: /*product*/ return this.product == null ? new Base[0] : new Base[] {this.product}; // DataType case -1285004149: /*quantity*/ return this.quantity == null ? new Base[0] : new Base[] {this.quantity}; // Quantity @@ -3741,7 +3812,7 @@ public class ActivityDefinition extends MetadataResource { this.timing = TypeConvertor.castToType(value); // DataType return value; case 1901043637: // location - this.location = TypeConvertor.castToReference(value); // Reference + this.location = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; case 767422259: // participant this.getParticipant().add((ActivityDefinitionParticipantComponent) value); // ActivityDefinitionParticipantComponent @@ -3855,7 +3926,7 @@ public class ActivityDefinition extends MetadataResource { } else if (name.equals("timing[x]")) { this.timing = TypeConvertor.castToType(value); // DataType } else if (name.equals("location")) { - this.location = TypeConvertor.castToReference(value); // Reference + this.location = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("participant")) { this.getParticipant().add((ActivityDefinitionParticipantComponent) value); } else if (name.equals("product[x]")) { @@ -3949,7 +4020,7 @@ public class ActivityDefinition extends MetadataResource { case -2060497896: /*subtitle*/ return new String[] {"string"}; case -892481550: /*status*/ return new String[] {"code"}; case -404562712: /*experimental*/ return new String[] {"boolean"}; - case -1867885268: /*subject*/ return new String[] {"CodeableConcept", "Reference"}; + case -1867885268: /*subject*/ return new String[] {"CodeableConcept", "Reference", "canonical"}; case 3076014: /*date*/ return new String[] {"dateTime"}; case 1447404028: /*publisher*/ return new String[] {"string"}; case 951526432: /*contact*/ return new String[] {"ContactDetail"}; @@ -3975,8 +4046,8 @@ public class ActivityDefinition extends MetadataResource { case -1183762788: /*intent*/ return new String[] {"code"}; case -1165461084: /*priority*/ return new String[] {"code"}; case -1788508167: /*doNotPerform*/ return new String[] {"boolean"}; - case -873664438: /*timing*/ return new String[] {"Timing", "dateTime", "Age", "Period", "Range", "Duration"}; - case 1901043637: /*location*/ return new String[] {"Reference"}; + case -873664438: /*timing*/ return new String[] {"Timing", "Age", "Range", "Duration"}; + case 1901043637: /*location*/ return new String[] {"CodeableReference"}; case 767422259: /*participant*/ return new String[] {}; case -309474065: /*product*/ return new String[] {"Reference", "CodeableConcept"}; case -1285004149: /*quantity*/ return new String[] {"Quantity"}; @@ -4026,6 +4097,10 @@ public class ActivityDefinition extends MetadataResource { this.subject = new Reference(); return this.subject; } + else if (name.equals("subjectCanonical")) { + this.subject = new CanonicalType(); + return this.subject; + } else if (name.equals("date")) { throw new FHIRException("Cannot call addChild on a primitive type ActivityDefinition.date"); } @@ -4107,18 +4182,10 @@ public class ActivityDefinition extends MetadataResource { this.timing = new Timing(); return this.timing; } - else if (name.equals("timingDateTime")) { - this.timing = new DateTimeType(); - return this.timing; - } else if (name.equals("timingAge")) { this.timing = new Age(); return this.timing; } - else if (name.equals("timingPeriod")) { - this.timing = new Period(); - return this.timing; - } else if (name.equals("timingRange")) { this.timing = new Range(); return this.timing; @@ -4128,7 +4195,7 @@ public class ActivityDefinition extends MetadataResource { return this.timing; } else if (name.equals("location")) { - this.location = new Reference(); + this.location = new CodeableReference(); return this.location; } else if (name.equals("participant")) { @@ -4376,7 +4443,7 @@ public class ActivityDefinition extends MetadataResource { * Path: ActivityDefinition.relatedArtifact.where(type='composed-of').resource
*

*/ - @SearchParamDefinition(name="composed-of", path="ActivityDefinition.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="composed-of", path="ActivityDefinition.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_COMPOSED_OF = "composed-of"; /** * Fluent Client search parameter constant for composed-of @@ -4394,6 +4461,26 @@ public class ActivityDefinition extends MetadataResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_COMPOSED_OF = new ca.uhn.fhir.model.api.Include("ActivityDefinition:composed-of").toLocked(); + /** + * Search parameter: context + *

+ * Description: A use context assigned to the activity definition
+ * Type: token
+ * Path: (ActivityDefinition.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(ActivityDefinition.useContext.value as CodeableConcept)", description="A use context assigned to the activity definition", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: A use context assigned to the activity definition
+ * Type: token
+ * Path: (ActivityDefinition.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -4414,46 +4501,6 @@ public class ActivityDefinition extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the activity definition
- * Type: composite
- * Path: ActivityDefinition.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="ActivityDefinition.useContext", description="A use context type and quantity- or range-based value assigned to the activity definition", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the activity definition
- * Type: composite
- * Path: ActivityDefinition.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: A use context type and value assigned to the activity definition
- * Type: composite
- * Path: ActivityDefinition.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="ActivityDefinition.useContext", description="A use context type and value assigned to the activity definition", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: A use context type and value assigned to the activity definition
- * Type: composite
- * Path: ActivityDefinition.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -4474,26 +4521,6 @@ public class ActivityDefinition extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: A use context assigned to the activity definition
- * Type: token
- * Path: (ActivityDefinition.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(ActivityDefinition.useContext.value as CodeableConcept)", description="A use context assigned to the activity definition", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: A use context assigned to the activity definition
- * Type: token
- * Path: (ActivityDefinition.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -4522,7 +4549,7 @@ public class ActivityDefinition extends MetadataResource { * Path: ActivityDefinition.relatedArtifact.where(type='depends-on').resource | ActivityDefinition.library
*

*/ - @SearchParamDefinition(name="depends-on", path="ActivityDefinition.relatedArtifact.where(type='depends-on').resource | ActivityDefinition.library", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="depends-on", path="ActivityDefinition.relatedArtifact.where(type='depends-on').resource | ActivityDefinition.library", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_DEPENDS_ON = "depends-on"; /** * Fluent Client search parameter constant for depends-on @@ -4548,7 +4575,7 @@ public class ActivityDefinition extends MetadataResource { * Path: ActivityDefinition.relatedArtifact.where(type='derived-from').resource
*

*/ - @SearchParamDefinition(name="derived-from", path="ActivityDefinition.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="derived-from", path="ActivityDefinition.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_DERIVED_FROM = "derived-from"; /** * Fluent Client search parameter constant for derived-from @@ -4674,7 +4701,7 @@ public class ActivityDefinition extends MetadataResource { * Path: ActivityDefinition.relatedArtifact.where(type='predecessor').resource
*

*/ - @SearchParamDefinition(name="predecessor", path="ActivityDefinition.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="predecessor", path="ActivityDefinition.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PREDECESSOR = "predecessor"; /** * Fluent Client search parameter constant for predecessor @@ -4740,7 +4767,7 @@ public class ActivityDefinition extends MetadataResource { * Path: ActivityDefinition.relatedArtifact.where(type='successor').resource
*

*/ - @SearchParamDefinition(name="successor", path="ActivityDefinition.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="successor", path="ActivityDefinition.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_SUCCESSOR = "successor"; /** * Fluent Client search parameter constant for successor @@ -4838,6 +4865,46 @@ public class ActivityDefinition extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the activity definition
+ * Type: composite
+ * Path: ActivityDefinition.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="ActivityDefinition.useContext", description="A use context type and quantity- or range-based value assigned to the activity definition", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the activity definition
+ * Type: composite
+ * Path: ActivityDefinition.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: A use context type and value assigned to the activity definition
+ * Type: composite
+ * Path: ActivityDefinition.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="ActivityDefinition.useContext", description="A use context type and value assigned to the activity definition", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: A use context type and value assigned to the activity definition
+ * Type: composite
+ * Path: ActivityDefinition.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Address.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Address.java index 4ae4aee8c..ee13ff0d5 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Address.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Address.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -87,7 +87,6 @@ public class Address extends DataType implements ICompositeType { case POSTAL: return "postal"; case PHYSICAL: return "physical"; case BOTH: return "both"; - case NULL: return null; default: return "?"; } } @@ -96,7 +95,6 @@ public class Address extends DataType implements ICompositeType { case POSTAL: return "http://hl7.org/fhir/address-type"; case PHYSICAL: return "http://hl7.org/fhir/address-type"; case BOTH: return "http://hl7.org/fhir/address-type"; - case NULL: return null; default: return "?"; } } @@ -105,7 +103,6 @@ public class Address extends DataType implements ICompositeType { case POSTAL: return "Mailing addresses - PO Boxes and care-of addresses."; case PHYSICAL: return "A physical address that can be visited."; case BOTH: return "An address that is both physical and postal."; - case NULL: return null; default: return "?"; } } @@ -114,7 +111,6 @@ public class Address extends DataType implements ICompositeType { case POSTAL: return "Postal"; case PHYSICAL: return "Physical"; case BOTH: return "Postal & Physical"; - case NULL: return null; default: return "?"; } } @@ -213,7 +209,6 @@ public class Address extends DataType implements ICompositeType { case TEMP: return "temp"; case OLD: return "old"; case BILLING: return "billing"; - case NULL: return null; default: return "?"; } } @@ -224,7 +219,6 @@ public class Address extends DataType implements ICompositeType { case TEMP: return "http://hl7.org/fhir/address-use"; case OLD: return "http://hl7.org/fhir/address-use"; case BILLING: return "http://hl7.org/fhir/address-use"; - case NULL: return null; default: return "?"; } } @@ -235,7 +229,6 @@ public class Address extends DataType implements ICompositeType { case TEMP: return "A temporary address. The period can provide more detailed information."; case OLD: return "This address is no longer in use (or was never correct but retained for records)."; case BILLING: return "An address to be used to send bills, invoices, receipts etc."; - case NULL: return null; default: return "?"; } } @@ -246,7 +239,6 @@ public class Address extends DataType implements ICompositeType { case TEMP: return "Temporary"; case OLD: return "Old / Incorrect"; case BILLING: return "Billing"; - case NULL: return null; default: return "?"; } } @@ -369,7 +361,7 @@ public class Address extends DataType implements ICompositeType { * Country - a nation as commonly understood or generally accepted. */ @Child(name = "country", type = {StringType.class}, order=8, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Country (e.g. can be ISO 3166 2 or 3 letter code)", formalDefinition="Country - a nation as commonly understood or generally accepted." ) + @Description(shortDefinition="Country (e.g. may be ISO 3166 2 or 3 letter code)", formalDefinition="Country - a nation as commonly understood or generally accepted." ) protected StringType country; /** diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AdministrableProductDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AdministrableProductDefinition.java index 77bce65af..fcfa45c64 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AdministrableProductDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AdministrableProductDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -48,7 +48,7 @@ import ca.uhn.fhir.model.api.annotation.Description; import ca.uhn.fhir.model.api.annotation.Block; /** - * A pharmaceutical product described in terms of its composition and dose form. + * A medicinal product in the final form which is suitable for administering to a patient (after any mixing of multiple components, dissolution etc. has been performed). */ @ResourceDef(name="AdministrableProductDefinition", profile="http://hl7.org/fhir/StructureDefinition/AdministrableProductDefinition") public class AdministrableProductDefinition extends DomainResource { @@ -414,38 +414,38 @@ public class AdministrableProductDefinition extends DomainResource { protected CodeableConcept code; /** - * The first dose (dose quantity) administered in humans can be specified, for a product under investigation, using a numerical value and its unit of measurement. + * The first dose (dose quantity) administered can be specified for the product, using a numerical value and its unit of measurement. */ @Child(name = "firstDose", type = {Quantity.class}, order=2, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="The first dose (dose quantity) administered in humans can be specified, for a product under investigation, using a numerical value and its unit of measurement", formalDefinition="The first dose (dose quantity) administered in humans can be specified, for a product under investigation, using a numerical value and its unit of measurement." ) + @Description(shortDefinition="The first dose (dose quantity) administered can be specified for the product, using a numerical value and its unit of measurement", formalDefinition="The first dose (dose quantity) administered can be specified for the product, using a numerical value and its unit of measurement." ) protected Quantity firstDose; /** - * The maximum single dose that can be administered as per the protocol of a clinical trial can be specified using a numerical value and its unit of measurement. + * The maximum single dose that can be administered, can be specified using a numerical value and its unit of measurement. */ @Child(name = "maxSingleDose", type = {Quantity.class}, order=3, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="The maximum single dose that can be administered as per the protocol of a clinical trial can be specified using a numerical value and its unit of measurement", formalDefinition="The maximum single dose that can be administered as per the protocol of a clinical trial can be specified using a numerical value and its unit of measurement." ) + @Description(shortDefinition="The maximum single dose that can be administered, can be specified using a numerical value and its unit of measurement", formalDefinition="The maximum single dose that can be administered, can be specified using a numerical value and its unit of measurement." ) protected Quantity maxSingleDose; /** - * The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered as per the protocol referenced in the clinical trial authorisation. + * The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered. */ @Child(name = "maxDosePerDay", type = {Quantity.class}, order=4, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered as per the protocol referenced in the clinical trial authorisation", formalDefinition="The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered as per the protocol referenced in the clinical trial authorisation." ) + @Description(shortDefinition="The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered", formalDefinition="The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered." ) protected Quantity maxDosePerDay; /** - * The maximum dose per treatment period that can be administered as per the protocol referenced in the clinical trial authorisation. + * The maximum dose per treatment period that can be administered. */ @Child(name = "maxDosePerTreatmentPeriod", type = {Ratio.class}, order=5, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="The maximum dose per treatment period that can be administered as per the protocol referenced in the clinical trial authorisation", formalDefinition="The maximum dose per treatment period that can be administered as per the protocol referenced in the clinical trial authorisation." ) + @Description(shortDefinition="The maximum dose per treatment period that can be administered", formalDefinition="The maximum dose per treatment period that can be administered." ) protected Ratio maxDosePerTreatmentPeriod; /** - * The maximum treatment period during which an Investigational Medicinal Product can be administered as per the protocol referenced in the clinical trial authorisation. + * The maximum treatment period during which an Investigational Medicinal Product can be administered. */ @Child(name = "maxTreatmentPeriod", type = {Duration.class}, order=6, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="The maximum treatment period during which an Investigational Medicinal Product can be administered as per the protocol referenced in the clinical trial authorisation", formalDefinition="The maximum treatment period during which an Investigational Medicinal Product can be administered as per the protocol referenced in the clinical trial authorisation." ) + @Description(shortDefinition="The maximum treatment period during which an Investigational Medicinal Product can be administered", formalDefinition="The maximum treatment period during which an Investigational Medicinal Product can be administered." ) protected Duration maxTreatmentPeriod; /** @@ -497,7 +497,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @return {@link #firstDose} (The first dose (dose quantity) administered in humans can be specified, for a product under investigation, using a numerical value and its unit of measurement.) + * @return {@link #firstDose} (The first dose (dose quantity) administered can be specified for the product, using a numerical value and its unit of measurement.) */ public Quantity getFirstDose() { if (this.firstDose == null) @@ -513,7 +513,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @param value {@link #firstDose} (The first dose (dose quantity) administered in humans can be specified, for a product under investigation, using a numerical value and its unit of measurement.) + * @param value {@link #firstDose} (The first dose (dose quantity) administered can be specified for the product, using a numerical value and its unit of measurement.) */ public AdministrableProductDefinitionRouteOfAdministrationComponent setFirstDose(Quantity value) { this.firstDose = value; @@ -521,7 +521,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @return {@link #maxSingleDose} (The maximum single dose that can be administered as per the protocol of a clinical trial can be specified using a numerical value and its unit of measurement.) + * @return {@link #maxSingleDose} (The maximum single dose that can be administered, can be specified using a numerical value and its unit of measurement.) */ public Quantity getMaxSingleDose() { if (this.maxSingleDose == null) @@ -537,7 +537,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @param value {@link #maxSingleDose} (The maximum single dose that can be administered as per the protocol of a clinical trial can be specified using a numerical value and its unit of measurement.) + * @param value {@link #maxSingleDose} (The maximum single dose that can be administered, can be specified using a numerical value and its unit of measurement.) */ public AdministrableProductDefinitionRouteOfAdministrationComponent setMaxSingleDose(Quantity value) { this.maxSingleDose = value; @@ -545,7 +545,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @return {@link #maxDosePerDay} (The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered as per the protocol referenced in the clinical trial authorisation.) + * @return {@link #maxDosePerDay} (The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered.) */ public Quantity getMaxDosePerDay() { if (this.maxDosePerDay == null) @@ -561,7 +561,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @param value {@link #maxDosePerDay} (The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered as per the protocol referenced in the clinical trial authorisation.) + * @param value {@link #maxDosePerDay} (The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered.) */ public AdministrableProductDefinitionRouteOfAdministrationComponent setMaxDosePerDay(Quantity value) { this.maxDosePerDay = value; @@ -569,7 +569,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @return {@link #maxDosePerTreatmentPeriod} (The maximum dose per treatment period that can be administered as per the protocol referenced in the clinical trial authorisation.) + * @return {@link #maxDosePerTreatmentPeriod} (The maximum dose per treatment period that can be administered.) */ public Ratio getMaxDosePerTreatmentPeriod() { if (this.maxDosePerTreatmentPeriod == null) @@ -585,7 +585,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @param value {@link #maxDosePerTreatmentPeriod} (The maximum dose per treatment period that can be administered as per the protocol referenced in the clinical trial authorisation.) + * @param value {@link #maxDosePerTreatmentPeriod} (The maximum dose per treatment period that can be administered.) */ public AdministrableProductDefinitionRouteOfAdministrationComponent setMaxDosePerTreatmentPeriod(Ratio value) { this.maxDosePerTreatmentPeriod = value; @@ -593,7 +593,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @return {@link #maxTreatmentPeriod} (The maximum treatment period during which an Investigational Medicinal Product can be administered as per the protocol referenced in the clinical trial authorisation.) + * @return {@link #maxTreatmentPeriod} (The maximum treatment period during which an Investigational Medicinal Product can be administered.) */ public Duration getMaxTreatmentPeriod() { if (this.maxTreatmentPeriod == null) @@ -609,7 +609,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @param value {@link #maxTreatmentPeriod} (The maximum treatment period during which an Investigational Medicinal Product can be administered as per the protocol referenced in the clinical trial authorisation.) + * @param value {@link #maxTreatmentPeriod} (The maximum treatment period during which an Investigational Medicinal Product can be administered.) */ public AdministrableProductDefinitionRouteOfAdministrationComponent setMaxTreatmentPeriod(Duration value) { this.maxTreatmentPeriod = value; @@ -672,11 +672,11 @@ public class AdministrableProductDefinition extends DomainResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("code", "CodeableConcept", "Coded expression for the route.", 0, 1, code)); - children.add(new Property("firstDose", "Quantity", "The first dose (dose quantity) administered in humans can be specified, for a product under investigation, using a numerical value and its unit of measurement.", 0, 1, firstDose)); - children.add(new Property("maxSingleDose", "Quantity", "The maximum single dose that can be administered as per the protocol of a clinical trial can be specified using a numerical value and its unit of measurement.", 0, 1, maxSingleDose)); - children.add(new Property("maxDosePerDay", "Quantity", "The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered as per the protocol referenced in the clinical trial authorisation.", 0, 1, maxDosePerDay)); - children.add(new Property("maxDosePerTreatmentPeriod", "Ratio", "The maximum dose per treatment period that can be administered as per the protocol referenced in the clinical trial authorisation.", 0, 1, maxDosePerTreatmentPeriod)); - children.add(new Property("maxTreatmentPeriod", "Duration", "The maximum treatment period during which an Investigational Medicinal Product can be administered as per the protocol referenced in the clinical trial authorisation.", 0, 1, maxTreatmentPeriod)); + children.add(new Property("firstDose", "Quantity", "The first dose (dose quantity) administered can be specified for the product, using a numerical value and its unit of measurement.", 0, 1, firstDose)); + children.add(new Property("maxSingleDose", "Quantity", "The maximum single dose that can be administered, can be specified using a numerical value and its unit of measurement.", 0, 1, maxSingleDose)); + children.add(new Property("maxDosePerDay", "Quantity", "The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered.", 0, 1, maxDosePerDay)); + children.add(new Property("maxDosePerTreatmentPeriod", "Ratio", "The maximum dose per treatment period that can be administered.", 0, 1, maxDosePerTreatmentPeriod)); + children.add(new Property("maxTreatmentPeriod", "Duration", "The maximum treatment period during which an Investigational Medicinal Product can be administered.", 0, 1, maxTreatmentPeriod)); children.add(new Property("targetSpecies", "", "A species for which this route applies.", 0, java.lang.Integer.MAX_VALUE, targetSpecies)); } @@ -684,11 +684,11 @@ public class AdministrableProductDefinition extends DomainResource { public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Coded expression for the route.", 0, 1, code); - case 132551405: /*firstDose*/ return new Property("firstDose", "Quantity", "The first dose (dose quantity) administered in humans can be specified, for a product under investigation, using a numerical value and its unit of measurement.", 0, 1, firstDose); - case -259207927: /*maxSingleDose*/ return new Property("maxSingleDose", "Quantity", "The maximum single dose that can be administered as per the protocol of a clinical trial can be specified using a numerical value and its unit of measurement.", 0, 1, maxSingleDose); - case -2017475520: /*maxDosePerDay*/ return new Property("maxDosePerDay", "Quantity", "The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered as per the protocol referenced in the clinical trial authorisation.", 0, 1, maxDosePerDay); - case -608040195: /*maxDosePerTreatmentPeriod*/ return new Property("maxDosePerTreatmentPeriod", "Ratio", "The maximum dose per treatment period that can be administered as per the protocol referenced in the clinical trial authorisation.", 0, 1, maxDosePerTreatmentPeriod); - case 920698453: /*maxTreatmentPeriod*/ return new Property("maxTreatmentPeriod", "Duration", "The maximum treatment period during which an Investigational Medicinal Product can be administered as per the protocol referenced in the clinical trial authorisation.", 0, 1, maxTreatmentPeriod); + case 132551405: /*firstDose*/ return new Property("firstDose", "Quantity", "The first dose (dose quantity) administered can be specified for the product, using a numerical value and its unit of measurement.", 0, 1, firstDose); + case -259207927: /*maxSingleDose*/ return new Property("maxSingleDose", "Quantity", "The maximum single dose that can be administered, can be specified using a numerical value and its unit of measurement.", 0, 1, maxSingleDose); + case -2017475520: /*maxDosePerDay*/ return new Property("maxDosePerDay", "Quantity", "The maximum dose per day (maximum dose quantity to be administered in any one 24-h period) that can be administered.", 0, 1, maxDosePerDay); + case -608040195: /*maxDosePerTreatmentPeriod*/ return new Property("maxDosePerTreatmentPeriod", "Ratio", "The maximum dose per treatment period that can be administered.", 0, 1, maxDosePerTreatmentPeriod); + case 920698453: /*maxTreatmentPeriod*/ return new Property("maxTreatmentPeriod", "Duration", "The maximum treatment period during which an Investigational Medicinal Product can be administered.", 0, 1, maxTreatmentPeriod); case 295481963: /*targetSpecies*/ return new Property("targetSpecies", "", "A species for which this route applies.", 0, java.lang.Integer.MAX_VALUE, targetSpecies); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -1404,31 +1404,31 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * An identifier for the pharmaceutical medicinal product. + * An identifier for the administrable product. */ @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="An identifier for the pharmaceutical medicinal product", formalDefinition="An identifier for the pharmaceutical medicinal product." ) + @Description(shortDefinition="An identifier for the administrable product", formalDefinition="An identifier for the administrable product." ) protected List identifier; /** - * The product that this is a pharmaceutical product of. + * The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product. */ @Child(name = "subject", type = {MedicinalProductDefinition.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="The product that this is a pharmaceutical product of", formalDefinition="The product that this is a pharmaceutical product of." ) + @Description(shortDefinition="The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product", formalDefinition="The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product." ) protected List subject; /** - * The administrable dose form, after necessary reconstitution. + * The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing. */ @Child(name = "administrableDoseForm", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="The administrable dose form, after necessary reconstitution", formalDefinition="The administrable dose form, after necessary reconstitution." ) + @Description(shortDefinition="The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing", formalDefinition="The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing." ) protected CodeableConcept administrableDoseForm; /** - * Todo. + * The units of presentation for the administrable product, for example 'tablet'. */ @Child(name = "unitOfPresentation", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Todo", formalDefinition="Todo." ) + @Description(shortDefinition="The units of presentation for the administrable product, for example 'tablet'", formalDefinition="The units of presentation for the administrable product, for example 'tablet'." ) protected CodeableConcept unitOfPresentation; /** @@ -1439,17 +1439,17 @@ public class AdministrableProductDefinition extends DomainResource { protected List producedFrom; /** - * The ingredients of this administrable pharmaceutical product. + * The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s). */ @Child(name = "ingredient", type = {Ingredient.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="The ingredients of this administrable pharmaceutical product", formalDefinition="The ingredients of this administrable pharmaceutical product." ) + @Description(shortDefinition="The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s)", formalDefinition="The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s)." ) protected List ingredient; /** - * Accompanying device. + * A device that is integral to the medicinal product, in effect being considered as an "ingredient" of the medicinal product. This is not intended for devices that are just co-packaged. */ @Child(name = "device", type = {DeviceDefinition.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Accompanying device", formalDefinition="Accompanying device." ) + @Description(shortDefinition="A device that is integral to the medicinal product, in effect being considered as an \"ingredient\" of the medicinal product. This is not intended for devices that are just co-packaged", formalDefinition="A device that is integral to the medicinal product, in effect being considered as an \"ingredient\" of the medicinal product. This is not intended for devices that are just co-packaged." ) protected List device; /** @@ -1460,10 +1460,10 @@ public class AdministrableProductDefinition extends DomainResource { protected List property; /** - * The path by which the pharmaceutical product is taken into or makes contact with the body. + * The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route. */ @Child(name = "routeOfAdministration", type = {}, order=8, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="The path by which the pharmaceutical product is taken into or makes contact with the body", formalDefinition="The path by which the pharmaceutical product is taken into or makes contact with the body." ) + @Description(shortDefinition="The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route", formalDefinition="The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route." ) protected List routeOfAdministration; private static final long serialVersionUID = -1072766896L; @@ -1484,7 +1484,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @return {@link #identifier} (An identifier for the pharmaceutical medicinal product.) + * @return {@link #identifier} (An identifier for the administrable product.) */ public List getIdentifier() { if (this.identifier == null) @@ -1537,7 +1537,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @return {@link #subject} (The product that this is a pharmaceutical product of.) + * @return {@link #subject} (The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product.) */ public List getSubject() { if (this.subject == null) @@ -1590,7 +1590,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @return {@link #administrableDoseForm} (The administrable dose form, after necessary reconstitution.) + * @return {@link #administrableDoseForm} (The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing.) */ public CodeableConcept getAdministrableDoseForm() { if (this.administrableDoseForm == null) @@ -1606,7 +1606,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @param value {@link #administrableDoseForm} (The administrable dose form, after necessary reconstitution.) + * @param value {@link #administrableDoseForm} (The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing.) */ public AdministrableProductDefinition setAdministrableDoseForm(CodeableConcept value) { this.administrableDoseForm = value; @@ -1614,7 +1614,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @return {@link #unitOfPresentation} (Todo.) + * @return {@link #unitOfPresentation} (The units of presentation for the administrable product, for example 'tablet'.) */ public CodeableConcept getUnitOfPresentation() { if (this.unitOfPresentation == null) @@ -1630,7 +1630,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @param value {@link #unitOfPresentation} (Todo.) + * @param value {@link #unitOfPresentation} (The units of presentation for the administrable product, for example 'tablet'.) */ public AdministrableProductDefinition setUnitOfPresentation(CodeableConcept value) { this.unitOfPresentation = value; @@ -1691,7 +1691,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @return {@link #ingredient} (The ingredients of this administrable pharmaceutical product.) + * @return {@link #ingredient} (The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s).) */ public List getIngredient() { if (this.ingredient == null) @@ -1744,7 +1744,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @return {@link #device} (Accompanying device.) + * @return {@link #device} (A device that is integral to the medicinal product, in effect being considered as an "ingredient" of the medicinal product. This is not intended for devices that are just co-packaged.) */ public List getDevice() { if (this.device == null) @@ -1850,7 +1850,7 @@ public class AdministrableProductDefinition extends DomainResource { } /** - * @return {@link #routeOfAdministration} (The path by which the pharmaceutical product is taken into or makes contact with the body.) + * @return {@link #routeOfAdministration} (The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route.) */ public List getRouteOfAdministration() { if (this.routeOfAdministration == null) @@ -1904,29 +1904,29 @@ public class AdministrableProductDefinition extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("identifier", "Identifier", "An identifier for the pharmaceutical medicinal product.", 0, java.lang.Integer.MAX_VALUE, identifier)); - children.add(new Property("subject", "Reference(MedicinalProductDefinition)", "The product that this is a pharmaceutical product of.", 0, java.lang.Integer.MAX_VALUE, subject)); - children.add(new Property("administrableDoseForm", "CodeableConcept", "The administrable dose form, after necessary reconstitution.", 0, 1, administrableDoseForm)); - children.add(new Property("unitOfPresentation", "CodeableConcept", "Todo.", 0, 1, unitOfPresentation)); + children.add(new Property("identifier", "Identifier", "An identifier for the administrable product.", 0, java.lang.Integer.MAX_VALUE, identifier)); + children.add(new Property("subject", "Reference(MedicinalProductDefinition)", "The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product.", 0, java.lang.Integer.MAX_VALUE, subject)); + children.add(new Property("administrableDoseForm", "CodeableConcept", "The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing.", 0, 1, administrableDoseForm)); + children.add(new Property("unitOfPresentation", "CodeableConcept", "The units of presentation for the administrable product, for example 'tablet'.", 0, 1, unitOfPresentation)); children.add(new Property("producedFrom", "Reference(ManufacturedItemDefinition)", "The manufactured item(s) that this administrable product is produced from. Either a single item, or several that are mixed before administration (e.g. a power item and a solution item). Note that these are not raw ingredients.", 0, java.lang.Integer.MAX_VALUE, producedFrom)); - children.add(new Property("ingredient", "Reference(Ingredient)", "The ingredients of this administrable pharmaceutical product.", 0, java.lang.Integer.MAX_VALUE, ingredient)); - children.add(new Property("device", "Reference(DeviceDefinition)", "Accompanying device.", 0, java.lang.Integer.MAX_VALUE, device)); + children.add(new Property("ingredient", "Reference(Ingredient)", "The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s).", 0, java.lang.Integer.MAX_VALUE, ingredient)); + children.add(new Property("device", "Reference(DeviceDefinition)", "A device that is integral to the medicinal product, in effect being considered as an \"ingredient\" of the medicinal product. This is not intended for devices that are just co-packaged.", 0, java.lang.Integer.MAX_VALUE, device)); children.add(new Property("property", "", "Characteristics e.g. a products onset of action.", 0, java.lang.Integer.MAX_VALUE, property)); - children.add(new Property("routeOfAdministration", "", "The path by which the pharmaceutical product is taken into or makes contact with the body.", 0, java.lang.Integer.MAX_VALUE, routeOfAdministration)); + children.add(new Property("routeOfAdministration", "", "The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route.", 0, java.lang.Integer.MAX_VALUE, routeOfAdministration)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "An identifier for the pharmaceutical medicinal product.", 0, java.lang.Integer.MAX_VALUE, identifier); - case -1867885268: /*subject*/ return new Property("subject", "Reference(MedicinalProductDefinition)", "The product that this is a pharmaceutical product of.", 0, java.lang.Integer.MAX_VALUE, subject); - case 1446105202: /*administrableDoseForm*/ return new Property("administrableDoseForm", "CodeableConcept", "The administrable dose form, after necessary reconstitution.", 0, 1, administrableDoseForm); - case -1427765963: /*unitOfPresentation*/ return new Property("unitOfPresentation", "CodeableConcept", "Todo.", 0, 1, unitOfPresentation); + case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "An identifier for the administrable product.", 0, java.lang.Integer.MAX_VALUE, identifier); + case -1867885268: /*subject*/ return new Property("subject", "Reference(MedicinalProductDefinition)", "The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product.", 0, java.lang.Integer.MAX_VALUE, subject); + case 1446105202: /*administrableDoseForm*/ return new Property("administrableDoseForm", "CodeableConcept", "The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing.", 0, 1, administrableDoseForm); + case -1427765963: /*unitOfPresentation*/ return new Property("unitOfPresentation", "CodeableConcept", "The units of presentation for the administrable product, for example 'tablet'.", 0, 1, unitOfPresentation); case 588380494: /*producedFrom*/ return new Property("producedFrom", "Reference(ManufacturedItemDefinition)", "The manufactured item(s) that this administrable product is produced from. Either a single item, or several that are mixed before administration (e.g. a power item and a solution item). Note that these are not raw ingredients.", 0, java.lang.Integer.MAX_VALUE, producedFrom); - case -206409263: /*ingredient*/ return new Property("ingredient", "Reference(Ingredient)", "The ingredients of this administrable pharmaceutical product.", 0, java.lang.Integer.MAX_VALUE, ingredient); - case -1335157162: /*device*/ return new Property("device", "Reference(DeviceDefinition)", "Accompanying device.", 0, java.lang.Integer.MAX_VALUE, device); + case -206409263: /*ingredient*/ return new Property("ingredient", "Reference(Ingredient)", "The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s).", 0, java.lang.Integer.MAX_VALUE, ingredient); + case -1335157162: /*device*/ return new Property("device", "Reference(DeviceDefinition)", "A device that is integral to the medicinal product, in effect being considered as an \"ingredient\" of the medicinal product. This is not intended for devices that are just co-packaged.", 0, java.lang.Integer.MAX_VALUE, device); case -993141291: /*property*/ return new Property("property", "", "Characteristics e.g. a products onset of action.", 0, java.lang.Integer.MAX_VALUE, property); - case 1742084734: /*routeOfAdministration*/ return new Property("routeOfAdministration", "", "The path by which the pharmaceutical product is taken into or makes contact with the body.", 0, java.lang.Integer.MAX_VALUE, routeOfAdministration); + case 1742084734: /*routeOfAdministration*/ return new Property("routeOfAdministration", "", "The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route.", 0, java.lang.Integer.MAX_VALUE, routeOfAdministration); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -2171,17 +2171,17 @@ public class AdministrableProductDefinition extends DomainResource { /** * Search parameter: device *

- * Description: Accompanying device
+ * Description: A device that is integral to the medicinal product, in effect being considered as an "ingredient" of the medicinal product. This is not intended for devices that are just co-packaged
* Type: reference
* Path: AdministrableProductDefinition.device
*

*/ - @SearchParamDefinition(name="device", path="AdministrableProductDefinition.device", description="Accompanying device", type="reference", target={DeviceDefinition.class } ) + @SearchParamDefinition(name="device", path="AdministrableProductDefinition.device", description="A device that is integral to the medicinal product, in effect being considered as an \"ingredient\" of the medicinal product. This is not intended for devices that are just co-packaged", type="reference", target={DeviceDefinition.class } ) public static final String SP_DEVICE = "device"; /** * Fluent Client search parameter constant for device *

- * Description: Accompanying device
+ * Description: A device that is integral to the medicinal product, in effect being considered as an "ingredient" of the medicinal product. This is not intended for devices that are just co-packaged
* Type: reference
* Path: AdministrableProductDefinition.device
*

@@ -2197,17 +2197,17 @@ public class AdministrableProductDefinition extends DomainResource { /** * Search parameter: dose-form *

- * Description: The administrable dose form, after necessary reconstitution
+ * Description: The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing
* Type: token
* Path: AdministrableProductDefinition.administrableDoseForm
*

*/ - @SearchParamDefinition(name="dose-form", path="AdministrableProductDefinition.administrableDoseForm", description="The administrable dose form, after necessary reconstitution", type="token" ) + @SearchParamDefinition(name="dose-form", path="AdministrableProductDefinition.administrableDoseForm", description="The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing", type="token" ) public static final String SP_DOSE_FORM = "dose-form"; /** * Fluent Client search parameter constant for dose-form *

- * Description: The administrable dose form, after necessary reconstitution
+ * Description: The administrable dose form, i.e. the dose form of the final product after necessary reconstitution or processing
* Type: token
* Path: AdministrableProductDefinition.administrableDoseForm
*

@@ -2217,17 +2217,17 @@ public class AdministrableProductDefinition extends DomainResource { /** * Search parameter: identifier *

- * Description: An identifier for the pharmaceutical medicinal product
+ * Description: An identifier for the administrable product
* Type: token
* Path: AdministrableProductDefinition.identifier
*

*/ - @SearchParamDefinition(name="identifier", path="AdministrableProductDefinition.identifier", description="An identifier for the pharmaceutical medicinal product", type="token" ) + @SearchParamDefinition(name="identifier", path="AdministrableProductDefinition.identifier", description="An identifier for the administrable product", type="token" ) public static final String SP_IDENTIFIER = "identifier"; /** * Fluent Client search parameter constant for identifier *

- * Description: An identifier for the pharmaceutical medicinal product
+ * Description: An identifier for the administrable product
* Type: token
* Path: AdministrableProductDefinition.identifier
*

@@ -2237,17 +2237,17 @@ public class AdministrableProductDefinition extends DomainResource { /** * Search parameter: ingredient *

- * Description: The ingredients of this administrable pharmaceutical product
+ * Description: The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s)
* Type: reference
* Path: AdministrableProductDefinition.ingredient
*

*/ - @SearchParamDefinition(name="ingredient", path="AdministrableProductDefinition.ingredient", description="The ingredients of this administrable pharmaceutical product", type="reference", target={Ingredient.class } ) + @SearchParamDefinition(name="ingredient", path="AdministrableProductDefinition.ingredient", description="The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s)", type="reference", target={Ingredient.class } ) public static final String SP_INGREDIENT = "ingredient"; /** * Fluent Client search parameter constant for ingredient *

- * Description: The ingredients of this administrable pharmaceutical product
+ * Description: The ingredients of this administrable medicinal product. Sometimes it may be appropriate to specify these via the associated manufactured item(s)
* Type: reference
* Path: AdministrableProductDefinition.ingredient
*

@@ -2309,17 +2309,17 @@ public class AdministrableProductDefinition extends DomainResource { /** * Search parameter: subject *

- * Description: The product that this is a pharmaceutical product of
+ * Description: The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product
* Type: reference
* Path: AdministrableProductDefinition.subject
*

*/ - @SearchParamDefinition(name="subject", path="AdministrableProductDefinition.subject", description="The product that this is a pharmaceutical product of", type="reference", target={MedicinalProductDefinition.class } ) + @SearchParamDefinition(name="subject", path="AdministrableProductDefinition.subject", description="The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product", type="reference", target={MedicinalProductDefinition.class } ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject *

- * Description: The product that this is a pharmaceutical product of
+ * Description: The medicinal product that this is an administrable form of. This is not a reference to the item(s) that make up this administrable form - it is the whole product
* Type: reference
* Path: AdministrableProductDefinition.subject
*

diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AdverseEvent.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AdverseEvent.java index 5417032b8..c728f52b0 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AdverseEvent.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AdverseEvent.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -82,7 +82,6 @@ public class AdverseEvent extends DomainResource { switch (this) { case ACTUAL: return "actual"; case POTENTIAL: return "potential"; - case NULL: return null; default: return "?"; } } @@ -90,7 +89,6 @@ public class AdverseEvent extends DomainResource { switch (this) { case ACTUAL: return "http://hl7.org/fhir/adverse-event-actuality"; case POTENTIAL: return "http://hl7.org/fhir/adverse-event-actuality"; - case NULL: return null; default: return "?"; } } @@ -98,7 +96,6 @@ public class AdverseEvent extends DomainResource { switch (this) { case ACTUAL: return "The adverse event actually happened regardless of whether anyone was affected or harmed."; case POTENTIAL: return "A potential adverse event."; - case NULL: return null; default: return "?"; } } @@ -106,7 +103,6 @@ public class AdverseEvent extends DomainResource { switch (this) { case ACTUAL: return "Adverse Event"; case POTENTIAL: return "Potential Adverse Event"; - case NULL: return null; default: return "?"; } } @@ -192,7 +188,6 @@ public class AdverseEvent extends DomainResource { case COMPLETED: return "completed"; case ENTEREDINERROR: return "entered-in-error"; case UNKNOWN: return "unknown"; - case NULL: return null; default: return "?"; } } @@ -202,7 +197,6 @@ public class AdverseEvent extends DomainResource { case COMPLETED: return "http://hl7.org/fhir/event-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/event-status"; case UNKNOWN: return "http://hl7.org/fhir/event-status"; - case NULL: return null; default: return "?"; } } @@ -212,7 +206,6 @@ public class AdverseEvent extends DomainResource { case COMPLETED: return "The event has now concluded."; case ENTEREDINERROR: return "This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"stopped\" rather than \"entered-in-error\".)."; case UNKNOWN: return "The authoring/source system does not know which of the status values currently applies for this event. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, but the authoring/source system does not know which."; - case NULL: return null; default: return "?"; } } @@ -222,7 +215,6 @@ public class AdverseEvent extends DomainResource { case COMPLETED: return "Completed"; case ENTEREDINERROR: return "Entered in Error"; case UNKNOWN: return "Unknown"; - case NULL: return null; default: return "?"; } } @@ -1853,10 +1845,10 @@ public class AdverseEvent extends DomainResource { protected DateTimeType recordedDate; /** - * Includes information about the reaction that occurred as a result of exposure to a substance (for example, a drug or a chemical). + * Information about the condition that occurred as a result of the adverse event, such as hives due to the exposure to a substance (for example, a drug or a chemical) or a broken leg as a result of the fall. */ @Child(name = "resultingCondition", type = {Condition.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Effect on the subject due to this event", formalDefinition="Includes information about the reaction that occurred as a result of exposure to a substance (for example, a drug or a chemical)." ) + @Description(shortDefinition="Effect on the subject due to this event", formalDefinition="Information about the condition that occurred as a result of the adverse event, such as hives due to the exposure to a substance (for example, a drug or a chemical) or a broken leg as a result of the fall." ) protected List resultingCondition; /** @@ -1877,10 +1869,10 @@ public class AdverseEvent extends DomainResource { /** * Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal. */ - @Child(name = "outcome", type = {CodeableConcept.class}, order=13, min=0, max=1, modifier=false, summary=true) + @Child(name = "outcome", type = {CodeableConcept.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Type of outcome from the adverse event", formalDefinition="Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/adverse-event-outcome") - protected CodeableConcept outcome; + protected List outcome; /** * Information on who recorded the adverse event. May be the patient or a practitioner. @@ -1938,7 +1930,7 @@ public class AdverseEvent extends DomainResource { @Description(shortDefinition="Research study that the subject is enrolled in", formalDefinition="The research study that the subject is enrolled in." ) protected List study; - private static final long serialVersionUID = -162346876L; + private static final long serialVersionUID = 1528004510L; /** * Constructor @@ -2390,7 +2382,7 @@ public class AdverseEvent extends DomainResource { } /** - * @return {@link #resultingCondition} (Includes information about the reaction that occurred as a result of exposure to a substance (for example, a drug or a chemical).) + * @return {@link #resultingCondition} (Information about the condition that occurred as a result of the adverse event, such as hives due to the exposure to a substance (for example, a drug or a chemical) or a broken leg as a result of the fall.) */ public List getResultingCondition() { if (this.resultingCondition == null) @@ -2493,25 +2485,54 @@ public class AdverseEvent extends DomainResource { /** * @return {@link #outcome} (Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal.) */ - public CodeableConcept getOutcome() { + public List getOutcome() { if (this.outcome == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create AdverseEvent.outcome"); - else if (Configuration.doAutoCreate()) - this.outcome = new CodeableConcept(); // cc + this.outcome = new ArrayList(); return this.outcome; } + /** + * @return Returns a reference to this for easy method chaining + */ + public AdverseEvent setOutcome(List theOutcome) { + this.outcome = theOutcome; + return this; + } + public boolean hasOutcome() { - return this.outcome != null && !this.outcome.isEmpty(); + if (this.outcome == null) + return false; + for (CodeableConcept item : this.outcome) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addOutcome() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.outcome == null) + this.outcome = new ArrayList(); + this.outcome.add(t); + return t; + } + + public AdverseEvent addOutcome(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.outcome == null) + this.outcome = new ArrayList(); + this.outcome.add(t); + return this; } /** - * @param value {@link #outcome} (Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal.) + * @return The first repetition of repeating field {@link #outcome}, creating it if it does not already exist {3} */ - public AdverseEvent setOutcome(CodeableConcept value) { - this.outcome = value; - return this; + public CodeableConcept getOutcomeFirstRep() { + if (getOutcome().isEmpty()) { + addOutcome(); + } + return getOutcome().get(0); } /** @@ -2921,10 +2942,10 @@ public class AdverseEvent extends DomainResource { children.add(new Property("occurrence[x]", "dateTime|Period|Timing", "The date (and perhaps time) when the adverse event occurred.", 0, 1, occurrence)); children.add(new Property("detected", "dateTime", "Estimated or actual date the AdverseEvent began, in the opinion of the reporter.", 0, 1, detected)); children.add(new Property("recordedDate", "dateTime", "The date on which the existence of the AdverseEvent was first recorded.", 0, 1, recordedDate)); - children.add(new Property("resultingCondition", "Reference(Condition)", "Includes information about the reaction that occurred as a result of exposure to a substance (for example, a drug or a chemical).", 0, java.lang.Integer.MAX_VALUE, resultingCondition)); + children.add(new Property("resultingCondition", "Reference(Condition)", "Information about the condition that occurred as a result of the adverse event, such as hives due to the exposure to a substance (for example, a drug or a chemical) or a broken leg as a result of the fall.", 0, java.lang.Integer.MAX_VALUE, resultingCondition)); children.add(new Property("location", "Reference(Location)", "The information about where the adverse event occurred.", 0, 1, location)); children.add(new Property("seriousness", "CodeableConcept", "Assessment whether this event, or averted event, was of clinical importance.", 0, 1, seriousness)); - children.add(new Property("outcome", "CodeableConcept", "Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal.", 0, 1, outcome)); + children.add(new Property("outcome", "CodeableConcept", "Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal.", 0, java.lang.Integer.MAX_VALUE, outcome)); children.add(new Property("recorder", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson)", "Information on who recorded the adverse event. May be the patient or a practitioner.", 0, 1, recorder)); children.add(new Property("participant", "", "Indicates who or what participated in the adverse event and how they were involved.", 0, java.lang.Integer.MAX_VALUE, participant)); children.add(new Property("suspectEntity", "", "Describes the entity that is suspected to have caused the adverse event.", 0, java.lang.Integer.MAX_VALUE, suspectEntity)); @@ -2952,10 +2973,10 @@ public class AdverseEvent extends DomainResource { case 1515218299: /*occurrenceTiming*/ return new Property("occurrence[x]", "Timing", "The date (and perhaps time) when the adverse event occurred.", 0, 1, occurrence); case 1048254082: /*detected*/ return new Property("detected", "dateTime", "Estimated or actual date the AdverseEvent began, in the opinion of the reporter.", 0, 1, detected); case -1952893826: /*recordedDate*/ return new Property("recordedDate", "dateTime", "The date on which the existence of the AdverseEvent was first recorded.", 0, 1, recordedDate); - case -830261258: /*resultingCondition*/ return new Property("resultingCondition", "Reference(Condition)", "Includes information about the reaction that occurred as a result of exposure to a substance (for example, a drug or a chemical).", 0, java.lang.Integer.MAX_VALUE, resultingCondition); + case -830261258: /*resultingCondition*/ return new Property("resultingCondition", "Reference(Condition)", "Information about the condition that occurred as a result of the adverse event, such as hives due to the exposure to a substance (for example, a drug or a chemical) or a broken leg as a result of the fall.", 0, java.lang.Integer.MAX_VALUE, resultingCondition); case 1901043637: /*location*/ return new Property("location", "Reference(Location)", "The information about where the adverse event occurred.", 0, 1, location); case -1551003909: /*seriousness*/ return new Property("seriousness", "CodeableConcept", "Assessment whether this event, or averted event, was of clinical importance.", 0, 1, seriousness); - case -1106507950: /*outcome*/ return new Property("outcome", "CodeableConcept", "Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal.", 0, 1, outcome); + case -1106507950: /*outcome*/ return new Property("outcome", "CodeableConcept", "Describes the type of outcome from the adverse event, such as resolved, recovering, ongoing, resolved-with-sequelae, or fatal.", 0, java.lang.Integer.MAX_VALUE, outcome); case -799233858: /*recorder*/ return new Property("recorder", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson)", "Information on who recorded the adverse event. May be the patient or a practitioner.", 0, 1, recorder); case 767422259: /*participant*/ return new Property("participant", "", "Indicates who or what participated in the adverse event and how they were involved.", 0, java.lang.Integer.MAX_VALUE, participant); case -1957422662: /*suspectEntity*/ return new Property("suspectEntity", "", "Describes the entity that is suspected to have caused the adverse event.", 0, java.lang.Integer.MAX_VALUE, suspectEntity); @@ -2985,7 +3006,7 @@ public class AdverseEvent extends DomainResource { case -830261258: /*resultingCondition*/ return this.resultingCondition == null ? new Base[0] : this.resultingCondition.toArray(new Base[this.resultingCondition.size()]); // Reference case 1901043637: /*location*/ return this.location == null ? new Base[0] : new Base[] {this.location}; // Reference case -1551003909: /*seriousness*/ return this.seriousness == null ? new Base[0] : new Base[] {this.seriousness}; // CodeableConcept - case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : new Base[] {this.outcome}; // CodeableConcept + case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : this.outcome.toArray(new Base[this.outcome.size()]); // CodeableConcept case -799233858: /*recorder*/ return this.recorder == null ? new Base[0] : new Base[] {this.recorder}; // Reference case 767422259: /*participant*/ return this.participant == null ? new Base[0] : this.participant.toArray(new Base[this.participant.size()]); // AdverseEventParticipantComponent case -1957422662: /*suspectEntity*/ return this.suspectEntity == null ? new Base[0] : this.suspectEntity.toArray(new Base[this.suspectEntity.size()]); // AdverseEventSuspectEntityComponent @@ -3044,7 +3065,7 @@ public class AdverseEvent extends DomainResource { this.seriousness = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; case -1106507950: // outcome - this.outcome = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.getOutcome().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept return value; case -799233858: // recorder this.recorder = TypeConvertor.castToReference(value); // Reference @@ -3106,7 +3127,7 @@ public class AdverseEvent extends DomainResource { } else if (name.equals("seriousness")) { this.seriousness = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("outcome")) { - this.outcome = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.getOutcome().add(TypeConvertor.castToCodeableConcept(value)); } else if (name.equals("recorder")) { this.recorder = TypeConvertor.castToReference(value); // Reference } else if (name.equals("participant")) { @@ -3145,7 +3166,7 @@ public class AdverseEvent extends DomainResource { case -830261258: return addResultingCondition(); case 1901043637: return getLocation(); case -1551003909: return getSeriousness(); - case -1106507950: return getOutcome(); + case -1106507950: return addOutcome(); case -799233858: return getRecorder(); case 767422259: return addParticipant(); case -1957422662: return addSuspectEntity(); @@ -3245,8 +3266,7 @@ public class AdverseEvent extends DomainResource { return this.seriousness; } else if (name.equals("outcome")) { - this.outcome = new CodeableConcept(); - return this.outcome; + return addOutcome(); } else if (name.equals("recorder")) { this.recorder = new Reference(); @@ -3315,7 +3335,11 @@ public class AdverseEvent extends DomainResource { }; dst.location = location == null ? null : location.copy(); dst.seriousness = seriousness == null ? null : seriousness.copy(); - dst.outcome = outcome == null ? null : outcome.copy(); + if (outcome != null) { + dst.outcome = new ArrayList(); + for (CodeableConcept i : outcome) + dst.outcome.add(i.copy()); + }; dst.recorder = recorder == null ? null : recorder.copy(); if (participant != null) { dst.participant = new ArrayList(); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Age.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Age.java index 5538edbb2..7c2aee0b4 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Age.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Age.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AllergyIntolerance.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AllergyIntolerance.java index 83ff7ef00..8b5488bcf 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AllergyIntolerance.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AllergyIntolerance.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class AllergyIntolerance extends DomainResource { case MEDICATION: return "medication"; case ENVIRONMENT: return "environment"; case BIOLOGIC: return "biologic"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class AllergyIntolerance extends DomainResource { case MEDICATION: return "http://hl7.org/fhir/allergy-intolerance-category"; case ENVIRONMENT: return "http://hl7.org/fhir/allergy-intolerance-category"; case BIOLOGIC: return "http://hl7.org/fhir/allergy-intolerance-category"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class AllergyIntolerance extends DomainResource { case MEDICATION: return "Substances administered to achieve a physiological effect."; case ENVIRONMENT: return "Any substances that are encountered in the environment, including any substance not already classified as food, medication, or biologic."; case BIOLOGIC: return "A preparation that is synthesized from living organisms or their products, especially a human or animal protein, such as a hormone or antitoxin, that is used as a diagnostic, preventive, or therapeutic agent. Examples of biologic medications include: vaccines; allergenic extracts, which are used for both diagnosis and treatment (for example, allergy shots); gene therapies; cellular therapies. There are other biologic products, such as tissues, which are not typically associated with allergies."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class AllergyIntolerance extends DomainResource { case MEDICATION: return "Medication"; case ENVIRONMENT: return "Environment"; case BIOLOGIC: return "Biologic"; - case NULL: return null; default: return "?"; } } @@ -217,7 +213,6 @@ public class AllergyIntolerance extends DomainResource { case LOW: return "low"; case HIGH: return "high"; case UNABLETOASSESS: return "unable-to-assess"; - case NULL: return null; default: return "?"; } } @@ -226,7 +221,6 @@ public class AllergyIntolerance extends DomainResource { case LOW: return "http://hl7.org/fhir/allergy-intolerance-criticality"; case HIGH: return "http://hl7.org/fhir/allergy-intolerance-criticality"; case UNABLETOASSESS: return "http://hl7.org/fhir/allergy-intolerance-criticality"; - case NULL: return null; default: return "?"; } } @@ -235,7 +229,6 @@ public class AllergyIntolerance extends DomainResource { case LOW: return "Worst case result of a future exposure is not assessed to be life-threatening or having high potential for organ system failure."; case HIGH: return "Worst case result of a future exposure is assessed to be life-threatening or having high potential for organ system failure."; case UNABLETOASSESS: return "Unable to assess the worst case result of a future exposure."; - case NULL: return null; default: return "?"; } } @@ -244,7 +237,6 @@ public class AllergyIntolerance extends DomainResource { case LOW: return "Low Risk"; case HIGH: return "High Risk"; case UNABLETOASSESS: return "Unable to Assess Risk"; - case NULL: return null; default: return "?"; } } @@ -329,7 +321,6 @@ public class AllergyIntolerance extends DomainResource { case MILD: return "mild"; case MODERATE: return "moderate"; case SEVERE: return "severe"; - case NULL: return null; default: return "?"; } } @@ -338,7 +329,6 @@ public class AllergyIntolerance extends DomainResource { case MILD: return "http://hl7.org/fhir/reaction-event-severity"; case MODERATE: return "http://hl7.org/fhir/reaction-event-severity"; case SEVERE: return "http://hl7.org/fhir/reaction-event-severity"; - case NULL: return null; default: return "?"; } } @@ -347,7 +337,6 @@ public class AllergyIntolerance extends DomainResource { case MILD: return "Causes mild physiological effects."; case MODERATE: return "Causes moderate physiological effects."; case SEVERE: return "Causes severe physiological effects."; - case NULL: return null; default: return "?"; } } @@ -356,7 +345,6 @@ public class AllergyIntolerance extends DomainResource { case MILD: return "Mild"; case MODERATE: return "Moderate"; case SEVERE: return "Severe"; - case NULL: return null; default: return "?"; } } @@ -434,7 +422,6 @@ public class AllergyIntolerance extends DomainResource { switch (this) { case ALLERGY: return "allergy"; case INTOLERANCE: return "intolerance"; - case NULL: return null; default: return "?"; } } @@ -442,7 +429,6 @@ public class AllergyIntolerance extends DomainResource { switch (this) { case ALLERGY: return "http://hl7.org/fhir/allergy-intolerance-type"; case INTOLERANCE: return "http://hl7.org/fhir/allergy-intolerance-type"; - case NULL: return null; default: return "?"; } } @@ -450,7 +436,6 @@ public class AllergyIntolerance extends DomainResource { switch (this) { case ALLERGY: return "A propensity for hypersensitive reaction(s) to a substance. These reactions are most typically type I hypersensitivity, plus other \"allergy-like\" reactions, including pseudoallergy."; case INTOLERANCE: return "A propensity for adverse reactions to a substance that is not judged to be allergic or \"allergy-like\". These reactions are typically (but not necessarily) non-immune. They are to some degree idiosyncratic and/or patient-specific (i.e. are not a reaction that is expected to occur with most or all patients given similar circumstances)."; - case NULL: return null; default: return "?"; } } @@ -458,7 +443,6 @@ public class AllergyIntolerance extends DomainResource { switch (this) { case ALLERGY: return "Allergy"; case INTOLERANCE: return "Intolerance"; - case NULL: return null; default: return "?"; } } @@ -514,10 +498,10 @@ public class AllergyIntolerance extends DomainResource { /** * Clinical symptoms and/or signs that are observed or associated with the adverse reaction event. */ - @Child(name = "manifestation", type = {CodeableConcept.class}, order=2, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "manifestation", type = {CodeableReference.class}, order=2, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Clinical symptoms/signs associated with the Event", formalDefinition="Clinical symptoms and/or signs that are observed or associated with the adverse reaction event." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/clinical-findings") - protected List manifestation; + protected List manifestation; /** * Text description about the reaction as a whole, including details of the manifestation if required. @@ -556,7 +540,7 @@ public class AllergyIntolerance extends DomainResource { @Description(shortDefinition="Text about event not captured in other fields", formalDefinition="Additional text about the adverse reaction event not captured in other fields." ) protected List note; - private static final long serialVersionUID = -752118516L; + private static final long serialVersionUID = 1007789961L; /** * Constructor @@ -568,7 +552,7 @@ public class AllergyIntolerance extends DomainResource { /** * Constructor */ - public AllergyIntoleranceReactionComponent(CodeableConcept manifestation) { + public AllergyIntoleranceReactionComponent(CodeableReference manifestation) { super(); this.addManifestation(manifestation); } @@ -600,16 +584,16 @@ public class AllergyIntolerance extends DomainResource { /** * @return {@link #manifestation} (Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.) */ - public List getManifestation() { + public List getManifestation() { if (this.manifestation == null) - this.manifestation = new ArrayList(); + this.manifestation = new ArrayList(); return this.manifestation; } /** * @return Returns a reference to this for easy method chaining */ - public AllergyIntoleranceReactionComponent setManifestation(List theManifestation) { + public AllergyIntoleranceReactionComponent setManifestation(List theManifestation) { this.manifestation = theManifestation; return this; } @@ -617,25 +601,25 @@ public class AllergyIntolerance extends DomainResource { public boolean hasManifestation() { if (this.manifestation == null) return false; - for (CodeableConcept item : this.manifestation) + for (CodeableReference item : this.manifestation) if (!item.isEmpty()) return true; return false; } - public CodeableConcept addManifestation() { //3 - CodeableConcept t = new CodeableConcept(); + public CodeableReference addManifestation() { //3 + CodeableReference t = new CodeableReference(); if (this.manifestation == null) - this.manifestation = new ArrayList(); + this.manifestation = new ArrayList(); this.manifestation.add(t); return t; } - public AllergyIntoleranceReactionComponent addManifestation(CodeableConcept t) { //3 + public AllergyIntoleranceReactionComponent addManifestation(CodeableReference t) { //3 if (t == null) return this; if (this.manifestation == null) - this.manifestation = new ArrayList(); + this.manifestation = new ArrayList(); this.manifestation.add(t); return this; } @@ -643,7 +627,7 @@ public class AllergyIntolerance extends DomainResource { /** * @return The first repetition of repeating field {@link #manifestation}, creating it if it does not already exist {3} */ - public CodeableConcept getManifestationFirstRep() { + public CodeableReference getManifestationFirstRep() { if (getManifestation().isEmpty()) { addManifestation(); } @@ -877,7 +861,7 @@ public class AllergyIntolerance extends DomainResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("substance", "CodeableConcept", "Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different from the substance identified as the cause of the risk, but it must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite product that includes the identified substance. It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'. If a receiving system is unable to confirm that AllergyIntolerance.reaction.substance falls within the semantic scope of AllergyIntolerance.code, then the receiving system should ignore AllergyIntolerance.reaction.substance.", 0, 1, substance)); - children.add(new Property("manifestation", "CodeableConcept", "Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.", 0, java.lang.Integer.MAX_VALUE, manifestation)); + children.add(new Property("manifestation", "CodeableReference(Observation)", "Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.", 0, java.lang.Integer.MAX_VALUE, manifestation)); children.add(new Property("description", "string", "Text description about the reaction as a whole, including details of the manifestation if required.", 0, 1, description)); children.add(new Property("onset", "dateTime", "Record of the date and/or time of the onset of the Reaction.", 0, 1, onset)); children.add(new Property("severity", "code", "Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.", 0, 1, severity)); @@ -889,7 +873,7 @@ public class AllergyIntolerance extends DomainResource { public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case 530040176: /*substance*/ return new Property("substance", "CodeableConcept", "Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different from the substance identified as the cause of the risk, but it must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite product that includes the identified substance. It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'. If a receiving system is unable to confirm that AllergyIntolerance.reaction.substance falls within the semantic scope of AllergyIntolerance.code, then the receiving system should ignore AllergyIntolerance.reaction.substance.", 0, 1, substance); - case 1115984422: /*manifestation*/ return new Property("manifestation", "CodeableConcept", "Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.", 0, java.lang.Integer.MAX_VALUE, manifestation); + case 1115984422: /*manifestation*/ return new Property("manifestation", "CodeableReference(Observation)", "Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.", 0, java.lang.Integer.MAX_VALUE, manifestation); case -1724546052: /*description*/ return new Property("description", "string", "Text description about the reaction as a whole, including details of the manifestation if required.", 0, 1, description); case 105901603: /*onset*/ return new Property("onset", "dateTime", "Record of the date and/or time of the onset of the Reaction.", 0, 1, onset); case 1478300413: /*severity*/ return new Property("severity", "code", "Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.", 0, 1, severity); @@ -904,7 +888,7 @@ public class AllergyIntolerance extends DomainResource { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 530040176: /*substance*/ return this.substance == null ? new Base[0] : new Base[] {this.substance}; // CodeableConcept - case 1115984422: /*manifestation*/ return this.manifestation == null ? new Base[0] : this.manifestation.toArray(new Base[this.manifestation.size()]); // CodeableConcept + case 1115984422: /*manifestation*/ return this.manifestation == null ? new Base[0] : this.manifestation.toArray(new Base[this.manifestation.size()]); // CodeableReference case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType case 105901603: /*onset*/ return this.onset == null ? new Base[0] : new Base[] {this.onset}; // DateTimeType case 1478300413: /*severity*/ return this.severity == null ? new Base[0] : new Base[] {this.severity}; // Enumeration @@ -922,7 +906,7 @@ public class AllergyIntolerance extends DomainResource { this.substance = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; case 1115984422: // manifestation - this.getManifestation().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + this.getManifestation().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference return value; case -1724546052: // description this.description = TypeConvertor.castToString(value); // StringType @@ -950,7 +934,7 @@ public class AllergyIntolerance extends DomainResource { if (name.equals("substance")) { this.substance = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("manifestation")) { - this.getManifestation().add(TypeConvertor.castToCodeableConcept(value)); + this.getManifestation().add(TypeConvertor.castToCodeableReference(value)); } else if (name.equals("description")) { this.description = TypeConvertor.castToString(value); // StringType } else if (name.equals("onset")) { @@ -986,7 +970,7 @@ public class AllergyIntolerance extends DomainResource { public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 530040176: /*substance*/ return new String[] {"CodeableConcept"}; - case 1115984422: /*manifestation*/ return new String[] {"CodeableConcept"}; + case 1115984422: /*manifestation*/ return new String[] {"CodeableReference"}; case -1724546052: /*description*/ return new String[] {"string"}; case 105901603: /*onset*/ return new String[] {"dateTime"}; case 1478300413: /*severity*/ return new String[] {"code"}; @@ -1036,8 +1020,8 @@ public class AllergyIntolerance extends DomainResource { super.copyValues(dst); dst.substance = substance == null ? null : substance.copy(); if (manifestation != null) { - dst.manifestation = new ArrayList(); - for (CodeableConcept i : manifestation) + dst.manifestation = new ArrayList(); + for (CodeableReference i : manifestation) dst.manifestation.add(i.copy()); }; dst.description = description == null ? null : description.copy(); @@ -1102,10 +1086,10 @@ public class AllergyIntolerance extends DomainResource { protected CodeableConcept clinicalStatus; /** - * Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product). + * Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product). The verification status pertains to the allergy or intolerance, itself, not to any specific AllergyIntolerance attribute. */ @Child(name = "verificationStatus", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=true, summary=true) - @Description(shortDefinition="unconfirmed | presumed | confirmed | refuted | entered-in-error", formalDefinition="Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product)." ) + @Description(shortDefinition="unconfirmed | presumed | confirmed | refuted | entered-in-error", formalDefinition="Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product). The verification status pertains to the allergy or intolerance, itself, not to any specific AllergyIntolerance attribute." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/allergyintolerance-verification") protected CodeableConcept verificationStatus; @@ -1299,7 +1283,7 @@ public class AllergyIntolerance extends DomainResource { } /** - * @return {@link #verificationStatus} (Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).) + * @return {@link #verificationStatus} (Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product). The verification status pertains to the allergy or intolerance, itself, not to any specific AllergyIntolerance attribute.) */ public CodeableConcept getVerificationStatus() { if (this.verificationStatus == null) @@ -1315,7 +1299,7 @@ public class AllergyIntolerance extends DomainResource { } /** - * @param value {@link #verificationStatus} (Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).) + * @param value {@link #verificationStatus} (Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product). The verification status pertains to the allergy or intolerance, itself, not to any specific AllergyIntolerance attribute.) */ public AllergyIntolerance setVerificationStatus(CodeableConcept value) { this.verificationStatus = value; @@ -1905,7 +1889,7 @@ public class AllergyIntolerance extends DomainResource { super.listChildren(children); children.add(new Property("identifier", "Identifier", "Business identifiers assigned to this AllergyIntolerance by the performer or other systems which remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier)); children.add(new Property("clinicalStatus", "CodeableConcept", "The clinical status of the allergy or intolerance.", 0, 1, clinicalStatus)); - children.add(new Property("verificationStatus", "CodeableConcept", "Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).", 0, 1, verificationStatus)); + children.add(new Property("verificationStatus", "CodeableConcept", "Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product). The verification status pertains to the allergy or intolerance, itself, not to any specific AllergyIntolerance attribute.", 0, 1, verificationStatus)); children.add(new Property("type", "code", "Identification of the underlying physiological mechanism for the reaction risk.", 0, 1, type)); children.add(new Property("category", "code", "Category of the identified substance.", 0, java.lang.Integer.MAX_VALUE, category)); children.add(new Property("criticality", "code", "Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance.", 0, 1, criticality)); @@ -1926,7 +1910,7 @@ public class AllergyIntolerance extends DomainResource { switch (_hash) { case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifiers assigned to this AllergyIntolerance by the performer or other systems which remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier); case -462853915: /*clinicalStatus*/ return new Property("clinicalStatus", "CodeableConcept", "The clinical status of the allergy or intolerance.", 0, 1, clinicalStatus); - case -842509843: /*verificationStatus*/ return new Property("verificationStatus", "CodeableConcept", "Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).", 0, 1, verificationStatus); + case -842509843: /*verificationStatus*/ return new Property("verificationStatus", "CodeableConcept", "Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product). The verification status pertains to the allergy or intolerance, itself, not to any specific AllergyIntolerance attribute.", 0, 1, verificationStatus); case 3575610: /*type*/ return new Property("type", "code", "Identification of the underlying physiological mechanism for the reaction risk.", 0, 1, type); case 50511102: /*category*/ return new Property("category", "code", "Category of the identified substance.", 0, java.lang.Integer.MAX_VALUE, category); case -1608054609: /*criticality*/ return new Property("criticality", "code", "Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance.", 0, 1, criticality); @@ -2359,152 +2343,6 @@ public class AllergyIntolerance extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CLINICAL_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CLINICAL_STATUS); - /** - * Search parameter: criticality - *

- * Description: low | high | unable-to-assess
- * Type: token
- * Path: AllergyIntolerance.criticality
- *

- */ - @SearchParamDefinition(name="criticality", path="AllergyIntolerance.criticality", description="low | high | unable-to-assess", type="token" ) - public static final String SP_CRITICALITY = "criticality"; - /** - * Fluent Client search parameter constant for criticality - *

- * Description: low | high | unable-to-assess
- * Type: token
- * Path: AllergyIntolerance.criticality
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CRITICALITY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CRITICALITY); - - /** - * Search parameter: last-date - *

- * Description: Date(/time) of last known occurrence of a reaction
- * Type: date
- * Path: AllergyIntolerance.lastOccurrence
- *

- */ - @SearchParamDefinition(name="last-date", path="AllergyIntolerance.lastOccurrence", description="Date(/time) of last known occurrence of a reaction", type="date" ) - public static final String SP_LAST_DATE = "last-date"; - /** - * Fluent Client search parameter constant for last-date - *

- * Description: Date(/time) of last known occurrence of a reaction
- * Type: date
- * Path: AllergyIntolerance.lastOccurrence
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam LAST_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_LAST_DATE); - - /** - * Search parameter: manifestation - *

- * Description: Clinical symptoms/signs associated with the Event
- * Type: token
- * Path: AllergyIntolerance.reaction.manifestation
- *

- */ - @SearchParamDefinition(name="manifestation", path="AllergyIntolerance.reaction.manifestation", description="Clinical symptoms/signs associated with the Event", type="token" ) - public static final String SP_MANIFESTATION = "manifestation"; - /** - * Fluent Client search parameter constant for manifestation - *

- * Description: Clinical symptoms/signs associated with the Event
- * Type: token
- * Path: AllergyIntolerance.reaction.manifestation
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam MANIFESTATION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_MANIFESTATION); - - /** - * Search parameter: recorder - *

- * Description: Who recorded the sensitivity
- * Type: reference
- * Path: AllergyIntolerance.recorder
- *

- */ - @SearchParamDefinition(name="recorder", path="AllergyIntolerance.recorder", description="Who recorded the sensitivity", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) - public static final String SP_RECORDER = "recorder"; - /** - * Fluent Client search parameter constant for recorder - *

- * Description: Who recorded the sensitivity
- * Type: reference
- * Path: AllergyIntolerance.recorder
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RECORDER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RECORDER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "AllergyIntolerance:recorder". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_RECORDER = new ca.uhn.fhir.model.api.Include("AllergyIntolerance:recorder").toLocked(); - - /** - * Search parameter: route - *

- * Description: How the subject was exposed to the substance
- * Type: token
- * Path: AllergyIntolerance.reaction.exposureRoute
- *

- */ - @SearchParamDefinition(name="route", path="AllergyIntolerance.reaction.exposureRoute", description="How the subject was exposed to the substance", type="token" ) - public static final String SP_ROUTE = "route"; - /** - * Fluent Client search parameter constant for route - *

- * Description: How the subject was exposed to the substance
- * Type: token
- * Path: AllergyIntolerance.reaction.exposureRoute
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam ROUTE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ROUTE); - - /** - * Search parameter: severity - *

- * Description: mild | moderate | severe (of event as a whole)
- * Type: token
- * Path: AllergyIntolerance.reaction.severity
- *

- */ - @SearchParamDefinition(name="severity", path="AllergyIntolerance.reaction.severity", description="mild | moderate | severe (of event as a whole)", type="token" ) - public static final String SP_SEVERITY = "severity"; - /** - * Fluent Client search parameter constant for severity - *

- * Description: mild | moderate | severe (of event as a whole)
- * Type: token
- * Path: AllergyIntolerance.reaction.severity
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam SEVERITY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SEVERITY); - - /** - * Search parameter: verification-status - *

- * Description: unconfirmed | presumed | confirmed | refuted | entered-in-error
- * Type: token
- * Path: AllergyIntolerance.verificationStatus
- *

- */ - @SearchParamDefinition(name="verification-status", path="AllergyIntolerance.verificationStatus", description="unconfirmed | presumed | confirmed | refuted | entered-in-error", type="token" ) - public static final String SP_VERIFICATION_STATUS = "verification-status"; - /** - * Fluent Client search parameter constant for verification-status - *

- * Description: unconfirmed | presumed | confirmed | refuted | entered-in-error
- * Type: token
- * Path: AllergyIntolerance.verificationStatus
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERIFICATION_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERIFICATION_STATUS); - /** * Search parameter: code *

@@ -2557,6 +2395,26 @@ public class AllergyIntolerance extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + /** + * Search parameter: criticality + *

+ * Description: low | high | unable-to-assess
+ * Type: token
+ * Path: AllergyIntolerance.criticality
+ *

+ */ + @SearchParamDefinition(name="criticality", path="AllergyIntolerance.criticality", description="low | high | unable-to-assess", type="token" ) + public static final String SP_CRITICALITY = "criticality"; + /** + * Fluent Client search parameter constant for criticality + *

+ * Description: low | high | unable-to-assess
+ * Type: token
+ * Path: AllergyIntolerance.criticality
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CRITICALITY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CRITICALITY); + /** * Search parameter: date *

@@ -2635,7 +2493,7 @@ public class AllergyIntolerance extends DomainResource { * [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare * [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier * [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID * [Immunization](immunization.html): Business identifier * [List](list.html): Business identifier * [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier @@ -2655,7 +2513,7 @@ public class AllergyIntolerance extends DomainResource { * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
*

*/ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) public static final String SP_IDENTIFIER = "identifier"; /** * Fluent Client search parameter constant for identifier @@ -2677,7 +2535,7 @@ public class AllergyIntolerance extends DomainResource { * [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare * [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier * [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID * [Immunization](immunization.html): Business identifier * [List](list.html): Business identifier * [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier @@ -2699,6 +2557,72 @@ public class AllergyIntolerance extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + /** + * Search parameter: last-date + *

+ * Description: Date(/time) of last known occurrence of a reaction
+ * Type: date
+ * Path: AllergyIntolerance.lastOccurrence
+ *

+ */ + @SearchParamDefinition(name="last-date", path="AllergyIntolerance.lastOccurrence", description="Date(/time) of last known occurrence of a reaction", type="date" ) + public static final String SP_LAST_DATE = "last-date"; + /** + * Fluent Client search parameter constant for last-date + *

+ * Description: Date(/time) of last known occurrence of a reaction
+ * Type: date
+ * Path: AllergyIntolerance.lastOccurrence
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam LAST_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_LAST_DATE); + + /** + * Search parameter: manifestation-code + *

+ * Description: Clinical symptoms/signs associated with the Event
+ * Type: token
+ * Path: AllergyIntolerance.reaction.manifestation.concept
+ *

+ */ + @SearchParamDefinition(name="manifestation-code", path="AllergyIntolerance.reaction.manifestation.concept", description="Clinical symptoms/signs associated with the Event", type="token" ) + public static final String SP_MANIFESTATION_CODE = "manifestation-code"; + /** + * Fluent Client search parameter constant for manifestation-code + *

+ * Description: Clinical symptoms/signs associated with the Event
+ * Type: token
+ * Path: AllergyIntolerance.reaction.manifestation.concept
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam MANIFESTATION_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_MANIFESTATION_CODE); + + /** + * Search parameter: manifestation-reference + *

+ * Description: Clinical symptoms/signs associated with the Event
+ * Type: reference
+ * Path: AllergyIntolerance.reaction.manifestation.reference
+ *

+ */ + @SearchParamDefinition(name="manifestation-reference", path="AllergyIntolerance.reaction.manifestation.reference", description="Clinical symptoms/signs associated with the Event", type="reference" ) + public static final String SP_MANIFESTATION_REFERENCE = "manifestation-reference"; + /** + * Fluent Client search parameter constant for manifestation-reference + *

+ * Description: Clinical symptoms/signs associated with the Event
+ * Type: reference
+ * Path: AllergyIntolerance.reaction.manifestation.reference
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MANIFESTATION_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_MANIFESTATION_REFERENCE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "AllergyIntolerance:manifestation-reference". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_MANIFESTATION_REFERENCE = new ca.uhn.fhir.model.api.Include("AllergyIntolerance:manifestation-reference").toLocked(); + /** * Search parameter: patient *

@@ -2713,7 +2637,7 @@ public class AllergyIntolerance extends DomainResource { * [Consent](consent.html): Who the consent applies to * [DetectedIssue](detectedissue.html): Associated patient * [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient +* [DeviceUsage](deviceusage.html): Search by subject - a patient * [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient * [DocumentManifest](documentmanifest.html): The subject of the set of documents * [DocumentReference](documentreference.html): Who/what is the subject of the document @@ -2738,10 +2662,10 @@ public class AllergyIntolerance extends DomainResource { * [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
* Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
*

*/ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -2757,7 +2681,7 @@ public class AllergyIntolerance extends DomainResource { * [Consent](consent.html): Who the consent applies to * [DetectedIssue](detectedissue.html): Associated patient * [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient +* [DeviceUsage](deviceusage.html): Search by subject - a patient * [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient * [DocumentManifest](documentmanifest.html): The subject of the set of documents * [DocumentReference](documentreference.html): Who/what is the subject of the document @@ -2782,7 +2706,7 @@ public class AllergyIntolerance extends DomainResource { * [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
* Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); @@ -2793,6 +2717,72 @@ public class AllergyIntolerance extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("AllergyIntolerance:patient").toLocked(); + /** + * Search parameter: recorder + *

+ * Description: Who recorded the sensitivity
+ * Type: reference
+ * Path: AllergyIntolerance.recorder
+ *

+ */ + @SearchParamDefinition(name="recorder", path="AllergyIntolerance.recorder", description="Who recorded the sensitivity", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) + public static final String SP_RECORDER = "recorder"; + /** + * Fluent Client search parameter constant for recorder + *

+ * Description: Who recorded the sensitivity
+ * Type: reference
+ * Path: AllergyIntolerance.recorder
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RECORDER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RECORDER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "AllergyIntolerance:recorder". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_RECORDER = new ca.uhn.fhir.model.api.Include("AllergyIntolerance:recorder").toLocked(); + + /** + * Search parameter: route + *

+ * Description: How the subject was exposed to the substance
+ * Type: token
+ * Path: AllergyIntolerance.reaction.exposureRoute
+ *

+ */ + @SearchParamDefinition(name="route", path="AllergyIntolerance.reaction.exposureRoute", description="How the subject was exposed to the substance", type="token" ) + public static final String SP_ROUTE = "route"; + /** + * Fluent Client search parameter constant for route + *

+ * Description: How the subject was exposed to the substance
+ * Type: token
+ * Path: AllergyIntolerance.reaction.exposureRoute
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam ROUTE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ROUTE); + + /** + * Search parameter: severity + *

+ * Description: mild | moderate | severe (of event as a whole)
+ * Type: token
+ * Path: AllergyIntolerance.reaction.severity
+ *

+ */ + @SearchParamDefinition(name="severity", path="AllergyIntolerance.reaction.severity", description="mild | moderate | severe (of event as a whole)", type="token" ) + public static final String SP_SEVERITY = "severity"; + /** + * Fluent Client search parameter constant for severity + *

+ * Description: mild | moderate | severe (of event as a whole)
+ * Type: token
+ * Path: AllergyIntolerance.reaction.severity
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam SEVERITY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SEVERITY); + /** * Search parameter: type *

@@ -2829,6 +2819,26 @@ public class AllergyIntolerance extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); + /** + * Search parameter: verification-status + *

+ * Description: unconfirmed | presumed | confirmed | refuted | entered-in-error
+ * Type: token
+ * Path: AllergyIntolerance.verificationStatus
+ *

+ */ + @SearchParamDefinition(name="verification-status", path="AllergyIntolerance.verificationStatus", description="unconfirmed | presumed | confirmed | refuted | entered-in-error", type="token" ) + public static final String SP_VERIFICATION_STATUS = "verification-status"; + /** + * Fluent Client search parameter constant for verification-status + *

+ * Description: unconfirmed | presumed | confirmed | refuted | entered-in-error
+ * Type: token
+ * Path: AllergyIntolerance.verificationStatus
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERIFICATION_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERIFICATION_STATUS); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Annotation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Annotation.java index 8ca5873ba..bd7a8e49d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Annotation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Annotation.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -53,7 +53,7 @@ public class Annotation extends DataType implements ICompositeType { /** * The individual responsible for making the annotation. */ - @Child(name = "author", type = {Practitioner.class, Patient.class, RelatedPerson.class, Organization.class, StringType.class}, order=0, min=0, max=1, modifier=false, summary=true) + @Child(name = "author", type = {Practitioner.class, PractitionerRole.class, Patient.class, RelatedPerson.class, Organization.class, StringType.class}, order=0, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Individual responsible for the annotation", formalDefinition="The individual responsible for making the annotation." ) protected DataType author; @@ -235,7 +235,7 @@ public class Annotation extends DataType implements ICompositeType { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("author[x]", "Reference(Practitioner|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author)); + children.add(new Property("author[x]", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author)); children.add(new Property("time", "dateTime", "Indicates when this particular annotation was made.", 0, 1, time)); children.add(new Property("text", "markdown", "The text of the annotation in markdown format.", 0, 1, text)); } @@ -243,9 +243,9 @@ public class Annotation extends DataType implements ICompositeType { @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 1475597077: /*author[x]*/ return new Property("author[x]", "Reference(Practitioner|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author); - case -1406328437: /*author*/ return new Property("author[x]", "Reference(Practitioner|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author); - case 305515008: /*authorReference*/ return new Property("author[x]", "Reference(Practitioner|Patient|RelatedPerson|Organization)", "The individual responsible for making the annotation.", 0, 1, author); + case 1475597077: /*author[x]*/ return new Property("author[x]", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author); + case -1406328437: /*author*/ return new Property("author[x]", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson|Organization)|string", "The individual responsible for making the annotation.", 0, 1, author); + case 305515008: /*authorReference*/ return new Property("author[x]", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson|Organization)", "The individual responsible for making the annotation.", 0, 1, author); case 290249084: /*authorString*/ return new Property("author[x]", "string", "The individual responsible for making the annotation.", 0, 1, author); case 3560141: /*time*/ return new Property("time", "dateTime", "Indicates when this particular annotation was made.", 0, 1, time); case 3556653: /*text*/ return new Property("text", "markdown", "The text of the annotation in markdown format.", 0, 1, text); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Appointment.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Appointment.java index 0df53ef91..4f9ac47fe 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Appointment.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Appointment.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -138,7 +138,6 @@ public class Appointment extends DomainResource { case ENTEREDINERROR: return "entered-in-error"; case CHECKEDIN: return "checked-in"; case WAITLIST: return "waitlist"; - case NULL: return null; default: return "?"; } } @@ -154,7 +153,6 @@ public class Appointment extends DomainResource { case ENTEREDINERROR: return "http://hl7.org/fhir/appointmentstatus"; case CHECKEDIN: return "http://hl7.org/fhir/appointmentstatus"; case WAITLIST: return "http://hl7.org/fhir/appointmentstatus"; - case NULL: return null; default: return "?"; } } @@ -170,7 +168,6 @@ public class Appointment extends DomainResource { case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record."; case CHECKEDIN: return "When checked in, all pre-encounter administrative work is complete, and the encounter may begin. (where multiple patients are involved, they are all present)."; case WAITLIST: return "The appointment has been placed on a waitlist, to be scheduled/confirmed in the future when a slot/service is available.\nA specific time might or might not be pre-allocated."; - case NULL: return null; default: return "?"; } } @@ -186,7 +183,6 @@ public class Appointment extends DomainResource { case ENTEREDINERROR: return "Entered in error"; case CHECKEDIN: return "Checked In"; case WAITLIST: return "Waitlisted"; - case NULL: return null; default: return "?"; } } @@ -313,7 +309,6 @@ public class Appointment extends DomainResource { case REQUIRED: return "required"; case OPTIONAL: return "optional"; case INFORMATIONONLY: return "information-only"; - case NULL: return null; default: return "?"; } } @@ -322,7 +317,6 @@ public class Appointment extends DomainResource { case REQUIRED: return "http://hl7.org/fhir/participantrequired"; case OPTIONAL: return "http://hl7.org/fhir/participantrequired"; case INFORMATIONONLY: return "http://hl7.org/fhir/participantrequired"; - case NULL: return null; default: return "?"; } } @@ -331,7 +325,6 @@ public class Appointment extends DomainResource { case REQUIRED: return "The participant is required to attend the appointment."; case OPTIONAL: return "The participant may optionally attend the appointment."; case INFORMATIONONLY: return "The participant is excluded from the appointment, and might not be informed of the appointment taking place. (Appointment is about them, not for them - such as 2 doctors discussing results about a patient's test)."; - case NULL: return null; default: return "?"; } } @@ -340,7 +333,6 @@ public class Appointment extends DomainResource { case REQUIRED: return "Required"; case OPTIONAL: return "Optional"; case INFORMATIONONLY: return "Information Only"; - case NULL: return null; default: return "?"; } } @@ -887,9 +879,10 @@ public class Appointment extends DomainResource { /** * 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=8, min=0, max=1, modifier=false, summary=false) + @Child(name = "priority", type = {CodeableConcept.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; + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v3-ActPriority") + protected CodeableConcept 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. @@ -977,7 +970,7 @@ The duration (usually in minutes) could also be provided to indicate the length @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 requestedPeriod; - private static final long serialVersionUID = 1849497415L; + private static final long serialVersionUID = -1194073126L; /** * Constructor @@ -1354,50 +1347,29 @@ The duration (usually in minutes) could also be provided to indicate the length } /** - * @return {@link #priority} (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).). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value + * @return {@link #priority} (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).) */ - public UnsignedIntType getPriorityElement() { + public CodeableConcept getPriority() { if (this.priority == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Appointment.priority"); else if (Configuration.doAutoCreate()) - this.priority = new UnsignedIntType(); // bb + this.priority = new CodeableConcept(); // cc return this.priority; } - public boolean hasPriorityElement() { - return this.priority != null && !this.priority.isEmpty(); - } - public boolean hasPriority() { return this.priority != null && !this.priority.isEmpty(); } /** - * @param value {@link #priority} (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).). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value + * @param value {@link #priority} (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).) */ - public Appointment setPriorityElement(UnsignedIntType value) { + public Appointment setPriority(CodeableConcept value) { this.priority = value; return this; } - /** - * @return 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). - */ - public int getPriority() { - return this.priority == null || this.priority.isEmpty() ? 0 : this.priority.getValue(); - } - - /** - * @param value 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). - */ - public Appointment setPriority(int value) { - if (this.priority == null) - this.priority = new UnsignedIntType(); - this.priority.setValue(value); - return this; - } - /** * @return {@link #description} (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.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value */ @@ -2014,7 +1986,7 @@ The duration (usually in minutes) could also be provided to indicate the length 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("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("priority", "CodeableConcept", "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)); children.add(new Property("start", "instant", "Date/Time that the appointment is to take place.", 0, 1, start)); @@ -2040,7 +2012,7 @@ The duration (usually in minutes) could also be provided to indicate the length 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 -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 -1165461084: /*priority*/ return new Property("priority", "CodeableConcept", "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); case 109757538: /*start*/ return new Property("start", "instant", "Date/Time that the appointment is to take place.", 0, 1, start); @@ -2069,7 +2041,7 @@ The duration (usually in minutes) could also be provided to indicate the length 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 -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 -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // CodeableConcept 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 case 109757538: /*start*/ return this.start == null ? new Base[0] : new Base[] {this.start}; // InstantType @@ -2116,7 +2088,7 @@ The duration (usually in minutes) could also be provided to indicate the length this.getReason().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference return value; case -1165461084: // priority - this.priority = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType + this.priority = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; case -1724546052: // description this.description = TypeConvertor.castToString(value); // StringType @@ -2179,7 +2151,7 @@ The duration (usually in minutes) could also be provided to indicate the length } else if (name.equals("reason")) { this.getReason().add(TypeConvertor.castToCodeableReference(value)); } else if (name.equals("priority")) { - this.priority = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType + this.priority = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("description")) { this.description = TypeConvertor.castToString(value); // StringType } else if (name.equals("supportingInformation")) { @@ -2220,7 +2192,7 @@ The duration (usually in minutes) could also be provided to indicate the length case -1694759682: return addSpecialty(); case -1596426375: return getAppointmentType(); case -934964668: return addReason(); - case -1165461084: return getPriorityElement(); + case -1165461084: return getPriority(); case -1724546052: return getDescriptionElement(); case -1248768647: return addSupportingInformation(); case 109757538: return getStartElement(); @@ -2249,7 +2221,7 @@ The duration (usually in minutes) could also be provided to indicate the length case -1694759682: /*specialty*/ return new String[] {"CodeableConcept"}; case -1596426375: /*appointmentType*/ return new String[] {"CodeableConcept"}; case -934964668: /*reason*/ return new String[] {"CodeableReference"}; - case -1165461084: /*priority*/ return new String[] {"unsignedInt"}; + case -1165461084: /*priority*/ return new String[] {"CodeableConcept"}; case -1724546052: /*description*/ return new String[] {"string"}; case -1248768647: /*supportingInformation*/ return new String[] {"Reference"}; case 109757538: /*start*/ return new String[] {"instant"}; @@ -2296,7 +2268,8 @@ The duration (usually in minutes) could also be provided to indicate the length return addReason(); } else if (name.equals("priority")) { - throw new FHIRException("Cannot call addChild on a primitive type Appointment.priority"); + this.priority = new CodeableConcept(); + return this.priority; } else if (name.equals("description")) { throw new FHIRException("Cannot call addChild on a primitive type Appointment.description"); @@ -2443,9 +2416,9 @@ The duration (usually in minutes) could also be provided to indicate the length if (!(other_ instanceof Appointment)) return false; Appointment o = (Appointment) other_; - return compareValues(status, o.status, true) && compareValues(priority, o.priority, true) && compareValues(description, o.description, true) - && compareValues(start, o.start, true) && compareValues(end, o.end, true) && compareValues(minutesDuration, o.minutesDuration, true) - && compareValues(created, o.created, true) && compareValues(comment, o.comment, true) && compareValues(patientInstruction, o.patientInstruction, true) + return compareValues(status, o.status, true) && compareValues(description, o.description, true) && compareValues(start, o.start, true) + && compareValues(end, o.end, true) && compareValues(minutesDuration, o.minutesDuration, true) && compareValues(created, o.created, true) + && compareValues(comment, o.comment, true) && compareValues(patientInstruction, o.patientInstruction, true) ; } @@ -2581,7 +2554,7 @@ The duration (usually in minutes) could also be provided to indicate the length * Path: Appointment.participant.actor.where(resolve() is Location)
*

*/ - @SearchParamDefinition(name="location", path="Appointment.participant.actor.where(resolve() is Location)", description="This location is listed in the participants of the appointment", type="reference", target={Location.class } ) + @SearchParamDefinition(name="location", path="Appointment.participant.actor.where(resolve() is Location)", description="This location is listed in the participants of the appointment", type="reference", target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) public static final String SP_LOCATION = "location"; /** * Fluent Client search parameter constant for location @@ -2627,7 +2600,7 @@ The duration (usually in minutes) could also be provided to indicate the length * Path: Appointment.participant.actor.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="Appointment.participant.actor.where(resolve() is Patient)", description="One of the individuals of the appointment is this patient", type="reference", target={Patient.class } ) + @SearchParamDefinition(name="patient", path="Appointment.participant.actor.where(resolve() is Patient)", description="One of the individuals of the appointment is this patient", type="reference", target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -2653,7 +2626,7 @@ The duration (usually in minutes) could also be provided to indicate the length * Path: Appointment.participant.actor.where(resolve() is Practitioner)
*

*/ - @SearchParamDefinition(name="practitioner", path="Appointment.participant.actor.where(resolve() is Practitioner)", description="One of the individuals of the appointment is this practitioner", type="reference", target={Practitioner.class } ) + @SearchParamDefinition(name="practitioner", path="Appointment.participant.actor.where(resolve() is Practitioner)", description="One of the individuals of the appointment is this practitioner", type="reference", target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) public static final String SP_PRACTITIONER = "practitioner"; /** * Fluent Client search parameter constant for practitioner @@ -2831,7 +2804,7 @@ The duration (usually in minutes) could also be provided to indicate the length * Path: Appointment.supportingInformation
*

*/ - @SearchParamDefinition(name="supporting-info", path="Appointment.supportingInformation", description="Additional information to support the appointment", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="supporting-info", path="Appointment.supportingInformation", description="Additional information to support the appointment", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_SUPPORTING_INFO = "supporting-info"; /** * Fluent Client search parameter constant for supporting-info diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AppointmentResponse.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AppointmentResponse.java index 066931b47..a9059c7ad 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AppointmentResponse.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AppointmentResponse.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -789,7 +789,7 @@ public class AppointmentResponse extends DomainResource { * Path: AppointmentResponse.actor.where(resolve() is Location)
*

*/ - @SearchParamDefinition(name="location", path="AppointmentResponse.actor.where(resolve() is Location)", description="This Response is for this Location", type="reference", target={Location.class } ) + @SearchParamDefinition(name="location", path="AppointmentResponse.actor.where(resolve() is Location)", description="This Response is for this Location", type="reference", target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) public static final String SP_LOCATION = "location"; /** * Fluent Client search parameter constant for location @@ -835,7 +835,7 @@ public class AppointmentResponse extends DomainResource { * Path: AppointmentResponse.actor.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="AppointmentResponse.actor.where(resolve() is Patient)", description="This Response is for this Patient", type="reference", target={Patient.class } ) + @SearchParamDefinition(name="patient", path="AppointmentResponse.actor.where(resolve() is Patient)", description="This Response is for this Patient", type="reference", target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -861,7 +861,7 @@ public class AppointmentResponse extends DomainResource { * Path: AppointmentResponse.actor.where(resolve() is Practitioner)
*

*/ - @SearchParamDefinition(name="practitioner", path="AppointmentResponse.actor.where(resolve() is Practitioner)", description="This Response is for this Practitioner", type="reference", target={Practitioner.class } ) + @SearchParamDefinition(name="practitioner", path="AppointmentResponse.actor.where(resolve() is Practitioner)", description="This Response is for this Practitioner", type="reference", target={Device.class, HealthcareService.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) public static final String SP_PRACTITIONER = "practitioner"; /** * Fluent Client search parameter constant for practitioner diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Attachment.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Attachment.java index 0d871780c..821cd2d31 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Attachment.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Attachment.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AuditEvent.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AuditEvent.java index 992f31df5..2d181b729 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AuditEvent.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/AuditEvent.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -103,7 +103,6 @@ public class AuditEvent extends DomainResource { case U: return "U"; case D: return "D"; case E: return "E"; - case NULL: return null; default: return "?"; } } @@ -114,7 +113,6 @@ public class AuditEvent extends DomainResource { case U: return "http://hl7.org/fhir/audit-event-action"; case D: return "http://hl7.org/fhir/audit-event-action"; case E: return "http://hl7.org/fhir/audit-event-action"; - case NULL: return null; default: return "?"; } } @@ -125,7 +123,6 @@ public class AuditEvent extends DomainResource { case U: return "Update data, such as revise patient information."; case D: return "Delete items, such as a doctor master file record."; case E: return "Perform a system or application function such as log-on, program execution or use of an object's method, or perform a query/search operation."; - case NULL: return null; default: return "?"; } } @@ -136,7 +133,6 @@ public class AuditEvent extends DomainResource { case U: return "Update"; case D: return "Delete"; case E: return "Execute"; - case NULL: return null; default: return "?"; } } @@ -247,7 +243,6 @@ public class AuditEvent extends DomainResource { case _3: return "3"; case _4: return "4"; case _5: return "5"; - case NULL: return null; default: return "?"; } } @@ -258,7 +253,6 @@ public class AuditEvent extends DomainResource { case _3: return "http://hl7.org/fhir/network-type"; case _4: return "http://hl7.org/fhir/network-type"; case _5: return "http://hl7.org/fhir/network-type"; - case NULL: return null; default: return "?"; } } @@ -269,7 +263,6 @@ public class AuditEvent extends DomainResource { case _3: return "The assigned telephone number."; case _4: return "The assigned email address."; case _5: return "URI (User directory, HTTP-PUT, ftp, etc.)."; - case NULL: return null; default: return "?"; } } @@ -280,7 +273,6 @@ public class AuditEvent extends DomainResource { case _3: return "Telephone Number"; case _4: return "Email address"; case _5: return "URI"; - case NULL: return null; default: return "?"; } } @@ -412,7 +404,6 @@ public class AuditEvent extends DomainResource { case NOTICE: return "notice"; case INFORMATIONAL: return "informational"; case DEBUG: return "debug"; - case NULL: return null; default: return "?"; } } @@ -426,7 +417,6 @@ public class AuditEvent extends DomainResource { case NOTICE: return "http://hl7.org/fhir/audit-event-severity"; case INFORMATIONAL: return "http://hl7.org/fhir/audit-event-severity"; case DEBUG: return "http://hl7.org/fhir/audit-event-severity"; - case NULL: return null; default: return "?"; } } @@ -440,7 +430,6 @@ public class AuditEvent extends DomainResource { case NOTICE: return "Normal but significant condition."; case INFORMATIONAL: return "Informational messages."; case DEBUG: return "Debug-level messages."; - case NULL: return null; default: return "?"; } } @@ -454,7 +443,6 @@ public class AuditEvent extends DomainResource { case NOTICE: return "Notice"; case INFORMATIONAL: return "Informational"; case DEBUG: return "Debug"; - case NULL: return null; default: return "?"; } } @@ -1610,7 +1598,7 @@ public class AuditEvent extends DomainResource { */ @Child(name = "type", type = {Coding.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="The type of source where event originated", formalDefinition="Code specifying the type of source where event originated." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/audit-source-type") + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/security-source-type") protected List type; private static final long serialVersionUID = 31014963L; @@ -2826,28 +2814,42 @@ public class AuditEvent extends DomainResource { @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v3-PurposeOfUse") protected List purposeOfEvent; + /** + * Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon. + */ + @Child(name = "basedOn", type = {CarePlan.class, DeviceRequest.class, ImmunizationRecommendation.class, MedicationRequest.class, NutritionOrder.class, ServiceRequest.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Workflow authorization within which this event occurred", formalDefinition="Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon." ) + protected List basedOn; + + /** + * This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests). + */ + @Child(name = "encounter", type = {Encounter.class}, order=9, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Encounter within which this event occurred or which the event is tightly associated", formalDefinition="This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests)." ) + protected Reference encounter; + /** * An actor taking an active role in the event or activity that is logged. */ - @Child(name = "agent", type = {}, order=8, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "agent", type = {}, order=10, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Actor involved in the event", formalDefinition="An actor taking an active role in the event or activity that is logged." ) protected List agent; /** * The system that is reporting the event. */ - @Child(name = "source", type = {}, order=9, min=1, max=1, modifier=false, summary=false) + @Child(name = "source", type = {}, order=11, min=1, max=1, modifier=false, summary=false) @Description(shortDefinition="Audit Event Reporter", formalDefinition="The system that is reporting the event." ) protected AuditEventSourceComponent source; /** * Specific instances of data or objects that have been accessed. */ - @Child(name = "entity", type = {}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "entity", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Data or objects used", formalDefinition="Specific instances of data or objects that have been accessed." ) protected List entity; - private static final long serialVersionUID = -446219294L; + private static final long serialVersionUID = -702709297L; /** * Constructor @@ -3188,6 +3190,83 @@ public class AuditEvent extends DomainResource { return getPurposeOfEvent().get(0); } + /** + * @return {@link #basedOn} (Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon.) + */ + public List getBasedOn() { + if (this.basedOn == null) + this.basedOn = new ArrayList(); + return this.basedOn; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public AuditEvent setBasedOn(List theBasedOn) { + this.basedOn = theBasedOn; + return this; + } + + public boolean hasBasedOn() { + if (this.basedOn == null) + return false; + for (Reference item : this.basedOn) + if (!item.isEmpty()) + return true; + return false; + } + + public Reference addBasedOn() { //3 + Reference t = new Reference(); + if (this.basedOn == null) + this.basedOn = new ArrayList(); + this.basedOn.add(t); + return t; + } + + public AuditEvent addBasedOn(Reference t) { //3 + if (t == null) + return this; + if (this.basedOn == null) + this.basedOn = new ArrayList(); + this.basedOn.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #basedOn}, creating it if it does not already exist {3} + */ + public Reference getBasedOnFirstRep() { + if (getBasedOn().isEmpty()) { + addBasedOn(); + } + return getBasedOn().get(0); + } + + /** + * @return {@link #encounter} (This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).) + */ + public Reference getEncounter() { + if (this.encounter == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create AuditEvent.encounter"); + else if (Configuration.doAutoCreate()) + this.encounter = new Reference(); // cc + return this.encounter; + } + + public boolean hasEncounter() { + return this.encounter != null && !this.encounter.isEmpty(); + } + + /** + * @param value {@link #encounter} (This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).) + */ + public AuditEvent setEncounter(Reference value) { + this.encounter = value; + return this; + } + /** * @return {@link #agent} (An actor taking an active role in the event or activity that is logged.) */ @@ -3328,6 +3407,8 @@ public class AuditEvent extends DomainResource { children.add(new Property("recorded", "instant", "The time when the event was recorded.", 0, 1, recorded)); children.add(new Property("outcome", "CodeableConcept", "Indicates whether the event succeeded or failed. A free text descripiton can be given in outcome.text.", 0, 1, outcome)); children.add(new Property("purposeOfEvent", "CodeableConcept", "The purposeOfUse (reason) that was used during the event being recorded.", 0, java.lang.Integer.MAX_VALUE, purposeOfEvent)); + children.add(new Property("basedOn", "Reference(CarePlan|DeviceRequest|ImmunizationRecommendation|MedicationRequest|NutritionOrder|ServiceRequest)", "Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon.", 0, java.lang.Integer.MAX_VALUE, basedOn)); + children.add(new Property("encounter", "Reference(Encounter)", "This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).", 0, 1, encounter)); children.add(new Property("agent", "", "An actor taking an active role in the event or activity that is logged.", 0, java.lang.Integer.MAX_VALUE, agent)); children.add(new Property("source", "", "The system that is reporting the event.", 0, 1, source)); children.add(new Property("entity", "", "Specific instances of data or objects that have been accessed.", 0, java.lang.Integer.MAX_VALUE, entity)); @@ -3344,6 +3425,8 @@ public class AuditEvent extends DomainResource { case -799233872: /*recorded*/ return new Property("recorded", "instant", "The time when the event was recorded.", 0, 1, recorded); case -1106507950: /*outcome*/ return new Property("outcome", "CodeableConcept", "Indicates whether the event succeeded or failed. A free text descripiton can be given in outcome.text.", 0, 1, outcome); case -341917691: /*purposeOfEvent*/ return new Property("purposeOfEvent", "CodeableConcept", "The purposeOfUse (reason) that was used during the event being recorded.", 0, java.lang.Integer.MAX_VALUE, purposeOfEvent); + case -332612366: /*basedOn*/ return new Property("basedOn", "Reference(CarePlan|DeviceRequest|ImmunizationRecommendation|MedicationRequest|NutritionOrder|ServiceRequest)", "Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon.", 0, java.lang.Integer.MAX_VALUE, basedOn); + case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).", 0, 1, encounter); case 92750597: /*agent*/ return new Property("agent", "", "An actor taking an active role in the event or activity that is logged.", 0, java.lang.Integer.MAX_VALUE, agent); case -896505829: /*source*/ return new Property("source", "", "The system that is reporting the event.", 0, 1, source); case -1298275357: /*entity*/ return new Property("entity", "", "Specific instances of data or objects that have been accessed.", 0, java.lang.Integer.MAX_VALUE, entity); @@ -3363,6 +3446,8 @@ public class AuditEvent extends DomainResource { case -799233872: /*recorded*/ return this.recorded == null ? new Base[0] : new Base[] {this.recorded}; // InstantType case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : new Base[] {this.outcome}; // CodeableConcept case -341917691: /*purposeOfEvent*/ return this.purposeOfEvent == null ? new Base[0] : this.purposeOfEvent.toArray(new Base[this.purposeOfEvent.size()]); // CodeableConcept + case -332612366: /*basedOn*/ return this.basedOn == null ? new Base[0] : this.basedOn.toArray(new Base[this.basedOn.size()]); // Reference + case 1524132147: /*encounter*/ return this.encounter == null ? new Base[0] : new Base[] {this.encounter}; // Reference case 92750597: /*agent*/ return this.agent == null ? new Base[0] : this.agent.toArray(new Base[this.agent.size()]); // AuditEventAgentComponent case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // AuditEventSourceComponent case -1298275357: /*entity*/ return this.entity == null ? new Base[0] : this.entity.toArray(new Base[this.entity.size()]); // AuditEventEntityComponent @@ -3400,6 +3485,12 @@ public class AuditEvent extends DomainResource { case -341917691: // purposeOfEvent this.getPurposeOfEvent().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept return value; + case -332612366: // basedOn + this.getBasedOn().add(TypeConvertor.castToReference(value)); // Reference + return value; + case 1524132147: // encounter + this.encounter = TypeConvertor.castToReference(value); // Reference + return value; case 92750597: // agent this.getAgent().add((AuditEventAgentComponent) value); // AuditEventAgentComponent return value; @@ -3434,6 +3525,10 @@ public class AuditEvent extends DomainResource { this.outcome = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("purposeOfEvent")) { this.getPurposeOfEvent().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("basedOn")) { + this.getBasedOn().add(TypeConvertor.castToReference(value)); + } else if (name.equals("encounter")) { + this.encounter = TypeConvertor.castToReference(value); // Reference } else if (name.equals("agent")) { this.getAgent().add((AuditEventAgentComponent) value); } else if (name.equals("source")) { @@ -3456,6 +3551,8 @@ public class AuditEvent extends DomainResource { case -799233872: return getRecordedElement(); case -1106507950: return getOutcome(); case -341917691: return addPurposeOfEvent(); + case -332612366: return addBasedOn(); + case 1524132147: return getEncounter(); case 92750597: return addAgent(); case -896505829: return getSource(); case -1298275357: return addEntity(); @@ -3475,6 +3572,8 @@ public class AuditEvent extends DomainResource { case -799233872: /*recorded*/ return new String[] {"instant"}; case -1106507950: /*outcome*/ return new String[] {"CodeableConcept"}; case -341917691: /*purposeOfEvent*/ return new String[] {"CodeableConcept"}; + case -332612366: /*basedOn*/ return new String[] {"Reference"}; + case 1524132147: /*encounter*/ return new String[] {"Reference"}; case 92750597: /*agent*/ return new String[] {}; case -896505829: /*source*/ return new String[] {}; case -1298275357: /*entity*/ return new String[] {}; @@ -3512,6 +3611,13 @@ public class AuditEvent extends DomainResource { else if (name.equals("purposeOfEvent")) { return addPurposeOfEvent(); } + else if (name.equals("basedOn")) { + return addBasedOn(); + } + else if (name.equals("encounter")) { + this.encounter = new Reference(); + return this.encounter; + } else if (name.equals("agent")) { return addAgent(); } @@ -3555,6 +3661,12 @@ public class AuditEvent extends DomainResource { for (CodeableConcept i : purposeOfEvent) dst.purposeOfEvent.add(i.copy()); }; + if (basedOn != null) { + dst.basedOn = new ArrayList(); + for (Reference i : basedOn) + dst.basedOn.add(i.copy()); + }; + dst.encounter = encounter == null ? null : encounter.copy(); if (agent != null) { dst.agent = new ArrayList(); for (AuditEventAgentComponent i : agent) @@ -3582,8 +3694,8 @@ public class AuditEvent extends DomainResource { return compareDeep(type, o.type, true) && compareDeep(subtype, o.subtype, true) && compareDeep(action, o.action, true) && compareDeep(severity, o.severity, true) && compareDeep(period, o.period, true) && compareDeep(recorded, o.recorded, true) && compareDeep(outcome, o.outcome, true) && compareDeep(purposeOfEvent, o.purposeOfEvent, true) - && compareDeep(agent, o.agent, true) && compareDeep(source, o.source, true) && compareDeep(entity, o.entity, true) - ; + && compareDeep(basedOn, o.basedOn, true) && compareDeep(encounter, o.encounter, true) && compareDeep(agent, o.agent, true) + && compareDeep(source, o.source, true) && compareDeep(entity, o.entity, true); } @Override @@ -3599,7 +3711,8 @@ public class AuditEvent extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, subtype, action, severity - , period, recorded, outcome, purposeOfEvent, agent, source, entity); + , period, recorded, outcome, purposeOfEvent, basedOn, encounter, agent, source + , entity); } @Override @@ -3647,6 +3760,32 @@ public class AuditEvent extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); + /** + * Search parameter: agent + *

+ * Description: Identifier of who
+ * Type: reference
+ * Path: AuditEvent.agent.who
+ *

+ */ + @SearchParamDefinition(name="agent", path="AuditEvent.agent.who", description="Identifier of who", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) + public static final String SP_AGENT = "agent"; + /** + * Fluent Client search parameter constant for agent + *

+ * Description: Identifier of who
+ * Type: reference
+ * Path: AuditEvent.agent.who
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AGENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_AGENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "AuditEvent:agent". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_AGENT = new ca.uhn.fhir.model.api.Include("AuditEvent:agent").toLocked(); + /** * Search parameter: agent-name *

@@ -3687,32 +3826,6 @@ public class AuditEvent extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam AGENT_ROLE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_AGENT_ROLE); - /** - * Search parameter: agent - *

- * Description: Identifier of who
- * Type: reference
- * Path: AuditEvent.agent.who
- *

- */ - @SearchParamDefinition(name="agent", path="AuditEvent.agent.who", description="Identifier of who", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) - public static final String SP_AGENT = "agent"; - /** - * Fluent Client search parameter constant for agent - *

- * Description: Identifier of who
- * Type: reference
- * Path: AuditEvent.agent.who
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AGENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_AGENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "AuditEvent:agent". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_AGENT = new ca.uhn.fhir.model.api.Include("AuditEvent:agent").toLocked(); - /** * Search parameter: altid *

@@ -3733,6 +3846,32 @@ public class AuditEvent extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ALTID = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ALTID); + /** + * Search parameter: based-on + *

+ * Description: Reference to the service request.
+ * Type: reference
+ * Path: AuditEvent.basedOn
+ *

+ */ + @SearchParamDefinition(name="based-on", path="AuditEvent.basedOn", description="Reference to the service request.", type="reference", target={CarePlan.class, DeviceRequest.class, ImmunizationRecommendation.class, MedicationRequest.class, NutritionOrder.class, ServiceRequest.class } ) + public static final String SP_BASED_ON = "based-on"; + /** + * Fluent Client search parameter constant for based-on + *

+ * Description: Reference to the service request.
+ * Type: reference
+ * Path: AuditEvent.basedOn
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASED_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASED_ON); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "AuditEvent:based-on". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_BASED_ON = new ca.uhn.fhir.model.api.Include("AuditEvent:based-on").toLocked(); + /** * Search parameter: date *

@@ -3753,6 +3892,58 @@ public class AuditEvent extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + /** + * Search parameter: encounter + *

+ * Description: Encounter related to the activity recorded in the AuditEvent
+ * Type: reference
+ * Path: AuditEvent.encounter
+ *

+ */ + @SearchParamDefinition(name="encounter", path="AuditEvent.encounter", description="Encounter related to the activity recorded in the AuditEvent", type="reference", target={Encounter.class } ) + public static final String SP_ENCOUNTER = "encounter"; + /** + * Fluent Client search parameter constant for encounter + *

+ * Description: Encounter related to the activity recorded in the AuditEvent
+ * Type: reference
+ * Path: AuditEvent.encounter
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "AuditEvent:encounter". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("AuditEvent:encounter").toLocked(); + + /** + * Search parameter: entity + *

+ * Description: Specific instance of resource
+ * Type: reference
+ * Path: AuditEvent.entity.what
+ *

+ */ + @SearchParamDefinition(name="entity", path="AuditEvent.entity.what", description="Specific instance of resource", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_ENTITY = "entity"; + /** + * Fluent Client search parameter constant for entity + *

+ * Description: Specific instance of resource
+ * Type: reference
+ * Path: AuditEvent.entity.what
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENTITY = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENTITY); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "AuditEvent:entity". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENTITY = new ca.uhn.fhir.model.api.Include("AuditEvent:entity").toLocked(); + /** * Search parameter: entity-name *

@@ -3813,32 +4004,6 @@ public class AuditEvent extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ENTITY_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ENTITY_TYPE); - /** - * Search parameter: entity - *

- * Description: Specific instance of resource
- * Type: reference
- * Path: AuditEvent.entity.what
- *

- */ - @SearchParamDefinition(name="entity", path="AuditEvent.entity.what", description="Specific instance of resource", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) - public static final String SP_ENTITY = "entity"; - /** - * Fluent Client search parameter constant for entity - *

- * Description: Specific instance of resource
- * Type: reference
- * Path: AuditEvent.entity.what
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENTITY = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENTITY); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "AuditEvent:entity". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ENTITY = new ca.uhn.fhir.model.api.Include("AuditEvent:entity").toLocked(); - /** * Search parameter: outcome *

@@ -3867,7 +4032,7 @@ public class AuditEvent extends DomainResource { * Path: AuditEvent.agent.who.where(resolve() is Patient) | AuditEvent.entity.what.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="AuditEvent.agent.who.where(resolve() is Patient) | AuditEvent.entity.what.where(resolve() is Patient)", description="Identifier of who", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } ) + @SearchParamDefinition(name="patient", path="AuditEvent.agent.who.where(resolve() is Patient) | AuditEvent.entity.what.where(resolve() is Patient)", description="Identifier of who", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BackboneElement.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BackboneElement.java index ce595f524..83e37f815 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BackboneElement.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BackboneElement.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -234,7 +234,7 @@ Modifier extensions SHALL NOT change the meaning of any elements on Resource or return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(modifierExtension); } -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): public void checkNoModifiers(String noun, String verb) throws FHIRException { if (hasModifierExtension()) { throw new FHIRException("Found unknown Modifier Exceptions on "+noun+" doing "+verb); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BackboneType.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BackboneType.java index 3eaecbd25..dcb1af3e3 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BackboneType.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BackboneType.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -234,7 +234,7 @@ Modifier extensions SHALL NOT change the meaning of any elements on Resource or return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(modifierExtension); } -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): public void checkNoModifiers(String noun, String verb) throws FHIRException { if (hasModifierExtension()) { throw new FHIRException("Found unknown Modifier Exceptions on "+noun+" doing "+verb); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Basic.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Basic.java index 5a16fbb5c..d01048b23 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Basic.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Basic.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -557,7 +557,7 @@ public class Basic extends DomainResource { * Path: Basic.subject.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="Basic.subject.where(resolve() is Patient)", description="Identifies the focus of this resource", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } ) + @SearchParamDefinition(name="patient", path="Basic.subject.where(resolve() is Patient)", description="Identifies the focus of this resource", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -583,7 +583,7 @@ public class Basic extends DomainResource { * Path: Basic.subject
*

*/ - @SearchParamDefinition(name="subject", path="Basic.subject", description="Identifies the focus of this resource", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="subject", path="Basic.subject", description="Identifies the focus of this resource", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Binary.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Binary.java index fc1cf5de3..1581a6c91 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Binary.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Binary.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -361,7 +361,7 @@ public class Binary extends BaseBinary implements IBaseBinary { return ResourceType.Binary; } -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): @Override public byte[] getContent() { return getData(); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BiologicallyDerivedProduct.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BiologicallyDerivedProduct.java index f2ff06b9a..73eb2bd40 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BiologicallyDerivedProduct.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BiologicallyDerivedProduct.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -105,7 +105,6 @@ public class BiologicallyDerivedProduct extends DomainResource { case FLUID: return "fluid"; case CELLS: return "cells"; case BIOLOGICALAGENT: return "biologicalAgent"; - case NULL: return null; default: return "?"; } } @@ -116,7 +115,6 @@ public class BiologicallyDerivedProduct extends DomainResource { case FLUID: return "http://hl7.org/fhir/product-category"; case CELLS: return "http://hl7.org/fhir/product-category"; case BIOLOGICALAGENT: return "http://hl7.org/fhir/product-category"; - case NULL: return null; default: return "?"; } } @@ -127,7 +125,6 @@ public class BiologicallyDerivedProduct extends DomainResource { case FLUID: return "Body fluid."; case CELLS: return "Collection of cells."; case BIOLOGICALAGENT: return "Biological agent of unspecified type."; - case NULL: return null; default: return "?"; } } @@ -138,7 +135,6 @@ public class BiologicallyDerivedProduct extends DomainResource { case FLUID: return "Fluid"; case CELLS: return "Cells"; case BIOLOGICALAGENT: return "BiologicalAgent"; - case NULL: return null; default: return "?"; } } @@ -228,15 +224,13 @@ public class BiologicallyDerivedProduct extends DomainResource { switch (this) { case AVAILABLE: return "available"; case UNAVAILABLE: return "unavailable"; - case NULL: return null; default: return "?"; } } public String getSystem() { switch (this) { - case AVAILABLE: return "http://hl7.org/fhir/product-status"; - case UNAVAILABLE: return "http://hl7.org/fhir/product-status"; - case NULL: return null; + case AVAILABLE: return "http://hl7.org/fhir/biological-product-status"; + case UNAVAILABLE: return "http://hl7.org/fhir/biological-product-status"; default: return "?"; } } @@ -244,7 +238,6 @@ public class BiologicallyDerivedProduct extends DomainResource { switch (this) { case AVAILABLE: return "Product is currently available for use."; case UNAVAILABLE: return "Product is not currently available for use."; - case NULL: return null; default: return "?"; } } @@ -252,7 +245,6 @@ public class BiologicallyDerivedProduct extends DomainResource { switch (this) { case AVAILABLE: return "Available"; case UNAVAILABLE: return "Unavailable"; - case NULL: return null; default: return "?"; } } @@ -331,7 +323,6 @@ public class BiologicallyDerivedProduct extends DomainResource { case FARENHEIT: return "farenheit"; case CELSIUS: return "celsius"; case KELVIN: return "kelvin"; - case NULL: return null; default: return "?"; } } @@ -340,7 +331,6 @@ public class BiologicallyDerivedProduct extends DomainResource { case FARENHEIT: return "http://hl7.org/fhir/product-storage-scale"; case CELSIUS: return "http://hl7.org/fhir/product-storage-scale"; case KELVIN: return "http://hl7.org/fhir/product-storage-scale"; - case NULL: return null; default: return "?"; } } @@ -349,7 +339,6 @@ public class BiologicallyDerivedProduct extends DomainResource { case FARENHEIT: return "Fahrenheit temperature scale."; case CELSIUS: return "Celsius or centigrade temperature scale."; case KELVIN: return "Kelvin absolute thermodynamic temperature scale."; - case NULL: return null; default: return "?"; } } @@ -358,7 +347,6 @@ public class BiologicallyDerivedProduct extends DomainResource { case FARENHEIT: return "Fahrenheit"; case CELSIUS: return "Celsius"; case KELVIN: return "Kelvin"; - case NULL: return null; default: return "?"; } } @@ -1722,7 +1710,7 @@ public class BiologicallyDerivedProduct extends DomainResource { */ @Child(name = "status", type = {CodeType.class}, order=3, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="available | unavailable", formalDefinition="Whether the product is currently available." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/product-status") + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/biological-product-status") protected Enumeration status; /** diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BodyStructure.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BodyStructure.java index c502111c1..d91a779fd 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BodyStructure.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/BodyStructure.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Bundle.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Bundle.java index 7f7386b56..1a9260e69 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Bundle.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Bundle.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -140,7 +140,6 @@ public class Bundle extends Resource implements IBaseBundle { case SEARCHSET: return "searchset"; case COLLECTION: return "collection"; case SUBSCRIPTIONNOTIFICATION: return "subscription-notification"; - case NULL: return null; default: return "?"; } } @@ -156,7 +155,6 @@ public class Bundle extends Resource implements IBaseBundle { case SEARCHSET: return "http://hl7.org/fhir/bundle-type"; case COLLECTION: return "http://hl7.org/fhir/bundle-type"; case SUBSCRIPTIONNOTIFICATION: return "http://hl7.org/fhir/bundle-type"; - case NULL: return null; default: return "?"; } } @@ -172,7 +170,6 @@ public class Bundle extends Resource implements IBaseBundle { case SEARCHSET: return "The bundle is a list of resources returned as a result of a search/query interaction, operation, or message."; case COLLECTION: return "The bundle is a set of resources collected into a single package for ease of distribution that imposes no processing obligations or behavioral rules beyond persistence."; case SUBSCRIPTIONNOTIFICATION: return "The bundle has been generated by a Subscription to communicate information to a client."; - case NULL: return null; default: return "?"; } } @@ -188,7 +185,6 @@ public class Bundle extends Resource implements IBaseBundle { case SEARCHSET: return "Search Results"; case COLLECTION: return "Collection"; case SUBSCRIPTIONNOTIFICATION: return "Subscription Notification"; - case NULL: return null; default: return "?"; } } @@ -336,7 +332,6 @@ public class Bundle extends Resource implements IBaseBundle { case PUT: return "PUT"; case DELETE: return "DELETE"; case PATCH: return "PATCH"; - case NULL: return null; default: return "?"; } } @@ -348,7 +343,6 @@ public class Bundle extends Resource implements IBaseBundle { case PUT: return "http://hl7.org/fhir/http-verb"; case DELETE: return "http://hl7.org/fhir/http-verb"; case PATCH: return "http://hl7.org/fhir/http-verb"; - case NULL: return null; default: return "?"; } } @@ -360,7 +354,6 @@ public class Bundle extends Resource implements IBaseBundle { case PUT: return "HTTP PUT Command."; case DELETE: return "HTTP DELETE Command."; case PATCH: return "HTTP PATCH Command."; - case NULL: return null; default: return "?"; } } @@ -372,7 +365,6 @@ public class Bundle extends Resource implements IBaseBundle { case PUT: return "PUT"; case DELETE: return "DELETE"; case PATCH: return "PATCH"; - case NULL: return null; default: return "?"; } } @@ -475,7 +467,6 @@ public class Bundle extends Resource implements IBaseBundle { case MATCH: return "match"; case INCLUDE: return "include"; case OUTCOME: return "outcome"; - case NULL: return null; default: return "?"; } } @@ -484,7 +475,6 @@ public class Bundle extends Resource implements IBaseBundle { case MATCH: return "http://hl7.org/fhir/search-entry-mode"; case INCLUDE: return "http://hl7.org/fhir/search-entry-mode"; case OUTCOME: return "http://hl7.org/fhir/search-entry-mode"; - case NULL: return null; default: return "?"; } } @@ -493,7 +483,6 @@ public class Bundle extends Resource implements IBaseBundle { case MATCH: return "This resource matched the search specification."; case INCLUDE: return "This resource is returned because it is referred to from another resource in the search set."; case OUTCOME: return "An OperationOutcome that provides additional information about the processing of a search."; - case NULL: return null; default: return "?"; } } @@ -502,7 +491,6 @@ public class Bundle extends Resource implements IBaseBundle { case MATCH: return "Match"; case INCLUDE: return "Include"; case OUTCOME: return "Outcome"; - case NULL: return null; default: return "?"; } } @@ -3129,7 +3117,7 @@ public class Bundle extends Resource implements IBaseBundle { * Path: Bundle.entry[0].resource
*

*/ - @SearchParamDefinition(name="composition", path="Bundle.entry[0].resource", description="The first resource in the bundle, if the bundle type is \"document\" - this is a composition, and this parameter provides access to search its contents", type="reference", target={Composition.class } ) + @SearchParamDefinition(name="composition", path="Bundle.entry[0].resource", description="The first resource in the bundle, if the bundle type is \"document\" - this is a composition, and this parameter provides access to search its contents", type="reference" ) public static final String SP_COMPOSITION = "composition"; /** * Fluent Client search parameter constant for composition @@ -3175,7 +3163,7 @@ public class Bundle extends Resource implements IBaseBundle { * Path: Bundle.entry[0].resource
*

*/ - @SearchParamDefinition(name="message", path="Bundle.entry[0].resource", description="The first resource in the bundle, if the bundle type is \"message\" - this is a message header, and this parameter provides access to search its contents", type="reference", target={MessageHeader.class } ) + @SearchParamDefinition(name="message", path="Bundle.entry[0].resource", description="The first resource in the bundle, if the bundle type is \"message\" - this is a message header, and this parameter provides access to search its contents", type="reference" ) public static final String SP_MESSAGE = "message"; /** * Fluent Client search parameter constant for message @@ -3233,7 +3221,7 @@ public class Bundle extends Resource implements IBaseBundle { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): /** * Returns the {@link #getLink() link} which matches a given {@link BundleLinkComponent#getRelation() relation}. * If no link is found which matches the given relation, returns null. If more than one diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CanonicalResource.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CanonicalResource.java index c28dac081..207dc68f8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CanonicalResource.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CanonicalResource.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -442,8 +442,7 @@ public abstract class CanonicalResource extends DomainResource { /** * @param value A copyright statement relating to the canonical resource and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the canonical resource. */ - public abstract CanonicalResource setCopyright(String value); - + public abstract CanonicalResource setCopyright(String value); protected void listChildren(List children) { super.listChildren(children); } @@ -533,27 +532,28 @@ public abstract class CanonicalResource extends DomainResource { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(); } -// Manual code (from Configuration.txt)t: - @Override - public String toString() { - return fhirType()+"["+getUrl()+"]"; - } - - public String present() { - if (hasTitle()) - return getTitle(); - if (hasName()) - return getName(); - return toString(); - } - - public String getVUrl() { - return getUrl() + (hasVersion() ? "|"+getVersion() : ""); - } - - public boolean supportsCopyright() { - return true; - } +// Manual code (from Configuration.txt): + @Override + public String toString() { + return fhirType()+"["+getUrl()+"]"; + } + + public String present() { + if (hasTitle()) + return getTitle(); + if (hasName()) + return getName(); + return toString(); + } + + public String getVUrl() { + return getUrl() + (hasVersion() ? "|"+getVersion() : ""); + } + + public boolean supportsCopyright() { + return true; + } + // end addition } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CapabilityStatement.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CapabilityStatement.java index 0b974820c..26c4e457b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CapabilityStatement.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CapabilityStatement.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -90,7 +90,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case NOTSUPPORTED: return "not-supported"; case SINGLE: return "single"; case MULTIPLE: return "multiple"; - case NULL: return null; default: return "?"; } } @@ -99,7 +98,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case NOTSUPPORTED: return "http://hl7.org/fhir/conditional-delete-status"; case SINGLE: return "http://hl7.org/fhir/conditional-delete-status"; case MULTIPLE: return "http://hl7.org/fhir/conditional-delete-status"; - case NULL: return null; default: return "?"; } } @@ -108,7 +106,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case NOTSUPPORTED: return "No support for conditional deletes."; case SINGLE: return "Conditional deletes are supported, but only single resources at a time."; case MULTIPLE: return "Conditional deletes are supported, and multiple resources can be deleted in a single interaction."; - case NULL: return null; default: return "?"; } } @@ -117,7 +114,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case NOTSUPPORTED: return "Not Supported"; case SINGLE: return "Single Deletes Supported"; case MULTIPLE: return "Multiple Deletes Supported"; - case NULL: return null; default: return "?"; } } @@ -209,7 +205,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case MODIFIEDSINCE: return "modified-since"; case NOTMATCH: return "not-match"; case FULLSUPPORT: return "full-support"; - case NULL: return null; default: return "?"; } } @@ -219,7 +214,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case MODIFIEDSINCE: return "http://hl7.org/fhir/conditional-read-status"; case NOTMATCH: return "http://hl7.org/fhir/conditional-read-status"; case FULLSUPPORT: return "http://hl7.org/fhir/conditional-read-status"; - case NULL: return null; default: return "?"; } } @@ -229,7 +223,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case MODIFIEDSINCE: return "Conditional reads are supported, but only with the If-Modified-Since HTTP Header."; case NOTMATCH: return "Conditional reads are supported, but only with the If-None-Match HTTP Header."; case FULLSUPPORT: return "Conditional reads are supported, with both If-Modified-Since and If-None-Match HTTP Headers."; - case NULL: return null; default: return "?"; } } @@ -239,7 +232,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case MODIFIEDSINCE: return "If-Modified-Since"; case NOTMATCH: return "If-None-Match"; case FULLSUPPORT: return "Full Support"; - case NULL: return null; default: return "?"; } } @@ -323,7 +315,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo switch (this) { case PRODUCER: return "producer"; case CONSUMER: return "consumer"; - case NULL: return null; default: return "?"; } } @@ -331,7 +322,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo switch (this) { case PRODUCER: return "http://hl7.org/fhir/document-mode"; case CONSUMER: return "http://hl7.org/fhir/document-mode"; - case NULL: return null; default: return "?"; } } @@ -339,7 +329,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo switch (this) { case PRODUCER: return "The application produces documents of the specified type."; case CONSUMER: return "The application consumes documents of the specified type."; - case NULL: return null; default: return "?"; } } @@ -347,7 +336,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo switch (this) { case PRODUCER: return "Producer"; case CONSUMER: return "Consumer"; - case NULL: return null; default: return "?"; } } @@ -419,7 +407,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo switch (this) { case SENDER: return "sender"; case RECEIVER: return "receiver"; - case NULL: return null; default: return "?"; } } @@ -427,7 +414,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo switch (this) { case SENDER: return "http://hl7.org/fhir/event-capability-mode"; case RECEIVER: return "http://hl7.org/fhir/event-capability-mode"; - case NULL: return null; default: return "?"; } } @@ -435,7 +421,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo switch (this) { case SENDER: return "The application sends requests and receives responses."; case RECEIVER: return "The application receives requests and sends responses."; - case NULL: return null; default: return "?"; } } @@ -443,7 +428,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo switch (this) { case SENDER: return "Sender"; case RECEIVER: return "Receiver"; - case NULL: return null; default: return "?"; } } @@ -536,7 +520,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case RESOLVES: return "resolves"; case ENFORCED: return "enforced"; case LOCAL: return "local"; - case NULL: return null; default: return "?"; } } @@ -547,7 +530,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case RESOLVES: return "http://hl7.org/fhir/reference-handling-policy"; case ENFORCED: return "http://hl7.org/fhir/reference-handling-policy"; case LOCAL: return "http://hl7.org/fhir/reference-handling-policy"; - case NULL: return null; default: return "?"; } } @@ -558,7 +540,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case RESOLVES: return "The server will attempt to resolve logical references to literal references - i.e. converting Reference.identifier to Reference.reference (if resolution fails, the server may still accept resources; see logical)."; case ENFORCED: return "The server enforces that references have integrity - e.g. it ensures that references can always be resolved. This is typically the case for clinical record systems, but often not the case for middleware/proxy systems."; case LOCAL: return "The server does not support references that point to other servers."; - case NULL: return null; default: return "?"; } } @@ -569,7 +550,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case RESOLVES: return "Resolves References"; case ENFORCED: return "Reference Integrity Enforced"; case LOCAL: return "Local References Only"; - case NULL: return null; default: return "?"; } } @@ -666,7 +646,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case NOVERSION: return "no-version"; case VERSIONED: return "versioned"; case VERSIONEDUPDATE: return "versioned-update"; - case NULL: return null; default: return "?"; } } @@ -675,7 +654,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case NOVERSION: return "http://hl7.org/fhir/versioning-policy"; case VERSIONED: return "http://hl7.org/fhir/versioning-policy"; case VERSIONEDUPDATE: return "http://hl7.org/fhir/versioning-policy"; - case NULL: return null; default: return "?"; } } @@ -684,7 +662,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case NOVERSION: return "VersionId meta-property is not supported (server) or used (client)."; case VERSIONED: return "VersionId meta-property is supported (server) or used (client)."; case VERSIONEDUPDATE: return "VersionId must be correct for updates (server) or will be specified (If-match header) for updates (client)."; - case NULL: return null; default: return "?"; } } @@ -693,7 +670,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case NOVERSION: return "No VersionId Support"; case VERSIONED: return "Versioned"; case VERSIONEDUPDATE: return "VersionId tracked fully"; - case NULL: return null; default: return "?"; } } @@ -785,7 +761,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case BATCH: return "batch"; case SEARCHSYSTEM: return "search-system"; case HISTORYSYSTEM: return "history-system"; - case NULL: return null; default: return "?"; } } @@ -795,7 +770,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case BATCH: return "http://hl7.org/fhir/restful-interaction"; case SEARCHSYSTEM: return "http://hl7.org/fhir/restful-interaction"; case HISTORYSYSTEM: return "http://hl7.org/fhir/restful-interaction"; - case NULL: return null; default: return "?"; } } @@ -805,7 +779,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case BATCH: return "perform a set of a separate interactions in a single http operation"; case SEARCHSYSTEM: return "Search all resources based on some filter criteria."; case HISTORYSYSTEM: return "Retrieve the change history for all resources on a system."; - case NULL: return null; default: return "?"; } } @@ -815,7 +788,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case BATCH: return "batch"; case SEARCHSYSTEM: return "search-system"; case HISTORYSYSTEM: return "history-system"; - case NULL: return null; default: return "?"; } } @@ -948,7 +920,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case HISTORYTYPE: return "history-type"; case CREATE: return "create"; case SEARCHTYPE: return "search-type"; - case NULL: return null; default: return "?"; } } @@ -963,7 +934,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case HISTORYTYPE: return "http://hl7.org/fhir/restful-interaction"; case CREATE: return "http://hl7.org/fhir/restful-interaction"; case SEARCHTYPE: return "http://hl7.org/fhir/restful-interaction"; - case NULL: return null; default: return "?"; } } @@ -978,7 +948,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case HISTORYTYPE: return "Retrieve the change history for all resources of a particular type."; case CREATE: return "Create a new resource with a server assigned id."; case SEARCHTYPE: return "Search all resources of the specified type based on some filter criteria."; - case NULL: return null; default: return "?"; } } @@ -993,7 +962,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo case HISTORYTYPE: return "history-type"; case CREATE: return "create"; case SEARCHTYPE: return "search-type"; - case NULL: return null; default: return "?"; } } @@ -8657,202 +8625,56 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo } /** - * Search parameter: fhirversion + * Search parameter: context *

- * Description: The version of FHIR
+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +
* Type: token
- * Path: CapabilityStatement.version
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="fhirversion", path="CapabilityStatement.version", description="The version of FHIR", type="token" ) - public static final String SP_FHIRVERSION = "fhirversion"; + @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) + public static final String SP_CONTEXT = "context"; /** - * Fluent Client search parameter constant for fhirversion + * Fluent Client search parameter constant for context *

- * Description: The version of FHIR
+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +
* Type: token
- * Path: CapabilityStatement.version
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam FHIRVERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FHIRVERSION); - - /** - * Search parameter: format - *

- * Description: formats supported (xml | json | ttl | mime type)
- * Type: token
- * Path: CapabilityStatement.format
- *

- */ - @SearchParamDefinition(name="format", path="CapabilityStatement.format", description="formats supported (xml | json | ttl | mime type)", type="token" ) - public static final String SP_FORMAT = "format"; - /** - * Fluent Client search parameter constant for format - *

- * Description: formats supported (xml | json | ttl | mime type)
- * Type: token
- * Path: CapabilityStatement.format
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam FORMAT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FORMAT); - - /** - * Search parameter: guide - *

- * Description: Implementation guides supported
- * Type: reference
- * Path: CapabilityStatement.implementationGuide
- *

- */ - @SearchParamDefinition(name="guide", path="CapabilityStatement.implementationGuide", description="Implementation guides supported", type="reference", target={ImplementationGuide.class } ) - public static final String SP_GUIDE = "guide"; - /** - * Fluent Client search parameter constant for guide - *

- * Description: Implementation guides supported
- * Type: reference
- * Path: CapabilityStatement.implementationGuide
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam GUIDE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_GUIDE); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "CapabilityStatement:guide". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_GUIDE = new ca.uhn.fhir.model.api.Include("CapabilityStatement:guide").toLocked(); - - /** - * Search parameter: mode - *

- * Description: Mode - restful (server/client) or messaging (sender/receiver)
- * Type: token
- * Path: CapabilityStatement.rest.mode
- *

- */ - @SearchParamDefinition(name="mode", path="CapabilityStatement.rest.mode", description="Mode - restful (server/client) or messaging (sender/receiver)", type="token" ) - public static final String SP_MODE = "mode"; - /** - * Fluent Client search parameter constant for mode - *

- * Description: Mode - restful (server/client) or messaging (sender/receiver)
- * Type: token
- * Path: CapabilityStatement.rest.mode
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam MODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_MODE); - - /** - * Search parameter: resource-profile - *

- * Description: A profile id invoked in a capability statement
- * Type: reference
- * Path: CapabilityStatement.rest.resource.profile
- *

- */ - @SearchParamDefinition(name="resource-profile", path="CapabilityStatement.rest.resource.profile", description="A profile id invoked in a capability statement", type="reference", target={StructureDefinition.class } ) - public static final String SP_RESOURCE_PROFILE = "resource-profile"; - /** - * Fluent Client search parameter constant for resource-profile - *

- * Description: A profile id invoked in a capability statement
- * Type: reference
- * Path: CapabilityStatement.rest.resource.profile
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RESOURCE_PROFILE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RESOURCE_PROFILE); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "CapabilityStatement:resource-profile". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_RESOURCE_PROFILE = new ca.uhn.fhir.model.api.Include("CapabilityStatement:resource-profile").toLocked(); - - /** - * Search parameter: resource - *

- * Description: Name of a resource mentioned in a capability statement
- * Type: token
- * Path: CapabilityStatement.rest.resource.type
- *

- */ - @SearchParamDefinition(name="resource", path="CapabilityStatement.rest.resource.type", description="Name of a resource mentioned in a capability statement", type="token" ) - public static final String SP_RESOURCE = "resource"; - /** - * Fluent Client search parameter constant for resource - *

- * Description: Name of a resource mentioned in a capability statement
- * Type: token
- * Path: CapabilityStatement.rest.resource.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam RESOURCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RESOURCE); - - /** - * Search parameter: security-service - *

- * Description: OAuth | SMART-on-FHIR | NTLM | Basic | Kerberos | Certificates
- * Type: token
- * Path: CapabilityStatement.rest.security.service
- *

- */ - @SearchParamDefinition(name="security-service", path="CapabilityStatement.rest.security.service", description="OAuth | SMART-on-FHIR | NTLM | Basic | Kerberos | Certificates", type="token" ) - public static final String SP_SECURITY_SERVICE = "security-service"; - /** - * Fluent Client search parameter constant for security-service - *

- * Description: OAuth | SMART-on-FHIR | NTLM | Basic | Kerberos | Certificates
- * Type: token
- * Path: CapabilityStatement.rest.security.service
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam SECURITY_SERVICE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SECURITY_SERVICE); - - /** - * Search parameter: software - *

- * Description: Part of the name of a software application
- * Type: string
- * Path: CapabilityStatement.software.name
- *

- */ - @SearchParamDefinition(name="software", path="CapabilityStatement.software.name", description="Part of the name of a software application", type="string" ) - public static final String SP_SOFTWARE = "software"; - /** - * Fluent Client search parameter constant for software - *

- * Description: Part of the name of a software application
- * Type: string
- * Path: CapabilityStatement.software.name
- *

- */ - public static final ca.uhn.fhir.rest.gclient.StringClientParam SOFTWARE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_SOFTWARE); - - /** - * Search parameter: supported-profile - *

- * Description: Profiles for use cases supported
- * Type: reference
- * Path: CapabilityStatement.rest.resource.supportedProfile
- *

- */ - @SearchParamDefinition(name="supported-profile", path="CapabilityStatement.rest.resource.supportedProfile", description="Profiles for use cases supported", type="reference", target={StructureDefinition.class } ) - public static final String SP_SUPPORTED_PROFILE = "supported-profile"; - /** - * Fluent Client search parameter constant for supported-profile - *

- * Description: Profiles for use cases supported
- * Type: reference
- * Path: CapabilityStatement.rest.resource.supportedProfile
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUPPORTED_PROFILE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUPPORTED_PROFILE); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "CapabilityStatement:supported-profile". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_SUPPORTED_PROFILE = new ca.uhn.fhir.model.api.Include("CapabilityStatement:supported-profile").toLocked(); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); /** * Search parameter: context-quantity @@ -8906,110 +8728,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -9062,58 +8780,6 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -9218,6 +8884,72 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo */ public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); + /** + * Search parameter: fhirversion + *

+ * Description: The version of FHIR
+ * Type: token
+ * Path: CapabilityStatement.version
+ *

+ */ + @SearchParamDefinition(name="fhirversion", path="CapabilityStatement.version", description="The version of FHIR", type="token" ) + public static final String SP_FHIRVERSION = "fhirversion"; + /** + * Fluent Client search parameter constant for fhirversion + *

+ * Description: The version of FHIR
+ * Type: token
+ * Path: CapabilityStatement.version
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam FHIRVERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FHIRVERSION); + + /** + * Search parameter: format + *

+ * Description: formats supported (xml | json | ttl | mime type)
+ * Type: token
+ * Path: CapabilityStatement.format
+ *

+ */ + @SearchParamDefinition(name="format", path="CapabilityStatement.format", description="formats supported (xml | json | ttl | mime type)", type="token" ) + public static final String SP_FORMAT = "format"; + /** + * Fluent Client search parameter constant for format + *

+ * Description: formats supported (xml | json | ttl | mime type)
+ * Type: token
+ * Path: CapabilityStatement.format
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam FORMAT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FORMAT); + + /** + * Search parameter: guide + *

+ * Description: Implementation guides supported
+ * Type: reference
+ * Path: CapabilityStatement.implementationGuide
+ *

+ */ + @SearchParamDefinition(name="guide", path="CapabilityStatement.implementationGuide", description="Implementation guides supported", type="reference", target={ImplementationGuide.class } ) + public static final String SP_GUIDE = "guide"; + /** + * Fluent Client search parameter constant for guide + *

+ * Description: Implementation guides supported
+ * Type: reference
+ * Path: CapabilityStatement.implementationGuide
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam GUIDE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_GUIDE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "CapabilityStatement:guide". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_GUIDE = new ca.uhn.fhir.model.api.Include("CapabilityStatement:guide").toLocked(); + /** * Search parameter: jurisdiction *

@@ -9268,6 +9000,26 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION); + /** + * Search parameter: mode + *

+ * Description: Mode - restful (server/client) or messaging (sender/receiver)
+ * Type: token
+ * Path: CapabilityStatement.rest.mode
+ *

+ */ + @SearchParamDefinition(name="mode", path="CapabilityStatement.rest.mode", description="Mode - restful (server/client) or messaging (sender/receiver)", type="token" ) + public static final String SP_MODE = "mode"; + /** + * Fluent Client search parameter constant for mode + *

+ * Description: Mode - restful (server/client) or messaging (sender/receiver)
+ * Type: token
+ * Path: CapabilityStatement.rest.mode
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam MODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_MODE); + /** * Search parameter: name *

@@ -9372,6 +9124,92 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo */ public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); + /** + * Search parameter: resource + *

+ * Description: Name of a resource mentioned in a capability statement
+ * Type: token
+ * Path: CapabilityStatement.rest.resource.type
+ *

+ */ + @SearchParamDefinition(name="resource", path="CapabilityStatement.rest.resource.type", description="Name of a resource mentioned in a capability statement", type="token" ) + public static final String SP_RESOURCE = "resource"; + /** + * Fluent Client search parameter constant for resource + *

+ * Description: Name of a resource mentioned in a capability statement
+ * Type: token
+ * Path: CapabilityStatement.rest.resource.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam RESOURCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RESOURCE); + + /** + * Search parameter: resource-profile + *

+ * Description: A profile id invoked in a capability statement
+ * Type: reference
+ * Path: CapabilityStatement.rest.resource.profile
+ *

+ */ + @SearchParamDefinition(name="resource-profile", path="CapabilityStatement.rest.resource.profile", description="A profile id invoked in a capability statement", type="reference", target={StructureDefinition.class } ) + public static final String SP_RESOURCE_PROFILE = "resource-profile"; + /** + * Fluent Client search parameter constant for resource-profile + *

+ * Description: A profile id invoked in a capability statement
+ * Type: reference
+ * Path: CapabilityStatement.rest.resource.profile
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RESOURCE_PROFILE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RESOURCE_PROFILE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "CapabilityStatement:resource-profile". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_RESOURCE_PROFILE = new ca.uhn.fhir.model.api.Include("CapabilityStatement:resource-profile").toLocked(); + + /** + * Search parameter: security-service + *

+ * Description: OAuth | SMART-on-FHIR | NTLM | Basic | Kerberos | Certificates
+ * Type: token
+ * Path: CapabilityStatement.rest.security.service
+ *

+ */ + @SearchParamDefinition(name="security-service", path="CapabilityStatement.rest.security.service", description="OAuth | SMART-on-FHIR | NTLM | Basic | Kerberos | Certificates", type="token" ) + public static final String SP_SECURITY_SERVICE = "security-service"; + /** + * Fluent Client search parameter constant for security-service + *

+ * Description: OAuth | SMART-on-FHIR | NTLM | Basic | Kerberos | Certificates
+ * Type: token
+ * Path: CapabilityStatement.rest.security.service
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam SECURITY_SERVICE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SECURITY_SERVICE); + + /** + * Search parameter: software + *

+ * Description: Part of the name of a software application
+ * Type: string
+ * Path: CapabilityStatement.software.name
+ *

+ */ + @SearchParamDefinition(name="software", path="CapabilityStatement.software.name", description="Part of the name of a software application", type="string" ) + public static final String SP_SOFTWARE = "software"; + /** + * Fluent Client search parameter constant for software + *

+ * Description: Part of the name of a software application
+ * Type: string
+ * Path: CapabilityStatement.software.name
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam SOFTWARE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_SOFTWARE); + /** * Search parameter: status *

@@ -9424,6 +9262,32 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); + /** + * Search parameter: supported-profile + *

+ * Description: Profiles for use cases supported
+ * Type: reference
+ * Path: CapabilityStatement.rest.resource.supportedProfile
+ *

+ */ + @SearchParamDefinition(name="supported-profile", path="CapabilityStatement.rest.resource.supportedProfile", description="Profiles for use cases supported", type="reference", target={StructureDefinition.class } ) + public static final String SP_SUPPORTED_PROFILE = "supported-profile"; + /** + * Fluent Client search parameter constant for supported-profile + *

+ * Description: Profiles for use cases supported
+ * Type: reference
+ * Path: CapabilityStatement.rest.resource.supportedProfile
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUPPORTED_PROFILE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUPPORTED_PROFILE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "CapabilityStatement:supported-profile". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_SUPPORTED_PROFILE = new ca.uhn.fhir.model.api.Include("CapabilityStatement:supported-profile").toLocked(); + /** * Search parameter: title *

@@ -9572,7 +9436,111 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); -// Manual code (from Configuration.txt)t: + /** + * Search parameter: context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + +// Manual code (from Configuration.txt): // end addition diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CapabilityStatement2.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CapabilityStatement2.java index 08b31a5b1..0431135db 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CapabilityStatement2.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CapabilityStatement2.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -53,6 +53,590 @@ import ca.uhn.fhir.model.api.annotation.Block; @ResourceDef(name="CapabilityStatement2", profile="http://hl7.org/fhir/StructureDefinition/CapabilityStatement2") public class CapabilityStatement2 extends CanonicalResource { + public enum CapabilityFeature { + /** + * + */ + FEATUREHEADER, + /** + * + */ + SECURITYCORS, + /** + * + */ + SECURITYSERVICE, + /** + * + */ + VERSIONING, + /** + * + */ + READHISTORY, + /** + * + */ + UPDATECREATE, + /** + * + */ + CONDITIONALCREATE, + /** + * + */ + CONDITIONALREAD, + /** + * + */ + CONDITIONALUPDATE, + /** + * + */ + CONDITIONALDELETE, + /** + * + */ + REFERENCEPOLICY, + /** + * + */ + SEARCHINCLUDE, + /** + * + */ + SEARCHREVINCLUDE, + /** + * added to help the parsers with the generic types + */ + NULL; + public static CapabilityFeature fromCode(String codeString) throws FHIRException { + if (codeString == null || "".equals(codeString)) + return null; + if ("feature-header".equals(codeString)) + return FEATUREHEADER; + if ("security-cors".equals(codeString)) + return SECURITYCORS; + if ("security-service".equals(codeString)) + return SECURITYSERVICE; + if ("versioning".equals(codeString)) + return VERSIONING; + if ("readHistory".equals(codeString)) + return READHISTORY; + if ("updateCreate".equals(codeString)) + return UPDATECREATE; + if ("conditionalCreate".equals(codeString)) + return CONDITIONALCREATE; + if ("conditionalRead".equals(codeString)) + return CONDITIONALREAD; + if ("conditionalUpdate".equals(codeString)) + return CONDITIONALUPDATE; + if ("conditionalDelete".equals(codeString)) + return CONDITIONALDELETE; + if ("referencePolicy".equals(codeString)) + return REFERENCEPOLICY; + if ("searchInclude".equals(codeString)) + return SEARCHINCLUDE; + if ("searchRevInclude".equals(codeString)) + return SEARCHREVINCLUDE; + if (Configuration.isAcceptInvalidEnums()) + return null; + else + throw new FHIRException("Unknown CapabilityFeature code '"+codeString+"'"); + } + public String toCode() { + switch (this) { + case FEATUREHEADER: return "feature-header"; + case SECURITYCORS: return "security-cors"; + case SECURITYSERVICE: return "security-service"; + case VERSIONING: return "versioning"; + case READHISTORY: return "readHistory"; + case UPDATECREATE: return "updateCreate"; + case CONDITIONALCREATE: return "conditionalCreate"; + case CONDITIONALREAD: return "conditionalRead"; + case CONDITIONALUPDATE: return "conditionalUpdate"; + case CONDITIONALDELETE: return "conditionalDelete"; + case REFERENCEPOLICY: return "referencePolicy"; + case SEARCHINCLUDE: return "searchInclude"; + case SEARCHREVINCLUDE: return "searchRevInclude"; + default: return "?"; + } + } + public String getSystem() { + switch (this) { + case FEATUREHEADER: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case SECURITYCORS: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case SECURITYSERVICE: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case VERSIONING: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case READHISTORY: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case UPDATECREATE: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case CONDITIONALCREATE: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case CONDITIONALREAD: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case CONDITIONALUPDATE: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case CONDITIONALDELETE: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case REFERENCEPOLICY: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case SEARCHINCLUDE: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case SEARCHREVINCLUDE: return "http://hl7.org/fhir/CodeSystem/capability-features"; + default: return "?"; + } + } + public String getDefinition() { + switch (this) { + case FEATUREHEADER: return ""; + case SECURITYCORS: return ""; + case SECURITYSERVICE: return ""; + case VERSIONING: return ""; + case READHISTORY: return ""; + case UPDATECREATE: return ""; + case CONDITIONALCREATE: return ""; + case CONDITIONALREAD: return ""; + case CONDITIONALUPDATE: return ""; + case CONDITIONALDELETE: return ""; + case REFERENCEPOLICY: return ""; + case SEARCHINCLUDE: return ""; + case SEARCHREVINCLUDE: return ""; + default: return "?"; + } + } + public String getDisplay() { + switch (this) { + case FEATUREHEADER: return "Whether the server supports the Required-Feature header by which a client makes a feature as mandatory for processing a requrest properly"; + case SECURITYCORS: return "security-cors"; + case SECURITYSERVICE: return "security-service"; + case VERSIONING: return "versioning"; + case READHISTORY: return "readHistory"; + case UPDATECREATE: return "updateCreate"; + case CONDITIONALCREATE: return "conditionalCreate"; + case CONDITIONALREAD: return "conditionalRead"; + case CONDITIONALUPDATE: return "conditionalUpdate"; + case CONDITIONALDELETE: return "conditionalDelete"; + case REFERENCEPOLICY: return "referencePolicy"; + case SEARCHINCLUDE: return "searchInclude"; + case SEARCHREVINCLUDE: return "searchRevInclude"; + default: return "?"; + } + } + } + + public static class CapabilityFeatureEnumFactory implements EnumFactory { + public CapabilityFeature fromCode(String codeString) throws IllegalArgumentException { + if (codeString == null || "".equals(codeString)) + if (codeString == null || "".equals(codeString)) + return null; + if ("feature-header".equals(codeString)) + return CapabilityFeature.FEATUREHEADER; + if ("security-cors".equals(codeString)) + return CapabilityFeature.SECURITYCORS; + if ("security-service".equals(codeString)) + return CapabilityFeature.SECURITYSERVICE; + if ("versioning".equals(codeString)) + return CapabilityFeature.VERSIONING; + if ("readHistory".equals(codeString)) + return CapabilityFeature.READHISTORY; + if ("updateCreate".equals(codeString)) + return CapabilityFeature.UPDATECREATE; + if ("conditionalCreate".equals(codeString)) + return CapabilityFeature.CONDITIONALCREATE; + if ("conditionalRead".equals(codeString)) + return CapabilityFeature.CONDITIONALREAD; + if ("conditionalUpdate".equals(codeString)) + return CapabilityFeature.CONDITIONALUPDATE; + if ("conditionalDelete".equals(codeString)) + return CapabilityFeature.CONDITIONALDELETE; + if ("referencePolicy".equals(codeString)) + return CapabilityFeature.REFERENCEPOLICY; + if ("searchInclude".equals(codeString)) + return CapabilityFeature.SEARCHINCLUDE; + if ("searchRevInclude".equals(codeString)) + return CapabilityFeature.SEARCHREVINCLUDE; + throw new IllegalArgumentException("Unknown CapabilityFeature code '"+codeString+"'"); + } + public Enumeration fromType(Base code) throws FHIRException { + if (code == null) + return null; + if (code.isEmpty()) + return new Enumeration(this); + String codeString = ((PrimitiveType) code).asStringValue(); + if (codeString == null || "".equals(codeString)) + return null; + if ("feature-header".equals(codeString)) + return new Enumeration(this, CapabilityFeature.FEATUREHEADER); + if ("security-cors".equals(codeString)) + return new Enumeration(this, CapabilityFeature.SECURITYCORS); + if ("security-service".equals(codeString)) + return new Enumeration(this, CapabilityFeature.SECURITYSERVICE); + if ("versioning".equals(codeString)) + return new Enumeration(this, CapabilityFeature.VERSIONING); + if ("readHistory".equals(codeString)) + return new Enumeration(this, CapabilityFeature.READHISTORY); + if ("updateCreate".equals(codeString)) + return new Enumeration(this, CapabilityFeature.UPDATECREATE); + if ("conditionalCreate".equals(codeString)) + return new Enumeration(this, CapabilityFeature.CONDITIONALCREATE); + if ("conditionalRead".equals(codeString)) + return new Enumeration(this, CapabilityFeature.CONDITIONALREAD); + if ("conditionalUpdate".equals(codeString)) + return new Enumeration(this, CapabilityFeature.CONDITIONALUPDATE); + if ("conditionalDelete".equals(codeString)) + return new Enumeration(this, CapabilityFeature.CONDITIONALDELETE); + if ("referencePolicy".equals(codeString)) + return new Enumeration(this, CapabilityFeature.REFERENCEPOLICY); + if ("searchInclude".equals(codeString)) + return new Enumeration(this, CapabilityFeature.SEARCHINCLUDE); + if ("searchRevInclude".equals(codeString)) + return new Enumeration(this, CapabilityFeature.SEARCHREVINCLUDE); + throw new FHIRException("Unknown CapabilityFeature code '"+codeString+"'"); + } + public String toCode(CapabilityFeature code) { + if (code == CapabilityFeature.FEATUREHEADER) + return "feature-header"; + if (code == CapabilityFeature.SECURITYCORS) + return "security-cors"; + if (code == CapabilityFeature.SECURITYSERVICE) + return "security-service"; + if (code == CapabilityFeature.VERSIONING) + return "versioning"; + if (code == CapabilityFeature.READHISTORY) + return "readHistory"; + if (code == CapabilityFeature.UPDATECREATE) + return "updateCreate"; + if (code == CapabilityFeature.CONDITIONALCREATE) + return "conditionalCreate"; + if (code == CapabilityFeature.CONDITIONALREAD) + return "conditionalRead"; + if (code == CapabilityFeature.CONDITIONALUPDATE) + return "conditionalUpdate"; + if (code == CapabilityFeature.CONDITIONALDELETE) + return "conditionalDelete"; + if (code == CapabilityFeature.REFERENCEPOLICY) + return "referencePolicy"; + if (code == CapabilityFeature.SEARCHINCLUDE) + return "searchInclude"; + if (code == CapabilityFeature.SEARCHREVINCLUDE) + return "searchRevInclude"; + return "?"; + } + public String toSystem(CapabilityFeature code) { + return code.getSystem(); + } + } + + public enum CapabilityFeatureValue { + /** + * + */ + TRUE, + /** + * + */ + FALSE, + /** + * VersionId meta-property is not supported (server) or used (client). + */ + NOVERSION, + /** + * VersionId meta-property is supported (server) or used (client). + */ + VERSIONED, + /** + * VersionId must be correct for updates (server) or will be specified (If-match header) for updates (client). + */ + VERSIONEDUPDATE, + /** + * No support for conditional reads. + */ + NOTSUPPORTED, + /** + * Conditional reads are supported, but only with the If-Modified-Since HTTP Header. + */ + MODIFIEDSINCE, + /** + * Conditional reads are supported, but only with the If-None-Match HTTP Header. + */ + NOTMATCH, + /** + * Conditional reads are supported, with both If-Modified-Since and If-None-Match HTTP Headers. + */ + FULLSUPPORT, + /** + * Conditional deletes are supported, but only single resources at a time. + */ + SINGLE, + /** + * Conditional deletes are supported, and multiple resources can be deleted in a single interaction. + */ + MULTIPLE, + /** + * The server supports and populates Literal references (i.e. using Reference.reference) where they are known (this code does not guarantee that all references are literal; see 'enforced'). + */ + LITERAL, + /** + * The server allows logical references (i.e. using Reference.identifier). + */ + LOGICAL, + /** + * The server will attempt to resolve logical references to literal references - i.e. converting Reference.identifier to Reference.reference (if resolution fails, the server may still accept resources; see logical). + */ + RESOLVES, + /** + * The server enforces that references have integrity - e.g. it ensures that references can always be resolved. This is typically the case for clinical record systems, but often not the case for middleware/proxy systems. + */ + ENFORCED, + /** + * The server does not support references that point to other servers. + */ + LOCAL, + /** + * added to help the parsers with the generic types + */ + NULL; + public static CapabilityFeatureValue fromCode(String codeString) throws FHIRException { + if (codeString == null || "".equals(codeString)) + return null; + if ("true".equals(codeString)) + return TRUE; + if ("false".equals(codeString)) + return FALSE; + if ("no-version".equals(codeString)) + return NOVERSION; + if ("versioned".equals(codeString)) + return VERSIONED; + if ("versioned-update".equals(codeString)) + return VERSIONEDUPDATE; + if ("not-supported".equals(codeString)) + return NOTSUPPORTED; + if ("modified-since".equals(codeString)) + return MODIFIEDSINCE; + if ("not-match".equals(codeString)) + return NOTMATCH; + if ("full-support".equals(codeString)) + return FULLSUPPORT; + if ("single".equals(codeString)) + return SINGLE; + if ("multiple".equals(codeString)) + return MULTIPLE; + if ("literal".equals(codeString)) + return LITERAL; + if ("logical".equals(codeString)) + return LOGICAL; + if ("resolves".equals(codeString)) + return RESOLVES; + if ("enforced".equals(codeString)) + return ENFORCED; + if ("local".equals(codeString)) + return LOCAL; + if (Configuration.isAcceptInvalidEnums()) + return null; + else + throw new FHIRException("Unknown CapabilityFeatureValue code '"+codeString+"'"); + } + public String toCode() { + switch (this) { + case TRUE: return "true"; + case FALSE: return "false"; + case NOVERSION: return "no-version"; + case VERSIONED: return "versioned"; + case VERSIONEDUPDATE: return "versioned-update"; + case NOTSUPPORTED: return "not-supported"; + case MODIFIEDSINCE: return "modified-since"; + case NOTMATCH: return "not-match"; + case FULLSUPPORT: return "full-support"; + case SINGLE: return "single"; + case MULTIPLE: return "multiple"; + case LITERAL: return "literal"; + case LOGICAL: return "logical"; + case RESOLVES: return "resolves"; + case ENFORCED: return "enforced"; + case LOCAL: return "local"; + default: return "?"; + } + } + public String getSystem() { + switch (this) { + case TRUE: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case FALSE: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case NOVERSION: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case VERSIONED: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case VERSIONEDUPDATE: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case NOTSUPPORTED: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case MODIFIEDSINCE: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case NOTMATCH: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case FULLSUPPORT: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case SINGLE: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case MULTIPLE: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case LITERAL: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case LOGICAL: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case RESOLVES: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case ENFORCED: return "http://hl7.org/fhir/CodeSystem/capability-features"; + case LOCAL: return "http://hl7.org/fhir/CodeSystem/capability-features"; + default: return "?"; + } + } + public String getDefinition() { + switch (this) { + case TRUE: return ""; + case FALSE: return ""; + case NOVERSION: return "VersionId meta-property is not supported (server) or used (client)."; + case VERSIONED: return "VersionId meta-property is supported (server) or used (client)."; + case VERSIONEDUPDATE: return "VersionId must be correct for updates (server) or will be specified (If-match header) for updates (client)."; + case NOTSUPPORTED: return "No support for conditional reads."; + case MODIFIEDSINCE: return "Conditional reads are supported, but only with the If-Modified-Since HTTP Header."; + case NOTMATCH: return "Conditional reads are supported, but only with the If-None-Match HTTP Header."; + case FULLSUPPORT: return "Conditional reads are supported, with both If-Modified-Since and If-None-Match HTTP Headers."; + case SINGLE: return "Conditional deletes are supported, but only single resources at a time."; + case MULTIPLE: return "Conditional deletes are supported, and multiple resources can be deleted in a single interaction."; + case LITERAL: return "The server supports and populates Literal references (i.e. using Reference.reference) where they are known (this code does not guarantee that all references are literal; see 'enforced')."; + case LOGICAL: return "The server allows logical references (i.e. using Reference.identifier)."; + case RESOLVES: return "The server will attempt to resolve logical references to literal references - i.e. converting Reference.identifier to Reference.reference (if resolution fails, the server may still accept resources; see logical)."; + case ENFORCED: return "The server enforces that references have integrity - e.g. it ensures that references can always be resolved. This is typically the case for clinical record systems, but often not the case for middleware/proxy systems."; + case LOCAL: return "The server does not support references that point to other servers."; + default: return "?"; + } + } + public String getDisplay() { + switch (this) { + case TRUE: return "Value is true"; + case FALSE: return "Value is false"; + case NOVERSION: return "No VersionId Support"; + case VERSIONED: return "Versioned"; + case VERSIONEDUPDATE: return "VersionId tracked fully"; + case NOTSUPPORTED: return "Not Supported"; + case MODIFIEDSINCE: return "If-Modified-Since"; + case NOTMATCH: return "If-None-Match"; + case FULLSUPPORT: return "Full Support"; + case SINGLE: return "Single Deletes Supported"; + case MULTIPLE: return "Multiple Deletes Supported"; + case LITERAL: return "Literal References"; + case LOGICAL: return "Logical References"; + case RESOLVES: return "Resolves References"; + case ENFORCED: return "Reference Integrity Enforced"; + case LOCAL: return "Local References Only"; + default: return "?"; + } + } + } + + public static class CapabilityFeatureValueEnumFactory implements EnumFactory { + public CapabilityFeatureValue fromCode(String codeString) throws IllegalArgumentException { + if (codeString == null || "".equals(codeString)) + if (codeString == null || "".equals(codeString)) + return null; + if ("true".equals(codeString)) + return CapabilityFeatureValue.TRUE; + if ("false".equals(codeString)) + return CapabilityFeatureValue.FALSE; + if ("no-version".equals(codeString)) + return CapabilityFeatureValue.NOVERSION; + if ("versioned".equals(codeString)) + return CapabilityFeatureValue.VERSIONED; + if ("versioned-update".equals(codeString)) + return CapabilityFeatureValue.VERSIONEDUPDATE; + if ("not-supported".equals(codeString)) + return CapabilityFeatureValue.NOTSUPPORTED; + if ("modified-since".equals(codeString)) + return CapabilityFeatureValue.MODIFIEDSINCE; + if ("not-match".equals(codeString)) + return CapabilityFeatureValue.NOTMATCH; + if ("full-support".equals(codeString)) + return CapabilityFeatureValue.FULLSUPPORT; + if ("single".equals(codeString)) + return CapabilityFeatureValue.SINGLE; + if ("multiple".equals(codeString)) + return CapabilityFeatureValue.MULTIPLE; + if ("literal".equals(codeString)) + return CapabilityFeatureValue.LITERAL; + if ("logical".equals(codeString)) + return CapabilityFeatureValue.LOGICAL; + if ("resolves".equals(codeString)) + return CapabilityFeatureValue.RESOLVES; + if ("enforced".equals(codeString)) + return CapabilityFeatureValue.ENFORCED; + if ("local".equals(codeString)) + return CapabilityFeatureValue.LOCAL; + throw new IllegalArgumentException("Unknown CapabilityFeatureValue code '"+codeString+"'"); + } + public Enumeration fromType(Base code) throws FHIRException { + if (code == null) + return null; + if (code.isEmpty()) + return new Enumeration(this); + String codeString = ((PrimitiveType) code).asStringValue(); + if (codeString == null || "".equals(codeString)) + return null; + if ("true".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.TRUE); + if ("false".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.FALSE); + if ("no-version".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.NOVERSION); + if ("versioned".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.VERSIONED); + if ("versioned-update".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.VERSIONEDUPDATE); + if ("not-supported".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.NOTSUPPORTED); + if ("modified-since".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.MODIFIEDSINCE); + if ("not-match".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.NOTMATCH); + if ("full-support".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.FULLSUPPORT); + if ("single".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.SINGLE); + if ("multiple".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.MULTIPLE); + if ("literal".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.LITERAL); + if ("logical".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.LOGICAL); + if ("resolves".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.RESOLVES); + if ("enforced".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.ENFORCED); + if ("local".equals(codeString)) + return new Enumeration(this, CapabilityFeatureValue.LOCAL); + throw new FHIRException("Unknown CapabilityFeatureValue code '"+codeString+"'"); + } + public String toCode(CapabilityFeatureValue code) { + if (code == CapabilityFeatureValue.TRUE) + return "true"; + if (code == CapabilityFeatureValue.FALSE) + return "false"; + if (code == CapabilityFeatureValue.NOVERSION) + return "no-version"; + if (code == CapabilityFeatureValue.VERSIONED) + return "versioned"; + if (code == CapabilityFeatureValue.VERSIONEDUPDATE) + return "versioned-update"; + if (code == CapabilityFeatureValue.NOTSUPPORTED) + return "not-supported"; + if (code == CapabilityFeatureValue.MODIFIEDSINCE) + return "modified-since"; + if (code == CapabilityFeatureValue.NOTMATCH) + return "not-match"; + if (code == CapabilityFeatureValue.FULLSUPPORT) + return "full-support"; + if (code == CapabilityFeatureValue.SINGLE) + return "single"; + if (code == CapabilityFeatureValue.MULTIPLE) + return "multiple"; + if (code == CapabilityFeatureValue.LITERAL) + return "literal"; + if (code == CapabilityFeatureValue.LOGICAL) + return "logical"; + if (code == CapabilityFeatureValue.RESOLVES) + return "resolves"; + if (code == CapabilityFeatureValue.ENFORCED) + return "enforced"; + if (code == CapabilityFeatureValue.LOCAL) + return "local"; + return "?"; + } + public String toSystem(CapabilityFeatureValue code) { + return code.getSystem(); + } + } + public enum SystemRestfulInteraction { /** * Update, create or delete a set of resources as a single transaction. @@ -96,7 +680,6 @@ public class CapabilityStatement2 extends CanonicalResource { case BATCH: return "batch"; case SEARCHSYSTEM: return "search-system"; case HISTORYSYSTEM: return "history-system"; - case NULL: return null; default: return "?"; } } @@ -106,7 +689,6 @@ public class CapabilityStatement2 extends CanonicalResource { case BATCH: return "http://hl7.org/fhir/restful-interaction"; case SEARCHSYSTEM: return "http://hl7.org/fhir/restful-interaction"; case HISTORYSYSTEM: return "http://hl7.org/fhir/restful-interaction"; - case NULL: return null; default: return "?"; } } @@ -116,7 +698,6 @@ public class CapabilityStatement2 extends CanonicalResource { case BATCH: return "perform a set of a separate interactions in a single http operation"; case SEARCHSYSTEM: return "Search all resources based on some filter criteria."; case HISTORYSYSTEM: return "Retrieve the change history for all resources on a system."; - case NULL: return null; default: return "?"; } } @@ -126,7 +707,6 @@ public class CapabilityStatement2 extends CanonicalResource { case BATCH: return "batch"; case SEARCHSYSTEM: return "search-system"; case HISTORYSYSTEM: return "history-system"; - case NULL: return null; default: return "?"; } } @@ -259,7 +839,6 @@ public class CapabilityStatement2 extends CanonicalResource { case HISTORYTYPE: return "history-type"; case CREATE: return "create"; case SEARCHTYPE: return "search-type"; - case NULL: return null; default: return "?"; } } @@ -274,7 +853,6 @@ public class CapabilityStatement2 extends CanonicalResource { case HISTORYTYPE: return "http://hl7.org/fhir/restful-interaction"; case CREATE: return "http://hl7.org/fhir/restful-interaction"; case SEARCHTYPE: return "http://hl7.org/fhir/restful-interaction"; - case NULL: return null; default: return "?"; } } @@ -289,7 +867,6 @@ public class CapabilityStatement2 extends CanonicalResource { case HISTORYTYPE: return "Retrieve the change history for all resources of a particular type."; case CREATE: return "Create a new resource with a server assigned id."; case SEARCHTYPE: return "Search all resources of the specified type based on some filter criteria."; - case NULL: return null; default: return "?"; } } @@ -304,7 +881,6 @@ public class CapabilityStatement2 extends CanonicalResource { case HISTORYTYPE: return "history-type"; case CREATE: return "create"; case SEARCHTYPE: return "search-type"; - case NULL: return null; default: return "?"; } } @@ -1033,42 +1609,49 @@ public class CapabilityStatement2 extends CanonicalResource { @Description(shortDefinition="General description of implementation", formalDefinition="Information about the system's restful capabilities that apply across all applications, such as security." ) protected MarkdownType documentation; + /** + * A statement that affirms support for a feature. + */ + @Child(name = "feature", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Statement of support for a feature", formalDefinition="A statement that affirms support for a feature." ) + protected List feature; + /** * A specification of the restful capabilities of the solution for a specific resource type. */ - @Child(name = "resource", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "resource", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Resource served on the REST interface", formalDefinition="A specification of the restful capabilities of the solution for a specific resource type." ) protected List resource; /** * A specification of restful operations supported by the system. */ - @Child(name = "interaction", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "interaction", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="What operations are supported?", formalDefinition="A specification of restful operations supported by the system." ) protected List interaction; /** * Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation. */ - @Child(name = "searchParam", type = {CapabilityStatement2RestResourceSearchParamComponent.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "searchParam", type = {CapabilityStatement2RestResourceSearchParamComponent.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Search parameters for searching all resources", formalDefinition="Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation." ) protected List searchParam; /** * Definition of an operation or a named query together with its parameters and their meaning and type. */ - @Child(name = "operation", type = {CapabilityStatement2RestResourceOperationComponent.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "operation", type = {CapabilityStatement2RestResourceOperationComponent.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Definition of a system level operation", formalDefinition="Definition of an operation or a named query together with its parameters and their meaning and type." ) protected List operation; /** * An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by its canonical URL . */ - @Child(name = "compartment", type = {CanonicalType.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "compartment", type = {CanonicalType.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Compartments served/used by system", formalDefinition="An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by its canonical URL ." ) protected List compartment; - private static final long serialVersionUID = -476653235L; + private static final long serialVersionUID = 2139914073L; /** * Constructor @@ -1179,6 +1762,59 @@ public class CapabilityStatement2 extends CanonicalResource { return this; } + /** + * @return {@link #feature} (A statement that affirms support for a feature.) + */ + public List getFeature() { + if (this.feature == null) + this.feature = new ArrayList(); + return this.feature; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CapabilityStatement2RestComponent setFeature(List theFeature) { + this.feature = theFeature; + return this; + } + + public boolean hasFeature() { + if (this.feature == null) + return false; + for (CapabilityStatement2RestFeatureComponent item : this.feature) + if (!item.isEmpty()) + return true; + return false; + } + + public CapabilityStatement2RestFeatureComponent addFeature() { //3 + CapabilityStatement2RestFeatureComponent t = new CapabilityStatement2RestFeatureComponent(); + if (this.feature == null) + this.feature = new ArrayList(); + this.feature.add(t); + return t; + } + + public CapabilityStatement2RestComponent addFeature(CapabilityStatement2RestFeatureComponent t) { //3 + if (t == null) + return this; + if (this.feature == null) + this.feature = new ArrayList(); + this.feature.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #feature}, creating it if it does not already exist {3} + */ + public CapabilityStatement2RestFeatureComponent getFeatureFirstRep() { + if (getFeature().isEmpty()) { + addFeature(); + } + return getFeature().get(0); + } + /** * @return {@link #resource} (A specification of the restful capabilities of the solution for a specific resource type.) */ @@ -1456,6 +2092,7 @@ public class CapabilityStatement2 extends CanonicalResource { super.listChildren(children); children.add(new Property("mode", "code", "Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations.", 0, 1, mode)); children.add(new Property("documentation", "markdown", "Information about the system's restful capabilities that apply across all applications, such as security.", 0, 1, documentation)); + children.add(new Property("feature", "", "A statement that affirms support for a feature.", 0, java.lang.Integer.MAX_VALUE, feature)); children.add(new Property("resource", "", "A specification of the restful capabilities of the solution for a specific resource type.", 0, java.lang.Integer.MAX_VALUE, resource)); children.add(new Property("interaction", "", "A specification of restful operations supported by the system.", 0, java.lang.Integer.MAX_VALUE, interaction)); children.add(new Property("searchParam", "@CapabilityStatement2.rest.resource.searchParam", "Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.", 0, java.lang.Integer.MAX_VALUE, searchParam)); @@ -1468,6 +2105,7 @@ public class CapabilityStatement2 extends CanonicalResource { switch (_hash) { case 3357091: /*mode*/ return new Property("mode", "code", "Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations.", 0, 1, mode); case 1587405498: /*documentation*/ return new Property("documentation", "markdown", "Information about the system's restful capabilities that apply across all applications, such as security.", 0, 1, documentation); + case -979207434: /*feature*/ return new Property("feature", "", "A statement that affirms support for a feature.", 0, java.lang.Integer.MAX_VALUE, feature); case -341064690: /*resource*/ return new Property("resource", "", "A specification of the restful capabilities of the solution for a specific resource type.", 0, java.lang.Integer.MAX_VALUE, resource); case 1844104722: /*interaction*/ return new Property("interaction", "", "A specification of restful operations supported by the system.", 0, java.lang.Integer.MAX_VALUE, interaction); case -553645115: /*searchParam*/ return new Property("searchParam", "@CapabilityStatement2.rest.resource.searchParam", "Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.", 0, java.lang.Integer.MAX_VALUE, searchParam); @@ -1483,6 +2121,7 @@ public class CapabilityStatement2 extends CanonicalResource { switch (hash) { case 3357091: /*mode*/ return this.mode == null ? new Base[0] : new Base[] {this.mode}; // Enumeration case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // MarkdownType + case -979207434: /*feature*/ return this.feature == null ? new Base[0] : this.feature.toArray(new Base[this.feature.size()]); // CapabilityStatement2RestFeatureComponent case -341064690: /*resource*/ return this.resource == null ? new Base[0] : this.resource.toArray(new Base[this.resource.size()]); // CapabilityStatement2RestResourceComponent case 1844104722: /*interaction*/ return this.interaction == null ? new Base[0] : this.interaction.toArray(new Base[this.interaction.size()]); // SystemInteractionComponent case -553645115: /*searchParam*/ return this.searchParam == null ? new Base[0] : this.searchParam.toArray(new Base[this.searchParam.size()]); // CapabilityStatement2RestResourceSearchParamComponent @@ -1503,6 +2142,9 @@ public class CapabilityStatement2 extends CanonicalResource { case 1587405498: // documentation this.documentation = TypeConvertor.castToMarkdown(value); // MarkdownType return value; + case -979207434: // feature + this.getFeature().add((CapabilityStatement2RestFeatureComponent) value); // CapabilityStatement2RestFeatureComponent + return value; case -341064690: // resource this.getResource().add((CapabilityStatement2RestResourceComponent) value); // CapabilityStatement2RestResourceComponent return value; @@ -1530,6 +2172,8 @@ public class CapabilityStatement2 extends CanonicalResource { this.mode = (Enumeration) value; // Enumeration } else if (name.equals("documentation")) { this.documentation = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("feature")) { + this.getFeature().add((CapabilityStatement2RestFeatureComponent) value); } else if (name.equals("resource")) { this.getResource().add((CapabilityStatement2RestResourceComponent) value); } else if (name.equals("interaction")) { @@ -1550,6 +2194,7 @@ public class CapabilityStatement2 extends CanonicalResource { switch (hash) { case 3357091: return getModeElement(); case 1587405498: return getDocumentationElement(); + case -979207434: return addFeature(); case -341064690: return addResource(); case 1844104722: return addInteraction(); case -553645115: return addSearchParam(); @@ -1565,6 +2210,7 @@ public class CapabilityStatement2 extends CanonicalResource { switch (hash) { case 3357091: /*mode*/ return new String[] {"code"}; case 1587405498: /*documentation*/ return new String[] {"markdown"}; + case -979207434: /*feature*/ return new String[] {}; case -341064690: /*resource*/ return new String[] {}; case 1844104722: /*interaction*/ return new String[] {}; case -553645115: /*searchParam*/ return new String[] {"@CapabilityStatement2.rest.resource.searchParam"}; @@ -1583,6 +2229,9 @@ public class CapabilityStatement2 extends CanonicalResource { else if (name.equals("documentation")) { throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.rest.documentation"); } + else if (name.equals("feature")) { + return addFeature(); + } else if (name.equals("resource")) { return addResource(); } @@ -1612,6 +2261,11 @@ public class CapabilityStatement2 extends CanonicalResource { super.copyValues(dst); dst.mode = mode == null ? null : mode.copy(); dst.documentation = documentation == null ? null : documentation.copy(); + if (feature != null) { + dst.feature = new ArrayList(); + for (CapabilityStatement2RestFeatureComponent i : feature) + dst.feature.add(i.copy()); + }; if (resource != null) { dst.resource = new ArrayList(); for (CapabilityStatement2RestResourceComponent i : resource) @@ -1646,8 +2300,8 @@ public class CapabilityStatement2 extends CanonicalResource { if (!(other_ instanceof CapabilityStatement2RestComponent)) return false; CapabilityStatement2RestComponent o = (CapabilityStatement2RestComponent) other_; - return compareDeep(mode, o.mode, true) && compareDeep(documentation, o.documentation, true) && compareDeep(resource, o.resource, true) - && compareDeep(interaction, o.interaction, true) && compareDeep(searchParam, o.searchParam, true) + return compareDeep(mode, o.mode, true) && compareDeep(documentation, o.documentation, true) && compareDeep(feature, o.feature, true) + && compareDeep(resource, o.resource, true) && compareDeep(interaction, o.interaction, true) && compareDeep(searchParam, o.searchParam, true) && compareDeep(operation, o.operation, true) && compareDeep(compartment, o.compartment, true); } @@ -1663,8 +2317,8 @@ public class CapabilityStatement2 extends CanonicalResource { } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(mode, documentation, resource - , interaction, searchParam, operation, compartment); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(mode, documentation, feature + , resource, interaction, searchParam, operation, compartment); } public String fhirType() { @@ -1672,6 +2326,262 @@ public class CapabilityStatement2 extends CanonicalResource { } + } + + @Block() + public static class CapabilityStatement2RestFeatureComponent extends BackboneElement implements IBaseBackboneElement { + /** + * A code that describes the feature being reported on. + */ + @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="Feature that is being reported", formalDefinition="A code that describes the feature being reported on." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/capability-feature") + protected Enumeration code; + + /** + * A value for the feature - maybe true, false, or one of the set of codes allowed in the definition of the feature code. + */ + @Child(name = "value", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="Value of the feature (true, false, or a code)", formalDefinition="A value for the feature - maybe true, false, or one of the set of codes allowed in the definition of the feature code." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/capability-feature-value") + protected Enumeration value; + + private static final long serialVersionUID = 782619829L; + + /** + * Constructor + */ + public CapabilityStatement2RestFeatureComponent() { + super(); + } + + /** + * Constructor + */ + public CapabilityStatement2RestFeatureComponent(CapabilityFeature code, CapabilityFeatureValue value) { + super(); + this.setCode(code); + this.setValue(value); + } + + /** + * @return {@link #code} (A code that describes the feature being reported on.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value + */ + public Enumeration getCodeElement() { + if (this.code == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CapabilityStatement2RestFeatureComponent.code"); + else if (Configuration.doAutoCreate()) + this.code = new Enumeration(new CapabilityFeatureEnumFactory()); // bb + return this.code; + } + + public boolean hasCodeElement() { + return this.code != null && !this.code.isEmpty(); + } + + public boolean hasCode() { + return this.code != null && !this.code.isEmpty(); + } + + /** + * @param value {@link #code} (A code that describes the feature being reported on.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value + */ + public CapabilityStatement2RestFeatureComponent setCodeElement(Enumeration value) { + this.code = value; + return this; + } + + /** + * @return A code that describes the feature being reported on. + */ + public CapabilityFeature getCode() { + return this.code == null ? null : this.code.getValue(); + } + + /** + * @param value A code that describes the feature being reported on. + */ + public CapabilityStatement2RestFeatureComponent setCode(CapabilityFeature value) { + if (this.code == null) + this.code = new Enumeration(new CapabilityFeatureEnumFactory()); + this.code.setValue(value); + return this; + } + + /** + * @return {@link #value} (A value for the feature - maybe true, false, or one of the set of codes allowed in the definition of the feature code.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value + */ + public Enumeration getValueElement() { + if (this.value == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CapabilityStatement2RestFeatureComponent.value"); + else if (Configuration.doAutoCreate()) + this.value = new Enumeration(new CapabilityFeatureValueEnumFactory()); // bb + return this.value; + } + + public boolean hasValueElement() { + return this.value != null && !this.value.isEmpty(); + } + + public boolean hasValue() { + return this.value != null && !this.value.isEmpty(); + } + + /** + * @param value {@link #value} (A value for the feature - maybe true, false, or one of the set of codes allowed in the definition of the feature code.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value + */ + public CapabilityStatement2RestFeatureComponent setValueElement(Enumeration value) { + this.value = value; + return this; + } + + /** + * @return A value for the feature - maybe true, false, or one of the set of codes allowed in the definition of the feature code. + */ + public CapabilityFeatureValue getValue() { + return this.value == null ? null : this.value.getValue(); + } + + /** + * @param value A value for the feature - maybe true, false, or one of the set of codes allowed in the definition of the feature code. + */ + public CapabilityStatement2RestFeatureComponent setValue(CapabilityFeatureValue value) { + if (this.value == null) + this.value = new Enumeration(new CapabilityFeatureValueEnumFactory()); + this.value.setValue(value); + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("code", "code", "A code that describes the feature being reported on.", 0, 1, code)); + children.add(new Property("value", "code", "A value for the feature - maybe true, false, or one of the set of codes allowed in the definition of the feature code.", 0, 1, value)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3059181: /*code*/ return new Property("code", "code", "A code that describes the feature being reported on.", 0, 1, code); + case 111972721: /*value*/ return new Property("value", "code", "A value for the feature - maybe true, false, or one of the set of codes allowed in the definition of the feature code.", 0, 1, value); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // Enumeration + case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // Enumeration + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3059181: // code + value = new CapabilityFeatureEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.code = (Enumeration) value; // Enumeration + return value; + case 111972721: // value + value = new CapabilityFeatureValueEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.value = (Enumeration) value; // Enumeration + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("code")) { + value = new CapabilityFeatureEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.code = (Enumeration) value; // Enumeration + } else if (name.equals("value")) { + value = new CapabilityFeatureValueEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.value = (Enumeration) value; // Enumeration + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3059181: return getCodeElement(); + case 111972721: return getValueElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3059181: /*code*/ return new String[] {"code"}; + case 111972721: /*value*/ return new String[] {"code"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("code")) { + throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.rest.feature.code"); + } + else if (name.equals("value")) { + throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.rest.feature.value"); + } + else + return super.addChild(name); + } + + public CapabilityStatement2RestFeatureComponent copy() { + CapabilityStatement2RestFeatureComponent dst = new CapabilityStatement2RestFeatureComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(CapabilityStatement2RestFeatureComponent dst) { + super.copyValues(dst); + dst.code = code == null ? null : code.copy(); + dst.value = value == null ? null : value.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof CapabilityStatement2RestFeatureComponent)) + return false; + CapabilityStatement2RestFeatureComponent o = (CapabilityStatement2RestFeatureComponent) other_; + return compareDeep(code, o.code, true) && compareDeep(value, o.value, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof CapabilityStatement2RestFeatureComponent)) + return false; + CapabilityStatement2RestFeatureComponent o = (CapabilityStatement2RestFeatureComponent) other_; + return compareValues(code, o.code, true) && compareValues(value, o.value, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, value); + } + + public String fhirType() { + return "CapabilityStatement2.rest.feature"; + + } + } @Block() @@ -1705,28 +2615,35 @@ public class CapabilityStatement2 extends CanonicalResource { @Description(shortDefinition="Additional information about the use of the resource type", formalDefinition="Additional information about the resource type used by the system." ) protected MarkdownType documentation; + /** + * A statement that affirms support for a feature, in this context. + */ + @Child(name = "feature", type = {CapabilityStatement2RestFeatureComponent.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Statement of support for a feature in this context", formalDefinition="A statement that affirms support for a feature, in this context." ) + protected List feature; + /** * Identifies a restful operation supported by the solution. */ - @Child(name = "interaction", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "interaction", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="What operations are supported?", formalDefinition="Identifies a restful operation supported by the solution." ) protected List interaction; /** * Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation. */ - @Child(name = "searchParam", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "searchParam", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Search parameters supported by implementation", formalDefinition="Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation." ) protected List searchParam; /** * Definition of an operation or a named query together with its parameters and their meaning and type. Consult the definition of the operation for details about how to invoke the operation, and the parameters. */ - @Child(name = "operation", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "operation", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Definition of a resource operation", formalDefinition="Definition of an operation or a named query together with its parameters and their meaning and type. Consult the definition of the operation for details about how to invoke the operation, and the parameters." ) protected List operation; - private static final long serialVersionUID = 1394978037L; + private static final long serialVersionUID = -815167785L; /** * Constructor @@ -1947,6 +2864,59 @@ public class CapabilityStatement2 extends CanonicalResource { return this; } + /** + * @return {@link #feature} (A statement that affirms support for a feature, in this context.) + */ + public List getFeature() { + if (this.feature == null) + this.feature = new ArrayList(); + return this.feature; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CapabilityStatement2RestResourceComponent setFeature(List theFeature) { + this.feature = theFeature; + return this; + } + + public boolean hasFeature() { + if (this.feature == null) + return false; + for (CapabilityStatement2RestFeatureComponent item : this.feature) + if (!item.isEmpty()) + return true; + return false; + } + + public CapabilityStatement2RestFeatureComponent addFeature() { //3 + CapabilityStatement2RestFeatureComponent t = new CapabilityStatement2RestFeatureComponent(); + if (this.feature == null) + this.feature = new ArrayList(); + this.feature.add(t); + return t; + } + + public CapabilityStatement2RestResourceComponent addFeature(CapabilityStatement2RestFeatureComponent t) { //3 + if (t == null) + return this; + if (this.feature == null) + this.feature = new ArrayList(); + this.feature.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #feature}, creating it if it does not already exist {3} + */ + public CapabilityStatement2RestFeatureComponent getFeatureFirstRep() { + if (getFeature().isEmpty()) { + addFeature(); + } + return getFeature().get(0); + } + /** * @return {@link #interaction} (Identifies a restful operation supported by the solution.) */ @@ -2112,6 +3082,7 @@ public class CapabilityStatement2 extends CanonicalResource { children.add(new Property("profile", "canonical(StructureDefinition)", "A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles](profiling.html#profile-uses).", 0, 1, profile)); children.add(new Property("supportedProfile", "canonical(StructureDefinition)", "A list of profiles that represent different use cases supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles](profiling.html#profile-uses).", 0, java.lang.Integer.MAX_VALUE, supportedProfile)); children.add(new Property("documentation", "markdown", "Additional information about the resource type used by the system.", 0, 1, documentation)); + children.add(new Property("feature", "@CapabilityStatement2.rest.feature", "A statement that affirms support for a feature, in this context.", 0, java.lang.Integer.MAX_VALUE, feature)); children.add(new Property("interaction", "", "Identifies a restful operation supported by the solution.", 0, java.lang.Integer.MAX_VALUE, interaction)); children.add(new Property("searchParam", "", "Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.", 0, java.lang.Integer.MAX_VALUE, searchParam)); children.add(new Property("operation", "", "Definition of an operation or a named query together with its parameters and their meaning and type. Consult the definition of the operation for details about how to invoke the operation, and the parameters.", 0, java.lang.Integer.MAX_VALUE, operation)); @@ -2124,6 +3095,7 @@ public class CapabilityStatement2 extends CanonicalResource { case -309425751: /*profile*/ return new Property("profile", "canonical(StructureDefinition)", "A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles](profiling.html#profile-uses).", 0, 1, profile); case 1225477403: /*supportedProfile*/ return new Property("supportedProfile", "canonical(StructureDefinition)", "A list of profiles that represent different use cases supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles](profiling.html#profile-uses).", 0, java.lang.Integer.MAX_VALUE, supportedProfile); case 1587405498: /*documentation*/ return new Property("documentation", "markdown", "Additional information about the resource type used by the system.", 0, 1, documentation); + case -979207434: /*feature*/ return new Property("feature", "@CapabilityStatement2.rest.feature", "A statement that affirms support for a feature, in this context.", 0, java.lang.Integer.MAX_VALUE, feature); case 1844104722: /*interaction*/ return new Property("interaction", "", "Identifies a restful operation supported by the solution.", 0, java.lang.Integer.MAX_VALUE, interaction); case -553645115: /*searchParam*/ return new Property("searchParam", "", "Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.", 0, java.lang.Integer.MAX_VALUE, searchParam); case 1662702951: /*operation*/ return new Property("operation", "", "Definition of an operation or a named query together with its parameters and their meaning and type. Consult the definition of the operation for details about how to invoke the operation, and the parameters.", 0, java.lang.Integer.MAX_VALUE, operation); @@ -2139,6 +3111,7 @@ public class CapabilityStatement2 extends CanonicalResource { case -309425751: /*profile*/ return this.profile == null ? new Base[0] : new Base[] {this.profile}; // CanonicalType case 1225477403: /*supportedProfile*/ return this.supportedProfile == null ? new Base[0] : this.supportedProfile.toArray(new Base[this.supportedProfile.size()]); // CanonicalType case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // MarkdownType + case -979207434: /*feature*/ return this.feature == null ? new Base[0] : this.feature.toArray(new Base[this.feature.size()]); // CapabilityStatement2RestFeatureComponent case 1844104722: /*interaction*/ return this.interaction == null ? new Base[0] : this.interaction.toArray(new Base[this.interaction.size()]); // ResourceInteractionComponent case -553645115: /*searchParam*/ return this.searchParam == null ? new Base[0] : this.searchParam.toArray(new Base[this.searchParam.size()]); // CapabilityStatement2RestResourceSearchParamComponent case 1662702951: /*operation*/ return this.operation == null ? new Base[0] : this.operation.toArray(new Base[this.operation.size()]); // CapabilityStatement2RestResourceOperationComponent @@ -2162,6 +3135,9 @@ public class CapabilityStatement2 extends CanonicalResource { case 1587405498: // documentation this.documentation = TypeConvertor.castToMarkdown(value); // MarkdownType return value; + case -979207434: // feature + this.getFeature().add((CapabilityStatement2RestFeatureComponent) value); // CapabilityStatement2RestFeatureComponent + return value; case 1844104722: // interaction this.getInteraction().add((ResourceInteractionComponent) value); // ResourceInteractionComponent return value; @@ -2186,6 +3162,8 @@ public class CapabilityStatement2 extends CanonicalResource { this.getSupportedProfile().add(TypeConvertor.castToCanonical(value)); } else if (name.equals("documentation")) { this.documentation = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("feature")) { + this.getFeature().add((CapabilityStatement2RestFeatureComponent) value); } else if (name.equals("interaction")) { this.getInteraction().add((ResourceInteractionComponent) value); } else if (name.equals("searchParam")) { @@ -2204,6 +3182,7 @@ public class CapabilityStatement2 extends CanonicalResource { case -309425751: return getProfileElement(); case 1225477403: return addSupportedProfileElement(); case 1587405498: return getDocumentationElement(); + case -979207434: return addFeature(); case 1844104722: return addInteraction(); case -553645115: return addSearchParam(); case 1662702951: return addOperation(); @@ -2219,6 +3198,7 @@ public class CapabilityStatement2 extends CanonicalResource { case -309425751: /*profile*/ return new String[] {"canonical"}; case 1225477403: /*supportedProfile*/ return new String[] {"canonical"}; case 1587405498: /*documentation*/ return new String[] {"markdown"}; + case -979207434: /*feature*/ return new String[] {"@CapabilityStatement2.rest.feature"}; case 1844104722: /*interaction*/ return new String[] {}; case -553645115: /*searchParam*/ return new String[] {}; case 1662702951: /*operation*/ return new String[] {}; @@ -2241,6 +3221,9 @@ public class CapabilityStatement2 extends CanonicalResource { else if (name.equals("documentation")) { throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.rest.resource.documentation"); } + else if (name.equals("feature")) { + return addFeature(); + } else if (name.equals("interaction")) { return addInteraction(); } @@ -2270,6 +3253,11 @@ public class CapabilityStatement2 extends CanonicalResource { dst.supportedProfile.add(i.copy()); }; dst.documentation = documentation == null ? null : documentation.copy(); + if (feature != null) { + dst.feature = new ArrayList(); + for (CapabilityStatement2RestFeatureComponent i : feature) + dst.feature.add(i.copy()); + }; if (interaction != null) { dst.interaction = new ArrayList(); for (ResourceInteractionComponent i : interaction) @@ -2295,7 +3283,7 @@ public class CapabilityStatement2 extends CanonicalResource { return false; CapabilityStatement2RestResourceComponent o = (CapabilityStatement2RestResourceComponent) other_; return compareDeep(type, o.type, true) && compareDeep(profile, o.profile, true) && compareDeep(supportedProfile, o.supportedProfile, true) - && compareDeep(documentation, o.documentation, true) && compareDeep(interaction, o.interaction, true) + && compareDeep(documentation, o.documentation, true) && compareDeep(feature, o.feature, true) && compareDeep(interaction, o.interaction, true) && compareDeep(searchParam, o.searchParam, true) && compareDeep(operation, o.operation, true); } @@ -2312,7 +3300,7 @@ public class CapabilityStatement2 extends CanonicalResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, profile, supportedProfile - , documentation, interaction, searchParam, operation); + , documentation, feature, interaction, searchParam, operation); } public String fhirType() { @@ -2339,7 +3327,14 @@ public class CapabilityStatement2 extends CanonicalResource { @Description(shortDefinition="Anything special about operation behavior", formalDefinition="Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'." ) protected MarkdownType documentation; - private static final long serialVersionUID = 2128937796L; + /** + * A statement that affirms support for a feature, in this context. + */ + @Child(name = "feature", type = {CapabilityStatement2RestFeatureComponent.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Statement of support for a feature in this context", formalDefinition="A statement that affirms support for a feature, in this context." ) + protected List feature; + + private static final long serialVersionUID = -543206334L; /** * Constructor @@ -2450,10 +3445,64 @@ public class CapabilityStatement2 extends CanonicalResource { return this; } + /** + * @return {@link #feature} (A statement that affirms support for a feature, in this context.) + */ + public List getFeature() { + if (this.feature == null) + this.feature = new ArrayList(); + return this.feature; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResourceInteractionComponent setFeature(List theFeature) { + this.feature = theFeature; + return this; + } + + public boolean hasFeature() { + if (this.feature == null) + return false; + for (CapabilityStatement2RestFeatureComponent item : this.feature) + if (!item.isEmpty()) + return true; + return false; + } + + public CapabilityStatement2RestFeatureComponent addFeature() { //3 + CapabilityStatement2RestFeatureComponent t = new CapabilityStatement2RestFeatureComponent(); + if (this.feature == null) + this.feature = new ArrayList(); + this.feature.add(t); + return t; + } + + public ResourceInteractionComponent addFeature(CapabilityStatement2RestFeatureComponent t) { //3 + if (t == null) + return this; + if (this.feature == null) + this.feature = new ArrayList(); + this.feature.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #feature}, creating it if it does not already exist {3} + */ + public CapabilityStatement2RestFeatureComponent getFeatureFirstRep() { + if (getFeature().isEmpty()) { + addFeature(); + } + return getFeature().get(0); + } + protected void listChildren(List children) { super.listChildren(children); children.add(new Property("code", "code", "Coded identifier of the operation, supported by the system resource.", 0, 1, code)); children.add(new Property("documentation", "markdown", "Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'.", 0, 1, documentation)); + children.add(new Property("feature", "@CapabilityStatement2.rest.feature", "A statement that affirms support for a feature, in this context.", 0, java.lang.Integer.MAX_VALUE, feature)); } @Override @@ -2461,6 +3510,7 @@ public class CapabilityStatement2 extends CanonicalResource { switch (_hash) { case 3059181: /*code*/ return new Property("code", "code", "Coded identifier of the operation, supported by the system resource.", 0, 1, code); case 1587405498: /*documentation*/ return new Property("documentation", "markdown", "Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'.", 0, 1, documentation); + case -979207434: /*feature*/ return new Property("feature", "@CapabilityStatement2.rest.feature", "A statement that affirms support for a feature, in this context.", 0, java.lang.Integer.MAX_VALUE, feature); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -2471,6 +3521,7 @@ public class CapabilityStatement2 extends CanonicalResource { switch (hash) { case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // Enumeration case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // MarkdownType + case -979207434: /*feature*/ return this.feature == null ? new Base[0] : this.feature.toArray(new Base[this.feature.size()]); // CapabilityStatement2RestFeatureComponent default: return super.getProperty(hash, name, checkValid); } @@ -2486,6 +3537,9 @@ public class CapabilityStatement2 extends CanonicalResource { case 1587405498: // documentation this.documentation = TypeConvertor.castToMarkdown(value); // MarkdownType return value; + case -979207434: // feature + this.getFeature().add((CapabilityStatement2RestFeatureComponent) value); // CapabilityStatement2RestFeatureComponent + return value; default: return super.setProperty(hash, name, value); } @@ -2498,6 +3552,8 @@ public class CapabilityStatement2 extends CanonicalResource { this.code = (Enumeration) value; // Enumeration } else if (name.equals("documentation")) { this.documentation = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("feature")) { + this.getFeature().add((CapabilityStatement2RestFeatureComponent) value); } else return super.setProperty(name, value); return value; @@ -2508,6 +3564,7 @@ public class CapabilityStatement2 extends CanonicalResource { switch (hash) { case 3059181: return getCodeElement(); case 1587405498: return getDocumentationElement(); + case -979207434: return addFeature(); default: return super.makeProperty(hash, name); } @@ -2518,6 +3575,7 @@ public class CapabilityStatement2 extends CanonicalResource { switch (hash) { case 3059181: /*code*/ return new String[] {"code"}; case 1587405498: /*documentation*/ return new String[] {"markdown"}; + case -979207434: /*feature*/ return new String[] {"@CapabilityStatement2.rest.feature"}; default: return super.getTypesForProperty(hash, name); } @@ -2531,6 +3589,9 @@ public class CapabilityStatement2 extends CanonicalResource { else if (name.equals("documentation")) { throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.rest.resource.interaction.documentation"); } + else if (name.equals("feature")) { + return addFeature(); + } else return super.addChild(name); } @@ -2545,6 +3606,11 @@ public class CapabilityStatement2 extends CanonicalResource { super.copyValues(dst); dst.code = code == null ? null : code.copy(); dst.documentation = documentation == null ? null : documentation.copy(); + if (feature != null) { + dst.feature = new ArrayList(); + for (CapabilityStatement2RestFeatureComponent i : feature) + dst.feature.add(i.copy()); + }; } @Override @@ -2554,7 +3620,8 @@ public class CapabilityStatement2 extends CanonicalResource { if (!(other_ instanceof ResourceInteractionComponent)) return false; ResourceInteractionComponent o = (ResourceInteractionComponent) other_; - return compareDeep(code, o.code, true) && compareDeep(documentation, o.documentation, true); + return compareDeep(code, o.code, true) && compareDeep(documentation, o.documentation, true) && compareDeep(feature, o.feature, true) + ; } @Override @@ -2568,7 +3635,8 @@ public class CapabilityStatement2 extends CanonicalResource { } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, documentation); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, documentation, feature + ); } public String fhirType() { @@ -2609,7 +3677,14 @@ public class CapabilityStatement2 extends CanonicalResource { @Description(shortDefinition="Server-specific usage", formalDefinition="This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms." ) protected MarkdownType documentation; - private static final long serialVersionUID = -171123928L; + /** + * A statement that affirms support for a feature, in this context. + */ + @Child(name = "feature", type = {CapabilityStatement2RestFeatureComponent.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Statement of support for a feature in this context", formalDefinition="A statement that affirms support for a feature, in this context." ) + protected List feature; + + private static final long serialVersionUID = -300448290L; /** * Constructor @@ -2815,12 +3890,66 @@ public class CapabilityStatement2 extends CanonicalResource { return this; } + /** + * @return {@link #feature} (A statement that affirms support for a feature, in this context.) + */ + public List getFeature() { + if (this.feature == null) + this.feature = new ArrayList(); + return this.feature; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CapabilityStatement2RestResourceSearchParamComponent setFeature(List theFeature) { + this.feature = theFeature; + return this; + } + + public boolean hasFeature() { + if (this.feature == null) + return false; + for (CapabilityStatement2RestFeatureComponent item : this.feature) + if (!item.isEmpty()) + return true; + return false; + } + + public CapabilityStatement2RestFeatureComponent addFeature() { //3 + CapabilityStatement2RestFeatureComponent t = new CapabilityStatement2RestFeatureComponent(); + if (this.feature == null) + this.feature = new ArrayList(); + this.feature.add(t); + return t; + } + + public CapabilityStatement2RestResourceSearchParamComponent addFeature(CapabilityStatement2RestFeatureComponent t) { //3 + if (t == null) + return this; + if (this.feature == null) + this.feature = new ArrayList(); + this.feature.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #feature}, creating it if it does not already exist {3} + */ + public CapabilityStatement2RestFeatureComponent getFeatureFirstRep() { + if (getFeature().isEmpty()) { + addFeature(); + } + return getFeature().get(0); + } + protected void listChildren(List children) { super.listChildren(children); children.add(new Property("name", "string", "The name of the search parameter used in the interface.", 0, 1, name)); children.add(new Property("definition", "canonical(SearchParameter)", "An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [SearchParameter.url](searchparameter-definitions.html#SearchParameter.url)). This element SHALL be populated if the search parameter refers to a SearchParameter defined by the FHIR core specification or externally defined IGs.", 0, 1, definition)); children.add(new Property("type", "code", "The type of value a search parameter refers to, and how the content is interpreted.", 0, 1, type)); children.add(new Property("documentation", "markdown", "This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms.", 0, 1, documentation)); + children.add(new Property("feature", "@CapabilityStatement2.rest.feature", "A statement that affirms support for a feature, in this context.", 0, java.lang.Integer.MAX_VALUE, feature)); } @Override @@ -2830,6 +3959,7 @@ public class CapabilityStatement2 extends CanonicalResource { case -1014418093: /*definition*/ return new Property("definition", "canonical(SearchParameter)", "An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [SearchParameter.url](searchparameter-definitions.html#SearchParameter.url)). This element SHALL be populated if the search parameter refers to a SearchParameter defined by the FHIR core specification or externally defined IGs.", 0, 1, definition); case 3575610: /*type*/ return new Property("type", "code", "The type of value a search parameter refers to, and how the content is interpreted.", 0, 1, type); case 1587405498: /*documentation*/ return new Property("documentation", "markdown", "This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms.", 0, 1, documentation); + case -979207434: /*feature*/ return new Property("feature", "@CapabilityStatement2.rest.feature", "A statement that affirms support for a feature, in this context.", 0, java.lang.Integer.MAX_VALUE, feature); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -2842,6 +3972,7 @@ public class CapabilityStatement2 extends CanonicalResource { case -1014418093: /*definition*/ return this.definition == null ? new Base[0] : new Base[] {this.definition}; // CanonicalType case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // MarkdownType + case -979207434: /*feature*/ return this.feature == null ? new Base[0] : this.feature.toArray(new Base[this.feature.size()]); // CapabilityStatement2RestFeatureComponent default: return super.getProperty(hash, name, checkValid); } @@ -2863,6 +3994,9 @@ public class CapabilityStatement2 extends CanonicalResource { case 1587405498: // documentation this.documentation = TypeConvertor.castToMarkdown(value); // MarkdownType return value; + case -979207434: // feature + this.getFeature().add((CapabilityStatement2RestFeatureComponent) value); // CapabilityStatement2RestFeatureComponent + return value; default: return super.setProperty(hash, name, value); } @@ -2879,6 +4013,8 @@ public class CapabilityStatement2 extends CanonicalResource { this.type = (Enumeration) value; // Enumeration } else if (name.equals("documentation")) { this.documentation = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("feature")) { + this.getFeature().add((CapabilityStatement2RestFeatureComponent) value); } else return super.setProperty(name, value); return value; @@ -2891,6 +4027,7 @@ public class CapabilityStatement2 extends CanonicalResource { case -1014418093: return getDefinitionElement(); case 3575610: return getTypeElement(); case 1587405498: return getDocumentationElement(); + case -979207434: return addFeature(); default: return super.makeProperty(hash, name); } @@ -2903,6 +4040,7 @@ public class CapabilityStatement2 extends CanonicalResource { case -1014418093: /*definition*/ return new String[] {"canonical"}; case 3575610: /*type*/ return new String[] {"code"}; case 1587405498: /*documentation*/ return new String[] {"markdown"}; + case -979207434: /*feature*/ return new String[] {"@CapabilityStatement2.rest.feature"}; default: return super.getTypesForProperty(hash, name); } @@ -2922,6 +4060,9 @@ public class CapabilityStatement2 extends CanonicalResource { else if (name.equals("documentation")) { throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.rest.resource.searchParam.documentation"); } + else if (name.equals("feature")) { + return addFeature(); + } else return super.addChild(name); } @@ -2938,6 +4079,11 @@ public class CapabilityStatement2 extends CanonicalResource { dst.definition = definition == null ? null : definition.copy(); dst.type = type == null ? null : type.copy(); dst.documentation = documentation == null ? null : documentation.copy(); + if (feature != null) { + dst.feature = new ArrayList(); + for (CapabilityStatement2RestFeatureComponent i : feature) + dst.feature.add(i.copy()); + }; } @Override @@ -2948,7 +4094,7 @@ public class CapabilityStatement2 extends CanonicalResource { return false; CapabilityStatement2RestResourceSearchParamComponent o = (CapabilityStatement2RestResourceSearchParamComponent) other_; return compareDeep(name, o.name, true) && compareDeep(definition, o.definition, true) && compareDeep(type, o.type, true) - && compareDeep(documentation, o.documentation, true); + && compareDeep(documentation, o.documentation, true) && compareDeep(feature, o.feature, true); } @Override @@ -2964,7 +4110,7 @@ public class CapabilityStatement2 extends CanonicalResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, definition, type, documentation - ); + , feature); } public String fhirType() { @@ -2997,7 +4143,14 @@ public class CapabilityStatement2 extends CanonicalResource { @Description(shortDefinition="Specific details about operation behavior", formalDefinition="Documentation that describes anything special about the operation behavior, possibly detailing different behavior for system, type and instance-level invocation of the operation." ) protected MarkdownType documentation; - private static final long serialVersionUID = -388608084L; + /** + * A statement that affirms support for a feature, in this context. + */ + @Child(name = "feature", type = {CapabilityStatement2RestFeatureComponent.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Statement of support for a feature in this context", formalDefinition="A statement that affirms support for a feature, in this context." ) + protected List feature; + + private static final long serialVersionUID = 1206974170L; /** * Constructor @@ -3154,11 +4307,65 @@ public class CapabilityStatement2 extends CanonicalResource { return this; } + /** + * @return {@link #feature} (A statement that affirms support for a feature, in this context.) + */ + public List getFeature() { + if (this.feature == null) + this.feature = new ArrayList(); + return this.feature; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CapabilityStatement2RestResourceOperationComponent setFeature(List theFeature) { + this.feature = theFeature; + return this; + } + + public boolean hasFeature() { + if (this.feature == null) + return false; + for (CapabilityStatement2RestFeatureComponent item : this.feature) + if (!item.isEmpty()) + return true; + return false; + } + + public CapabilityStatement2RestFeatureComponent addFeature() { //3 + CapabilityStatement2RestFeatureComponent t = new CapabilityStatement2RestFeatureComponent(); + if (this.feature == null) + this.feature = new ArrayList(); + this.feature.add(t); + return t; + } + + public CapabilityStatement2RestResourceOperationComponent addFeature(CapabilityStatement2RestFeatureComponent t) { //3 + if (t == null) + return this; + if (this.feature == null) + this.feature = new ArrayList(); + this.feature.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #feature}, creating it if it does not already exist {3} + */ + public CapabilityStatement2RestFeatureComponent getFeatureFirstRep() { + if (getFeature().isEmpty()) { + addFeature(); + } + return getFeature().get(0); + } + protected void listChildren(List children) { super.listChildren(children); children.add(new Property("name", "string", "The name of the operation or query. For an operation, this is the name prefixed with $ and used in the URL. For a query, this is the name used in the _query parameter when the query is called.", 0, 1, name)); children.add(new Property("definition", "canonical(OperationDefinition)", "Where the formal definition can be found. If a server references the base definition of an Operation (i.e. from the specification itself such as ```http://hl7.org/fhir/OperationDefinition/ValueSet-expand```), that means it supports the full capabilities of the operation - e.g. both GET and POST invocation. If it only supports a subset, it must define its own custom [OperationDefinition](operationdefinition.html#) with a 'base' of the original OperationDefinition. The custom definition would describe the specific subset of functionality supported.", 0, 1, definition)); children.add(new Property("documentation", "markdown", "Documentation that describes anything special about the operation behavior, possibly detailing different behavior for system, type and instance-level invocation of the operation.", 0, 1, documentation)); + children.add(new Property("feature", "@CapabilityStatement2.rest.feature", "A statement that affirms support for a feature, in this context.", 0, java.lang.Integer.MAX_VALUE, feature)); } @Override @@ -3167,6 +4374,7 @@ public class CapabilityStatement2 extends CanonicalResource { case 3373707: /*name*/ return new Property("name", "string", "The name of the operation or query. For an operation, this is the name prefixed with $ and used in the URL. For a query, this is the name used in the _query parameter when the query is called.", 0, 1, name); case -1014418093: /*definition*/ return new Property("definition", "canonical(OperationDefinition)", "Where the formal definition can be found. If a server references the base definition of an Operation (i.e. from the specification itself such as ```http://hl7.org/fhir/OperationDefinition/ValueSet-expand```), that means it supports the full capabilities of the operation - e.g. both GET and POST invocation. If it only supports a subset, it must define its own custom [OperationDefinition](operationdefinition.html#) with a 'base' of the original OperationDefinition. The custom definition would describe the specific subset of functionality supported.", 0, 1, definition); case 1587405498: /*documentation*/ return new Property("documentation", "markdown", "Documentation that describes anything special about the operation behavior, possibly detailing different behavior for system, type and instance-level invocation of the operation.", 0, 1, documentation); + case -979207434: /*feature*/ return new Property("feature", "@CapabilityStatement2.rest.feature", "A statement that affirms support for a feature, in this context.", 0, java.lang.Integer.MAX_VALUE, feature); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -3178,6 +4386,7 @@ public class CapabilityStatement2 extends CanonicalResource { case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType case -1014418093: /*definition*/ return this.definition == null ? new Base[0] : new Base[] {this.definition}; // CanonicalType case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // MarkdownType + case -979207434: /*feature*/ return this.feature == null ? new Base[0] : this.feature.toArray(new Base[this.feature.size()]); // CapabilityStatement2RestFeatureComponent default: return super.getProperty(hash, name, checkValid); } @@ -3195,6 +4404,9 @@ public class CapabilityStatement2 extends CanonicalResource { case 1587405498: // documentation this.documentation = TypeConvertor.castToMarkdown(value); // MarkdownType return value; + case -979207434: // feature + this.getFeature().add((CapabilityStatement2RestFeatureComponent) value); // CapabilityStatement2RestFeatureComponent + return value; default: return super.setProperty(hash, name, value); } @@ -3208,6 +4420,8 @@ public class CapabilityStatement2 extends CanonicalResource { this.definition = TypeConvertor.castToCanonical(value); // CanonicalType } else if (name.equals("documentation")) { this.documentation = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("feature")) { + this.getFeature().add((CapabilityStatement2RestFeatureComponent) value); } else return super.setProperty(name, value); return value; @@ -3219,6 +4433,7 @@ public class CapabilityStatement2 extends CanonicalResource { case 3373707: return getNameElement(); case -1014418093: return getDefinitionElement(); case 1587405498: return getDocumentationElement(); + case -979207434: return addFeature(); default: return super.makeProperty(hash, name); } @@ -3230,6 +4445,7 @@ public class CapabilityStatement2 extends CanonicalResource { case 3373707: /*name*/ return new String[] {"string"}; case -1014418093: /*definition*/ return new String[] {"canonical"}; case 1587405498: /*documentation*/ return new String[] {"markdown"}; + case -979207434: /*feature*/ return new String[] {"@CapabilityStatement2.rest.feature"}; default: return super.getTypesForProperty(hash, name); } @@ -3246,6 +4462,9 @@ public class CapabilityStatement2 extends CanonicalResource { else if (name.equals("documentation")) { throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.rest.resource.operation.documentation"); } + else if (name.equals("feature")) { + return addFeature(); + } else return super.addChild(name); } @@ -3261,6 +4480,11 @@ public class CapabilityStatement2 extends CanonicalResource { dst.name = name == null ? null : name.copy(); dst.definition = definition == null ? null : definition.copy(); dst.documentation = documentation == null ? null : documentation.copy(); + if (feature != null) { + dst.feature = new ArrayList(); + for (CapabilityStatement2RestFeatureComponent i : feature) + dst.feature.add(i.copy()); + }; } @Override @@ -3271,7 +4495,7 @@ public class CapabilityStatement2 extends CanonicalResource { return false; CapabilityStatement2RestResourceOperationComponent o = (CapabilityStatement2RestResourceOperationComponent) other_; return compareDeep(name, o.name, true) && compareDeep(definition, o.definition, true) && compareDeep(documentation, o.documentation, true) - ; + && compareDeep(feature, o.feature, true); } @Override @@ -3287,7 +4511,7 @@ public class CapabilityStatement2 extends CanonicalResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, definition, documentation - ); + , feature); } public String fhirType() { @@ -3314,7 +4538,14 @@ public class CapabilityStatement2 extends CanonicalResource { @Description(shortDefinition="Anything special about operation behavior", formalDefinition="Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented." ) protected MarkdownType documentation; - private static final long serialVersionUID = -1495143879L; + /** + * A statement that affirms support for a feature, in this context. + */ + @Child(name = "feature", type = {CapabilityStatement2RestFeatureComponent.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Statement of support for a feature in this context", formalDefinition="A statement that affirms support for a feature, in this context." ) + protected List feature; + + private static final long serialVersionUID = 353704493L; /** * Constructor @@ -3425,10 +4656,64 @@ public class CapabilityStatement2 extends CanonicalResource { return this; } + /** + * @return {@link #feature} (A statement that affirms support for a feature, in this context.) + */ + public List getFeature() { + if (this.feature == null) + this.feature = new ArrayList(); + return this.feature; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public SystemInteractionComponent setFeature(List theFeature) { + this.feature = theFeature; + return this; + } + + public boolean hasFeature() { + if (this.feature == null) + return false; + for (CapabilityStatement2RestFeatureComponent item : this.feature) + if (!item.isEmpty()) + return true; + return false; + } + + public CapabilityStatement2RestFeatureComponent addFeature() { //3 + CapabilityStatement2RestFeatureComponent t = new CapabilityStatement2RestFeatureComponent(); + if (this.feature == null) + this.feature = new ArrayList(); + this.feature.add(t); + return t; + } + + public SystemInteractionComponent addFeature(CapabilityStatement2RestFeatureComponent t) { //3 + if (t == null) + return this; + if (this.feature == null) + this.feature = new ArrayList(); + this.feature.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #feature}, creating it if it does not already exist {3} + */ + public CapabilityStatement2RestFeatureComponent getFeatureFirstRep() { + if (getFeature().isEmpty()) { + addFeature(); + } + return getFeature().get(0); + } + protected void listChildren(List children) { super.listChildren(children); children.add(new Property("code", "code", "A coded identifier of the operation, supported by the system.", 0, 1, code)); children.add(new Property("documentation", "markdown", "Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented.", 0, 1, documentation)); + children.add(new Property("feature", "@CapabilityStatement2.rest.feature", "A statement that affirms support for a feature, in this context.", 0, java.lang.Integer.MAX_VALUE, feature)); } @Override @@ -3436,6 +4721,7 @@ public class CapabilityStatement2 extends CanonicalResource { switch (_hash) { case 3059181: /*code*/ return new Property("code", "code", "A coded identifier of the operation, supported by the system.", 0, 1, code); case 1587405498: /*documentation*/ return new Property("documentation", "markdown", "Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented.", 0, 1, documentation); + case -979207434: /*feature*/ return new Property("feature", "@CapabilityStatement2.rest.feature", "A statement that affirms support for a feature, in this context.", 0, java.lang.Integer.MAX_VALUE, feature); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -3446,6 +4732,7 @@ public class CapabilityStatement2 extends CanonicalResource { switch (hash) { case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // Enumeration case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : new Base[] {this.documentation}; // MarkdownType + case -979207434: /*feature*/ return this.feature == null ? new Base[0] : this.feature.toArray(new Base[this.feature.size()]); // CapabilityStatement2RestFeatureComponent default: return super.getProperty(hash, name, checkValid); } @@ -3461,6 +4748,9 @@ public class CapabilityStatement2 extends CanonicalResource { case 1587405498: // documentation this.documentation = TypeConvertor.castToMarkdown(value); // MarkdownType return value; + case -979207434: // feature + this.getFeature().add((CapabilityStatement2RestFeatureComponent) value); // CapabilityStatement2RestFeatureComponent + return value; default: return super.setProperty(hash, name, value); } @@ -3473,6 +4763,8 @@ public class CapabilityStatement2 extends CanonicalResource { this.code = (Enumeration) value; // Enumeration } else if (name.equals("documentation")) { this.documentation = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("feature")) { + this.getFeature().add((CapabilityStatement2RestFeatureComponent) value); } else return super.setProperty(name, value); return value; @@ -3483,6 +4775,7 @@ public class CapabilityStatement2 extends CanonicalResource { switch (hash) { case 3059181: return getCodeElement(); case 1587405498: return getDocumentationElement(); + case -979207434: return addFeature(); default: return super.makeProperty(hash, name); } @@ -3493,6 +4786,7 @@ public class CapabilityStatement2 extends CanonicalResource { switch (hash) { case 3059181: /*code*/ return new String[] {"code"}; case 1587405498: /*documentation*/ return new String[] {"markdown"}; + case -979207434: /*feature*/ return new String[] {"@CapabilityStatement2.rest.feature"}; default: return super.getTypesForProperty(hash, name); } @@ -3506,6 +4800,9 @@ public class CapabilityStatement2 extends CanonicalResource { else if (name.equals("documentation")) { throw new FHIRException("Cannot call addChild on a primitive type CapabilityStatement2.rest.interaction.documentation"); } + else if (name.equals("feature")) { + return addFeature(); + } else return super.addChild(name); } @@ -3520,6 +4817,11 @@ public class CapabilityStatement2 extends CanonicalResource { super.copyValues(dst); dst.code = code == null ? null : code.copy(); dst.documentation = documentation == null ? null : documentation.copy(); + if (feature != null) { + dst.feature = new ArrayList(); + for (CapabilityStatement2RestFeatureComponent i : feature) + dst.feature.add(i.copy()); + }; } @Override @@ -3529,7 +4831,8 @@ public class CapabilityStatement2 extends CanonicalResource { if (!(other_ instanceof SystemInteractionComponent)) return false; SystemInteractionComponent o = (SystemInteractionComponent) other_; - return compareDeep(code, o.code, true) && compareDeep(documentation, o.documentation, true); + return compareDeep(code, o.code, true) && compareDeep(documentation, o.documentation, true) && compareDeep(feature, o.feature, true) + ; } @Override @@ -3543,7 +4846,8 @@ public class CapabilityStatement2 extends CanonicalResource { } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, documentation); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, documentation, feature + ); } public String fhirType() { @@ -5468,6 +6772,26 @@ public class CapabilityStatement2 extends CanonicalResource { return ResourceType.CapabilityStatement2; } + /** + * Search parameter: context + *

+ * Description: A use context assigned to the capability statement2
+ * Type: token
+ * Path: (CapabilityStatement2.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(CapabilityStatement2.useContext.value as CodeableConcept)", description="A use context assigned to the capability statement2", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: A use context assigned to the capability statement2
+ * Type: token
+ * Path: (CapabilityStatement2.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -5488,46 +6812,6 @@ public class CapabilityStatement2 extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the capability statement2
- * Type: composite
- * Path: CapabilityStatement2.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement2.useContext", description="A use context type and quantity- or range-based value assigned to the capability statement2", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the capability statement2
- * Type: composite
- * Path: CapabilityStatement2.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: A use context type and value assigned to the capability statement2
- * Type: composite
- * Path: CapabilityStatement2.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="CapabilityStatement2.useContext", description="A use context type and value assigned to the capability statement2", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: A use context type and value assigned to the capability statement2
- * Type: composite
- * Path: CapabilityStatement2.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -5548,26 +6832,6 @@ public class CapabilityStatement2 extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: A use context assigned to the capability statement2
- * Type: token
- * Path: (CapabilityStatement2.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(CapabilityStatement2.useContext.value as CodeableConcept)", description="A use context assigned to the capability statement2", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: A use context assigned to the capability statement2
- * Type: token
- * Path: (CapabilityStatement2.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -5754,6 +7018,26 @@ public class CapabilityStatement2 extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); + /** + * Search parameter: resource + *

+ * Description: Name of a resource mentioned in a capability statement
+ * Type: token
+ * Path: CapabilityStatement2.rest.resource.type
+ *

+ */ + @SearchParamDefinition(name="resource", path="CapabilityStatement2.rest.resource.type", description="Name of a resource mentioned in a capability statement", type="token" ) + public static final String SP_RESOURCE = "resource"; + /** + * Fluent Client search parameter constant for resource + *

+ * Description: Name of a resource mentioned in a capability statement
+ * Type: token
+ * Path: CapabilityStatement2.rest.resource.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam RESOURCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RESOURCE); + /** * Search parameter: resource-profile *

@@ -5780,26 +7064,6 @@ public class CapabilityStatement2 extends CanonicalResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_RESOURCE_PROFILE = new ca.uhn.fhir.model.api.Include("CapabilityStatement2:resource-profile").toLocked(); - /** - * Search parameter: resource - *

- * Description: Name of a resource mentioned in a capability statement
- * Type: token
- * Path: CapabilityStatement2.rest.resource.type
- *

- */ - @SearchParamDefinition(name="resource", path="CapabilityStatement2.rest.resource.type", description="Name of a resource mentioned in a capability statement", type="token" ) - public static final String SP_RESOURCE = "resource"; - /** - * Fluent Client search parameter constant for resource - *

- * Description: Name of a resource mentioned in a capability statement
- * Type: token
- * Path: CapabilityStatement2.rest.resource.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam RESOURCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RESOURCE); - /** * Search parameter: software *

@@ -5926,6 +7190,46 @@ public class CapabilityStatement2 extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the capability statement2
+ * Type: composite
+ * Path: CapabilityStatement2.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement2.useContext", description="A use context type and quantity- or range-based value assigned to the capability statement2", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the capability statement2
+ * Type: composite
+ * Path: CapabilityStatement2.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: A use context type and value assigned to the capability statement2
+ * Type: composite
+ * Path: CapabilityStatement2.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="CapabilityStatement2.useContext", description="A use context type and value assigned to the capability statement2", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: A use context type and value assigned to the capability statement2
+ * Type: composite
+ * Path: CapabilityStatement2.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CarePlan.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CarePlan.java index 5991fb810..51389b275 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CarePlan.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CarePlan.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -124,7 +124,6 @@ public class CarePlan extends DomainResource { case TASK: return "Task"; case SERVICEREQUEST: return "ServiceRequest"; case VISIONPRESCRIPTION: return "VisionPrescription"; - case NULL: return null; default: return "?"; } } @@ -138,7 +137,6 @@ public class CarePlan extends DomainResource { case TASK: return "http://hl7.org/fhir/resource-types"; case SERVICEREQUEST: return "http://hl7.org/fhir/resource-types"; case VISIONPRESCRIPTION: return "http://hl7.org/fhir/resource-types"; - case NULL: return null; default: return "?"; } } @@ -152,7 +150,6 @@ public class CarePlan extends DomainResource { case TASK: return "A task to be performed."; case SERVICEREQUEST: return "A record of a request for service such as diagnostic investigations, treatments, or operations to be performed."; case VISIONPRESCRIPTION: return "An authorization for the provision of glasses and/or contact lenses to a patient."; - case NULL: return null; default: return "?"; } } @@ -166,7 +163,6 @@ public class CarePlan extends DomainResource { case TASK: return "Task"; case SERVICEREQUEST: return "ServiceRequest"; case VISIONPRESCRIPTION: return "VisionPrescription"; - case NULL: return null; default: return "?"; } } @@ -323,7 +319,6 @@ public class CarePlan extends DomainResource { case STOPPED: return "stopped"; case UNKNOWN: return "unknown"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -338,7 +333,6 @@ public class CarePlan extends DomainResource { case STOPPED: return "http://hl7.org/fhir/care-plan-activity-status"; case UNKNOWN: return "http://hl7.org/fhir/care-plan-activity-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/care-plan-activity-status"; - case NULL: return null; default: return "?"; } } @@ -353,7 +347,6 @@ public class CarePlan extends DomainResource { case STOPPED: return "The planned care plan activity has been ended prior to completion after the activity was started."; case UNKNOWN: return "The current state of the care plan activity is not known. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, but the authoring/source system does not know which one."; case ENTEREDINERROR: return "Care plan activity was entered in error and voided."; - case NULL: return null; default: return "?"; } } @@ -368,7 +361,6 @@ public class CarePlan extends DomainResource { case STOPPED: return "Stopped"; case UNKNOWN: return "Unknown"; case ENTEREDINERROR: return "Entered in Error"; - case NULL: return null; default: return "?"; } } @@ -503,7 +495,6 @@ public class CarePlan extends DomainResource { case ORDER: return "order"; case OPTION: return "option"; case DIRECTIVE: return "directive"; - case NULL: return null; default: return "?"; } } @@ -514,7 +505,6 @@ public class CarePlan extends DomainResource { case ORDER: return "http://hl7.org/fhir/request-intent"; case OPTION: return "http://hl7.org/fhir/request-intent"; case DIRECTIVE: return "http://hl7.org/fhir/request-intent"; - case NULL: return null; default: return "?"; } } @@ -525,7 +515,6 @@ public class CarePlan extends DomainResource { case ORDER: return "The request represents a request/demand and authorization for action by a Practitioner."; case OPTION: return "The request represents a component or option for a RequestGroup that establishes timing, conditionality and/or other constraints among a set of requests. Refer to [[[RequestGroup]]] for additional information on how this status is used."; case DIRECTIVE: return "The request represents a legally binding instruction authored by a Patient or RelatedPerson."; - case NULL: return null; default: return "?"; } } @@ -536,7 +525,6 @@ public class CarePlan extends DomainResource { case ORDER: return "Order"; case OPTION: return "Option"; case DIRECTIVE: return "Directive"; - case NULL: return null; default: return "?"; } } @@ -600,12 +588,12 @@ public class CarePlan extends DomainResource { @Block() public static class CarePlanActivityComponent extends BackboneElement implements IBaseBackboneElement { /** - * Identifies the outcome at the point when the status of the activity is assessed. For example, the outcome of an education activity could be patient understands (or not). The reference to an "event" resource, such as Procedure or Encounter or Observation, is the result/outcome of the activity itself. The activity can be conveyed using CarePlan.activity.detail OR using the CarePlan.activity.reference (a reference to a “request” resource). + * Identifies the activity that was performed. For example, an activity could be patient education, exercise, or a medication administration. The reference to an "event" resource, such as Procedure or Encounter or Observation, represents the activity that was performed. The requested activity can be conveyed using CarePlan.activity.plannedActivityDetail OR using the CarePlan.activity.plannedActivityReference (a reference to a “request” resource). */ - @Child(name = "outcome", type = {CodeableReference.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Results of the activity (concept, or Appointment, Encounter, Procedure, etc)", formalDefinition="Identifies the outcome at the point when the status of the activity is assessed. For example, the outcome of an education activity could be patient understands (or not). The reference to an \"event\" resource, such as Procedure or Encounter or Observation, is the result/outcome of the activity itself. The activity can be conveyed using CarePlan.activity.detail OR using the CarePlan.activity.reference (a reference to a “request” resource)." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/care-plan-activity-outcome") - protected List outcome; + @Child(name = "performedActivity", type = {CodeableReference.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Results of the activity (concept, or Appointment, Encounter, Procedure, etc)", formalDefinition="Identifies the activity that was performed. For example, an activity could be patient education, exercise, or a medication administration. The reference to an \"event\" resource, such as Procedure or Encounter or Observation, represents the activity that was performed. The requested activity can be conveyed using CarePlan.activity.plannedActivityDetail OR using the CarePlan.activity.plannedActivityReference (a reference to a “request” resource)." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/care-plan-activity-performed") + protected List performedActivity; /** * Notes about the adherence/status/progress of the activity. @@ -617,18 +605,18 @@ public class CarePlan extends DomainResource { /** * The details of the proposed activity represented in a specific resource. */ - @Child(name = "reference", type = {Appointment.class, CommunicationRequest.class, DeviceRequest.class, MedicationRequest.class, NutritionOrder.class, Task.class, ServiceRequest.class, VisionPrescription.class, RequestGroup.class, ImmunizationRecommendation.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Activity details defined in specific resource", formalDefinition="The details of the proposed activity represented in a specific resource." ) - protected Reference reference; + @Child(name = "plannedActivityReference", type = {Appointment.class, CommunicationRequest.class, DeviceRequest.class, MedicationRequest.class, NutritionOrder.class, Task.class, ServiceRequest.class, VisionPrescription.class, RequestGroup.class, ImmunizationRecommendation.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Activity that is intended to be part of the care plan", formalDefinition="The details of the proposed activity represented in a specific resource." ) + protected Reference plannedActivityReference; /** * A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc. */ - @Child(name = "detail", type = {}, order=4, min=0, max=1, modifier=false, summary=false) + @Child(name = "plannedActivityDetail", type = {}, order=4, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="In-line definition of activity", formalDefinition="A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc." ) - protected CarePlanActivityDetailComponent detail; + protected CarePlanActivityPlannedActivityDetailComponent plannedActivityDetail; - private static final long serialVersionUID = -673901898L; + private static final long serialVersionUID = 1513409624L; /** * Constructor @@ -638,56 +626,56 @@ public class CarePlan extends DomainResource { } /** - * @return {@link #outcome} (Identifies the outcome at the point when the status of the activity is assessed. For example, the outcome of an education activity could be patient understands (or not). The reference to an "event" resource, such as Procedure or Encounter or Observation, is the result/outcome of the activity itself. The activity can be conveyed using CarePlan.activity.detail OR using the CarePlan.activity.reference (a reference to a “request” resource).) + * @return {@link #performedActivity} (Identifies the activity that was performed. For example, an activity could be patient education, exercise, or a medication administration. The reference to an "event" resource, such as Procedure or Encounter or Observation, represents the activity that was performed. The requested activity can be conveyed using CarePlan.activity.plannedActivityDetail OR using the CarePlan.activity.plannedActivityReference (a reference to a “request” resource).) */ - public List getOutcome() { - if (this.outcome == null) - this.outcome = new ArrayList(); - return this.outcome; + public List getPerformedActivity() { + if (this.performedActivity == null) + this.performedActivity = new ArrayList(); + return this.performedActivity; } /** * @return Returns a reference to this for easy method chaining */ - public CarePlanActivityComponent setOutcome(List theOutcome) { - this.outcome = theOutcome; + public CarePlanActivityComponent setPerformedActivity(List thePerformedActivity) { + this.performedActivity = thePerformedActivity; return this; } - public boolean hasOutcome() { - if (this.outcome == null) + public boolean hasPerformedActivity() { + if (this.performedActivity == null) return false; - for (CodeableReference item : this.outcome) + for (CodeableReference item : this.performedActivity) if (!item.isEmpty()) return true; return false; } - public CodeableReference addOutcome() { //3 + public CodeableReference addPerformedActivity() { //3 CodeableReference t = new CodeableReference(); - if (this.outcome == null) - this.outcome = new ArrayList(); - this.outcome.add(t); + if (this.performedActivity == null) + this.performedActivity = new ArrayList(); + this.performedActivity.add(t); return t; } - public CarePlanActivityComponent addOutcome(CodeableReference t) { //3 + public CarePlanActivityComponent addPerformedActivity(CodeableReference t) { //3 if (t == null) return this; - if (this.outcome == null) - this.outcome = new ArrayList(); - this.outcome.add(t); + if (this.performedActivity == null) + this.performedActivity = new ArrayList(); + this.performedActivity.add(t); return this; } /** - * @return The first repetition of repeating field {@link #outcome}, creating it if it does not already exist {3} + * @return The first repetition of repeating field {@link #performedActivity}, creating it if it does not already exist {3} */ - public CodeableReference getOutcomeFirstRep() { - if (getOutcome().isEmpty()) { - addOutcome(); + public CodeableReference getPerformedActivityFirstRep() { + if (getPerformedActivity().isEmpty()) { + addPerformedActivity(); } - return getOutcome().get(0); + return getPerformedActivity().get(0); } /** @@ -744,68 +732,68 @@ public class CarePlan extends DomainResource { } /** - * @return {@link #reference} (The details of the proposed activity represented in a specific resource.) + * @return {@link #plannedActivityReference} (The details of the proposed activity represented in a specific resource.) */ - public Reference getReference() { - if (this.reference == null) + public Reference getPlannedActivityReference() { + if (this.plannedActivityReference == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CarePlanActivityComponent.reference"); + throw new Error("Attempt to auto-create CarePlanActivityComponent.plannedActivityReference"); else if (Configuration.doAutoCreate()) - this.reference = new Reference(); // cc - return this.reference; + this.plannedActivityReference = new Reference(); // cc + return this.plannedActivityReference; } - public boolean hasReference() { - return this.reference != null && !this.reference.isEmpty(); + public boolean hasPlannedActivityReference() { + return this.plannedActivityReference != null && !this.plannedActivityReference.isEmpty(); } /** - * @param value {@link #reference} (The details of the proposed activity represented in a specific resource.) + * @param value {@link #plannedActivityReference} (The details of the proposed activity represented in a specific resource.) */ - public CarePlanActivityComponent setReference(Reference value) { - this.reference = value; + public CarePlanActivityComponent setPlannedActivityReference(Reference value) { + this.plannedActivityReference = value; return this; } /** - * @return {@link #detail} (A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.) + * @return {@link #plannedActivityDetail} (A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.) */ - public CarePlanActivityDetailComponent getDetail() { - if (this.detail == null) + public CarePlanActivityPlannedActivityDetailComponent getPlannedActivityDetail() { + if (this.plannedActivityDetail == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CarePlanActivityComponent.detail"); + throw new Error("Attempt to auto-create CarePlanActivityComponent.plannedActivityDetail"); else if (Configuration.doAutoCreate()) - this.detail = new CarePlanActivityDetailComponent(); // cc - return this.detail; + this.plannedActivityDetail = new CarePlanActivityPlannedActivityDetailComponent(); // cc + return this.plannedActivityDetail; } - public boolean hasDetail() { - return this.detail != null && !this.detail.isEmpty(); + public boolean hasPlannedActivityDetail() { + return this.plannedActivityDetail != null && !this.plannedActivityDetail.isEmpty(); } /** - * @param value {@link #detail} (A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.) + * @param value {@link #plannedActivityDetail} (A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.) */ - public CarePlanActivityComponent setDetail(CarePlanActivityDetailComponent value) { - this.detail = value; + public CarePlanActivityComponent setPlannedActivityDetail(CarePlanActivityPlannedActivityDetailComponent value) { + this.plannedActivityDetail = value; return this; } protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("outcome", "CodeableReference(Any)", "Identifies the outcome at the point when the status of the activity is assessed. For example, the outcome of an education activity could be patient understands (or not). The reference to an \"event\" resource, such as Procedure or Encounter or Observation, is the result/outcome of the activity itself. The activity can be conveyed using CarePlan.activity.detail OR using the CarePlan.activity.reference (a reference to a “request” resource).", 0, java.lang.Integer.MAX_VALUE, outcome)); + children.add(new Property("performedActivity", "CodeableReference(Any)", "Identifies the activity that was performed. For example, an activity could be patient education, exercise, or a medication administration. The reference to an \"event\" resource, such as Procedure or Encounter or Observation, represents the activity that was performed. The requested activity can be conveyed using CarePlan.activity.plannedActivityDetail OR using the CarePlan.activity.plannedActivityReference (a reference to a “request” resource).", 0, java.lang.Integer.MAX_VALUE, performedActivity)); children.add(new Property("progress", "Annotation", "Notes about the adherence/status/progress of the activity.", 0, java.lang.Integer.MAX_VALUE, progress)); - children.add(new Property("reference", "Reference(Appointment|CommunicationRequest|DeviceRequest|MedicationRequest|NutritionOrder|Task|ServiceRequest|VisionPrescription|RequestGroup|ImmunizationRecommendation)", "The details of the proposed activity represented in a specific resource.", 0, 1, reference)); - children.add(new Property("detail", "", "A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.", 0, 1, detail)); + children.add(new Property("plannedActivityReference", "Reference(Appointment|CommunicationRequest|DeviceRequest|MedicationRequest|NutritionOrder|Task|ServiceRequest|VisionPrescription|RequestGroup|ImmunizationRecommendation)", "The details of the proposed activity represented in a specific resource.", 0, 1, plannedActivityReference)); + children.add(new Property("plannedActivityDetail", "", "A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.", 0, 1, plannedActivityDetail)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -1106507950: /*outcome*/ return new Property("outcome", "CodeableReference(Any)", "Identifies the outcome at the point when the status of the activity is assessed. For example, the outcome of an education activity could be patient understands (or not). The reference to an \"event\" resource, such as Procedure or Encounter or Observation, is the result/outcome of the activity itself. The activity can be conveyed using CarePlan.activity.detail OR using the CarePlan.activity.reference (a reference to a “request” resource).", 0, java.lang.Integer.MAX_VALUE, outcome); + case 1964521199: /*performedActivity*/ return new Property("performedActivity", "CodeableReference(Any)", "Identifies the activity that was performed. For example, an activity could be patient education, exercise, or a medication administration. The reference to an \"event\" resource, such as Procedure or Encounter or Observation, represents the activity that was performed. The requested activity can be conveyed using CarePlan.activity.plannedActivityDetail OR using the CarePlan.activity.plannedActivityReference (a reference to a “request” resource).", 0, java.lang.Integer.MAX_VALUE, performedActivity); case -1001078227: /*progress*/ return new Property("progress", "Annotation", "Notes about the adherence/status/progress of the activity.", 0, java.lang.Integer.MAX_VALUE, progress); - case -925155509: /*reference*/ return new Property("reference", "Reference(Appointment|CommunicationRequest|DeviceRequest|MedicationRequest|NutritionOrder|Task|ServiceRequest|VisionPrescription|RequestGroup|ImmunizationRecommendation)", "The details of the proposed activity represented in a specific resource.", 0, 1, reference); - case -1335224239: /*detail*/ return new Property("detail", "", "A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.", 0, 1, detail); + case -1114371176: /*plannedActivityReference*/ return new Property("plannedActivityReference", "Reference(Appointment|CommunicationRequest|DeviceRequest|MedicationRequest|NutritionOrder|Task|ServiceRequest|VisionPrescription|RequestGroup|ImmunizationRecommendation)", "The details of the proposed activity represented in a specific resource.", 0, 1, plannedActivityReference); + case 2072803108: /*plannedActivityDetail*/ return new Property("plannedActivityDetail", "", "A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.", 0, 1, plannedActivityDetail); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -814,10 +802,10 @@ public class CarePlan extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : this.outcome.toArray(new Base[this.outcome.size()]); // CodeableReference + case 1964521199: /*performedActivity*/ return this.performedActivity == null ? new Base[0] : this.performedActivity.toArray(new Base[this.performedActivity.size()]); // CodeableReference case -1001078227: /*progress*/ return this.progress == null ? new Base[0] : this.progress.toArray(new Base[this.progress.size()]); // Annotation - case -925155509: /*reference*/ return this.reference == null ? new Base[0] : new Base[] {this.reference}; // Reference - case -1335224239: /*detail*/ return this.detail == null ? new Base[0] : new Base[] {this.detail}; // CarePlanActivityDetailComponent + case -1114371176: /*plannedActivityReference*/ return this.plannedActivityReference == null ? new Base[0] : new Base[] {this.plannedActivityReference}; // Reference + case 2072803108: /*plannedActivityDetail*/ return this.plannedActivityDetail == null ? new Base[0] : new Base[] {this.plannedActivityDetail}; // CarePlanActivityPlannedActivityDetailComponent default: return super.getProperty(hash, name, checkValid); } @@ -826,17 +814,17 @@ public class CarePlan extends DomainResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { - case -1106507950: // outcome - this.getOutcome().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference + case 1964521199: // performedActivity + this.getPerformedActivity().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference return value; case -1001078227: // progress this.getProgress().add(TypeConvertor.castToAnnotation(value)); // Annotation return value; - case -925155509: // reference - this.reference = TypeConvertor.castToReference(value); // Reference + case -1114371176: // plannedActivityReference + this.plannedActivityReference = TypeConvertor.castToReference(value); // Reference return value; - case -1335224239: // detail - this.detail = (CarePlanActivityDetailComponent) value; // CarePlanActivityDetailComponent + case 2072803108: // plannedActivityDetail + this.plannedActivityDetail = (CarePlanActivityPlannedActivityDetailComponent) value; // CarePlanActivityPlannedActivityDetailComponent return value; default: return super.setProperty(hash, name, value); } @@ -845,14 +833,14 @@ public class CarePlan extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("outcome")) { - this.getOutcome().add(TypeConvertor.castToCodeableReference(value)); + if (name.equals("performedActivity")) { + this.getPerformedActivity().add(TypeConvertor.castToCodeableReference(value)); } else if (name.equals("progress")) { this.getProgress().add(TypeConvertor.castToAnnotation(value)); - } else if (name.equals("reference")) { - this.reference = TypeConvertor.castToReference(value); // Reference - } else if (name.equals("detail")) { - this.detail = (CarePlanActivityDetailComponent) value; // CarePlanActivityDetailComponent + } else if (name.equals("plannedActivityReference")) { + this.plannedActivityReference = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("plannedActivityDetail")) { + this.plannedActivityDetail = (CarePlanActivityPlannedActivityDetailComponent) value; // CarePlanActivityPlannedActivityDetailComponent } else return super.setProperty(name, value); return value; @@ -861,10 +849,10 @@ public class CarePlan extends DomainResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { - case -1106507950: return addOutcome(); + case 1964521199: return addPerformedActivity(); case -1001078227: return addProgress(); - case -925155509: return getReference(); - case -1335224239: return getDetail(); + case -1114371176: return getPlannedActivityReference(); + case 2072803108: return getPlannedActivityDetail(); default: return super.makeProperty(hash, name); } @@ -873,10 +861,10 @@ public class CarePlan extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case -1106507950: /*outcome*/ return new String[] {"CodeableReference"}; + case 1964521199: /*performedActivity*/ return new String[] {"CodeableReference"}; case -1001078227: /*progress*/ return new String[] {"Annotation"}; - case -925155509: /*reference*/ return new String[] {"Reference"}; - case -1335224239: /*detail*/ return new String[] {}; + case -1114371176: /*plannedActivityReference*/ return new String[] {"Reference"}; + case 2072803108: /*plannedActivityDetail*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -884,19 +872,19 @@ public class CarePlan extends DomainResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("outcome")) { - return addOutcome(); + if (name.equals("performedActivity")) { + return addPerformedActivity(); } else if (name.equals("progress")) { return addProgress(); } - else if (name.equals("reference")) { - this.reference = new Reference(); - return this.reference; + else if (name.equals("plannedActivityReference")) { + this.plannedActivityReference = new Reference(); + return this.plannedActivityReference; } - else if (name.equals("detail")) { - this.detail = new CarePlanActivityDetailComponent(); - return this.detail; + else if (name.equals("plannedActivityDetail")) { + this.plannedActivityDetail = new CarePlanActivityPlannedActivityDetailComponent(); + return this.plannedActivityDetail; } else return super.addChild(name); @@ -910,18 +898,18 @@ public class CarePlan extends DomainResource { public void copyValues(CarePlanActivityComponent dst) { super.copyValues(dst); - if (outcome != null) { - dst.outcome = new ArrayList(); - for (CodeableReference i : outcome) - dst.outcome.add(i.copy()); + if (performedActivity != null) { + dst.performedActivity = new ArrayList(); + for (CodeableReference i : performedActivity) + dst.performedActivity.add(i.copy()); }; if (progress != null) { dst.progress = new ArrayList(); for (Annotation i : progress) dst.progress.add(i.copy()); }; - dst.reference = reference == null ? null : reference.copy(); - dst.detail = detail == null ? null : detail.copy(); + dst.plannedActivityReference = plannedActivityReference == null ? null : plannedActivityReference.copy(); + dst.plannedActivityDetail = plannedActivityDetail == null ? null : plannedActivityDetail.copy(); } @Override @@ -931,8 +919,9 @@ public class CarePlan extends DomainResource { if (!(other_ instanceof CarePlanActivityComponent)) return false; CarePlanActivityComponent o = (CarePlanActivityComponent) other_; - return compareDeep(outcome, o.outcome, true) && compareDeep(progress, o.progress, true) && compareDeep(reference, o.reference, true) - && compareDeep(detail, o.detail, true); + return compareDeep(performedActivity, o.performedActivity, true) && compareDeep(progress, o.progress, true) + && compareDeep(plannedActivityReference, o.plannedActivityReference, true) && compareDeep(plannedActivityDetail, o.plannedActivityDetail, true) + ; } @Override @@ -946,8 +935,8 @@ public class CarePlan extends DomainResource { } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(outcome, progress, reference - , detail); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(performedActivity, progress + , plannedActivityReference, plannedActivityDetail); } public String fhirType() { @@ -958,7 +947,7 @@ public class CarePlan extends DomainResource { } @Block() - public static class CarePlanActivityDetailComponent extends BackboneElement implements IBaseBackboneElement { + public static class CarePlanActivityPlannedActivityDetailComponent extends BackboneElement implements IBaseBackboneElement { /** * A description of the kind of resource the in-line definition of a care plan activity is representing. The CarePlan.activity.detail is an in-line definition when a resource is not referenced using CarePlan.activity.reference. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. */ @@ -1090,14 +1079,14 @@ public class CarePlan extends DomainResource { /** * Constructor */ - public CarePlanActivityDetailComponent() { + public CarePlanActivityPlannedActivityDetailComponent() { super(); } /** * Constructor */ - public CarePlanActivityDetailComponent(CarePlanActivityStatus status) { + public CarePlanActivityPlannedActivityDetailComponent(CarePlanActivityStatus status) { super(); this.setStatus(status); } @@ -1108,7 +1097,7 @@ public class CarePlan extends DomainResource { public Enumeration getKindElement() { if (this.kind == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CarePlanActivityDetailComponent.kind"); + throw new Error("Attempt to auto-create CarePlanActivityPlannedActivityDetailComponent.kind"); else if (Configuration.doAutoCreate()) this.kind = new Enumeration(new CarePlanActivityKindEnumFactory()); // bb return this.kind; @@ -1125,7 +1114,7 @@ public class CarePlan extends DomainResource { /** * @param value {@link #kind} (A description of the kind of resource the in-line definition of a care plan activity is representing. The CarePlan.activity.detail is an in-line definition when a resource is not referenced using CarePlan.activity.reference. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest.). This is the underlying object with id, value and extensions. The accessor "getKind" gives direct access to the value */ - public CarePlanActivityDetailComponent setKindElement(Enumeration value) { + public CarePlanActivityPlannedActivityDetailComponent setKindElement(Enumeration value) { this.kind = value; return this; } @@ -1140,7 +1129,7 @@ public class CarePlan extends DomainResource { /** * @param value A description of the kind of resource the in-line definition of a care plan activity is representing. The CarePlan.activity.detail is an in-line definition when a resource is not referenced using CarePlan.activity.reference. For example, a MedicationRequest, a ServiceRequest, or a CommunicationRequest. */ - public CarePlanActivityDetailComponent setKind(CarePlanActivityKind value) { + public CarePlanActivityPlannedActivityDetailComponent setKind(CarePlanActivityKind value) { if (value == null) this.kind = null; else { @@ -1163,7 +1152,7 @@ public class CarePlan extends DomainResource { /** * @return Returns a reference to this for easy method chaining */ - public CarePlanActivityDetailComponent setInstantiatesCanonical(List theInstantiatesCanonical) { + public CarePlanActivityPlannedActivityDetailComponent setInstantiatesCanonical(List theInstantiatesCanonical) { this.instantiatesCanonical = theInstantiatesCanonical; return this; } @@ -1191,7 +1180,7 @@ public class CarePlan extends DomainResource { /** * @param value {@link #instantiatesCanonical} (The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.) */ - public CarePlanActivityDetailComponent addInstantiatesCanonical(String value) { //1 + public CarePlanActivityPlannedActivityDetailComponent addInstantiatesCanonical(String value) { //1 CanonicalType t = new CanonicalType(); t.setValue(value); if (this.instantiatesCanonical == null) @@ -1224,7 +1213,7 @@ public class CarePlan extends DomainResource { /** * @return Returns a reference to this for easy method chaining */ - public CarePlanActivityDetailComponent setInstantiatesUri(List theInstantiatesUri) { + public CarePlanActivityPlannedActivityDetailComponent setInstantiatesUri(List theInstantiatesUri) { this.instantiatesUri = theInstantiatesUri; return this; } @@ -1252,7 +1241,7 @@ public class CarePlan extends DomainResource { /** * @param value {@link #instantiatesUri} (The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.) */ - public CarePlanActivityDetailComponent addInstantiatesUri(String value) { //1 + public CarePlanActivityPlannedActivityDetailComponent addInstantiatesUri(String value) { //1 UriType t = new UriType(); t.setValue(value); if (this.instantiatesUri == null) @@ -1279,7 +1268,7 @@ public class CarePlan extends DomainResource { public CodeableConcept getCode() { if (this.code == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CarePlanActivityDetailComponent.code"); + throw new Error("Attempt to auto-create CarePlanActivityPlannedActivityDetailComponent.code"); else if (Configuration.doAutoCreate()) this.code = new CodeableConcept(); // cc return this.code; @@ -1292,7 +1281,7 @@ public class CarePlan extends DomainResource { /** * @param value {@link #code} (Detailed description of the type of planned activity; e.g. what lab test, what procedure, what kind of encounter.) */ - public CarePlanActivityDetailComponent setCode(CodeableConcept value) { + public CarePlanActivityPlannedActivityDetailComponent setCode(CodeableConcept value) { this.code = value; return this; } @@ -1309,7 +1298,7 @@ public class CarePlan extends DomainResource { /** * @return Returns a reference to this for easy method chaining */ - public CarePlanActivityDetailComponent setReason(List theReason) { + public CarePlanActivityPlannedActivityDetailComponent setReason(List theReason) { this.reason = theReason; return this; } @@ -1331,7 +1320,7 @@ public class CarePlan extends DomainResource { return t; } - public CarePlanActivityDetailComponent addReason(CodeableReference t) { //3 + public CarePlanActivityPlannedActivityDetailComponent addReason(CodeableReference t) { //3 if (t == null) return this; if (this.reason == null) @@ -1362,7 +1351,7 @@ public class CarePlan extends DomainResource { /** * @return Returns a reference to this for easy method chaining */ - public CarePlanActivityDetailComponent setGoal(List theGoal) { + public CarePlanActivityPlannedActivityDetailComponent setGoal(List theGoal) { this.goal = theGoal; return this; } @@ -1384,7 +1373,7 @@ public class CarePlan extends DomainResource { return t; } - public CarePlanActivityDetailComponent addGoal(Reference t) { //3 + public CarePlanActivityPlannedActivityDetailComponent addGoal(Reference t) { //3 if (t == null) return this; if (this.goal == null) @@ -1409,7 +1398,7 @@ public class CarePlan extends DomainResource { public Enumeration getStatusElement() { if (this.status == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CarePlanActivityDetailComponent.status"); + throw new Error("Attempt to auto-create CarePlanActivityPlannedActivityDetailComponent.status"); else if (Configuration.doAutoCreate()) this.status = new Enumeration(new CarePlanActivityStatusEnumFactory()); // bb return this.status; @@ -1426,7 +1415,7 @@ public class CarePlan extends DomainResource { /** * @param value {@link #status} (Identifies what progress is being made for the specific activity.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ - public CarePlanActivityDetailComponent setStatusElement(Enumeration value) { + public CarePlanActivityPlannedActivityDetailComponent setStatusElement(Enumeration value) { this.status = value; return this; } @@ -1441,7 +1430,7 @@ public class CarePlan extends DomainResource { /** * @param value Identifies what progress is being made for the specific activity. */ - public CarePlanActivityDetailComponent setStatus(CarePlanActivityStatus value) { + public CarePlanActivityPlannedActivityDetailComponent setStatus(CarePlanActivityStatus value) { if (this.status == null) this.status = new Enumeration(new CarePlanActivityStatusEnumFactory()); this.status.setValue(value); @@ -1454,7 +1443,7 @@ public class CarePlan extends DomainResource { public CodeableConcept getStatusReason() { if (this.statusReason == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CarePlanActivityDetailComponent.statusReason"); + throw new Error("Attempt to auto-create CarePlanActivityPlannedActivityDetailComponent.statusReason"); else if (Configuration.doAutoCreate()) this.statusReason = new CodeableConcept(); // cc return this.statusReason; @@ -1467,7 +1456,7 @@ public class CarePlan extends DomainResource { /** * @param value {@link #statusReason} (Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.) */ - public CarePlanActivityDetailComponent setStatusReason(CodeableConcept value) { + public CarePlanActivityPlannedActivityDetailComponent setStatusReason(CodeableConcept value) { this.statusReason = value; return this; } @@ -1478,7 +1467,7 @@ public class CarePlan extends DomainResource { public BooleanType getDoNotPerformElement() { if (this.doNotPerform == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CarePlanActivityDetailComponent.doNotPerform"); + throw new Error("Attempt to auto-create CarePlanActivityPlannedActivityDetailComponent.doNotPerform"); else if (Configuration.doAutoCreate()) this.doNotPerform = new BooleanType(); // bb return this.doNotPerform; @@ -1495,7 +1484,7 @@ public class CarePlan extends DomainResource { /** * @param value {@link #doNotPerform} (If true, indicates that the described activity is one that must NOT be engaged in when following the plan. If false, or missing, indicates that the described activity is one that should be engaged in when following the plan.). This is the underlying object with id, value and extensions. The accessor "getDoNotPerform" gives direct access to the value */ - public CarePlanActivityDetailComponent setDoNotPerformElement(BooleanType value) { + public CarePlanActivityPlannedActivityDetailComponent setDoNotPerformElement(BooleanType value) { this.doNotPerform = value; return this; } @@ -1510,7 +1499,7 @@ public class CarePlan extends DomainResource { /** * @param value If true, indicates that the described activity is one that must NOT be engaged in when following the plan. If false, or missing, indicates that the described activity is one that should be engaged in when following the plan. */ - public CarePlanActivityDetailComponent setDoNotPerform(boolean value) { + public CarePlanActivityPlannedActivityDetailComponent setDoNotPerform(boolean value) { if (this.doNotPerform == null) this.doNotPerform = new BooleanType(); this.doNotPerform.setValue(value); @@ -1576,9 +1565,9 @@ public class CarePlan extends DomainResource { /** * @param value {@link #scheduled} (The period, timing or frequency upon which the described activity is to occur.) */ - public CarePlanActivityDetailComponent setScheduled(DataType value) { + public CarePlanActivityPlannedActivityDetailComponent setScheduled(DataType value) { if (value != null && !(value instanceof Timing || value instanceof Period || value instanceof StringType)) - throw new Error("Not the right type for CarePlan.activity.detail.scheduled[x]: "+value.fhirType()); + throw new Error("Not the right type for CarePlan.activity.plannedActivityDetail.scheduled[x]: "+value.fhirType()); this.scheduled = value; return this; } @@ -1589,7 +1578,7 @@ public class CarePlan extends DomainResource { public CodeableReference getLocation() { if (this.location == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CarePlanActivityDetailComponent.location"); + throw new Error("Attempt to auto-create CarePlanActivityPlannedActivityDetailComponent.location"); else if (Configuration.doAutoCreate()) this.location = new CodeableReference(); // cc return this.location; @@ -1602,7 +1591,7 @@ public class CarePlan extends DomainResource { /** * @param value {@link #location} (Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.) */ - public CarePlanActivityDetailComponent setLocation(CodeableReference value) { + public CarePlanActivityPlannedActivityDetailComponent setLocation(CodeableReference value) { this.location = value; return this; } @@ -1651,9 +1640,9 @@ public class CarePlan extends DomainResource { /** * @param value {@link #reported} (Indicates if this record was captured as a secondary 'reported' record rather than as an original primary source-of-truth record. It may also indicate the source of the report.) */ - public CarePlanActivityDetailComponent setReported(DataType value) { + public CarePlanActivityPlannedActivityDetailComponent setReported(DataType value) { if (value != null && !(value instanceof BooleanType || value instanceof Reference)) - throw new Error("Not the right type for CarePlan.activity.detail.reported[x]: "+value.fhirType()); + throw new Error("Not the right type for CarePlan.activity.plannedActivityDetail.reported[x]: "+value.fhirType()); this.reported = value; return this; } @@ -1670,7 +1659,7 @@ public class CarePlan extends DomainResource { /** * @return Returns a reference to this for easy method chaining */ - public CarePlanActivityDetailComponent setPerformer(List thePerformer) { + public CarePlanActivityPlannedActivityDetailComponent setPerformer(List thePerformer) { this.performer = thePerformer; return this; } @@ -1692,7 +1681,7 @@ public class CarePlan extends DomainResource { return t; } - public CarePlanActivityDetailComponent addPerformer(Reference t) { //3 + public CarePlanActivityPlannedActivityDetailComponent addPerformer(Reference t) { //3 if (t == null) return this; if (this.performer == null) @@ -1755,9 +1744,9 @@ public class CarePlan extends DomainResource { /** * @param value {@link #product} (Identifies the food, drug or other product to be consumed or supplied in the activity.) */ - public CarePlanActivityDetailComponent setProduct(DataType value) { + public CarePlanActivityPlannedActivityDetailComponent setProduct(DataType value) { if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) - throw new Error("Not the right type for CarePlan.activity.detail.product[x]: "+value.fhirType()); + throw new Error("Not the right type for CarePlan.activity.plannedActivityDetail.product[x]: "+value.fhirType()); this.product = value; return this; } @@ -1768,7 +1757,7 @@ public class CarePlan extends DomainResource { public Quantity getDailyAmount() { if (this.dailyAmount == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CarePlanActivityDetailComponent.dailyAmount"); + throw new Error("Attempt to auto-create CarePlanActivityPlannedActivityDetailComponent.dailyAmount"); else if (Configuration.doAutoCreate()) this.dailyAmount = new Quantity(); // cc return this.dailyAmount; @@ -1781,7 +1770,7 @@ public class CarePlan extends DomainResource { /** * @param value {@link #dailyAmount} (Identifies the quantity expected to be consumed in a given day.) */ - public CarePlanActivityDetailComponent setDailyAmount(Quantity value) { + public CarePlanActivityPlannedActivityDetailComponent setDailyAmount(Quantity value) { this.dailyAmount = value; return this; } @@ -1792,7 +1781,7 @@ public class CarePlan extends DomainResource { public Quantity getQuantity() { if (this.quantity == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CarePlanActivityDetailComponent.quantity"); + throw new Error("Attempt to auto-create CarePlanActivityPlannedActivityDetailComponent.quantity"); else if (Configuration.doAutoCreate()) this.quantity = new Quantity(); // cc return this.quantity; @@ -1805,7 +1794,7 @@ public class CarePlan extends DomainResource { /** * @param value {@link #quantity} (Identifies the quantity expected to be supplied, administered or consumed by the subject.) */ - public CarePlanActivityDetailComponent setQuantity(Quantity value) { + public CarePlanActivityPlannedActivityDetailComponent setQuantity(Quantity value) { this.quantity = value; return this; } @@ -1816,7 +1805,7 @@ public class CarePlan extends DomainResource { public StringType getDescriptionElement() { if (this.description == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CarePlanActivityDetailComponent.description"); + throw new Error("Attempt to auto-create CarePlanActivityPlannedActivityDetailComponent.description"); else if (Configuration.doAutoCreate()) this.description = new StringType(); // bb return this.description; @@ -1833,7 +1822,7 @@ public class CarePlan extends DomainResource { /** * @param value {@link #description} (This provides a textual description of constraints on the intended activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value */ - public CarePlanActivityDetailComponent setDescriptionElement(StringType value) { + public CarePlanActivityPlannedActivityDetailComponent setDescriptionElement(StringType value) { this.description = value; return this; } @@ -1848,7 +1837,7 @@ public class CarePlan extends DomainResource { /** * @param value This provides a textual description of constraints on the intended activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc. */ - public CarePlanActivityDetailComponent setDescription(String value) { + public CarePlanActivityPlannedActivityDetailComponent setDescription(String value) { if (Utilities.noString(value)) this.description = null; else { @@ -2100,13 +2089,13 @@ public class CarePlan extends DomainResource { @Override public Base addChild(String name) throws FHIRException { if (name.equals("kind")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.detail.kind"); + throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.plannedActivityDetail.kind"); } else if (name.equals("instantiatesCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.detail.instantiatesCanonical"); + throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.plannedActivityDetail.instantiatesCanonical"); } else if (name.equals("instantiatesUri")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.detail.instantiatesUri"); + throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.plannedActivityDetail.instantiatesUri"); } else if (name.equals("code")) { this.code = new CodeableConcept(); @@ -2119,14 +2108,14 @@ public class CarePlan extends DomainResource { return addGoal(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.detail.status"); + throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.plannedActivityDetail.status"); } else if (name.equals("statusReason")) { this.statusReason = new CodeableConcept(); return this.statusReason; } else if (name.equals("doNotPerform")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.detail.doNotPerform"); + throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.plannedActivityDetail.doNotPerform"); } else if (name.equals("scheduledTiming")) { this.scheduled = new Timing(); @@ -2172,19 +2161,19 @@ public class CarePlan extends DomainResource { return this.quantity; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.detail.description"); + throw new FHIRException("Cannot call addChild on a primitive type CarePlan.activity.plannedActivityDetail.description"); } else return super.addChild(name); } - public CarePlanActivityDetailComponent copy() { - CarePlanActivityDetailComponent dst = new CarePlanActivityDetailComponent(); + public CarePlanActivityPlannedActivityDetailComponent copy() { + CarePlanActivityPlannedActivityDetailComponent dst = new CarePlanActivityPlannedActivityDetailComponent(); copyValues(dst); return dst; } - public void copyValues(CarePlanActivityDetailComponent dst) { + public void copyValues(CarePlanActivityPlannedActivityDetailComponent dst) { super.copyValues(dst); dst.kind = kind == null ? null : kind.copy(); if (instantiatesCanonical != null) { @@ -2229,9 +2218,9 @@ public class CarePlan extends DomainResource { public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof CarePlanActivityDetailComponent)) + if (!(other_ instanceof CarePlanActivityPlannedActivityDetailComponent)) return false; - CarePlanActivityDetailComponent o = (CarePlanActivityDetailComponent) other_; + CarePlanActivityPlannedActivityDetailComponent o = (CarePlanActivityPlannedActivityDetailComponent) other_; return compareDeep(kind, o.kind, true) && compareDeep(instantiatesCanonical, o.instantiatesCanonical, true) && compareDeep(instantiatesUri, o.instantiatesUri, true) && compareDeep(code, o.code, true) && compareDeep(reason, o.reason, true) && compareDeep(goal, o.goal, true) && compareDeep(status, o.status, true) && compareDeep(statusReason, o.statusReason, true) @@ -2245,9 +2234,9 @@ public class CarePlan extends DomainResource { public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof CarePlanActivityDetailComponent)) + if (!(other_ instanceof CarePlanActivityPlannedActivityDetailComponent)) return false; - CarePlanActivityDetailComponent o = (CarePlanActivityDetailComponent) other_; + CarePlanActivityPlannedActivityDetailComponent o = (CarePlanActivityPlannedActivityDetailComponent) other_; return compareValues(kind, o.kind, true) && compareValues(instantiatesCanonical, o.instantiatesCanonical, true) && compareValues(instantiatesUri, o.instantiatesUri, true) && compareValues(status, o.status, true) && compareValues(doNotPerform, o.doNotPerform, true) && compareValues(description, o.description, true) @@ -2261,7 +2250,7 @@ public class CarePlan extends DomainResource { } public String fhirType() { - return "CarePlan.activity.detail"; + return "CarePlan.activity.plannedActivityDetail"; } @@ -4046,22 +4035,258 @@ public class CarePlan extends DomainResource { return ResourceType.CarePlan; } + /** + * Search parameter: date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) + public static final String SP_DATE = "date"; + /** + * Fluent Client search parameter constant for date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "CarePlan:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("CarePlan:patient").toLocked(); + /** * Search parameter: activity-code *

* Description: Detail type of activity
* Type: token
- * Path: CarePlan.activity.detail.code
+ * Path: CarePlan.activity.plannedActivityDetail.code
*

*/ - @SearchParamDefinition(name="activity-code", path="CarePlan.activity.detail.code", description="Detail type of activity", type="token" ) + @SearchParamDefinition(name="activity-code", path="CarePlan.activity.plannedActivityDetail.code", description="Detail type of activity", type="token" ) public static final String SP_ACTIVITY_CODE = "activity-code"; /** * Fluent Client search parameter constant for activity-code *

* Description: Detail type of activity
* Type: token
- * Path: CarePlan.activity.detail.code
+ * Path: CarePlan.activity.plannedActivityDetail.code
*

*/ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVITY_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVITY_CODE); @@ -4069,19 +4294,19 @@ public class CarePlan extends DomainResource { /** * Search parameter: activity-reference *

- * Description: Activity details defined in specific resource
+ * Description: Activity that is intended to be part of the care plan
* Type: reference
- * Path: CarePlan.activity.reference
+ * Path: CarePlan.activity.plannedActivityReference
*

*/ - @SearchParamDefinition(name="activity-reference", path="CarePlan.activity.reference", description="Activity details defined in specific resource", type="reference", target={Appointment.class, CommunicationRequest.class, DeviceRequest.class, ImmunizationRecommendation.class, MedicationRequest.class, NutritionOrder.class, RequestGroup.class, ServiceRequest.class, Task.class, VisionPrescription.class } ) + @SearchParamDefinition(name="activity-reference", path="CarePlan.activity.plannedActivityReference", description="Activity that is intended to be part of the care plan", type="reference", target={Appointment.class, CommunicationRequest.class, DeviceRequest.class, ImmunizationRecommendation.class, MedicationRequest.class, NutritionOrder.class, RequestGroup.class, ServiceRequest.class, Task.class, VisionPrescription.class } ) public static final String SP_ACTIVITY_REFERENCE = "activity-reference"; /** * Fluent Client search parameter constant for activity-reference *

- * Description: Activity details defined in specific resource
+ * Description: Activity that is intended to be part of the care plan
* Type: reference
- * Path: CarePlan.activity.reference
+ * Path: CarePlan.activity.plannedActivityReference
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ACTIVITY_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ACTIVITY_REFERENCE); @@ -4095,19 +4320,19 @@ public class CarePlan extends DomainResource { /** * Search parameter: activity-scheduled-date *

- * Description: Specified date occurs within period specified by CarePlan.activity.detail.scheduled[x]
+ * Description: Specified date occurs within period specified by CarePlan.activity.plannedActivityDetail.scheduled[x]
* Type: date
- * Path: CarePlan.activity.detail.scheduled.as(Timing) | CarePlan.activity.detail.scheduled.as(Period)
+ * Path: CarePlan.activity.plannedActivityDetail.scheduled.as(Timing) | CarePlan.activity.plannedActivityDetail.scheduled.as(Period)
*

*/ - @SearchParamDefinition(name="activity-scheduled-date", path="CarePlan.activity.detail.scheduled.as(Timing) | CarePlan.activity.detail.scheduled.as(Period)", description="Specified date occurs within period specified by CarePlan.activity.detail.scheduled[x]", type="date" ) + @SearchParamDefinition(name="activity-scheduled-date", path="CarePlan.activity.plannedActivityDetail.scheduled.as(Timing) | CarePlan.activity.plannedActivityDetail.scheduled.as(Period)", description="Specified date occurs within period specified by CarePlan.activity.plannedActivityDetail.scheduled[x]", type="date" ) public static final String SP_ACTIVITY_SCHEDULED_DATE = "activity-scheduled-date"; /** * Fluent Client search parameter constant for activity-scheduled-date *

- * Description: Specified date occurs within period specified by CarePlan.activity.detail.scheduled[x]
+ * Description: Specified date occurs within period specified by CarePlan.activity.plannedActivityDetail.scheduled[x]
* Type: date
- * Path: CarePlan.activity.detail.scheduled.as(Timing) | CarePlan.activity.detail.scheduled.as(Period)
+ * Path: CarePlan.activity.plannedActivityDetail.scheduled.as(Timing) | CarePlan.activity.plannedActivityDetail.scheduled.as(Period)
*

*/ public static final ca.uhn.fhir.rest.gclient.DateClientParam ACTIVITY_SCHEDULED_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_ACTIVITY_SCHEDULED_DATE); @@ -4117,17 +4342,17 @@ public class CarePlan extends DomainResource { *

* Description: When activity is to occur
* Type: string
- * Path: CarePlan.activity.detail.scheduled.as(string)
+ * Path: CarePlan.activity.plannedActivityDetail.scheduled.as(string)
*

*/ - @SearchParamDefinition(name="activity-scheduled-string", path="CarePlan.activity.detail.scheduled.as(string)", description="When activity is to occur", type="string" ) + @SearchParamDefinition(name="activity-scheduled-string", path="CarePlan.activity.plannedActivityDetail.scheduled.as(string)", description="When activity is to occur", type="string" ) public static final String SP_ACTIVITY_SCHEDULED_STRING = "activity-scheduled-string"; /** * Fluent Client search parameter constant for activity-scheduled-string *

* Description: When activity is to occur
* Type: string
- * Path: CarePlan.activity.detail.scheduled.as(string)
+ * Path: CarePlan.activity.plannedActivityDetail.scheduled.as(string)
*

*/ public static final ca.uhn.fhir.rest.gclient.StringClientParam ACTIVITY_SCHEDULED_STRING = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ACTIVITY_SCHEDULED_STRING); @@ -4379,17 +4604,17 @@ public class CarePlan extends DomainResource { *

* Description: Matches if the practitioner is listed as a performer in any of the "simple" activities. (For performers of the detailed activities, chain through the activitydetail search parameter.)
* Type: reference
- * Path: CarePlan.activity.detail.performer
+ * Path: CarePlan.activity.plannedActivityDetail.performer
*

*/ - @SearchParamDefinition(name="performer", path="CarePlan.activity.detail.performer", description="Matches if the practitioner is listed as a performer in any of the \"simple\" activities. (For performers of the detailed activities, chain through the activitydetail search parameter.)", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={CareTeam.class, Device.class, HealthcareService.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) + @SearchParamDefinition(name="performer", path="CarePlan.activity.plannedActivityDetail.performer", description="Matches if the practitioner is listed as a performer in any of the \"simple\" activities. (For performers of the detailed activities, chain through the activitydetail search parameter.)", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={CareTeam.class, Device.class, HealthcareService.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) public static final String SP_PERFORMER = "performer"; /** * Fluent Client search parameter constant for performer *

* Description: Matches if the practitioner is listed as a performer in any of the "simple" activities. (For performers of the detailed activities, chain through the activitydetail search parameter.)
* Type: reference
- * Path: CarePlan.activity.detail.performer
+ * Path: CarePlan.activity.plannedActivityDetail.performer
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PERFORMER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PERFORMER); @@ -4472,242 +4697,6 @@ public class CarePlan extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("CarePlan:subject").toLocked(); - /** - * Search parameter: date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) - public static final String SP_DATE = "date"; - /** - * Fluent Client search parameter constant for date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "CarePlan:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("CarePlan:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CareTeam.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CareTeam.java index 81445b618..c933abd2d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CareTeam.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CareTeam.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -103,7 +103,6 @@ public class CareTeam extends DomainResource { case SUSPENDED: return "suspended"; case INACTIVE: return "inactive"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -114,7 +113,6 @@ public class CareTeam extends DomainResource { case SUSPENDED: return "http://hl7.org/fhir/care-team-status"; case INACTIVE: return "http://hl7.org/fhir/care-team-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/care-team-status"; - case NULL: return null; default: return "?"; } } @@ -125,7 +123,6 @@ public class CareTeam extends DomainResource { case SUSPENDED: return "The care team is temporarily on hold or suspended and not participating in the coordination and delivery of care."; case INACTIVE: return "The care team was, but is no longer, participating in the coordination and delivery of care."; case ENTEREDINERROR: return "The care team should have never existed."; - case NULL: return null; default: return "?"; } } @@ -136,7 +133,6 @@ public class CareTeam extends DomainResource { case SUSPENDED: return "Suspended"; case INACTIVE: return "Inactive"; case ENTEREDINERROR: return "Entered in Error"; - case NULL: return null; default: return "?"; } } @@ -1430,118 +1426,6 @@ public class CareTeam extends DomainResource { return ResourceType.CareTeam; } - /** - * Search parameter: category - *

- * Description: Type of team
- * Type: token
- * Path: CareTeam.category
- *

- */ - @SearchParamDefinition(name="category", path="CareTeam.category", description="Type of team", type="token" ) - public static final String SP_CATEGORY = "category"; - /** - * Fluent Client search parameter constant for category - *

- * Description: Type of team
- * Type: token
- * Path: CareTeam.category
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CATEGORY); - - /** - * Search parameter: name - *

- * Description: Name of the team, such as crisis assessment team
- * Type: string
- * Path: CareTeam.name
- *

- */ - @SearchParamDefinition(name="name", path="CareTeam.name", description="Name of the team, such as crisis assessment team", type="string" ) - public static final String SP_NAME = "name"; - /** - * Fluent Client search parameter constant for name - *

- * Description: Name of the team, such as crisis assessment team
- * Type: string
- * Path: CareTeam.name
- *

- */ - public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); - - /** - * Search parameter: participant - *

- * Description: Who is involved
- * Type: reference
- * Path: CareTeam.participant.member
- *

- */ - @SearchParamDefinition(name="participant", path="CareTeam.participant.member", description="Who is involved", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={CareTeam.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) - public static final String SP_PARTICIPANT = "participant"; - /** - * Fluent Client search parameter constant for participant - *

- * Description: Who is involved
- * Type: reference
- * Path: CareTeam.participant.member
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARTICIPANT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PARTICIPANT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "CareTeam:participant". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PARTICIPANT = new ca.uhn.fhir.model.api.Include("CareTeam:participant").toLocked(); - - /** - * Search parameter: status - *

- * Description: proposed | active | suspended | inactive | entered-in-error
- * Type: token
- * Path: CareTeam.status
- *

- */ - @SearchParamDefinition(name="status", path="CareTeam.status", description="proposed | active | suspended | inactive | entered-in-error", type="token" ) - public static final String SP_STATUS = "status"; - /** - * Fluent Client search parameter constant for status - *

- * Description: proposed | active | suspended | inactive | entered-in-error
- * Type: token
- * Path: CareTeam.status
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); - - /** - * Search parameter: subject - *

- * Description: Who care team is for
- * Type: reference
- * Path: CareTeam.subject
- *

- */ - @SearchParamDefinition(name="subject", path="CareTeam.subject", description="Who care team is for", type="reference", target={Group.class, Patient.class } ) - public static final String SP_SUBJECT = "subject"; - /** - * Fluent Client search parameter constant for subject - *

- * Description: Who care team is for
- * Type: reference
- * Path: CareTeam.subject
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "CareTeam:subject". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("CareTeam:subject").toLocked(); - /** * Search parameter: date *

@@ -1620,7 +1504,7 @@ public class CareTeam extends DomainResource { * [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare * [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier * [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID * [Immunization](immunization.html): Business identifier * [List](list.html): Business identifier * [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier @@ -1640,7 +1524,7 @@ public class CareTeam extends DomainResource { * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
*

*/ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) public static final String SP_IDENTIFIER = "identifier"; /** * Fluent Client search parameter constant for identifier @@ -1662,7 +1546,7 @@ public class CareTeam extends DomainResource { * [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare * [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier * [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID * [Immunization](immunization.html): Business identifier * [List](list.html): Business identifier * [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier @@ -1698,7 +1582,7 @@ public class CareTeam extends DomainResource { * [Consent](consent.html): Who the consent applies to * [DetectedIssue](detectedissue.html): Associated patient * [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient +* [DeviceUsage](deviceusage.html): Search by subject - a patient * [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient * [DocumentManifest](documentmanifest.html): The subject of the set of documents * [DocumentReference](documentreference.html): Who/what is the subject of the document @@ -1723,10 +1607,10 @@ public class CareTeam extends DomainResource { * [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
* Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
*

*/ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -1742,7 +1626,7 @@ public class CareTeam extends DomainResource { * [Consent](consent.html): Who the consent applies to * [DetectedIssue](detectedissue.html): Associated patient * [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient +* [DeviceUsage](deviceusage.html): Search by subject - a patient * [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient * [DocumentManifest](documentmanifest.html): The subject of the set of documents * [DocumentReference](documentreference.html): Who/what is the subject of the document @@ -1767,7 +1651,7 @@ public class CareTeam extends DomainResource { * [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
* Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); @@ -1778,6 +1662,118 @@ public class CareTeam extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("CareTeam:patient").toLocked(); + /** + * Search parameter: category + *

+ * Description: Type of team
+ * Type: token
+ * Path: CareTeam.category
+ *

+ */ + @SearchParamDefinition(name="category", path="CareTeam.category", description="Type of team", type="token" ) + public static final String SP_CATEGORY = "category"; + /** + * Fluent Client search parameter constant for category + *

+ * Description: Type of team
+ * Type: token
+ * Path: CareTeam.category
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CATEGORY); + + /** + * Search parameter: name + *

+ * Description: Name of the team, such as crisis assessment team
+ * Type: string
+ * Path: CareTeam.name | CareTeam.extension('http://hl7.org/fhir/StructureDefinition/careteam-alias')
+ *

+ */ + @SearchParamDefinition(name="name", path="CareTeam.name | CareTeam.extension('http://hl7.org/fhir/StructureDefinition/careteam-alias')", description="Name of the team, such as crisis assessment team", type="string" ) + public static final String SP_NAME = "name"; + /** + * Fluent Client search parameter constant for name + *

+ * Description: Name of the team, such as crisis assessment team
+ * Type: string
+ * Path: CareTeam.name | CareTeam.extension('http://hl7.org/fhir/StructureDefinition/careteam-alias')
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); + + /** + * Search parameter: participant + *

+ * Description: Who is involved
+ * Type: reference
+ * Path: CareTeam.participant.member
+ *

+ */ + @SearchParamDefinition(name="participant", path="CareTeam.participant.member", description="Who is involved", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={CareTeam.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) + public static final String SP_PARTICIPANT = "participant"; + /** + * Fluent Client search parameter constant for participant + *

+ * Description: Who is involved
+ * Type: reference
+ * Path: CareTeam.participant.member
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARTICIPANT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PARTICIPANT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "CareTeam:participant". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PARTICIPANT = new ca.uhn.fhir.model.api.Include("CareTeam:participant").toLocked(); + + /** + * Search parameter: status + *

+ * Description: proposed | active | suspended | inactive | entered-in-error
+ * Type: token
+ * Path: CareTeam.status
+ *

+ */ + @SearchParamDefinition(name="status", path="CareTeam.status", description="proposed | active | suspended | inactive | entered-in-error", type="token" ) + public static final String SP_STATUS = "status"; + /** + * Fluent Client search parameter constant for status + *

+ * Description: proposed | active | suspended | inactive | entered-in-error
+ * Type: token
+ * Path: CareTeam.status
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); + + /** + * Search parameter: subject + *

+ * Description: Who care team is for
+ * Type: reference
+ * Path: CareTeam.subject
+ *

+ */ + @SearchParamDefinition(name="subject", path="CareTeam.subject", description="Who care team is for", type="reference", target={Group.class, Patient.class } ) + public static final String SP_SUBJECT = "subject"; + /** + * Fluent Client search parameter constant for subject + *

+ * Description: Who care team is for
+ * Type: reference
+ * Path: CareTeam.subject
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "CareTeam:subject". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("CareTeam:subject").toLocked(); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CatalogEntry.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CatalogEntry.java index ef0f991e2..3edb3054d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CatalogEntry.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CatalogEntry.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class CatalogEntry extends DomainResource { case ISREPLACEDBY: return "is-replaced-by"; case EXCLUDES: return "excludes"; case INCLUDES: return "includes"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class CatalogEntry extends DomainResource { case ISREPLACEDBY: return "http://hl7.org/fhir/catalogentry-relation-type"; case EXCLUDES: return "http://hl7.org/fhir/catalogentry-relation-type"; case INCLUDES: return "http://hl7.org/fhir/catalogentry-relation-type"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class CatalogEntry extends DomainResource { case ISREPLACEDBY: return "the related catalog entry supersedes this one when it is not active."; case EXCLUDES: return "The related catalog entry is excluded by this one."; case INCLUDES: return "The item of the related catalog entry will be part of the orders containing the current item."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class CatalogEntry extends DomainResource { case ISREPLACEDBY: return "Is replaced by"; case EXCLUDES: return "Excludes"; case INCLUDES: return "Includes"; - case NULL: return null; default: return "?"; } } @@ -217,7 +213,6 @@ public class CatalogEntry extends DomainResource { case DRAFT: return "draft"; case ACTIVE: return "active"; case RETIRED: return "retired"; - case NULL: return null; default: return "?"; } } @@ -226,7 +221,6 @@ public class CatalogEntry extends DomainResource { case DRAFT: return "http://hl7.org/fhir/catalogentry-status"; case ACTIVE: return "http://hl7.org/fhir/catalogentry-status"; case RETIRED: return "http://hl7.org/fhir/catalogentry-status"; - case NULL: return null; default: return "?"; } } @@ -235,7 +229,6 @@ public class CatalogEntry extends DomainResource { case DRAFT: return ""; case ACTIVE: return ""; case RETIRED: return ""; - case NULL: return null; default: return "?"; } } @@ -244,7 +237,6 @@ public class CatalogEntry extends DomainResource { case DRAFT: return "Draft"; case ACTIVE: return "Active"; case RETIRED: return "Retired"; - case NULL: return null; default: return "?"; } } @@ -399,7 +391,6 @@ public class CatalogEntry extends DomainResource { case MEDICATION: return "Medication"; case SUBSTANCE: return "Substance"; case LOCATION: return "Location"; - case NULL: return null; default: return "?"; } } @@ -418,7 +409,6 @@ public class CatalogEntry extends DomainResource { case MEDICATION: return "http://hl7.org/fhir/catalogentry-type"; case SUBSTANCE: return "http://hl7.org/fhir/catalogentry-type"; case LOCATION: return "http://hl7.org/fhir/catalogentry-type"; - case NULL: return null; default: return "?"; } } @@ -437,7 +427,6 @@ public class CatalogEntry extends DomainResource { case MEDICATION: return ""; case SUBSTANCE: return ""; case LOCATION: return ""; - case NULL: return null; default: return "?"; } } @@ -456,7 +445,6 @@ public class CatalogEntry extends DomainResource { case MEDICATION: return "Medication"; case SUBSTANCE: return "Substance"; case LOCATION: return "Location"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ChargeItem.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ChargeItem.java index 6987cc233..9fecb4c91 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ChargeItem.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ChargeItem.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -118,7 +118,6 @@ public class ChargeItem extends DomainResource { case BILLED: return "billed"; case ENTEREDINERROR: return "entered-in-error"; case UNKNOWN: return "unknown"; - case NULL: return null; default: return "?"; } } @@ -131,7 +130,6 @@ public class ChargeItem extends DomainResource { case BILLED: return "http://hl7.org/fhir/chargeitem-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/chargeitem-status"; case UNKNOWN: return "http://hl7.org/fhir/chargeitem-status"; - case NULL: return null; default: return "?"; } } @@ -144,7 +142,6 @@ public class ChargeItem extends DomainResource { case BILLED: return "The charge item has been billed (e.g. a billing engine has generated financial transactions by applying the associated ruled for the charge item to the context of the Encounter, and placed them into Claims/Invoices."; case ENTEREDINERROR: return "The charge item has been entered in error and should not be processed for billing."; case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this charge item Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, it's just not known which one."; - case NULL: return null; default: return "?"; } } @@ -157,7 +154,6 @@ public class ChargeItem extends DomainResource { case BILLED: return "Billed"; case ENTEREDINERROR: return "Entered in Error"; case UNKNOWN: return "Unknown"; - case NULL: return null; default: return "?"; } } @@ -603,7 +599,7 @@ public class ChargeItem extends DomainResource { */ @Child(name = "product", type = {Device.class, Medication.class, Substance.class, CodeableConcept.class}, order=22, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Product charged", formalDefinition="Identifies the device, food, drug or other product being charged either by type code or reference to an instance." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-kind") + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-type") protected DataType product; /** @@ -2537,7 +2533,7 @@ public class ChargeItem extends DomainResource { * Path: ChargeItem.subject.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="ChargeItem.subject.where(resolve() is Patient)", description="Individual service was done for/to", type="reference", target={Patient.class } ) + @SearchParamDefinition(name="patient", path="ChargeItem.subject.where(resolve() is Patient)", description="Individual service was done for/to", type="reference", target={Group.class, Patient.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ChargeItemDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ChargeItemDefinition.java index de2917ce9..a7cf47f2a 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ChargeItemDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ChargeItemDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -2393,6 +2393,216 @@ public class ChargeItemDefinition extends MetadataResource { */ public ChargeItemDefinition setPurpose(String value) { throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"purpose\""); + } + /** + * not supported on this implementation + */ + @Override + public int getTopicMax() { + return 0; + } + /** + * @return {@link #topic} (Descriptive topics related to the content of the library. Topics provide a high-level categorization of the library that can be useful for filtering and searching.) + */ + public List getTopic() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public ChargeItemDefinition setTopic(List theTopic) { + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"topic\""); + } + public boolean hasTopic() { + return false; + } + + public CodeableConcept addTopic() { //3 + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"topic\""); + } + public ChargeItemDefinition addTopic(CodeableConcept t) { //3 + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"topic\""); + } + /** + * @return The first repetition of repeating field {@link #topic}, creating it if it does not already exist {2} + */ + public CodeableConcept getTopicFirstRep() { + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"topic\""); + } + /** + * not supported on this implementation + */ + @Override + public int getAuthorMax() { + return 0; + } + /** + * @return {@link #author} (An individiual or organization primarily involved in the creation and maintenance of the charge item definition.) + */ + public List getAuthor() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public ChargeItemDefinition setAuthor(List theAuthor) { + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"author\""); + } + public boolean hasAuthor() { + return false; + } + + public ContactDetail addAuthor() { //3 + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"author\""); + } + public ChargeItemDefinition addAuthor(ContactDetail t) { //3 + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"author\""); + } + /** + * @return The first repetition of repeating field {@link #author}, creating it if it does not already exist {2} + */ + public ContactDetail getAuthorFirstRep() { + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"author\""); + } + /** + * not supported on this implementation + */ + @Override + public int getEditorMax() { + return 0; + } + /** + * @return {@link #editor} (An individual or organization primarily responsible for internal coherence of the charge item definition.) + */ + public List getEditor() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public ChargeItemDefinition setEditor(List theEditor) { + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"editor\""); + } + public boolean hasEditor() { + return false; + } + + public ContactDetail addEditor() { //3 + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"editor\""); + } + public ChargeItemDefinition addEditor(ContactDetail t) { //3 + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"editor\""); + } + /** + * @return The first repetition of repeating field {@link #editor}, creating it if it does not already exist {2} + */ + public ContactDetail getEditorFirstRep() { + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"editor\""); + } + /** + * not supported on this implementation + */ + @Override + public int getReviewerMax() { + return 0; + } + /** + * @return {@link #reviewer} (An individual or organization primarily responsible for review of some aspect of the charge item definition.) + */ + public List getReviewer() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public ChargeItemDefinition setReviewer(List theReviewer) { + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"reviewer\""); + } + public boolean hasReviewer() { + return false; + } + + public ContactDetail addReviewer() { //3 + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"reviewer\""); + } + public ChargeItemDefinition addReviewer(ContactDetail t) { //3 + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"reviewer\""); + } + /** + * @return The first repetition of repeating field {@link #reviewer}, creating it if it does not already exist {2} + */ + public ContactDetail getReviewerFirstRep() { + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"reviewer\""); + } + /** + * not supported on this implementation + */ + @Override + public int getEndorserMax() { + return 0; + } + /** + * @return {@link #endorser} (An individual or organization responsible for officially endorsing the charge item definition for use in some setting.) + */ + public List getEndorser() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public ChargeItemDefinition setEndorser(List theEndorser) { + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"endorser\""); + } + public boolean hasEndorser() { + return false; + } + + public ContactDetail addEndorser() { //3 + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"endorser\""); + } + public ChargeItemDefinition addEndorser(ContactDetail t) { //3 + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"endorser\""); + } + /** + * @return The first repetition of repeating field {@link #endorser}, creating it if it does not already exist {2} + */ + public ContactDetail getEndorserFirstRep() { + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"endorser\""); + } + /** + * not supported on this implementation + */ + @Override + public int getRelatedArtifactMax() { + return 0; + } + /** + * @return {@link #relatedArtifact} (Related artifacts such as additional documentation, justification, dependencies, bibliographic references, and predecessor and successor artifacts.) + */ + public List getRelatedArtifact() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public ChargeItemDefinition setRelatedArtifact(List theRelatedArtifact) { + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"relatedArtifact\""); + } + public boolean hasRelatedArtifact() { + return false; + } + + public RelatedArtifact addRelatedArtifact() { //3 + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"relatedArtifact\""); + } + public ChargeItemDefinition addRelatedArtifact(RelatedArtifact t) { //3 + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"relatedArtifact\""); + } + /** + * @return The first repetition of repeating field {@link #relatedArtifact}, creating it if it does not already exist {2} + */ + public RelatedArtifact getRelatedArtifactFirstRep() { + throw new Error("The resource type \"ChargeItemDefinition\" does not implement the property \"relatedArtifact\""); } protected void listChildren(List children) { super.listChildren(children); @@ -2882,6 +3092,26 @@ public class ChargeItemDefinition extends MetadataResource { return ResourceType.ChargeItemDefinition; } + /** + * Search parameter: context + *

+ * Description: A use context assigned to the charge item definition
+ * Type: token
+ * Path: (ChargeItemDefinition.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(ChargeItemDefinition.useContext.value as CodeableConcept)", description="A use context assigned to the charge item definition", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: A use context assigned to the charge item definition
+ * Type: token
+ * Path: (ChargeItemDefinition.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -2902,46 +3132,6 @@ public class ChargeItemDefinition extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the charge item definition
- * Type: composite
- * Path: ChargeItemDefinition.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="ChargeItemDefinition.useContext", description="A use context type and quantity- or range-based value assigned to the charge item definition", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the charge item definition
- * Type: composite
- * Path: ChargeItemDefinition.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: A use context type and value assigned to the charge item definition
- * Type: composite
- * Path: ChargeItemDefinition.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="ChargeItemDefinition.useContext", description="A use context type and value assigned to the charge item definition", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: A use context type and value assigned to the charge item definition
- * Type: composite
- * Path: ChargeItemDefinition.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -2962,26 +3152,6 @@ public class ChargeItemDefinition extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: A use context assigned to the charge item definition
- * Type: token
- * Path: (ChargeItemDefinition.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(ChargeItemDefinition.useContext.value as CodeableConcept)", description="A use context assigned to the charge item definition", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: A use context assigned to the charge item definition
- * Type: token
- * Path: (ChargeItemDefinition.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -3182,6 +3352,46 @@ public class ChargeItemDefinition extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the charge item definition
+ * Type: composite
+ * Path: ChargeItemDefinition.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="ChargeItemDefinition.useContext", description="A use context type and quantity- or range-based value assigned to the charge item definition", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the charge item definition
+ * Type: composite
+ * Path: ChargeItemDefinition.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: A use context type and value assigned to the charge item definition
+ * Type: composite
+ * Path: ChargeItemDefinition.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="ChargeItemDefinition.useContext", description="A use context type and value assigned to the charge item definition", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: A use context type and value assigned to the charge item definition
+ * Type: composite
+ * Path: ChargeItemDefinition.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Citation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Citation.java index 54ca2a99f..2d45c041f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Citation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Citation.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -48,281 +48,45 @@ import ca.uhn.fhir.model.api.annotation.Description; import ca.uhn.fhir.model.api.annotation.Block; /** - * The Citation. + * The Citation Resource enables reference to any knowledge artifact for purposes of identification and attribution. The Citation Resource supports existing reference structures and developing publication practices such as versioning, expressing complex contributorship roles, and referencing computable resources. */ @ResourceDef(name="Citation", profile="http://hl7.org/fhir/StructureDefinition/Citation") public class Citation extends MetadataResource { @Block() - public static class CitationSummaryComponent extends BackboneElement implements IBaseBackboneElement { + public static class CitationClassificationComponent extends BackboneElement implements IBaseBackboneElement { /** - * Format for display of the citation. - */ - @Child(name = "style", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Format for display of the citation", formalDefinition="Format for display of the citation." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/citation-summary-style") - protected CodeableConcept style; - - /** - * The human-readable display of the citation. - */ - @Child(name = "text", type = {MarkdownType.class}, order=2, min=1, max=1, modifier=false, summary=true) - @Description(shortDefinition="The human-readable display of the citation", formalDefinition="The human-readable display of the citation." ) - protected MarkdownType text; - - private static final long serialVersionUID = 123416446L; - - /** - * Constructor - */ - public CitationSummaryComponent() { - super(); - } - - /** - * Constructor - */ - public CitationSummaryComponent(String text) { - super(); - this.setText(text); - } - - /** - * @return {@link #style} (Format for display of the citation.) - */ - public CodeableConcept getStyle() { - if (this.style == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationSummaryComponent.style"); - else if (Configuration.doAutoCreate()) - this.style = new CodeableConcept(); // cc - return this.style; - } - - public boolean hasStyle() { - return this.style != null && !this.style.isEmpty(); - } - - /** - * @param value {@link #style} (Format for display of the citation.) - */ - public CitationSummaryComponent setStyle(CodeableConcept value) { - this.style = value; - return this; - } - - /** - * @return {@link #text} (The human-readable display of the citation.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value - */ - public MarkdownType getTextElement() { - if (this.text == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationSummaryComponent.text"); - else if (Configuration.doAutoCreate()) - this.text = new MarkdownType(); // bb - return this.text; - } - - public boolean hasTextElement() { - return this.text != null && !this.text.isEmpty(); - } - - public boolean hasText() { - return this.text != null && !this.text.isEmpty(); - } - - /** - * @param value {@link #text} (The human-readable display of the citation.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value - */ - public CitationSummaryComponent setTextElement(MarkdownType value) { - this.text = value; - return this; - } - - /** - * @return The human-readable display of the citation. - */ - public String getText() { - return this.text == null ? null : this.text.getValue(); - } - - /** - * @param value The human-readable display of the citation. - */ - public CitationSummaryComponent setText(String value) { - if (this.text == null) - this.text = new MarkdownType(); - this.text.setValue(value); - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("style", "CodeableConcept", "Format for display of the citation.", 0, 1, style)); - children.add(new Property("text", "markdown", "The human-readable display of the citation.", 0, 1, text)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 109780401: /*style*/ return new Property("style", "CodeableConcept", "Format for display of the citation.", 0, 1, style); - case 3556653: /*text*/ return new Property("text", "markdown", "The human-readable display of the citation.", 0, 1, text); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 109780401: /*style*/ return this.style == null ? new Base[0] : new Base[] {this.style}; // CodeableConcept - case 3556653: /*text*/ return this.text == null ? new Base[0] : new Base[] {this.text}; // MarkdownType - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 109780401: // style - this.style = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; - case 3556653: // text - this.text = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("style")) { - this.style = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("text")) { - this.text = TypeConvertor.castToMarkdown(value); // MarkdownType - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 109780401: return getStyle(); - case 3556653: return getTextElement(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 109780401: /*style*/ return new String[] {"CodeableConcept"}; - case 3556653: /*text*/ return new String[] {"markdown"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("style")) { - this.style = new CodeableConcept(); - return this.style; - } - else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.summary.text"); - } - else - return super.addChild(name); - } - - public CitationSummaryComponent copy() { - CitationSummaryComponent dst = new CitationSummaryComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationSummaryComponent dst) { - super.copyValues(dst); - dst.style = style == null ? null : style.copy(); - dst.text = text == null ? null : text.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationSummaryComponent)) - return false; - CitationSummaryComponent o = (CitationSummaryComponent) other_; - return compareDeep(style, o.style, true) && compareDeep(text, o.text, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationSummaryComponent)) - return false; - CitationSummaryComponent o = (CitationSummaryComponent) other_; - return compareValues(text, o.text, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(style, text); - } - - public String fhirType() { - return "Citation.summary"; - - } - - } - - @Block() - public static class CitationVariantCitationComponent extends BackboneElement implements IBaseBackboneElement { - /** - * Used to describe the reason for the variant citation, such as version or subpart specification. + * The kind of classifier (e.g. publication type, keyword). */ @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used to describe the reason for the variant citation, such as version or subpart specification", formalDefinition="Used to describe the reason for the variant citation, such as version or subpart specification." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/citation-variant-type") + @Description(shortDefinition="The kind of classifier (e.g. publication type, keyword)", formalDefinition="The kind of classifier (e.g. publication type, keyword)." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/citation-classification-type") protected CodeableConcept type; /** - * Used to describe the specific variation, such as version number or subpart specification. + * The specific classification value. */ - @Child(name = "value", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used to describe the specific variation, such as version number or subpart specification", formalDefinition="Used to describe the specific variation, such as version number or subpart specification." ) - protected StringType value; + @Child(name = "classifier", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="The specific classification value", formalDefinition="The specific classification value." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/citation-artifact-classifier") + protected List classifier; - /** - * Base citation. - */ - @Child(name = "baseCitation", type = {Citation.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Base citation", formalDefinition="Base citation." ) - protected Reference baseCitation; - - private static final long serialVersionUID = -765350500L; + private static final long serialVersionUID = -283121869L; /** * Constructor */ - public CitationVariantCitationComponent() { + public CitationClassificationComponent() { super(); } /** - * @return {@link #type} (Used to describe the reason for the variant citation, such as version or subpart specification.) + * @return {@link #type} (The kind of classifier (e.g. publication type, keyword).) */ public CodeableConcept getType() { if (this.type == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationVariantCitationComponent.type"); + throw new Error("Attempt to auto-create CitationClassificationComponent.type"); else if (Configuration.doAutoCreate()) this.type = new CodeableConcept(); // cc return this.type; @@ -333,20 +97,2066 @@ public class Citation extends MetadataResource { } /** - * @param value {@link #type} (Used to describe the reason for the variant citation, such as version or subpart specification.) + * @param value {@link #type} (The kind of classifier (e.g. publication type, keyword).) */ - public CitationVariantCitationComponent setType(CodeableConcept value) { + public CitationClassificationComponent setType(CodeableConcept value) { this.type = value; return this; } /** - * @return {@link #value} (Used to describe the specific variation, such as version number or subpart specification.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value + * @return {@link #classifier} (The specific classification value.) + */ + public List getClassifier() { + if (this.classifier == null) + this.classifier = new ArrayList(); + return this.classifier; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationClassificationComponent setClassifier(List theClassifier) { + this.classifier = theClassifier; + return this; + } + + public boolean hasClassifier() { + if (this.classifier == null) + return false; + for (CodeableConcept item : this.classifier) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addClassifier() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.classifier == null) + this.classifier = new ArrayList(); + this.classifier.add(t); + return t; + } + + public CitationClassificationComponent addClassifier(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.classifier == null) + this.classifier = new ArrayList(); + this.classifier.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #classifier}, creating it if it does not already exist {3} + */ + public CodeableConcept getClassifierFirstRep() { + if (getClassifier().isEmpty()) { + addClassifier(); + } + return getClassifier().get(0); + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("type", "CodeableConcept", "The kind of classifier (e.g. publication type, keyword).", 0, 1, type)); + children.add(new Property("classifier", "CodeableConcept", "The specific classification value.", 0, java.lang.Integer.MAX_VALUE, classifier)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The kind of classifier (e.g. publication type, keyword).", 0, 1, type); + case -281470431: /*classifier*/ return new Property("classifier", "CodeableConcept", "The specific classification value.", 0, java.lang.Integer.MAX_VALUE, classifier); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case -281470431: /*classifier*/ return this.classifier == null ? new Base[0] : this.classifier.toArray(new Base[this.classifier.size()]); // CodeableConcept + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3575610: // type + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -281470431: // classifier + this.getClassifier().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("classifier")) { + this.getClassifier().add(TypeConvertor.castToCodeableConcept(value)); + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: return getType(); + case -281470431: return addClassifier(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case -281470431: /*classifier*/ return new String[] {"CodeableConcept"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("type")) { + this.type = new CodeableConcept(); + return this.type; + } + else if (name.equals("classifier")) { + return addClassifier(); + } + else + return super.addChild(name); + } + + public CitationClassificationComponent copy() { + CitationClassificationComponent dst = new CitationClassificationComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(CitationClassificationComponent dst) { + super.copyValues(dst); + dst.type = type == null ? null : type.copy(); + if (classifier != null) { + dst.classifier = new ArrayList(); + for (CodeableConcept i : classifier) + dst.classifier.add(i.copy()); + }; + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof CitationClassificationComponent)) + return false; + CitationClassificationComponent o = (CitationClassificationComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(classifier, o.classifier, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof CitationClassificationComponent)) + return false; + CitationClassificationComponent o = (CitationClassificationComponent) other_; + return true; + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, classifier); + } + + public String fhirType() { + return "Citation.classification"; + + } + + } + + @Block() + public static class CitationStatusDateComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Classification of the status. + */ + @Child(name = "activity", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="Classification of the status", formalDefinition="Classification of the status." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/citation-status-type") + protected CodeableConcept activity; + + /** + * Either occurred or expected. + */ + @Child(name = "actual", type = {BooleanType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Either occurred or expected", formalDefinition="Either occurred or expected." ) + protected BooleanType actual; + + /** + * When the status started and/or ended. + */ + @Child(name = "period", type = {Period.class}, order=3, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="When the status started and/or ended", formalDefinition="When the status started and/or ended." ) + protected Period period; + + private static final long serialVersionUID = 1123586924L; + + /** + * Constructor + */ + public CitationStatusDateComponent() { + super(); + } + + /** + * Constructor + */ + public CitationStatusDateComponent(CodeableConcept activity, Period period) { + super(); + this.setActivity(activity); + this.setPeriod(period); + } + + /** + * @return {@link #activity} (Classification of the status.) + */ + public CodeableConcept getActivity() { + if (this.activity == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationStatusDateComponent.activity"); + else if (Configuration.doAutoCreate()) + this.activity = new CodeableConcept(); // cc + return this.activity; + } + + public boolean hasActivity() { + return this.activity != null && !this.activity.isEmpty(); + } + + /** + * @param value {@link #activity} (Classification of the status.) + */ + public CitationStatusDateComponent setActivity(CodeableConcept value) { + this.activity = value; + return this; + } + + /** + * @return {@link #actual} (Either occurred or expected.). This is the underlying object with id, value and extensions. The accessor "getActual" gives direct access to the value + */ + public BooleanType getActualElement() { + if (this.actual == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationStatusDateComponent.actual"); + else if (Configuration.doAutoCreate()) + this.actual = new BooleanType(); // bb + return this.actual; + } + + public boolean hasActualElement() { + return this.actual != null && !this.actual.isEmpty(); + } + + public boolean hasActual() { + return this.actual != null && !this.actual.isEmpty(); + } + + /** + * @param value {@link #actual} (Either occurred or expected.). This is the underlying object with id, value and extensions. The accessor "getActual" gives direct access to the value + */ + public CitationStatusDateComponent setActualElement(BooleanType value) { + this.actual = value; + return this; + } + + /** + * @return Either occurred or expected. + */ + public boolean getActual() { + return this.actual == null || this.actual.isEmpty() ? false : this.actual.getValue(); + } + + /** + * @param value Either occurred or expected. + */ + public CitationStatusDateComponent setActual(boolean value) { + if (this.actual == null) + this.actual = new BooleanType(); + this.actual.setValue(value); + return this; + } + + /** + * @return {@link #period} (When the status started and/or ended.) + */ + public Period getPeriod() { + if (this.period == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationStatusDateComponent.period"); + else if (Configuration.doAutoCreate()) + this.period = new Period(); // cc + return this.period; + } + + public boolean hasPeriod() { + return this.period != null && !this.period.isEmpty(); + } + + /** + * @param value {@link #period} (When the status started and/or ended.) + */ + public CitationStatusDateComponent setPeriod(Period value) { + this.period = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("activity", "CodeableConcept", "Classification of the status.", 0, 1, activity)); + children.add(new Property("actual", "boolean", "Either occurred or expected.", 0, 1, actual)); + children.add(new Property("period", "Period", "When the status started and/or ended.", 0, 1, period)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -1655966961: /*activity*/ return new Property("activity", "CodeableConcept", "Classification of the status.", 0, 1, activity); + case -1422939762: /*actual*/ return new Property("actual", "boolean", "Either occurred or expected.", 0, 1, actual); + case -991726143: /*period*/ return new Property("period", "Period", "When the status started and/or ended.", 0, 1, period); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -1655966961: /*activity*/ return this.activity == null ? new Base[0] : new Base[] {this.activity}; // CodeableConcept + case -1422939762: /*actual*/ return this.actual == null ? new Base[0] : new Base[] {this.actual}; // BooleanType + case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -1655966961: // activity + this.activity = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -1422939762: // actual + this.actual = TypeConvertor.castToBoolean(value); // BooleanType + return value; + case -991726143: // period + this.period = TypeConvertor.castToPeriod(value); // Period + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("activity")) { + this.activity = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("actual")) { + this.actual = TypeConvertor.castToBoolean(value); // BooleanType + } else if (name.equals("period")) { + this.period = TypeConvertor.castToPeriod(value); // Period + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1655966961: return getActivity(); + case -1422939762: return getActualElement(); + case -991726143: return getPeriod(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1655966961: /*activity*/ return new String[] {"CodeableConcept"}; + case -1422939762: /*actual*/ return new String[] {"boolean"}; + case -991726143: /*period*/ return new String[] {"Period"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("activity")) { + this.activity = new CodeableConcept(); + return this.activity; + } + else if (name.equals("actual")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.statusDate.actual"); + } + else if (name.equals("period")) { + this.period = new Period(); + return this.period; + } + else + return super.addChild(name); + } + + public CitationStatusDateComponent copy() { + CitationStatusDateComponent dst = new CitationStatusDateComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(CitationStatusDateComponent dst) { + super.copyValues(dst); + dst.activity = activity == null ? null : activity.copy(); + dst.actual = actual == null ? null : actual.copy(); + dst.period = period == null ? null : period.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof CitationStatusDateComponent)) + return false; + CitationStatusDateComponent o = (CitationStatusDateComponent) other_; + return compareDeep(activity, o.activity, true) && compareDeep(actual, o.actual, true) && compareDeep(period, o.period, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof CitationStatusDateComponent)) + return false; + CitationStatusDateComponent o = (CitationStatusDateComponent) other_; + return compareValues(actual, o.actual, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(activity, actual, period + ); + } + + public String fhirType() { + return "Citation.statusDate"; + + } + + } + + @Block() + public static class CitationRelatesToComponent extends BackboneElement implements IBaseBackboneElement { + /** + * How the Citation resource relates to the target artifact. + */ + @Child(name = "relationshipType", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="How the Citation resource relates to the target artifact", formalDefinition="How the Citation resource relates to the target artifact." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/artifact-relationship-type") + protected CodeableConcept relationshipType; + + /** + * The clasification of the related artifact. + */ + @Child(name = "targetClassifier", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="The clasification of the related artifact", formalDefinition="The clasification of the related artifact." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/citation-artifact-classifier") + protected List targetClassifier; + + /** + * The article or artifact that the Citation Resource is related to. + */ + @Child(name = "target", type = {UriType.class, Identifier.class, Reference.class, Attachment.class}, order=3, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The article or artifact that the Citation Resource is related to", formalDefinition="The article or artifact that the Citation Resource is related to." ) + protected DataType target; + + private static final long serialVersionUID = 819025047L; + + /** + * Constructor + */ + public CitationRelatesToComponent() { + super(); + } + + /** + * Constructor + */ + public CitationRelatesToComponent(CodeableConcept relationshipType, DataType target) { + super(); + this.setRelationshipType(relationshipType); + this.setTarget(target); + } + + /** + * @return {@link #relationshipType} (How the Citation resource relates to the target artifact.) + */ + public CodeableConcept getRelationshipType() { + if (this.relationshipType == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationRelatesToComponent.relationshipType"); + else if (Configuration.doAutoCreate()) + this.relationshipType = new CodeableConcept(); // cc + return this.relationshipType; + } + + public boolean hasRelationshipType() { + return this.relationshipType != null && !this.relationshipType.isEmpty(); + } + + /** + * @param value {@link #relationshipType} (How the Citation resource relates to the target artifact.) + */ + public CitationRelatesToComponent setRelationshipType(CodeableConcept value) { + this.relationshipType = value; + return this; + } + + /** + * @return {@link #targetClassifier} (The clasification of the related artifact.) + */ + public List getTargetClassifier() { + if (this.targetClassifier == null) + this.targetClassifier = new ArrayList(); + return this.targetClassifier; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationRelatesToComponent setTargetClassifier(List theTargetClassifier) { + this.targetClassifier = theTargetClassifier; + return this; + } + + public boolean hasTargetClassifier() { + if (this.targetClassifier == null) + return false; + for (CodeableConcept item : this.targetClassifier) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addTargetClassifier() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.targetClassifier == null) + this.targetClassifier = new ArrayList(); + this.targetClassifier.add(t); + return t; + } + + public CitationRelatesToComponent addTargetClassifier(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.targetClassifier == null) + this.targetClassifier = new ArrayList(); + this.targetClassifier.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #targetClassifier}, creating it if it does not already exist {3} + */ + public CodeableConcept getTargetClassifierFirstRep() { + if (getTargetClassifier().isEmpty()) { + addTargetClassifier(); + } + return getTargetClassifier().get(0); + } + + /** + * @return {@link #target} (The article or artifact that the Citation Resource is related to.) + */ + public DataType getTarget() { + return this.target; + } + + /** + * @return {@link #target} (The article or artifact that the Citation Resource is related to.) + */ + public UriType getTargetUriType() throws FHIRException { + if (this.target == null) + this.target = new UriType(); + if (!(this.target instanceof UriType)) + throw new FHIRException("Type mismatch: the type UriType was expected, but "+this.target.getClass().getName()+" was encountered"); + return (UriType) this.target; + } + + public boolean hasTargetUriType() { + return this != null && this.target instanceof UriType; + } + + /** + * @return {@link #target} (The article or artifact that the Citation Resource is related to.) + */ + public Identifier getTargetIdentifier() throws FHIRException { + if (this.target == null) + this.target = new Identifier(); + if (!(this.target instanceof Identifier)) + throw new FHIRException("Type mismatch: the type Identifier was expected, but "+this.target.getClass().getName()+" was encountered"); + return (Identifier) this.target; + } + + public boolean hasTargetIdentifier() { + return this != null && this.target instanceof Identifier; + } + + /** + * @return {@link #target} (The article or artifact that the Citation Resource is related to.) + */ + public Reference getTargetReference() throws FHIRException { + if (this.target == null) + this.target = new Reference(); + if (!(this.target instanceof Reference)) + throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.target.getClass().getName()+" was encountered"); + return (Reference) this.target; + } + + public boolean hasTargetReference() { + return this != null && this.target instanceof Reference; + } + + /** + * @return {@link #target} (The article or artifact that the Citation Resource is related to.) + */ + public Attachment getTargetAttachment() throws FHIRException { + if (this.target == null) + this.target = new Attachment(); + if (!(this.target instanceof Attachment)) + throw new FHIRException("Type mismatch: the type Attachment was expected, but "+this.target.getClass().getName()+" was encountered"); + return (Attachment) this.target; + } + + public boolean hasTargetAttachment() { + return this != null && this.target instanceof Attachment; + } + + public boolean hasTarget() { + return this.target != null && !this.target.isEmpty(); + } + + /** + * @param value {@link #target} (The article or artifact that the Citation Resource is related to.) + */ + public CitationRelatesToComponent setTarget(DataType value) { + if (value != null && !(value instanceof UriType || value instanceof Identifier || value instanceof Reference || value instanceof Attachment)) + throw new Error("Not the right type for Citation.relatesTo.target[x]: "+value.fhirType()); + this.target = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("relationshipType", "CodeableConcept", "How the Citation resource relates to the target artifact.", 0, 1, relationshipType)); + children.add(new Property("targetClassifier", "CodeableConcept", "The clasification of the related artifact.", 0, java.lang.Integer.MAX_VALUE, targetClassifier)); + children.add(new Property("target[x]", "uri|Identifier|Reference(Any)|Attachment", "The article or artifact that the Citation Resource is related to.", 0, 1, target)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -1602839150: /*relationshipType*/ return new Property("relationshipType", "CodeableConcept", "How the Citation resource relates to the target artifact.", 0, 1, relationshipType); + case -1267112302: /*targetClassifier*/ return new Property("targetClassifier", "CodeableConcept", "The clasification of the related artifact.", 0, java.lang.Integer.MAX_VALUE, targetClassifier); + case -815579825: /*target[x]*/ return new Property("target[x]", "uri|Identifier|Reference(Any)|Attachment", "The article or artifact that the Citation Resource is related to.", 0, 1, target); + case -880905839: /*target*/ return new Property("target[x]", "uri|Identifier|Reference(Any)|Attachment", "The article or artifact that the Citation Resource is related to.", 0, 1, target); + case -815585765: /*targetUri*/ return new Property("target[x]", "uri", "The article or artifact that the Citation Resource is related to.", 0, 1, target); + case 1690892570: /*targetIdentifier*/ return new Property("target[x]", "Identifier", "The article or artifact that the Citation Resource is related to.", 0, 1, target); + case 1259806906: /*targetReference*/ return new Property("target[x]", "Reference(Any)", "The article or artifact that the Citation Resource is related to.", 0, 1, target); + case 1345824148: /*targetAttachment*/ return new Property("target[x]", "Attachment", "The article or artifact that the Citation Resource is related to.", 0, 1, target); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -1602839150: /*relationshipType*/ return this.relationshipType == null ? new Base[0] : new Base[] {this.relationshipType}; // CodeableConcept + case -1267112302: /*targetClassifier*/ return this.targetClassifier == null ? new Base[0] : this.targetClassifier.toArray(new Base[this.targetClassifier.size()]); // CodeableConcept + case -880905839: /*target*/ return this.target == null ? new Base[0] : new Base[] {this.target}; // DataType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -1602839150: // relationshipType + this.relationshipType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -1267112302: // targetClassifier + this.getTargetClassifier().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + case -880905839: // target + this.target = TypeConvertor.castToType(value); // DataType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("relationshipType")) { + this.relationshipType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("targetClassifier")) { + this.getTargetClassifier().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("target[x]")) { + this.target = TypeConvertor.castToType(value); // DataType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1602839150: return getRelationshipType(); + case -1267112302: return addTargetClassifier(); + case -815579825: return getTarget(); + case -880905839: return getTarget(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1602839150: /*relationshipType*/ return new String[] {"CodeableConcept"}; + case -1267112302: /*targetClassifier*/ return new String[] {"CodeableConcept"}; + case -880905839: /*target*/ return new String[] {"uri", "Identifier", "Reference", "Attachment"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("relationshipType")) { + this.relationshipType = new CodeableConcept(); + return this.relationshipType; + } + else if (name.equals("targetClassifier")) { + return addTargetClassifier(); + } + else if (name.equals("targetUri")) { + this.target = new UriType(); + return this.target; + } + else if (name.equals("targetIdentifier")) { + this.target = new Identifier(); + return this.target; + } + else if (name.equals("targetReference")) { + this.target = new Reference(); + return this.target; + } + else if (name.equals("targetAttachment")) { + this.target = new Attachment(); + return this.target; + } + else + return super.addChild(name); + } + + public CitationRelatesToComponent copy() { + CitationRelatesToComponent dst = new CitationRelatesToComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(CitationRelatesToComponent dst) { + super.copyValues(dst); + dst.relationshipType = relationshipType == null ? null : relationshipType.copy(); + if (targetClassifier != null) { + dst.targetClassifier = new ArrayList(); + for (CodeableConcept i : targetClassifier) + dst.targetClassifier.add(i.copy()); + }; + dst.target = target == null ? null : target.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof CitationRelatesToComponent)) + return false; + CitationRelatesToComponent o = (CitationRelatesToComponent) other_; + return compareDeep(relationshipType, o.relationshipType, true) && compareDeep(targetClassifier, o.targetClassifier, true) + && compareDeep(target, o.target, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof CitationRelatesToComponent)) + return false; + CitationRelatesToComponent o = (CitationRelatesToComponent) other_; + return true; + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(relationshipType, targetClassifier + , target); + } + + public String fhirType() { + return "Citation.relatesTo"; + + } + + } + + @Block() + public static class CitationCitedArtifactComponent extends BackboneElement implements IBaseBackboneElement { + /** + * A formal identifier that is used to identify this citation when it is represented in other formats, or referenced in a specification, model, design or an instance. + */ + @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="May include DOI, PMID, PMCID, etc.", formalDefinition="A formal identifier that is used to identify this citation when it is represented in other formats, or referenced in a specification, model, design or an instance." ) + protected List identifier; + + /** + * A formal identifier that is used to identify things closely related to this citation. + */ + @Child(name = "relatedIdentifier", type = {Identifier.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="May include trial registry identifiers", formalDefinition="A formal identifier that is used to identify things closely related to this citation." ) + protected List relatedIdentifier; + + /** + * When the cited artifact was accessed. + */ + @Child(name = "dateAccessed", type = {DateTimeType.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="When the cited artifact was accessed", formalDefinition="When the cited artifact was accessed." ) + protected DateTimeType dateAccessed; + + /** + * The defined version of the cited artifact. + */ + @Child(name = "version", type = {}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The defined version of the cited artifact", formalDefinition="The defined version of the cited artifact." ) + protected CitationCitedArtifactVersionComponent version; + + /** + * The status of the cited artifact. + */ + @Child(name = "currentState", type = {CodeableConcept.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="The status of the cited artifact", formalDefinition="The status of the cited artifact." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/cited-artifact-status-type") + protected List currentState; + + /** + * An effective date or period for a status of the cited artifact. + */ + @Child(name = "statusDate", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="An effective date or period for a status of the cited artifact", formalDefinition="An effective date or period for a status of the cited artifact." ) + protected List statusDate; + + /** + * The title details of the article or artifact. + */ + @Child(name = "title", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="The title details of the article or artifact", formalDefinition="The title details of the article or artifact." ) + protected List title; + + /** + * Summary of the article or artifact. + */ + @Child(name = "abstract", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Summary of the article or artifact", formalDefinition="Summary of the article or artifact." ) + protected List abstract_; + + /** + * The component of the article or artifact. + */ + @Child(name = "part", type = {}, order=9, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The component of the article or artifact", formalDefinition="The component of the article or artifact." ) + protected CitationCitedArtifactPartComponent part; + + /** + * The artifact related to the cited artifact. + */ + @Child(name = "relatesTo", type = {}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="The artifact related to the cited artifact", formalDefinition="The artifact related to the cited artifact." ) + protected List relatesTo; + + /** + * If multiple, used to represent alternative forms of the article that are not separate citations. + */ + @Child(name = "publicationForm", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="If multiple, used to represent alternative forms of the article that are not separate citations", formalDefinition="If multiple, used to represent alternative forms of the article that are not separate citations." ) + protected List publicationForm; + + /** + * Used for any URL for the article or artifact cited. + */ + @Child(name = "webLocation", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Used for any URL for the article or artifact cited", formalDefinition="Used for any URL for the article or artifact cited." ) + protected List webLocation; + + /** + * The assignment to an organizing scheme. + */ + @Child(name = "classification", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="The assignment to an organizing scheme", formalDefinition="The assignment to an organizing scheme." ) + protected List classification; + + /** + * This element is used to list authors and other contributors, their contact information, specific contributions, and summary statements. + */ + @Child(name = "contributorship", type = {}, order=14, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Attribution of authors and other contributors", formalDefinition="This element is used to list authors and other contributors, their contact information, specific contributions, and summary statements." ) + protected CitationCitedArtifactContributorshipComponent contributorship; + + /** + * Any additional information or content for the article or artifact. + */ + @Child(name = "note", type = {Annotation.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Any additional information or content for the article or artifact", formalDefinition="Any additional information or content for the article or artifact." ) + protected List note; + + private static final long serialVersionUID = -1685890486L; + + /** + * Constructor + */ + public CitationCitedArtifactComponent() { + super(); + } + + /** + * @return {@link #identifier} (A formal identifier that is used to identify this citation when it is represented in other formats, or referenced in a specification, model, design or an instance.) + */ + public List getIdentifier() { + if (this.identifier == null) + this.identifier = new ArrayList(); + return this.identifier; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactComponent setIdentifier(List theIdentifier) { + this.identifier = theIdentifier; + return this; + } + + public boolean hasIdentifier() { + if (this.identifier == null) + return false; + for (Identifier item : this.identifier) + if (!item.isEmpty()) + return true; + return false; + } + + public Identifier addIdentifier() { //3 + Identifier t = new Identifier(); + if (this.identifier == null) + this.identifier = new ArrayList(); + this.identifier.add(t); + return t; + } + + public CitationCitedArtifactComponent addIdentifier(Identifier t) { //3 + if (t == null) + return this; + if (this.identifier == null) + this.identifier = new ArrayList(); + this.identifier.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} + */ + public Identifier getIdentifierFirstRep() { + if (getIdentifier().isEmpty()) { + addIdentifier(); + } + return getIdentifier().get(0); + } + + /** + * @return {@link #relatedIdentifier} (A formal identifier that is used to identify things closely related to this citation.) + */ + public List getRelatedIdentifier() { + if (this.relatedIdentifier == null) + this.relatedIdentifier = new ArrayList(); + return this.relatedIdentifier; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactComponent setRelatedIdentifier(List theRelatedIdentifier) { + this.relatedIdentifier = theRelatedIdentifier; + return this; + } + + public boolean hasRelatedIdentifier() { + if (this.relatedIdentifier == null) + return false; + for (Identifier item : this.relatedIdentifier) + if (!item.isEmpty()) + return true; + return false; + } + + public Identifier addRelatedIdentifier() { //3 + Identifier t = new Identifier(); + if (this.relatedIdentifier == null) + this.relatedIdentifier = new ArrayList(); + this.relatedIdentifier.add(t); + return t; + } + + public CitationCitedArtifactComponent addRelatedIdentifier(Identifier t) { //3 + if (t == null) + return this; + if (this.relatedIdentifier == null) + this.relatedIdentifier = new ArrayList(); + this.relatedIdentifier.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #relatedIdentifier}, creating it if it does not already exist {3} + */ + public Identifier getRelatedIdentifierFirstRep() { + if (getRelatedIdentifier().isEmpty()) { + addRelatedIdentifier(); + } + return getRelatedIdentifier().get(0); + } + + /** + * @return {@link #dateAccessed} (When the cited artifact was accessed.). This is the underlying object with id, value and extensions. The accessor "getDateAccessed" gives direct access to the value + */ + public DateTimeType getDateAccessedElement() { + if (this.dateAccessed == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactComponent.dateAccessed"); + else if (Configuration.doAutoCreate()) + this.dateAccessed = new DateTimeType(); // bb + return this.dateAccessed; + } + + public boolean hasDateAccessedElement() { + return this.dateAccessed != null && !this.dateAccessed.isEmpty(); + } + + public boolean hasDateAccessed() { + return this.dateAccessed != null && !this.dateAccessed.isEmpty(); + } + + /** + * @param value {@link #dateAccessed} (When the cited artifact was accessed.). This is the underlying object with id, value and extensions. The accessor "getDateAccessed" gives direct access to the value + */ + public CitationCitedArtifactComponent setDateAccessedElement(DateTimeType value) { + this.dateAccessed = value; + return this; + } + + /** + * @return When the cited artifact was accessed. + */ + public Date getDateAccessed() { + return this.dateAccessed == null ? null : this.dateAccessed.getValue(); + } + + /** + * @param value When the cited artifact was accessed. + */ + public CitationCitedArtifactComponent setDateAccessed(Date value) { + if (value == null) + this.dateAccessed = null; + else { + if (this.dateAccessed == null) + this.dateAccessed = new DateTimeType(); + this.dateAccessed.setValue(value); + } + return this; + } + + /** + * @return {@link #version} (The defined version of the cited artifact.) + */ + public CitationCitedArtifactVersionComponent getVersion() { + if (this.version == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactComponent.version"); + else if (Configuration.doAutoCreate()) + this.version = new CitationCitedArtifactVersionComponent(); // cc + return this.version; + } + + public boolean hasVersion() { + return this.version != null && !this.version.isEmpty(); + } + + /** + * @param value {@link #version} (The defined version of the cited artifact.) + */ + public CitationCitedArtifactComponent setVersion(CitationCitedArtifactVersionComponent value) { + this.version = value; + return this; + } + + /** + * @return {@link #currentState} (The status of the cited artifact.) + */ + public List getCurrentState() { + if (this.currentState == null) + this.currentState = new ArrayList(); + return this.currentState; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactComponent setCurrentState(List theCurrentState) { + this.currentState = theCurrentState; + return this; + } + + public boolean hasCurrentState() { + if (this.currentState == null) + return false; + for (CodeableConcept item : this.currentState) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addCurrentState() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.currentState == null) + this.currentState = new ArrayList(); + this.currentState.add(t); + return t; + } + + public CitationCitedArtifactComponent addCurrentState(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.currentState == null) + this.currentState = new ArrayList(); + this.currentState.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #currentState}, creating it if it does not already exist {3} + */ + public CodeableConcept getCurrentStateFirstRep() { + if (getCurrentState().isEmpty()) { + addCurrentState(); + } + return getCurrentState().get(0); + } + + /** + * @return {@link #statusDate} (An effective date or period for a status of the cited artifact.) + */ + public List getStatusDate() { + if (this.statusDate == null) + this.statusDate = new ArrayList(); + return this.statusDate; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactComponent setStatusDate(List theStatusDate) { + this.statusDate = theStatusDate; + return this; + } + + public boolean hasStatusDate() { + if (this.statusDate == null) + return false; + for (CitationCitedArtifactStatusDateComponent item : this.statusDate) + if (!item.isEmpty()) + return true; + return false; + } + + public CitationCitedArtifactStatusDateComponent addStatusDate() { //3 + CitationCitedArtifactStatusDateComponent t = new CitationCitedArtifactStatusDateComponent(); + if (this.statusDate == null) + this.statusDate = new ArrayList(); + this.statusDate.add(t); + return t; + } + + public CitationCitedArtifactComponent addStatusDate(CitationCitedArtifactStatusDateComponent t) { //3 + if (t == null) + return this; + if (this.statusDate == null) + this.statusDate = new ArrayList(); + this.statusDate.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #statusDate}, creating it if it does not already exist {3} + */ + public CitationCitedArtifactStatusDateComponent getStatusDateFirstRep() { + if (getStatusDate().isEmpty()) { + addStatusDate(); + } + return getStatusDate().get(0); + } + + /** + * @return {@link #title} (The title details of the article or artifact.) + */ + public List getTitle() { + if (this.title == null) + this.title = new ArrayList(); + return this.title; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactComponent setTitle(List theTitle) { + this.title = theTitle; + return this; + } + + public boolean hasTitle() { + if (this.title == null) + return false; + for (CitationCitedArtifactTitleComponent item : this.title) + if (!item.isEmpty()) + return true; + return false; + } + + public CitationCitedArtifactTitleComponent addTitle() { //3 + CitationCitedArtifactTitleComponent t = new CitationCitedArtifactTitleComponent(); + if (this.title == null) + this.title = new ArrayList(); + this.title.add(t); + return t; + } + + public CitationCitedArtifactComponent addTitle(CitationCitedArtifactTitleComponent t) { //3 + if (t == null) + return this; + if (this.title == null) + this.title = new ArrayList(); + this.title.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #title}, creating it if it does not already exist {3} + */ + public CitationCitedArtifactTitleComponent getTitleFirstRep() { + if (getTitle().isEmpty()) { + addTitle(); + } + return getTitle().get(0); + } + + /** + * @return {@link #abstract_} (Summary of the article or artifact.) + */ + public List getAbstract() { + if (this.abstract_ == null) + this.abstract_ = new ArrayList(); + return this.abstract_; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactComponent setAbstract(List theAbstract) { + this.abstract_ = theAbstract; + return this; + } + + public boolean hasAbstract() { + if (this.abstract_ == null) + return false; + for (CitationCitedArtifactAbstractComponent item : this.abstract_) + if (!item.isEmpty()) + return true; + return false; + } + + public CitationCitedArtifactAbstractComponent addAbstract() { //3 + CitationCitedArtifactAbstractComponent t = new CitationCitedArtifactAbstractComponent(); + if (this.abstract_ == null) + this.abstract_ = new ArrayList(); + this.abstract_.add(t); + return t; + } + + public CitationCitedArtifactComponent addAbstract(CitationCitedArtifactAbstractComponent t) { //3 + if (t == null) + return this; + if (this.abstract_ == null) + this.abstract_ = new ArrayList(); + this.abstract_.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #abstract_}, creating it if it does not already exist {3} + */ + public CitationCitedArtifactAbstractComponent getAbstractFirstRep() { + if (getAbstract().isEmpty()) { + addAbstract(); + } + return getAbstract().get(0); + } + + /** + * @return {@link #part} (The component of the article or artifact.) + */ + public CitationCitedArtifactPartComponent getPart() { + if (this.part == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactComponent.part"); + else if (Configuration.doAutoCreate()) + this.part = new CitationCitedArtifactPartComponent(); // cc + return this.part; + } + + public boolean hasPart() { + return this.part != null && !this.part.isEmpty(); + } + + /** + * @param value {@link #part} (The component of the article or artifact.) + */ + public CitationCitedArtifactComponent setPart(CitationCitedArtifactPartComponent value) { + this.part = value; + return this; + } + + /** + * @return {@link #relatesTo} (The artifact related to the cited artifact.) + */ + public List getRelatesTo() { + if (this.relatesTo == null) + this.relatesTo = new ArrayList(); + return this.relatesTo; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactComponent setRelatesTo(List theRelatesTo) { + this.relatesTo = theRelatesTo; + return this; + } + + public boolean hasRelatesTo() { + if (this.relatesTo == null) + return false; + for (CitationCitedArtifactRelatesToComponent item : this.relatesTo) + if (!item.isEmpty()) + return true; + return false; + } + + public CitationCitedArtifactRelatesToComponent addRelatesTo() { //3 + CitationCitedArtifactRelatesToComponent t = new CitationCitedArtifactRelatesToComponent(); + if (this.relatesTo == null) + this.relatesTo = new ArrayList(); + this.relatesTo.add(t); + return t; + } + + public CitationCitedArtifactComponent addRelatesTo(CitationCitedArtifactRelatesToComponent t) { //3 + if (t == null) + return this; + if (this.relatesTo == null) + this.relatesTo = new ArrayList(); + this.relatesTo.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #relatesTo}, creating it if it does not already exist {3} + */ + public CitationCitedArtifactRelatesToComponent getRelatesToFirstRep() { + if (getRelatesTo().isEmpty()) { + addRelatesTo(); + } + return getRelatesTo().get(0); + } + + /** + * @return {@link #publicationForm} (If multiple, used to represent alternative forms of the article that are not separate citations.) + */ + public List getPublicationForm() { + if (this.publicationForm == null) + this.publicationForm = new ArrayList(); + return this.publicationForm; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactComponent setPublicationForm(List thePublicationForm) { + this.publicationForm = thePublicationForm; + return this; + } + + public boolean hasPublicationForm() { + if (this.publicationForm == null) + return false; + for (CitationCitedArtifactPublicationFormComponent item : this.publicationForm) + if (!item.isEmpty()) + return true; + return false; + } + + public CitationCitedArtifactPublicationFormComponent addPublicationForm() { //3 + CitationCitedArtifactPublicationFormComponent t = new CitationCitedArtifactPublicationFormComponent(); + if (this.publicationForm == null) + this.publicationForm = new ArrayList(); + this.publicationForm.add(t); + return t; + } + + public CitationCitedArtifactComponent addPublicationForm(CitationCitedArtifactPublicationFormComponent t) { //3 + if (t == null) + return this; + if (this.publicationForm == null) + this.publicationForm = new ArrayList(); + this.publicationForm.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #publicationForm}, creating it if it does not already exist {3} + */ + public CitationCitedArtifactPublicationFormComponent getPublicationFormFirstRep() { + if (getPublicationForm().isEmpty()) { + addPublicationForm(); + } + return getPublicationForm().get(0); + } + + /** + * @return {@link #webLocation} (Used for any URL for the article or artifact cited.) + */ + public List getWebLocation() { + if (this.webLocation == null) + this.webLocation = new ArrayList(); + return this.webLocation; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactComponent setWebLocation(List theWebLocation) { + this.webLocation = theWebLocation; + return this; + } + + public boolean hasWebLocation() { + if (this.webLocation == null) + return false; + for (CitationCitedArtifactWebLocationComponent item : this.webLocation) + if (!item.isEmpty()) + return true; + return false; + } + + public CitationCitedArtifactWebLocationComponent addWebLocation() { //3 + CitationCitedArtifactWebLocationComponent t = new CitationCitedArtifactWebLocationComponent(); + if (this.webLocation == null) + this.webLocation = new ArrayList(); + this.webLocation.add(t); + return t; + } + + public CitationCitedArtifactComponent addWebLocation(CitationCitedArtifactWebLocationComponent t) { //3 + if (t == null) + return this; + if (this.webLocation == null) + this.webLocation = new ArrayList(); + this.webLocation.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #webLocation}, creating it if it does not already exist {3} + */ + public CitationCitedArtifactWebLocationComponent getWebLocationFirstRep() { + if (getWebLocation().isEmpty()) { + addWebLocation(); + } + return getWebLocation().get(0); + } + + /** + * @return {@link #classification} (The assignment to an organizing scheme.) + */ + public List getClassification() { + if (this.classification == null) + this.classification = new ArrayList(); + return this.classification; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactComponent setClassification(List theClassification) { + this.classification = theClassification; + return this; + } + + public boolean hasClassification() { + if (this.classification == null) + return false; + for (CitationCitedArtifactClassificationComponent item : this.classification) + if (!item.isEmpty()) + return true; + return false; + } + + public CitationCitedArtifactClassificationComponent addClassification() { //3 + CitationCitedArtifactClassificationComponent t = new CitationCitedArtifactClassificationComponent(); + if (this.classification == null) + this.classification = new ArrayList(); + this.classification.add(t); + return t; + } + + public CitationCitedArtifactComponent addClassification(CitationCitedArtifactClassificationComponent t) { //3 + if (t == null) + return this; + if (this.classification == null) + this.classification = new ArrayList(); + this.classification.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #classification}, creating it if it does not already exist {3} + */ + public CitationCitedArtifactClassificationComponent getClassificationFirstRep() { + if (getClassification().isEmpty()) { + addClassification(); + } + return getClassification().get(0); + } + + /** + * @return {@link #contributorship} (This element is used to list authors and other contributors, their contact information, specific contributions, and summary statements.) + */ + public CitationCitedArtifactContributorshipComponent getContributorship() { + if (this.contributorship == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactComponent.contributorship"); + else if (Configuration.doAutoCreate()) + this.contributorship = new CitationCitedArtifactContributorshipComponent(); // cc + return this.contributorship; + } + + public boolean hasContributorship() { + return this.contributorship != null && !this.contributorship.isEmpty(); + } + + /** + * @param value {@link #contributorship} (This element is used to list authors and other contributors, their contact information, specific contributions, and summary statements.) + */ + public CitationCitedArtifactComponent setContributorship(CitationCitedArtifactContributorshipComponent value) { + this.contributorship = value; + return this; + } + + /** + * @return {@link #note} (Any additional information or content for the article or artifact.) + */ + public List getNote() { + if (this.note == null) + this.note = new ArrayList(); + return this.note; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactComponent setNote(List theNote) { + this.note = theNote; + return this; + } + + public boolean hasNote() { + if (this.note == null) + return false; + for (Annotation item : this.note) + if (!item.isEmpty()) + return true; + return false; + } + + public Annotation addNote() { //3 + Annotation t = new Annotation(); + if (this.note == null) + this.note = new ArrayList(); + this.note.add(t); + return t; + } + + public CitationCitedArtifactComponent addNote(Annotation t) { //3 + if (t == null) + return this; + if (this.note == null) + this.note = new ArrayList(); + this.note.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist {3} + */ + public Annotation getNoteFirstRep() { + if (getNote().isEmpty()) { + addNote(); + } + return getNote().get(0); + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this citation when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier)); + children.add(new Property("relatedIdentifier", "Identifier", "A formal identifier that is used to identify things closely related to this citation.", 0, java.lang.Integer.MAX_VALUE, relatedIdentifier)); + children.add(new Property("dateAccessed", "dateTime", "When the cited artifact was accessed.", 0, 1, dateAccessed)); + children.add(new Property("version", "", "The defined version of the cited artifact.", 0, 1, version)); + children.add(new Property("currentState", "CodeableConcept", "The status of the cited artifact.", 0, java.lang.Integer.MAX_VALUE, currentState)); + children.add(new Property("statusDate", "", "An effective date or period for a status of the cited artifact.", 0, java.lang.Integer.MAX_VALUE, statusDate)); + children.add(new Property("title", "", "The title details of the article or artifact.", 0, java.lang.Integer.MAX_VALUE, title)); + children.add(new Property("abstract", "", "Summary of the article or artifact.", 0, java.lang.Integer.MAX_VALUE, abstract_)); + children.add(new Property("part", "", "The component of the article or artifact.", 0, 1, part)); + children.add(new Property("relatesTo", "", "The artifact related to the cited artifact.", 0, java.lang.Integer.MAX_VALUE, relatesTo)); + children.add(new Property("publicationForm", "", "If multiple, used to represent alternative forms of the article that are not separate citations.", 0, java.lang.Integer.MAX_VALUE, publicationForm)); + children.add(new Property("webLocation", "", "Used for any URL for the article or artifact cited.", 0, java.lang.Integer.MAX_VALUE, webLocation)); + children.add(new Property("classification", "", "The assignment to an organizing scheme.", 0, java.lang.Integer.MAX_VALUE, classification)); + children.add(new Property("contributorship", "", "This element is used to list authors and other contributors, their contact information, specific contributions, and summary statements.", 0, 1, contributorship)); + children.add(new Property("note", "Annotation", "Any additional information or content for the article or artifact.", 0, java.lang.Integer.MAX_VALUE, note)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this citation when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier); + case -1007604940: /*relatedIdentifier*/ return new Property("relatedIdentifier", "Identifier", "A formal identifier that is used to identify things closely related to this citation.", 0, java.lang.Integer.MAX_VALUE, relatedIdentifier); + case 540917457: /*dateAccessed*/ return new Property("dateAccessed", "dateTime", "When the cited artifact was accessed.", 0, 1, dateAccessed); + case 351608024: /*version*/ return new Property("version", "", "The defined version of the cited artifact.", 0, 1, version); + case 1457822360: /*currentState*/ return new Property("currentState", "CodeableConcept", "The status of the cited artifact.", 0, java.lang.Integer.MAX_VALUE, currentState); + case 247524032: /*statusDate*/ return new Property("statusDate", "", "An effective date or period for a status of the cited artifact.", 0, java.lang.Integer.MAX_VALUE, statusDate); + case 110371416: /*title*/ return new Property("title", "", "The title details of the article or artifact.", 0, java.lang.Integer.MAX_VALUE, title); + case 1732898850: /*abstract*/ return new Property("abstract", "", "Summary of the article or artifact.", 0, java.lang.Integer.MAX_VALUE, abstract_); + case 3433459: /*part*/ return new Property("part", "", "The component of the article or artifact.", 0, 1, part); + case -7765931: /*relatesTo*/ return new Property("relatesTo", "", "The artifact related to the cited artifact.", 0, java.lang.Integer.MAX_VALUE, relatesTo); + case 1470639376: /*publicationForm*/ return new Property("publicationForm", "", "If multiple, used to represent alternative forms of the article that are not separate citations.", 0, java.lang.Integer.MAX_VALUE, publicationForm); + case -828032215: /*webLocation*/ return new Property("webLocation", "", "Used for any URL for the article or artifact cited.", 0, java.lang.Integer.MAX_VALUE, webLocation); + case 382350310: /*classification*/ return new Property("classification", "", "The assignment to an organizing scheme.", 0, java.lang.Integer.MAX_VALUE, classification); + case 538727831: /*contributorship*/ return new Property("contributorship", "", "This element is used to list authors and other contributors, their contact information, specific contributions, and summary statements.", 0, 1, contributorship); + case 3387378: /*note*/ return new Property("note", "Annotation", "Any additional information or content for the article or artifact.", 0, java.lang.Integer.MAX_VALUE, note); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier + case -1007604940: /*relatedIdentifier*/ return this.relatedIdentifier == null ? new Base[0] : this.relatedIdentifier.toArray(new Base[this.relatedIdentifier.size()]); // Identifier + case 540917457: /*dateAccessed*/ return this.dateAccessed == null ? new Base[0] : new Base[] {this.dateAccessed}; // DateTimeType + case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // CitationCitedArtifactVersionComponent + case 1457822360: /*currentState*/ return this.currentState == null ? new Base[0] : this.currentState.toArray(new Base[this.currentState.size()]); // CodeableConcept + case 247524032: /*statusDate*/ return this.statusDate == null ? new Base[0] : this.statusDate.toArray(new Base[this.statusDate.size()]); // CitationCitedArtifactStatusDateComponent + case 110371416: /*title*/ return this.title == null ? new Base[0] : this.title.toArray(new Base[this.title.size()]); // CitationCitedArtifactTitleComponent + case 1732898850: /*abstract*/ return this.abstract_ == null ? new Base[0] : this.abstract_.toArray(new Base[this.abstract_.size()]); // CitationCitedArtifactAbstractComponent + case 3433459: /*part*/ return this.part == null ? new Base[0] : new Base[] {this.part}; // CitationCitedArtifactPartComponent + case -7765931: /*relatesTo*/ return this.relatesTo == null ? new Base[0] : this.relatesTo.toArray(new Base[this.relatesTo.size()]); // CitationCitedArtifactRelatesToComponent + case 1470639376: /*publicationForm*/ return this.publicationForm == null ? new Base[0] : this.publicationForm.toArray(new Base[this.publicationForm.size()]); // CitationCitedArtifactPublicationFormComponent + case -828032215: /*webLocation*/ return this.webLocation == null ? new Base[0] : this.webLocation.toArray(new Base[this.webLocation.size()]); // CitationCitedArtifactWebLocationComponent + case 382350310: /*classification*/ return this.classification == null ? new Base[0] : this.classification.toArray(new Base[this.classification.size()]); // CitationCitedArtifactClassificationComponent + case 538727831: /*contributorship*/ return this.contributorship == null ? new Base[0] : new Base[] {this.contributorship}; // CitationCitedArtifactContributorshipComponent + 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); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -1618432855: // identifier + this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier + return value; + case -1007604940: // relatedIdentifier + this.getRelatedIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier + return value; + case 540917457: // dateAccessed + this.dateAccessed = TypeConvertor.castToDateTime(value); // DateTimeType + return value; + case 351608024: // version + this.version = (CitationCitedArtifactVersionComponent) value; // CitationCitedArtifactVersionComponent + return value; + case 1457822360: // currentState + this.getCurrentState().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + case 247524032: // statusDate + this.getStatusDate().add((CitationCitedArtifactStatusDateComponent) value); // CitationCitedArtifactStatusDateComponent + return value; + case 110371416: // title + this.getTitle().add((CitationCitedArtifactTitleComponent) value); // CitationCitedArtifactTitleComponent + return value; + case 1732898850: // abstract + this.getAbstract().add((CitationCitedArtifactAbstractComponent) value); // CitationCitedArtifactAbstractComponent + return value; + case 3433459: // part + this.part = (CitationCitedArtifactPartComponent) value; // CitationCitedArtifactPartComponent + return value; + case -7765931: // relatesTo + this.getRelatesTo().add((CitationCitedArtifactRelatesToComponent) value); // CitationCitedArtifactRelatesToComponent + return value; + case 1470639376: // publicationForm + this.getPublicationForm().add((CitationCitedArtifactPublicationFormComponent) value); // CitationCitedArtifactPublicationFormComponent + return value; + case -828032215: // webLocation + this.getWebLocation().add((CitationCitedArtifactWebLocationComponent) value); // CitationCitedArtifactWebLocationComponent + return value; + case 382350310: // classification + this.getClassification().add((CitationCitedArtifactClassificationComponent) value); // CitationCitedArtifactClassificationComponent + return value; + case 538727831: // contributorship + this.contributorship = (CitationCitedArtifactContributorshipComponent) value; // CitationCitedArtifactContributorshipComponent + return value; + case 3387378: // note + this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); + } else if (name.equals("relatedIdentifier")) { + this.getRelatedIdentifier().add(TypeConvertor.castToIdentifier(value)); + } else if (name.equals("dateAccessed")) { + this.dateAccessed = TypeConvertor.castToDateTime(value); // DateTimeType + } else if (name.equals("version")) { + this.version = (CitationCitedArtifactVersionComponent) value; // CitationCitedArtifactVersionComponent + } else if (name.equals("currentState")) { + this.getCurrentState().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("statusDate")) { + this.getStatusDate().add((CitationCitedArtifactStatusDateComponent) value); + } else if (name.equals("title")) { + this.getTitle().add((CitationCitedArtifactTitleComponent) value); + } else if (name.equals("abstract")) { + this.getAbstract().add((CitationCitedArtifactAbstractComponent) value); + } else if (name.equals("part")) { + this.part = (CitationCitedArtifactPartComponent) value; // CitationCitedArtifactPartComponent + } else if (name.equals("relatesTo")) { + this.getRelatesTo().add((CitationCitedArtifactRelatesToComponent) value); + } else if (name.equals("publicationForm")) { + this.getPublicationForm().add((CitationCitedArtifactPublicationFormComponent) value); + } else if (name.equals("webLocation")) { + this.getWebLocation().add((CitationCitedArtifactWebLocationComponent) value); + } else if (name.equals("classification")) { + this.getClassification().add((CitationCitedArtifactClassificationComponent) value); + } else if (name.equals("contributorship")) { + this.contributorship = (CitationCitedArtifactContributorshipComponent) value; // CitationCitedArtifactContributorshipComponent + } else if (name.equals("note")) { + this.getNote().add(TypeConvertor.castToAnnotation(value)); + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1618432855: return addIdentifier(); + case -1007604940: return addRelatedIdentifier(); + case 540917457: return getDateAccessedElement(); + case 351608024: return getVersion(); + case 1457822360: return addCurrentState(); + case 247524032: return addStatusDate(); + case 110371416: return addTitle(); + case 1732898850: return addAbstract(); + case 3433459: return getPart(); + case -7765931: return addRelatesTo(); + case 1470639376: return addPublicationForm(); + case -828032215: return addWebLocation(); + case 382350310: return addClassification(); + case 538727831: return getContributorship(); + case 3387378: return addNote(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1618432855: /*identifier*/ return new String[] {"Identifier"}; + case -1007604940: /*relatedIdentifier*/ return new String[] {"Identifier"}; + case 540917457: /*dateAccessed*/ return new String[] {"dateTime"}; + case 351608024: /*version*/ return new String[] {}; + case 1457822360: /*currentState*/ return new String[] {"CodeableConcept"}; + case 247524032: /*statusDate*/ return new String[] {}; + case 110371416: /*title*/ return new String[] {}; + case 1732898850: /*abstract*/ return new String[] {}; + case 3433459: /*part*/ return new String[] {}; + case -7765931: /*relatesTo*/ return new String[] {}; + case 1470639376: /*publicationForm*/ return new String[] {}; + case -828032215: /*webLocation*/ return new String[] {}; + case 382350310: /*classification*/ return new String[] {}; + case 538727831: /*contributorship*/ return new String[] {}; + case 3387378: /*note*/ return new String[] {"Annotation"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("identifier")) { + return addIdentifier(); + } + else if (name.equals("relatedIdentifier")) { + return addRelatedIdentifier(); + } + else if (name.equals("dateAccessed")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.dateAccessed"); + } + else if (name.equals("version")) { + this.version = new CitationCitedArtifactVersionComponent(); + return this.version; + } + else if (name.equals("currentState")) { + return addCurrentState(); + } + else if (name.equals("statusDate")) { + return addStatusDate(); + } + else if (name.equals("title")) { + return addTitle(); + } + else if (name.equals("abstract")) { + return addAbstract(); + } + else if (name.equals("part")) { + this.part = new CitationCitedArtifactPartComponent(); + return this.part; + } + else if (name.equals("relatesTo")) { + return addRelatesTo(); + } + else if (name.equals("publicationForm")) { + return addPublicationForm(); + } + else if (name.equals("webLocation")) { + return addWebLocation(); + } + else if (name.equals("classification")) { + return addClassification(); + } + else if (name.equals("contributorship")) { + this.contributorship = new CitationCitedArtifactContributorshipComponent(); + return this.contributorship; + } + else if (name.equals("note")) { + return addNote(); + } + else + return super.addChild(name); + } + + public CitationCitedArtifactComponent copy() { + CitationCitedArtifactComponent dst = new CitationCitedArtifactComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(CitationCitedArtifactComponent dst) { + super.copyValues(dst); + if (identifier != null) { + dst.identifier = new ArrayList(); + for (Identifier i : identifier) + dst.identifier.add(i.copy()); + }; + if (relatedIdentifier != null) { + dst.relatedIdentifier = new ArrayList(); + for (Identifier i : relatedIdentifier) + dst.relatedIdentifier.add(i.copy()); + }; + dst.dateAccessed = dateAccessed == null ? null : dateAccessed.copy(); + dst.version = version == null ? null : version.copy(); + if (currentState != null) { + dst.currentState = new ArrayList(); + for (CodeableConcept i : currentState) + dst.currentState.add(i.copy()); + }; + if (statusDate != null) { + dst.statusDate = new ArrayList(); + for (CitationCitedArtifactStatusDateComponent i : statusDate) + dst.statusDate.add(i.copy()); + }; + if (title != null) { + dst.title = new ArrayList(); + for (CitationCitedArtifactTitleComponent i : title) + dst.title.add(i.copy()); + }; + if (abstract_ != null) { + dst.abstract_ = new ArrayList(); + for (CitationCitedArtifactAbstractComponent i : abstract_) + dst.abstract_.add(i.copy()); + }; + dst.part = part == null ? null : part.copy(); + if (relatesTo != null) { + dst.relatesTo = new ArrayList(); + for (CitationCitedArtifactRelatesToComponent i : relatesTo) + dst.relatesTo.add(i.copy()); + }; + if (publicationForm != null) { + dst.publicationForm = new ArrayList(); + for (CitationCitedArtifactPublicationFormComponent i : publicationForm) + dst.publicationForm.add(i.copy()); + }; + if (webLocation != null) { + dst.webLocation = new ArrayList(); + for (CitationCitedArtifactWebLocationComponent i : webLocation) + dst.webLocation.add(i.copy()); + }; + if (classification != null) { + dst.classification = new ArrayList(); + for (CitationCitedArtifactClassificationComponent i : classification) + dst.classification.add(i.copy()); + }; + dst.contributorship = contributorship == null ? null : contributorship.copy(); + if (note != null) { + dst.note = new ArrayList(); + for (Annotation i : note) + dst.note.add(i.copy()); + }; + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactComponent)) + return false; + CitationCitedArtifactComponent o = (CitationCitedArtifactComponent) other_; + return compareDeep(identifier, o.identifier, true) && compareDeep(relatedIdentifier, o.relatedIdentifier, true) + && compareDeep(dateAccessed, o.dateAccessed, true) && compareDeep(version, o.version, true) && compareDeep(currentState, o.currentState, true) + && compareDeep(statusDate, o.statusDate, true) && compareDeep(title, o.title, true) && compareDeep(abstract_, o.abstract_, true) + && compareDeep(part, o.part, true) && compareDeep(relatesTo, o.relatesTo, true) && compareDeep(publicationForm, o.publicationForm, true) + && compareDeep(webLocation, o.webLocation, true) && compareDeep(classification, o.classification, true) + && compareDeep(contributorship, o.contributorship, true) && compareDeep(note, o.note, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactComponent)) + return false; + CitationCitedArtifactComponent o = (CitationCitedArtifactComponent) other_; + return compareValues(dateAccessed, o.dateAccessed, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, relatedIdentifier + , dateAccessed, version, currentState, statusDate, title, abstract_, part, relatesTo + , publicationForm, webLocation, classification, contributorship, note); + } + + public String fhirType() { + return "Citation.citedArtifact"; + + } + + } + + @Block() + public static class CitationCitedArtifactVersionComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The version number or other version identifier. + */ + @Child(name = "value", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The version number or other version identifier", formalDefinition="The version number or other version identifier." ) + protected StringType value; + + /** + * Citation for the main version of the cited artifact. + */ + @Child(name = "baseCitation", type = {Citation.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Citation for the main version of the cited artifact", formalDefinition="Citation for the main version of the cited artifact." ) + protected Reference baseCitation; + + private static final long serialVersionUID = 1437090319L; + + /** + * Constructor + */ + public CitationCitedArtifactVersionComponent() { + super(); + } + + /** + * Constructor + */ + public CitationCitedArtifactVersionComponent(String value) { + super(); + this.setValue(value); + } + + /** + * @return {@link #value} (The version number or other version identifier.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value */ public StringType getValueElement() { if (this.value == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationVariantCitationComponent.value"); + throw new Error("Attempt to auto-create CitationCitedArtifactVersionComponent.value"); else if (Configuration.doAutoCreate()) this.value = new StringType(); // bb return this.value; @@ -361,24 +2171,1183 @@ public class Citation extends MetadataResource { } /** - * @param value {@link #value} (Used to describe the specific variation, such as version number or subpart specification.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value + * @param value {@link #value} (The version number or other version identifier.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value */ - public CitationVariantCitationComponent setValueElement(StringType value) { + public CitationCitedArtifactVersionComponent setValueElement(StringType value) { this.value = value; return this; } /** - * @return Used to describe the specific variation, such as version number or subpart specification. + * @return The version number or other version identifier. */ public String getValue() { return this.value == null ? null : this.value.getValue(); } /** - * @param value Used to describe the specific variation, such as version number or subpart specification. + * @param value The version number or other version identifier. */ - public CitationVariantCitationComponent setValue(String value) { + public CitationCitedArtifactVersionComponent setValue(String value) { + if (this.value == null) + this.value = new StringType(); + this.value.setValue(value); + return this; + } + + /** + * @return {@link #baseCitation} (Citation for the main version of the cited artifact.) + */ + public Reference getBaseCitation() { + if (this.baseCitation == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactVersionComponent.baseCitation"); + else if (Configuration.doAutoCreate()) + this.baseCitation = new Reference(); // cc + return this.baseCitation; + } + + public boolean hasBaseCitation() { + return this.baseCitation != null && !this.baseCitation.isEmpty(); + } + + /** + * @param value {@link #baseCitation} (Citation for the main version of the cited artifact.) + */ + public CitationCitedArtifactVersionComponent setBaseCitation(Reference value) { + this.baseCitation = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("value", "string", "The version number or other version identifier.", 0, 1, value)); + children.add(new Property("baseCitation", "Reference(Citation)", "Citation for the main version of the cited artifact.", 0, 1, baseCitation)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 111972721: /*value*/ return new Property("value", "string", "The version number or other version identifier.", 0, 1, value); + case 1182995672: /*baseCitation*/ return new Property("baseCitation", "Reference(Citation)", "Citation for the main version of the cited artifact.", 0, 1, baseCitation); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // StringType + case 1182995672: /*baseCitation*/ return this.baseCitation == null ? new Base[0] : new Base[] {this.baseCitation}; // Reference + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 111972721: // value + this.value = TypeConvertor.castToString(value); // StringType + return value; + case 1182995672: // baseCitation + this.baseCitation = TypeConvertor.castToReference(value); // Reference + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("value")) { + this.value = TypeConvertor.castToString(value); // StringType + } else if (name.equals("baseCitation")) { + this.baseCitation = TypeConvertor.castToReference(value); // Reference + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 111972721: return getValueElement(); + case 1182995672: return getBaseCitation(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 111972721: /*value*/ return new String[] {"string"}; + case 1182995672: /*baseCitation*/ return new String[] {"Reference"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("value")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.version.value"); + } + else if (name.equals("baseCitation")) { + this.baseCitation = new Reference(); + return this.baseCitation; + } + else + return super.addChild(name); + } + + public CitationCitedArtifactVersionComponent copy() { + CitationCitedArtifactVersionComponent dst = new CitationCitedArtifactVersionComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(CitationCitedArtifactVersionComponent dst) { + super.copyValues(dst); + dst.value = value == null ? null : value.copy(); + dst.baseCitation = baseCitation == null ? null : baseCitation.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactVersionComponent)) + return false; + CitationCitedArtifactVersionComponent o = (CitationCitedArtifactVersionComponent) other_; + return compareDeep(value, o.value, true) && compareDeep(baseCitation, o.baseCitation, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactVersionComponent)) + return false; + CitationCitedArtifactVersionComponent o = (CitationCitedArtifactVersionComponent) other_; + return compareValues(value, o.value, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(value, baseCitation); + } + + public String fhirType() { + return "Citation.citedArtifact.version"; + + } + + } + + @Block() + public static class CitationCitedArtifactStatusDateComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Classification of the status. + */ + @Child(name = "activity", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="Classification of the status", formalDefinition="Classification of the status." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/cited-artifact-status-type") + protected CodeableConcept activity; + + /** + * Either occurred or expected. + */ + @Child(name = "actual", type = {BooleanType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Either occurred or expected", formalDefinition="Either occurred or expected." ) + protected BooleanType actual; + + /** + * When the status started and/or ended. + */ + @Child(name = "period", type = {Period.class}, order=3, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="When the status started and/or ended", formalDefinition="When the status started and/or ended." ) + protected Period period; + + private static final long serialVersionUID = 1123586924L; + + /** + * Constructor + */ + public CitationCitedArtifactStatusDateComponent() { + super(); + } + + /** + * Constructor + */ + public CitationCitedArtifactStatusDateComponent(CodeableConcept activity, Period period) { + super(); + this.setActivity(activity); + this.setPeriod(period); + } + + /** + * @return {@link #activity} (Classification of the status.) + */ + public CodeableConcept getActivity() { + if (this.activity == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactStatusDateComponent.activity"); + else if (Configuration.doAutoCreate()) + this.activity = new CodeableConcept(); // cc + return this.activity; + } + + public boolean hasActivity() { + return this.activity != null && !this.activity.isEmpty(); + } + + /** + * @param value {@link #activity} (Classification of the status.) + */ + public CitationCitedArtifactStatusDateComponent setActivity(CodeableConcept value) { + this.activity = value; + return this; + } + + /** + * @return {@link #actual} (Either occurred or expected.). This is the underlying object with id, value and extensions. The accessor "getActual" gives direct access to the value + */ + public BooleanType getActualElement() { + if (this.actual == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactStatusDateComponent.actual"); + else if (Configuration.doAutoCreate()) + this.actual = new BooleanType(); // bb + return this.actual; + } + + public boolean hasActualElement() { + return this.actual != null && !this.actual.isEmpty(); + } + + public boolean hasActual() { + return this.actual != null && !this.actual.isEmpty(); + } + + /** + * @param value {@link #actual} (Either occurred or expected.). This is the underlying object with id, value and extensions. The accessor "getActual" gives direct access to the value + */ + public CitationCitedArtifactStatusDateComponent setActualElement(BooleanType value) { + this.actual = value; + return this; + } + + /** + * @return Either occurred or expected. + */ + public boolean getActual() { + return this.actual == null || this.actual.isEmpty() ? false : this.actual.getValue(); + } + + /** + * @param value Either occurred or expected. + */ + public CitationCitedArtifactStatusDateComponent setActual(boolean value) { + if (this.actual == null) + this.actual = new BooleanType(); + this.actual.setValue(value); + return this; + } + + /** + * @return {@link #period} (When the status started and/or ended.) + */ + public Period getPeriod() { + if (this.period == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactStatusDateComponent.period"); + else if (Configuration.doAutoCreate()) + this.period = new Period(); // cc + return this.period; + } + + public boolean hasPeriod() { + return this.period != null && !this.period.isEmpty(); + } + + /** + * @param value {@link #period} (When the status started and/or ended.) + */ + public CitationCitedArtifactStatusDateComponent setPeriod(Period value) { + this.period = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("activity", "CodeableConcept", "Classification of the status.", 0, 1, activity)); + children.add(new Property("actual", "boolean", "Either occurred or expected.", 0, 1, actual)); + children.add(new Property("period", "Period", "When the status started and/or ended.", 0, 1, period)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -1655966961: /*activity*/ return new Property("activity", "CodeableConcept", "Classification of the status.", 0, 1, activity); + case -1422939762: /*actual*/ return new Property("actual", "boolean", "Either occurred or expected.", 0, 1, actual); + case -991726143: /*period*/ return new Property("period", "Period", "When the status started and/or ended.", 0, 1, period); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -1655966961: /*activity*/ return this.activity == null ? new Base[0] : new Base[] {this.activity}; // CodeableConcept + case -1422939762: /*actual*/ return this.actual == null ? new Base[0] : new Base[] {this.actual}; // BooleanType + case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -1655966961: // activity + this.activity = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -1422939762: // actual + this.actual = TypeConvertor.castToBoolean(value); // BooleanType + return value; + case -991726143: // period + this.period = TypeConvertor.castToPeriod(value); // Period + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("activity")) { + this.activity = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("actual")) { + this.actual = TypeConvertor.castToBoolean(value); // BooleanType + } else if (name.equals("period")) { + this.period = TypeConvertor.castToPeriod(value); // Period + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1655966961: return getActivity(); + case -1422939762: return getActualElement(); + case -991726143: return getPeriod(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1655966961: /*activity*/ return new String[] {"CodeableConcept"}; + case -1422939762: /*actual*/ return new String[] {"boolean"}; + case -991726143: /*period*/ return new String[] {"Period"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("activity")) { + this.activity = new CodeableConcept(); + return this.activity; + } + else if (name.equals("actual")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.statusDate.actual"); + } + else if (name.equals("period")) { + this.period = new Period(); + return this.period; + } + else + return super.addChild(name); + } + + public CitationCitedArtifactStatusDateComponent copy() { + CitationCitedArtifactStatusDateComponent dst = new CitationCitedArtifactStatusDateComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(CitationCitedArtifactStatusDateComponent dst) { + super.copyValues(dst); + dst.activity = activity == null ? null : activity.copy(); + dst.actual = actual == null ? null : actual.copy(); + dst.period = period == null ? null : period.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactStatusDateComponent)) + return false; + CitationCitedArtifactStatusDateComponent o = (CitationCitedArtifactStatusDateComponent) other_; + return compareDeep(activity, o.activity, true) && compareDeep(actual, o.actual, true) && compareDeep(period, o.period, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactStatusDateComponent)) + return false; + CitationCitedArtifactStatusDateComponent o = (CitationCitedArtifactStatusDateComponent) other_; + return compareValues(actual, o.actual, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(activity, actual, period + ); + } + + public String fhirType() { + return "Citation.citedArtifact.statusDate"; + + } + + } + + @Block() + public static class CitationCitedArtifactTitleComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Used to express the reason or specific aspect for the title. + */ + @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The kind of title", formalDefinition="Used to express the reason or specific aspect for the title." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/title-type") + protected CodeableConcept type; + + /** + * Used to express the specific language. + */ + @Child(name = "language", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Used to express the specific language", formalDefinition="Used to express the specific language." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages") + protected CodeableConcept language; + + /** + * The title of the article or artifact. + */ + @Child(name = "text", type = {MarkdownType.class}, order=3, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The title of the article or artifact", formalDefinition="The title of the article or artifact." ) + protected MarkdownType text; + + private static final long serialVersionUID = 10089224L; + + /** + * Constructor + */ + public CitationCitedArtifactTitleComponent() { + super(); + } + + /** + * Constructor + */ + public CitationCitedArtifactTitleComponent(String text) { + super(); + this.setText(text); + } + + /** + * @return {@link #type} (Used to express the reason or specific aspect for the title.) + */ + public CodeableConcept getType() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactTitleComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new CodeableConcept(); // cc + return this.type; + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (Used to express the reason or specific aspect for the title.) + */ + public CitationCitedArtifactTitleComponent setType(CodeableConcept value) { + this.type = value; + return this; + } + + /** + * @return {@link #language} (Used to express the specific language.) + */ + public CodeableConcept getLanguage() { + if (this.language == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactTitleComponent.language"); + else if (Configuration.doAutoCreate()) + this.language = new CodeableConcept(); // cc + return this.language; + } + + public boolean hasLanguage() { + return this.language != null && !this.language.isEmpty(); + } + + /** + * @param value {@link #language} (Used to express the specific language.) + */ + public CitationCitedArtifactTitleComponent setLanguage(CodeableConcept value) { + this.language = value; + return this; + } + + /** + * @return {@link #text} (The title of the article or artifact.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value + */ + public MarkdownType getTextElement() { + if (this.text == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactTitleComponent.text"); + else if (Configuration.doAutoCreate()) + this.text = new MarkdownType(); // bb + return this.text; + } + + public boolean hasTextElement() { + return this.text != null && !this.text.isEmpty(); + } + + public boolean hasText() { + return this.text != null && !this.text.isEmpty(); + } + + /** + * @param value {@link #text} (The title of the article or artifact.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value + */ + public CitationCitedArtifactTitleComponent setTextElement(MarkdownType value) { + this.text = value; + return this; + } + + /** + * @return The title of the article or artifact. + */ + public String getText() { + return this.text == null ? null : this.text.getValue(); + } + + /** + * @param value The title of the article or artifact. + */ + public CitationCitedArtifactTitleComponent setText(String value) { + if (this.text == null) + this.text = new MarkdownType(); + this.text.setValue(value); + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("type", "CodeableConcept", "Used to express the reason or specific aspect for the title.", 0, 1, type)); + children.add(new Property("language", "CodeableConcept", "Used to express the specific language.", 0, 1, language)); + children.add(new Property("text", "markdown", "The title of the article or artifact.", 0, 1, text)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Used to express the reason or specific aspect for the title.", 0, 1, type); + case -1613589672: /*language*/ return new Property("language", "CodeableConcept", "Used to express the specific language.", 0, 1, language); + case 3556653: /*text*/ return new Property("text", "markdown", "The title of the article or artifact.", 0, 1, text); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case -1613589672: /*language*/ return this.language == null ? new Base[0] : new Base[] {this.language}; // CodeableConcept + case 3556653: /*text*/ return this.text == null ? new Base[0] : new Base[] {this.text}; // MarkdownType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3575610: // type + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -1613589672: // language + this.language = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 3556653: // text + this.text = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("language")) { + this.language = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("text")) { + this.text = TypeConvertor.castToMarkdown(value); // MarkdownType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: return getType(); + case -1613589672: return getLanguage(); + case 3556653: return getTextElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case -1613589672: /*language*/ return new String[] {"CodeableConcept"}; + case 3556653: /*text*/ return new String[] {"markdown"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("type")) { + this.type = new CodeableConcept(); + return this.type; + } + else if (name.equals("language")) { + this.language = new CodeableConcept(); + return this.language; + } + else if (name.equals("text")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.title.text"); + } + else + return super.addChild(name); + } + + public CitationCitedArtifactTitleComponent copy() { + CitationCitedArtifactTitleComponent dst = new CitationCitedArtifactTitleComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(CitationCitedArtifactTitleComponent dst) { + super.copyValues(dst); + dst.type = type == null ? null : type.copy(); + dst.language = language == null ? null : language.copy(); + dst.text = text == null ? null : text.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactTitleComponent)) + return false; + CitationCitedArtifactTitleComponent o = (CitationCitedArtifactTitleComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(language, o.language, true) && compareDeep(text, o.text, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactTitleComponent)) + return false; + CitationCitedArtifactTitleComponent o = (CitationCitedArtifactTitleComponent) other_; + return compareValues(text, o.text, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, language, text); + } + + public String fhirType() { + return "Citation.citedArtifact.title"; + + } + + } + + @Block() + public static class CitationCitedArtifactAbstractComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Used to express the reason or specific aspect for the abstract. + */ + @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The kind of abstract", formalDefinition="Used to express the reason or specific aspect for the abstract." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/cited-artifact-abstract-type") + protected CodeableConcept type; + + /** + * Used to express the specific language. + */ + @Child(name = "language", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Used to express the specific language", formalDefinition="Used to express the specific language." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages") + protected CodeableConcept language; + + /** + * Abstract content. + */ + @Child(name = "text", type = {MarkdownType.class}, order=3, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="Abstract content", formalDefinition="Abstract content." ) + protected MarkdownType text; + + /** + * Copyright notice for the abstract. + */ + @Child(name = "copyright", type = {MarkdownType.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Copyright notice for the abstract", formalDefinition="Copyright notice for the abstract." ) + protected MarkdownType copyright; + + private static final long serialVersionUID = -1882363442L; + + /** + * Constructor + */ + public CitationCitedArtifactAbstractComponent() { + super(); + } + + /** + * Constructor + */ + public CitationCitedArtifactAbstractComponent(String text) { + super(); + this.setText(text); + } + + /** + * @return {@link #type} (Used to express the reason or specific aspect for the abstract.) + */ + public CodeableConcept getType() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactAbstractComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new CodeableConcept(); // cc + return this.type; + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (Used to express the reason or specific aspect for the abstract.) + */ + public CitationCitedArtifactAbstractComponent setType(CodeableConcept value) { + this.type = value; + return this; + } + + /** + * @return {@link #language} (Used to express the specific language.) + */ + public CodeableConcept getLanguage() { + if (this.language == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactAbstractComponent.language"); + else if (Configuration.doAutoCreate()) + this.language = new CodeableConcept(); // cc + return this.language; + } + + public boolean hasLanguage() { + return this.language != null && !this.language.isEmpty(); + } + + /** + * @param value {@link #language} (Used to express the specific language.) + */ + public CitationCitedArtifactAbstractComponent setLanguage(CodeableConcept value) { + this.language = value; + return this; + } + + /** + * @return {@link #text} (Abstract content.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value + */ + public MarkdownType getTextElement() { + if (this.text == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactAbstractComponent.text"); + else if (Configuration.doAutoCreate()) + this.text = new MarkdownType(); // bb + return this.text; + } + + public boolean hasTextElement() { + return this.text != null && !this.text.isEmpty(); + } + + public boolean hasText() { + return this.text != null && !this.text.isEmpty(); + } + + /** + * @param value {@link #text} (Abstract content.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value + */ + public CitationCitedArtifactAbstractComponent setTextElement(MarkdownType value) { + this.text = value; + return this; + } + + /** + * @return Abstract content. + */ + public String getText() { + return this.text == null ? null : this.text.getValue(); + } + + /** + * @param value Abstract content. + */ + public CitationCitedArtifactAbstractComponent setText(String value) { + if (this.text == null) + this.text = new MarkdownType(); + this.text.setValue(value); + return this; + } + + /** + * @return {@link #copyright} (Copyright notice for the abstract.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value + */ + public MarkdownType getCopyrightElement() { + if (this.copyright == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactAbstractComponent.copyright"); + else if (Configuration.doAutoCreate()) + this.copyright = new MarkdownType(); // bb + return this.copyright; + } + + public boolean hasCopyrightElement() { + return this.copyright != null && !this.copyright.isEmpty(); + } + + public boolean hasCopyright() { + return this.copyright != null && !this.copyright.isEmpty(); + } + + /** + * @param value {@link #copyright} (Copyright notice for the abstract.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value + */ + public CitationCitedArtifactAbstractComponent setCopyrightElement(MarkdownType value) { + this.copyright = value; + return this; + } + + /** + * @return Copyright notice for the abstract. + */ + public String getCopyright() { + return this.copyright == null ? null : this.copyright.getValue(); + } + + /** + * @param value Copyright notice for the abstract. + */ + public CitationCitedArtifactAbstractComponent setCopyright(String value) { + if (value == null) + this.copyright = null; + else { + if (this.copyright == null) + this.copyright = new MarkdownType(); + this.copyright.setValue(value); + } + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("type", "CodeableConcept", "Used to express the reason or specific aspect for the abstract.", 0, 1, type)); + children.add(new Property("language", "CodeableConcept", "Used to express the specific language.", 0, 1, language)); + children.add(new Property("text", "markdown", "Abstract content.", 0, 1, text)); + children.add(new Property("copyright", "markdown", "Copyright notice for the abstract.", 0, 1, copyright)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Used to express the reason or specific aspect for the abstract.", 0, 1, type); + case -1613589672: /*language*/ return new Property("language", "CodeableConcept", "Used to express the specific language.", 0, 1, language); + case 3556653: /*text*/ return new Property("text", "markdown", "Abstract content.", 0, 1, text); + case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "Copyright notice for the abstract.", 0, 1, copyright); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case -1613589672: /*language*/ return this.language == null ? new Base[0] : new Base[] {this.language}; // CodeableConcept + case 3556653: /*text*/ return this.text == null ? new Base[0] : new Base[] {this.text}; // MarkdownType + case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3575610: // type + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -1613589672: // language + this.language = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 3556653: // text + this.text = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + case 1522889671: // copyright + this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("language")) { + this.language = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("text")) { + this.text = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("copyright")) { + this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: return getType(); + case -1613589672: return getLanguage(); + case 3556653: return getTextElement(); + case 1522889671: return getCopyrightElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case -1613589672: /*language*/ return new String[] {"CodeableConcept"}; + case 3556653: /*text*/ return new String[] {"markdown"}; + case 1522889671: /*copyright*/ return new String[] {"markdown"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("type")) { + this.type = new CodeableConcept(); + return this.type; + } + else if (name.equals("language")) { + this.language = new CodeableConcept(); + return this.language; + } + else if (name.equals("text")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.abstract.text"); + } + else if (name.equals("copyright")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.abstract.copyright"); + } + else + return super.addChild(name); + } + + public CitationCitedArtifactAbstractComponent copy() { + CitationCitedArtifactAbstractComponent dst = new CitationCitedArtifactAbstractComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(CitationCitedArtifactAbstractComponent dst) { + super.copyValues(dst); + dst.type = type == null ? null : type.copy(); + dst.language = language == null ? null : language.copy(); + dst.text = text == null ? null : text.copy(); + dst.copyright = copyright == null ? null : copyright.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactAbstractComponent)) + return false; + CitationCitedArtifactAbstractComponent o = (CitationCitedArtifactAbstractComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(language, o.language, true) && compareDeep(text, o.text, true) + && compareDeep(copyright, o.copyright, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactAbstractComponent)) + return false; + CitationCitedArtifactAbstractComponent o = (CitationCitedArtifactAbstractComponent) other_; + return compareValues(text, o.text, true) && compareValues(copyright, o.copyright, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, language, text, copyright + ); + } + + public String fhirType() { + return "Citation.citedArtifact.abstract"; + + } + + } + + @Block() + public static class CitationCitedArtifactPartComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The kind of component. + */ + @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The kind of component", formalDefinition="The kind of component." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/cited-artifact-part-type") + protected CodeableConcept type; + + /** + * The specification of the component. + */ + @Child(name = "value", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The specification of the component", formalDefinition="The specification of the component." ) + protected StringType value; + + /** + * The citation for the full article or artifact. + */ + @Child(name = "baseCitation", type = {Citation.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The citation for the full article or artifact", formalDefinition="The citation for the full article or artifact." ) + protected Reference baseCitation; + + private static final long serialVersionUID = -765350500L; + + /** + * Constructor + */ + public CitationCitedArtifactPartComponent() { + super(); + } + + /** + * @return {@link #type} (The kind of component.) + */ + public CodeableConcept getType() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactPartComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new CodeableConcept(); // cc + return this.type; + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (The kind of component.) + */ + public CitationCitedArtifactPartComponent setType(CodeableConcept value) { + this.type = value; + return this; + } + + /** + * @return {@link #value} (The specification of the component.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value + */ + public StringType getValueElement() { + if (this.value == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactPartComponent.value"); + else if (Configuration.doAutoCreate()) + this.value = new StringType(); // bb + return this.value; + } + + public boolean hasValueElement() { + return this.value != null && !this.value.isEmpty(); + } + + public boolean hasValue() { + return this.value != null && !this.value.isEmpty(); + } + + /** + * @param value {@link #value} (The specification of the component.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value + */ + public CitationCitedArtifactPartComponent setValueElement(StringType value) { + this.value = value; + return this; + } + + /** + * @return The specification of the component. + */ + public String getValue() { + return this.value == null ? null : this.value.getValue(); + } + + /** + * @param value The specification of the component. + */ + public CitationCitedArtifactPartComponent setValue(String value) { if (Utilities.noString(value)) this.value = null; else { @@ -390,12 +3359,12 @@ public class Citation extends MetadataResource { } /** - * @return {@link #baseCitation} (Base citation.) + * @return {@link #baseCitation} (The citation for the full article or artifact.) */ public Reference getBaseCitation() { if (this.baseCitation == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationVariantCitationComponent.baseCitation"); + throw new Error("Attempt to auto-create CitationCitedArtifactPartComponent.baseCitation"); else if (Configuration.doAutoCreate()) this.baseCitation = new Reference(); // cc return this.baseCitation; @@ -406,26 +3375,26 @@ public class Citation extends MetadataResource { } /** - * @param value {@link #baseCitation} (Base citation.) + * @param value {@link #baseCitation} (The citation for the full article or artifact.) */ - public CitationVariantCitationComponent setBaseCitation(Reference value) { + public CitationCitedArtifactPartComponent setBaseCitation(Reference value) { this.baseCitation = value; return this; } protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("type", "CodeableConcept", "Used to describe the reason for the variant citation, such as version or subpart specification.", 0, 1, type)); - children.add(new Property("value", "string", "Used to describe the specific variation, such as version number or subpart specification.", 0, 1, value)); - children.add(new Property("baseCitation", "Reference(Citation)", "Base citation.", 0, 1, baseCitation)); + children.add(new Property("type", "CodeableConcept", "The kind of component.", 0, 1, type)); + children.add(new Property("value", "string", "The specification of the component.", 0, 1, value)); + children.add(new Property("baseCitation", "Reference(Citation)", "The citation for the full article or artifact.", 0, 1, baseCitation)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Used to describe the reason for the variant citation, such as version or subpart specification.", 0, 1, type); - case 111972721: /*value*/ return new Property("value", "string", "Used to describe the specific variation, such as version number or subpart specification.", 0, 1, value); - case 1182995672: /*baseCitation*/ return new Property("baseCitation", "Reference(Citation)", "Base citation.", 0, 1, baseCitation); + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The kind of component.", 0, 1, type); + case 111972721: /*value*/ return new Property("value", "string", "The specification of the component.", 0, 1, value); + case 1182995672: /*baseCitation*/ return new Property("baseCitation", "Reference(Citation)", "The citation for the full article or artifact.", 0, 1, baseCitation); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -501,7 +3470,7 @@ public class Citation extends MetadataResource { return this.type; } else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.variantCitation.value"); + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.part.value"); } else if (name.equals("baseCitation")) { this.baseCitation = new Reference(); @@ -511,13 +3480,13 @@ public class Citation extends MetadataResource { return super.addChild(name); } - public CitationVariantCitationComponent copy() { - CitationVariantCitationComponent dst = new CitationVariantCitationComponent(); + public CitationCitedArtifactPartComponent copy() { + CitationCitedArtifactPartComponent dst = new CitationCitedArtifactPartComponent(); copyValues(dst); return dst; } - public void copyValues(CitationVariantCitationComponent dst) { + public void copyValues(CitationCitedArtifactPartComponent dst) { super.copyValues(dst); dst.type = type == null ? null : type.copy(); dst.value = value == null ? null : value.copy(); @@ -528,9 +3497,9 @@ public class Citation extends MetadataResource { public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof CitationVariantCitationComponent)) + if (!(other_ instanceof CitationCitedArtifactPartComponent)) return false; - CitationVariantCitationComponent o = (CitationVariantCitationComponent) other_; + CitationCitedArtifactPartComponent o = (CitationCitedArtifactPartComponent) other_; return compareDeep(type, o.type, true) && compareDeep(value, o.value, true) && compareDeep(baseCitation, o.baseCitation, true) ; } @@ -539,9 +3508,9 @@ public class Citation extends MetadataResource { public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof CitationVariantCitationComponent)) + if (!(other_ instanceof CitationCitedArtifactPartComponent)) return false; - CitationVariantCitationComponent o = (CitationVariantCitationComponent) other_; + CitationCitedArtifactPartComponent o = (CitationCitedArtifactPartComponent) other_; return compareValues(value, o.value, true); } @@ -551,241 +3520,231 @@ public class Citation extends MetadataResource { } public String fhirType() { - return "Citation.variantCitation"; + return "Citation.citedArtifact.part"; } } @Block() - public static class CitationJournalComponent extends BackboneElement implements IBaseBackboneElement { + public static class CitationCitedArtifactRelatesToComponent extends BackboneElement implements IBaseBackboneElement { /** - * Journal identifiers include ISSN, ISO Abbreviation and NLMuniqueID. + * How the cited artifact resource relates to the target artifact. */ - @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Journal identifiers include ISSN, ISO Abbreviation and NLMuniqueID", formalDefinition="Journal identifiers include ISSN, ISO Abbreviation and NLMuniqueID." ) - protected List identifier; + @Child(name = "relationshipType", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="How the cited artifact resource relates to the target artifact", formalDefinition="How the cited artifact resource relates to the target artifact." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/artifact-relationship-type") + protected CodeableConcept relationshipType; /** - * Place of publication of the journal. + * The clasification of the related artifact. */ - @Child(name = "country", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Place of publication of the journal", formalDefinition="Place of publication of the journal." ) - protected StringType country; + @Child(name = "targetClassifier", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="The clasification of the related artifact", formalDefinition="The clasification of the related artifact." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/citation-artifact-classifier") + protected List targetClassifier; /** - * The specific issue in which the cited article resides. + * The article or artifact that the cited artifact is related to. */ - @Child(name = "journalIssue", type = {}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The specific issue in which the cited article resides", formalDefinition="The specific issue in which the cited article resides." ) - protected CitationJournalJournalIssueComponent journalIssue; + @Child(name = "target", type = {UriType.class, Identifier.class, Reference.class, Attachment.class}, order=3, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The article or artifact that the cited artifact is related to", formalDefinition="The article or artifact that the cited artifact is related to." ) + protected DataType target; - /** - * Journal title. - */ - @Child(name = "title", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Journal title", formalDefinition="Journal title." ) - protected StringType title; - - private static final long serialVersionUID = 565129283L; + private static final long serialVersionUID = 819025047L; /** * Constructor */ - public CitationJournalComponent() { + public CitationCitedArtifactRelatesToComponent() { super(); } + /** + * Constructor + */ + public CitationCitedArtifactRelatesToComponent(CodeableConcept relationshipType, DataType target) { + super(); + this.setRelationshipType(relationshipType); + this.setTarget(target); + } + /** - * @return {@link #identifier} (Journal identifiers include ISSN, ISO Abbreviation and NLMuniqueID.) + * @return {@link #relationshipType} (How the cited artifact resource relates to the target artifact.) */ - public List getIdentifier() { - if (this.identifier == null) - this.identifier = new ArrayList(); - return this.identifier; + public CodeableConcept getRelationshipType() { + if (this.relationshipType == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactRelatesToComponent.relationshipType"); + else if (Configuration.doAutoCreate()) + this.relationshipType = new CodeableConcept(); // cc + return this.relationshipType; + } + + public boolean hasRelationshipType() { + return this.relationshipType != null && !this.relationshipType.isEmpty(); + } + + /** + * @param value {@link #relationshipType} (How the cited artifact resource relates to the target artifact.) + */ + public CitationCitedArtifactRelatesToComponent setRelationshipType(CodeableConcept value) { + this.relationshipType = value; + return this; + } + + /** + * @return {@link #targetClassifier} (The clasification of the related artifact.) + */ + public List getTargetClassifier() { + if (this.targetClassifier == null) + this.targetClassifier = new ArrayList(); + return this.targetClassifier; } /** * @return Returns a reference to this for easy method chaining */ - public CitationJournalComponent setIdentifier(List theIdentifier) { - this.identifier = theIdentifier; + public CitationCitedArtifactRelatesToComponent setTargetClassifier(List theTargetClassifier) { + this.targetClassifier = theTargetClassifier; return this; } - public boolean hasIdentifier() { - if (this.identifier == null) + public boolean hasTargetClassifier() { + if (this.targetClassifier == null) return false; - for (Identifier item : this.identifier) + for (CodeableConcept item : this.targetClassifier) if (!item.isEmpty()) return true; return false; } - public Identifier addIdentifier() { //3 - Identifier t = new Identifier(); - if (this.identifier == null) - this.identifier = new ArrayList(); - this.identifier.add(t); + public CodeableConcept addTargetClassifier() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.targetClassifier == null) + this.targetClassifier = new ArrayList(); + this.targetClassifier.add(t); return t; } - public CitationJournalComponent addIdentifier(Identifier t) { //3 + public CitationCitedArtifactRelatesToComponent addTargetClassifier(CodeableConcept t) { //3 if (t == null) return this; - if (this.identifier == null) - this.identifier = new ArrayList(); - this.identifier.add(t); + if (this.targetClassifier == null) + this.targetClassifier = new ArrayList(); + this.targetClassifier.add(t); return this; } /** - * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} + * @return The first repetition of repeating field {@link #targetClassifier}, creating it if it does not already exist {3} */ - public Identifier getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - addIdentifier(); + public CodeableConcept getTargetClassifierFirstRep() { + if (getTargetClassifier().isEmpty()) { + addTargetClassifier(); } - return getIdentifier().get(0); + return getTargetClassifier().get(0); } /** - * @return {@link #country} (Place of publication of the journal.). This is the underlying object with id, value and extensions. The accessor "getCountry" gives direct access to the value + * @return {@link #target} (The article or artifact that the cited artifact is related to.) */ - public StringType getCountryElement() { - if (this.country == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationJournalComponent.country"); - else if (Configuration.doAutoCreate()) - this.country = new StringType(); // bb - return this.country; - } - - public boolean hasCountryElement() { - return this.country != null && !this.country.isEmpty(); - } - - public boolean hasCountry() { - return this.country != null && !this.country.isEmpty(); + public DataType getTarget() { + return this.target; } /** - * @param value {@link #country} (Place of publication of the journal.). This is the underlying object with id, value and extensions. The accessor "getCountry" gives direct access to the value + * @return {@link #target} (The article or artifact that the cited artifact is related to.) */ - public CitationJournalComponent setCountryElement(StringType value) { - this.country = value; - return this; + public UriType getTargetUriType() throws FHIRException { + if (this.target == null) + this.target = new UriType(); + if (!(this.target instanceof UriType)) + throw new FHIRException("Type mismatch: the type UriType was expected, but "+this.target.getClass().getName()+" was encountered"); + return (UriType) this.target; + } + + public boolean hasTargetUriType() { + return this != null && this.target instanceof UriType; } /** - * @return Place of publication of the journal. + * @return {@link #target} (The article or artifact that the cited artifact is related to.) */ - public String getCountry() { - return this.country == null ? null : this.country.getValue(); + public Identifier getTargetIdentifier() throws FHIRException { + if (this.target == null) + this.target = new Identifier(); + if (!(this.target instanceof Identifier)) + throw new FHIRException("Type mismatch: the type Identifier was expected, but "+this.target.getClass().getName()+" was encountered"); + return (Identifier) this.target; + } + + public boolean hasTargetIdentifier() { + return this != null && this.target instanceof Identifier; } /** - * @param value Place of publication of the journal. + * @return {@link #target} (The article or artifact that the cited artifact is related to.) */ - public CitationJournalComponent setCountry(String value) { - if (Utilities.noString(value)) - this.country = null; - else { - if (this.country == null) - this.country = new StringType(); - this.country.setValue(value); - } - return this; + public Reference getTargetReference() throws FHIRException { + if (this.target == null) + this.target = new Reference(); + if (!(this.target instanceof Reference)) + throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.target.getClass().getName()+" was encountered"); + return (Reference) this.target; + } + + public boolean hasTargetReference() { + return this != null && this.target instanceof Reference; } /** - * @return {@link #journalIssue} (The specific issue in which the cited article resides.) + * @return {@link #target} (The article or artifact that the cited artifact is related to.) */ - public CitationJournalJournalIssueComponent getJournalIssue() { - if (this.journalIssue == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationJournalComponent.journalIssue"); - else if (Configuration.doAutoCreate()) - this.journalIssue = new CitationJournalJournalIssueComponent(); // cc - return this.journalIssue; + public Attachment getTargetAttachment() throws FHIRException { + if (this.target == null) + this.target = new Attachment(); + if (!(this.target instanceof Attachment)) + throw new FHIRException("Type mismatch: the type Attachment was expected, but "+this.target.getClass().getName()+" was encountered"); + return (Attachment) this.target; } - public boolean hasJournalIssue() { - return this.journalIssue != null && !this.journalIssue.isEmpty(); + public boolean hasTargetAttachment() { + return this != null && this.target instanceof Attachment; + } + + public boolean hasTarget() { + return this.target != null && !this.target.isEmpty(); } /** - * @param value {@link #journalIssue} (The specific issue in which the cited article resides.) + * @param value {@link #target} (The article or artifact that the cited artifact is related to.) */ - public CitationJournalComponent setJournalIssue(CitationJournalJournalIssueComponent value) { - this.journalIssue = value; - return this; - } - - /** - * @return {@link #title} (Journal title.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value - */ - public StringType getTitleElement() { - if (this.title == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationJournalComponent.title"); - else if (Configuration.doAutoCreate()) - this.title = new StringType(); // bb - return this.title; - } - - public boolean hasTitleElement() { - return this.title != null && !this.title.isEmpty(); - } - - public boolean hasTitle() { - return this.title != null && !this.title.isEmpty(); - } - - /** - * @param value {@link #title} (Journal title.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value - */ - public CitationJournalComponent setTitleElement(StringType value) { - this.title = value; - return this; - } - - /** - * @return Journal title. - */ - public String getTitle() { - return this.title == null ? null : this.title.getValue(); - } - - /** - * @param value Journal title. - */ - public CitationJournalComponent setTitle(String value) { - if (Utilities.noString(value)) - this.title = null; - else { - if (this.title == null) - this.title = new StringType(); - this.title.setValue(value); - } + public CitationCitedArtifactRelatesToComponent setTarget(DataType value) { + if (value != null && !(value instanceof UriType || value instanceof Identifier || value instanceof Reference || value instanceof Attachment)) + throw new Error("Not the right type for Citation.citedArtifact.relatesTo.target[x]: "+value.fhirType()); + this.target = value; return this; } protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("identifier", "Identifier", "Journal identifiers include ISSN, ISO Abbreviation and NLMuniqueID.", 0, java.lang.Integer.MAX_VALUE, identifier)); - children.add(new Property("country", "string", "Place of publication of the journal.", 0, 1, country)); - children.add(new Property("journalIssue", "", "The specific issue in which the cited article resides.", 0, 1, journalIssue)); - children.add(new Property("title", "string", "Journal title.", 0, 1, title)); + children.add(new Property("relationshipType", "CodeableConcept", "How the cited artifact resource relates to the target artifact.", 0, 1, relationshipType)); + children.add(new Property("targetClassifier", "CodeableConcept", "The clasification of the related artifact.", 0, java.lang.Integer.MAX_VALUE, targetClassifier)); + children.add(new Property("target[x]", "uri|Identifier|Reference(Any)|Attachment", "The article or artifact that the cited artifact is related to.", 0, 1, target)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Journal identifiers include ISSN, ISO Abbreviation and NLMuniqueID.", 0, java.lang.Integer.MAX_VALUE, identifier); - case 957831062: /*country*/ return new Property("country", "string", "Place of publication of the journal.", 0, 1, country); - case -716835870: /*journalIssue*/ return new Property("journalIssue", "", "The specific issue in which the cited article resides.", 0, 1, journalIssue); - case 110371416: /*title*/ return new Property("title", "string", "Journal title.", 0, 1, title); + case -1602839150: /*relationshipType*/ return new Property("relationshipType", "CodeableConcept", "How the cited artifact resource relates to the target artifact.", 0, 1, relationshipType); + case -1267112302: /*targetClassifier*/ return new Property("targetClassifier", "CodeableConcept", "The clasification of the related artifact.", 0, java.lang.Integer.MAX_VALUE, targetClassifier); + case -815579825: /*target[x]*/ return new Property("target[x]", "uri|Identifier|Reference(Any)|Attachment", "The article or artifact that the cited artifact is related to.", 0, 1, target); + case -880905839: /*target*/ return new Property("target[x]", "uri|Identifier|Reference(Any)|Attachment", "The article or artifact that the cited artifact is related to.", 0, 1, target); + case -815585765: /*targetUri*/ return new Property("target[x]", "uri", "The article or artifact that the cited artifact is related to.", 0, 1, target); + case 1690892570: /*targetIdentifier*/ return new Property("target[x]", "Identifier", "The article or artifact that the cited artifact is related to.", 0, 1, target); + case 1259806906: /*targetReference*/ return new Property("target[x]", "Reference(Any)", "The article or artifact that the cited artifact is related to.", 0, 1, target); + case 1345824148: /*targetAttachment*/ return new Property("target[x]", "Attachment", "The article or artifact that the cited artifact is related to.", 0, 1, target); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -794,10 +3753,9 @@ public class Citation extends MetadataResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier - case 957831062: /*country*/ return this.country == null ? new Base[0] : new Base[] {this.country}; // StringType - case -716835870: /*journalIssue*/ return this.journalIssue == null ? new Base[0] : new Base[] {this.journalIssue}; // CitationJournalJournalIssueComponent - case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType + case -1602839150: /*relationshipType*/ return this.relationshipType == null ? new Base[0] : new Base[] {this.relationshipType}; // CodeableConcept + case -1267112302: /*targetClassifier*/ return this.targetClassifier == null ? new Base[0] : this.targetClassifier.toArray(new Base[this.targetClassifier.size()]); // CodeableConcept + case -880905839: /*target*/ return this.target == null ? new Base[0] : new Base[] {this.target}; // DataType default: return super.getProperty(hash, name, checkValid); } @@ -806,17 +3764,14 @@ public class Citation extends MetadataResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { - case -1618432855: // identifier - this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier + case -1602839150: // relationshipType + this.relationshipType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; - case 957831062: // country - this.country = TypeConvertor.castToString(value); // StringType + case -1267112302: // targetClassifier + this.getTargetClassifier().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept return value; - case -716835870: // journalIssue - this.journalIssue = (CitationJournalJournalIssueComponent) value; // CitationJournalJournalIssueComponent - return value; - case 110371416: // title - this.title = TypeConvertor.castToString(value); // StringType + case -880905839: // target + this.target = TypeConvertor.castToType(value); // DataType return value; default: return super.setProperty(hash, name, value); } @@ -825,14 +3780,12 @@ public class Citation extends MetadataResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("identifier")) { - this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); - } else if (name.equals("country")) { - this.country = TypeConvertor.castToString(value); // StringType - } else if (name.equals("journalIssue")) { - this.journalIssue = (CitationJournalJournalIssueComponent) value; // CitationJournalJournalIssueComponent - } else if (name.equals("title")) { - this.title = TypeConvertor.castToString(value); // StringType + if (name.equals("relationshipType")) { + this.relationshipType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("targetClassifier")) { + this.getTargetClassifier().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("target[x]")) { + this.target = TypeConvertor.castToType(value); // DataType } else return super.setProperty(name, value); return value; @@ -841,10 +3794,10 @@ public class Citation extends MetadataResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { - case -1618432855: return addIdentifier(); - case 957831062: return getCountryElement(); - case -716835870: return getJournalIssue(); - case 110371416: return getTitleElement(); + case -1602839150: return getRelationshipType(); + case -1267112302: return addTargetClassifier(); + case -815579825: return getTarget(); + case -880905839: return getTarget(); default: return super.makeProperty(hash, name); } @@ -853,10 +3806,9 @@ public class Citation extends MetadataResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case -1618432855: /*identifier*/ return new String[] {"Identifier"}; - case 957831062: /*country*/ return new String[] {"string"}; - case -716835870: /*journalIssue*/ return new String[] {}; - case 110371416: /*title*/ return new String[] {"string"}; + case -1602839150: /*relationshipType*/ return new String[] {"CodeableConcept"}; + case -1267112302: /*targetClassifier*/ return new String[] {"CodeableConcept"}; + case -880905839: /*target*/ return new String[] {"uri", "Identifier", "Reference", "Attachment"}; default: return super.getTypesForProperty(hash, name); } @@ -864,1000 +3816,181 @@ public class Citation extends MetadataResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("identifier")) { - return addIdentifier(); + if (name.equals("relationshipType")) { + this.relationshipType = new CodeableConcept(); + return this.relationshipType; } - else if (name.equals("country")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.journal.country"); + else if (name.equals("targetClassifier")) { + return addTargetClassifier(); } - else if (name.equals("journalIssue")) { - this.journalIssue = new CitationJournalJournalIssueComponent(); - return this.journalIssue; + else if (name.equals("targetUri")) { + this.target = new UriType(); + return this.target; } - else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.journal.title"); + else if (name.equals("targetIdentifier")) { + this.target = new Identifier(); + return this.target; + } + else if (name.equals("targetReference")) { + this.target = new Reference(); + return this.target; + } + else if (name.equals("targetAttachment")) { + this.target = new Attachment(); + return this.target; } else return super.addChild(name); } - public CitationJournalComponent copy() { - CitationJournalComponent dst = new CitationJournalComponent(); + public CitationCitedArtifactRelatesToComponent copy() { + CitationCitedArtifactRelatesToComponent dst = new CitationCitedArtifactRelatesToComponent(); copyValues(dst); return dst; } - public void copyValues(CitationJournalComponent dst) { + public void copyValues(CitationCitedArtifactRelatesToComponent dst) { super.copyValues(dst); - if (identifier != null) { - dst.identifier = new ArrayList(); - for (Identifier i : identifier) - dst.identifier.add(i.copy()); + dst.relationshipType = relationshipType == null ? null : relationshipType.copy(); + if (targetClassifier != null) { + dst.targetClassifier = new ArrayList(); + for (CodeableConcept i : targetClassifier) + dst.targetClassifier.add(i.copy()); }; - dst.country = country == null ? null : country.copy(); - dst.journalIssue = journalIssue == null ? null : journalIssue.copy(); - dst.title = title == null ? null : title.copy(); + dst.target = target == null ? null : target.copy(); } @Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof CitationJournalComponent)) + if (!(other_ instanceof CitationCitedArtifactRelatesToComponent)) return false; - CitationJournalComponent o = (CitationJournalComponent) other_; - return compareDeep(identifier, o.identifier, true) && compareDeep(country, o.country, true) && compareDeep(journalIssue, o.journalIssue, true) - && compareDeep(title, o.title, true); + CitationCitedArtifactRelatesToComponent o = (CitationCitedArtifactRelatesToComponent) other_; + return compareDeep(relationshipType, o.relationshipType, true) && compareDeep(targetClassifier, o.targetClassifier, true) + && compareDeep(target, o.target, true); } @Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof CitationJournalComponent)) + if (!(other_ instanceof CitationCitedArtifactRelatesToComponent)) return false; - CitationJournalComponent o = (CitationJournalComponent) other_; - return compareValues(country, o.country, true) && compareValues(title, o.title, true); + CitationCitedArtifactRelatesToComponent o = (CitationCitedArtifactRelatesToComponent) other_; + return true; } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, country, journalIssue - , title); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(relationshipType, targetClassifier + , target); } public String fhirType() { - return "Citation.journal"; + return "Citation.citedArtifact.relatesTo"; } } @Block() - public static class CitationJournalJournalIssueComponent extends BackboneElement implements IBaseBackboneElement { + public static class CitationCitedArtifactPublicationFormComponent extends BackboneElement implements IBaseBackboneElement { /** - * NLM codes Internet or Print. - */ - @Child(name = "citedMedium", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="NLM codes Internet or Print", formalDefinition="NLM codes Internet or Print." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/journal-issue-medium") - protected CodeableConcept citedMedium; - - /** - * Volume number of journal in which the article is published. - */ - @Child(name = "volume", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Volume number of journal in which the article is published", formalDefinition="Volume number of journal in which the article is published." ) - protected StringType volume; - - /** - * Issue, part or supplement of journal in which the article is published. - */ - @Child(name = "issue", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Issue, part or supplement of journal in which the article is published", formalDefinition="Issue, part or supplement of journal in which the article is published." ) - protected StringType issue; - - /** - * Date on which the issue of the journal was published. - */ - @Child(name = "publicationDate", type = {}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Date on which the issue of the journal was published", formalDefinition="Date on which the issue of the journal was published." ) - protected CitationJournalJournalIssuePublicationDateComponent publicationDate; - - private static final long serialVersionUID = 933986267L; - - /** - * Constructor - */ - public CitationJournalJournalIssueComponent() { - super(); - } - - /** - * @return {@link #citedMedium} (NLM codes Internet or Print.) - */ - public CodeableConcept getCitedMedium() { - if (this.citedMedium == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationJournalJournalIssueComponent.citedMedium"); - else if (Configuration.doAutoCreate()) - this.citedMedium = new CodeableConcept(); // cc - return this.citedMedium; - } - - public boolean hasCitedMedium() { - return this.citedMedium != null && !this.citedMedium.isEmpty(); - } - - /** - * @param value {@link #citedMedium} (NLM codes Internet or Print.) - */ - public CitationJournalJournalIssueComponent setCitedMedium(CodeableConcept value) { - this.citedMedium = value; - return this; - } - - /** - * @return {@link #volume} (Volume number of journal in which the article is published.). This is the underlying object with id, value and extensions. The accessor "getVolume" gives direct access to the value - */ - public StringType getVolumeElement() { - if (this.volume == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationJournalJournalIssueComponent.volume"); - else if (Configuration.doAutoCreate()) - this.volume = new StringType(); // bb - return this.volume; - } - - public boolean hasVolumeElement() { - return this.volume != null && !this.volume.isEmpty(); - } - - public boolean hasVolume() { - return this.volume != null && !this.volume.isEmpty(); - } - - /** - * @param value {@link #volume} (Volume number of journal in which the article is published.). This is the underlying object with id, value and extensions. The accessor "getVolume" gives direct access to the value - */ - public CitationJournalJournalIssueComponent setVolumeElement(StringType value) { - this.volume = value; - return this; - } - - /** - * @return Volume number of journal in which the article is published. - */ - public String getVolume() { - return this.volume == null ? null : this.volume.getValue(); - } - - /** - * @param value Volume number of journal in which the article is published. - */ - public CitationJournalJournalIssueComponent setVolume(String value) { - if (Utilities.noString(value)) - this.volume = null; - else { - if (this.volume == null) - this.volume = new StringType(); - this.volume.setValue(value); - } - return this; - } - - /** - * @return {@link #issue} (Issue, part or supplement of journal in which the article is published.). This is the underlying object with id, value and extensions. The accessor "getIssue" gives direct access to the value - */ - public StringType getIssueElement() { - if (this.issue == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationJournalJournalIssueComponent.issue"); - else if (Configuration.doAutoCreate()) - this.issue = new StringType(); // bb - return this.issue; - } - - public boolean hasIssueElement() { - return this.issue != null && !this.issue.isEmpty(); - } - - public boolean hasIssue() { - return this.issue != null && !this.issue.isEmpty(); - } - - /** - * @param value {@link #issue} (Issue, part or supplement of journal in which the article is published.). This is the underlying object with id, value and extensions. The accessor "getIssue" gives direct access to the value - */ - public CitationJournalJournalIssueComponent setIssueElement(StringType value) { - this.issue = value; - return this; - } - - /** - * @return Issue, part or supplement of journal in which the article is published. - */ - public String getIssue() { - return this.issue == null ? null : this.issue.getValue(); - } - - /** - * @param value Issue, part or supplement of journal in which the article is published. - */ - public CitationJournalJournalIssueComponent setIssue(String value) { - if (Utilities.noString(value)) - this.issue = null; - else { - if (this.issue == null) - this.issue = new StringType(); - this.issue.setValue(value); - } - return this; - } - - /** - * @return {@link #publicationDate} (Date on which the issue of the journal was published.) - */ - public CitationJournalJournalIssuePublicationDateComponent getPublicationDate() { - if (this.publicationDate == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationJournalJournalIssueComponent.publicationDate"); - else if (Configuration.doAutoCreate()) - this.publicationDate = new CitationJournalJournalIssuePublicationDateComponent(); // cc - return this.publicationDate; - } - - public boolean hasPublicationDate() { - return this.publicationDate != null && !this.publicationDate.isEmpty(); - } - - /** - * @param value {@link #publicationDate} (Date on which the issue of the journal was published.) - */ - public CitationJournalJournalIssueComponent setPublicationDate(CitationJournalJournalIssuePublicationDateComponent value) { - this.publicationDate = value; - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("citedMedium", "CodeableConcept", "NLM codes Internet or Print.", 0, 1, citedMedium)); - children.add(new Property("volume", "string", "Volume number of journal in which the article is published.", 0, 1, volume)); - children.add(new Property("issue", "string", "Issue, part or supplement of journal in which the article is published.", 0, 1, issue)); - children.add(new Property("publicationDate", "", "Date on which the issue of the journal was published.", 0, 1, publicationDate)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 612116418: /*citedMedium*/ return new Property("citedMedium", "CodeableConcept", "NLM codes Internet or Print.", 0, 1, citedMedium); - case -810883302: /*volume*/ return new Property("volume", "string", "Volume number of journal in which the article is published.", 0, 1, volume); - case 100509913: /*issue*/ return new Property("issue", "string", "Issue, part or supplement of journal in which the article is published.", 0, 1, issue); - case 1470566394: /*publicationDate*/ return new Property("publicationDate", "", "Date on which the issue of the journal was published.", 0, 1, publicationDate); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 612116418: /*citedMedium*/ return this.citedMedium == null ? new Base[0] : new Base[] {this.citedMedium}; // CodeableConcept - case -810883302: /*volume*/ return this.volume == null ? new Base[0] : new Base[] {this.volume}; // StringType - case 100509913: /*issue*/ return this.issue == null ? new Base[0] : new Base[] {this.issue}; // StringType - case 1470566394: /*publicationDate*/ return this.publicationDate == null ? new Base[0] : new Base[] {this.publicationDate}; // CitationJournalJournalIssuePublicationDateComponent - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 612116418: // citedMedium - this.citedMedium = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; - case -810883302: // volume - this.volume = TypeConvertor.castToString(value); // StringType - return value; - case 100509913: // issue - this.issue = TypeConvertor.castToString(value); // StringType - return value; - case 1470566394: // publicationDate - this.publicationDate = (CitationJournalJournalIssuePublicationDateComponent) value; // CitationJournalJournalIssuePublicationDateComponent - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("citedMedium")) { - this.citedMedium = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("volume")) { - this.volume = TypeConvertor.castToString(value); // StringType - } else if (name.equals("issue")) { - this.issue = TypeConvertor.castToString(value); // StringType - } else if (name.equals("publicationDate")) { - this.publicationDate = (CitationJournalJournalIssuePublicationDateComponent) value; // CitationJournalJournalIssuePublicationDateComponent - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 612116418: return getCitedMedium(); - case -810883302: return getVolumeElement(); - case 100509913: return getIssueElement(); - case 1470566394: return getPublicationDate(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 612116418: /*citedMedium*/ return new String[] {"CodeableConcept"}; - case -810883302: /*volume*/ return new String[] {"string"}; - case 100509913: /*issue*/ return new String[] {"string"}; - case 1470566394: /*publicationDate*/ return new String[] {}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("citedMedium")) { - this.citedMedium = new CodeableConcept(); - return this.citedMedium; - } - else if (name.equals("volume")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.journal.journalIssue.volume"); - } - else if (name.equals("issue")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.journal.journalIssue.issue"); - } - else if (name.equals("publicationDate")) { - this.publicationDate = new CitationJournalJournalIssuePublicationDateComponent(); - return this.publicationDate; - } - else - return super.addChild(name); - } - - public CitationJournalJournalIssueComponent copy() { - CitationJournalJournalIssueComponent dst = new CitationJournalJournalIssueComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationJournalJournalIssueComponent dst) { - super.copyValues(dst); - dst.citedMedium = citedMedium == null ? null : citedMedium.copy(); - dst.volume = volume == null ? null : volume.copy(); - dst.issue = issue == null ? null : issue.copy(); - dst.publicationDate = publicationDate == null ? null : publicationDate.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationJournalJournalIssueComponent)) - return false; - CitationJournalJournalIssueComponent o = (CitationJournalJournalIssueComponent) other_; - return compareDeep(citedMedium, o.citedMedium, true) && compareDeep(volume, o.volume, true) && compareDeep(issue, o.issue, true) - && compareDeep(publicationDate, o.publicationDate, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationJournalJournalIssueComponent)) - return false; - CitationJournalJournalIssueComponent o = (CitationJournalJournalIssueComponent) other_; - return compareValues(volume, o.volume, true) && compareValues(issue, o.issue, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(citedMedium, volume, issue - , publicationDate); - } - - public String fhirType() { - return "Citation.journal.journalIssue"; - - } - - } - - @Block() - public static class CitationJournalJournalIssuePublicationDateComponent extends BackboneElement implements IBaseBackboneElement { - /** - * Defining the date on which the issue of the joutnal was published. - */ - @Child(name = "date", type = {DateType.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Defining the date on which the issue of the joutnal was published", formalDefinition="Defining the date on which the issue of the joutnal was published." ) - protected DateType date; - - /** - * Year on which the issue of the journal was published. - */ - @Child(name = "year", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Year on which the issue of the journal was published", formalDefinition="Year on which the issue of the journal was published." ) - protected StringType year; - - /** - * Month on which the issue of the journal was published. - */ - @Child(name = "month", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Month on which the issue of the journal was published", formalDefinition="Month on which the issue of the journal was published." ) - protected StringType month; - - /** - * Day on which the issue of the journal was published. - */ - @Child(name = "day", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Day on which the issue of the journal was published", formalDefinition="Day on which the issue of the journal was published." ) - protected StringType day; - - /** - * Spring, Summer, Fall/Autumn, Winter. - */ - @Child(name = "season", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Season on which the issue of the jornal was published", formalDefinition="Spring, Summer, Fall/Autumn, Winter." ) - protected StringType season; - - /** - * Text representation of the date of which the issue of the journal was published. - */ - @Child(name = "text", type = {StringType.class}, order=6, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Text representation of the date of which the issue of the journal was published", formalDefinition="Text representation of the date of which the issue of the journal was published." ) - protected StringType text; - - private static final long serialVersionUID = 1585589146L; - - /** - * Constructor - */ - public CitationJournalJournalIssuePublicationDateComponent() { - super(); - } - - /** - * @return {@link #date} (Defining the date on which the issue of the joutnal was published.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value - */ - public DateType getDateElement() { - if (this.date == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationJournalJournalIssuePublicationDateComponent.date"); - else if (Configuration.doAutoCreate()) - this.date = new DateType(); // bb - return this.date; - } - - public boolean hasDateElement() { - return this.date != null && !this.date.isEmpty(); - } - - public boolean hasDate() { - return this.date != null && !this.date.isEmpty(); - } - - /** - * @param value {@link #date} (Defining the date on which the issue of the joutnal was published.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value - */ - public CitationJournalJournalIssuePublicationDateComponent setDateElement(DateType value) { - this.date = value; - return this; - } - - /** - * @return Defining the date on which the issue of the joutnal was published. - */ - public Date getDate() { - return this.date == null ? null : this.date.getValue(); - } - - /** - * @param value Defining the date on which the issue of the joutnal was published. - */ - public CitationJournalJournalIssuePublicationDateComponent setDate(Date value) { - if (value == null) - this.date = null; - else { - if (this.date == null) - this.date = new DateType(); - this.date.setValue(value); - } - return this; - } - - /** - * @return {@link #year} (Year on which the issue of the journal was published.). This is the underlying object with id, value and extensions. The accessor "getYear" gives direct access to the value - */ - public StringType getYearElement() { - if (this.year == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationJournalJournalIssuePublicationDateComponent.year"); - else if (Configuration.doAutoCreate()) - this.year = new StringType(); // bb - return this.year; - } - - public boolean hasYearElement() { - return this.year != null && !this.year.isEmpty(); - } - - public boolean hasYear() { - return this.year != null && !this.year.isEmpty(); - } - - /** - * @param value {@link #year} (Year on which the issue of the journal was published.). This is the underlying object with id, value and extensions. The accessor "getYear" gives direct access to the value - */ - public CitationJournalJournalIssuePublicationDateComponent setYearElement(StringType value) { - this.year = value; - return this; - } - - /** - * @return Year on which the issue of the journal was published. - */ - public String getYear() { - return this.year == null ? null : this.year.getValue(); - } - - /** - * @param value Year on which the issue of the journal was published. - */ - public CitationJournalJournalIssuePublicationDateComponent setYear(String value) { - if (Utilities.noString(value)) - this.year = null; - else { - if (this.year == null) - this.year = new StringType(); - this.year.setValue(value); - } - return this; - } - - /** - * @return {@link #month} (Month on which the issue of the journal was published.). This is the underlying object with id, value and extensions. The accessor "getMonth" gives direct access to the value - */ - public StringType getMonthElement() { - if (this.month == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationJournalJournalIssuePublicationDateComponent.month"); - else if (Configuration.doAutoCreate()) - this.month = new StringType(); // bb - return this.month; - } - - public boolean hasMonthElement() { - return this.month != null && !this.month.isEmpty(); - } - - public boolean hasMonth() { - return this.month != null && !this.month.isEmpty(); - } - - /** - * @param value {@link #month} (Month on which the issue of the journal was published.). This is the underlying object with id, value and extensions. The accessor "getMonth" gives direct access to the value - */ - public CitationJournalJournalIssuePublicationDateComponent setMonthElement(StringType value) { - this.month = value; - return this; - } - - /** - * @return Month on which the issue of the journal was published. - */ - public String getMonth() { - return this.month == null ? null : this.month.getValue(); - } - - /** - * @param value Month on which the issue of the journal was published. - */ - public CitationJournalJournalIssuePublicationDateComponent setMonth(String value) { - if (Utilities.noString(value)) - this.month = null; - else { - if (this.month == null) - this.month = new StringType(); - this.month.setValue(value); - } - return this; - } - - /** - * @return {@link #day} (Day on which the issue of the journal was published.). This is the underlying object with id, value and extensions. The accessor "getDay" gives direct access to the value - */ - public StringType getDayElement() { - if (this.day == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationJournalJournalIssuePublicationDateComponent.day"); - else if (Configuration.doAutoCreate()) - this.day = new StringType(); // bb - return this.day; - } - - public boolean hasDayElement() { - return this.day != null && !this.day.isEmpty(); - } - - public boolean hasDay() { - return this.day != null && !this.day.isEmpty(); - } - - /** - * @param value {@link #day} (Day on which the issue of the journal was published.). This is the underlying object with id, value and extensions. The accessor "getDay" gives direct access to the value - */ - public CitationJournalJournalIssuePublicationDateComponent setDayElement(StringType value) { - this.day = value; - return this; - } - - /** - * @return Day on which the issue of the journal was published. - */ - public String getDay() { - return this.day == null ? null : this.day.getValue(); - } - - /** - * @param value Day on which the issue of the journal was published. - */ - public CitationJournalJournalIssuePublicationDateComponent setDay(String value) { - if (Utilities.noString(value)) - this.day = null; - else { - if (this.day == null) - this.day = new StringType(); - this.day.setValue(value); - } - return this; - } - - /** - * @return {@link #season} (Spring, Summer, Fall/Autumn, Winter.). This is the underlying object with id, value and extensions. The accessor "getSeason" gives direct access to the value - */ - public StringType getSeasonElement() { - if (this.season == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationJournalJournalIssuePublicationDateComponent.season"); - else if (Configuration.doAutoCreate()) - this.season = new StringType(); // bb - return this.season; - } - - public boolean hasSeasonElement() { - return this.season != null && !this.season.isEmpty(); - } - - public boolean hasSeason() { - return this.season != null && !this.season.isEmpty(); - } - - /** - * @param value {@link #season} (Spring, Summer, Fall/Autumn, Winter.). This is the underlying object with id, value and extensions. The accessor "getSeason" gives direct access to the value - */ - public CitationJournalJournalIssuePublicationDateComponent setSeasonElement(StringType value) { - this.season = value; - return this; - } - - /** - * @return Spring, Summer, Fall/Autumn, Winter. - */ - public String getSeason() { - return this.season == null ? null : this.season.getValue(); - } - - /** - * @param value Spring, Summer, Fall/Autumn, Winter. - */ - public CitationJournalJournalIssuePublicationDateComponent setSeason(String value) { - if (Utilities.noString(value)) - this.season = null; - else { - if (this.season == null) - this.season = new StringType(); - this.season.setValue(value); - } - return this; - } - - /** - * @return {@link #text} (Text representation of the date of which the issue of the journal was published.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value - */ - public StringType getTextElement() { - if (this.text == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationJournalJournalIssuePublicationDateComponent.text"); - else if (Configuration.doAutoCreate()) - this.text = new StringType(); // bb - return this.text; - } - - public boolean hasTextElement() { - return this.text != null && !this.text.isEmpty(); - } - - public boolean hasText() { - return this.text != null && !this.text.isEmpty(); - } - - /** - * @param value {@link #text} (Text representation of the date of which the issue of the journal was published.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value - */ - public CitationJournalJournalIssuePublicationDateComponent setTextElement(StringType value) { - this.text = value; - return this; - } - - /** - * @return Text representation of the date of which the issue of the journal was published. - */ - public String getText() { - return this.text == null ? null : this.text.getValue(); - } - - /** - * @param value Text representation of the date of which the issue of the journal was published. - */ - public CitationJournalJournalIssuePublicationDateComponent setText(String value) { - if (Utilities.noString(value)) - this.text = null; - else { - if (this.text == null) - this.text = new StringType(); - this.text.setValue(value); - } - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("date", "date", "Defining the date on which the issue of the joutnal was published.", 0, 1, date)); - children.add(new Property("year", "string", "Year on which the issue of the journal was published.", 0, 1, year)); - children.add(new Property("month", "string", "Month on which the issue of the journal was published.", 0, 1, month)); - children.add(new Property("day", "string", "Day on which the issue of the journal was published.", 0, 1, day)); - children.add(new Property("season", "string", "Spring, Summer, Fall/Autumn, Winter.", 0, 1, season)); - children.add(new Property("text", "string", "Text representation of the date of which the issue of the journal was published.", 0, 1, text)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 3076014: /*date*/ return new Property("date", "date", "Defining the date on which the issue of the joutnal was published.", 0, 1, date); - case 3704893: /*year*/ return new Property("year", "string", "Year on which the issue of the journal was published.", 0, 1, year); - case 104080000: /*month*/ return new Property("month", "string", "Month on which the issue of the journal was published.", 0, 1, month); - case 99228: /*day*/ return new Property("day", "string", "Day on which the issue of the journal was published.", 0, 1, day); - case -906335517: /*season*/ return new Property("season", "string", "Spring, Summer, Fall/Autumn, Winter.", 0, 1, season); - case 3556653: /*text*/ return new Property("text", "string", "Text representation of the date of which the issue of the journal was published.", 0, 1, text); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateType - case 3704893: /*year*/ return this.year == null ? new Base[0] : new Base[] {this.year}; // StringType - case 104080000: /*month*/ return this.month == null ? new Base[0] : new Base[] {this.month}; // StringType - case 99228: /*day*/ return this.day == null ? new Base[0] : new Base[] {this.day}; // StringType - case -906335517: /*season*/ return this.season == null ? new Base[0] : new Base[] {this.season}; // StringType - case 3556653: /*text*/ return this.text == null ? new Base[0] : new Base[] {this.text}; // StringType - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 3076014: // date - this.date = TypeConvertor.castToDate(value); // DateType - return value; - case 3704893: // year - this.year = TypeConvertor.castToString(value); // StringType - return value; - case 104080000: // month - this.month = TypeConvertor.castToString(value); // StringType - return value; - case 99228: // day - this.day = TypeConvertor.castToString(value); // StringType - return value; - case -906335517: // season - this.season = TypeConvertor.castToString(value); // StringType - return value; - case 3556653: // text - this.text = TypeConvertor.castToString(value); // StringType - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("date")) { - this.date = TypeConvertor.castToDate(value); // DateType - } else if (name.equals("year")) { - this.year = TypeConvertor.castToString(value); // StringType - } else if (name.equals("month")) { - this.month = TypeConvertor.castToString(value); // StringType - } else if (name.equals("day")) { - this.day = TypeConvertor.castToString(value); // StringType - } else if (name.equals("season")) { - this.season = TypeConvertor.castToString(value); // StringType - } else if (name.equals("text")) { - this.text = TypeConvertor.castToString(value); // StringType - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 3076014: return getDateElement(); - case 3704893: return getYearElement(); - case 104080000: return getMonthElement(); - case 99228: return getDayElement(); - case -906335517: return getSeasonElement(); - case 3556653: return getTextElement(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 3076014: /*date*/ return new String[] {"date"}; - case 3704893: /*year*/ return new String[] {"string"}; - case 104080000: /*month*/ return new String[] {"string"}; - case 99228: /*day*/ return new String[] {"string"}; - case -906335517: /*season*/ return new String[] {"string"}; - case 3556653: /*text*/ return new String[] {"string"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.journal.journalIssue.publicationDate.date"); - } - else if (name.equals("year")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.journal.journalIssue.publicationDate.year"); - } - else if (name.equals("month")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.journal.journalIssue.publicationDate.month"); - } - else if (name.equals("day")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.journal.journalIssue.publicationDate.day"); - } - else if (name.equals("season")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.journal.journalIssue.publicationDate.season"); - } - else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.journal.journalIssue.publicationDate.text"); - } - else - return super.addChild(name); - } - - public CitationJournalJournalIssuePublicationDateComponent copy() { - CitationJournalJournalIssuePublicationDateComponent dst = new CitationJournalJournalIssuePublicationDateComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationJournalJournalIssuePublicationDateComponent dst) { - super.copyValues(dst); - dst.date = date == null ? null : date.copy(); - dst.year = year == null ? null : year.copy(); - dst.month = month == null ? null : month.copy(); - dst.day = day == null ? null : day.copy(); - dst.season = season == null ? null : season.copy(); - dst.text = text == null ? null : text.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationJournalJournalIssuePublicationDateComponent)) - return false; - CitationJournalJournalIssuePublicationDateComponent o = (CitationJournalJournalIssuePublicationDateComponent) other_; - return compareDeep(date, o.date, true) && compareDeep(year, o.year, true) && compareDeep(month, o.month, true) - && compareDeep(day, o.day, true) && compareDeep(season, o.season, true) && compareDeep(text, o.text, true) - ; - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationJournalJournalIssuePublicationDateComponent)) - return false; - CitationJournalJournalIssuePublicationDateComponent o = (CitationJournalJournalIssuePublicationDateComponent) other_; - return compareValues(date, o.date, true) && compareValues(year, o.year, true) && compareValues(month, o.month, true) - && compareValues(day, o.day, true) && compareValues(season, o.season, true) && compareValues(text, o.text, true) - ; - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(date, year, month, day - , season, text); - } - - public String fhirType() { - return "Citation.journal.journalIssue.publicationDate"; - - } - - } - - @Block() - public static class CitationPublicationInfoComponent extends BackboneElement implements IBaseBackboneElement { - /** - * The collection the cited article is published in. + * The collection the cited article or artifact is published in. */ @Child(name = "publishedIn", type = {}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The collection the cited article is published in", formalDefinition="The collection the cited article is published in." ) - protected CitationPublicationInfoPublishedInComponent publishedIn; + @Description(shortDefinition="The collection the cited article or artifact is published in", formalDefinition="The collection the cited article or artifact is published in." ) + protected CitationCitedArtifactPublicationFormPublishedInComponent publishedIn; /** - * The date the article was added to the database. + * The specific issue in which the cited article resides. */ - @Child(name = "entryDate", type = {DateTimeType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The date the article was added to the database", formalDefinition="The date the article was added to the database." ) - protected DateTimeType entryDate; + @Child(name = "periodicRelease", type = {}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The specific issue in which the cited article resides", formalDefinition="The specific issue in which the cited article resides." ) + protected CitationCitedArtifactPublicationFormPeriodicReleaseComponent periodicRelease; + + /** + * The date the article was added to the database, or the date the article was released (which may differ from the journal issue publication date). + */ + @Child(name = "articleDate", type = {DateTimeType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The date the article was added to the database, or the date the article was released", formalDefinition="The date the article was added to the database, or the date the article was released (which may differ from the journal issue publication date)." ) + protected DateTimeType articleDate; /** * The date the article was last revised or updated in the database. */ - @Child(name = "revisionDate", type = {DateTimeType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Child(name = "lastRevisionDate", type = {DateTimeType.class}, order=4, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="The date the article was last revised or updated in the database", formalDefinition="The date the article was last revised or updated in the database." ) - protected DateTimeType revisionDate; + protected DateTimeType lastRevisionDate; /** - * Actual or Approximate number of pages or screens. + * Language in which this form of the article is published. */ - @Child(name = "pageCount", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Number of pages or screens", formalDefinition="Actual or Approximate number of pages or screens." ) + @Child(name = "language", type = {CodeableConcept.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Language in which this form of the article is published", formalDefinition="Language in which this form of the article is published." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages") + protected List language; + + /** + * Entry number or identifier for inclusion in a database. + */ + @Child(name = "accessionNumber", type = {StringType.class}, order=6, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Entry number or identifier for inclusion in a database", formalDefinition="Entry number or identifier for inclusion in a database." ) + protected StringType accessionNumber; + + /** + * Used for full display of pagination. + */ + @Child(name = "pageString", type = {StringType.class}, order=7, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Used for full display of pagination", formalDefinition="Used for full display of pagination." ) + protected StringType pageString; + + /** + * Used for isolated representation of first page. + */ + @Child(name = "firstPage", type = {StringType.class}, order=8, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Used for isolated representation of first page", formalDefinition="Used for isolated representation of first page." ) + protected StringType firstPage; + + /** + * Used for isolated representation of last page. + */ + @Child(name = "lastPage", type = {StringType.class}, order=9, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Used for isolated representation of last page", formalDefinition="Used for isolated representation of last page." ) + protected StringType lastPage; + + /** + * Actual or approximate number of pages or screens. + */ + @Child(name = "pageCount", type = {StringType.class}, order=10, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Number of pages or screens", formalDefinition="Actual or approximate number of pages or screens." ) protected StringType pageCount; - private static final long serialVersionUID = -223356914L; + /** + * Copyright notice for the full article or artifact. + */ + @Child(name = "copyright", type = {MarkdownType.class}, order=11, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Copyright notice for the full article or artifact", formalDefinition="Copyright notice for the full article or artifact." ) + protected MarkdownType copyright; + + private static final long serialVersionUID = -191740896L; /** * Constructor */ - public CitationPublicationInfoComponent() { + public CitationCitedArtifactPublicationFormComponent() { super(); } /** - * @return {@link #publishedIn} (The collection the cited article is published in.) + * @return {@link #publishedIn} (The collection the cited article or artifact is published in.) */ - public CitationPublicationInfoPublishedInComponent getPublishedIn() { + public CitationCitedArtifactPublicationFormPublishedInComponent getPublishedIn() { if (this.publishedIn == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationPublicationInfoComponent.publishedIn"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormComponent.publishedIn"); else if (Configuration.doAutoCreate()) - this.publishedIn = new CitationPublicationInfoPublishedInComponent(); // cc + this.publishedIn = new CitationCitedArtifactPublicationFormPublishedInComponent(); // cc return this.publishedIn; } @@ -1866,1122 +3999,236 @@ public class Citation extends MetadataResource { } /** - * @param value {@link #publishedIn} (The collection the cited article is published in.) + * @param value {@link #publishedIn} (The collection the cited article or artifact is published in.) */ - public CitationPublicationInfoComponent setPublishedIn(CitationPublicationInfoPublishedInComponent value) { + public CitationCitedArtifactPublicationFormComponent setPublishedIn(CitationCitedArtifactPublicationFormPublishedInComponent value) { this.publishedIn = value; return this; } /** - * @return {@link #entryDate} (The date the article was added to the database.). This is the underlying object with id, value and extensions. The accessor "getEntryDate" gives direct access to the value + * @return {@link #periodicRelease} (The specific issue in which the cited article resides.) */ - public DateTimeType getEntryDateElement() { - if (this.entryDate == null) + public CitationCitedArtifactPublicationFormPeriodicReleaseComponent getPeriodicRelease() { + if (this.periodicRelease == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationPublicationInfoComponent.entryDate"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormComponent.periodicRelease"); else if (Configuration.doAutoCreate()) - this.entryDate = new DateTimeType(); // bb - return this.entryDate; + this.periodicRelease = new CitationCitedArtifactPublicationFormPeriodicReleaseComponent(); // cc + return this.periodicRelease; } - public boolean hasEntryDateElement() { - return this.entryDate != null && !this.entryDate.isEmpty(); - } - - public boolean hasEntryDate() { - return this.entryDate != null && !this.entryDate.isEmpty(); + public boolean hasPeriodicRelease() { + return this.periodicRelease != null && !this.periodicRelease.isEmpty(); } /** - * @param value {@link #entryDate} (The date the article was added to the database.). This is the underlying object with id, value and extensions. The accessor "getEntryDate" gives direct access to the value + * @param value {@link #periodicRelease} (The specific issue in which the cited article resides.) */ - public CitationPublicationInfoComponent setEntryDateElement(DateTimeType value) { - this.entryDate = value; + public CitationCitedArtifactPublicationFormComponent setPeriodicRelease(CitationCitedArtifactPublicationFormPeriodicReleaseComponent value) { + this.periodicRelease = value; return this; } /** - * @return The date the article was added to the database. + * @return {@link #articleDate} (The date the article was added to the database, or the date the article was released (which may differ from the journal issue publication date).). This is the underlying object with id, value and extensions. The accessor "getArticleDate" gives direct access to the value */ - public Date getEntryDate() { - return this.entryDate == null ? null : this.entryDate.getValue(); + public DateTimeType getArticleDateElement() { + if (this.articleDate == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormComponent.articleDate"); + else if (Configuration.doAutoCreate()) + this.articleDate = new DateTimeType(); // bb + return this.articleDate; + } + + public boolean hasArticleDateElement() { + return this.articleDate != null && !this.articleDate.isEmpty(); + } + + public boolean hasArticleDate() { + return this.articleDate != null && !this.articleDate.isEmpty(); } /** - * @param value The date the article was added to the database. + * @param value {@link #articleDate} (The date the article was added to the database, or the date the article was released (which may differ from the journal issue publication date).). This is the underlying object with id, value and extensions. The accessor "getArticleDate" gives direct access to the value */ - public CitationPublicationInfoComponent setEntryDate(Date value) { + public CitationCitedArtifactPublicationFormComponent setArticleDateElement(DateTimeType value) { + this.articleDate = value; + return this; + } + + /** + * @return The date the article was added to the database, or the date the article was released (which may differ from the journal issue publication date). + */ + public Date getArticleDate() { + return this.articleDate == null ? null : this.articleDate.getValue(); + } + + /** + * @param value The date the article was added to the database, or the date the article was released (which may differ from the journal issue publication date). + */ + public CitationCitedArtifactPublicationFormComponent setArticleDate(Date value) { if (value == null) - this.entryDate = null; + this.articleDate = null; else { - if (this.entryDate == null) - this.entryDate = new DateTimeType(); - this.entryDate.setValue(value); + if (this.articleDate == null) + this.articleDate = new DateTimeType(); + this.articleDate.setValue(value); } return this; } /** - * @return {@link #revisionDate} (The date the article was last revised or updated in the database.). This is the underlying object with id, value and extensions. The accessor "getRevisionDate" gives direct access to the value + * @return {@link #lastRevisionDate} (The date the article was last revised or updated in the database.). This is the underlying object with id, value and extensions. The accessor "getLastRevisionDate" gives direct access to the value */ - public DateTimeType getRevisionDateElement() { - if (this.revisionDate == null) + public DateTimeType getLastRevisionDateElement() { + if (this.lastRevisionDate == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationPublicationInfoComponent.revisionDate"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormComponent.lastRevisionDate"); else if (Configuration.doAutoCreate()) - this.revisionDate = new DateTimeType(); // bb - return this.revisionDate; + this.lastRevisionDate = new DateTimeType(); // bb + return this.lastRevisionDate; } - public boolean hasRevisionDateElement() { - return this.revisionDate != null && !this.revisionDate.isEmpty(); + public boolean hasLastRevisionDateElement() { + return this.lastRevisionDate != null && !this.lastRevisionDate.isEmpty(); } - public boolean hasRevisionDate() { - return this.revisionDate != null && !this.revisionDate.isEmpty(); + public boolean hasLastRevisionDate() { + return this.lastRevisionDate != null && !this.lastRevisionDate.isEmpty(); } /** - * @param value {@link #revisionDate} (The date the article was last revised or updated in the database.). This is the underlying object with id, value and extensions. The accessor "getRevisionDate" gives direct access to the value + * @param value {@link #lastRevisionDate} (The date the article was last revised or updated in the database.). This is the underlying object with id, value and extensions. The accessor "getLastRevisionDate" gives direct access to the value */ - public CitationPublicationInfoComponent setRevisionDateElement(DateTimeType value) { - this.revisionDate = value; + public CitationCitedArtifactPublicationFormComponent setLastRevisionDateElement(DateTimeType value) { + this.lastRevisionDate = value; return this; } /** * @return The date the article was last revised or updated in the database. */ - public Date getRevisionDate() { - return this.revisionDate == null ? null : this.revisionDate.getValue(); + public Date getLastRevisionDate() { + return this.lastRevisionDate == null ? null : this.lastRevisionDate.getValue(); } /** * @param value The date the article was last revised or updated in the database. */ - public CitationPublicationInfoComponent setRevisionDate(Date value) { + public CitationCitedArtifactPublicationFormComponent setLastRevisionDate(Date value) { if (value == null) - this.revisionDate = null; + this.lastRevisionDate = null; else { - if (this.revisionDate == null) - this.revisionDate = new DateTimeType(); - this.revisionDate.setValue(value); + if (this.lastRevisionDate == null) + this.lastRevisionDate = new DateTimeType(); + this.lastRevisionDate.setValue(value); } return this; } /** - * @return {@link #pageCount} (Actual or Approximate number of pages or screens.). This is the underlying object with id, value and extensions. The accessor "getPageCount" gives direct access to the value + * @return {@link #language} (Language in which this form of the article is published.) */ - public StringType getPageCountElement() { - if (this.pageCount == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationPublicationInfoComponent.pageCount"); - else if (Configuration.doAutoCreate()) - this.pageCount = new StringType(); // bb - return this.pageCount; - } - - public boolean hasPageCountElement() { - return this.pageCount != null && !this.pageCount.isEmpty(); - } - - public boolean hasPageCount() { - return this.pageCount != null && !this.pageCount.isEmpty(); - } - - /** - * @param value {@link #pageCount} (Actual or Approximate number of pages or screens.). This is the underlying object with id, value and extensions. The accessor "getPageCount" gives direct access to the value - */ - public CitationPublicationInfoComponent setPageCountElement(StringType value) { - this.pageCount = value; - return this; - } - - /** - * @return Actual or Approximate number of pages or screens. - */ - public String getPageCount() { - return this.pageCount == null ? null : this.pageCount.getValue(); - } - - /** - * @param value Actual or Approximate number of pages or screens. - */ - public CitationPublicationInfoComponent setPageCount(String value) { - if (Utilities.noString(value)) - this.pageCount = null; - else { - if (this.pageCount == null) - this.pageCount = new StringType(); - this.pageCount.setValue(value); - } - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("publishedIn", "", "The collection the cited article is published in.", 0, 1, publishedIn)); - children.add(new Property("entryDate", "dateTime", "The date the article was added to the database.", 0, 1, entryDate)); - children.add(new Property("revisionDate", "dateTime", "The date the article was last revised or updated in the database.", 0, 1, revisionDate)); - children.add(new Property("pageCount", "string", "Actual or Approximate number of pages or screens.", 0, 1, pageCount)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case -614144077: /*publishedIn*/ return new Property("publishedIn", "", "The collection the cited article is published in.", 0, 1, publishedIn); - case -479861952: /*entryDate*/ return new Property("entryDate", "dateTime", "The date the article was added to the database.", 0, 1, entryDate); - case -1250970071: /*revisionDate*/ return new Property("revisionDate", "dateTime", "The date the article was last revised or updated in the database.", 0, 1, revisionDate); - case 857882560: /*pageCount*/ return new Property("pageCount", "string", "Actual or Approximate number of pages or screens.", 0, 1, pageCount); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case -614144077: /*publishedIn*/ return this.publishedIn == null ? new Base[0] : new Base[] {this.publishedIn}; // CitationPublicationInfoPublishedInComponent - case -479861952: /*entryDate*/ return this.entryDate == null ? new Base[0] : new Base[] {this.entryDate}; // DateTimeType - case -1250970071: /*revisionDate*/ return this.revisionDate == null ? new Base[0] : new Base[] {this.revisionDate}; // DateTimeType - case 857882560: /*pageCount*/ return this.pageCount == null ? new Base[0] : new Base[] {this.pageCount}; // StringType - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case -614144077: // publishedIn - this.publishedIn = (CitationPublicationInfoPublishedInComponent) value; // CitationPublicationInfoPublishedInComponent - return value; - case -479861952: // entryDate - this.entryDate = TypeConvertor.castToDateTime(value); // DateTimeType - return value; - case -1250970071: // revisionDate - this.revisionDate = TypeConvertor.castToDateTime(value); // DateTimeType - return value; - case 857882560: // pageCount - this.pageCount = TypeConvertor.castToString(value); // StringType - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("publishedIn")) { - this.publishedIn = (CitationPublicationInfoPublishedInComponent) value; // CitationPublicationInfoPublishedInComponent - } else if (name.equals("entryDate")) { - this.entryDate = TypeConvertor.castToDateTime(value); // DateTimeType - } else if (name.equals("revisionDate")) { - this.revisionDate = TypeConvertor.castToDateTime(value); // DateTimeType - } else if (name.equals("pageCount")) { - this.pageCount = TypeConvertor.castToString(value); // StringType - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -614144077: return getPublishedIn(); - case -479861952: return getEntryDateElement(); - case -1250970071: return getRevisionDateElement(); - case 857882560: return getPageCountElement(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -614144077: /*publishedIn*/ return new String[] {}; - case -479861952: /*entryDate*/ return new String[] {"dateTime"}; - case -1250970071: /*revisionDate*/ return new String[] {"dateTime"}; - case 857882560: /*pageCount*/ return new String[] {"string"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("publishedIn")) { - this.publishedIn = new CitationPublicationInfoPublishedInComponent(); - return this.publishedIn; - } - else if (name.equals("entryDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.publicationInfo.entryDate"); - } - else if (name.equals("revisionDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.publicationInfo.revisionDate"); - } - else if (name.equals("pageCount")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.publicationInfo.pageCount"); - } - else - return super.addChild(name); - } - - public CitationPublicationInfoComponent copy() { - CitationPublicationInfoComponent dst = new CitationPublicationInfoComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationPublicationInfoComponent dst) { - super.copyValues(dst); - dst.publishedIn = publishedIn == null ? null : publishedIn.copy(); - dst.entryDate = entryDate == null ? null : entryDate.copy(); - dst.revisionDate = revisionDate == null ? null : revisionDate.copy(); - dst.pageCount = pageCount == null ? null : pageCount.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationPublicationInfoComponent)) - return false; - CitationPublicationInfoComponent o = (CitationPublicationInfoComponent) other_; - return compareDeep(publishedIn, o.publishedIn, true) && compareDeep(entryDate, o.entryDate, true) - && compareDeep(revisionDate, o.revisionDate, true) && compareDeep(pageCount, o.pageCount, true) - ; - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationPublicationInfoComponent)) - return false; - CitationPublicationInfoComponent o = (CitationPublicationInfoComponent) other_; - return compareValues(entryDate, o.entryDate, true) && compareValues(revisionDate, o.revisionDate, true) - && compareValues(pageCount, o.pageCount, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(publishedIn, entryDate, revisionDate - , pageCount); - } - - public String fhirType() { - return "Citation.publicationInfo"; - - } - - } - - @Block() - public static class CitationPublicationInfoPublishedInComponent extends BackboneElement implements IBaseBackboneElement { - /** - * Database or book. - */ - @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Database or book", formalDefinition="Database or book." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/published-in-type") - protected CodeableConcept type; - - /** - * Identifiers may include ISBN (International Standard Book Number) for books. - */ - @Child(name = "identifier", type = {Identifier.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Identifiers may include ISBN for books", formalDefinition="Identifiers may include ISBN (International Standard Book Number) for books." ) - protected List identifier; - - /** - * Name of the database or title of the book. - */ - @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Name of the database or title of the book", formalDefinition="Name of the database or title of the book." ) - protected StringType name; - - /** - * Name of the publisher. - */ - @Child(name = "publisher", type = {Organization.class}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Name of the publisher", formalDefinition="Name of the publisher." ) - protected Reference publisher; - - /** - * Geographic location of the publisher. - */ - @Child(name = "publisherLocation", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Geographic location of the publisher", formalDefinition="Geographic location of the publisher." ) - protected StringType publisherLocation; - - /** - * When the database was first available or when the book was published. - */ - @Child(name = "startDate", type = {DateType.class}, order=6, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="When the database was first available or when the book was published", formalDefinition="When the database was first available or when the book was published." ) - protected DateType startDate; - - private static final long serialVersionUID = -618673226L; - - /** - * Constructor - */ - public CitationPublicationInfoPublishedInComponent() { - super(); - } - - /** - * @return {@link #type} (Database or book.) - */ - public CodeableConcept getType() { - if (this.type == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationPublicationInfoPublishedInComponent.type"); - else if (Configuration.doAutoCreate()) - this.type = new CodeableConcept(); // cc - return this.type; - } - - public boolean hasType() { - return this.type != null && !this.type.isEmpty(); - } - - /** - * @param value {@link #type} (Database or book.) - */ - public CitationPublicationInfoPublishedInComponent setType(CodeableConcept value) { - this.type = value; - return this; - } - - /** - * @return {@link #identifier} (Identifiers may include ISBN (International Standard Book Number) for books.) - */ - public List getIdentifier() { - if (this.identifier == null) - this.identifier = new ArrayList(); - return this.identifier; + public List getLanguage() { + if (this.language == null) + this.language = new ArrayList(); + return this.language; } /** * @return Returns a reference to this for easy method chaining */ - public CitationPublicationInfoPublishedInComponent setIdentifier(List theIdentifier) { - this.identifier = theIdentifier; + public CitationCitedArtifactPublicationFormComponent setLanguage(List theLanguage) { + this.language = theLanguage; return this; } - public boolean hasIdentifier() { - if (this.identifier == null) + public boolean hasLanguage() { + if (this.language == null) return false; - for (Identifier item : this.identifier) + for (CodeableConcept item : this.language) if (!item.isEmpty()) return true; return false; } - public Identifier addIdentifier() { //3 - Identifier t = new Identifier(); - if (this.identifier == null) - this.identifier = new ArrayList(); - this.identifier.add(t); + public CodeableConcept addLanguage() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.language == null) + this.language = new ArrayList(); + this.language.add(t); return t; } - public CitationPublicationInfoPublishedInComponent addIdentifier(Identifier t) { //3 + public CitationCitedArtifactPublicationFormComponent addLanguage(CodeableConcept t) { //3 if (t == null) return this; - if (this.identifier == null) - this.identifier = new ArrayList(); - this.identifier.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} - */ - public Identifier getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - addIdentifier(); - } - return getIdentifier().get(0); - } - - /** - * @return {@link #name} (Name of the database or title of the book.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value - */ - public StringType getNameElement() { - if (this.name == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationPublicationInfoPublishedInComponent.name"); - else if (Configuration.doAutoCreate()) - this.name = new StringType(); // bb - return this.name; - } - - public boolean hasNameElement() { - return this.name != null && !this.name.isEmpty(); - } - - public boolean hasName() { - return this.name != null && !this.name.isEmpty(); - } - - /** - * @param value {@link #name} (Name of the database or title of the book.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value - */ - public CitationPublicationInfoPublishedInComponent setNameElement(StringType value) { - this.name = value; - return this; - } - - /** - * @return Name of the database or title of the book. - */ - public String getName() { - return this.name == null ? null : this.name.getValue(); - } - - /** - * @param value Name of the database or title of the book. - */ - public CitationPublicationInfoPublishedInComponent setName(String value) { - if (Utilities.noString(value)) - this.name = null; - else { - if (this.name == null) - this.name = new StringType(); - this.name.setValue(value); - } - return this; - } - - /** - * @return {@link #publisher} (Name of the publisher.) - */ - public Reference getPublisher() { - if (this.publisher == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationPublicationInfoPublishedInComponent.publisher"); - else if (Configuration.doAutoCreate()) - this.publisher = new Reference(); // cc - return this.publisher; - } - - public boolean hasPublisher() { - return this.publisher != null && !this.publisher.isEmpty(); - } - - /** - * @param value {@link #publisher} (Name of the publisher.) - */ - public CitationPublicationInfoPublishedInComponent setPublisher(Reference value) { - this.publisher = value; - return this; - } - - /** - * @return {@link #publisherLocation} (Geographic location of the publisher.). This is the underlying object with id, value and extensions. The accessor "getPublisherLocation" gives direct access to the value - */ - public StringType getPublisherLocationElement() { - if (this.publisherLocation == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationPublicationInfoPublishedInComponent.publisherLocation"); - else if (Configuration.doAutoCreate()) - this.publisherLocation = new StringType(); // bb - return this.publisherLocation; - } - - public boolean hasPublisherLocationElement() { - return this.publisherLocation != null && !this.publisherLocation.isEmpty(); - } - - public boolean hasPublisherLocation() { - return this.publisherLocation != null && !this.publisherLocation.isEmpty(); - } - - /** - * @param value {@link #publisherLocation} (Geographic location of the publisher.). This is the underlying object with id, value and extensions. The accessor "getPublisherLocation" gives direct access to the value - */ - public CitationPublicationInfoPublishedInComponent setPublisherLocationElement(StringType value) { - this.publisherLocation = value; - return this; - } - - /** - * @return Geographic location of the publisher. - */ - public String getPublisherLocation() { - return this.publisherLocation == null ? null : this.publisherLocation.getValue(); - } - - /** - * @param value Geographic location of the publisher. - */ - public CitationPublicationInfoPublishedInComponent setPublisherLocation(String value) { - if (Utilities.noString(value)) - this.publisherLocation = null; - else { - if (this.publisherLocation == null) - this.publisherLocation = new StringType(); - this.publisherLocation.setValue(value); - } - return this; - } - - /** - * @return {@link #startDate} (When the database was first available or when the book was published.). This is the underlying object with id, value and extensions. The accessor "getStartDate" gives direct access to the value - */ - public DateType getStartDateElement() { - if (this.startDate == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationPublicationInfoPublishedInComponent.startDate"); - else if (Configuration.doAutoCreate()) - this.startDate = new DateType(); // bb - return this.startDate; - } - - public boolean hasStartDateElement() { - return this.startDate != null && !this.startDate.isEmpty(); - } - - public boolean hasStartDate() { - return this.startDate != null && !this.startDate.isEmpty(); - } - - /** - * @param value {@link #startDate} (When the database was first available or when the book was published.). This is the underlying object with id, value and extensions. The accessor "getStartDate" gives direct access to the value - */ - public CitationPublicationInfoPublishedInComponent setStartDateElement(DateType value) { - this.startDate = value; - return this; - } - - /** - * @return When the database was first available or when the book was published. - */ - public Date getStartDate() { - return this.startDate == null ? null : this.startDate.getValue(); - } - - /** - * @param value When the database was first available or when the book was published. - */ - public CitationPublicationInfoPublishedInComponent setStartDate(Date value) { - if (value == null) - this.startDate = null; - else { - if (this.startDate == null) - this.startDate = new DateType(); - this.startDate.setValue(value); - } - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("type", "CodeableConcept", "Database or book.", 0, 1, type)); - children.add(new Property("identifier", "Identifier", "Identifiers may include ISBN (International Standard Book Number) for books.", 0, java.lang.Integer.MAX_VALUE, identifier)); - children.add(new Property("name", "string", "Name of the database or title of the book.", 0, 1, name)); - children.add(new Property("publisher", "Reference(Organization)", "Name of the publisher.", 0, 1, publisher)); - children.add(new Property("publisherLocation", "string", "Geographic location of the publisher.", 0, 1, publisherLocation)); - children.add(new Property("startDate", "date", "When the database was first available or when the book was published.", 0, 1, startDate)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Database or book.", 0, 1, type); - case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifiers may include ISBN (International Standard Book Number) for books.", 0, java.lang.Integer.MAX_VALUE, identifier); - case 3373707: /*name*/ return new Property("name", "string", "Name of the database or title of the book.", 0, 1, name); - case 1447404028: /*publisher*/ return new Property("publisher", "Reference(Organization)", "Name of the publisher.", 0, 1, publisher); - case -1281627695: /*publisherLocation*/ return new Property("publisherLocation", "string", "Geographic location of the publisher.", 0, 1, publisherLocation); - case -2129778896: /*startDate*/ return new Property("startDate", "date", "When the database was first available or when the book was published.", 0, 1, startDate); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept - case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier - case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType - case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // Reference - case -1281627695: /*publisherLocation*/ return this.publisherLocation == null ? new Base[0] : new Base[] {this.publisherLocation}; // StringType - case -2129778896: /*startDate*/ return this.startDate == null ? new Base[0] : new Base[] {this.startDate}; // DateType - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 3575610: // type - this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; - case -1618432855: // identifier - this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier - return value; - case 3373707: // name - this.name = TypeConvertor.castToString(value); // StringType - return value; - case 1447404028: // publisher - this.publisher = TypeConvertor.castToReference(value); // Reference - return value; - case -1281627695: // publisherLocation - this.publisherLocation = TypeConvertor.castToString(value); // StringType - return value; - case -2129778896: // startDate - this.startDate = TypeConvertor.castToDate(value); // DateType - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("type")) { - this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("identifier")) { - this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); - } else if (name.equals("name")) { - this.name = TypeConvertor.castToString(value); // StringType - } else if (name.equals("publisher")) { - this.publisher = TypeConvertor.castToReference(value); // Reference - } else if (name.equals("publisherLocation")) { - this.publisherLocation = TypeConvertor.castToString(value); // StringType - } else if (name.equals("startDate")) { - this.startDate = TypeConvertor.castToDate(value); // DateType - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 3575610: return getType(); - case -1618432855: return addIdentifier(); - case 3373707: return getNameElement(); - case 1447404028: return getPublisher(); - case -1281627695: return getPublisherLocationElement(); - case -2129778896: return getStartDateElement(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 3575610: /*type*/ return new String[] {"CodeableConcept"}; - case -1618432855: /*identifier*/ return new String[] {"Identifier"}; - case 3373707: /*name*/ return new String[] {"string"}; - case 1447404028: /*publisher*/ return new String[] {"Reference"}; - case -1281627695: /*publisherLocation*/ return new String[] {"string"}; - case -2129778896: /*startDate*/ return new String[] {"date"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("type")) { - this.type = new CodeableConcept(); - return this.type; - } - else if (name.equals("identifier")) { - return addIdentifier(); - } - else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.publicationInfo.publishedIn.name"); - } - else if (name.equals("publisher")) { - this.publisher = new Reference(); - return this.publisher; - } - else if (name.equals("publisherLocation")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.publicationInfo.publishedIn.publisherLocation"); - } - else if (name.equals("startDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.publicationInfo.publishedIn.startDate"); - } - else - return super.addChild(name); - } - - public CitationPublicationInfoPublishedInComponent copy() { - CitationPublicationInfoPublishedInComponent dst = new CitationPublicationInfoPublishedInComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationPublicationInfoPublishedInComponent dst) { - super.copyValues(dst); - dst.type = type == null ? null : type.copy(); - if (identifier != null) { - dst.identifier = new ArrayList(); - for (Identifier i : identifier) - dst.identifier.add(i.copy()); - }; - dst.name = name == null ? null : name.copy(); - dst.publisher = publisher == null ? null : publisher.copy(); - dst.publisherLocation = publisherLocation == null ? null : publisherLocation.copy(); - dst.startDate = startDate == null ? null : startDate.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationPublicationInfoPublishedInComponent)) - return false; - CitationPublicationInfoPublishedInComponent o = (CitationPublicationInfoPublishedInComponent) other_; - return compareDeep(type, o.type, true) && compareDeep(identifier, o.identifier, true) && compareDeep(name, o.name, true) - && compareDeep(publisher, o.publisher, true) && compareDeep(publisherLocation, o.publisherLocation, true) - && compareDeep(startDate, o.startDate, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationPublicationInfoPublishedInComponent)) - return false; - CitationPublicationInfoPublishedInComponent o = (CitationPublicationInfoPublishedInComponent) other_; - return compareValues(name, o.name, true) && compareValues(publisherLocation, o.publisherLocation, true) - && compareValues(startDate, o.startDate, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, identifier, name, publisher - , publisherLocation, startDate); - } - - public String fhirType() { - return "Citation.publicationInfo.publishedIn"; - - } - - } - - @Block() - public static class CitationAlternativeTitleComponent extends BackboneElement implements IBaseBackboneElement { - /** - * Used to express the reason and specific aspect for the variant title, such as language and specific language. - */ - @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used to express the reason and specific aspect for the variant title, such as language", formalDefinition="Used to express the reason and specific aspect for the variant title, such as language and specific language." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/alternative-title-type") - protected CodeableConcept type; - - /** - * Used to express the specific language. - */ - @Child(name = "language", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used to express the specific language", formalDefinition="Used to express the specific language." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages") - protected CodeableConcept language; - - /** - * Full variant title of the article. - */ - @Child(name = "title", type = {MarkdownType.class}, order=3, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="Full variant title of the article", formalDefinition="Full variant title of the article." ) - protected MarkdownType title; - - private static final long serialVersionUID = -552795869L; - - /** - * Constructor - */ - public CitationAlternativeTitleComponent() { - super(); - } - - /** - * Constructor - */ - public CitationAlternativeTitleComponent(String title) { - super(); - this.setTitle(title); - } - - /** - * @return {@link #type} (Used to express the reason and specific aspect for the variant title, such as language and specific language.) - */ - public CodeableConcept getType() { - if (this.type == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeTitleComponent.type"); - else if (Configuration.doAutoCreate()) - this.type = new CodeableConcept(); // cc - return this.type; - } - - public boolean hasType() { - return this.type != null && !this.type.isEmpty(); - } - - /** - * @param value {@link #type} (Used to express the reason and specific aspect for the variant title, such as language and specific language.) - */ - public CitationAlternativeTitleComponent setType(CodeableConcept value) { - this.type = value; - return this; - } - - /** - * @return {@link #language} (Used to express the specific language.) - */ - public CodeableConcept getLanguage() { if (this.language == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeTitleComponent.language"); - else if (Configuration.doAutoCreate()) - this.language = new CodeableConcept(); // cc - return this.language; - } - - public boolean hasLanguage() { - return this.language != null && !this.language.isEmpty(); - } - - /** - * @param value {@link #language} (Used to express the specific language.) - */ - public CitationAlternativeTitleComponent setLanguage(CodeableConcept value) { - this.language = value; + this.language = new ArrayList(); + this.language.add(t); return this; } /** - * @return {@link #title} (Full variant title of the article.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + * @return The first repetition of repeating field {@link #language}, creating it if it does not already exist {3} */ - public MarkdownType getTitleElement() { - if (this.title == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeTitleComponent.title"); - else if (Configuration.doAutoCreate()) - this.title = new MarkdownType(); // bb - return this.title; - } - - public boolean hasTitleElement() { - return this.title != null && !this.title.isEmpty(); - } - - public boolean hasTitle() { - return this.title != null && !this.title.isEmpty(); - } - - /** - * @param value {@link #title} (Full variant title of the article.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value - */ - public CitationAlternativeTitleComponent setTitleElement(MarkdownType value) { - this.title = value; - return this; - } - - /** - * @return Full variant title of the article. - */ - public String getTitle() { - return this.title == null ? null : this.title.getValue(); - } - - /** - * @param value Full variant title of the article. - */ - public CitationAlternativeTitleComponent setTitle(String value) { - if (this.title == null) - this.title = new MarkdownType(); - this.title.setValue(value); - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("type", "CodeableConcept", "Used to express the reason and specific aspect for the variant title, such as language and specific language.", 0, 1, type)); - children.add(new Property("language", "CodeableConcept", "Used to express the specific language.", 0, 1, language)); - children.add(new Property("title", "markdown", "Full variant title of the article.", 0, 1, title)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Used to express the reason and specific aspect for the variant title, such as language and specific language.", 0, 1, type); - case -1613589672: /*language*/ return new Property("language", "CodeableConcept", "Used to express the specific language.", 0, 1, language); - case 110371416: /*title*/ return new Property("title", "markdown", "Full variant title of the article.", 0, 1, title); - default: return super.getNamedProperty(_hash, _name, _checkValid); + public CodeableConcept getLanguageFirstRep() { + if (getLanguage().isEmpty()) { + addLanguage(); } - + return getLanguage().get(0); } - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept - case -1613589672: /*language*/ return this.language == null ? new Base[0] : new Base[] {this.language}; // CodeableConcept - case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // MarkdownType - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 3575610: // type - this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; - case -1613589672: // language - this.language = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; - case 110371416: // title - this.title = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("type")) { - this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("language")) { - this.language = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("title")) { - this.title = TypeConvertor.castToMarkdown(value); // MarkdownType - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 3575610: return getType(); - case -1613589672: return getLanguage(); - case 110371416: return getTitleElement(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 3575610: /*type*/ return new String[] {"CodeableConcept"}; - case -1613589672: /*language*/ return new String[] {"CodeableConcept"}; - case 110371416: /*title*/ return new String[] {"markdown"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("type")) { - this.type = new CodeableConcept(); - return this.type; - } - else if (name.equals("language")) { - this.language = new CodeableConcept(); - return this.language; - } - else if (name.equals("title")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeTitle.title"); - } - else - return super.addChild(name); - } - - public CitationAlternativeTitleComponent copy() { - CitationAlternativeTitleComponent dst = new CitationAlternativeTitleComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationAlternativeTitleComponent dst) { - super.copyValues(dst); - dst.type = type == null ? null : type.copy(); - dst.language = language == null ? null : language.copy(); - dst.title = title == null ? null : title.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationAlternativeTitleComponent)) - return false; - CitationAlternativeTitleComponent o = (CitationAlternativeTitleComponent) other_; - return compareDeep(type, o.type, true) && compareDeep(language, o.language, true) && compareDeep(title, o.title, true) - ; - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationAlternativeTitleComponent)) - return false; - CitationAlternativeTitleComponent o = (CitationAlternativeTitleComponent) other_; - return compareValues(title, o.title, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, language, title); - } - - public String fhirType() { - return "Citation.alternativeTitle"; - - } - - } - - @Block() - public static class CitationPaginationComponent extends BackboneElement implements IBaseBackboneElement { - /** - * Used for full display of pagination. - */ - @Child(name = "pageString", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used for full display of pagination", formalDefinition="Used for full display of pagination." ) - protected StringType pageString; - /** - * Used for isolated representation of first page. + * @return {@link #accessionNumber} (Entry number or identifier for inclusion in a database.). This is the underlying object with id, value and extensions. The accessor "getAccessionNumber" gives direct access to the value */ - @Child(name = "firstPage", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used for isolated representation of first page", formalDefinition="Used for isolated representation of first page." ) - protected StringType firstPage; + public StringType getAccessionNumberElement() { + if (this.accessionNumber == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormComponent.accessionNumber"); + else if (Configuration.doAutoCreate()) + this.accessionNumber = new StringType(); // bb + return this.accessionNumber; + } + + public boolean hasAccessionNumberElement() { + return this.accessionNumber != null && !this.accessionNumber.isEmpty(); + } + + public boolean hasAccessionNumber() { + return this.accessionNumber != null && !this.accessionNumber.isEmpty(); + } /** - * Used for isolated representation of last page. + * @param value {@link #accessionNumber} (Entry number or identifier for inclusion in a database.). This is the underlying object with id, value and extensions. The accessor "getAccessionNumber" gives direct access to the value */ - @Child(name = "lastPage", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used for isolated representation of last page", formalDefinition="Used for isolated representation of last page." ) - protected StringType lastPage; + public CitationCitedArtifactPublicationFormComponent setAccessionNumberElement(StringType value) { + this.accessionNumber = value; + return this; + } - private static final long serialVersionUID = -690699049L; + /** + * @return Entry number or identifier for inclusion in a database. + */ + public String getAccessionNumber() { + return this.accessionNumber == null ? null : this.accessionNumber.getValue(); + } - /** - * Constructor - */ - public CitationPaginationComponent() { - super(); - } + /** + * @param value Entry number or identifier for inclusion in a database. + */ + public CitationCitedArtifactPublicationFormComponent setAccessionNumber(String value) { + if (Utilities.noString(value)) + this.accessionNumber = null; + else { + if (this.accessionNumber == null) + this.accessionNumber = new StringType(); + this.accessionNumber.setValue(value); + } + return this; + } /** * @return {@link #pageString} (Used for full display of pagination.). This is the underlying object with id, value and extensions. The accessor "getPageString" gives direct access to the value @@ -2989,7 +4236,7 @@ public class Citation extends MetadataResource { public StringType getPageStringElement() { if (this.pageString == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationPaginationComponent.pageString"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormComponent.pageString"); else if (Configuration.doAutoCreate()) this.pageString = new StringType(); // bb return this.pageString; @@ -3006,7 +4253,7 @@ public class Citation extends MetadataResource { /** * @param value {@link #pageString} (Used for full display of pagination.). This is the underlying object with id, value and extensions. The accessor "getPageString" gives direct access to the value */ - public CitationPaginationComponent setPageStringElement(StringType value) { + public CitationCitedArtifactPublicationFormComponent setPageStringElement(StringType value) { this.pageString = value; return this; } @@ -3021,7 +4268,7 @@ public class Citation extends MetadataResource { /** * @param value Used for full display of pagination. */ - public CitationPaginationComponent setPageString(String value) { + public CitationCitedArtifactPublicationFormComponent setPageString(String value) { if (Utilities.noString(value)) this.pageString = null; else { @@ -3038,7 +4285,7 @@ public class Citation extends MetadataResource { public StringType getFirstPageElement() { if (this.firstPage == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationPaginationComponent.firstPage"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormComponent.firstPage"); else if (Configuration.doAutoCreate()) this.firstPage = new StringType(); // bb return this.firstPage; @@ -3055,7 +4302,7 @@ public class Citation extends MetadataResource { /** * @param value {@link #firstPage} (Used for isolated representation of first page.). This is the underlying object with id, value and extensions. The accessor "getFirstPage" gives direct access to the value */ - public CitationPaginationComponent setFirstPageElement(StringType value) { + public CitationCitedArtifactPublicationFormComponent setFirstPageElement(StringType value) { this.firstPage = value; return this; } @@ -3070,7 +4317,7 @@ public class Citation extends MetadataResource { /** * @param value Used for isolated representation of first page. */ - public CitationPaginationComponent setFirstPage(String value) { + public CitationCitedArtifactPublicationFormComponent setFirstPage(String value) { if (Utilities.noString(value)) this.firstPage = null; else { @@ -3087,7 +4334,7 @@ public class Citation extends MetadataResource { public StringType getLastPageElement() { if (this.lastPage == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationPaginationComponent.lastPage"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormComponent.lastPage"); else if (Configuration.doAutoCreate()) this.lastPage = new StringType(); // bb return this.lastPage; @@ -3104,7 +4351,7 @@ public class Citation extends MetadataResource { /** * @param value {@link #lastPage} (Used for isolated representation of last page.). This is the underlying object with id, value and extensions. The accessor "getLastPage" gives direct access to the value */ - public CitationPaginationComponent setLastPageElement(StringType value) { + public CitationCitedArtifactPublicationFormComponent setLastPageElement(StringType value) { this.lastPage = value; return this; } @@ -3119,7 +4366,7 @@ public class Citation extends MetadataResource { /** * @param value Used for isolated representation of last page. */ - public CitationPaginationComponent setLastPage(String value) { + public CitationCitedArtifactPublicationFormComponent setLastPage(String value) { if (Utilities.noString(value)) this.lastPage = null; else { @@ -3130,19 +4377,133 @@ public class Citation extends MetadataResource { return this; } + /** + * @return {@link #pageCount} (Actual or approximate number of pages or screens.). This is the underlying object with id, value and extensions. The accessor "getPageCount" gives direct access to the value + */ + public StringType getPageCountElement() { + if (this.pageCount == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormComponent.pageCount"); + else if (Configuration.doAutoCreate()) + this.pageCount = new StringType(); // bb + return this.pageCount; + } + + public boolean hasPageCountElement() { + return this.pageCount != null && !this.pageCount.isEmpty(); + } + + public boolean hasPageCount() { + return this.pageCount != null && !this.pageCount.isEmpty(); + } + + /** + * @param value {@link #pageCount} (Actual or approximate number of pages or screens.). This is the underlying object with id, value and extensions. The accessor "getPageCount" gives direct access to the value + */ + public CitationCitedArtifactPublicationFormComponent setPageCountElement(StringType value) { + this.pageCount = value; + return this; + } + + /** + * @return Actual or approximate number of pages or screens. + */ + public String getPageCount() { + return this.pageCount == null ? null : this.pageCount.getValue(); + } + + /** + * @param value Actual or approximate number of pages or screens. + */ + public CitationCitedArtifactPublicationFormComponent setPageCount(String value) { + if (Utilities.noString(value)) + this.pageCount = null; + else { + if (this.pageCount == null) + this.pageCount = new StringType(); + this.pageCount.setValue(value); + } + return this; + } + + /** + * @return {@link #copyright} (Copyright notice for the full article or artifact.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value + */ + public MarkdownType getCopyrightElement() { + if (this.copyright == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormComponent.copyright"); + else if (Configuration.doAutoCreate()) + this.copyright = new MarkdownType(); // bb + return this.copyright; + } + + public boolean hasCopyrightElement() { + return this.copyright != null && !this.copyright.isEmpty(); + } + + public boolean hasCopyright() { + return this.copyright != null && !this.copyright.isEmpty(); + } + + /** + * @param value {@link #copyright} (Copyright notice for the full article or artifact.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value + */ + public CitationCitedArtifactPublicationFormComponent setCopyrightElement(MarkdownType value) { + this.copyright = value; + return this; + } + + /** + * @return Copyright notice for the full article or artifact. + */ + public String getCopyright() { + return this.copyright == null ? null : this.copyright.getValue(); + } + + /** + * @param value Copyright notice for the full article or artifact. + */ + public CitationCitedArtifactPublicationFormComponent setCopyright(String value) { + if (value == null) + this.copyright = null; + else { + if (this.copyright == null) + this.copyright = new MarkdownType(); + this.copyright.setValue(value); + } + return this; + } + protected void listChildren(List children) { super.listChildren(children); + children.add(new Property("publishedIn", "", "The collection the cited article or artifact is published in.", 0, 1, publishedIn)); + children.add(new Property("periodicRelease", "", "The specific issue in which the cited article resides.", 0, 1, periodicRelease)); + children.add(new Property("articleDate", "dateTime", "The date the article was added to the database, or the date the article was released (which may differ from the journal issue publication date).", 0, 1, articleDate)); + children.add(new Property("lastRevisionDate", "dateTime", "The date the article was last revised or updated in the database.", 0, 1, lastRevisionDate)); + children.add(new Property("language", "CodeableConcept", "Language in which this form of the article is published.", 0, java.lang.Integer.MAX_VALUE, language)); + children.add(new Property("accessionNumber", "string", "Entry number or identifier for inclusion in a database.", 0, 1, accessionNumber)); children.add(new Property("pageString", "string", "Used for full display of pagination.", 0, 1, pageString)); children.add(new Property("firstPage", "string", "Used for isolated representation of first page.", 0, 1, firstPage)); children.add(new Property("lastPage", "string", "Used for isolated representation of last page.", 0, 1, lastPage)); + children.add(new Property("pageCount", "string", "Actual or approximate number of pages or screens.", 0, 1, pageCount)); + children.add(new Property("copyright", "markdown", "Copyright notice for the full article or artifact.", 0, 1, copyright)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { + case -614144077: /*publishedIn*/ return new Property("publishedIn", "", "The collection the cited article or artifact is published in.", 0, 1, publishedIn); + case 1726878956: /*periodicRelease*/ return new Property("periodicRelease", "", "The specific issue in which the cited article resides.", 0, 1, periodicRelease); + case 817743300: /*articleDate*/ return new Property("articleDate", "dateTime", "The date the article was added to the database, or the date the article was released (which may differ from the journal issue publication date).", 0, 1, articleDate); + case 2129161183: /*lastRevisionDate*/ return new Property("lastRevisionDate", "dateTime", "The date the article was last revised or updated in the database.", 0, 1, lastRevisionDate); + case -1613589672: /*language*/ return new Property("language", "CodeableConcept", "Language in which this form of the article is published.", 0, java.lang.Integer.MAX_VALUE, language); + case 1807963277: /*accessionNumber*/ return new Property("accessionNumber", "string", "Entry number or identifier for inclusion in a database.", 0, 1, accessionNumber); case 1287145344: /*pageString*/ return new Property("pageString", "string", "Used for full display of pagination.", 0, 1, pageString); case 132895071: /*firstPage*/ return new Property("firstPage", "string", "Used for isolated representation of first page.", 0, 1, firstPage); case -1459540411: /*lastPage*/ return new Property("lastPage", "string", "Used for isolated representation of last page.", 0, 1, lastPage); + case 857882560: /*pageCount*/ return new Property("pageCount", "string", "Actual or approximate number of pages or screens.", 0, 1, pageCount); + case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "Copyright notice for the full article or artifact.", 0, 1, copyright); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -3151,9 +4512,17 @@ public class Citation extends MetadataResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { + case -614144077: /*publishedIn*/ return this.publishedIn == null ? new Base[0] : new Base[] {this.publishedIn}; // CitationCitedArtifactPublicationFormPublishedInComponent + case 1726878956: /*periodicRelease*/ return this.periodicRelease == null ? new Base[0] : new Base[] {this.periodicRelease}; // CitationCitedArtifactPublicationFormPeriodicReleaseComponent + case 817743300: /*articleDate*/ return this.articleDate == null ? new Base[0] : new Base[] {this.articleDate}; // DateTimeType + case 2129161183: /*lastRevisionDate*/ return this.lastRevisionDate == null ? new Base[0] : new Base[] {this.lastRevisionDate}; // DateTimeType + case -1613589672: /*language*/ return this.language == null ? new Base[0] : this.language.toArray(new Base[this.language.size()]); // CodeableConcept + case 1807963277: /*accessionNumber*/ return this.accessionNumber == null ? new Base[0] : new Base[] {this.accessionNumber}; // StringType case 1287145344: /*pageString*/ return this.pageString == null ? new Base[0] : new Base[] {this.pageString}; // StringType case 132895071: /*firstPage*/ return this.firstPage == null ? new Base[0] : new Base[] {this.firstPage}; // StringType case -1459540411: /*lastPage*/ return this.lastPage == null ? new Base[0] : new Base[] {this.lastPage}; // StringType + case 857882560: /*pageCount*/ return this.pageCount == null ? new Base[0] : new Base[] {this.pageCount}; // StringType + case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType default: return super.getProperty(hash, name, checkValid); } @@ -3162,6 +4531,24 @@ public class Citation extends MetadataResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { + case -614144077: // publishedIn + this.publishedIn = (CitationCitedArtifactPublicationFormPublishedInComponent) value; // CitationCitedArtifactPublicationFormPublishedInComponent + return value; + case 1726878956: // periodicRelease + this.periodicRelease = (CitationCitedArtifactPublicationFormPeriodicReleaseComponent) value; // CitationCitedArtifactPublicationFormPeriodicReleaseComponent + return value; + case 817743300: // articleDate + this.articleDate = TypeConvertor.castToDateTime(value); // DateTimeType + return value; + case 2129161183: // lastRevisionDate + this.lastRevisionDate = TypeConvertor.castToDateTime(value); // DateTimeType + return value; + case -1613589672: // language + this.getLanguage().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + case 1807963277: // accessionNumber + this.accessionNumber = TypeConvertor.castToString(value); // StringType + return value; case 1287145344: // pageString this.pageString = TypeConvertor.castToString(value); // StringType return value; @@ -3171,6 +4558,12 @@ public class Citation extends MetadataResource { case -1459540411: // lastPage this.lastPage = TypeConvertor.castToString(value); // StringType return value; + case 857882560: // pageCount + this.pageCount = TypeConvertor.castToString(value); // StringType + return value; + case 1522889671: // copyright + this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; default: return super.setProperty(hash, name, value); } @@ -3178,12 +4571,28 @@ public class Citation extends MetadataResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("pageString")) { + if (name.equals("publishedIn")) { + this.publishedIn = (CitationCitedArtifactPublicationFormPublishedInComponent) value; // CitationCitedArtifactPublicationFormPublishedInComponent + } else if (name.equals("periodicRelease")) { + this.periodicRelease = (CitationCitedArtifactPublicationFormPeriodicReleaseComponent) value; // CitationCitedArtifactPublicationFormPeriodicReleaseComponent + } else if (name.equals("articleDate")) { + this.articleDate = TypeConvertor.castToDateTime(value); // DateTimeType + } else if (name.equals("lastRevisionDate")) { + this.lastRevisionDate = TypeConvertor.castToDateTime(value); // DateTimeType + } else if (name.equals("language")) { + this.getLanguage().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("accessionNumber")) { + this.accessionNumber = TypeConvertor.castToString(value); // StringType + } else if (name.equals("pageString")) { this.pageString = TypeConvertor.castToString(value); // StringType } else if (name.equals("firstPage")) { this.firstPage = TypeConvertor.castToString(value); // StringType } else if (name.equals("lastPage")) { this.lastPage = TypeConvertor.castToString(value); // StringType + } else if (name.equals("pageCount")) { + this.pageCount = TypeConvertor.castToString(value); // StringType + } else if (name.equals("copyright")) { + this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType } else return super.setProperty(name, value); return value; @@ -3192,9 +4601,17 @@ public class Citation extends MetadataResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { + case -614144077: return getPublishedIn(); + case 1726878956: return getPeriodicRelease(); + case 817743300: return getArticleDateElement(); + case 2129161183: return getLastRevisionDateElement(); + case -1613589672: return addLanguage(); + case 1807963277: return getAccessionNumberElement(); case 1287145344: return getPageStringElement(); case 132895071: return getFirstPageElement(); case -1459540411: return getLastPageElement(); + case 857882560: return getPageCountElement(); + case 1522889671: return getCopyrightElement(); default: return super.makeProperty(hash, name); } @@ -3203,9 +4620,17 @@ public class Citation extends MetadataResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { + case -614144077: /*publishedIn*/ return new String[] {}; + case 1726878956: /*periodicRelease*/ return new String[] {}; + case 817743300: /*articleDate*/ return new String[] {"dateTime"}; + case 2129161183: /*lastRevisionDate*/ return new String[] {"dateTime"}; + case -1613589672: /*language*/ return new String[] {"CodeableConcept"}; + case 1807963277: /*accessionNumber*/ return new String[] {"string"}; case 1287145344: /*pageString*/ return new String[] {"string"}; case 132895071: /*firstPage*/ return new String[] {"string"}; case -1459540411: /*lastPage*/ return new String[] {"string"}; + case 857882560: /*pageCount*/ return new String[] {"string"}; + case 1522889671: /*copyright*/ return new String[] {"markdown"}; default: return super.getTypesForProperty(hash, name); } @@ -3213,1188 +4638,183 @@ public class Citation extends MetadataResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("pageString")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.pagination.pageString"); + if (name.equals("publishedIn")) { + this.publishedIn = new CitationCitedArtifactPublicationFormPublishedInComponent(); + return this.publishedIn; + } + else if (name.equals("periodicRelease")) { + this.periodicRelease = new CitationCitedArtifactPublicationFormPeriodicReleaseComponent(); + return this.periodicRelease; + } + else if (name.equals("articleDate")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.articleDate"); + } + else if (name.equals("lastRevisionDate")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.lastRevisionDate"); + } + else if (name.equals("language")) { + return addLanguage(); + } + else if (name.equals("accessionNumber")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.accessionNumber"); + } + else if (name.equals("pageString")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.pageString"); } else if (name.equals("firstPage")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.pagination.firstPage"); + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.firstPage"); } else if (name.equals("lastPage")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.pagination.lastPage"); + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.lastPage"); + } + else if (name.equals("pageCount")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.pageCount"); + } + else if (name.equals("copyright")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.copyright"); } else return super.addChild(name); } - public CitationPaginationComponent copy() { - CitationPaginationComponent dst = new CitationPaginationComponent(); + public CitationCitedArtifactPublicationFormComponent copy() { + CitationCitedArtifactPublicationFormComponent dst = new CitationCitedArtifactPublicationFormComponent(); copyValues(dst); return dst; } - public void copyValues(CitationPaginationComponent dst) { + public void copyValues(CitationCitedArtifactPublicationFormComponent dst) { super.copyValues(dst); + dst.publishedIn = publishedIn == null ? null : publishedIn.copy(); + dst.periodicRelease = periodicRelease == null ? null : periodicRelease.copy(); + dst.articleDate = articleDate == null ? null : articleDate.copy(); + dst.lastRevisionDate = lastRevisionDate == null ? null : lastRevisionDate.copy(); + if (language != null) { + dst.language = new ArrayList(); + for (CodeableConcept i : language) + dst.language.add(i.copy()); + }; + dst.accessionNumber = accessionNumber == null ? null : accessionNumber.copy(); dst.pageString = pageString == null ? null : pageString.copy(); dst.firstPage = firstPage == null ? null : firstPage.copy(); dst.lastPage = lastPage == null ? null : lastPage.copy(); + dst.pageCount = pageCount == null ? null : pageCount.copy(); + dst.copyright = copyright == null ? null : copyright.copy(); } @Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof CitationPaginationComponent)) + if (!(other_ instanceof CitationCitedArtifactPublicationFormComponent)) return false; - CitationPaginationComponent o = (CitationPaginationComponent) other_; - return compareDeep(pageString, o.pageString, true) && compareDeep(firstPage, o.firstPage, true) - && compareDeep(lastPage, o.lastPage, true); + CitationCitedArtifactPublicationFormComponent o = (CitationCitedArtifactPublicationFormComponent) other_; + return compareDeep(publishedIn, o.publishedIn, true) && compareDeep(periodicRelease, o.periodicRelease, true) + && compareDeep(articleDate, o.articleDate, true) && compareDeep(lastRevisionDate, o.lastRevisionDate, true) + && compareDeep(language, o.language, true) && compareDeep(accessionNumber, o.accessionNumber, true) + && compareDeep(pageString, o.pageString, true) && compareDeep(firstPage, o.firstPage, true) && compareDeep(lastPage, o.lastPage, true) + && compareDeep(pageCount, o.pageCount, true) && compareDeep(copyright, o.copyright, true); } @Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof CitationPaginationComponent)) + if (!(other_ instanceof CitationCitedArtifactPublicationFormComponent)) return false; - CitationPaginationComponent o = (CitationPaginationComponent) other_; - return compareValues(pageString, o.pageString, true) && compareValues(firstPage, o.firstPage, true) - && compareValues(lastPage, o.lastPage, true); + CitationCitedArtifactPublicationFormComponent o = (CitationCitedArtifactPublicationFormComponent) other_; + return compareValues(articleDate, o.articleDate, true) && compareValues(lastRevisionDate, o.lastRevisionDate, true) + && compareValues(accessionNumber, o.accessionNumber, true) && compareValues(pageString, o.pageString, true) + && compareValues(firstPage, o.firstPage, true) && compareValues(lastPage, o.lastPage, true) && compareValues(pageCount, o.pageCount, true) + && compareValues(copyright, o.copyright, true); } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(pageString, firstPage, lastPage - ); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(publishedIn, periodicRelease + , articleDate, lastRevisionDate, language, accessionNumber, pageString, firstPage + , lastPage, pageCount, copyright); } public String fhirType() { - return "Citation.pagination"; + return "Citation.citedArtifact.publicationForm"; } } @Block() - public static class CitationArticleUrlComponent extends BackboneElement implements IBaseBackboneElement { + public static class CitationCitedArtifactPublicationFormPublishedInComponent extends BackboneElement implements IBaseBackboneElement { /** - * Code the reason for different URLs, eg abstract and full-text. + * Kind of container (e.g. Periodical, database, or book). */ @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Code the reason for different URLs, eg abstract and full-text", formalDefinition="Code the reason for different URLs, eg abstract and full-text." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/article-url-type") + @Description(shortDefinition="Kind of container (e.g. Periodical, database, or book)", formalDefinition="Kind of container (e.g. Periodical, database, or book)." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/published-in-type") protected CodeableConcept type; /** - * The specific URL. + * Journal identifiers include ISSN, ISO Abbreviation and NLMuniqueID; Book identifiers include ISBN. */ - @Child(name = "url", type = {UriType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The specific URL", formalDefinition="The specific URL." ) - protected UriType url; - - private static final long serialVersionUID = 397204034L; - - /** - * Constructor - */ - public CitationArticleUrlComponent() { - super(); - } - - /** - * @return {@link #type} (Code the reason for different URLs, eg abstract and full-text.) - */ - public CodeableConcept getType() { - if (this.type == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationArticleUrlComponent.type"); - else if (Configuration.doAutoCreate()) - this.type = new CodeableConcept(); // cc - return this.type; - } - - public boolean hasType() { - return this.type != null && !this.type.isEmpty(); - } - - /** - * @param value {@link #type} (Code the reason for different URLs, eg abstract and full-text.) - */ - public CitationArticleUrlComponent setType(CodeableConcept value) { - this.type = value; - return this; - } - - /** - * @return {@link #url} (The specific URL.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value - */ - public UriType getUrlElement() { - if (this.url == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationArticleUrlComponent.url"); - else if (Configuration.doAutoCreate()) - this.url = new UriType(); // bb - return this.url; - } - - public boolean hasUrlElement() { - return this.url != null && !this.url.isEmpty(); - } - - public boolean hasUrl() { - return this.url != null && !this.url.isEmpty(); - } - - /** - * @param value {@link #url} (The specific URL.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value - */ - public CitationArticleUrlComponent setUrlElement(UriType value) { - this.url = value; - return this; - } - - /** - * @return The specific URL. - */ - public String getUrl() { - return this.url == null ? null : this.url.getValue(); - } - - /** - * @param value The specific URL. - */ - public CitationArticleUrlComponent setUrl(String value) { - if (Utilities.noString(value)) - this.url = null; - else { - if (this.url == null) - this.url = new UriType(); - this.url.setValue(value); - } - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("type", "CodeableConcept", "Code the reason for different URLs, eg abstract and full-text.", 0, 1, type)); - children.add(new Property("url", "uri", "The specific URL.", 0, 1, url)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Code the reason for different URLs, eg abstract and full-text.", 0, 1, type); - case 116079: /*url*/ return new Property("url", "uri", "The specific URL.", 0, 1, url); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept - case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 3575610: // type - this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; - case 116079: // url - this.url = TypeConvertor.castToUri(value); // UriType - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("type")) { - this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("url")) { - this.url = TypeConvertor.castToUri(value); // UriType - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 3575610: return getType(); - case 116079: return getUrlElement(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 3575610: /*type*/ return new String[] {"CodeableConcept"}; - case 116079: /*url*/ return new String[] {"uri"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("type")) { - this.type = new CodeableConcept(); - return this.type; - } - else if (name.equals("url")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.articleUrl.url"); - } - else - return super.addChild(name); - } - - public CitationArticleUrlComponent copy() { - CitationArticleUrlComponent dst = new CitationArticleUrlComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationArticleUrlComponent dst) { - super.copyValues(dst); - dst.type = type == null ? null : type.copy(); - dst.url = url == null ? null : url.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationArticleUrlComponent)) - return false; - CitationArticleUrlComponent o = (CitationArticleUrlComponent) other_; - return compareDeep(type, o.type, true) && compareDeep(url, o.url, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationArticleUrlComponent)) - return false; - CitationArticleUrlComponent o = (CitationArticleUrlComponent) other_; - return compareValues(url, o.url, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, url); - } - - public String fhirType() { - return "Citation.articleUrl"; - - } - - } - - @Block() - public static class CitationAlternativeAbstractComponent extends BackboneElement implements IBaseBackboneElement { - /** - * Used to express the reason for the variant abstract, such as language. - */ - @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used to express the reason for the variant abstract, such as language", formalDefinition="Used to express the reason for the variant abstract, such as language." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/alternative-title-type") - protected CodeableConcept type; - - /** - * Used to express the specific language. - */ - @Child(name = "language", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used to express the specific language", formalDefinition="Used to express the specific language." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages") - protected CodeableConcept language; - - /** - * Full variant abstract of the article. - */ - @Child(name = "abstract", type = {MarkdownType.class}, order=3, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="Full variant abstract of the article", formalDefinition="Full variant abstract of the article." ) - protected MarkdownType abstract_; - - /** - * Copyright information for the abstract text. - */ - @Child(name = "abstractCopyright", type = {MarkdownType.class}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Variant abstract copyright", formalDefinition="Copyright information for the abstract text." ) - protected MarkdownType abstractCopyright; - - private static final long serialVersionUID = 1805874682L; - - /** - * Constructor - */ - public CitationAlternativeAbstractComponent() { - super(); - } - - /** - * Constructor - */ - public CitationAlternativeAbstractComponent(String abstract_) { - super(); - this.setAbstract(abstract_); - } - - /** - * @return {@link #type} (Used to express the reason for the variant abstract, such as language.) - */ - public CodeableConcept getType() { - if (this.type == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeAbstractComponent.type"); - else if (Configuration.doAutoCreate()) - this.type = new CodeableConcept(); // cc - return this.type; - } - - public boolean hasType() { - return this.type != null && !this.type.isEmpty(); - } - - /** - * @param value {@link #type} (Used to express the reason for the variant abstract, such as language.) - */ - public CitationAlternativeAbstractComponent setType(CodeableConcept value) { - this.type = value; - return this; - } - - /** - * @return {@link #language} (Used to express the specific language.) - */ - public CodeableConcept getLanguage() { - if (this.language == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeAbstractComponent.language"); - else if (Configuration.doAutoCreate()) - this.language = new CodeableConcept(); // cc - return this.language; - } - - public boolean hasLanguage() { - return this.language != null && !this.language.isEmpty(); - } - - /** - * @param value {@link #language} (Used to express the specific language.) - */ - public CitationAlternativeAbstractComponent setLanguage(CodeableConcept value) { - this.language = value; - return this; - } - - /** - * @return {@link #abstract_} (Full variant abstract of the article.). This is the underlying object with id, value and extensions. The accessor "getAbstract" gives direct access to the value - */ - public MarkdownType getAbstractElement() { - if (this.abstract_ == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeAbstractComponent.abstract_"); - else if (Configuration.doAutoCreate()) - this.abstract_ = new MarkdownType(); // bb - return this.abstract_; - } - - public boolean hasAbstractElement() { - return this.abstract_ != null && !this.abstract_.isEmpty(); - } - - public boolean hasAbstract() { - return this.abstract_ != null && !this.abstract_.isEmpty(); - } - - /** - * @param value {@link #abstract_} (Full variant abstract of the article.). This is the underlying object with id, value and extensions. The accessor "getAbstract" gives direct access to the value - */ - public CitationAlternativeAbstractComponent setAbstractElement(MarkdownType value) { - this.abstract_ = value; - return this; - } - - /** - * @return Full variant abstract of the article. - */ - public String getAbstract() { - return this.abstract_ == null ? null : this.abstract_.getValue(); - } - - /** - * @param value Full variant abstract of the article. - */ - public CitationAlternativeAbstractComponent setAbstract(String value) { - if (this.abstract_ == null) - this.abstract_ = new MarkdownType(); - this.abstract_.setValue(value); - return this; - } - - /** - * @return {@link #abstractCopyright} (Copyright information for the abstract text.). This is the underlying object with id, value and extensions. The accessor "getAbstractCopyright" gives direct access to the value - */ - public MarkdownType getAbstractCopyrightElement() { - if (this.abstractCopyright == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeAbstractComponent.abstractCopyright"); - else if (Configuration.doAutoCreate()) - this.abstractCopyright = new MarkdownType(); // bb - return this.abstractCopyright; - } - - public boolean hasAbstractCopyrightElement() { - return this.abstractCopyright != null && !this.abstractCopyright.isEmpty(); - } - - public boolean hasAbstractCopyright() { - return this.abstractCopyright != null && !this.abstractCopyright.isEmpty(); - } - - /** - * @param value {@link #abstractCopyright} (Copyright information for the abstract text.). This is the underlying object with id, value and extensions. The accessor "getAbstractCopyright" gives direct access to the value - */ - public CitationAlternativeAbstractComponent setAbstractCopyrightElement(MarkdownType value) { - this.abstractCopyright = value; - return this; - } - - /** - * @return Copyright information for the abstract text. - */ - public String getAbstractCopyright() { - return this.abstractCopyright == null ? null : this.abstractCopyright.getValue(); - } - - /** - * @param value Copyright information for the abstract text. - */ - public CitationAlternativeAbstractComponent setAbstractCopyright(String value) { - if (value == null) - this.abstractCopyright = null; - else { - if (this.abstractCopyright == null) - this.abstractCopyright = new MarkdownType(); - this.abstractCopyright.setValue(value); - } - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("type", "CodeableConcept", "Used to express the reason for the variant abstract, such as language.", 0, 1, type)); - children.add(new Property("language", "CodeableConcept", "Used to express the specific language.", 0, 1, language)); - children.add(new Property("abstract", "markdown", "Full variant abstract of the article.", 0, 1, abstract_)); - children.add(new Property("abstractCopyright", "markdown", "Copyright information for the abstract text.", 0, 1, abstractCopyright)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Used to express the reason for the variant abstract, such as language.", 0, 1, type); - case -1613589672: /*language*/ return new Property("language", "CodeableConcept", "Used to express the specific language.", 0, 1, language); - case 1732898850: /*abstract*/ return new Property("abstract", "markdown", "Full variant abstract of the article.", 0, 1, abstract_); - case -656627259: /*abstractCopyright*/ return new Property("abstractCopyright", "markdown", "Copyright information for the abstract text.", 0, 1, abstractCopyright); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept - case -1613589672: /*language*/ return this.language == null ? new Base[0] : new Base[] {this.language}; // CodeableConcept - case 1732898850: /*abstract*/ return this.abstract_ == null ? new Base[0] : new Base[] {this.abstract_}; // MarkdownType - case -656627259: /*abstractCopyright*/ return this.abstractCopyright == null ? new Base[0] : new Base[] {this.abstractCopyright}; // MarkdownType - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 3575610: // type - this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; - case -1613589672: // language - this.language = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; - case 1732898850: // abstract - this.abstract_ = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - case -656627259: // abstractCopyright - this.abstractCopyright = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("type")) { - this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("language")) { - this.language = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("abstract")) { - this.abstract_ = TypeConvertor.castToMarkdown(value); // MarkdownType - } else if (name.equals("abstractCopyright")) { - this.abstractCopyright = TypeConvertor.castToMarkdown(value); // MarkdownType - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 3575610: return getType(); - case -1613589672: return getLanguage(); - case 1732898850: return getAbstractElement(); - case -656627259: return getAbstractCopyrightElement(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 3575610: /*type*/ return new String[] {"CodeableConcept"}; - case -1613589672: /*language*/ return new String[] {"CodeableConcept"}; - case 1732898850: /*abstract*/ return new String[] {"markdown"}; - case -656627259: /*abstractCopyright*/ return new String[] {"markdown"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("type")) { - this.type = new CodeableConcept(); - return this.type; - } - else if (name.equals("language")) { - this.language = new CodeableConcept(); - return this.language; - } - else if (name.equals("abstract")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeAbstract.abstract"); - } - else if (name.equals("abstractCopyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeAbstract.abstractCopyright"); - } - else - return super.addChild(name); - } - - public CitationAlternativeAbstractComponent copy() { - CitationAlternativeAbstractComponent dst = new CitationAlternativeAbstractComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationAlternativeAbstractComponent dst) { - super.copyValues(dst); - dst.type = type == null ? null : type.copy(); - dst.language = language == null ? null : language.copy(); - dst.abstract_ = abstract_ == null ? null : abstract_.copy(); - dst.abstractCopyright = abstractCopyright == null ? null : abstractCopyright.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationAlternativeAbstractComponent)) - return false; - CitationAlternativeAbstractComponent o = (CitationAlternativeAbstractComponent) other_; - return compareDeep(type, o.type, true) && compareDeep(language, o.language, true) && compareDeep(abstract_, o.abstract_, true) - && compareDeep(abstractCopyright, o.abstractCopyright, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationAlternativeAbstractComponent)) - return false; - CitationAlternativeAbstractComponent o = (CitationAlternativeAbstractComponent) other_; - return compareValues(abstract_, o.abstract_, true) && compareValues(abstractCopyright, o.abstractCopyright, true) - ; - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, language, abstract_ - , abstractCopyright); - } - - public String fhirType() { - return "Citation.alternativeAbstract"; - - } - - } - - @Block() - public static class CitationContributorshipComponent extends BackboneElement implements IBaseBackboneElement { - /** - * Indicates if the list includes all authors and/or contributors. - */ - @Child(name = "complete", type = {BooleanType.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Indicates if the list includes all authors and/or contributors", formalDefinition="Indicates if the list includes all authors and/or contributors." ) - protected BooleanType complete; - - /** - * An individual entity named in the author list or contributor list. - */ - @Child(name = "entry", type = {}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="An individual entity named in the list", formalDefinition="An individual entity named in the author list or contributor list." ) - protected List entry; - - /** - * Used to record a display of the author/contributor list without separate coding for each list member. - */ - @Child(name = "summary", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Used to record a display of the author/contributor list without separate coding for each list member", formalDefinition="Used to record a display of the author/contributor list without separate coding for each list member." ) - protected List summary; - - private static final long serialVersionUID = -1399349675L; - - /** - * Constructor - */ - public CitationContributorshipComponent() { - super(); - } - - /** - * @return {@link #complete} (Indicates if the list includes all authors and/or contributors.). This is the underlying object with id, value and extensions. The accessor "getComplete" gives direct access to the value - */ - public BooleanType getCompleteElement() { - if (this.complete == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationContributorshipComponent.complete"); - else if (Configuration.doAutoCreate()) - this.complete = new BooleanType(); // bb - return this.complete; - } - - public boolean hasCompleteElement() { - return this.complete != null && !this.complete.isEmpty(); - } - - public boolean hasComplete() { - return this.complete != null && !this.complete.isEmpty(); - } - - /** - * @param value {@link #complete} (Indicates if the list includes all authors and/or contributors.). This is the underlying object with id, value and extensions. The accessor "getComplete" gives direct access to the value - */ - public CitationContributorshipComponent setCompleteElement(BooleanType value) { - this.complete = value; - return this; - } - - /** - * @return Indicates if the list includes all authors and/or contributors. - */ - public boolean getComplete() { - return this.complete == null || this.complete.isEmpty() ? false : this.complete.getValue(); - } - - /** - * @param value Indicates if the list includes all authors and/or contributors. - */ - public CitationContributorshipComponent setComplete(boolean value) { - if (this.complete == null) - this.complete = new BooleanType(); - this.complete.setValue(value); - return this; - } - - /** - * @return {@link #entry} (An individual entity named in the author list or contributor list.) - */ - public List getEntry() { - if (this.entry == null) - this.entry = new ArrayList(); - return this.entry; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public CitationContributorshipComponent setEntry(List theEntry) { - this.entry = theEntry; - return this; - } - - public boolean hasEntry() { - if (this.entry == null) - return false; - for (CitationContributorshipEntryComponent item : this.entry) - if (!item.isEmpty()) - return true; - return false; - } - - public CitationContributorshipEntryComponent addEntry() { //3 - CitationContributorshipEntryComponent t = new CitationContributorshipEntryComponent(); - if (this.entry == null) - this.entry = new ArrayList(); - this.entry.add(t); - return t; - } - - public CitationContributorshipComponent addEntry(CitationContributorshipEntryComponent t) { //3 - if (t == null) - return this; - if (this.entry == null) - this.entry = new ArrayList(); - this.entry.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #entry}, creating it if it does not already exist {3} - */ - public CitationContributorshipEntryComponent getEntryFirstRep() { - if (getEntry().isEmpty()) { - addEntry(); - } - return getEntry().get(0); - } - - /** - * @return {@link #summary} (Used to record a display of the author/contributor list without separate coding for each list member.) - */ - public List getSummary() { - if (this.summary == null) - this.summary = new ArrayList(); - return this.summary; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public CitationContributorshipComponent setSummary(List theSummary) { - this.summary = theSummary; - return this; - } - - public boolean hasSummary() { - if (this.summary == null) - return false; - for (CitationContributorshipSummaryComponent item : this.summary) - if (!item.isEmpty()) - return true; - return false; - } - - public CitationContributorshipSummaryComponent addSummary() { //3 - CitationContributorshipSummaryComponent t = new CitationContributorshipSummaryComponent(); - if (this.summary == null) - this.summary = new ArrayList(); - this.summary.add(t); - return t; - } - - public CitationContributorshipComponent addSummary(CitationContributorshipSummaryComponent t) { //3 - if (t == null) - return this; - if (this.summary == null) - this.summary = new ArrayList(); - this.summary.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #summary}, creating it if it does not already exist {3} - */ - public CitationContributorshipSummaryComponent getSummaryFirstRep() { - if (getSummary().isEmpty()) { - addSummary(); - } - return getSummary().get(0); - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("complete", "boolean", "Indicates if the list includes all authors and/or contributors.", 0, 1, complete)); - children.add(new Property("entry", "", "An individual entity named in the author list or contributor list.", 0, java.lang.Integer.MAX_VALUE, entry)); - children.add(new Property("summary", "", "Used to record a display of the author/contributor list without separate coding for each list member.", 0, java.lang.Integer.MAX_VALUE, summary)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case -599445191: /*complete*/ return new Property("complete", "boolean", "Indicates if the list includes all authors and/or contributors.", 0, 1, complete); - case 96667762: /*entry*/ return new Property("entry", "", "An individual entity named in the author list or contributor list.", 0, java.lang.Integer.MAX_VALUE, entry); - case -1857640538: /*summary*/ return new Property("summary", "", "Used to record a display of the author/contributor list without separate coding for each list member.", 0, java.lang.Integer.MAX_VALUE, summary); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case -599445191: /*complete*/ return this.complete == null ? new Base[0] : new Base[] {this.complete}; // BooleanType - case 96667762: /*entry*/ return this.entry == null ? new Base[0] : this.entry.toArray(new Base[this.entry.size()]); // CitationContributorshipEntryComponent - case -1857640538: /*summary*/ return this.summary == null ? new Base[0] : this.summary.toArray(new Base[this.summary.size()]); // CitationContributorshipSummaryComponent - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case -599445191: // complete - this.complete = TypeConvertor.castToBoolean(value); // BooleanType - return value; - case 96667762: // entry - this.getEntry().add((CitationContributorshipEntryComponent) value); // CitationContributorshipEntryComponent - return value; - case -1857640538: // summary - this.getSummary().add((CitationContributorshipSummaryComponent) value); // CitationContributorshipSummaryComponent - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("complete")) { - this.complete = TypeConvertor.castToBoolean(value); // BooleanType - } else if (name.equals("entry")) { - this.getEntry().add((CitationContributorshipEntryComponent) value); - } else if (name.equals("summary")) { - this.getSummary().add((CitationContributorshipSummaryComponent) value); - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -599445191: return getCompleteElement(); - case 96667762: return addEntry(); - case -1857640538: return addSummary(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -599445191: /*complete*/ return new String[] {"boolean"}; - case 96667762: /*entry*/ return new String[] {}; - case -1857640538: /*summary*/ return new String[] {}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("complete")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorship.complete"); - } - else if (name.equals("entry")) { - return addEntry(); - } - else if (name.equals("summary")) { - return addSummary(); - } - else - return super.addChild(name); - } - - public CitationContributorshipComponent copy() { - CitationContributorshipComponent dst = new CitationContributorshipComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationContributorshipComponent dst) { - super.copyValues(dst); - dst.complete = complete == null ? null : complete.copy(); - if (entry != null) { - dst.entry = new ArrayList(); - for (CitationContributorshipEntryComponent i : entry) - dst.entry.add(i.copy()); - }; - if (summary != null) { - dst.summary = new ArrayList(); - for (CitationContributorshipSummaryComponent i : summary) - dst.summary.add(i.copy()); - }; - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationContributorshipComponent)) - return false; - CitationContributorshipComponent o = (CitationContributorshipComponent) other_; - return compareDeep(complete, o.complete, true) && compareDeep(entry, o.entry, true) && compareDeep(summary, o.summary, true) - ; - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationContributorshipComponent)) - return false; - CitationContributorshipComponent o = (CitationContributorshipComponent) other_; - return compareValues(complete, o.complete, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(complete, entry, summary - ); - } - - public String fhirType() { - return "Citation.contributorship"; - - } - - } - - @Block() - public static class CitationContributorshipEntryComponent extends BackboneElement implements IBaseBackboneElement { - /** - * A name associated with the individual. - */ - @Child(name = "name", type = {HumanName.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="A name associated with the person", formalDefinition="A name associated with the individual." ) - protected HumanName name; - - /** - * Initials for forename. - */ - @Child(name = "initials", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Initials for forename", formalDefinition="Initials for forename." ) - protected StringType initials; - - /** - * Used for collective or corporate name as an author. - */ - @Child(name = "collectiveName", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used for collective or corporate name as an author", formalDefinition="Used for collective or corporate name as an author." ) - protected StringType collectiveName; - - /** - * Unique person identifier. - */ - @Child(name = "identifier", type = {Identifier.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Author identifier, eg ORCID", formalDefinition="Unique person identifier." ) + @Child(name = "identifier", type = {Identifier.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Journal identifiers include ISSN, ISO Abbreviation and NLMuniqueID; Book identifiers include ISBN", formalDefinition="Journal identifiers include ISSN, ISO Abbreviation and NLMuniqueID; Book identifiers include ISBN." ) protected List identifier; /** - * Organization affiliated with the entity. + * Name of the database or title of the book or journal. */ - @Child(name = "affiliationInfo", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Organizational affiliation", formalDefinition="Organization affiliated with the entity." ) - protected List affiliationInfo; + @Child(name = "title", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Name of the database or title of the book or journal", formalDefinition="Name of the database or title of the book or journal." ) + protected StringType title; /** - * Physical mailing address for the author or contributor. + * Name of the publisher. */ - @Child(name = "address", type = {Address.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Physical mailing address", formalDefinition="Physical mailing address for the author or contributor." ) - protected List
address; + @Child(name = "publisher", type = {Organization.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Name of the publisher", formalDefinition="Name of the publisher." ) + protected Reference publisher; /** - * Email or telephone contact methods for the author or contributor. + * Geographic location of the publisher. */ - @Child(name = "telecom", type = {ContactPoint.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Email or telephone contact methods for", formalDefinition="Email or telephone contact methods for the author or contributor." ) - protected List telecom; + @Child(name = "publisherLocation", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Geographic location of the publisher", formalDefinition="Geographic location of the publisher." ) + protected StringType publisherLocation; - /** - * This element identifies the specific nature of an individual’s contribution with respect to the cited work. - */ - @Child(name = "contribution", type = {CodeableConcept.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="The specific contributions", formalDefinition="This element identifies the specific nature of an individual’s contribution with respect to the cited work." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/citation-contribution") - protected List contribution; - - /** - * False, missing, or empty elements implies authorship. - */ - @Child(name = "notAnAuthor", type = {BooleanType.class}, order=9, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used to identify non-author contributors", formalDefinition="False, missing, or empty elements implies authorship." ) - protected BooleanType notAnAuthor; - - /** - * Indication of which author is the corresponding author for the article cited. - */ - @Child(name = "correspondingAuthor", type = {BooleanType.class}, order=10, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Indication of which author is the corresponding author for the article cited", formalDefinition="Indication of which author is the corresponding author for the article cited." ) - protected BooleanType correspondingAuthor; - - /** - * Used to code order of authors. - */ - @Child(name = "listOrder", type = {PositiveIntType.class}, order=11, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used to code order of authors", formalDefinition="Used to code order of authors." ) - protected PositiveIntType listOrder; - - private static final long serialVersionUID = -298558035L; + private static final long serialVersionUID = 1440066953L; /** * Constructor */ - public CitationContributorshipEntryComponent() { + public CitationCitedArtifactPublicationFormPublishedInComponent() { super(); } /** - * @return {@link #name} (A name associated with the individual.) + * @return {@link #type} (Kind of container (e.g. Periodical, database, or book).) */ - public HumanName getName() { - if (this.name == null) + public CodeableConcept getType() { + if (this.type == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationContributorshipEntryComponent.name"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormPublishedInComponent.type"); else if (Configuration.doAutoCreate()) - this.name = new HumanName(); // cc - return this.name; + this.type = new CodeableConcept(); // cc + return this.type; } - public boolean hasName() { - return this.name != null && !this.name.isEmpty(); + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); } /** - * @param value {@link #name} (A name associated with the individual.) + * @param value {@link #type} (Kind of container (e.g. Periodical, database, or book).) */ - public CitationContributorshipEntryComponent setName(HumanName value) { - this.name = value; + public CitationCitedArtifactPublicationFormPublishedInComponent setType(CodeableConcept value) { + this.type = value; return this; } /** - * @return {@link #initials} (Initials for forename.). This is the underlying object with id, value and extensions. The accessor "getInitials" gives direct access to the value - */ - public StringType getInitialsElement() { - if (this.initials == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationContributorshipEntryComponent.initials"); - else if (Configuration.doAutoCreate()) - this.initials = new StringType(); // bb - return this.initials; - } - - public boolean hasInitialsElement() { - return this.initials != null && !this.initials.isEmpty(); - } - - public boolean hasInitials() { - return this.initials != null && !this.initials.isEmpty(); - } - - /** - * @param value {@link #initials} (Initials for forename.). This is the underlying object with id, value and extensions. The accessor "getInitials" gives direct access to the value - */ - public CitationContributorshipEntryComponent setInitialsElement(StringType value) { - this.initials = value; - return this; - } - - /** - * @return Initials for forename. - */ - public String getInitials() { - return this.initials == null ? null : this.initials.getValue(); - } - - /** - * @param value Initials for forename. - */ - public CitationContributorshipEntryComponent setInitials(String value) { - if (Utilities.noString(value)) - this.initials = null; - else { - if (this.initials == null) - this.initials = new StringType(); - this.initials.setValue(value); - } - return this; - } - - /** - * @return {@link #collectiveName} (Used for collective or corporate name as an author.). This is the underlying object with id, value and extensions. The accessor "getCollectiveName" gives direct access to the value - */ - public StringType getCollectiveNameElement() { - if (this.collectiveName == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationContributorshipEntryComponent.collectiveName"); - else if (Configuration.doAutoCreate()) - this.collectiveName = new StringType(); // bb - return this.collectiveName; - } - - public boolean hasCollectiveNameElement() { - return this.collectiveName != null && !this.collectiveName.isEmpty(); - } - - public boolean hasCollectiveName() { - return this.collectiveName != null && !this.collectiveName.isEmpty(); - } - - /** - * @param value {@link #collectiveName} (Used for collective or corporate name as an author.). This is the underlying object with id, value and extensions. The accessor "getCollectiveName" gives direct access to the value - */ - public CitationContributorshipEntryComponent setCollectiveNameElement(StringType value) { - this.collectiveName = value; - return this; - } - - /** - * @return Used for collective or corporate name as an author. - */ - public String getCollectiveName() { - return this.collectiveName == null ? null : this.collectiveName.getValue(); - } - - /** - * @param value Used for collective or corporate name as an author. - */ - public CitationContributorshipEntryComponent setCollectiveName(String value) { - if (Utilities.noString(value)) - this.collectiveName = null; - else { - if (this.collectiveName == null) - this.collectiveName = new StringType(); - this.collectiveName.setValue(value); - } - return this; - } - - /** - * @return {@link #identifier} (Unique person identifier.) + * @return {@link #identifier} (Journal identifiers include ISSN, ISO Abbreviation and NLMuniqueID; Book identifiers include ISBN.) */ public List getIdentifier() { if (this.identifier == null) @@ -4405,7 +4825,7 @@ public class Citation extends MetadataResource { /** * @return Returns a reference to this for easy method chaining */ - public CitationContributorshipEntryComponent setIdentifier(List theIdentifier) { + public CitationCitedArtifactPublicationFormPublishedInComponent setIdentifier(List theIdentifier) { this.identifier = theIdentifier; return this; } @@ -4427,7 +4847,7 @@ public class Citation extends MetadataResource { return t; } - public CitationContributorshipEntryComponent addIdentifier(Identifier t) { //3 + public CitationCitedArtifactPublicationFormPublishedInComponent addIdentifier(Identifier t) { //3 if (t == null) return this; if (this.identifier == null) @@ -4447,1144 +4867,144 @@ public class Citation extends MetadataResource { } /** - * @return {@link #affiliationInfo} (Organization affiliated with the entity.) + * @return {@link #title} (Name of the database or title of the book or journal.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value */ - public List getAffiliationInfo() { - if (this.affiliationInfo == null) - this.affiliationInfo = new ArrayList(); - return this.affiliationInfo; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public CitationContributorshipEntryComponent setAffiliationInfo(List theAffiliationInfo) { - this.affiliationInfo = theAffiliationInfo; - return this; - } - - public boolean hasAffiliationInfo() { - if (this.affiliationInfo == null) - return false; - for (CitationContributorshipEntryAffiliationInfoComponent item : this.affiliationInfo) - if (!item.isEmpty()) - return true; - return false; - } - - public CitationContributorshipEntryAffiliationInfoComponent addAffiliationInfo() { //3 - CitationContributorshipEntryAffiliationInfoComponent t = new CitationContributorshipEntryAffiliationInfoComponent(); - if (this.affiliationInfo == null) - this.affiliationInfo = new ArrayList(); - this.affiliationInfo.add(t); - return t; - } - - public CitationContributorshipEntryComponent addAffiliationInfo(CitationContributorshipEntryAffiliationInfoComponent t) { //3 - if (t == null) - return this; - if (this.affiliationInfo == null) - this.affiliationInfo = new ArrayList(); - this.affiliationInfo.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #affiliationInfo}, creating it if it does not already exist {3} - */ - public CitationContributorshipEntryAffiliationInfoComponent getAffiliationInfoFirstRep() { - if (getAffiliationInfo().isEmpty()) { - addAffiliationInfo(); - } - return getAffiliationInfo().get(0); - } - - /** - * @return {@link #address} (Physical mailing address for the author or contributor.) - */ - public List
getAddress() { - if (this.address == null) - this.address = new ArrayList
(); - return this.address; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public CitationContributorshipEntryComponent setAddress(List
theAddress) { - this.address = theAddress; - return this; - } - - public boolean hasAddress() { - if (this.address == null) - return false; - for (Address item : this.address) - if (!item.isEmpty()) - return true; - return false; - } - - public Address addAddress() { //3 - Address t = new Address(); - if (this.address == null) - this.address = new ArrayList
(); - this.address.add(t); - return t; - } - - public CitationContributorshipEntryComponent addAddress(Address t) { //3 - if (t == null) - return this; - if (this.address == null) - this.address = new ArrayList
(); - this.address.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #address}, creating it if it does not already exist {3} - */ - public Address getAddressFirstRep() { - if (getAddress().isEmpty()) { - addAddress(); - } - return getAddress().get(0); - } - - /** - * @return {@link #telecom} (Email or telephone contact methods for the author or contributor.) - */ - public List getTelecom() { - if (this.telecom == null) - this.telecom = new ArrayList(); - return this.telecom; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public CitationContributorshipEntryComponent setTelecom(List theTelecom) { - this.telecom = theTelecom; - return this; - } - - public boolean hasTelecom() { - if (this.telecom == null) - return false; - for (ContactPoint item : this.telecom) - if (!item.isEmpty()) - return true; - return false; - } - - public ContactPoint addTelecom() { //3 - ContactPoint t = new ContactPoint(); - if (this.telecom == null) - this.telecom = new ArrayList(); - this.telecom.add(t); - return t; - } - - public CitationContributorshipEntryComponent addTelecom(ContactPoint t) { //3 - if (t == null) - return this; - if (this.telecom == null) - this.telecom = new ArrayList(); - this.telecom.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #telecom}, creating it if it does not already exist {3} - */ - public ContactPoint getTelecomFirstRep() { - if (getTelecom().isEmpty()) { - addTelecom(); - } - return getTelecom().get(0); - } - - /** - * @return {@link #contribution} (This element identifies the specific nature of an individual’s contribution with respect to the cited work.) - */ - public List getContribution() { - if (this.contribution == null) - this.contribution = new ArrayList(); - return this.contribution; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public CitationContributorshipEntryComponent setContribution(List theContribution) { - this.contribution = theContribution; - return this; - } - - public boolean hasContribution() { - if (this.contribution == null) - return false; - for (CodeableConcept item : this.contribution) - if (!item.isEmpty()) - return true; - return false; - } - - public CodeableConcept addContribution() { //3 - CodeableConcept t = new CodeableConcept(); - if (this.contribution == null) - this.contribution = new ArrayList(); - this.contribution.add(t); - return t; - } - - public CitationContributorshipEntryComponent addContribution(CodeableConcept t) { //3 - if (t == null) - return this; - if (this.contribution == null) - this.contribution = new ArrayList(); - this.contribution.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #contribution}, creating it if it does not already exist {3} - */ - public CodeableConcept getContributionFirstRep() { - if (getContribution().isEmpty()) { - addContribution(); - } - return getContribution().get(0); - } - - /** - * @return {@link #notAnAuthor} (False, missing, or empty elements implies authorship.). This is the underlying object with id, value and extensions. The accessor "getNotAnAuthor" gives direct access to the value - */ - public BooleanType getNotAnAuthorElement() { - if (this.notAnAuthor == null) + public StringType getTitleElement() { + if (this.title == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationContributorshipEntryComponent.notAnAuthor"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormPublishedInComponent.title"); else if (Configuration.doAutoCreate()) - this.notAnAuthor = new BooleanType(); // bb - return this.notAnAuthor; + this.title = new StringType(); // bb + return this.title; } - public boolean hasNotAnAuthorElement() { - return this.notAnAuthor != null && !this.notAnAuthor.isEmpty(); + public boolean hasTitleElement() { + return this.title != null && !this.title.isEmpty(); } - public boolean hasNotAnAuthor() { - return this.notAnAuthor != null && !this.notAnAuthor.isEmpty(); + public boolean hasTitle() { + return this.title != null && !this.title.isEmpty(); } /** - * @param value {@link #notAnAuthor} (False, missing, or empty elements implies authorship.). This is the underlying object with id, value and extensions. The accessor "getNotAnAuthor" gives direct access to the value + * @param value {@link #title} (Name of the database or title of the book or journal.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value */ - public CitationContributorshipEntryComponent setNotAnAuthorElement(BooleanType value) { - this.notAnAuthor = value; + public CitationCitedArtifactPublicationFormPublishedInComponent setTitleElement(StringType value) { + this.title = value; return this; } /** - * @return False, missing, or empty elements implies authorship. + * @return Name of the database or title of the book or journal. */ - public boolean getNotAnAuthor() { - return this.notAnAuthor == null || this.notAnAuthor.isEmpty() ? false : this.notAnAuthor.getValue(); + public String getTitle() { + return this.title == null ? null : this.title.getValue(); } /** - * @param value False, missing, or empty elements implies authorship. + * @param value Name of the database or title of the book or journal. */ - public CitationContributorshipEntryComponent setNotAnAuthor(boolean value) { - if (this.notAnAuthor == null) - this.notAnAuthor = new BooleanType(); - this.notAnAuthor.setValue(value); - return this; - } - - /** - * @return {@link #correspondingAuthor} (Indication of which author is the corresponding author for the article cited.). This is the underlying object with id, value and extensions. The accessor "getCorrespondingAuthor" gives direct access to the value - */ - public BooleanType getCorrespondingAuthorElement() { - if (this.correspondingAuthor == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationContributorshipEntryComponent.correspondingAuthor"); - else if (Configuration.doAutoCreate()) - this.correspondingAuthor = new BooleanType(); // bb - return this.correspondingAuthor; - } - - public boolean hasCorrespondingAuthorElement() { - return this.correspondingAuthor != null && !this.correspondingAuthor.isEmpty(); - } - - public boolean hasCorrespondingAuthor() { - return this.correspondingAuthor != null && !this.correspondingAuthor.isEmpty(); - } - - /** - * @param value {@link #correspondingAuthor} (Indication of which author is the corresponding author for the article cited.). This is the underlying object with id, value and extensions. The accessor "getCorrespondingAuthor" gives direct access to the value - */ - public CitationContributorshipEntryComponent setCorrespondingAuthorElement(BooleanType value) { - this.correspondingAuthor = value; - return this; - } - - /** - * @return Indication of which author is the corresponding author for the article cited. - */ - public boolean getCorrespondingAuthor() { - return this.correspondingAuthor == null || this.correspondingAuthor.isEmpty() ? false : this.correspondingAuthor.getValue(); - } - - /** - * @param value Indication of which author is the corresponding author for the article cited. - */ - public CitationContributorshipEntryComponent setCorrespondingAuthor(boolean value) { - if (this.correspondingAuthor == null) - this.correspondingAuthor = new BooleanType(); - this.correspondingAuthor.setValue(value); - return this; - } - - /** - * @return {@link #listOrder} (Used to code order of authors.). This is the underlying object with id, value and extensions. The accessor "getListOrder" gives direct access to the value - */ - public PositiveIntType getListOrderElement() { - if (this.listOrder == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationContributorshipEntryComponent.listOrder"); - else if (Configuration.doAutoCreate()) - this.listOrder = new PositiveIntType(); // bb - return this.listOrder; - } - - public boolean hasListOrderElement() { - return this.listOrder != null && !this.listOrder.isEmpty(); - } - - public boolean hasListOrder() { - return this.listOrder != null && !this.listOrder.isEmpty(); - } - - /** - * @param value {@link #listOrder} (Used to code order of authors.). This is the underlying object with id, value and extensions. The accessor "getListOrder" gives direct access to the value - */ - public CitationContributorshipEntryComponent setListOrderElement(PositiveIntType value) { - this.listOrder = value; - return this; - } - - /** - * @return Used to code order of authors. - */ - public int getListOrder() { - return this.listOrder == null || this.listOrder.isEmpty() ? 0 : this.listOrder.getValue(); - } - - /** - * @param value Used to code order of authors. - */ - public CitationContributorshipEntryComponent setListOrder(int value) { - if (this.listOrder == null) - this.listOrder = new PositiveIntType(); - this.listOrder.setValue(value); - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("name", "HumanName", "A name associated with the individual.", 0, 1, name)); - children.add(new Property("initials", "string", "Initials for forename.", 0, 1, initials)); - children.add(new Property("collectiveName", "string", "Used for collective or corporate name as an author.", 0, 1, collectiveName)); - children.add(new Property("identifier", "Identifier", "Unique person identifier.", 0, java.lang.Integer.MAX_VALUE, identifier)); - children.add(new Property("affiliationInfo", "", "Organization affiliated with the entity.", 0, java.lang.Integer.MAX_VALUE, affiliationInfo)); - children.add(new Property("address", "Address", "Physical mailing address for the author or contributor.", 0, java.lang.Integer.MAX_VALUE, address)); - children.add(new Property("telecom", "ContactPoint", "Email or telephone contact methods for the author or contributor.", 0, java.lang.Integer.MAX_VALUE, telecom)); - children.add(new Property("contribution", "CodeableConcept", "This element identifies the specific nature of an individual’s contribution with respect to the cited work.", 0, java.lang.Integer.MAX_VALUE, contribution)); - children.add(new Property("notAnAuthor", "boolean", "False, missing, or empty elements implies authorship.", 0, 1, notAnAuthor)); - children.add(new Property("correspondingAuthor", "boolean", "Indication of which author is the corresponding author for the article cited.", 0, 1, correspondingAuthor)); - children.add(new Property("listOrder", "positiveInt", "Used to code order of authors.", 0, 1, listOrder)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 3373707: /*name*/ return new Property("name", "HumanName", "A name associated with the individual.", 0, 1, name); - case 269062575: /*initials*/ return new Property("initials", "string", "Initials for forename.", 0, 1, initials); - case 502871833: /*collectiveName*/ return new Property("collectiveName", "string", "Used for collective or corporate name as an author.", 0, 1, collectiveName); - case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Unique person identifier.", 0, java.lang.Integer.MAX_VALUE, identifier); - case -215129154: /*affiliationInfo*/ return new Property("affiliationInfo", "", "Organization affiliated with the entity.", 0, java.lang.Integer.MAX_VALUE, affiliationInfo); - case -1147692044: /*address*/ return new Property("address", "Address", "Physical mailing address for the author or contributor.", 0, java.lang.Integer.MAX_VALUE, address); - case -1429363305: /*telecom*/ return new Property("telecom", "ContactPoint", "Email or telephone contact methods for the author or contributor.", 0, java.lang.Integer.MAX_VALUE, telecom); - case 1375970320: /*contribution*/ return new Property("contribution", "CodeableConcept", "This element identifies the specific nature of an individual’s contribution with respect to the cited work.", 0, java.lang.Integer.MAX_VALUE, contribution); - case -1513418741: /*notAnAuthor*/ return new Property("notAnAuthor", "boolean", "False, missing, or empty elements implies authorship.", 0, 1, notAnAuthor); - case 1413890206: /*correspondingAuthor*/ return new Property("correspondingAuthor", "boolean", "Indication of which author is the corresponding author for the article cited.", 0, 1, correspondingAuthor); - case -1238918832: /*listOrder*/ return new Property("listOrder", "positiveInt", "Used to code order of authors.", 0, 1, listOrder); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // HumanName - case 269062575: /*initials*/ return this.initials == null ? new Base[0] : new Base[] {this.initials}; // StringType - case 502871833: /*collectiveName*/ return this.collectiveName == null ? new Base[0] : new Base[] {this.collectiveName}; // StringType - case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier - case -215129154: /*affiliationInfo*/ return this.affiliationInfo == null ? new Base[0] : this.affiliationInfo.toArray(new Base[this.affiliationInfo.size()]); // CitationContributorshipEntryAffiliationInfoComponent - case -1147692044: /*address*/ return this.address == null ? new Base[0] : this.address.toArray(new Base[this.address.size()]); // Address - case -1429363305: /*telecom*/ return this.telecom == null ? new Base[0] : this.telecom.toArray(new Base[this.telecom.size()]); // ContactPoint - case 1375970320: /*contribution*/ return this.contribution == null ? new Base[0] : this.contribution.toArray(new Base[this.contribution.size()]); // CodeableConcept - case -1513418741: /*notAnAuthor*/ return this.notAnAuthor == null ? new Base[0] : new Base[] {this.notAnAuthor}; // BooleanType - case 1413890206: /*correspondingAuthor*/ return this.correspondingAuthor == null ? new Base[0] : new Base[] {this.correspondingAuthor}; // BooleanType - case -1238918832: /*listOrder*/ return this.listOrder == null ? new Base[0] : new Base[] {this.listOrder}; // PositiveIntType - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 3373707: // name - this.name = TypeConvertor.castToHumanName(value); // HumanName - return value; - case 269062575: // initials - this.initials = TypeConvertor.castToString(value); // StringType - return value; - case 502871833: // collectiveName - this.collectiveName = TypeConvertor.castToString(value); // StringType - return value; - case -1618432855: // identifier - this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier - return value; - case -215129154: // affiliationInfo - this.getAffiliationInfo().add((CitationContributorshipEntryAffiliationInfoComponent) value); // CitationContributorshipEntryAffiliationInfoComponent - return value; - case -1147692044: // address - this.getAddress().add(TypeConvertor.castToAddress(value)); // Address - return value; - case -1429363305: // telecom - this.getTelecom().add(TypeConvertor.castToContactPoint(value)); // ContactPoint - return value; - case 1375970320: // contribution - this.getContribution().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept - return value; - case -1513418741: // notAnAuthor - this.notAnAuthor = TypeConvertor.castToBoolean(value); // BooleanType - return value; - case 1413890206: // correspondingAuthor - this.correspondingAuthor = TypeConvertor.castToBoolean(value); // BooleanType - return value; - case -1238918832: // listOrder - this.listOrder = TypeConvertor.castToPositiveInt(value); // PositiveIntType - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("name")) { - this.name = TypeConvertor.castToHumanName(value); // HumanName - } else if (name.equals("initials")) { - this.initials = TypeConvertor.castToString(value); // StringType - } else if (name.equals("collectiveName")) { - this.collectiveName = TypeConvertor.castToString(value); // StringType - } else if (name.equals("identifier")) { - this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); - } else if (name.equals("affiliationInfo")) { - this.getAffiliationInfo().add((CitationContributorshipEntryAffiliationInfoComponent) value); - } else if (name.equals("address")) { - this.getAddress().add(TypeConvertor.castToAddress(value)); - } else if (name.equals("telecom")) { - this.getTelecom().add(TypeConvertor.castToContactPoint(value)); - } else if (name.equals("contribution")) { - this.getContribution().add(TypeConvertor.castToCodeableConcept(value)); - } else if (name.equals("notAnAuthor")) { - this.notAnAuthor = TypeConvertor.castToBoolean(value); // BooleanType - } else if (name.equals("correspondingAuthor")) { - this.correspondingAuthor = TypeConvertor.castToBoolean(value); // BooleanType - } else if (name.equals("listOrder")) { - this.listOrder = TypeConvertor.castToPositiveInt(value); // PositiveIntType - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 3373707: return getName(); - case 269062575: return getInitialsElement(); - case 502871833: return getCollectiveNameElement(); - case -1618432855: return addIdentifier(); - case -215129154: return addAffiliationInfo(); - case -1147692044: return addAddress(); - case -1429363305: return addTelecom(); - case 1375970320: return addContribution(); - case -1513418741: return getNotAnAuthorElement(); - case 1413890206: return getCorrespondingAuthorElement(); - case -1238918832: return getListOrderElement(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 3373707: /*name*/ return new String[] {"HumanName"}; - case 269062575: /*initials*/ return new String[] {"string"}; - case 502871833: /*collectiveName*/ return new String[] {"string"}; - case -1618432855: /*identifier*/ return new String[] {"Identifier"}; - case -215129154: /*affiliationInfo*/ return new String[] {}; - case -1147692044: /*address*/ return new String[] {"Address"}; - case -1429363305: /*telecom*/ return new String[] {"ContactPoint"}; - case 1375970320: /*contribution*/ return new String[] {"CodeableConcept"}; - case -1513418741: /*notAnAuthor*/ return new String[] {"boolean"}; - case 1413890206: /*correspondingAuthor*/ return new String[] {"boolean"}; - case -1238918832: /*listOrder*/ return new String[] {"positiveInt"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("name")) { - this.name = new HumanName(); - return this.name; - } - else if (name.equals("initials")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorship.entry.initials"); - } - else if (name.equals("collectiveName")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorship.entry.collectiveName"); - } - else if (name.equals("identifier")) { - return addIdentifier(); - } - else if (name.equals("affiliationInfo")) { - return addAffiliationInfo(); - } - else if (name.equals("address")) { - return addAddress(); - } - else if (name.equals("telecom")) { - return addTelecom(); - } - else if (name.equals("contribution")) { - return addContribution(); - } - else if (name.equals("notAnAuthor")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorship.entry.notAnAuthor"); - } - else if (name.equals("correspondingAuthor")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorship.entry.correspondingAuthor"); - } - else if (name.equals("listOrder")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorship.entry.listOrder"); - } - else - return super.addChild(name); - } - - public CitationContributorshipEntryComponent copy() { - CitationContributorshipEntryComponent dst = new CitationContributorshipEntryComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationContributorshipEntryComponent dst) { - super.copyValues(dst); - dst.name = name == null ? null : name.copy(); - dst.initials = initials == null ? null : initials.copy(); - dst.collectiveName = collectiveName == null ? null : collectiveName.copy(); - if (identifier != null) { - dst.identifier = new ArrayList(); - for (Identifier i : identifier) - dst.identifier.add(i.copy()); - }; - if (affiliationInfo != null) { - dst.affiliationInfo = new ArrayList(); - for (CitationContributorshipEntryAffiliationInfoComponent i : affiliationInfo) - dst.affiliationInfo.add(i.copy()); - }; - if (address != null) { - dst.address = new ArrayList
(); - for (Address i : address) - dst.address.add(i.copy()); - }; - if (telecom != null) { - dst.telecom = new ArrayList(); - for (ContactPoint i : telecom) - dst.telecom.add(i.copy()); - }; - if (contribution != null) { - dst.contribution = new ArrayList(); - for (CodeableConcept i : contribution) - dst.contribution.add(i.copy()); - }; - dst.notAnAuthor = notAnAuthor == null ? null : notAnAuthor.copy(); - dst.correspondingAuthor = correspondingAuthor == null ? null : correspondingAuthor.copy(); - dst.listOrder = listOrder == null ? null : listOrder.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationContributorshipEntryComponent)) - return false; - CitationContributorshipEntryComponent o = (CitationContributorshipEntryComponent) other_; - return compareDeep(name, o.name, true) && compareDeep(initials, o.initials, true) && compareDeep(collectiveName, o.collectiveName, true) - && compareDeep(identifier, o.identifier, true) && compareDeep(affiliationInfo, o.affiliationInfo, true) - && compareDeep(address, o.address, true) && compareDeep(telecom, o.telecom, true) && compareDeep(contribution, o.contribution, true) - && compareDeep(notAnAuthor, o.notAnAuthor, true) && compareDeep(correspondingAuthor, o.correspondingAuthor, true) - && compareDeep(listOrder, o.listOrder, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationContributorshipEntryComponent)) - return false; - CitationContributorshipEntryComponent o = (CitationContributorshipEntryComponent) other_; - return compareValues(initials, o.initials, true) && compareValues(collectiveName, o.collectiveName, true) - && compareValues(notAnAuthor, o.notAnAuthor, true) && compareValues(correspondingAuthor, o.correspondingAuthor, true) - && compareValues(listOrder, o.listOrder, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, initials, collectiveName - , identifier, affiliationInfo, address, telecom, contribution, notAnAuthor, correspondingAuthor - , listOrder); - } - - public String fhirType() { - return "Citation.contributorship.entry"; - - } - - } - - @Block() - public static class CitationContributorshipEntryAffiliationInfoComponent extends BackboneElement implements IBaseBackboneElement { - /** - * Display for the organization. - */ - @Child(name = "affiliation", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Display for the organization", formalDefinition="Display for the organization." ) - protected StringType affiliation; - - /** - * Role within the organization, such as professional title. - */ - @Child(name = "role", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Role within the organization, such as professional title", formalDefinition="Role within the organization, such as professional title." ) - protected StringType role; - - /** - * Identifier for the organization. - */ - @Child(name = "identifier", type = {Identifier.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Identifier for the organization", formalDefinition="Identifier for the organization." ) - protected List identifier; - - private static final long serialVersionUID = 548335522L; - - /** - * Constructor - */ - public CitationContributorshipEntryAffiliationInfoComponent() { - super(); - } - - /** - * @return {@link #affiliation} (Display for the organization.). This is the underlying object with id, value and extensions. The accessor "getAffiliation" gives direct access to the value - */ - public StringType getAffiliationElement() { - if (this.affiliation == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationContributorshipEntryAffiliationInfoComponent.affiliation"); - else if (Configuration.doAutoCreate()) - this.affiliation = new StringType(); // bb - return this.affiliation; - } - - public boolean hasAffiliationElement() { - return this.affiliation != null && !this.affiliation.isEmpty(); - } - - public boolean hasAffiliation() { - return this.affiliation != null && !this.affiliation.isEmpty(); - } - - /** - * @param value {@link #affiliation} (Display for the organization.). This is the underlying object with id, value and extensions. The accessor "getAffiliation" gives direct access to the value - */ - public CitationContributorshipEntryAffiliationInfoComponent setAffiliationElement(StringType value) { - this.affiliation = value; - return this; - } - - /** - * @return Display for the organization. - */ - public String getAffiliation() { - return this.affiliation == null ? null : this.affiliation.getValue(); - } - - /** - * @param value Display for the organization. - */ - public CitationContributorshipEntryAffiliationInfoComponent setAffiliation(String value) { + public CitationCitedArtifactPublicationFormPublishedInComponent setTitle(String value) { if (Utilities.noString(value)) - this.affiliation = null; + this.title = null; else { - if (this.affiliation == null) - this.affiliation = new StringType(); - this.affiliation.setValue(value); + if (this.title == null) + this.title = new StringType(); + this.title.setValue(value); } return this; } /** - * @return {@link #role} (Role within the organization, such as professional title.). This is the underlying object with id, value and extensions. The accessor "getRole" gives direct access to the value + * @return {@link #publisher} (Name of the publisher.) */ - public StringType getRoleElement() { - if (this.role == null) + public Reference getPublisher() { + if (this.publisher == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationContributorshipEntryAffiliationInfoComponent.role"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormPublishedInComponent.publisher"); else if (Configuration.doAutoCreate()) - this.role = new StringType(); // bb - return this.role; + this.publisher = new Reference(); // cc + return this.publisher; } - public boolean hasRoleElement() { - return this.role != null && !this.role.isEmpty(); - } - - public boolean hasRole() { - return this.role != null && !this.role.isEmpty(); + public boolean hasPublisher() { + return this.publisher != null && !this.publisher.isEmpty(); } /** - * @param value {@link #role} (Role within the organization, such as professional title.). This is the underlying object with id, value and extensions. The accessor "getRole" gives direct access to the value + * @param value {@link #publisher} (Name of the publisher.) */ - public CitationContributorshipEntryAffiliationInfoComponent setRoleElement(StringType value) { - this.role = value; + public CitationCitedArtifactPublicationFormPublishedInComponent setPublisher(Reference value) { + this.publisher = value; return this; } /** - * @return Role within the organization, such as professional title. + * @return {@link #publisherLocation} (Geographic location of the publisher.). This is the underlying object with id, value and extensions. The accessor "getPublisherLocation" gives direct access to the value */ - public String getRole() { - return this.role == null ? null : this.role.getValue(); + public StringType getPublisherLocationElement() { + if (this.publisherLocation == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormPublishedInComponent.publisherLocation"); + else if (Configuration.doAutoCreate()) + this.publisherLocation = new StringType(); // bb + return this.publisherLocation; + } + + public boolean hasPublisherLocationElement() { + return this.publisherLocation != null && !this.publisherLocation.isEmpty(); + } + + public boolean hasPublisherLocation() { + return this.publisherLocation != null && !this.publisherLocation.isEmpty(); } /** - * @param value Role within the organization, such as professional title. + * @param value {@link #publisherLocation} (Geographic location of the publisher.). This is the underlying object with id, value and extensions. The accessor "getPublisherLocation" gives direct access to the value */ - public CitationContributorshipEntryAffiliationInfoComponent setRole(String value) { + public CitationCitedArtifactPublicationFormPublishedInComponent setPublisherLocationElement(StringType value) { + this.publisherLocation = value; + return this; + } + + /** + * @return Geographic location of the publisher. + */ + public String getPublisherLocation() { + return this.publisherLocation == null ? null : this.publisherLocation.getValue(); + } + + /** + * @param value Geographic location of the publisher. + */ + public CitationCitedArtifactPublicationFormPublishedInComponent setPublisherLocation(String value) { if (Utilities.noString(value)) - this.role = null; + this.publisherLocation = null; else { - if (this.role == null) - this.role = new StringType(); - this.role.setValue(value); + if (this.publisherLocation == null) + this.publisherLocation = new StringType(); + this.publisherLocation.setValue(value); } return this; } - /** - * @return {@link #identifier} (Identifier for the organization.) - */ - public List getIdentifier() { - if (this.identifier == null) - this.identifier = new ArrayList(); - return this.identifier; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public CitationContributorshipEntryAffiliationInfoComponent setIdentifier(List theIdentifier) { - this.identifier = theIdentifier; - return this; - } - - public boolean hasIdentifier() { - if (this.identifier == null) - return false; - for (Identifier item : this.identifier) - if (!item.isEmpty()) - return true; - return false; - } - - public Identifier addIdentifier() { //3 - Identifier t = new Identifier(); - if (this.identifier == null) - this.identifier = new ArrayList(); - this.identifier.add(t); - return t; - } - - public CitationContributorshipEntryAffiliationInfoComponent addIdentifier(Identifier t) { //3 - if (t == null) - return this; - if (this.identifier == null) - this.identifier = new ArrayList(); - this.identifier.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} - */ - public Identifier getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - addIdentifier(); - } - return getIdentifier().get(0); - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("affiliation", "string", "Display for the organization.", 0, 1, affiliation)); - children.add(new Property("role", "string", "Role within the organization, such as professional title.", 0, 1, role)); - children.add(new Property("identifier", "Identifier", "Identifier for the organization.", 0, java.lang.Integer.MAX_VALUE, identifier)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 2019918576: /*affiliation*/ return new Property("affiliation", "string", "Display for the organization.", 0, 1, affiliation); - case 3506294: /*role*/ return new Property("role", "string", "Role within the organization, such as professional title.", 0, 1, role); - case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifier for the organization.", 0, java.lang.Integer.MAX_VALUE, identifier); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 2019918576: /*affiliation*/ return this.affiliation == null ? new Base[0] : new Base[] {this.affiliation}; // StringType - case 3506294: /*role*/ return this.role == null ? new Base[0] : new Base[] {this.role}; // StringType - case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 2019918576: // affiliation - this.affiliation = TypeConvertor.castToString(value); // StringType - return value; - case 3506294: // role - this.role = TypeConvertor.castToString(value); // StringType - return value; - case -1618432855: // identifier - this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("affiliation")) { - this.affiliation = TypeConvertor.castToString(value); // StringType - } else if (name.equals("role")) { - this.role = TypeConvertor.castToString(value); // StringType - } else if (name.equals("identifier")) { - this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 2019918576: return getAffiliationElement(); - case 3506294: return getRoleElement(); - case -1618432855: return addIdentifier(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 2019918576: /*affiliation*/ return new String[] {"string"}; - case 3506294: /*role*/ return new String[] {"string"}; - case -1618432855: /*identifier*/ return new String[] {"Identifier"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("affiliation")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorship.entry.affiliationInfo.affiliation"); - } - else if (name.equals("role")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorship.entry.affiliationInfo.role"); - } - else if (name.equals("identifier")) { - return addIdentifier(); - } - else - return super.addChild(name); - } - - public CitationContributorshipEntryAffiliationInfoComponent copy() { - CitationContributorshipEntryAffiliationInfoComponent dst = new CitationContributorshipEntryAffiliationInfoComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationContributorshipEntryAffiliationInfoComponent dst) { - super.copyValues(dst); - dst.affiliation = affiliation == null ? null : affiliation.copy(); - dst.role = role == null ? null : role.copy(); - if (identifier != null) { - dst.identifier = new ArrayList(); - for (Identifier i : identifier) - dst.identifier.add(i.copy()); - }; - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationContributorshipEntryAffiliationInfoComponent)) - return false; - CitationContributorshipEntryAffiliationInfoComponent o = (CitationContributorshipEntryAffiliationInfoComponent) other_; - return compareDeep(affiliation, o.affiliation, true) && compareDeep(role, o.role, true) && compareDeep(identifier, o.identifier, true) - ; - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationContributorshipEntryAffiliationInfoComponent)) - return false; - CitationContributorshipEntryAffiliationInfoComponent o = (CitationContributorshipEntryAffiliationInfoComponent) other_; - return compareValues(affiliation, o.affiliation, true) && compareValues(role, o.role, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(affiliation, role, identifier - ); - } - - public String fhirType() { - return "Citation.contributorship.entry.affiliationInfo"; - - } - - } - - @Block() - public static class CitationContributorshipSummaryComponent extends BackboneElement implements IBaseBackboneElement { - /** - * Used most commonly to express an author list or a contributorship statement. - */ - @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Either authorList or contributorshipStatement", formalDefinition="Used most commonly to express an author list or a contributorship statement." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/contributor-summary-type") - protected CodeableConcept type; - - /** - * The format for the display string. - */ - @Child(name = "style", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The format for the display string", formalDefinition="The format for the display string." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/contributor-summary-style") - protected CodeableConcept style; - - /** - * Used to code the producer or rule for creating the display string. - */ - @Child(name = "source", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used to code the producer or rule for creating the display string", formalDefinition="Used to code the producer or rule for creating the display string." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/contributor-summary-source") - protected CodeableConcept source; - - /** - * The display string for the author list, contributor list, or contributorship statement. - */ - @Child(name = "value", type = {MarkdownType.class}, order=4, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="The display string for the author list, contributor list, or contributorship statement", formalDefinition="The display string for the author list, contributor list, or contributorship statement." ) - protected MarkdownType value; - - private static final long serialVersionUID = 1353383781L; - - /** - * Constructor - */ - public CitationContributorshipSummaryComponent() { - super(); - } - - /** - * Constructor - */ - public CitationContributorshipSummaryComponent(String value) { - super(); - this.setValue(value); - } - - /** - * @return {@link #type} (Used most commonly to express an author list or a contributorship statement.) - */ - public CodeableConcept getType() { - if (this.type == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationContributorshipSummaryComponent.type"); - else if (Configuration.doAutoCreate()) - this.type = new CodeableConcept(); // cc - return this.type; - } - - public boolean hasType() { - return this.type != null && !this.type.isEmpty(); - } - - /** - * @param value {@link #type} (Used most commonly to express an author list or a contributorship statement.) - */ - public CitationContributorshipSummaryComponent setType(CodeableConcept value) { - this.type = value; - return this; - } - - /** - * @return {@link #style} (The format for the display string.) - */ - public CodeableConcept getStyle() { - if (this.style == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationContributorshipSummaryComponent.style"); - else if (Configuration.doAutoCreate()) - this.style = new CodeableConcept(); // cc - return this.style; - } - - public boolean hasStyle() { - return this.style != null && !this.style.isEmpty(); - } - - /** - * @param value {@link #style} (The format for the display string.) - */ - public CitationContributorshipSummaryComponent setStyle(CodeableConcept value) { - this.style = value; - return this; - } - - /** - * @return {@link #source} (Used to code the producer or rule for creating the display string.) - */ - public CodeableConcept getSource() { - if (this.source == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationContributorshipSummaryComponent.source"); - else if (Configuration.doAutoCreate()) - this.source = new CodeableConcept(); // cc - return this.source; - } - - public boolean hasSource() { - return this.source != null && !this.source.isEmpty(); - } - - /** - * @param value {@link #source} (Used to code the producer or rule for creating the display string.) - */ - public CitationContributorshipSummaryComponent setSource(CodeableConcept value) { - this.source = value; - return this; - } - - /** - * @return {@link #value} (The display string for the author list, contributor list, or contributorship statement.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value - */ - public MarkdownType getValueElement() { - if (this.value == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationContributorshipSummaryComponent.value"); - else if (Configuration.doAutoCreate()) - this.value = new MarkdownType(); // bb - return this.value; - } - - public boolean hasValueElement() { - return this.value != null && !this.value.isEmpty(); - } - - public boolean hasValue() { - return this.value != null && !this.value.isEmpty(); - } - - /** - * @param value {@link #value} (The display string for the author list, contributor list, or contributorship statement.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value - */ - public CitationContributorshipSummaryComponent setValueElement(MarkdownType value) { - this.value = value; - return this; - } - - /** - * @return The display string for the author list, contributor list, or contributorship statement. - */ - public String getValue() { - return this.value == null ? null : this.value.getValue(); - } - - /** - * @param value The display string for the author list, contributor list, or contributorship statement. - */ - public CitationContributorshipSummaryComponent setValue(String value) { - if (this.value == null) - this.value = new MarkdownType(); - this.value.setValue(value); - return this; - } - protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("type", "CodeableConcept", "Used most commonly to express an author list or a contributorship statement.", 0, 1, type)); - children.add(new Property("style", "CodeableConcept", "The format for the display string.", 0, 1, style)); - children.add(new Property("source", "CodeableConcept", "Used to code the producer or rule for creating the display string.", 0, 1, source)); - children.add(new Property("value", "markdown", "The display string for the author list, contributor list, or contributorship statement.", 0, 1, value)); + children.add(new Property("type", "CodeableConcept", "Kind of container (e.g. Periodical, database, or book).", 0, 1, type)); + children.add(new Property("identifier", "Identifier", "Journal identifiers include ISSN, ISO Abbreviation and NLMuniqueID; Book identifiers include ISBN.", 0, java.lang.Integer.MAX_VALUE, identifier)); + children.add(new Property("title", "string", "Name of the database or title of the book or journal.", 0, 1, title)); + children.add(new Property("publisher", "Reference(Organization)", "Name of the publisher.", 0, 1, publisher)); + children.add(new Property("publisherLocation", "string", "Geographic location of the publisher.", 0, 1, publisherLocation)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Used most commonly to express an author list or a contributorship statement.", 0, 1, type); - case 109780401: /*style*/ return new Property("style", "CodeableConcept", "The format for the display string.", 0, 1, style); - case -896505829: /*source*/ return new Property("source", "CodeableConcept", "Used to code the producer or rule for creating the display string.", 0, 1, source); - case 111972721: /*value*/ return new Property("value", "markdown", "The display string for the author list, contributor list, or contributorship statement.", 0, 1, value); + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Kind of container (e.g. Periodical, database, or book).", 0, 1, type); + case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Journal identifiers include ISSN, ISO Abbreviation and NLMuniqueID; Book identifiers include ISBN.", 0, java.lang.Integer.MAX_VALUE, identifier); + case 110371416: /*title*/ return new Property("title", "string", "Name of the database or title of the book or journal.", 0, 1, title); + case 1447404028: /*publisher*/ return new Property("publisher", "Reference(Organization)", "Name of the publisher.", 0, 1, publisher); + case -1281627695: /*publisherLocation*/ return new Property("publisherLocation", "string", "Geographic location of the publisher.", 0, 1, publisherLocation); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -5594,9 +5014,10 @@ public class Citation extends MetadataResource { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept - case 109780401: /*style*/ return this.style == null ? new Base[0] : new Base[] {this.style}; // CodeableConcept - case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // CodeableConcept - case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // MarkdownType + case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier + case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType + case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // Reference + case -1281627695: /*publisherLocation*/ return this.publisherLocation == null ? new Base[0] : new Base[] {this.publisherLocation}; // StringType default: return super.getProperty(hash, name, checkValid); } @@ -5608,14 +5029,17 @@ public class Citation extends MetadataResource { case 3575610: // type this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; - case 109780401: // style - this.style = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + case -1618432855: // identifier + this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier return value; - case -896505829: // source - this.source = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + case 110371416: // title + this.title = TypeConvertor.castToString(value); // StringType return value; - case 111972721: // value - this.value = TypeConvertor.castToMarkdown(value); // MarkdownType + case 1447404028: // publisher + this.publisher = TypeConvertor.castToReference(value); // Reference + return value; + case -1281627695: // publisherLocation + this.publisherLocation = TypeConvertor.castToString(value); // StringType return value; default: return super.setProperty(hash, name, value); } @@ -5626,12 +5050,14 @@ public class Citation extends MetadataResource { public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("type")) { this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("style")) { - this.style = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("source")) { - this.source = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("value")) { - this.value = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("identifier")) { + this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); + } else if (name.equals("title")) { + this.title = TypeConvertor.castToString(value); // StringType + } else if (name.equals("publisher")) { + this.publisher = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("publisherLocation")) { + this.publisherLocation = TypeConvertor.castToString(value); // StringType } else return super.setProperty(name, value); return value; @@ -5641,9 +5067,10 @@ public class Citation extends MetadataResource { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: return getType(); - case 109780401: return getStyle(); - case -896505829: return getSource(); - case 111972721: return getValueElement(); + case -1618432855: return addIdentifier(); + case 110371416: return getTitleElement(); + case 1447404028: return getPublisher(); + case -1281627695: return getPublisherLocationElement(); default: return super.makeProperty(hash, name); } @@ -5653,9 +5080,10 @@ public class Citation extends MetadataResource { public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: /*type*/ return new String[] {"CodeableConcept"}; - case 109780401: /*style*/ return new String[] {"CodeableConcept"}; - case -896505829: /*source*/ return new String[] {"CodeableConcept"}; - case 111972721: /*value*/ return new String[] {"markdown"}; + case -1618432855: /*identifier*/ return new String[] {"Identifier"}; + case 110371416: /*title*/ return new String[] {"string"}; + case 1447404028: /*publisher*/ return new String[] {"Reference"}; + case -1281627695: /*publisherLocation*/ return new String[] {"string"}; default: return super.getTypesForProperty(hash, name); } @@ -5667,419 +5095,84 @@ public class Citation extends MetadataResource { this.type = new CodeableConcept(); return this.type; } - else if (name.equals("style")) { - this.style = new CodeableConcept(); - return this.style; + else if (name.equals("identifier")) { + return addIdentifier(); } - else if (name.equals("source")) { - this.source = new CodeableConcept(); - return this.source; + else if (name.equals("title")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.publishedIn.title"); } - else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.contributorship.summary.value"); + else if (name.equals("publisher")) { + this.publisher = new Reference(); + return this.publisher; + } + else if (name.equals("publisherLocation")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.publishedIn.publisherLocation"); } else return super.addChild(name); } - public CitationContributorshipSummaryComponent copy() { - CitationContributorshipSummaryComponent dst = new CitationContributorshipSummaryComponent(); + public CitationCitedArtifactPublicationFormPublishedInComponent copy() { + CitationCitedArtifactPublicationFormPublishedInComponent dst = new CitationCitedArtifactPublicationFormPublishedInComponent(); copyValues(dst); return dst; } - public void copyValues(CitationContributorshipSummaryComponent dst) { + public void copyValues(CitationCitedArtifactPublicationFormPublishedInComponent dst) { super.copyValues(dst); dst.type = type == null ? null : type.copy(); - dst.style = style == null ? null : style.copy(); - dst.source = source == null ? null : source.copy(); - dst.value = value == null ? null : value.copy(); + if (identifier != null) { + dst.identifier = new ArrayList(); + for (Identifier i : identifier) + dst.identifier.add(i.copy()); + }; + dst.title = title == null ? null : title.copy(); + dst.publisher = publisher == null ? null : publisher.copy(); + dst.publisherLocation = publisherLocation == null ? null : publisherLocation.copy(); } @Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof CitationContributorshipSummaryComponent)) + if (!(other_ instanceof CitationCitedArtifactPublicationFormPublishedInComponent)) return false; - CitationContributorshipSummaryComponent o = (CitationContributorshipSummaryComponent) other_; - return compareDeep(type, o.type, true) && compareDeep(style, o.style, true) && compareDeep(source, o.source, true) - && compareDeep(value, o.value, true); + CitationCitedArtifactPublicationFormPublishedInComponent o = (CitationCitedArtifactPublicationFormPublishedInComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(identifier, o.identifier, true) && compareDeep(title, o.title, true) + && compareDeep(publisher, o.publisher, true) && compareDeep(publisherLocation, o.publisherLocation, true) + ; } @Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof CitationContributorshipSummaryComponent)) + if (!(other_ instanceof CitationCitedArtifactPublicationFormPublishedInComponent)) return false; - CitationContributorshipSummaryComponent o = (CitationContributorshipSummaryComponent) other_; - return compareValues(value, o.value, true); + CitationCitedArtifactPublicationFormPublishedInComponent o = (CitationCitedArtifactPublicationFormPublishedInComponent) other_; + return compareValues(title, o.title, true) && compareValues(publisherLocation, o.publisherLocation, true) + ; } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, style, source, value - ); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, identifier, title + , publisher, publisherLocation); } public String fhirType() { - return "Citation.contributorship.summary"; + return "Citation.citedArtifact.publicationForm.publishedIn"; } } @Block() - public static class CitationAlternativeFormComponent extends BackboneElement implements IBaseBackboneElement { + public static class CitationCitedArtifactPublicationFormPeriodicReleaseComponent extends BackboneElement implements IBaseBackboneElement { /** - * Identify the medium/media in which the cited article is published, eg print, electronic or print-electronic. - */ - @Child(name = "publishingModel", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Identify the medium/media in which the cited article is published, eg print, electronic or print-electronic", formalDefinition="Identify the medium/media in which the cited article is published, eg print, electronic or print-electronic." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/publishing-model-type") - protected CodeableConcept publishingModel; - - /** - * Language in which this form of the article is published. - */ - @Child(name = "language", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Language in which this form of the article is published", formalDefinition="Language in which this form of the article is published." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages") - protected CodeableConcept language; - - /** - * The specific issue in which the cited article resides. - */ - @Child(name = "journalIssue", type = {}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The specific issue in which the cited article resides", formalDefinition="The specific issue in which the cited article resides." ) - protected CitationAlternativeFormJournalIssueComponent journalIssue; - - /** - * Indicates the inclusive pages for the article cited. - */ - @Child(name = "pagination", type = {}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Indicates the inclusive pages for the article cited", formalDefinition="Indicates the inclusive pages for the article cited." ) - protected CitationAlternativeFormPaginationComponent pagination; - - /** - * Citation detail for sources other than journals such as books and databases. - */ - @Child(name = "publicationInfo", type = {}, order=5, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Citation detail for sources other than journals", formalDefinition="Citation detail for sources other than journals such as books and databases." ) - protected CitationAlternativeFormPublicationInfoComponent publicationInfo; - - private static final long serialVersionUID = 1567425409L; - - /** - * Constructor - */ - public CitationAlternativeFormComponent() { - super(); - } - - /** - * @return {@link #publishingModel} (Identify the medium/media in which the cited article is published, eg print, electronic or print-electronic.) - */ - public CodeableConcept getPublishingModel() { - if (this.publishingModel == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormComponent.publishingModel"); - else if (Configuration.doAutoCreate()) - this.publishingModel = new CodeableConcept(); // cc - return this.publishingModel; - } - - public boolean hasPublishingModel() { - return this.publishingModel != null && !this.publishingModel.isEmpty(); - } - - /** - * @param value {@link #publishingModel} (Identify the medium/media in which the cited article is published, eg print, electronic or print-electronic.) - */ - public CitationAlternativeFormComponent setPublishingModel(CodeableConcept value) { - this.publishingModel = value; - return this; - } - - /** - * @return {@link #language} (Language in which this form of the article is published.) - */ - public CodeableConcept getLanguage() { - if (this.language == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormComponent.language"); - else if (Configuration.doAutoCreate()) - this.language = new CodeableConcept(); // cc - return this.language; - } - - public boolean hasLanguage() { - return this.language != null && !this.language.isEmpty(); - } - - /** - * @param value {@link #language} (Language in which this form of the article is published.) - */ - public CitationAlternativeFormComponent setLanguage(CodeableConcept value) { - this.language = value; - return this; - } - - /** - * @return {@link #journalIssue} (The specific issue in which the cited article resides.) - */ - public CitationAlternativeFormJournalIssueComponent getJournalIssue() { - if (this.journalIssue == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormComponent.journalIssue"); - else if (Configuration.doAutoCreate()) - this.journalIssue = new CitationAlternativeFormJournalIssueComponent(); // cc - return this.journalIssue; - } - - public boolean hasJournalIssue() { - return this.journalIssue != null && !this.journalIssue.isEmpty(); - } - - /** - * @param value {@link #journalIssue} (The specific issue in which the cited article resides.) - */ - public CitationAlternativeFormComponent setJournalIssue(CitationAlternativeFormJournalIssueComponent value) { - this.journalIssue = value; - return this; - } - - /** - * @return {@link #pagination} (Indicates the inclusive pages for the article cited.) - */ - public CitationAlternativeFormPaginationComponent getPagination() { - if (this.pagination == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormComponent.pagination"); - else if (Configuration.doAutoCreate()) - this.pagination = new CitationAlternativeFormPaginationComponent(); // cc - return this.pagination; - } - - public boolean hasPagination() { - return this.pagination != null && !this.pagination.isEmpty(); - } - - /** - * @param value {@link #pagination} (Indicates the inclusive pages for the article cited.) - */ - public CitationAlternativeFormComponent setPagination(CitationAlternativeFormPaginationComponent value) { - this.pagination = value; - return this; - } - - /** - * @return {@link #publicationInfo} (Citation detail for sources other than journals such as books and databases.) - */ - public CitationAlternativeFormPublicationInfoComponent getPublicationInfo() { - if (this.publicationInfo == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormComponent.publicationInfo"); - else if (Configuration.doAutoCreate()) - this.publicationInfo = new CitationAlternativeFormPublicationInfoComponent(); // cc - return this.publicationInfo; - } - - public boolean hasPublicationInfo() { - return this.publicationInfo != null && !this.publicationInfo.isEmpty(); - } - - /** - * @param value {@link #publicationInfo} (Citation detail for sources other than journals such as books and databases.) - */ - public CitationAlternativeFormComponent setPublicationInfo(CitationAlternativeFormPublicationInfoComponent value) { - this.publicationInfo = value; - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("publishingModel", "CodeableConcept", "Identify the medium/media in which the cited article is published, eg print, electronic or print-electronic.", 0, 1, publishingModel)); - children.add(new Property("language", "CodeableConcept", "Language in which this form of the article is published.", 0, 1, language)); - children.add(new Property("journalIssue", "", "The specific issue in which the cited article resides.", 0, 1, journalIssue)); - children.add(new Property("pagination", "", "Indicates the inclusive pages for the article cited.", 0, 1, pagination)); - children.add(new Property("publicationInfo", "", "Citation detail for sources other than journals such as books and databases.", 0, 1, publicationInfo)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 747318902: /*publishingModel*/ return new Property("publishingModel", "CodeableConcept", "Identify the medium/media in which the cited article is published, eg print, electronic or print-electronic.", 0, 1, publishingModel); - case -1613589672: /*language*/ return new Property("language", "CodeableConcept", "Language in which this form of the article is published.", 0, 1, language); - case -716835870: /*journalIssue*/ return new Property("journalIssue", "", "The specific issue in which the cited article resides.", 0, 1, journalIssue); - case 1297692570: /*pagination*/ return new Property("pagination", "", "Indicates the inclusive pages for the article cited.", 0, 1, pagination); - case 1470727418: /*publicationInfo*/ return new Property("publicationInfo", "", "Citation detail for sources other than journals such as books and databases.", 0, 1, publicationInfo); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 747318902: /*publishingModel*/ return this.publishingModel == null ? new Base[0] : new Base[] {this.publishingModel}; // CodeableConcept - case -1613589672: /*language*/ return this.language == null ? new Base[0] : new Base[] {this.language}; // CodeableConcept - case -716835870: /*journalIssue*/ return this.journalIssue == null ? new Base[0] : new Base[] {this.journalIssue}; // CitationAlternativeFormJournalIssueComponent - case 1297692570: /*pagination*/ return this.pagination == null ? new Base[0] : new Base[] {this.pagination}; // CitationAlternativeFormPaginationComponent - case 1470727418: /*publicationInfo*/ return this.publicationInfo == null ? new Base[0] : new Base[] {this.publicationInfo}; // CitationAlternativeFormPublicationInfoComponent - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 747318902: // publishingModel - this.publishingModel = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; - case -1613589672: // language - this.language = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; - case -716835870: // journalIssue - this.journalIssue = (CitationAlternativeFormJournalIssueComponent) value; // CitationAlternativeFormJournalIssueComponent - return value; - case 1297692570: // pagination - this.pagination = (CitationAlternativeFormPaginationComponent) value; // CitationAlternativeFormPaginationComponent - return value; - case 1470727418: // publicationInfo - this.publicationInfo = (CitationAlternativeFormPublicationInfoComponent) value; // CitationAlternativeFormPublicationInfoComponent - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("publishingModel")) { - this.publishingModel = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("language")) { - this.language = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("journalIssue")) { - this.journalIssue = (CitationAlternativeFormJournalIssueComponent) value; // CitationAlternativeFormJournalIssueComponent - } else if (name.equals("pagination")) { - this.pagination = (CitationAlternativeFormPaginationComponent) value; // CitationAlternativeFormPaginationComponent - } else if (name.equals("publicationInfo")) { - this.publicationInfo = (CitationAlternativeFormPublicationInfoComponent) value; // CitationAlternativeFormPublicationInfoComponent - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 747318902: return getPublishingModel(); - case -1613589672: return getLanguage(); - case -716835870: return getJournalIssue(); - case 1297692570: return getPagination(); - case 1470727418: return getPublicationInfo(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 747318902: /*publishingModel*/ return new String[] {"CodeableConcept"}; - case -1613589672: /*language*/ return new String[] {"CodeableConcept"}; - case -716835870: /*journalIssue*/ return new String[] {}; - case 1297692570: /*pagination*/ return new String[] {}; - case 1470727418: /*publicationInfo*/ return new String[] {}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("publishingModel")) { - this.publishingModel = new CodeableConcept(); - return this.publishingModel; - } - else if (name.equals("language")) { - this.language = new CodeableConcept(); - return this.language; - } - else if (name.equals("journalIssue")) { - this.journalIssue = new CitationAlternativeFormJournalIssueComponent(); - return this.journalIssue; - } - else if (name.equals("pagination")) { - this.pagination = new CitationAlternativeFormPaginationComponent(); - return this.pagination; - } - else if (name.equals("publicationInfo")) { - this.publicationInfo = new CitationAlternativeFormPublicationInfoComponent(); - return this.publicationInfo; - } - else - return super.addChild(name); - } - - public CitationAlternativeFormComponent copy() { - CitationAlternativeFormComponent dst = new CitationAlternativeFormComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationAlternativeFormComponent dst) { - super.copyValues(dst); - dst.publishingModel = publishingModel == null ? null : publishingModel.copy(); - dst.language = language == null ? null : language.copy(); - dst.journalIssue = journalIssue == null ? null : journalIssue.copy(); - dst.pagination = pagination == null ? null : pagination.copy(); - dst.publicationInfo = publicationInfo == null ? null : publicationInfo.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationAlternativeFormComponent)) - return false; - CitationAlternativeFormComponent o = (CitationAlternativeFormComponent) other_; - return compareDeep(publishingModel, o.publishingModel, true) && compareDeep(language, o.language, true) - && compareDeep(journalIssue, o.journalIssue, true) && compareDeep(pagination, o.pagination, true) - && compareDeep(publicationInfo, o.publicationInfo, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationAlternativeFormComponent)) - return false; - CitationAlternativeFormComponent o = (CitationAlternativeFormComponent) other_; - return true; - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(publishingModel, language - , journalIssue, pagination, publicationInfo); - } - - public String fhirType() { - return "Citation.alternativeForm"; - - } - - } - - @Block() - public static class CitationAlternativeFormJournalIssueComponent extends BackboneElement implements IBaseBackboneElement { - /** - * Describes the form of the medium cited. Common codes are "Internet" or "Print.". + * Describes the form of the medium cited. Common codes are "Internet" or "Print". */ @Child(name = "citedMedium", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Internet or Print", formalDefinition="Describes the form of the medium cited. Common codes are \"Internet\" or \"Print.\"." ) + @Description(shortDefinition="Internet or Print", formalDefinition="Describes the form of the medium cited. Common codes are \"Internet\" or \"Print\"." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/journal-issue-medium") protected CodeableConcept citedMedium; @@ -6098,28 +5191,28 @@ public class Citation extends MetadataResource { protected StringType issue; /** - * Defining the date on which the issue of the joutnal was published. + * Defining the date on which the issue of the journal was published. */ - @Child(name = "publicationDate", type = {}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Defining the date on which the issue of the joutnal was published", formalDefinition="Defining the date on which the issue of the joutnal was published." ) - protected CitationAlternativeFormJournalIssuePublicationDateComponent publicationDate; + @Child(name = "dateOfPublication", type = {}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Defining the date on which the issue of the journal was published", formalDefinition="Defining the date on which the issue of the journal was published." ) + protected CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent dateOfPublication; - private static final long serialVersionUID = 2080837313L; + private static final long serialVersionUID = -474554951L; /** * Constructor */ - public CitationAlternativeFormJournalIssueComponent() { + public CitationCitedArtifactPublicationFormPeriodicReleaseComponent() { super(); } /** - * @return {@link #citedMedium} (Describes the form of the medium cited. Common codes are "Internet" or "Print.".) + * @return {@link #citedMedium} (Describes the form of the medium cited. Common codes are "Internet" or "Print".) */ public CodeableConcept getCitedMedium() { if (this.citedMedium == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormJournalIssueComponent.citedMedium"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormPeriodicReleaseComponent.citedMedium"); else if (Configuration.doAutoCreate()) this.citedMedium = new CodeableConcept(); // cc return this.citedMedium; @@ -6130,9 +5223,9 @@ public class Citation extends MetadataResource { } /** - * @param value {@link #citedMedium} (Describes the form of the medium cited. Common codes are "Internet" or "Print.".) + * @param value {@link #citedMedium} (Describes the form of the medium cited. Common codes are "Internet" or "Print".) */ - public CitationAlternativeFormJournalIssueComponent setCitedMedium(CodeableConcept value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseComponent setCitedMedium(CodeableConcept value) { this.citedMedium = value; return this; } @@ -6143,7 +5236,7 @@ public class Citation extends MetadataResource { public StringType getVolumeElement() { if (this.volume == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormJournalIssueComponent.volume"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormPeriodicReleaseComponent.volume"); else if (Configuration.doAutoCreate()) this.volume = new StringType(); // bb return this.volume; @@ -6160,7 +5253,7 @@ public class Citation extends MetadataResource { /** * @param value {@link #volume} (Volume number of journal in which the article is published.). This is the underlying object with id, value and extensions. The accessor "getVolume" gives direct access to the value */ - public CitationAlternativeFormJournalIssueComponent setVolumeElement(StringType value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseComponent setVolumeElement(StringType value) { this.volume = value; return this; } @@ -6175,7 +5268,7 @@ public class Citation extends MetadataResource { /** * @param value Volume number of journal in which the article is published. */ - public CitationAlternativeFormJournalIssueComponent setVolume(String value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseComponent setVolume(String value) { if (Utilities.noString(value)) this.volume = null; else { @@ -6192,7 +5285,7 @@ public class Citation extends MetadataResource { public StringType getIssueElement() { if (this.issue == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormJournalIssueComponent.issue"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormPeriodicReleaseComponent.issue"); else if (Configuration.doAutoCreate()) this.issue = new StringType(); // bb return this.issue; @@ -6209,7 +5302,7 @@ public class Citation extends MetadataResource { /** * @param value {@link #issue} (Issue, part or supplement of journal in which the article is published.). This is the underlying object with id, value and extensions. The accessor "getIssue" gives direct access to the value */ - public CitationAlternativeFormJournalIssueComponent setIssueElement(StringType value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseComponent setIssueElement(StringType value) { this.issue = value; return this; } @@ -6224,7 +5317,7 @@ public class Citation extends MetadataResource { /** * @param value Issue, part or supplement of journal in which the article is published. */ - public CitationAlternativeFormJournalIssueComponent setIssue(String value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseComponent setIssue(String value) { if (Utilities.noString(value)) this.issue = null; else { @@ -6236,44 +5329,44 @@ public class Citation extends MetadataResource { } /** - * @return {@link #publicationDate} (Defining the date on which the issue of the joutnal was published.) + * @return {@link #dateOfPublication} (Defining the date on which the issue of the journal was published.) */ - public CitationAlternativeFormJournalIssuePublicationDateComponent getPublicationDate() { - if (this.publicationDate == null) + public CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent getDateOfPublication() { + if (this.dateOfPublication == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormJournalIssueComponent.publicationDate"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormPeriodicReleaseComponent.dateOfPublication"); else if (Configuration.doAutoCreate()) - this.publicationDate = new CitationAlternativeFormJournalIssuePublicationDateComponent(); // cc - return this.publicationDate; + this.dateOfPublication = new CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent(); // cc + return this.dateOfPublication; } - public boolean hasPublicationDate() { - return this.publicationDate != null && !this.publicationDate.isEmpty(); + public boolean hasDateOfPublication() { + return this.dateOfPublication != null && !this.dateOfPublication.isEmpty(); } /** - * @param value {@link #publicationDate} (Defining the date on which the issue of the joutnal was published.) + * @param value {@link #dateOfPublication} (Defining the date on which the issue of the journal was published.) */ - public CitationAlternativeFormJournalIssueComponent setPublicationDate(CitationAlternativeFormJournalIssuePublicationDateComponent value) { - this.publicationDate = value; + public CitationCitedArtifactPublicationFormPeriodicReleaseComponent setDateOfPublication(CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent value) { + this.dateOfPublication = value; return this; } protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("citedMedium", "CodeableConcept", "Describes the form of the medium cited. Common codes are \"Internet\" or \"Print.\".", 0, 1, citedMedium)); + children.add(new Property("citedMedium", "CodeableConcept", "Describes the form of the medium cited. Common codes are \"Internet\" or \"Print\".", 0, 1, citedMedium)); children.add(new Property("volume", "string", "Volume number of journal in which the article is published.", 0, 1, volume)); children.add(new Property("issue", "string", "Issue, part or supplement of journal in which the article is published.", 0, 1, issue)); - children.add(new Property("publicationDate", "", "Defining the date on which the issue of the joutnal was published.", 0, 1, publicationDate)); + children.add(new Property("dateOfPublication", "", "Defining the date on which the issue of the journal was published.", 0, 1, dateOfPublication)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 612116418: /*citedMedium*/ return new Property("citedMedium", "CodeableConcept", "Describes the form of the medium cited. Common codes are \"Internet\" or \"Print.\".", 0, 1, citedMedium); + case 612116418: /*citedMedium*/ return new Property("citedMedium", "CodeableConcept", "Describes the form of the medium cited. Common codes are \"Internet\" or \"Print\".", 0, 1, citedMedium); case -810883302: /*volume*/ return new Property("volume", "string", "Volume number of journal in which the article is published.", 0, 1, volume); case 100509913: /*issue*/ return new Property("issue", "string", "Issue, part or supplement of journal in which the article is published.", 0, 1, issue); - case 1470566394: /*publicationDate*/ return new Property("publicationDate", "", "Defining the date on which the issue of the joutnal was published.", 0, 1, publicationDate); + case -1662473529: /*dateOfPublication*/ return new Property("dateOfPublication", "", "Defining the date on which the issue of the journal was published.", 0, 1, dateOfPublication); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -6285,7 +5378,7 @@ public class Citation extends MetadataResource { case 612116418: /*citedMedium*/ return this.citedMedium == null ? new Base[0] : new Base[] {this.citedMedium}; // CodeableConcept case -810883302: /*volume*/ return this.volume == null ? new Base[0] : new Base[] {this.volume}; // StringType case 100509913: /*issue*/ return this.issue == null ? new Base[0] : new Base[] {this.issue}; // StringType - case 1470566394: /*publicationDate*/ return this.publicationDate == null ? new Base[0] : new Base[] {this.publicationDate}; // CitationAlternativeFormJournalIssuePublicationDateComponent + case -1662473529: /*dateOfPublication*/ return this.dateOfPublication == null ? new Base[0] : new Base[] {this.dateOfPublication}; // CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent default: return super.getProperty(hash, name, checkValid); } @@ -6303,8 +5396,8 @@ public class Citation extends MetadataResource { case 100509913: // issue this.issue = TypeConvertor.castToString(value); // StringType return value; - case 1470566394: // publicationDate - this.publicationDate = (CitationAlternativeFormJournalIssuePublicationDateComponent) value; // CitationAlternativeFormJournalIssuePublicationDateComponent + case -1662473529: // dateOfPublication + this.dateOfPublication = (CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent) value; // CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent return value; default: return super.setProperty(hash, name, value); } @@ -6319,8 +5412,8 @@ public class Citation extends MetadataResource { this.volume = TypeConvertor.castToString(value); // StringType } else if (name.equals("issue")) { this.issue = TypeConvertor.castToString(value); // StringType - } else if (name.equals("publicationDate")) { - this.publicationDate = (CitationAlternativeFormJournalIssuePublicationDateComponent) value; // CitationAlternativeFormJournalIssuePublicationDateComponent + } else if (name.equals("dateOfPublication")) { + this.dateOfPublication = (CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent) value; // CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent } else return super.setProperty(name, value); return value; @@ -6332,7 +5425,7 @@ public class Citation extends MetadataResource { case 612116418: return getCitedMedium(); case -810883302: return getVolumeElement(); case 100509913: return getIssueElement(); - case 1470566394: return getPublicationDate(); + case -1662473529: return getDateOfPublication(); default: return super.makeProperty(hash, name); } @@ -6344,7 +5437,7 @@ public class Citation extends MetadataResource { case 612116418: /*citedMedium*/ return new String[] {"CodeableConcept"}; case -810883302: /*volume*/ return new String[] {"string"}; case 100509913: /*issue*/ return new String[] {"string"}; - case 1470566394: /*publicationDate*/ return new String[] {}; + case -1662473529: /*dateOfPublication*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -6357,68 +5450,68 @@ public class Citation extends MetadataResource { return this.citedMedium; } else if (name.equals("volume")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.journalIssue.volume"); + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.volume"); } else if (name.equals("issue")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.journalIssue.issue"); + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.issue"); } - else if (name.equals("publicationDate")) { - this.publicationDate = new CitationAlternativeFormJournalIssuePublicationDateComponent(); - return this.publicationDate; + else if (name.equals("dateOfPublication")) { + this.dateOfPublication = new CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent(); + return this.dateOfPublication; } else return super.addChild(name); } - public CitationAlternativeFormJournalIssueComponent copy() { - CitationAlternativeFormJournalIssueComponent dst = new CitationAlternativeFormJournalIssueComponent(); + public CitationCitedArtifactPublicationFormPeriodicReleaseComponent copy() { + CitationCitedArtifactPublicationFormPeriodicReleaseComponent dst = new CitationCitedArtifactPublicationFormPeriodicReleaseComponent(); copyValues(dst); return dst; } - public void copyValues(CitationAlternativeFormJournalIssueComponent dst) { + public void copyValues(CitationCitedArtifactPublicationFormPeriodicReleaseComponent dst) { super.copyValues(dst); dst.citedMedium = citedMedium == null ? null : citedMedium.copy(); dst.volume = volume == null ? null : volume.copy(); dst.issue = issue == null ? null : issue.copy(); - dst.publicationDate = publicationDate == null ? null : publicationDate.copy(); + dst.dateOfPublication = dateOfPublication == null ? null : dateOfPublication.copy(); } @Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof CitationAlternativeFormJournalIssueComponent)) + if (!(other_ instanceof CitationCitedArtifactPublicationFormPeriodicReleaseComponent)) return false; - CitationAlternativeFormJournalIssueComponent o = (CitationAlternativeFormJournalIssueComponent) other_; + CitationCitedArtifactPublicationFormPeriodicReleaseComponent o = (CitationCitedArtifactPublicationFormPeriodicReleaseComponent) other_; return compareDeep(citedMedium, o.citedMedium, true) && compareDeep(volume, o.volume, true) && compareDeep(issue, o.issue, true) - && compareDeep(publicationDate, o.publicationDate, true); + && compareDeep(dateOfPublication, o.dateOfPublication, true); } @Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof CitationAlternativeFormJournalIssueComponent)) + if (!(other_ instanceof CitationCitedArtifactPublicationFormPeriodicReleaseComponent)) return false; - CitationAlternativeFormJournalIssueComponent o = (CitationAlternativeFormJournalIssueComponent) other_; + CitationCitedArtifactPublicationFormPeriodicReleaseComponent o = (CitationCitedArtifactPublicationFormPeriodicReleaseComponent) other_; return compareValues(volume, o.volume, true) && compareValues(issue, o.issue, true); } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(citedMedium, volume, issue - , publicationDate); + , dateOfPublication); } public String fhirType() { - return "Citation.alternativeForm.journalIssue"; + return "Citation.citedArtifact.publicationForm.periodicRelease"; } } @Block() - public static class CitationAlternativeFormJournalIssuePublicationDateComponent extends BackboneElement implements IBaseBackboneElement { + public static class CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent extends BackboneElement implements IBaseBackboneElement { /** * Date on which the issue of the journal was published. */ @@ -6451,7 +5544,7 @@ public class Citation extends MetadataResource { * Spring, Summer, Fall/Autumn, Winter. */ @Child(name = "season", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Season on which the issue of the jornal was published", formalDefinition="Spring, Summer, Fall/Autumn, Winter." ) + @Description(shortDefinition="Season on which the issue of the journal was published", formalDefinition="Spring, Summer, Fall/Autumn, Winter." ) protected StringType season; /** @@ -6466,7 +5559,7 @@ public class Citation extends MetadataResource { /** * Constructor */ - public CitationAlternativeFormJournalIssuePublicationDateComponent() { + public CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent() { super(); } @@ -6476,7 +5569,7 @@ public class Citation extends MetadataResource { public DateType getDateElement() { if (this.date == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormJournalIssuePublicationDateComponent.date"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent.date"); else if (Configuration.doAutoCreate()) this.date = new DateType(); // bb return this.date; @@ -6493,7 +5586,7 @@ public class Citation extends MetadataResource { /** * @param value {@link #date} (Date on which the issue of the journal was published.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value */ - public CitationAlternativeFormJournalIssuePublicationDateComponent setDateElement(DateType value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent setDateElement(DateType value) { this.date = value; return this; } @@ -6508,7 +5601,7 @@ public class Citation extends MetadataResource { /** * @param value Date on which the issue of the journal was published. */ - public CitationAlternativeFormJournalIssuePublicationDateComponent setDate(Date value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent setDate(Date value) { if (value == null) this.date = null; else { @@ -6525,7 +5618,7 @@ public class Citation extends MetadataResource { public StringType getYearElement() { if (this.year == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormJournalIssuePublicationDateComponent.year"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent.year"); else if (Configuration.doAutoCreate()) this.year = new StringType(); // bb return this.year; @@ -6542,7 +5635,7 @@ public class Citation extends MetadataResource { /** * @param value {@link #year} (Year on which the issue of the journal was published.). This is the underlying object with id, value and extensions. The accessor "getYear" gives direct access to the value */ - public CitationAlternativeFormJournalIssuePublicationDateComponent setYearElement(StringType value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent setYearElement(StringType value) { this.year = value; return this; } @@ -6557,7 +5650,7 @@ public class Citation extends MetadataResource { /** * @param value Year on which the issue of the journal was published. */ - public CitationAlternativeFormJournalIssuePublicationDateComponent setYear(String value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent setYear(String value) { if (Utilities.noString(value)) this.year = null; else { @@ -6574,7 +5667,7 @@ public class Citation extends MetadataResource { public StringType getMonthElement() { if (this.month == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormJournalIssuePublicationDateComponent.month"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent.month"); else if (Configuration.doAutoCreate()) this.month = new StringType(); // bb return this.month; @@ -6591,7 +5684,7 @@ public class Citation extends MetadataResource { /** * @param value {@link #month} (Month on which the issue of the journal was published.). This is the underlying object with id, value and extensions. The accessor "getMonth" gives direct access to the value */ - public CitationAlternativeFormJournalIssuePublicationDateComponent setMonthElement(StringType value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent setMonthElement(StringType value) { this.month = value; return this; } @@ -6606,7 +5699,7 @@ public class Citation extends MetadataResource { /** * @param value Month on which the issue of the journal was published. */ - public CitationAlternativeFormJournalIssuePublicationDateComponent setMonth(String value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent setMonth(String value) { if (Utilities.noString(value)) this.month = null; else { @@ -6623,7 +5716,7 @@ public class Citation extends MetadataResource { public StringType getDayElement() { if (this.day == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormJournalIssuePublicationDateComponent.day"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent.day"); else if (Configuration.doAutoCreate()) this.day = new StringType(); // bb return this.day; @@ -6640,7 +5733,7 @@ public class Citation extends MetadataResource { /** * @param value {@link #day} (Day on which the issue of the journal was published.). This is the underlying object with id, value and extensions. The accessor "getDay" gives direct access to the value */ - public CitationAlternativeFormJournalIssuePublicationDateComponent setDayElement(StringType value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent setDayElement(StringType value) { this.day = value; return this; } @@ -6655,7 +5748,7 @@ public class Citation extends MetadataResource { /** * @param value Day on which the issue of the journal was published. */ - public CitationAlternativeFormJournalIssuePublicationDateComponent setDay(String value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent setDay(String value) { if (Utilities.noString(value)) this.day = null; else { @@ -6672,7 +5765,7 @@ public class Citation extends MetadataResource { public StringType getSeasonElement() { if (this.season == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormJournalIssuePublicationDateComponent.season"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent.season"); else if (Configuration.doAutoCreate()) this.season = new StringType(); // bb return this.season; @@ -6689,7 +5782,7 @@ public class Citation extends MetadataResource { /** * @param value {@link #season} (Spring, Summer, Fall/Autumn, Winter.). This is the underlying object with id, value and extensions. The accessor "getSeason" gives direct access to the value */ - public CitationAlternativeFormJournalIssuePublicationDateComponent setSeasonElement(StringType value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent setSeasonElement(StringType value) { this.season = value; return this; } @@ -6704,7 +5797,7 @@ public class Citation extends MetadataResource { /** * @param value Spring, Summer, Fall/Autumn, Winter. */ - public CitationAlternativeFormJournalIssuePublicationDateComponent setSeason(String value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent setSeason(String value) { if (Utilities.noString(value)) this.season = null; else { @@ -6721,7 +5814,7 @@ public class Citation extends MetadataResource { public StringType getTextElement() { if (this.text == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormJournalIssuePublicationDateComponent.text"); + throw new Error("Attempt to auto-create CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent.text"); else if (Configuration.doAutoCreate()) this.text = new StringType(); // bb return this.text; @@ -6738,7 +5831,7 @@ public class Citation extends MetadataResource { /** * @param value {@link #text} (Text representation of the date of which the issue of the journal was published.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value */ - public CitationAlternativeFormJournalIssuePublicationDateComponent setTextElement(StringType value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent setTextElement(StringType value) { this.text = value; return this; } @@ -6753,7 +5846,7 @@ public class Citation extends MetadataResource { /** * @param value Text representation of the date of which the issue of the journal was published. */ - public CitationAlternativeFormJournalIssuePublicationDateComponent setText(String value) { + public CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent setText(String value) { if (Utilities.noString(value)) this.text = null; else { @@ -6878,34 +5971,34 @@ public class Citation extends MetadataResource { @Override public Base addChild(String name) throws FHIRException { if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.journalIssue.publicationDate.date"); + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.date"); } else if (name.equals("year")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.journalIssue.publicationDate.year"); + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.year"); } else if (name.equals("month")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.journalIssue.publicationDate.month"); + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.month"); } else if (name.equals("day")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.journalIssue.publicationDate.day"); + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.day"); } else if (name.equals("season")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.journalIssue.publicationDate.season"); + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.season"); } else if (name.equals("text")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.journalIssue.publicationDate.text"); + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication.text"); } else return super.addChild(name); } - public CitationAlternativeFormJournalIssuePublicationDateComponent copy() { - CitationAlternativeFormJournalIssuePublicationDateComponent dst = new CitationAlternativeFormJournalIssuePublicationDateComponent(); + public CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent copy() { + CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent dst = new CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent(); copyValues(dst); return dst; } - public void copyValues(CitationAlternativeFormJournalIssuePublicationDateComponent dst) { + public void copyValues(CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent dst) { super.copyValues(dst); dst.date = date == null ? null : date.copy(); dst.year = year == null ? null : year.copy(); @@ -6919,9 +6012,9 @@ public class Citation extends MetadataResource { public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof CitationAlternativeFormJournalIssuePublicationDateComponent)) + if (!(other_ instanceof CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent)) return false; - CitationAlternativeFormJournalIssuePublicationDateComponent o = (CitationAlternativeFormJournalIssuePublicationDateComponent) other_; + CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent o = (CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent) other_; return compareDeep(date, o.date, true) && compareDeep(year, o.year, true) && compareDeep(month, o.month, true) && compareDeep(day, o.day, true) && compareDeep(season, o.season, true) && compareDeep(text, o.text, true) ; @@ -6931,9 +6024,9 @@ public class Citation extends MetadataResource { public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof CitationAlternativeFormJournalIssuePublicationDateComponent)) + if (!(other_ instanceof CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent)) return false; - CitationAlternativeFormJournalIssuePublicationDateComponent o = (CitationAlternativeFormJournalIssuePublicationDateComponent) other_; + CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent o = (CitationCitedArtifactPublicationFormPeriodicReleaseDateOfPublicationComponent) other_; return compareValues(date, o.date, true) && compareValues(year, o.year, true) && compareValues(month, o.month, true) && compareValues(day, o.day, true) && compareValues(season, o.season, true) && compareValues(text, o.text, true) ; @@ -6945,757 +6038,45 @@ public class Citation extends MetadataResource { } public String fhirType() { - return "Citation.alternativeForm.journalIssue.publicationDate"; + return "Citation.citedArtifact.publicationForm.periodicRelease.dateOfPublication"; } } @Block() - public static class CitationAlternativeFormPaginationComponent extends BackboneElement implements IBaseBackboneElement { + public static class CitationCitedArtifactWebLocationComponent extends BackboneElement implements IBaseBackboneElement { /** - * Used for full display of pagination. - */ - @Child(name = "pageString", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used for full display of pagination", formalDefinition="Used for full display of pagination." ) - protected StringType pageString; - - /** - * Used for isolated representation of first page. - */ - @Child(name = "firstPage", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used for isolated representation of first page", formalDefinition="Used for isolated representation of first page." ) - protected StringType firstPage; - - /** - * Used for isolated representation of last page. - */ - @Child(name = "lastPage", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Used for isolated representation of last page", formalDefinition="Used for isolated representation of last page." ) - protected StringType lastPage; - - private static final long serialVersionUID = -690699049L; - - /** - * Constructor - */ - public CitationAlternativeFormPaginationComponent() { - super(); - } - - /** - * @return {@link #pageString} (Used for full display of pagination.). This is the underlying object with id, value and extensions. The accessor "getPageString" gives direct access to the value - */ - public StringType getPageStringElement() { - if (this.pageString == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormPaginationComponent.pageString"); - else if (Configuration.doAutoCreate()) - this.pageString = new StringType(); // bb - return this.pageString; - } - - public boolean hasPageStringElement() { - return this.pageString != null && !this.pageString.isEmpty(); - } - - public boolean hasPageString() { - return this.pageString != null && !this.pageString.isEmpty(); - } - - /** - * @param value {@link #pageString} (Used for full display of pagination.). This is the underlying object with id, value and extensions. The accessor "getPageString" gives direct access to the value - */ - public CitationAlternativeFormPaginationComponent setPageStringElement(StringType value) { - this.pageString = value; - return this; - } - - /** - * @return Used for full display of pagination. - */ - public String getPageString() { - return this.pageString == null ? null : this.pageString.getValue(); - } - - /** - * @param value Used for full display of pagination. - */ - public CitationAlternativeFormPaginationComponent setPageString(String value) { - if (Utilities.noString(value)) - this.pageString = null; - else { - if (this.pageString == null) - this.pageString = new StringType(); - this.pageString.setValue(value); - } - return this; - } - - /** - * @return {@link #firstPage} (Used for isolated representation of first page.). This is the underlying object with id, value and extensions. The accessor "getFirstPage" gives direct access to the value - */ - public StringType getFirstPageElement() { - if (this.firstPage == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormPaginationComponent.firstPage"); - else if (Configuration.doAutoCreate()) - this.firstPage = new StringType(); // bb - return this.firstPage; - } - - public boolean hasFirstPageElement() { - return this.firstPage != null && !this.firstPage.isEmpty(); - } - - public boolean hasFirstPage() { - return this.firstPage != null && !this.firstPage.isEmpty(); - } - - /** - * @param value {@link #firstPage} (Used for isolated representation of first page.). This is the underlying object with id, value and extensions. The accessor "getFirstPage" gives direct access to the value - */ - public CitationAlternativeFormPaginationComponent setFirstPageElement(StringType value) { - this.firstPage = value; - return this; - } - - /** - * @return Used for isolated representation of first page. - */ - public String getFirstPage() { - return this.firstPage == null ? null : this.firstPage.getValue(); - } - - /** - * @param value Used for isolated representation of first page. - */ - public CitationAlternativeFormPaginationComponent setFirstPage(String value) { - if (Utilities.noString(value)) - this.firstPage = null; - else { - if (this.firstPage == null) - this.firstPage = new StringType(); - this.firstPage.setValue(value); - } - return this; - } - - /** - * @return {@link #lastPage} (Used for isolated representation of last page.). This is the underlying object with id, value and extensions. The accessor "getLastPage" gives direct access to the value - */ - public StringType getLastPageElement() { - if (this.lastPage == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormPaginationComponent.lastPage"); - else if (Configuration.doAutoCreate()) - this.lastPage = new StringType(); // bb - return this.lastPage; - } - - public boolean hasLastPageElement() { - return this.lastPage != null && !this.lastPage.isEmpty(); - } - - public boolean hasLastPage() { - return this.lastPage != null && !this.lastPage.isEmpty(); - } - - /** - * @param value {@link #lastPage} (Used for isolated representation of last page.). This is the underlying object with id, value and extensions. The accessor "getLastPage" gives direct access to the value - */ - public CitationAlternativeFormPaginationComponent setLastPageElement(StringType value) { - this.lastPage = value; - return this; - } - - /** - * @return Used for isolated representation of last page. - */ - public String getLastPage() { - return this.lastPage == null ? null : this.lastPage.getValue(); - } - - /** - * @param value Used for isolated representation of last page. - */ - public CitationAlternativeFormPaginationComponent setLastPage(String value) { - if (Utilities.noString(value)) - this.lastPage = null; - else { - if (this.lastPage == null) - this.lastPage = new StringType(); - this.lastPage.setValue(value); - } - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("pageString", "string", "Used for full display of pagination.", 0, 1, pageString)); - children.add(new Property("firstPage", "string", "Used for isolated representation of first page.", 0, 1, firstPage)); - children.add(new Property("lastPage", "string", "Used for isolated representation of last page.", 0, 1, lastPage)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 1287145344: /*pageString*/ return new Property("pageString", "string", "Used for full display of pagination.", 0, 1, pageString); - case 132895071: /*firstPage*/ return new Property("firstPage", "string", "Used for isolated representation of first page.", 0, 1, firstPage); - case -1459540411: /*lastPage*/ return new Property("lastPage", "string", "Used for isolated representation of last page.", 0, 1, lastPage); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 1287145344: /*pageString*/ return this.pageString == null ? new Base[0] : new Base[] {this.pageString}; // StringType - case 132895071: /*firstPage*/ return this.firstPage == null ? new Base[0] : new Base[] {this.firstPage}; // StringType - case -1459540411: /*lastPage*/ return this.lastPage == null ? new Base[0] : new Base[] {this.lastPage}; // StringType - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 1287145344: // pageString - this.pageString = TypeConvertor.castToString(value); // StringType - return value; - case 132895071: // firstPage - this.firstPage = TypeConvertor.castToString(value); // StringType - return value; - case -1459540411: // lastPage - this.lastPage = TypeConvertor.castToString(value); // StringType - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("pageString")) { - this.pageString = TypeConvertor.castToString(value); // StringType - } else if (name.equals("firstPage")) { - this.firstPage = TypeConvertor.castToString(value); // StringType - } else if (name.equals("lastPage")) { - this.lastPage = TypeConvertor.castToString(value); // StringType - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 1287145344: return getPageStringElement(); - case 132895071: return getFirstPageElement(); - case -1459540411: return getLastPageElement(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 1287145344: /*pageString*/ return new String[] {"string"}; - case 132895071: /*firstPage*/ return new String[] {"string"}; - case -1459540411: /*lastPage*/ return new String[] {"string"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("pageString")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.pagination.pageString"); - } - else if (name.equals("firstPage")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.pagination.firstPage"); - } - else if (name.equals("lastPage")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.pagination.lastPage"); - } - else - return super.addChild(name); - } - - public CitationAlternativeFormPaginationComponent copy() { - CitationAlternativeFormPaginationComponent dst = new CitationAlternativeFormPaginationComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationAlternativeFormPaginationComponent dst) { - super.copyValues(dst); - dst.pageString = pageString == null ? null : pageString.copy(); - dst.firstPage = firstPage == null ? null : firstPage.copy(); - dst.lastPage = lastPage == null ? null : lastPage.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationAlternativeFormPaginationComponent)) - return false; - CitationAlternativeFormPaginationComponent o = (CitationAlternativeFormPaginationComponent) other_; - return compareDeep(pageString, o.pageString, true) && compareDeep(firstPage, o.firstPage, true) - && compareDeep(lastPage, o.lastPage, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationAlternativeFormPaginationComponent)) - return false; - CitationAlternativeFormPaginationComponent o = (CitationAlternativeFormPaginationComponent) other_; - return compareValues(pageString, o.pageString, true) && compareValues(firstPage, o.firstPage, true) - && compareValues(lastPage, o.lastPage, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(pageString, firstPage, lastPage - ); - } - - public String fhirType() { - return "Citation.alternativeForm.pagination"; - - } - - } - - @Block() - public static class CitationAlternativeFormPublicationInfoComponent extends BackboneElement implements IBaseBackboneElement { - /** - * The collection the cited article is published in. - */ - @Child(name = "publishedIn", type = {}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The collection the cited article is published in", formalDefinition="The collection the cited article is published in." ) - protected CitationAlternativeFormPublicationInfoPublishedInComponent publishedIn; - - /** - * The date the article was added to the database. - */ - @Child(name = "entryDate", type = {DateTimeType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The date the article was added to the database", formalDefinition="The date the article was added to the database." ) - protected DateTimeType entryDate; - - /** - * The date the article was last revised or updated in the database. - */ - @Child(name = "revisionDate", type = {DateTimeType.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The date the article was last revised or updated in the database", formalDefinition="The date the article was last revised or updated in the database." ) - protected DateTimeType revisionDate; - - /** - * Actual or Approximate number of pages or screens. - */ - @Child(name = "pageCount", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Number of pages or screens", formalDefinition="Actual or Approximate number of pages or screens." ) - protected StringType pageCount; - - private static final long serialVersionUID = -1109876499L; - - /** - * Constructor - */ - public CitationAlternativeFormPublicationInfoComponent() { - super(); - } - - /** - * @return {@link #publishedIn} (The collection the cited article is published in.) - */ - public CitationAlternativeFormPublicationInfoPublishedInComponent getPublishedIn() { - if (this.publishedIn == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormPublicationInfoComponent.publishedIn"); - else if (Configuration.doAutoCreate()) - this.publishedIn = new CitationAlternativeFormPublicationInfoPublishedInComponent(); // cc - return this.publishedIn; - } - - public boolean hasPublishedIn() { - return this.publishedIn != null && !this.publishedIn.isEmpty(); - } - - /** - * @param value {@link #publishedIn} (The collection the cited article is published in.) - */ - public CitationAlternativeFormPublicationInfoComponent setPublishedIn(CitationAlternativeFormPublicationInfoPublishedInComponent value) { - this.publishedIn = value; - return this; - } - - /** - * @return {@link #entryDate} (The date the article was added to the database.). This is the underlying object with id, value and extensions. The accessor "getEntryDate" gives direct access to the value - */ - public DateTimeType getEntryDateElement() { - if (this.entryDate == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormPublicationInfoComponent.entryDate"); - else if (Configuration.doAutoCreate()) - this.entryDate = new DateTimeType(); // bb - return this.entryDate; - } - - public boolean hasEntryDateElement() { - return this.entryDate != null && !this.entryDate.isEmpty(); - } - - public boolean hasEntryDate() { - return this.entryDate != null && !this.entryDate.isEmpty(); - } - - /** - * @param value {@link #entryDate} (The date the article was added to the database.). This is the underlying object with id, value and extensions. The accessor "getEntryDate" gives direct access to the value - */ - public CitationAlternativeFormPublicationInfoComponent setEntryDateElement(DateTimeType value) { - this.entryDate = value; - return this; - } - - /** - * @return The date the article was added to the database. - */ - public Date getEntryDate() { - return this.entryDate == null ? null : this.entryDate.getValue(); - } - - /** - * @param value The date the article was added to the database. - */ - public CitationAlternativeFormPublicationInfoComponent setEntryDate(Date value) { - if (value == null) - this.entryDate = null; - else { - if (this.entryDate == null) - this.entryDate = new DateTimeType(); - this.entryDate.setValue(value); - } - return this; - } - - /** - * @return {@link #revisionDate} (The date the article was last revised or updated in the database.). This is the underlying object with id, value and extensions. The accessor "getRevisionDate" gives direct access to the value - */ - public DateTimeType getRevisionDateElement() { - if (this.revisionDate == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormPublicationInfoComponent.revisionDate"); - else if (Configuration.doAutoCreate()) - this.revisionDate = new DateTimeType(); // bb - return this.revisionDate; - } - - public boolean hasRevisionDateElement() { - return this.revisionDate != null && !this.revisionDate.isEmpty(); - } - - public boolean hasRevisionDate() { - return this.revisionDate != null && !this.revisionDate.isEmpty(); - } - - /** - * @param value {@link #revisionDate} (The date the article was last revised or updated in the database.). This is the underlying object with id, value and extensions. The accessor "getRevisionDate" gives direct access to the value - */ - public CitationAlternativeFormPublicationInfoComponent setRevisionDateElement(DateTimeType value) { - this.revisionDate = value; - return this; - } - - /** - * @return The date the article was last revised or updated in the database. - */ - public Date getRevisionDate() { - return this.revisionDate == null ? null : this.revisionDate.getValue(); - } - - /** - * @param value The date the article was last revised or updated in the database. - */ - public CitationAlternativeFormPublicationInfoComponent setRevisionDate(Date value) { - if (value == null) - this.revisionDate = null; - else { - if (this.revisionDate == null) - this.revisionDate = new DateTimeType(); - this.revisionDate.setValue(value); - } - return this; - } - - /** - * @return {@link #pageCount} (Actual or Approximate number of pages or screens.). This is the underlying object with id, value and extensions. The accessor "getPageCount" gives direct access to the value - */ - public StringType getPageCountElement() { - if (this.pageCount == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormPublicationInfoComponent.pageCount"); - else if (Configuration.doAutoCreate()) - this.pageCount = new StringType(); // bb - return this.pageCount; - } - - public boolean hasPageCountElement() { - return this.pageCount != null && !this.pageCount.isEmpty(); - } - - public boolean hasPageCount() { - return this.pageCount != null && !this.pageCount.isEmpty(); - } - - /** - * @param value {@link #pageCount} (Actual or Approximate number of pages or screens.). This is the underlying object with id, value and extensions. The accessor "getPageCount" gives direct access to the value - */ - public CitationAlternativeFormPublicationInfoComponent setPageCountElement(StringType value) { - this.pageCount = value; - return this; - } - - /** - * @return Actual or Approximate number of pages or screens. - */ - public String getPageCount() { - return this.pageCount == null ? null : this.pageCount.getValue(); - } - - /** - * @param value Actual or Approximate number of pages or screens. - */ - public CitationAlternativeFormPublicationInfoComponent setPageCount(String value) { - if (Utilities.noString(value)) - this.pageCount = null; - else { - if (this.pageCount == null) - this.pageCount = new StringType(); - this.pageCount.setValue(value); - } - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("publishedIn", "", "The collection the cited article is published in.", 0, 1, publishedIn)); - children.add(new Property("entryDate", "dateTime", "The date the article was added to the database.", 0, 1, entryDate)); - children.add(new Property("revisionDate", "dateTime", "The date the article was last revised or updated in the database.", 0, 1, revisionDate)); - children.add(new Property("pageCount", "string", "Actual or Approximate number of pages or screens.", 0, 1, pageCount)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case -614144077: /*publishedIn*/ return new Property("publishedIn", "", "The collection the cited article is published in.", 0, 1, publishedIn); - case -479861952: /*entryDate*/ return new Property("entryDate", "dateTime", "The date the article was added to the database.", 0, 1, entryDate); - case -1250970071: /*revisionDate*/ return new Property("revisionDate", "dateTime", "The date the article was last revised or updated in the database.", 0, 1, revisionDate); - case 857882560: /*pageCount*/ return new Property("pageCount", "string", "Actual or Approximate number of pages or screens.", 0, 1, pageCount); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case -614144077: /*publishedIn*/ return this.publishedIn == null ? new Base[0] : new Base[] {this.publishedIn}; // CitationAlternativeFormPublicationInfoPublishedInComponent - case -479861952: /*entryDate*/ return this.entryDate == null ? new Base[0] : new Base[] {this.entryDate}; // DateTimeType - case -1250970071: /*revisionDate*/ return this.revisionDate == null ? new Base[0] : new Base[] {this.revisionDate}; // DateTimeType - case 857882560: /*pageCount*/ return this.pageCount == null ? new Base[0] : new Base[] {this.pageCount}; // StringType - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case -614144077: // publishedIn - this.publishedIn = (CitationAlternativeFormPublicationInfoPublishedInComponent) value; // CitationAlternativeFormPublicationInfoPublishedInComponent - return value; - case -479861952: // entryDate - this.entryDate = TypeConvertor.castToDateTime(value); // DateTimeType - return value; - case -1250970071: // revisionDate - this.revisionDate = TypeConvertor.castToDateTime(value); // DateTimeType - return value; - case 857882560: // pageCount - this.pageCount = TypeConvertor.castToString(value); // StringType - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("publishedIn")) { - this.publishedIn = (CitationAlternativeFormPublicationInfoPublishedInComponent) value; // CitationAlternativeFormPublicationInfoPublishedInComponent - } else if (name.equals("entryDate")) { - this.entryDate = TypeConvertor.castToDateTime(value); // DateTimeType - } else if (name.equals("revisionDate")) { - this.revisionDate = TypeConvertor.castToDateTime(value); // DateTimeType - } else if (name.equals("pageCount")) { - this.pageCount = TypeConvertor.castToString(value); // StringType - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -614144077: return getPublishedIn(); - case -479861952: return getEntryDateElement(); - case -1250970071: return getRevisionDateElement(); - case 857882560: return getPageCountElement(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -614144077: /*publishedIn*/ return new String[] {}; - case -479861952: /*entryDate*/ return new String[] {"dateTime"}; - case -1250970071: /*revisionDate*/ return new String[] {"dateTime"}; - case 857882560: /*pageCount*/ return new String[] {"string"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("publishedIn")) { - this.publishedIn = new CitationAlternativeFormPublicationInfoPublishedInComponent(); - return this.publishedIn; - } - else if (name.equals("entryDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.publicationInfo.entryDate"); - } - else if (name.equals("revisionDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.publicationInfo.revisionDate"); - } - else if (name.equals("pageCount")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.publicationInfo.pageCount"); - } - else - return super.addChild(name); - } - - public CitationAlternativeFormPublicationInfoComponent copy() { - CitationAlternativeFormPublicationInfoComponent dst = new CitationAlternativeFormPublicationInfoComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationAlternativeFormPublicationInfoComponent dst) { - super.copyValues(dst); - dst.publishedIn = publishedIn == null ? null : publishedIn.copy(); - dst.entryDate = entryDate == null ? null : entryDate.copy(); - dst.revisionDate = revisionDate == null ? null : revisionDate.copy(); - dst.pageCount = pageCount == null ? null : pageCount.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationAlternativeFormPublicationInfoComponent)) - return false; - CitationAlternativeFormPublicationInfoComponent o = (CitationAlternativeFormPublicationInfoComponent) other_; - return compareDeep(publishedIn, o.publishedIn, true) && compareDeep(entryDate, o.entryDate, true) - && compareDeep(revisionDate, o.revisionDate, true) && compareDeep(pageCount, o.pageCount, true) - ; - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationAlternativeFormPublicationInfoComponent)) - return false; - CitationAlternativeFormPublicationInfoComponent o = (CitationAlternativeFormPublicationInfoComponent) other_; - return compareValues(entryDate, o.entryDate, true) && compareValues(revisionDate, o.revisionDate, true) - && compareValues(pageCount, o.pageCount, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(publishedIn, entryDate, revisionDate - , pageCount); - } - - public String fhirType() { - return "Citation.alternativeForm.publicationInfo"; - - } - - } - - @Block() - public static class CitationAlternativeFormPublicationInfoPublishedInComponent extends BackboneElement implements IBaseBackboneElement { - /** - * Database or book. + * Code the reason for different URLs, e.g. abstract and full-text. */ @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Database or book", formalDefinition="Database or book." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/published-in-type") + @Description(shortDefinition="Code the reason for different URLs, e.g. abstract and full-text", formalDefinition="Code the reason for different URLs, e.g. abstract and full-text." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/article-url-type") protected CodeableConcept type; /** - * Name of the database or title of the book. + * The specific URL. */ - @Child(name = "name", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Name of the database or title of the book", formalDefinition="Name of the database or title of the book." ) - protected StringType name; + @Child(name = "url", type = {UriType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The specific URL", formalDefinition="The specific URL." ) + protected UriType url; - /** - * Name of the publisher. - */ - @Child(name = "publisher", type = {Organization.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Name of the publisher", formalDefinition="Name of the publisher." ) - protected Reference publisher; - - /** - * Geographic location of the publisher. - */ - @Child(name = "publisherLocation", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Geographic location of the publisher", formalDefinition="Geographic location of the publisher." ) - protected StringType publisherLocation; - - /** - * When the database was first available or when the book was published. - */ - @Child(name = "startDate", type = {DateType.class}, order=5, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="When the database was first available or when the book was published", formalDefinition="When the database was first available or when the book was published." ) - protected DateType startDate; - - private static final long serialVersionUID = 17141502L; + private static final long serialVersionUID = 397204034L; /** * Constructor */ - public CitationAlternativeFormPublicationInfoPublishedInComponent() { + public CitationCitedArtifactWebLocationComponent() { super(); } /** - * @return {@link #type} (Database or book.) + * @return {@link #type} (Code the reason for different URLs, e.g. abstract and full-text.) */ public CodeableConcept getType() { if (this.type == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormPublicationInfoPublishedInComponent.type"); + throw new Error("Attempt to auto-create CitationCitedArtifactWebLocationComponent.type"); else if (Configuration.doAutoCreate()) this.type = new CodeableConcept(); // cc return this.type; @@ -7706,201 +6087,73 @@ public class Citation extends MetadataResource { } /** - * @param value {@link #type} (Database or book.) + * @param value {@link #type} (Code the reason for different URLs, e.g. abstract and full-text.) */ - public CitationAlternativeFormPublicationInfoPublishedInComponent setType(CodeableConcept value) { + public CitationCitedArtifactWebLocationComponent setType(CodeableConcept value) { this.type = value; return this; } /** - * @return {@link #name} (Name of the database or title of the book.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + * @return {@link #url} (The specific URL.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value */ - public StringType getNameElement() { - if (this.name == null) + public UriType getUrlElement() { + if (this.url == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormPublicationInfoPublishedInComponent.name"); + throw new Error("Attempt to auto-create CitationCitedArtifactWebLocationComponent.url"); else if (Configuration.doAutoCreate()) - this.name = new StringType(); // bb - return this.name; + this.url = new UriType(); // bb + return this.url; } - public boolean hasNameElement() { - return this.name != null && !this.name.isEmpty(); + public boolean hasUrlElement() { + return this.url != null && !this.url.isEmpty(); } - public boolean hasName() { - return this.name != null && !this.name.isEmpty(); + public boolean hasUrl() { + return this.url != null && !this.url.isEmpty(); } /** - * @param value {@link #name} (Name of the database or title of the book.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + * @param value {@link #url} (The specific URL.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value */ - public CitationAlternativeFormPublicationInfoPublishedInComponent setNameElement(StringType value) { - this.name = value; + public CitationCitedArtifactWebLocationComponent setUrlElement(UriType value) { + this.url = value; return this; } /** - * @return Name of the database or title of the book. + * @return The specific URL. */ - public String getName() { - return this.name == null ? null : this.name.getValue(); + public String getUrl() { + return this.url == null ? null : this.url.getValue(); } /** - * @param value Name of the database or title of the book. + * @param value The specific URL. */ - public CitationAlternativeFormPublicationInfoPublishedInComponent setName(String value) { + public CitationCitedArtifactWebLocationComponent setUrl(String value) { if (Utilities.noString(value)) - this.name = null; + this.url = null; else { - if (this.name == null) - this.name = new StringType(); - this.name.setValue(value); - } - return this; - } - - /** - * @return {@link #publisher} (Name of the publisher.) - */ - public Reference getPublisher() { - if (this.publisher == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormPublicationInfoPublishedInComponent.publisher"); - else if (Configuration.doAutoCreate()) - this.publisher = new Reference(); // cc - return this.publisher; - } - - public boolean hasPublisher() { - return this.publisher != null && !this.publisher.isEmpty(); - } - - /** - * @param value {@link #publisher} (Name of the publisher.) - */ - public CitationAlternativeFormPublicationInfoPublishedInComponent setPublisher(Reference value) { - this.publisher = value; - return this; - } - - /** - * @return {@link #publisherLocation} (Geographic location of the publisher.). This is the underlying object with id, value and extensions. The accessor "getPublisherLocation" gives direct access to the value - */ - public StringType getPublisherLocationElement() { - if (this.publisherLocation == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormPublicationInfoPublishedInComponent.publisherLocation"); - else if (Configuration.doAutoCreate()) - this.publisherLocation = new StringType(); // bb - return this.publisherLocation; - } - - public boolean hasPublisherLocationElement() { - return this.publisherLocation != null && !this.publisherLocation.isEmpty(); - } - - public boolean hasPublisherLocation() { - return this.publisherLocation != null && !this.publisherLocation.isEmpty(); - } - - /** - * @param value {@link #publisherLocation} (Geographic location of the publisher.). This is the underlying object with id, value and extensions. The accessor "getPublisherLocation" gives direct access to the value - */ - public CitationAlternativeFormPublicationInfoPublishedInComponent setPublisherLocationElement(StringType value) { - this.publisherLocation = value; - return this; - } - - /** - * @return Geographic location of the publisher. - */ - public String getPublisherLocation() { - return this.publisherLocation == null ? null : this.publisherLocation.getValue(); - } - - /** - * @param value Geographic location of the publisher. - */ - public CitationAlternativeFormPublicationInfoPublishedInComponent setPublisherLocation(String value) { - if (Utilities.noString(value)) - this.publisherLocation = null; - else { - if (this.publisherLocation == null) - this.publisherLocation = new StringType(); - this.publisherLocation.setValue(value); - } - return this; - } - - /** - * @return {@link #startDate} (When the database was first available or when the book was published.). This is the underlying object with id, value and extensions. The accessor "getStartDate" gives direct access to the value - */ - public DateType getStartDateElement() { - if (this.startDate == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationAlternativeFormPublicationInfoPublishedInComponent.startDate"); - else if (Configuration.doAutoCreate()) - this.startDate = new DateType(); // bb - return this.startDate; - } - - public boolean hasStartDateElement() { - return this.startDate != null && !this.startDate.isEmpty(); - } - - public boolean hasStartDate() { - return this.startDate != null && !this.startDate.isEmpty(); - } - - /** - * @param value {@link #startDate} (When the database was first available or when the book was published.). This is the underlying object with id, value and extensions. The accessor "getStartDate" gives direct access to the value - */ - public CitationAlternativeFormPublicationInfoPublishedInComponent setStartDateElement(DateType value) { - this.startDate = value; - return this; - } - - /** - * @return When the database was first available or when the book was published. - */ - public Date getStartDate() { - return this.startDate == null ? null : this.startDate.getValue(); - } - - /** - * @param value When the database was first available or when the book was published. - */ - public CitationAlternativeFormPublicationInfoPublishedInComponent setStartDate(Date value) { - if (value == null) - this.startDate = null; - else { - if (this.startDate == null) - this.startDate = new DateType(); - this.startDate.setValue(value); + if (this.url == null) + this.url = new UriType(); + this.url.setValue(value); } return this; } protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("type", "CodeableConcept", "Database or book.", 0, 1, type)); - children.add(new Property("name", "string", "Name of the database or title of the book.", 0, 1, name)); - children.add(new Property("publisher", "Reference(Organization)", "Name of the publisher.", 0, 1, publisher)); - children.add(new Property("publisherLocation", "string", "Geographic location of the publisher.", 0, 1, publisherLocation)); - children.add(new Property("startDate", "date", "When the database was first available or when the book was published.", 0, 1, startDate)); + children.add(new Property("type", "CodeableConcept", "Code the reason for different URLs, e.g. abstract and full-text.", 0, 1, type)); + children.add(new Property("url", "uri", "The specific URL.", 0, 1, url)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Database or book.", 0, 1, type); - case 3373707: /*name*/ return new Property("name", "string", "Name of the database or title of the book.", 0, 1, name); - case 1447404028: /*publisher*/ return new Property("publisher", "Reference(Organization)", "Name of the publisher.", 0, 1, publisher); - case -1281627695: /*publisherLocation*/ return new Property("publisherLocation", "string", "Geographic location of the publisher.", 0, 1, publisherLocation); - case -2129778896: /*startDate*/ return new Property("startDate", "date", "When the database was first available or when the book was published.", 0, 1, startDate); + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Code the reason for different URLs, e.g. abstract and full-text.", 0, 1, type); + case 116079: /*url*/ return new Property("url", "uri", "The specific URL.", 0, 1, url); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -7910,10 +6163,7 @@ public class Citation extends MetadataResource { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept - case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType - case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // Reference - case -1281627695: /*publisherLocation*/ return this.publisherLocation == null ? new Base[0] : new Base[] {this.publisherLocation}; // StringType - case -2129778896: /*startDate*/ return this.startDate == null ? new Base[0] : new Base[] {this.startDate}; // DateType + case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType default: return super.getProperty(hash, name, checkValid); } @@ -7925,17 +6175,8 @@ public class Citation extends MetadataResource { case 3575610: // type this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; - case 3373707: // name - this.name = TypeConvertor.castToString(value); // StringType - return value; - case 1447404028: // publisher - this.publisher = TypeConvertor.castToReference(value); // Reference - return value; - case -1281627695: // publisherLocation - this.publisherLocation = TypeConvertor.castToString(value); // StringType - return value; - case -2129778896: // startDate - this.startDate = TypeConvertor.castToDate(value); // DateType + case 116079: // url + this.url = TypeConvertor.castToUri(value); // UriType return value; default: return super.setProperty(hash, name, value); } @@ -7946,14 +6187,8 @@ public class Citation extends MetadataResource { public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("type")) { this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("name")) { - this.name = TypeConvertor.castToString(value); // StringType - } else if (name.equals("publisher")) { - this.publisher = TypeConvertor.castToReference(value); // Reference - } else if (name.equals("publisherLocation")) { - this.publisherLocation = TypeConvertor.castToString(value); // StringType - } else if (name.equals("startDate")) { - this.startDate = TypeConvertor.castToDate(value); // DateType + } else if (name.equals("url")) { + this.url = TypeConvertor.castToUri(value); // UriType } else return super.setProperty(name, value); return value; @@ -7963,10 +6198,7 @@ public class Citation extends MetadataResource { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: return getType(); - case 3373707: return getNameElement(); - case 1447404028: return getPublisher(); - case -1281627695: return getPublisherLocationElement(); - case -2129778896: return getStartDateElement(); + case 116079: return getUrlElement(); default: return super.makeProperty(hash, name); } @@ -7976,10 +6208,7 @@ public class Citation extends MetadataResource { public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: /*type*/ return new String[] {"CodeableConcept"}; - case 3373707: /*name*/ return new String[] {"string"}; - case 1447404028: /*publisher*/ return new String[] {"Reference"}; - case -1281627695: /*publisherLocation*/ return new String[] {"string"}; - case -2129778896: /*startDate*/ return new String[] {"date"}; + case 116079: /*url*/ return new String[] {"uri"}; default: return super.getTypesForProperty(hash, name); } @@ -7991,47 +6220,700 @@ public class Citation extends MetadataResource { this.type = new CodeableConcept(); return this.type; } - else if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.publicationInfo.publishedIn.name"); + else if (name.equals("url")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.webLocation.url"); + } + else + return super.addChild(name); + } + + public CitationCitedArtifactWebLocationComponent copy() { + CitationCitedArtifactWebLocationComponent dst = new CitationCitedArtifactWebLocationComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(CitationCitedArtifactWebLocationComponent dst) { + super.copyValues(dst); + dst.type = type == null ? null : type.copy(); + dst.url = url == null ? null : url.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactWebLocationComponent)) + return false; + CitationCitedArtifactWebLocationComponent o = (CitationCitedArtifactWebLocationComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(url, o.url, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactWebLocationComponent)) + return false; + CitationCitedArtifactWebLocationComponent o = (CitationCitedArtifactWebLocationComponent) other_; + return compareValues(url, o.url, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, url); + } + + public String fhirType() { + return "Citation.citedArtifact.webLocation"; + + } + + } + + @Block() + public static class CitationCitedArtifactClassificationComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The kind of classifier (e.g. publication type, keyword). + */ + @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The kind of classifier (e.g. publication type, keyword)", formalDefinition="The kind of classifier (e.g. publication type, keyword)." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/cited-artifact-classification-type") + protected CodeableConcept type; + + /** + * The specific classification value. + */ + @Child(name = "classifier", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="The specific classification value", formalDefinition="The specific classification value." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/citation-artifact-classifier") + protected List classifier; + + /** + * Provenance and copyright of classification. + */ + @Child(name = "whoClassified", type = {}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Provenance and copyright of classification", formalDefinition="Provenance and copyright of classification." ) + protected CitationCitedArtifactClassificationWhoClassifiedComponent whoClassified; + + private static final long serialVersionUID = -1887617918L; + + /** + * Constructor + */ + public CitationCitedArtifactClassificationComponent() { + super(); + } + + /** + * @return {@link #type} (The kind of classifier (e.g. publication type, keyword).) + */ + public CodeableConcept getType() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactClassificationComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new CodeableConcept(); // cc + return this.type; + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (The kind of classifier (e.g. publication type, keyword).) + */ + public CitationCitedArtifactClassificationComponent setType(CodeableConcept value) { + this.type = value; + return this; + } + + /** + * @return {@link #classifier} (The specific classification value.) + */ + public List getClassifier() { + if (this.classifier == null) + this.classifier = new ArrayList(); + return this.classifier; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactClassificationComponent setClassifier(List theClassifier) { + this.classifier = theClassifier; + return this; + } + + public boolean hasClassifier() { + if (this.classifier == null) + return false; + for (CodeableConcept item : this.classifier) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addClassifier() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.classifier == null) + this.classifier = new ArrayList(); + this.classifier.add(t); + return t; + } + + public CitationCitedArtifactClassificationComponent addClassifier(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.classifier == null) + this.classifier = new ArrayList(); + this.classifier.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #classifier}, creating it if it does not already exist {3} + */ + public CodeableConcept getClassifierFirstRep() { + if (getClassifier().isEmpty()) { + addClassifier(); + } + return getClassifier().get(0); + } + + /** + * @return {@link #whoClassified} (Provenance and copyright of classification.) + */ + public CitationCitedArtifactClassificationWhoClassifiedComponent getWhoClassified() { + if (this.whoClassified == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactClassificationComponent.whoClassified"); + else if (Configuration.doAutoCreate()) + this.whoClassified = new CitationCitedArtifactClassificationWhoClassifiedComponent(); // cc + return this.whoClassified; + } + + public boolean hasWhoClassified() { + return this.whoClassified != null && !this.whoClassified.isEmpty(); + } + + /** + * @param value {@link #whoClassified} (Provenance and copyright of classification.) + */ + public CitationCitedArtifactClassificationComponent setWhoClassified(CitationCitedArtifactClassificationWhoClassifiedComponent value) { + this.whoClassified = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("type", "CodeableConcept", "The kind of classifier (e.g. publication type, keyword).", 0, 1, type)); + children.add(new Property("classifier", "CodeableConcept", "The specific classification value.", 0, java.lang.Integer.MAX_VALUE, classifier)); + children.add(new Property("whoClassified", "", "Provenance and copyright of classification.", 0, 1, whoClassified)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The kind of classifier (e.g. publication type, keyword).", 0, 1, type); + case -281470431: /*classifier*/ return new Property("classifier", "CodeableConcept", "The specific classification value.", 0, java.lang.Integer.MAX_VALUE, classifier); + case -196629391: /*whoClassified*/ return new Property("whoClassified", "", "Provenance and copyright of classification.", 0, 1, whoClassified); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case -281470431: /*classifier*/ return this.classifier == null ? new Base[0] : this.classifier.toArray(new Base[this.classifier.size()]); // CodeableConcept + case -196629391: /*whoClassified*/ return this.whoClassified == null ? new Base[0] : new Base[] {this.whoClassified}; // CitationCitedArtifactClassificationWhoClassifiedComponent + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3575610: // type + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -281470431: // classifier + this.getClassifier().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + case -196629391: // whoClassified + this.whoClassified = (CitationCitedArtifactClassificationWhoClassifiedComponent) value; // CitationCitedArtifactClassificationWhoClassifiedComponent + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("classifier")) { + this.getClassifier().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("whoClassified")) { + this.whoClassified = (CitationCitedArtifactClassificationWhoClassifiedComponent) value; // CitationCitedArtifactClassificationWhoClassifiedComponent + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: return getType(); + case -281470431: return addClassifier(); + case -196629391: return getWhoClassified(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case -281470431: /*classifier*/ return new String[] {"CodeableConcept"}; + case -196629391: /*whoClassified*/ return new String[] {}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("type")) { + this.type = new CodeableConcept(); + return this.type; + } + else if (name.equals("classifier")) { + return addClassifier(); + } + else if (name.equals("whoClassified")) { + this.whoClassified = new CitationCitedArtifactClassificationWhoClassifiedComponent(); + return this.whoClassified; + } + else + return super.addChild(name); + } + + public CitationCitedArtifactClassificationComponent copy() { + CitationCitedArtifactClassificationComponent dst = new CitationCitedArtifactClassificationComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(CitationCitedArtifactClassificationComponent dst) { + super.copyValues(dst); + dst.type = type == null ? null : type.copy(); + if (classifier != null) { + dst.classifier = new ArrayList(); + for (CodeableConcept i : classifier) + dst.classifier.add(i.copy()); + }; + dst.whoClassified = whoClassified == null ? null : whoClassified.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactClassificationComponent)) + return false; + CitationCitedArtifactClassificationComponent o = (CitationCitedArtifactClassificationComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(classifier, o.classifier, true) && compareDeep(whoClassified, o.whoClassified, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactClassificationComponent)) + return false; + CitationCitedArtifactClassificationComponent o = (CitationCitedArtifactClassificationComponent) other_; + return true; + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, classifier, whoClassified + ); + } + + public String fhirType() { + return "Citation.citedArtifact.classification"; + + } + + } + + @Block() + public static class CitationCitedArtifactClassificationWhoClassifiedComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Person who created the classification. + */ + @Child(name = "person", type = {Person.class, Practitioner.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Person who created the classification", formalDefinition="Person who created the classification." ) + protected Reference person; + + /** + * Organization who created the classification. + */ + @Child(name = "organization", type = {Organization.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Organization who created the classification", formalDefinition="Organization who created the classification." ) + protected Reference organization; + + /** + * The publisher of the classification, not the publisher of the article or artifact being cited. + */ + @Child(name = "publisher", type = {Organization.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The publisher of the classification, not the publisher of the article or artifact being cited", formalDefinition="The publisher of the classification, not the publisher of the article or artifact being cited." ) + protected Reference publisher; + + /** + * Rights management statement for the classification. + */ + @Child(name = "classifierCopyright", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Rights management statement for the classification", formalDefinition="Rights management statement for the classification." ) + protected StringType classifierCopyright; + + /** + * Acceptable to re-use the classification. + */ + @Child(name = "freeToShare", type = {BooleanType.class}, order=5, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Acceptable to re-use the classification", formalDefinition="Acceptable to re-use the classification." ) + protected BooleanType freeToShare; + + private static final long serialVersionUID = -1835300032L; + + /** + * Constructor + */ + public CitationCitedArtifactClassificationWhoClassifiedComponent() { + super(); + } + + /** + * @return {@link #person} (Person who created the classification.) + */ + public Reference getPerson() { + if (this.person == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactClassificationWhoClassifiedComponent.person"); + else if (Configuration.doAutoCreate()) + this.person = new Reference(); // cc + return this.person; + } + + public boolean hasPerson() { + return this.person != null && !this.person.isEmpty(); + } + + /** + * @param value {@link #person} (Person who created the classification.) + */ + public CitationCitedArtifactClassificationWhoClassifiedComponent setPerson(Reference value) { + this.person = value; + return this; + } + + /** + * @return {@link #organization} (Organization who created the classification.) + */ + public Reference getOrganization() { + if (this.organization == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactClassificationWhoClassifiedComponent.organization"); + else if (Configuration.doAutoCreate()) + this.organization = new Reference(); // cc + return this.organization; + } + + public boolean hasOrganization() { + return this.organization != null && !this.organization.isEmpty(); + } + + /** + * @param value {@link #organization} (Organization who created the classification.) + */ + public CitationCitedArtifactClassificationWhoClassifiedComponent setOrganization(Reference value) { + this.organization = value; + return this; + } + + /** + * @return {@link #publisher} (The publisher of the classification, not the publisher of the article or artifact being cited.) + */ + public Reference getPublisher() { + if (this.publisher == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactClassificationWhoClassifiedComponent.publisher"); + else if (Configuration.doAutoCreate()) + this.publisher = new Reference(); // cc + return this.publisher; + } + + public boolean hasPublisher() { + return this.publisher != null && !this.publisher.isEmpty(); + } + + /** + * @param value {@link #publisher} (The publisher of the classification, not the publisher of the article or artifact being cited.) + */ + public CitationCitedArtifactClassificationWhoClassifiedComponent setPublisher(Reference value) { + this.publisher = value; + return this; + } + + /** + * @return {@link #classifierCopyright} (Rights management statement for the classification.). This is the underlying object with id, value and extensions. The accessor "getClassifierCopyright" gives direct access to the value + */ + public StringType getClassifierCopyrightElement() { + if (this.classifierCopyright == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactClassificationWhoClassifiedComponent.classifierCopyright"); + else if (Configuration.doAutoCreate()) + this.classifierCopyright = new StringType(); // bb + return this.classifierCopyright; + } + + public boolean hasClassifierCopyrightElement() { + return this.classifierCopyright != null && !this.classifierCopyright.isEmpty(); + } + + public boolean hasClassifierCopyright() { + return this.classifierCopyright != null && !this.classifierCopyright.isEmpty(); + } + + /** + * @param value {@link #classifierCopyright} (Rights management statement for the classification.). This is the underlying object with id, value and extensions. The accessor "getClassifierCopyright" gives direct access to the value + */ + public CitationCitedArtifactClassificationWhoClassifiedComponent setClassifierCopyrightElement(StringType value) { + this.classifierCopyright = value; + return this; + } + + /** + * @return Rights management statement for the classification. + */ + public String getClassifierCopyright() { + return this.classifierCopyright == null ? null : this.classifierCopyright.getValue(); + } + + /** + * @param value Rights management statement for the classification. + */ + public CitationCitedArtifactClassificationWhoClassifiedComponent setClassifierCopyright(String value) { + if (Utilities.noString(value)) + this.classifierCopyright = null; + else { + if (this.classifierCopyright == null) + this.classifierCopyright = new StringType(); + this.classifierCopyright.setValue(value); + } + return this; + } + + /** + * @return {@link #freeToShare} (Acceptable to re-use the classification.). This is the underlying object with id, value and extensions. The accessor "getFreeToShare" gives direct access to the value + */ + public BooleanType getFreeToShareElement() { + if (this.freeToShare == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactClassificationWhoClassifiedComponent.freeToShare"); + else if (Configuration.doAutoCreate()) + this.freeToShare = new BooleanType(); // bb + return this.freeToShare; + } + + public boolean hasFreeToShareElement() { + return this.freeToShare != null && !this.freeToShare.isEmpty(); + } + + public boolean hasFreeToShare() { + return this.freeToShare != null && !this.freeToShare.isEmpty(); + } + + /** + * @param value {@link #freeToShare} (Acceptable to re-use the classification.). This is the underlying object with id, value and extensions. The accessor "getFreeToShare" gives direct access to the value + */ + public CitationCitedArtifactClassificationWhoClassifiedComponent setFreeToShareElement(BooleanType value) { + this.freeToShare = value; + return this; + } + + /** + * @return Acceptable to re-use the classification. + */ + public boolean getFreeToShare() { + return this.freeToShare == null || this.freeToShare.isEmpty() ? false : this.freeToShare.getValue(); + } + + /** + * @param value Acceptable to re-use the classification. + */ + public CitationCitedArtifactClassificationWhoClassifiedComponent setFreeToShare(boolean value) { + if (this.freeToShare == null) + this.freeToShare = new BooleanType(); + this.freeToShare.setValue(value); + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("person", "Reference(Person|Practitioner)", "Person who created the classification.", 0, 1, person)); + children.add(new Property("organization", "Reference(Organization)", "Organization who created the classification.", 0, 1, organization)); + children.add(new Property("publisher", "Reference(Organization)", "The publisher of the classification, not the publisher of the article or artifact being cited.", 0, 1, publisher)); + children.add(new Property("classifierCopyright", "string", "Rights management statement for the classification.", 0, 1, classifierCopyright)); + children.add(new Property("freeToShare", "boolean", "Acceptable to re-use the classification.", 0, 1, freeToShare)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -991716523: /*person*/ return new Property("person", "Reference(Person|Practitioner)", "Person who created the classification.", 0, 1, person); + case 1178922291: /*organization*/ return new Property("organization", "Reference(Organization)", "Organization who created the classification.", 0, 1, organization); + case 1447404028: /*publisher*/ return new Property("publisher", "Reference(Organization)", "The publisher of the classification, not the publisher of the article or artifact being cited.", 0, 1, publisher); + case -434942298: /*classifierCopyright*/ return new Property("classifierCopyright", "string", "Rights management statement for the classification.", 0, 1, classifierCopyright); + case -1268656616: /*freeToShare*/ return new Property("freeToShare", "boolean", "Acceptable to re-use the classification.", 0, 1, freeToShare); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -991716523: /*person*/ return this.person == null ? new Base[0] : new Base[] {this.person}; // Reference + case 1178922291: /*organization*/ return this.organization == null ? new Base[0] : new Base[] {this.organization}; // Reference + case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // Reference + case -434942298: /*classifierCopyright*/ return this.classifierCopyright == null ? new Base[0] : new Base[] {this.classifierCopyright}; // StringType + case -1268656616: /*freeToShare*/ return this.freeToShare == null ? new Base[0] : new Base[] {this.freeToShare}; // BooleanType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -991716523: // person + this.person = TypeConvertor.castToReference(value); // Reference + return value; + case 1178922291: // organization + this.organization = TypeConvertor.castToReference(value); // Reference + return value; + case 1447404028: // publisher + this.publisher = TypeConvertor.castToReference(value); // Reference + return value; + case -434942298: // classifierCopyright + this.classifierCopyright = TypeConvertor.castToString(value); // StringType + return value; + case -1268656616: // freeToShare + this.freeToShare = TypeConvertor.castToBoolean(value); // BooleanType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("person")) { + this.person = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("organization")) { + this.organization = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("publisher")) { + this.publisher = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("classifierCopyright")) { + this.classifierCopyright = TypeConvertor.castToString(value); // StringType + } else if (name.equals("freeToShare")) { + this.freeToShare = TypeConvertor.castToBoolean(value); // BooleanType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -991716523: return getPerson(); + case 1178922291: return getOrganization(); + case 1447404028: return getPublisher(); + case -434942298: return getClassifierCopyrightElement(); + case -1268656616: return getFreeToShareElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -991716523: /*person*/ return new String[] {"Reference"}; + case 1178922291: /*organization*/ return new String[] {"Reference"}; + case 1447404028: /*publisher*/ return new String[] {"Reference"}; + case -434942298: /*classifierCopyright*/ return new String[] {"string"}; + case -1268656616: /*freeToShare*/ return new String[] {"boolean"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("person")) { + this.person = new Reference(); + return this.person; + } + else if (name.equals("organization")) { + this.organization = new Reference(); + return this.organization; } else if (name.equals("publisher")) { this.publisher = new Reference(); return this.publisher; } - else if (name.equals("publisherLocation")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.publicationInfo.publishedIn.publisherLocation"); + else if (name.equals("classifierCopyright")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.classification.whoClassified.classifierCopyright"); } - else if (name.equals("startDate")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.alternativeForm.publicationInfo.publishedIn.startDate"); + else if (name.equals("freeToShare")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.classification.whoClassified.freeToShare"); } else return super.addChild(name); } - public CitationAlternativeFormPublicationInfoPublishedInComponent copy() { - CitationAlternativeFormPublicationInfoPublishedInComponent dst = new CitationAlternativeFormPublicationInfoPublishedInComponent(); + public CitationCitedArtifactClassificationWhoClassifiedComponent copy() { + CitationCitedArtifactClassificationWhoClassifiedComponent dst = new CitationCitedArtifactClassificationWhoClassifiedComponent(); copyValues(dst); return dst; } - public void copyValues(CitationAlternativeFormPublicationInfoPublishedInComponent dst) { + public void copyValues(CitationCitedArtifactClassificationWhoClassifiedComponent dst) { super.copyValues(dst); - dst.type = type == null ? null : type.copy(); - dst.name = name == null ? null : name.copy(); + dst.person = person == null ? null : person.copy(); + dst.organization = organization == null ? null : organization.copy(); dst.publisher = publisher == null ? null : publisher.copy(); - dst.publisherLocation = publisherLocation == null ? null : publisherLocation.copy(); - dst.startDate = startDate == null ? null : startDate.copy(); + dst.classifierCopyright = classifierCopyright == null ? null : classifierCopyright.copy(); + dst.freeToShare = freeToShare == null ? null : freeToShare.copy(); } @Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof CitationAlternativeFormPublicationInfoPublishedInComponent)) + if (!(other_ instanceof CitationCitedArtifactClassificationWhoClassifiedComponent)) return false; - CitationAlternativeFormPublicationInfoPublishedInComponent o = (CitationAlternativeFormPublicationInfoPublishedInComponent) other_; - return compareDeep(type, o.type, true) && compareDeep(name, o.name, true) && compareDeep(publisher, o.publisher, true) - && compareDeep(publisherLocation, o.publisherLocation, true) && compareDeep(startDate, o.startDate, true) + CitationCitedArtifactClassificationWhoClassifiedComponent o = (CitationCitedArtifactClassificationWhoClassifiedComponent) other_; + return compareDeep(person, o.person, true) && compareDeep(organization, o.organization, true) && compareDeep(publisher, o.publisher, true) + && compareDeep(classifierCopyright, o.classifierCopyright, true) && compareDeep(freeToShare, o.freeToShare, true) ; } @@ -8039,1405 +6921,221 @@ public class Citation extends MetadataResource { public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof CitationAlternativeFormPublicationInfoPublishedInComponent)) + if (!(other_ instanceof CitationCitedArtifactClassificationWhoClassifiedComponent)) return false; - CitationAlternativeFormPublicationInfoPublishedInComponent o = (CitationAlternativeFormPublicationInfoPublishedInComponent) other_; - return compareValues(name, o.name, true) && compareValues(publisherLocation, o.publisherLocation, true) - && compareValues(startDate, o.startDate, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, name, publisher, publisherLocation - , startDate); - } - - public String fhirType() { - return "Citation.alternativeForm.publicationInfo.publishedIn"; - - } - - } - - @Block() - public static class CitationKeywordListComponent extends BackboneElement implements IBaseBackboneElement { - /** - * The entity responsible for the creation or maintenance of this keyword list. - */ - @Child(name = "owner", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Author, publisher, or custodian of the keyword list", formalDefinition="The entity responsible for the creation or maintenance of this keyword list." ) - protected StringType owner; - - /** - * For each keyword in the keyword list. - */ - @Child(name = "keyword", type = {}, order=2, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="For each keyword in the keyword list", formalDefinition="For each keyword in the keyword list." ) - protected List keyword; - - private static final long serialVersionUID = -1638002879L; - - /** - * Constructor - */ - public CitationKeywordListComponent() { - super(); - } - - /** - * Constructor - */ - public CitationKeywordListComponent(CitationKeywordListKeywordComponent keyword) { - super(); - this.addKeyword(keyword); - } - - /** - * @return {@link #owner} (The entity responsible for the creation or maintenance of this keyword list.). This is the underlying object with id, value and extensions. The accessor "getOwner" gives direct access to the value - */ - public StringType getOwnerElement() { - if (this.owner == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationKeywordListComponent.owner"); - else if (Configuration.doAutoCreate()) - this.owner = new StringType(); // bb - return this.owner; - } - - public boolean hasOwnerElement() { - return this.owner != null && !this.owner.isEmpty(); - } - - public boolean hasOwner() { - return this.owner != null && !this.owner.isEmpty(); - } - - /** - * @param value {@link #owner} (The entity responsible for the creation or maintenance of this keyword list.). This is the underlying object with id, value and extensions. The accessor "getOwner" gives direct access to the value - */ - public CitationKeywordListComponent setOwnerElement(StringType value) { - this.owner = value; - return this; - } - - /** - * @return The entity responsible for the creation or maintenance of this keyword list. - */ - public String getOwner() { - return this.owner == null ? null : this.owner.getValue(); - } - - /** - * @param value The entity responsible for the creation or maintenance of this keyword list. - */ - public CitationKeywordListComponent setOwner(String value) { - if (Utilities.noString(value)) - this.owner = null; - else { - if (this.owner == null) - this.owner = new StringType(); - this.owner.setValue(value); - } - return this; - } - - /** - * @return {@link #keyword} (For each keyword in the keyword list.) - */ - public List getKeyword() { - if (this.keyword == null) - this.keyword = new ArrayList(); - return this.keyword; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public CitationKeywordListComponent setKeyword(List theKeyword) { - this.keyword = theKeyword; - return this; - } - - public boolean hasKeyword() { - if (this.keyword == null) - return false; - for (CitationKeywordListKeywordComponent item : this.keyword) - if (!item.isEmpty()) - return true; - return false; - } - - public CitationKeywordListKeywordComponent addKeyword() { //3 - CitationKeywordListKeywordComponent t = new CitationKeywordListKeywordComponent(); - if (this.keyword == null) - this.keyword = new ArrayList(); - this.keyword.add(t); - return t; - } - - public CitationKeywordListComponent addKeyword(CitationKeywordListKeywordComponent t) { //3 - if (t == null) - return this; - if (this.keyword == null) - this.keyword = new ArrayList(); - this.keyword.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #keyword}, creating it if it does not already exist {3} - */ - public CitationKeywordListKeywordComponent getKeywordFirstRep() { - if (getKeyword().isEmpty()) { - addKeyword(); - } - return getKeyword().get(0); - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("owner", "string", "The entity responsible for the creation or maintenance of this keyword list.", 0, 1, owner)); - children.add(new Property("keyword", "", "For each keyword in the keyword list.", 0, java.lang.Integer.MAX_VALUE, keyword)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 106164915: /*owner*/ return new Property("owner", "string", "The entity responsible for the creation or maintenance of this keyword list.", 0, 1, owner); - case -814408215: /*keyword*/ return new Property("keyword", "", "For each keyword in the keyword list.", 0, java.lang.Integer.MAX_VALUE, keyword); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 106164915: /*owner*/ return this.owner == null ? new Base[0] : new Base[] {this.owner}; // StringType - case -814408215: /*keyword*/ return this.keyword == null ? new Base[0] : this.keyword.toArray(new Base[this.keyword.size()]); // CitationKeywordListKeywordComponent - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 106164915: // owner - this.owner = TypeConvertor.castToString(value); // StringType - return value; - case -814408215: // keyword - this.getKeyword().add((CitationKeywordListKeywordComponent) value); // CitationKeywordListKeywordComponent - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("owner")) { - this.owner = TypeConvertor.castToString(value); // StringType - } else if (name.equals("keyword")) { - this.getKeyword().add((CitationKeywordListKeywordComponent) value); - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 106164915: return getOwnerElement(); - case -814408215: return addKeyword(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 106164915: /*owner*/ return new String[] {"string"}; - case -814408215: /*keyword*/ return new String[] {}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("owner")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.keywordList.owner"); - } - else if (name.equals("keyword")) { - return addKeyword(); - } - else - return super.addChild(name); - } - - public CitationKeywordListComponent copy() { - CitationKeywordListComponent dst = new CitationKeywordListComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationKeywordListComponent dst) { - super.copyValues(dst); - dst.owner = owner == null ? null : owner.copy(); - if (keyword != null) { - dst.keyword = new ArrayList(); - for (CitationKeywordListKeywordComponent i : keyword) - dst.keyword.add(i.copy()); - }; - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationKeywordListComponent)) - return false; - CitationKeywordListComponent o = (CitationKeywordListComponent) other_; - return compareDeep(owner, o.owner, true) && compareDeep(keyword, o.keyword, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationKeywordListComponent)) - return false; - CitationKeywordListComponent o = (CitationKeywordListComponent) other_; - return compareValues(owner, o.owner, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(owner, keyword); - } - - public String fhirType() { - return "Citation.keywordList"; - - } - - } - - @Block() - public static class CitationKeywordListKeywordComponent extends BackboneElement implements IBaseBackboneElement { - /** - * Whether or not it is a major topic. - */ - @Child(name = "majorTopic", type = {BooleanType.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Whether or not it is a major topic", formalDefinition="Whether or not it is a major topic." ) - protected BooleanType majorTopic; - - /** - * The actual keyword. - */ - @Child(name = "value", type = {StringType.class}, order=2, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="The actual keyword", formalDefinition="The actual keyword." ) - protected StringType value; - - private static final long serialVersionUID = 853626648L; - - /** - * Constructor - */ - public CitationKeywordListKeywordComponent() { - super(); - } - - /** - * Constructor - */ - public CitationKeywordListKeywordComponent(String value) { - super(); - this.setValue(value); - } - - /** - * @return {@link #majorTopic} (Whether or not it is a major topic.). This is the underlying object with id, value and extensions. The accessor "getMajorTopic" gives direct access to the value - */ - public BooleanType getMajorTopicElement() { - if (this.majorTopic == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationKeywordListKeywordComponent.majorTopic"); - else if (Configuration.doAutoCreate()) - this.majorTopic = new BooleanType(); // bb - return this.majorTopic; - } - - public boolean hasMajorTopicElement() { - return this.majorTopic != null && !this.majorTopic.isEmpty(); - } - - public boolean hasMajorTopic() { - return this.majorTopic != null && !this.majorTopic.isEmpty(); - } - - /** - * @param value {@link #majorTopic} (Whether or not it is a major topic.). This is the underlying object with id, value and extensions. The accessor "getMajorTopic" gives direct access to the value - */ - public CitationKeywordListKeywordComponent setMajorTopicElement(BooleanType value) { - this.majorTopic = value; - return this; - } - - /** - * @return Whether or not it is a major topic. - */ - public boolean getMajorTopic() { - return this.majorTopic == null || this.majorTopic.isEmpty() ? false : this.majorTopic.getValue(); - } - - /** - * @param value Whether or not it is a major topic. - */ - public CitationKeywordListKeywordComponent setMajorTopic(boolean value) { - if (this.majorTopic == null) - this.majorTopic = new BooleanType(); - this.majorTopic.setValue(value); - return this; - } - - /** - * @return {@link #value} (The actual keyword.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value - */ - public StringType getValueElement() { - if (this.value == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationKeywordListKeywordComponent.value"); - else if (Configuration.doAutoCreate()) - this.value = new StringType(); // bb - return this.value; - } - - public boolean hasValueElement() { - return this.value != null && !this.value.isEmpty(); - } - - public boolean hasValue() { - return this.value != null && !this.value.isEmpty(); - } - - /** - * @param value {@link #value} (The actual keyword.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value - */ - public CitationKeywordListKeywordComponent setValueElement(StringType value) { - this.value = value; - return this; - } - - /** - * @return The actual keyword. - */ - public String getValue() { - return this.value == null ? null : this.value.getValue(); - } - - /** - * @param value The actual keyword. - */ - public CitationKeywordListKeywordComponent setValue(String value) { - if (this.value == null) - this.value = new StringType(); - this.value.setValue(value); - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("majorTopic", "boolean", "Whether or not it is a major topic.", 0, 1, majorTopic)); - children.add(new Property("value", "string", "The actual keyword.", 0, 1, value)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case -341847306: /*majorTopic*/ return new Property("majorTopic", "boolean", "Whether or not it is a major topic.", 0, 1, majorTopic); - case 111972721: /*value*/ return new Property("value", "string", "The actual keyword.", 0, 1, value); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case -341847306: /*majorTopic*/ return this.majorTopic == null ? new Base[0] : new Base[] {this.majorTopic}; // BooleanType - case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // StringType - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case -341847306: // majorTopic - this.majorTopic = TypeConvertor.castToBoolean(value); // BooleanType - return value; - case 111972721: // value - this.value = TypeConvertor.castToString(value); // StringType - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("majorTopic")) { - this.majorTopic = TypeConvertor.castToBoolean(value); // BooleanType - } else if (name.equals("value")) { - this.value = TypeConvertor.castToString(value); // StringType - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -341847306: return getMajorTopicElement(); - case 111972721: return getValueElement(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -341847306: /*majorTopic*/ return new String[] {"boolean"}; - case 111972721: /*value*/ return new String[] {"string"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("majorTopic")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.keywordList.keyword.majorTopic"); - } - else if (name.equals("value")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.keywordList.keyword.value"); - } - else - return super.addChild(name); - } - - public CitationKeywordListKeywordComponent copy() { - CitationKeywordListKeywordComponent dst = new CitationKeywordListKeywordComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationKeywordListKeywordComponent dst) { - super.copyValues(dst); - dst.majorTopic = majorTopic == null ? null : majorTopic.copy(); - dst.value = value == null ? null : value.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationKeywordListKeywordComponent)) - return false; - CitationKeywordListKeywordComponent o = (CitationKeywordListKeywordComponent) other_; - return compareDeep(majorTopic, o.majorTopic, true) && compareDeep(value, o.value, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationKeywordListKeywordComponent)) - return false; - CitationKeywordListKeywordComponent o = (CitationKeywordListKeywordComponent) other_; - return compareValues(majorTopic, o.majorTopic, true) && compareValues(value, o.value, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(majorTopic, value); - } - - public String fhirType() { - return "Citation.keywordList.keyword"; - - } - - } - - @Block() - public static class CitationMedlinePubMedComponent extends BackboneElement implements IBaseBackboneElement { - /** - * Used for status. - */ - @Child(name = "medlineState", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Completed | In-Process | PubMed-not-MEDLINE | In-Data-Review | Publisher | MEDLINE | OLDMEDLINE", formalDefinition="Used for status." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/medline-pubmed-status") - protected CodeableConcept medlineState; - - /** - * Used for owner. - */ - @Child(name = "owner", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="NLM | NASA | PIP | KIE | HSR | HMD | SIS | NOTNLM", formalDefinition="Used for owner." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/medline-pubmed-owner") - protected CodeableConcept owner; - - /** - * PubMed ID. - */ - @Child(name = "pmid", type = {PositiveIntType.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="PubMed ID", formalDefinition="PubMed ID." ) - protected PositiveIntType pmid; - - /** - * PubMed ID Version. - */ - @Child(name = "pmidVersion", type = {PositiveIntType.class}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="PubMed ID Version", formalDefinition="PubMed ID Version." ) - protected PositiveIntType pmidVersion; - - /** - * Creation date. - */ - @Child(name = "dateCreated", type = {DateType.class}, order=5, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Creation date", formalDefinition="Creation date." ) - protected DateType dateCreated; - - /** - * Completion date. - */ - @Child(name = "dateCompleted", type = {DateType.class}, order=6, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Completion date", formalDefinition="Completion date." ) - protected DateType dateCompleted; - - /** - * Revision date. - */ - @Child(name = "dateRevised", type = {DateType.class}, order=7, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Revision date", formalDefinition="Revision date." ) - protected DateType dateRevised; - - /** - * Subcomponent of certainty. - */ - @Child(name = "pubMedPubDate", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Subcomponent of certainty", formalDefinition="Subcomponent of certainty." ) - protected List pubMedPubDate; - - /** - * Publication Status. - */ - @Child(name = "publicationState", type = {CodeableConcept.class}, order=9, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Publication Status", formalDefinition="Publication Status." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/pubmed-pubstatus") - protected CodeableConcept publicationState; - - /** - * Related article. - */ - @Child(name = "relatedArticle", type = {}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Related article", formalDefinition="Related article." ) - protected List relatedArticle; - - private static final long serialVersionUID = -455295099L; - - /** - * Constructor - */ - public CitationMedlinePubMedComponent() { - super(); - } - - /** - * @return {@link #medlineState} (Used for status.) - */ - public CodeableConcept getMedlineState() { - if (this.medlineState == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationMedlinePubMedComponent.medlineState"); - else if (Configuration.doAutoCreate()) - this.medlineState = new CodeableConcept(); // cc - return this.medlineState; - } - - public boolean hasMedlineState() { - return this.medlineState != null && !this.medlineState.isEmpty(); - } - - /** - * @param value {@link #medlineState} (Used for status.) - */ - public CitationMedlinePubMedComponent setMedlineState(CodeableConcept value) { - this.medlineState = value; - return this; - } - - /** - * @return {@link #owner} (Used for owner.) - */ - public CodeableConcept getOwner() { - if (this.owner == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationMedlinePubMedComponent.owner"); - else if (Configuration.doAutoCreate()) - this.owner = new CodeableConcept(); // cc - return this.owner; - } - - public boolean hasOwner() { - return this.owner != null && !this.owner.isEmpty(); - } - - /** - * @param value {@link #owner} (Used for owner.) - */ - public CitationMedlinePubMedComponent setOwner(CodeableConcept value) { - this.owner = value; - return this; - } - - /** - * @return {@link #pmid} (PubMed ID.). This is the underlying object with id, value and extensions. The accessor "getPmid" gives direct access to the value - */ - public PositiveIntType getPmidElement() { - if (this.pmid == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationMedlinePubMedComponent.pmid"); - else if (Configuration.doAutoCreate()) - this.pmid = new PositiveIntType(); // bb - return this.pmid; - } - - public boolean hasPmidElement() { - return this.pmid != null && !this.pmid.isEmpty(); - } - - public boolean hasPmid() { - return this.pmid != null && !this.pmid.isEmpty(); - } - - /** - * @param value {@link #pmid} (PubMed ID.). This is the underlying object with id, value and extensions. The accessor "getPmid" gives direct access to the value - */ - public CitationMedlinePubMedComponent setPmidElement(PositiveIntType value) { - this.pmid = value; - return this; - } - - /** - * @return PubMed ID. - */ - public int getPmid() { - return this.pmid == null || this.pmid.isEmpty() ? 0 : this.pmid.getValue(); - } - - /** - * @param value PubMed ID. - */ - public CitationMedlinePubMedComponent setPmid(int value) { - if (this.pmid == null) - this.pmid = new PositiveIntType(); - this.pmid.setValue(value); - return this; - } - - /** - * @return {@link #pmidVersion} (PubMed ID Version.). This is the underlying object with id, value and extensions. The accessor "getPmidVersion" gives direct access to the value - */ - public PositiveIntType getPmidVersionElement() { - if (this.pmidVersion == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationMedlinePubMedComponent.pmidVersion"); - else if (Configuration.doAutoCreate()) - this.pmidVersion = new PositiveIntType(); // bb - return this.pmidVersion; - } - - public boolean hasPmidVersionElement() { - return this.pmidVersion != null && !this.pmidVersion.isEmpty(); - } - - public boolean hasPmidVersion() { - return this.pmidVersion != null && !this.pmidVersion.isEmpty(); - } - - /** - * @param value {@link #pmidVersion} (PubMed ID Version.). This is the underlying object with id, value and extensions. The accessor "getPmidVersion" gives direct access to the value - */ - public CitationMedlinePubMedComponent setPmidVersionElement(PositiveIntType value) { - this.pmidVersion = value; - return this; - } - - /** - * @return PubMed ID Version. - */ - public int getPmidVersion() { - return this.pmidVersion == null || this.pmidVersion.isEmpty() ? 0 : this.pmidVersion.getValue(); - } - - /** - * @param value PubMed ID Version. - */ - public CitationMedlinePubMedComponent setPmidVersion(int value) { - if (this.pmidVersion == null) - this.pmidVersion = new PositiveIntType(); - this.pmidVersion.setValue(value); - return this; - } - - /** - * @return {@link #dateCreated} (Creation date.). This is the underlying object with id, value and extensions. The accessor "getDateCreated" gives direct access to the value - */ - public DateType getDateCreatedElement() { - if (this.dateCreated == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationMedlinePubMedComponent.dateCreated"); - else if (Configuration.doAutoCreate()) - this.dateCreated = new DateType(); // bb - return this.dateCreated; - } - - public boolean hasDateCreatedElement() { - return this.dateCreated != null && !this.dateCreated.isEmpty(); - } - - public boolean hasDateCreated() { - return this.dateCreated != null && !this.dateCreated.isEmpty(); - } - - /** - * @param value {@link #dateCreated} (Creation date.). This is the underlying object with id, value and extensions. The accessor "getDateCreated" gives direct access to the value - */ - public CitationMedlinePubMedComponent setDateCreatedElement(DateType value) { - this.dateCreated = value; - return this; - } - - /** - * @return Creation date. - */ - public Date getDateCreated() { - return this.dateCreated == null ? null : this.dateCreated.getValue(); - } - - /** - * @param value Creation date. - */ - public CitationMedlinePubMedComponent setDateCreated(Date value) { - if (value == null) - this.dateCreated = null; - else { - if (this.dateCreated == null) - this.dateCreated = new DateType(); - this.dateCreated.setValue(value); - } - return this; - } - - /** - * @return {@link #dateCompleted} (Completion date.). This is the underlying object with id, value and extensions. The accessor "getDateCompleted" gives direct access to the value - */ - public DateType getDateCompletedElement() { - if (this.dateCompleted == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationMedlinePubMedComponent.dateCompleted"); - else if (Configuration.doAutoCreate()) - this.dateCompleted = new DateType(); // bb - return this.dateCompleted; - } - - public boolean hasDateCompletedElement() { - return this.dateCompleted != null && !this.dateCompleted.isEmpty(); - } - - public boolean hasDateCompleted() { - return this.dateCompleted != null && !this.dateCompleted.isEmpty(); - } - - /** - * @param value {@link #dateCompleted} (Completion date.). This is the underlying object with id, value and extensions. The accessor "getDateCompleted" gives direct access to the value - */ - public CitationMedlinePubMedComponent setDateCompletedElement(DateType value) { - this.dateCompleted = value; - return this; - } - - /** - * @return Completion date. - */ - public Date getDateCompleted() { - return this.dateCompleted == null ? null : this.dateCompleted.getValue(); - } - - /** - * @param value Completion date. - */ - public CitationMedlinePubMedComponent setDateCompleted(Date value) { - if (value == null) - this.dateCompleted = null; - else { - if (this.dateCompleted == null) - this.dateCompleted = new DateType(); - this.dateCompleted.setValue(value); - } - return this; - } - - /** - * @return {@link #dateRevised} (Revision date.). This is the underlying object with id, value and extensions. The accessor "getDateRevised" gives direct access to the value - */ - public DateType getDateRevisedElement() { - if (this.dateRevised == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationMedlinePubMedComponent.dateRevised"); - else if (Configuration.doAutoCreate()) - this.dateRevised = new DateType(); // bb - return this.dateRevised; - } - - public boolean hasDateRevisedElement() { - return this.dateRevised != null && !this.dateRevised.isEmpty(); - } - - public boolean hasDateRevised() { - return this.dateRevised != null && !this.dateRevised.isEmpty(); - } - - /** - * @param value {@link #dateRevised} (Revision date.). This is the underlying object with id, value and extensions. The accessor "getDateRevised" gives direct access to the value - */ - public CitationMedlinePubMedComponent setDateRevisedElement(DateType value) { - this.dateRevised = value; - return this; - } - - /** - * @return Revision date. - */ - public Date getDateRevised() { - return this.dateRevised == null ? null : this.dateRevised.getValue(); - } - - /** - * @param value Revision date. - */ - public CitationMedlinePubMedComponent setDateRevised(Date value) { - if (value == null) - this.dateRevised = null; - else { - if (this.dateRevised == null) - this.dateRevised = new DateType(); - this.dateRevised.setValue(value); - } - return this; - } - - /** - * @return {@link #pubMedPubDate} (Subcomponent of certainty.) - */ - public List getPubMedPubDate() { - if (this.pubMedPubDate == null) - this.pubMedPubDate = new ArrayList(); - return this.pubMedPubDate; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public CitationMedlinePubMedComponent setPubMedPubDate(List thePubMedPubDate) { - this.pubMedPubDate = thePubMedPubDate; - return this; - } - - public boolean hasPubMedPubDate() { - if (this.pubMedPubDate == null) - return false; - for (CitationMedlinePubMedPubMedPubDateComponent item : this.pubMedPubDate) - if (!item.isEmpty()) - return true; - return false; - } - - public CitationMedlinePubMedPubMedPubDateComponent addPubMedPubDate() { //3 - CitationMedlinePubMedPubMedPubDateComponent t = new CitationMedlinePubMedPubMedPubDateComponent(); - if (this.pubMedPubDate == null) - this.pubMedPubDate = new ArrayList(); - this.pubMedPubDate.add(t); - return t; - } - - public CitationMedlinePubMedComponent addPubMedPubDate(CitationMedlinePubMedPubMedPubDateComponent t) { //3 - if (t == null) - return this; - if (this.pubMedPubDate == null) - this.pubMedPubDate = new ArrayList(); - this.pubMedPubDate.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #pubMedPubDate}, creating it if it does not already exist {3} - */ - public CitationMedlinePubMedPubMedPubDateComponent getPubMedPubDateFirstRep() { - if (getPubMedPubDate().isEmpty()) { - addPubMedPubDate(); - } - return getPubMedPubDate().get(0); - } - - /** - * @return {@link #publicationState} (Publication Status.) - */ - public CodeableConcept getPublicationState() { - if (this.publicationState == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationMedlinePubMedComponent.publicationState"); - else if (Configuration.doAutoCreate()) - this.publicationState = new CodeableConcept(); // cc - return this.publicationState; - } - - public boolean hasPublicationState() { - return this.publicationState != null && !this.publicationState.isEmpty(); - } - - /** - * @param value {@link #publicationState} (Publication Status.) - */ - public CitationMedlinePubMedComponent setPublicationState(CodeableConcept value) { - this.publicationState = value; - return this; - } - - /** - * @return {@link #relatedArticle} (Related article.) - */ - public List getRelatedArticle() { - if (this.relatedArticle == null) - this.relatedArticle = new ArrayList(); - return this.relatedArticle; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public CitationMedlinePubMedComponent setRelatedArticle(List theRelatedArticle) { - this.relatedArticle = theRelatedArticle; - return this; - } - - public boolean hasRelatedArticle() { - if (this.relatedArticle == null) - return false; - for (CitationMedlinePubMedRelatedArticleComponent item : this.relatedArticle) - if (!item.isEmpty()) - return true; - return false; - } - - public CitationMedlinePubMedRelatedArticleComponent addRelatedArticle() { //3 - CitationMedlinePubMedRelatedArticleComponent t = new CitationMedlinePubMedRelatedArticleComponent(); - if (this.relatedArticle == null) - this.relatedArticle = new ArrayList(); - this.relatedArticle.add(t); - return t; - } - - public CitationMedlinePubMedComponent addRelatedArticle(CitationMedlinePubMedRelatedArticleComponent t) { //3 - if (t == null) - return this; - if (this.relatedArticle == null) - this.relatedArticle = new ArrayList(); - this.relatedArticle.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #relatedArticle}, creating it if it does not already exist {3} - */ - public CitationMedlinePubMedRelatedArticleComponent getRelatedArticleFirstRep() { - if (getRelatedArticle().isEmpty()) { - addRelatedArticle(); - } - return getRelatedArticle().get(0); - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("medlineState", "CodeableConcept", "Used for status.", 0, 1, medlineState)); - children.add(new Property("owner", "CodeableConcept", "Used for owner.", 0, 1, owner)); - children.add(new Property("pmid", "positiveInt", "PubMed ID.", 0, 1, pmid)); - children.add(new Property("pmidVersion", "positiveInt", "PubMed ID Version.", 0, 1, pmidVersion)); - children.add(new Property("dateCreated", "date", "Creation date.", 0, 1, dateCreated)); - children.add(new Property("dateCompleted", "date", "Completion date.", 0, 1, dateCompleted)); - children.add(new Property("dateRevised", "date", "Revision date.", 0, 1, dateRevised)); - children.add(new Property("pubMedPubDate", "", "Subcomponent of certainty.", 0, java.lang.Integer.MAX_VALUE, pubMedPubDate)); - children.add(new Property("publicationState", "CodeableConcept", "Publication Status.", 0, 1, publicationState)); - children.add(new Property("relatedArticle", "", "Related article.", 0, java.lang.Integer.MAX_VALUE, relatedArticle)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case 97983665: /*medlineState*/ return new Property("medlineState", "CodeableConcept", "Used for status.", 0, 1, medlineState); - case 106164915: /*owner*/ return new Property("owner", "CodeableConcept", "Used for owner.", 0, 1, owner); - case 3444696: /*pmid*/ return new Property("pmid", "positiveInt", "PubMed ID.", 0, 1, pmid); - case 59253216: /*pmidVersion*/ return new Property("pmidVersion", "positiveInt", "PubMed ID Version.", 0, 1, pmidVersion); - case -2071345318: /*dateCreated*/ return new Property("dateCreated", "date", "Creation date.", 0, 1, dateCreated); - case 300673597: /*dateCompleted*/ return new Property("dateCompleted", "date", "Completion date.", 0, 1, dateCompleted); - case -1999933730: /*dateRevised*/ return new Property("dateRevised", "date", "Revision date.", 0, 1, dateRevised); - case -1086645316: /*pubMedPubDate*/ return new Property("pubMedPubDate", "", "Subcomponent of certainty.", 0, java.lang.Integer.MAX_VALUE, pubMedPubDate); - case -1642680891: /*publicationState*/ return new Property("publicationState", "CodeableConcept", "Publication Status.", 0, 1, publicationState); - case 1406980683: /*relatedArticle*/ return new Property("relatedArticle", "", "Related article.", 0, java.lang.Integer.MAX_VALUE, relatedArticle); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case 97983665: /*medlineState*/ return this.medlineState == null ? new Base[0] : new Base[] {this.medlineState}; // CodeableConcept - case 106164915: /*owner*/ return this.owner == null ? new Base[0] : new Base[] {this.owner}; // CodeableConcept - case 3444696: /*pmid*/ return this.pmid == null ? new Base[0] : new Base[] {this.pmid}; // PositiveIntType - case 59253216: /*pmidVersion*/ return this.pmidVersion == null ? new Base[0] : new Base[] {this.pmidVersion}; // PositiveIntType - case -2071345318: /*dateCreated*/ return this.dateCreated == null ? new Base[0] : new Base[] {this.dateCreated}; // DateType - case 300673597: /*dateCompleted*/ return this.dateCompleted == null ? new Base[0] : new Base[] {this.dateCompleted}; // DateType - case -1999933730: /*dateRevised*/ return this.dateRevised == null ? new Base[0] : new Base[] {this.dateRevised}; // DateType - case -1086645316: /*pubMedPubDate*/ return this.pubMedPubDate == null ? new Base[0] : this.pubMedPubDate.toArray(new Base[this.pubMedPubDate.size()]); // CitationMedlinePubMedPubMedPubDateComponent - case -1642680891: /*publicationState*/ return this.publicationState == null ? new Base[0] : new Base[] {this.publicationState}; // CodeableConcept - case 1406980683: /*relatedArticle*/ return this.relatedArticle == null ? new Base[0] : this.relatedArticle.toArray(new Base[this.relatedArticle.size()]); // CitationMedlinePubMedRelatedArticleComponent - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case 97983665: // medlineState - this.medlineState = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; - case 106164915: // owner - this.owner = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; - case 3444696: // pmid - this.pmid = TypeConvertor.castToPositiveInt(value); // PositiveIntType - return value; - case 59253216: // pmidVersion - this.pmidVersion = TypeConvertor.castToPositiveInt(value); // PositiveIntType - return value; - case -2071345318: // dateCreated - this.dateCreated = TypeConvertor.castToDate(value); // DateType - return value; - case 300673597: // dateCompleted - this.dateCompleted = TypeConvertor.castToDate(value); // DateType - return value; - case -1999933730: // dateRevised - this.dateRevised = TypeConvertor.castToDate(value); // DateType - return value; - case -1086645316: // pubMedPubDate - this.getPubMedPubDate().add((CitationMedlinePubMedPubMedPubDateComponent) value); // CitationMedlinePubMedPubMedPubDateComponent - return value; - case -1642680891: // publicationState - this.publicationState = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; - case 1406980683: // relatedArticle - this.getRelatedArticle().add((CitationMedlinePubMedRelatedArticleComponent) value); // CitationMedlinePubMedRelatedArticleComponent - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("medlineState")) { - this.medlineState = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("owner")) { - this.owner = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("pmid")) { - this.pmid = TypeConvertor.castToPositiveInt(value); // PositiveIntType - } else if (name.equals("pmidVersion")) { - this.pmidVersion = TypeConvertor.castToPositiveInt(value); // PositiveIntType - } else if (name.equals("dateCreated")) { - this.dateCreated = TypeConvertor.castToDate(value); // DateType - } else if (name.equals("dateCompleted")) { - this.dateCompleted = TypeConvertor.castToDate(value); // DateType - } else if (name.equals("dateRevised")) { - this.dateRevised = TypeConvertor.castToDate(value); // DateType - } else if (name.equals("pubMedPubDate")) { - this.getPubMedPubDate().add((CitationMedlinePubMedPubMedPubDateComponent) value); - } else if (name.equals("publicationState")) { - this.publicationState = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("relatedArticle")) { - this.getRelatedArticle().add((CitationMedlinePubMedRelatedArticleComponent) value); - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 97983665: return getMedlineState(); - case 106164915: return getOwner(); - case 3444696: return getPmidElement(); - case 59253216: return getPmidVersionElement(); - case -2071345318: return getDateCreatedElement(); - case 300673597: return getDateCompletedElement(); - case -1999933730: return getDateRevisedElement(); - case -1086645316: return addPubMedPubDate(); - case -1642680891: return getPublicationState(); - case 1406980683: return addRelatedArticle(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case 97983665: /*medlineState*/ return new String[] {"CodeableConcept"}; - case 106164915: /*owner*/ return new String[] {"CodeableConcept"}; - case 3444696: /*pmid*/ return new String[] {"positiveInt"}; - case 59253216: /*pmidVersion*/ return new String[] {"positiveInt"}; - case -2071345318: /*dateCreated*/ return new String[] {"date"}; - case 300673597: /*dateCompleted*/ return new String[] {"date"}; - case -1999933730: /*dateRevised*/ return new String[] {"date"}; - case -1086645316: /*pubMedPubDate*/ return new String[] {}; - case -1642680891: /*publicationState*/ return new String[] {"CodeableConcept"}; - case 1406980683: /*relatedArticle*/ return new String[] {}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("medlineState")) { - this.medlineState = new CodeableConcept(); - return this.medlineState; - } - else if (name.equals("owner")) { - this.owner = new CodeableConcept(); - return this.owner; - } - else if (name.equals("pmid")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.medlinePubMed.pmid"); - } - else if (name.equals("pmidVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.medlinePubMed.pmidVersion"); - } - else if (name.equals("dateCreated")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.medlinePubMed.dateCreated"); - } - else if (name.equals("dateCompleted")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.medlinePubMed.dateCompleted"); - } - else if (name.equals("dateRevised")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.medlinePubMed.dateRevised"); - } - else if (name.equals("pubMedPubDate")) { - return addPubMedPubDate(); - } - else if (name.equals("publicationState")) { - this.publicationState = new CodeableConcept(); - return this.publicationState; - } - else if (name.equals("relatedArticle")) { - return addRelatedArticle(); - } - else - return super.addChild(name); - } - - public CitationMedlinePubMedComponent copy() { - CitationMedlinePubMedComponent dst = new CitationMedlinePubMedComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(CitationMedlinePubMedComponent dst) { - super.copyValues(dst); - dst.medlineState = medlineState == null ? null : medlineState.copy(); - dst.owner = owner == null ? null : owner.copy(); - dst.pmid = pmid == null ? null : pmid.copy(); - dst.pmidVersion = pmidVersion == null ? null : pmidVersion.copy(); - dst.dateCreated = dateCreated == null ? null : dateCreated.copy(); - dst.dateCompleted = dateCompleted == null ? null : dateCompleted.copy(); - dst.dateRevised = dateRevised == null ? null : dateRevised.copy(); - if (pubMedPubDate != null) { - dst.pubMedPubDate = new ArrayList(); - for (CitationMedlinePubMedPubMedPubDateComponent i : pubMedPubDate) - dst.pubMedPubDate.add(i.copy()); - }; - dst.publicationState = publicationState == null ? null : publicationState.copy(); - if (relatedArticle != null) { - dst.relatedArticle = new ArrayList(); - for (CitationMedlinePubMedRelatedArticleComponent i : relatedArticle) - dst.relatedArticle.add(i.copy()); - }; - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof CitationMedlinePubMedComponent)) - return false; - CitationMedlinePubMedComponent o = (CitationMedlinePubMedComponent) other_; - return compareDeep(medlineState, o.medlineState, true) && compareDeep(owner, o.owner, true) && compareDeep(pmid, o.pmid, true) - && compareDeep(pmidVersion, o.pmidVersion, true) && compareDeep(dateCreated, o.dateCreated, true) - && compareDeep(dateCompleted, o.dateCompleted, true) && compareDeep(dateRevised, o.dateRevised, true) - && compareDeep(pubMedPubDate, o.pubMedPubDate, true) && compareDeep(publicationState, o.publicationState, true) - && compareDeep(relatedArticle, o.relatedArticle, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof CitationMedlinePubMedComponent)) - return false; - CitationMedlinePubMedComponent o = (CitationMedlinePubMedComponent) other_; - return compareValues(pmid, o.pmid, true) && compareValues(pmidVersion, o.pmidVersion, true) && compareValues(dateCreated, o.dateCreated, true) - && compareValues(dateCompleted, o.dateCompleted, true) && compareValues(dateRevised, o.dateRevised, true) + CitationCitedArtifactClassificationWhoClassifiedComponent o = (CitationCitedArtifactClassificationWhoClassifiedComponent) other_; + return compareValues(classifierCopyright, o.classifierCopyright, true) && compareValues(freeToShare, o.freeToShare, true) ; } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(medlineState, owner, pmid - , pmidVersion, dateCreated, dateCompleted, dateRevised, pubMedPubDate, publicationState - , relatedArticle); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(person, organization, publisher + , classifierCopyright, freeToShare); } public String fhirType() { - return "Citation.medlinePubMed"; + return "Citation.citedArtifact.classification.whoClassified"; } } @Block() - public static class CitationMedlinePubMedPubMedPubDateComponent extends BackboneElement implements IBaseBackboneElement { + public static class CitationCitedArtifactContributorshipComponent extends BackboneElement implements IBaseBackboneElement { /** - * PubMed Publication Status. + * Indicates if the list includes all authors and/or contributors. */ - @Child(name = "publicationState", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="PubMed Publication Status", formalDefinition="PubMed Publication Status." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/pubmed-pubstatus") - protected CodeableConcept publicationState; + @Child(name = "complete", type = {BooleanType.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Indicates if the list includes all authors and/or contributors", formalDefinition="Indicates if the list includes all authors and/or contributors." ) + protected BooleanType complete; /** - * PubMed Publication Date. + * An individual entity named in the author list or contributor list. */ - @Child(name = "date", type = {DateTimeType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="PubMed Publication Date", formalDefinition="PubMed Publication Date." ) - protected DateTimeType date; + @Child(name = "entry", type = {}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="An individual entity named in the list", formalDefinition="An individual entity named in the author list or contributor list." ) + protected List entry; - private static final long serialVersionUID = 1620940147L; + /** + * Used to record a display of the author/contributor list without separate coding for each list member. + */ + @Child(name = "summary", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Used to record a display of the author/contributor list without separate coding for each list member", formalDefinition="Used to record a display of the author/contributor list without separate coding for each list member." ) + protected List summary; + + private static final long serialVersionUID = 78346599L; /** * Constructor */ - public CitationMedlinePubMedPubMedPubDateComponent() { + public CitationCitedArtifactContributorshipComponent() { super(); } /** - * @return {@link #publicationState} (PubMed Publication Status.) + * @return {@link #complete} (Indicates if the list includes all authors and/or contributors.). This is the underlying object with id, value and extensions. The accessor "getComplete" gives direct access to the value */ - public CodeableConcept getPublicationState() { - if (this.publicationState == null) + public BooleanType getCompleteElement() { + if (this.complete == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationMedlinePubMedPubMedPubDateComponent.publicationState"); + throw new Error("Attempt to auto-create CitationCitedArtifactContributorshipComponent.complete"); else if (Configuration.doAutoCreate()) - this.publicationState = new CodeableConcept(); // cc - return this.publicationState; + this.complete = new BooleanType(); // bb + return this.complete; } - public boolean hasPublicationState() { - return this.publicationState != null && !this.publicationState.isEmpty(); + public boolean hasCompleteElement() { + return this.complete != null && !this.complete.isEmpty(); + } + + public boolean hasComplete() { + return this.complete != null && !this.complete.isEmpty(); } /** - * @param value {@link #publicationState} (PubMed Publication Status.) + * @param value {@link #complete} (Indicates if the list includes all authors and/or contributors.). This is the underlying object with id, value and extensions. The accessor "getComplete" gives direct access to the value */ - public CitationMedlinePubMedPubMedPubDateComponent setPublicationState(CodeableConcept value) { - this.publicationState = value; + public CitationCitedArtifactContributorshipComponent setCompleteElement(BooleanType value) { + this.complete = value; return this; } /** - * @return {@link #date} (PubMed Publication Date.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value + * @return Indicates if the list includes all authors and/or contributors. */ - public DateTimeType getDateElement() { - if (this.date == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationMedlinePubMedPubMedPubDateComponent.date"); - else if (Configuration.doAutoCreate()) - this.date = new DateTimeType(); // bb - return this.date; - } - - public boolean hasDateElement() { - return this.date != null && !this.date.isEmpty(); - } - - public boolean hasDate() { - return this.date != null && !this.date.isEmpty(); + public boolean getComplete() { + return this.complete == null || this.complete.isEmpty() ? false : this.complete.getValue(); } /** - * @param value {@link #date} (PubMed Publication Date.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value + * @param value Indicates if the list includes all authors and/or contributors. */ - public CitationMedlinePubMedPubMedPubDateComponent setDateElement(DateTimeType value) { - this.date = value; + public CitationCitedArtifactContributorshipComponent setComplete(boolean value) { + if (this.complete == null) + this.complete = new BooleanType(); + this.complete.setValue(value); return this; } /** - * @return PubMed Publication Date. + * @return {@link #entry} (An individual entity named in the author list or contributor list.) */ - public Date getDate() { - return this.date == null ? null : this.date.getValue(); + public List getEntry() { + if (this.entry == null) + this.entry = new ArrayList(); + return this.entry; } /** - * @param value PubMed Publication Date. + * @return Returns a reference to this for easy method chaining */ - public CitationMedlinePubMedPubMedPubDateComponent setDate(Date value) { - if (value == null) - this.date = null; - else { - if (this.date == null) - this.date = new DateTimeType(); - this.date.setValue(value); + public CitationCitedArtifactContributorshipComponent setEntry(List theEntry) { + this.entry = theEntry; + return this; + } + + public boolean hasEntry() { + if (this.entry == null) + return false; + for (CitationCitedArtifactContributorshipEntryComponent item : this.entry) + if (!item.isEmpty()) + return true; + return false; + } + + public CitationCitedArtifactContributorshipEntryComponent addEntry() { //3 + CitationCitedArtifactContributorshipEntryComponent t = new CitationCitedArtifactContributorshipEntryComponent(); + if (this.entry == null) + this.entry = new ArrayList(); + this.entry.add(t); + return t; + } + + public CitationCitedArtifactContributorshipComponent addEntry(CitationCitedArtifactContributorshipEntryComponent t) { //3 + if (t == null) + return this; + if (this.entry == null) + this.entry = new ArrayList(); + this.entry.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #entry}, creating it if it does not already exist {3} + */ + public CitationCitedArtifactContributorshipEntryComponent getEntryFirstRep() { + if (getEntry().isEmpty()) { + addEntry(); } + return getEntry().get(0); + } + + /** + * @return {@link #summary} (Used to record a display of the author/contributor list without separate coding for each list member.) + */ + public List getSummary() { + if (this.summary == null) + this.summary = new ArrayList(); + return this.summary; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactContributorshipComponent setSummary(List theSummary) { + this.summary = theSummary; return this; } + public boolean hasSummary() { + if (this.summary == null) + return false; + for (CitationCitedArtifactContributorshipSummaryComponent item : this.summary) + if (!item.isEmpty()) + return true; + return false; + } + + public CitationCitedArtifactContributorshipSummaryComponent addSummary() { //3 + CitationCitedArtifactContributorshipSummaryComponent t = new CitationCitedArtifactContributorshipSummaryComponent(); + if (this.summary == null) + this.summary = new ArrayList(); + this.summary.add(t); + return t; + } + + public CitationCitedArtifactContributorshipComponent addSummary(CitationCitedArtifactContributorshipSummaryComponent t) { //3 + if (t == null) + return this; + if (this.summary == null) + this.summary = new ArrayList(); + this.summary.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #summary}, creating it if it does not already exist {3} + */ + public CitationCitedArtifactContributorshipSummaryComponent getSummaryFirstRep() { + if (getSummary().isEmpty()) { + addSummary(); + } + return getSummary().get(0); + } + protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("publicationState", "CodeableConcept", "PubMed Publication Status.", 0, 1, publicationState)); - children.add(new Property("date", "dateTime", "PubMed Publication Date.", 0, 1, date)); + children.add(new Property("complete", "boolean", "Indicates if the list includes all authors and/or contributors.", 0, 1, complete)); + children.add(new Property("entry", "", "An individual entity named in the author list or contributor list.", 0, java.lang.Integer.MAX_VALUE, entry)); + children.add(new Property("summary", "", "Used to record a display of the author/contributor list without separate coding for each list member.", 0, java.lang.Integer.MAX_VALUE, summary)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -1642680891: /*publicationState*/ return new Property("publicationState", "CodeableConcept", "PubMed Publication Status.", 0, 1, publicationState); - case 3076014: /*date*/ return new Property("date", "dateTime", "PubMed Publication Date.", 0, 1, date); + case -599445191: /*complete*/ return new Property("complete", "boolean", "Indicates if the list includes all authors and/or contributors.", 0, 1, complete); + case 96667762: /*entry*/ return new Property("entry", "", "An individual entity named in the author list or contributor list.", 0, java.lang.Integer.MAX_VALUE, entry); + case -1857640538: /*summary*/ return new Property("summary", "", "Used to record a display of the author/contributor list without separate coding for each list member.", 0, java.lang.Integer.MAX_VALUE, summary); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -9446,8 +7144,9 @@ public class Citation extends MetadataResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case -1642680891: /*publicationState*/ return this.publicationState == null ? new Base[0] : new Base[] {this.publicationState}; // CodeableConcept - case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType + case -599445191: /*complete*/ return this.complete == null ? new Base[0] : new Base[] {this.complete}; // BooleanType + case 96667762: /*entry*/ return this.entry == null ? new Base[0] : this.entry.toArray(new Base[this.entry.size()]); // CitationCitedArtifactContributorshipEntryComponent + case -1857640538: /*summary*/ return this.summary == null ? new Base[0] : this.summary.toArray(new Base[this.summary.size()]); // CitationCitedArtifactContributorshipSummaryComponent default: return super.getProperty(hash, name, checkValid); } @@ -9456,11 +7155,14 @@ public class Citation extends MetadataResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { - case -1642680891: // publicationState - this.publicationState = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + case -599445191: // complete + this.complete = TypeConvertor.castToBoolean(value); // BooleanType return value; - case 3076014: // date - this.date = TypeConvertor.castToDateTime(value); // DateTimeType + case 96667762: // entry + this.getEntry().add((CitationCitedArtifactContributorshipEntryComponent) value); // CitationCitedArtifactContributorshipEntryComponent + return value; + case -1857640538: // summary + this.getSummary().add((CitationCitedArtifactContributorshipSummaryComponent) value); // CitationCitedArtifactContributorshipSummaryComponent return value; default: return super.setProperty(hash, name, value); } @@ -9469,10 +7171,12 @@ public class Citation extends MetadataResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("publicationState")) { - this.publicationState = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("date")) { - this.date = TypeConvertor.castToDateTime(value); // DateTimeType + if (name.equals("complete")) { + this.complete = TypeConvertor.castToBoolean(value); // BooleanType + } else if (name.equals("entry")) { + this.getEntry().add((CitationCitedArtifactContributorshipEntryComponent) value); + } else if (name.equals("summary")) { + this.getSummary().add((CitationCitedArtifactContributorshipSummaryComponent) value); } else return super.setProperty(name, value); return value; @@ -9481,8 +7185,9 @@ public class Citation extends MetadataResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { - case -1642680891: return getPublicationState(); - case 3076014: return getDateElement(); + case -599445191: return getCompleteElement(); + case 96667762: return addEntry(); + case -1857640538: return addSummary(); default: return super.makeProperty(hash, name); } @@ -9491,8 +7196,9 @@ public class Citation extends MetadataResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case -1642680891: /*publicationState*/ return new String[] {"CodeableConcept"}; - case 3076014: /*date*/ return new String[] {"dateTime"}; + case -599445191: /*complete*/ return new String[] {"boolean"}; + case 96667762: /*entry*/ return new String[] {}; + case -1857640538: /*summary*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -9500,37 +7206,48 @@ public class Citation extends MetadataResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("publicationState")) { - this.publicationState = new CodeableConcept(); - return this.publicationState; + if (name.equals("complete")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.complete"); } - else if (name.equals("date")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.medlinePubMed.pubMedPubDate.date"); + else if (name.equals("entry")) { + return addEntry(); + } + else if (name.equals("summary")) { + return addSummary(); } else return super.addChild(name); } - public CitationMedlinePubMedPubMedPubDateComponent copy() { - CitationMedlinePubMedPubMedPubDateComponent dst = new CitationMedlinePubMedPubMedPubDateComponent(); + public CitationCitedArtifactContributorshipComponent copy() { + CitationCitedArtifactContributorshipComponent dst = new CitationCitedArtifactContributorshipComponent(); copyValues(dst); return dst; } - public void copyValues(CitationMedlinePubMedPubMedPubDateComponent dst) { + public void copyValues(CitationCitedArtifactContributorshipComponent dst) { super.copyValues(dst); - dst.publicationState = publicationState == null ? null : publicationState.copy(); - dst.date = date == null ? null : date.copy(); + dst.complete = complete == null ? null : complete.copy(); + if (entry != null) { + dst.entry = new ArrayList(); + for (CitationCitedArtifactContributorshipEntryComponent i : entry) + dst.entry.add(i.copy()); + }; + if (summary != null) { + dst.summary = new ArrayList(); + for (CitationCitedArtifactContributorshipSummaryComponent i : summary) + dst.summary.add(i.copy()); + }; } @Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof CitationMedlinePubMedPubMedPubDateComponent)) + if (!(other_ instanceof CitationCitedArtifactContributorshipComponent)) return false; - CitationMedlinePubMedPubMedPubDateComponent o = (CitationMedlinePubMedPubMedPubDateComponent) other_; - return compareDeep(publicationState, o.publicationState, true) && compareDeep(date, o.date, true) + CitationCitedArtifactContributorshipComponent o = (CitationCitedArtifactContributorshipComponent) other_; + return compareDeep(complete, o.complete, true) && compareDeep(entry, o.entry, true) && compareDeep(summary, o.summary, true) ; } @@ -9538,130 +7255,245 @@ public class Citation extends MetadataResource { public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof CitationMedlinePubMedPubMedPubDateComponent)) + if (!(other_ instanceof CitationCitedArtifactContributorshipComponent)) return false; - CitationMedlinePubMedPubMedPubDateComponent o = (CitationMedlinePubMedPubMedPubDateComponent) other_; - return compareValues(date, o.date, true); + CitationCitedArtifactContributorshipComponent o = (CitationCitedArtifactContributorshipComponent) other_; + return compareValues(complete, o.complete, true); } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(publicationState, date); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(complete, entry, summary + ); } public String fhirType() { - return "Citation.medlinePubMed.pubMedPubDate"; + return "Citation.citedArtifact.contributorship"; } } @Block() - public static class CitationMedlinePubMedRelatedArticleComponent extends BackboneElement implements IBaseBackboneElement { + public static class CitationCitedArtifactContributorshipEntryComponent extends BackboneElement implements IBaseBackboneElement { /** - * Citation Resource for related article. + * A name associated with the individual. */ - @Child(name = "citationReference", type = {Citation.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Citation Resource for related article", formalDefinition="Citation Resource for related article." ) - protected Reference citationReference; + @Child(name = "name", type = {HumanName.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="A name associated with the person", formalDefinition="A name associated with the individual." ) + protected HumanName name; /** - * Citation string for related article. + * Initials for forename. */ - @Child(name = "citationMarkdown", type = {MarkdownType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Citation string for related article", formalDefinition="Citation string for related article." ) - protected MarkdownType citationMarkdown; + @Child(name = "initials", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Initials for forename", formalDefinition="Initials for forename." ) + protected StringType initials; /** - * Identifier for related article. + * Used for collective or corporate name as an author. */ - @Child(name = "identifier", type = {Identifier.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Identifier for related article", formalDefinition="Identifier for related article." ) + @Child(name = "collectiveName", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Used for collective or corporate name as an author", formalDefinition="Used for collective or corporate name as an author." ) + protected StringType collectiveName; + + /** + * Unique person identifier. + */ + @Child(name = "identifier", type = {Identifier.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Author identifier, eg ORCID", formalDefinition="Unique person identifier." ) protected List identifier; - private static final long serialVersionUID = -704722480L; + /** + * Organization affiliated with the entity. + */ + @Child(name = "affiliationInfo", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Organizational affiliation", formalDefinition="Organization affiliated with the entity." ) + protected List affiliationInfo; + + /** + * Physical mailing address for the author or contributor. + */ + @Child(name = "address", type = {Address.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Physical mailing address", formalDefinition="Physical mailing address for the author or contributor." ) + protected List
address; + + /** + * Email or telephone contact methods for the author or contributor. + */ + @Child(name = "telecom", type = {ContactPoint.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Email or telephone contact methods for the author or contributor", formalDefinition="Email or telephone contact methods for the author or contributor." ) + protected List telecom; + + /** + * This element identifies the specific nature of an individual’s contribution with respect to the cited work. + */ + @Child(name = "contributionType", type = {CodeableConcept.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="The specific contribution", formalDefinition="This element identifies the specific nature of an individual’s contribution with respect to the cited work." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/artifact-contribution-type") + protected List contributionType; + + /** + * The role of the contributor (e.g. author, editor, reviewer). + */ + @Child(name = "role", type = {CodeableConcept.class}, order=9, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The role of the contributor (e.g. author, editor, reviewer)", formalDefinition="The role of the contributor (e.g. author, editor, reviewer)." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/contributor-role") + protected CodeableConcept role; + + /** + * Contributions with accounting for time or number. + */ + @Child(name = "contributionInstance", type = {}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Contributions with accounting for time or number", formalDefinition="Contributions with accounting for time or number." ) + protected List contributionInstance; + + /** + * Indication of which contributor is the corresponding contributor for the role. + */ + @Child(name = "correspondingContact", type = {BooleanType.class}, order=11, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Indication of which contributor is the corresponding contributor for the role", formalDefinition="Indication of which contributor is the corresponding contributor for the role." ) + protected BooleanType correspondingContact; + + /** + * Used to code order of authors. + */ + @Child(name = "listOrder", type = {PositiveIntType.class}, order=12, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Used to code order of authors", formalDefinition="Used to code order of authors." ) + protected PositiveIntType listOrder; + + private static final long serialVersionUID = -1994433623L; /** * Constructor */ - public CitationMedlinePubMedRelatedArticleComponent() { + public CitationCitedArtifactContributorshipEntryComponent() { super(); } /** - * @return {@link #citationReference} (Citation Resource for related article.) + * @return {@link #name} (A name associated with the individual.) */ - public Reference getCitationReference() { - if (this.citationReference == null) + public HumanName getName() { + if (this.name == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationMedlinePubMedRelatedArticleComponent.citationReference"); + throw new Error("Attempt to auto-create CitationCitedArtifactContributorshipEntryComponent.name"); else if (Configuration.doAutoCreate()) - this.citationReference = new Reference(); // cc - return this.citationReference; + this.name = new HumanName(); // cc + return this.name; } - public boolean hasCitationReference() { - return this.citationReference != null && !this.citationReference.isEmpty(); + public boolean hasName() { + return this.name != null && !this.name.isEmpty(); } /** - * @param value {@link #citationReference} (Citation Resource for related article.) + * @param value {@link #name} (A name associated with the individual.) */ - public CitationMedlinePubMedRelatedArticleComponent setCitationReference(Reference value) { - this.citationReference = value; + public CitationCitedArtifactContributorshipEntryComponent setName(HumanName value) { + this.name = value; return this; } /** - * @return {@link #citationMarkdown} (Citation string for related article.). This is the underlying object with id, value and extensions. The accessor "getCitationMarkdown" gives direct access to the value + * @return {@link #initials} (Initials for forename.). This is the underlying object with id, value and extensions. The accessor "getInitials" gives direct access to the value */ - public MarkdownType getCitationMarkdownElement() { - if (this.citationMarkdown == null) + public StringType getInitialsElement() { + if (this.initials == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create CitationMedlinePubMedRelatedArticleComponent.citationMarkdown"); + throw new Error("Attempt to auto-create CitationCitedArtifactContributorshipEntryComponent.initials"); else if (Configuration.doAutoCreate()) - this.citationMarkdown = new MarkdownType(); // bb - return this.citationMarkdown; + this.initials = new StringType(); // bb + return this.initials; } - public boolean hasCitationMarkdownElement() { - return this.citationMarkdown != null && !this.citationMarkdown.isEmpty(); + public boolean hasInitialsElement() { + return this.initials != null && !this.initials.isEmpty(); } - public boolean hasCitationMarkdown() { - return this.citationMarkdown != null && !this.citationMarkdown.isEmpty(); + public boolean hasInitials() { + return this.initials != null && !this.initials.isEmpty(); } /** - * @param value {@link #citationMarkdown} (Citation string for related article.). This is the underlying object with id, value and extensions. The accessor "getCitationMarkdown" gives direct access to the value + * @param value {@link #initials} (Initials for forename.). This is the underlying object with id, value and extensions. The accessor "getInitials" gives direct access to the value */ - public CitationMedlinePubMedRelatedArticleComponent setCitationMarkdownElement(MarkdownType value) { - this.citationMarkdown = value; + public CitationCitedArtifactContributorshipEntryComponent setInitialsElement(StringType value) { + this.initials = value; return this; } /** - * @return Citation string for related article. + * @return Initials for forename. */ - public String getCitationMarkdown() { - return this.citationMarkdown == null ? null : this.citationMarkdown.getValue(); + public String getInitials() { + return this.initials == null ? null : this.initials.getValue(); } /** - * @param value Citation string for related article. + * @param value Initials for forename. */ - public CitationMedlinePubMedRelatedArticleComponent setCitationMarkdown(String value) { - if (value == null) - this.citationMarkdown = null; + public CitationCitedArtifactContributorshipEntryComponent setInitials(String value) { + if (Utilities.noString(value)) + this.initials = null; else { - if (this.citationMarkdown == null) - this.citationMarkdown = new MarkdownType(); - this.citationMarkdown.setValue(value); + if (this.initials == null) + this.initials = new StringType(); + this.initials.setValue(value); } return this; } /** - * @return {@link #identifier} (Identifier for related article.) + * @return {@link #collectiveName} (Used for collective or corporate name as an author.). This is the underlying object with id, value and extensions. The accessor "getCollectiveName" gives direct access to the value + */ + public StringType getCollectiveNameElement() { + if (this.collectiveName == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactContributorshipEntryComponent.collectiveName"); + else if (Configuration.doAutoCreate()) + this.collectiveName = new StringType(); // bb + return this.collectiveName; + } + + public boolean hasCollectiveNameElement() { + return this.collectiveName != null && !this.collectiveName.isEmpty(); + } + + public boolean hasCollectiveName() { + return this.collectiveName != null && !this.collectiveName.isEmpty(); + } + + /** + * @param value {@link #collectiveName} (Used for collective or corporate name as an author.). This is the underlying object with id, value and extensions. The accessor "getCollectiveName" gives direct access to the value + */ + public CitationCitedArtifactContributorshipEntryComponent setCollectiveNameElement(StringType value) { + this.collectiveName = value; + return this; + } + + /** + * @return Used for collective or corporate name as an author. + */ + public String getCollectiveName() { + return this.collectiveName == null ? null : this.collectiveName.getValue(); + } + + /** + * @param value Used for collective or corporate name as an author. + */ + public CitationCitedArtifactContributorshipEntryComponent setCollectiveName(String value) { + if (Utilities.noString(value)) + this.collectiveName = null; + else { + if (this.collectiveName == null) + this.collectiveName = new StringType(); + this.collectiveName.setValue(value); + } + return this; + } + + /** + * @return {@link #identifier} (Unique person identifier.) */ public List getIdentifier() { if (this.identifier == null) @@ -9672,7 +7504,7 @@ public class Citation extends MetadataResource { /** * @return Returns a reference to this for easy method chaining */ - public CitationMedlinePubMedRelatedArticleComponent setIdentifier(List theIdentifier) { + public CitationCitedArtifactContributorshipEntryComponent setIdentifier(List theIdentifier) { this.identifier = theIdentifier; return this; } @@ -9694,7 +7526,870 @@ public class Citation extends MetadataResource { return t; } - public CitationMedlinePubMedRelatedArticleComponent addIdentifier(Identifier t) { //3 + public CitationCitedArtifactContributorshipEntryComponent addIdentifier(Identifier t) { //3 + if (t == null) + return this; + if (this.identifier == null) + this.identifier = new ArrayList(); + this.identifier.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} + */ + public Identifier getIdentifierFirstRep() { + if (getIdentifier().isEmpty()) { + addIdentifier(); + } + return getIdentifier().get(0); + } + + /** + * @return {@link #affiliationInfo} (Organization affiliated with the entity.) + */ + public List getAffiliationInfo() { + if (this.affiliationInfo == null) + this.affiliationInfo = new ArrayList(); + return this.affiliationInfo; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactContributorshipEntryComponent setAffiliationInfo(List theAffiliationInfo) { + this.affiliationInfo = theAffiliationInfo; + return this; + } + + public boolean hasAffiliationInfo() { + if (this.affiliationInfo == null) + return false; + for (CitationCitedArtifactContributorshipEntryAffiliationInfoComponent item : this.affiliationInfo) + if (!item.isEmpty()) + return true; + return false; + } + + public CitationCitedArtifactContributorshipEntryAffiliationInfoComponent addAffiliationInfo() { //3 + CitationCitedArtifactContributorshipEntryAffiliationInfoComponent t = new CitationCitedArtifactContributorshipEntryAffiliationInfoComponent(); + if (this.affiliationInfo == null) + this.affiliationInfo = new ArrayList(); + this.affiliationInfo.add(t); + return t; + } + + public CitationCitedArtifactContributorshipEntryComponent addAffiliationInfo(CitationCitedArtifactContributorshipEntryAffiliationInfoComponent t) { //3 + if (t == null) + return this; + if (this.affiliationInfo == null) + this.affiliationInfo = new ArrayList(); + this.affiliationInfo.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #affiliationInfo}, creating it if it does not already exist {3} + */ + public CitationCitedArtifactContributorshipEntryAffiliationInfoComponent getAffiliationInfoFirstRep() { + if (getAffiliationInfo().isEmpty()) { + addAffiliationInfo(); + } + return getAffiliationInfo().get(0); + } + + /** + * @return {@link #address} (Physical mailing address for the author or contributor.) + */ + public List
getAddress() { + if (this.address == null) + this.address = new ArrayList
(); + return this.address; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactContributorshipEntryComponent setAddress(List
theAddress) { + this.address = theAddress; + return this; + } + + public boolean hasAddress() { + if (this.address == null) + return false; + for (Address item : this.address) + if (!item.isEmpty()) + return true; + return false; + } + + public Address addAddress() { //3 + Address t = new Address(); + if (this.address == null) + this.address = new ArrayList
(); + this.address.add(t); + return t; + } + + public CitationCitedArtifactContributorshipEntryComponent addAddress(Address t) { //3 + if (t == null) + return this; + if (this.address == null) + this.address = new ArrayList
(); + this.address.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #address}, creating it if it does not already exist {3} + */ + public Address getAddressFirstRep() { + if (getAddress().isEmpty()) { + addAddress(); + } + return getAddress().get(0); + } + + /** + * @return {@link #telecom} (Email or telephone contact methods for the author or contributor.) + */ + public List getTelecom() { + if (this.telecom == null) + this.telecom = new ArrayList(); + return this.telecom; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactContributorshipEntryComponent setTelecom(List theTelecom) { + this.telecom = theTelecom; + return this; + } + + public boolean hasTelecom() { + if (this.telecom == null) + return false; + for (ContactPoint item : this.telecom) + if (!item.isEmpty()) + return true; + return false; + } + + public ContactPoint addTelecom() { //3 + ContactPoint t = new ContactPoint(); + if (this.telecom == null) + this.telecom = new ArrayList(); + this.telecom.add(t); + return t; + } + + public CitationCitedArtifactContributorshipEntryComponent addTelecom(ContactPoint t) { //3 + if (t == null) + return this; + if (this.telecom == null) + this.telecom = new ArrayList(); + this.telecom.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #telecom}, creating it if it does not already exist {3} + */ + public ContactPoint getTelecomFirstRep() { + if (getTelecom().isEmpty()) { + addTelecom(); + } + return getTelecom().get(0); + } + + /** + * @return {@link #contributionType} (This element identifies the specific nature of an individual’s contribution with respect to the cited work.) + */ + public List getContributionType() { + if (this.contributionType == null) + this.contributionType = new ArrayList(); + return this.contributionType; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactContributorshipEntryComponent setContributionType(List theContributionType) { + this.contributionType = theContributionType; + return this; + } + + public boolean hasContributionType() { + if (this.contributionType == null) + return false; + for (CodeableConcept item : this.contributionType) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addContributionType() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.contributionType == null) + this.contributionType = new ArrayList(); + this.contributionType.add(t); + return t; + } + + public CitationCitedArtifactContributorshipEntryComponent addContributionType(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.contributionType == null) + this.contributionType = new ArrayList(); + this.contributionType.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #contributionType}, creating it if it does not already exist {3} + */ + public CodeableConcept getContributionTypeFirstRep() { + if (getContributionType().isEmpty()) { + addContributionType(); + } + return getContributionType().get(0); + } + + /** + * @return {@link #role} (The role of the contributor (e.g. author, editor, reviewer).) + */ + public CodeableConcept getRole() { + if (this.role == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactContributorshipEntryComponent.role"); + else if (Configuration.doAutoCreate()) + this.role = new CodeableConcept(); // cc + return this.role; + } + + public boolean hasRole() { + return this.role != null && !this.role.isEmpty(); + } + + /** + * @param value {@link #role} (The role of the contributor (e.g. author, editor, reviewer).) + */ + public CitationCitedArtifactContributorshipEntryComponent setRole(CodeableConcept value) { + this.role = value; + return this; + } + + /** + * @return {@link #contributionInstance} (Contributions with accounting for time or number.) + */ + public List getContributionInstance() { + if (this.contributionInstance == null) + this.contributionInstance = new ArrayList(); + return this.contributionInstance; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactContributorshipEntryComponent setContributionInstance(List theContributionInstance) { + this.contributionInstance = theContributionInstance; + return this; + } + + public boolean hasContributionInstance() { + if (this.contributionInstance == null) + return false; + for (CitationCitedArtifactContributorshipEntryContributionInstanceComponent item : this.contributionInstance) + if (!item.isEmpty()) + return true; + return false; + } + + public CitationCitedArtifactContributorshipEntryContributionInstanceComponent addContributionInstance() { //3 + CitationCitedArtifactContributorshipEntryContributionInstanceComponent t = new CitationCitedArtifactContributorshipEntryContributionInstanceComponent(); + if (this.contributionInstance == null) + this.contributionInstance = new ArrayList(); + this.contributionInstance.add(t); + return t; + } + + public CitationCitedArtifactContributorshipEntryComponent addContributionInstance(CitationCitedArtifactContributorshipEntryContributionInstanceComponent t) { //3 + if (t == null) + return this; + if (this.contributionInstance == null) + this.contributionInstance = new ArrayList(); + this.contributionInstance.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #contributionInstance}, creating it if it does not already exist {3} + */ + public CitationCitedArtifactContributorshipEntryContributionInstanceComponent getContributionInstanceFirstRep() { + if (getContributionInstance().isEmpty()) { + addContributionInstance(); + } + return getContributionInstance().get(0); + } + + /** + * @return {@link #correspondingContact} (Indication of which contributor is the corresponding contributor for the role.). This is the underlying object with id, value and extensions. The accessor "getCorrespondingContact" gives direct access to the value + */ + public BooleanType getCorrespondingContactElement() { + if (this.correspondingContact == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactContributorshipEntryComponent.correspondingContact"); + else if (Configuration.doAutoCreate()) + this.correspondingContact = new BooleanType(); // bb + return this.correspondingContact; + } + + public boolean hasCorrespondingContactElement() { + return this.correspondingContact != null && !this.correspondingContact.isEmpty(); + } + + public boolean hasCorrespondingContact() { + return this.correspondingContact != null && !this.correspondingContact.isEmpty(); + } + + /** + * @param value {@link #correspondingContact} (Indication of which contributor is the corresponding contributor for the role.). This is the underlying object with id, value and extensions. The accessor "getCorrespondingContact" gives direct access to the value + */ + public CitationCitedArtifactContributorshipEntryComponent setCorrespondingContactElement(BooleanType value) { + this.correspondingContact = value; + return this; + } + + /** + * @return Indication of which contributor is the corresponding contributor for the role. + */ + public boolean getCorrespondingContact() { + return this.correspondingContact == null || this.correspondingContact.isEmpty() ? false : this.correspondingContact.getValue(); + } + + /** + * @param value Indication of which contributor is the corresponding contributor for the role. + */ + public CitationCitedArtifactContributorshipEntryComponent setCorrespondingContact(boolean value) { + if (this.correspondingContact == null) + this.correspondingContact = new BooleanType(); + this.correspondingContact.setValue(value); + return this; + } + + /** + * @return {@link #listOrder} (Used to code order of authors.). This is the underlying object with id, value and extensions. The accessor "getListOrder" gives direct access to the value + */ + public PositiveIntType getListOrderElement() { + if (this.listOrder == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactContributorshipEntryComponent.listOrder"); + else if (Configuration.doAutoCreate()) + this.listOrder = new PositiveIntType(); // bb + return this.listOrder; + } + + public boolean hasListOrderElement() { + return this.listOrder != null && !this.listOrder.isEmpty(); + } + + public boolean hasListOrder() { + return this.listOrder != null && !this.listOrder.isEmpty(); + } + + /** + * @param value {@link #listOrder} (Used to code order of authors.). This is the underlying object with id, value and extensions. The accessor "getListOrder" gives direct access to the value + */ + public CitationCitedArtifactContributorshipEntryComponent setListOrderElement(PositiveIntType value) { + this.listOrder = value; + return this; + } + + /** + * @return Used to code order of authors. + */ + public int getListOrder() { + return this.listOrder == null || this.listOrder.isEmpty() ? 0 : this.listOrder.getValue(); + } + + /** + * @param value Used to code order of authors. + */ + public CitationCitedArtifactContributorshipEntryComponent setListOrder(int value) { + if (this.listOrder == null) + this.listOrder = new PositiveIntType(); + this.listOrder.setValue(value); + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("name", "HumanName", "A name associated with the individual.", 0, 1, name)); + children.add(new Property("initials", "string", "Initials for forename.", 0, 1, initials)); + children.add(new Property("collectiveName", "string", "Used for collective or corporate name as an author.", 0, 1, collectiveName)); + children.add(new Property("identifier", "Identifier", "Unique person identifier.", 0, java.lang.Integer.MAX_VALUE, identifier)); + children.add(new Property("affiliationInfo", "", "Organization affiliated with the entity.", 0, java.lang.Integer.MAX_VALUE, affiliationInfo)); + children.add(new Property("address", "Address", "Physical mailing address for the author or contributor.", 0, java.lang.Integer.MAX_VALUE, address)); + children.add(new Property("telecom", "ContactPoint", "Email or telephone contact methods for the author or contributor.", 0, java.lang.Integer.MAX_VALUE, telecom)); + children.add(new Property("contributionType", "CodeableConcept", "This element identifies the specific nature of an individual’s contribution with respect to the cited work.", 0, java.lang.Integer.MAX_VALUE, contributionType)); + children.add(new Property("role", "CodeableConcept", "The role of the contributor (e.g. author, editor, reviewer).", 0, 1, role)); + children.add(new Property("contributionInstance", "", "Contributions with accounting for time or number.", 0, java.lang.Integer.MAX_VALUE, contributionInstance)); + children.add(new Property("correspondingContact", "boolean", "Indication of which contributor is the corresponding contributor for the role.", 0, 1, correspondingContact)); + children.add(new Property("listOrder", "positiveInt", "Used to code order of authors.", 0, 1, listOrder)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3373707: /*name*/ return new Property("name", "HumanName", "A name associated with the individual.", 0, 1, name); + case 269062575: /*initials*/ return new Property("initials", "string", "Initials for forename.", 0, 1, initials); + case 502871833: /*collectiveName*/ return new Property("collectiveName", "string", "Used for collective or corporate name as an author.", 0, 1, collectiveName); + case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Unique person identifier.", 0, java.lang.Integer.MAX_VALUE, identifier); + case -215129154: /*affiliationInfo*/ return new Property("affiliationInfo", "", "Organization affiliated with the entity.", 0, java.lang.Integer.MAX_VALUE, affiliationInfo); + case -1147692044: /*address*/ return new Property("address", "Address", "Physical mailing address for the author or contributor.", 0, java.lang.Integer.MAX_VALUE, address); + case -1429363305: /*telecom*/ return new Property("telecom", "ContactPoint", "Email or telephone contact methods for the author or contributor.", 0, java.lang.Integer.MAX_VALUE, telecom); + case -1600446614: /*contributionType*/ return new Property("contributionType", "CodeableConcept", "This element identifies the specific nature of an individual’s contribution with respect to the cited work.", 0, java.lang.Integer.MAX_VALUE, contributionType); + case 3506294: /*role*/ return new Property("role", "CodeableConcept", "The role of the contributor (e.g. author, editor, reviewer).", 0, 1, role); + case -547910459: /*contributionInstance*/ return new Property("contributionInstance", "", "Contributions with accounting for time or number.", 0, java.lang.Integer.MAX_VALUE, contributionInstance); + case -1816008851: /*correspondingContact*/ return new Property("correspondingContact", "boolean", "Indication of which contributor is the corresponding contributor for the role.", 0, 1, correspondingContact); + case -1238918832: /*listOrder*/ return new Property("listOrder", "positiveInt", "Used to code order of authors.", 0, 1, listOrder); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // HumanName + case 269062575: /*initials*/ return this.initials == null ? new Base[0] : new Base[] {this.initials}; // StringType + case 502871833: /*collectiveName*/ return this.collectiveName == null ? new Base[0] : new Base[] {this.collectiveName}; // StringType + case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier + case -215129154: /*affiliationInfo*/ return this.affiliationInfo == null ? new Base[0] : this.affiliationInfo.toArray(new Base[this.affiliationInfo.size()]); // CitationCitedArtifactContributorshipEntryAffiliationInfoComponent + case -1147692044: /*address*/ return this.address == null ? new Base[0] : this.address.toArray(new Base[this.address.size()]); // Address + case -1429363305: /*telecom*/ return this.telecom == null ? new Base[0] : this.telecom.toArray(new Base[this.telecom.size()]); // ContactPoint + case -1600446614: /*contributionType*/ return this.contributionType == null ? new Base[0] : this.contributionType.toArray(new Base[this.contributionType.size()]); // CodeableConcept + case 3506294: /*role*/ return this.role == null ? new Base[0] : new Base[] {this.role}; // CodeableConcept + case -547910459: /*contributionInstance*/ return this.contributionInstance == null ? new Base[0] : this.contributionInstance.toArray(new Base[this.contributionInstance.size()]); // CitationCitedArtifactContributorshipEntryContributionInstanceComponent + case -1816008851: /*correspondingContact*/ return this.correspondingContact == null ? new Base[0] : new Base[] {this.correspondingContact}; // BooleanType + case -1238918832: /*listOrder*/ return this.listOrder == null ? new Base[0] : new Base[] {this.listOrder}; // PositiveIntType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3373707: // name + this.name = TypeConvertor.castToHumanName(value); // HumanName + return value; + case 269062575: // initials + this.initials = TypeConvertor.castToString(value); // StringType + return value; + case 502871833: // collectiveName + this.collectiveName = TypeConvertor.castToString(value); // StringType + return value; + case -1618432855: // identifier + this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier + return value; + case -215129154: // affiliationInfo + this.getAffiliationInfo().add((CitationCitedArtifactContributorshipEntryAffiliationInfoComponent) value); // CitationCitedArtifactContributorshipEntryAffiliationInfoComponent + return value; + case -1147692044: // address + this.getAddress().add(TypeConvertor.castToAddress(value)); // Address + return value; + case -1429363305: // telecom + this.getTelecom().add(TypeConvertor.castToContactPoint(value)); // ContactPoint + return value; + case -1600446614: // contributionType + this.getContributionType().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + case 3506294: // role + this.role = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -547910459: // contributionInstance + this.getContributionInstance().add((CitationCitedArtifactContributorshipEntryContributionInstanceComponent) value); // CitationCitedArtifactContributorshipEntryContributionInstanceComponent + return value; + case -1816008851: // correspondingContact + this.correspondingContact = TypeConvertor.castToBoolean(value); // BooleanType + return value; + case -1238918832: // listOrder + this.listOrder = TypeConvertor.castToPositiveInt(value); // PositiveIntType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = TypeConvertor.castToHumanName(value); // HumanName + } else if (name.equals("initials")) { + this.initials = TypeConvertor.castToString(value); // StringType + } else if (name.equals("collectiveName")) { + this.collectiveName = TypeConvertor.castToString(value); // StringType + } else if (name.equals("identifier")) { + this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); + } else if (name.equals("affiliationInfo")) { + this.getAffiliationInfo().add((CitationCitedArtifactContributorshipEntryAffiliationInfoComponent) value); + } else if (name.equals("address")) { + this.getAddress().add(TypeConvertor.castToAddress(value)); + } else if (name.equals("telecom")) { + this.getTelecom().add(TypeConvertor.castToContactPoint(value)); + } else if (name.equals("contributionType")) { + this.getContributionType().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("role")) { + this.role = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("contributionInstance")) { + this.getContributionInstance().add((CitationCitedArtifactContributorshipEntryContributionInstanceComponent) value); + } else if (name.equals("correspondingContact")) { + this.correspondingContact = TypeConvertor.castToBoolean(value); // BooleanType + } else if (name.equals("listOrder")) { + this.listOrder = TypeConvertor.castToPositiveInt(value); // PositiveIntType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3373707: return getName(); + case 269062575: return getInitialsElement(); + case 502871833: return getCollectiveNameElement(); + case -1618432855: return addIdentifier(); + case -215129154: return addAffiliationInfo(); + case -1147692044: return addAddress(); + case -1429363305: return addTelecom(); + case -1600446614: return addContributionType(); + case 3506294: return getRole(); + case -547910459: return addContributionInstance(); + case -1816008851: return getCorrespondingContactElement(); + case -1238918832: return getListOrderElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3373707: /*name*/ return new String[] {"HumanName"}; + case 269062575: /*initials*/ return new String[] {"string"}; + case 502871833: /*collectiveName*/ return new String[] {"string"}; + case -1618432855: /*identifier*/ return new String[] {"Identifier"}; + case -215129154: /*affiliationInfo*/ return new String[] {}; + case -1147692044: /*address*/ return new String[] {"Address"}; + case -1429363305: /*telecom*/ return new String[] {"ContactPoint"}; + case -1600446614: /*contributionType*/ return new String[] {"CodeableConcept"}; + case 3506294: /*role*/ return new String[] {"CodeableConcept"}; + case -547910459: /*contributionInstance*/ return new String[] {}; + case -1816008851: /*correspondingContact*/ return new String[] {"boolean"}; + case -1238918832: /*listOrder*/ return new String[] {"positiveInt"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("name")) { + this.name = new HumanName(); + return this.name; + } + else if (name.equals("initials")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.initials"); + } + else if (name.equals("collectiveName")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.collectiveName"); + } + else if (name.equals("identifier")) { + return addIdentifier(); + } + else if (name.equals("affiliationInfo")) { + return addAffiliationInfo(); + } + else if (name.equals("address")) { + return addAddress(); + } + else if (name.equals("telecom")) { + return addTelecom(); + } + else if (name.equals("contributionType")) { + return addContributionType(); + } + else if (name.equals("role")) { + this.role = new CodeableConcept(); + return this.role; + } + else if (name.equals("contributionInstance")) { + return addContributionInstance(); + } + else if (name.equals("correspondingContact")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.correspondingContact"); + } + else if (name.equals("listOrder")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.listOrder"); + } + else + return super.addChild(name); + } + + public CitationCitedArtifactContributorshipEntryComponent copy() { + CitationCitedArtifactContributorshipEntryComponent dst = new CitationCitedArtifactContributorshipEntryComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(CitationCitedArtifactContributorshipEntryComponent dst) { + super.copyValues(dst); + dst.name = name == null ? null : name.copy(); + dst.initials = initials == null ? null : initials.copy(); + dst.collectiveName = collectiveName == null ? null : collectiveName.copy(); + if (identifier != null) { + dst.identifier = new ArrayList(); + for (Identifier i : identifier) + dst.identifier.add(i.copy()); + }; + if (affiliationInfo != null) { + dst.affiliationInfo = new ArrayList(); + for (CitationCitedArtifactContributorshipEntryAffiliationInfoComponent i : affiliationInfo) + dst.affiliationInfo.add(i.copy()); + }; + if (address != null) { + dst.address = new ArrayList
(); + for (Address i : address) + dst.address.add(i.copy()); + }; + if (telecom != null) { + dst.telecom = new ArrayList(); + for (ContactPoint i : telecom) + dst.telecom.add(i.copy()); + }; + if (contributionType != null) { + dst.contributionType = new ArrayList(); + for (CodeableConcept i : contributionType) + dst.contributionType.add(i.copy()); + }; + dst.role = role == null ? null : role.copy(); + if (contributionInstance != null) { + dst.contributionInstance = new ArrayList(); + for (CitationCitedArtifactContributorshipEntryContributionInstanceComponent i : contributionInstance) + dst.contributionInstance.add(i.copy()); + }; + dst.correspondingContact = correspondingContact == null ? null : correspondingContact.copy(); + dst.listOrder = listOrder == null ? null : listOrder.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactContributorshipEntryComponent)) + return false; + CitationCitedArtifactContributorshipEntryComponent o = (CitationCitedArtifactContributorshipEntryComponent) other_; + return compareDeep(name, o.name, true) && compareDeep(initials, o.initials, true) && compareDeep(collectiveName, o.collectiveName, true) + && compareDeep(identifier, o.identifier, true) && compareDeep(affiliationInfo, o.affiliationInfo, true) + && compareDeep(address, o.address, true) && compareDeep(telecom, o.telecom, true) && compareDeep(contributionType, o.contributionType, true) + && compareDeep(role, o.role, true) && compareDeep(contributionInstance, o.contributionInstance, true) + && compareDeep(correspondingContact, o.correspondingContact, true) && compareDeep(listOrder, o.listOrder, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactContributorshipEntryComponent)) + return false; + CitationCitedArtifactContributorshipEntryComponent o = (CitationCitedArtifactContributorshipEntryComponent) other_; + return compareValues(initials, o.initials, true) && compareValues(collectiveName, o.collectiveName, true) + && compareValues(correspondingContact, o.correspondingContact, true) && compareValues(listOrder, o.listOrder, true) + ; + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, initials, collectiveName + , identifier, affiliationInfo, address, telecom, contributionType, role, contributionInstance + , correspondingContact, listOrder); + } + + public String fhirType() { + return "Citation.citedArtifact.contributorship.entry"; + + } + + } + + @Block() + public static class CitationCitedArtifactContributorshipEntryAffiliationInfoComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Display for the organization. + */ + @Child(name = "affiliation", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Display for the organization", formalDefinition="Display for the organization." ) + protected StringType affiliation; + + /** + * Role within the organization, such as professional title. + */ + @Child(name = "role", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Role within the organization, such as professional title", formalDefinition="Role within the organization, such as professional title." ) + protected StringType role; + + /** + * Identifier for the organization. + */ + @Child(name = "identifier", type = {Identifier.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Identifier for the organization", formalDefinition="Identifier for the organization." ) + protected List identifier; + + private static final long serialVersionUID = 548335522L; + + /** + * Constructor + */ + public CitationCitedArtifactContributorshipEntryAffiliationInfoComponent() { + super(); + } + + /** + * @return {@link #affiliation} (Display for the organization.). This is the underlying object with id, value and extensions. The accessor "getAffiliation" gives direct access to the value + */ + public StringType getAffiliationElement() { + if (this.affiliation == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactContributorshipEntryAffiliationInfoComponent.affiliation"); + else if (Configuration.doAutoCreate()) + this.affiliation = new StringType(); // bb + return this.affiliation; + } + + public boolean hasAffiliationElement() { + return this.affiliation != null && !this.affiliation.isEmpty(); + } + + public boolean hasAffiliation() { + return this.affiliation != null && !this.affiliation.isEmpty(); + } + + /** + * @param value {@link #affiliation} (Display for the organization.). This is the underlying object with id, value and extensions. The accessor "getAffiliation" gives direct access to the value + */ + public CitationCitedArtifactContributorshipEntryAffiliationInfoComponent setAffiliationElement(StringType value) { + this.affiliation = value; + return this; + } + + /** + * @return Display for the organization. + */ + public String getAffiliation() { + return this.affiliation == null ? null : this.affiliation.getValue(); + } + + /** + * @param value Display for the organization. + */ + public CitationCitedArtifactContributorshipEntryAffiliationInfoComponent setAffiliation(String value) { + if (Utilities.noString(value)) + this.affiliation = null; + else { + if (this.affiliation == null) + this.affiliation = new StringType(); + this.affiliation.setValue(value); + } + return this; + } + + /** + * @return {@link #role} (Role within the organization, such as professional title.). This is the underlying object with id, value and extensions. The accessor "getRole" gives direct access to the value + */ + public StringType getRoleElement() { + if (this.role == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactContributorshipEntryAffiliationInfoComponent.role"); + else if (Configuration.doAutoCreate()) + this.role = new StringType(); // bb + return this.role; + } + + public boolean hasRoleElement() { + return this.role != null && !this.role.isEmpty(); + } + + public boolean hasRole() { + return this.role != null && !this.role.isEmpty(); + } + + /** + * @param value {@link #role} (Role within the organization, such as professional title.). This is the underlying object with id, value and extensions. The accessor "getRole" gives direct access to the value + */ + public CitationCitedArtifactContributorshipEntryAffiliationInfoComponent setRoleElement(StringType value) { + this.role = value; + return this; + } + + /** + * @return Role within the organization, such as professional title. + */ + public String getRole() { + return this.role == null ? null : this.role.getValue(); + } + + /** + * @param value Role within the organization, such as professional title. + */ + public CitationCitedArtifactContributorshipEntryAffiliationInfoComponent setRole(String value) { + if (Utilities.noString(value)) + this.role = null; + else { + if (this.role == null) + this.role = new StringType(); + this.role.setValue(value); + } + return this; + } + + /** + * @return {@link #identifier} (Identifier for the organization.) + */ + public List getIdentifier() { + if (this.identifier == null) + this.identifier = new ArrayList(); + return this.identifier; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public CitationCitedArtifactContributorshipEntryAffiliationInfoComponent setIdentifier(List theIdentifier) { + this.identifier = theIdentifier; + return this; + } + + public boolean hasIdentifier() { + if (this.identifier == null) + return false; + for (Identifier item : this.identifier) + if (!item.isEmpty()) + return true; + return false; + } + + public Identifier addIdentifier() { //3 + Identifier t = new Identifier(); + if (this.identifier == null) + this.identifier = new ArrayList(); + this.identifier.add(t); + return t; + } + + public CitationCitedArtifactContributorshipEntryAffiliationInfoComponent addIdentifier(Identifier t) { //3 if (t == null) return this; if (this.identifier == null) @@ -9715,17 +8410,17 @@ public class Citation extends MetadataResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("citationReference", "Reference(Citation)", "Citation Resource for related article.", 0, 1, citationReference)); - children.add(new Property("citationMarkdown", "markdown", "Citation string for related article.", 0, 1, citationMarkdown)); - children.add(new Property("identifier", "Identifier", "Identifier for related article.", 0, java.lang.Integer.MAX_VALUE, identifier)); + children.add(new Property("affiliation", "string", "Display for the organization.", 0, 1, affiliation)); + children.add(new Property("role", "string", "Role within the organization, such as professional title.", 0, 1, role)); + children.add(new Property("identifier", "Identifier", "Identifier for the organization.", 0, java.lang.Integer.MAX_VALUE, identifier)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 87795748: /*citationReference*/ return new Property("citationReference", "Reference(Citation)", "Citation Resource for related article.", 0, 1, citationReference); - case 279614710: /*citationMarkdown*/ return new Property("citationMarkdown", "markdown", "Citation string for related article.", 0, 1, citationMarkdown); - case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifier for related article.", 0, java.lang.Integer.MAX_VALUE, identifier); + case 2019918576: /*affiliation*/ return new Property("affiliation", "string", "Display for the organization.", 0, 1, affiliation); + case 3506294: /*role*/ return new Property("role", "string", "Role within the organization, such as professional title.", 0, 1, role); + case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifier for the organization.", 0, java.lang.Integer.MAX_VALUE, identifier); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -9734,8 +8429,8 @@ public class Citation extends MetadataResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case 87795748: /*citationReference*/ return this.citationReference == null ? new Base[0] : new Base[] {this.citationReference}; // Reference - case 279614710: /*citationMarkdown*/ return this.citationMarkdown == null ? new Base[0] : new Base[] {this.citationMarkdown}; // MarkdownType + case 2019918576: /*affiliation*/ return this.affiliation == null ? new Base[0] : new Base[] {this.affiliation}; // StringType + case 3506294: /*role*/ return this.role == null ? new Base[0] : new Base[] {this.role}; // StringType case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier default: return super.getProperty(hash, name, checkValid); } @@ -9745,11 +8440,11 @@ public class Citation extends MetadataResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { - case 87795748: // citationReference - this.citationReference = TypeConvertor.castToReference(value); // Reference + case 2019918576: // affiliation + this.affiliation = TypeConvertor.castToString(value); // StringType return value; - case 279614710: // citationMarkdown - this.citationMarkdown = TypeConvertor.castToMarkdown(value); // MarkdownType + case 3506294: // role + this.role = TypeConvertor.castToString(value); // StringType return value; case -1618432855: // identifier this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier @@ -9761,10 +8456,10 @@ public class Citation extends MetadataResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("citationReference")) { - this.citationReference = TypeConvertor.castToReference(value); // Reference - } else if (name.equals("citationMarkdown")) { - this.citationMarkdown = TypeConvertor.castToMarkdown(value); // MarkdownType + if (name.equals("affiliation")) { + this.affiliation = TypeConvertor.castToString(value); // StringType + } else if (name.equals("role")) { + this.role = TypeConvertor.castToString(value); // StringType } else if (name.equals("identifier")) { this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); } else @@ -9775,8 +8470,8 @@ public class Citation extends MetadataResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { - case 87795748: return getCitationReference(); - case 279614710: return getCitationMarkdownElement(); + case 2019918576: return getAffiliationElement(); + case 3506294: return getRoleElement(); case -1618432855: return addIdentifier(); default: return super.makeProperty(hash, name); } @@ -9786,8 +8481,8 @@ public class Citation extends MetadataResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case 87795748: /*citationReference*/ return new String[] {"Reference"}; - case 279614710: /*citationMarkdown*/ return new String[] {"markdown"}; + case 2019918576: /*affiliation*/ return new String[] {"string"}; + case 3506294: /*role*/ return new String[] {"string"}; case -1618432855: /*identifier*/ return new String[] {"Identifier"}; default: return super.getTypesForProperty(hash, name); } @@ -9796,12 +8491,11 @@ public class Citation extends MetadataResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("citationReference")) { - this.citationReference = new Reference(); - return this.citationReference; + if (name.equals("affiliation")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.affiliationInfo.affiliation"); } - else if (name.equals("citationMarkdown")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.medlinePubMed.relatedArticle.citationMarkdown"); + else if (name.equals("role")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.affiliationInfo.role"); } else if (name.equals("identifier")) { return addIdentifier(); @@ -9810,16 +8504,16 @@ public class Citation extends MetadataResource { return super.addChild(name); } - public CitationMedlinePubMedRelatedArticleComponent copy() { - CitationMedlinePubMedRelatedArticleComponent dst = new CitationMedlinePubMedRelatedArticleComponent(); + public CitationCitedArtifactContributorshipEntryAffiliationInfoComponent copy() { + CitationCitedArtifactContributorshipEntryAffiliationInfoComponent dst = new CitationCitedArtifactContributorshipEntryAffiliationInfoComponent(); copyValues(dst); return dst; } - public void copyValues(CitationMedlinePubMedRelatedArticleComponent dst) { + public void copyValues(CitationCitedArtifactContributorshipEntryAffiliationInfoComponent dst) { super.copyValues(dst); - dst.citationReference = citationReference == null ? null : citationReference.copy(); - dst.citationMarkdown = citationMarkdown == null ? null : citationMarkdown.copy(); + dst.affiliation = affiliation == null ? null : affiliation.copy(); + dst.role = role == null ? null : role.copy(); if (identifier != null) { dst.identifier = new ArrayList(); for (Identifier i : identifier) @@ -9831,30 +8525,590 @@ public class Citation extends MetadataResource { public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof CitationMedlinePubMedRelatedArticleComponent)) + if (!(other_ instanceof CitationCitedArtifactContributorshipEntryAffiliationInfoComponent)) return false; - CitationMedlinePubMedRelatedArticleComponent o = (CitationMedlinePubMedRelatedArticleComponent) other_; - return compareDeep(citationReference, o.citationReference, true) && compareDeep(citationMarkdown, o.citationMarkdown, true) - && compareDeep(identifier, o.identifier, true); + CitationCitedArtifactContributorshipEntryAffiliationInfoComponent o = (CitationCitedArtifactContributorshipEntryAffiliationInfoComponent) other_; + return compareDeep(affiliation, o.affiliation, true) && compareDeep(role, o.role, true) && compareDeep(identifier, o.identifier, true) + ; } @Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof CitationMedlinePubMedRelatedArticleComponent)) + if (!(other_ instanceof CitationCitedArtifactContributorshipEntryAffiliationInfoComponent)) return false; - CitationMedlinePubMedRelatedArticleComponent o = (CitationMedlinePubMedRelatedArticleComponent) other_; - return compareValues(citationMarkdown, o.citationMarkdown, true); + CitationCitedArtifactContributorshipEntryAffiliationInfoComponent o = (CitationCitedArtifactContributorshipEntryAffiliationInfoComponent) other_; + return compareValues(affiliation, o.affiliation, true) && compareValues(role, o.role, true); } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(citationReference, citationMarkdown - , identifier); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(affiliation, role, identifier + ); } public String fhirType() { - return "Citation.medlinePubMed.relatedArticle"; + return "Citation.citedArtifact.contributorship.entry.affiliationInfo"; + + } + + } + + @Block() + public static class CitationCitedArtifactContributorshipEntryContributionInstanceComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The specific contribution. + */ + @Child(name = "type", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The specific contribution", formalDefinition="The specific contribution." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/artifact-contribution-instance-type") + protected CodeableConcept type; + + /** + * The time that the contribution was made. + */ + @Child(name = "time", type = {DateTimeType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The time that the contribution was made", formalDefinition="The time that the contribution was made." ) + protected DateTimeType time; + + private static final long serialVersionUID = -196837729L; + + /** + * Constructor + */ + public CitationCitedArtifactContributorshipEntryContributionInstanceComponent() { + super(); + } + + /** + * Constructor + */ + public CitationCitedArtifactContributorshipEntryContributionInstanceComponent(CodeableConcept type) { + super(); + this.setType(type); + } + + /** + * @return {@link #type} (The specific contribution.) + */ + public CodeableConcept getType() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactContributorshipEntryContributionInstanceComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new CodeableConcept(); // cc + return this.type; + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (The specific contribution.) + */ + public CitationCitedArtifactContributorshipEntryContributionInstanceComponent setType(CodeableConcept value) { + this.type = value; + return this; + } + + /** + * @return {@link #time} (The time that the contribution was made.). This is the underlying object with id, value and extensions. The accessor "getTime" gives direct access to the value + */ + public DateTimeType getTimeElement() { + if (this.time == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactContributorshipEntryContributionInstanceComponent.time"); + else if (Configuration.doAutoCreate()) + this.time = new DateTimeType(); // bb + return this.time; + } + + public boolean hasTimeElement() { + return this.time != null && !this.time.isEmpty(); + } + + public boolean hasTime() { + return this.time != null && !this.time.isEmpty(); + } + + /** + * @param value {@link #time} (The time that the contribution was made.). This is the underlying object with id, value and extensions. The accessor "getTime" gives direct access to the value + */ + public CitationCitedArtifactContributorshipEntryContributionInstanceComponent setTimeElement(DateTimeType value) { + this.time = value; + return this; + } + + /** + * @return The time that the contribution was made. + */ + public Date getTime() { + return this.time == null ? null : this.time.getValue(); + } + + /** + * @param value The time that the contribution was made. + */ + public CitationCitedArtifactContributorshipEntryContributionInstanceComponent setTime(Date value) { + if (value == null) + this.time = null; + else { + if (this.time == null) + this.time = new DateTimeType(); + this.time.setValue(value); + } + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("type", "CodeableConcept", "The specific contribution.", 0, 1, type)); + children.add(new Property("time", "dateTime", "The time that the contribution was made.", 0, 1, time)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The specific contribution.", 0, 1, type); + case 3560141: /*time*/ return new Property("time", "dateTime", "The time that the contribution was made.", 0, 1, time); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case 3560141: /*time*/ return this.time == null ? new Base[0] : new Base[] {this.time}; // DateTimeType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3575610: // type + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 3560141: // time + this.time = TypeConvertor.castToDateTime(value); // DateTimeType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("time")) { + this.time = TypeConvertor.castToDateTime(value); // DateTimeType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: return getType(); + case 3560141: return getTimeElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case 3560141: /*time*/ return new String[] {"dateTime"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("type")) { + this.type = new CodeableConcept(); + return this.type; + } + else if (name.equals("time")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.entry.contributionInstance.time"); + } + else + return super.addChild(name); + } + + public CitationCitedArtifactContributorshipEntryContributionInstanceComponent copy() { + CitationCitedArtifactContributorshipEntryContributionInstanceComponent dst = new CitationCitedArtifactContributorshipEntryContributionInstanceComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(CitationCitedArtifactContributorshipEntryContributionInstanceComponent dst) { + super.copyValues(dst); + dst.type = type == null ? null : type.copy(); + dst.time = time == null ? null : time.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactContributorshipEntryContributionInstanceComponent)) + return false; + CitationCitedArtifactContributorshipEntryContributionInstanceComponent o = (CitationCitedArtifactContributorshipEntryContributionInstanceComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(time, o.time, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactContributorshipEntryContributionInstanceComponent)) + return false; + CitationCitedArtifactContributorshipEntryContributionInstanceComponent o = (CitationCitedArtifactContributorshipEntryContributionInstanceComponent) other_; + return compareValues(time, o.time, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, time); + } + + public String fhirType() { + return "Citation.citedArtifact.contributorship.entry.contributionInstance"; + + } + + } + + @Block() + public static class CitationCitedArtifactContributorshipSummaryComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Used most commonly to express an author list or a contributorship statement. + */ + @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Either authorList or contributorshipStatement", formalDefinition="Used most commonly to express an author list or a contributorship statement." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/contributor-summary-type") + protected CodeableConcept type; + + /** + * The format for the display string. + */ + @Child(name = "style", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The format for the display string", formalDefinition="The format for the display string." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/contributor-summary-style") + protected CodeableConcept style; + + /** + * Used to code the producer or rule for creating the display string. + */ + @Child(name = "source", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Used to code the producer or rule for creating the display string", formalDefinition="Used to code the producer or rule for creating the display string." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/contributor-summary-source") + protected CodeableConcept source; + + /** + * The display string for the author list, contributor list, or contributorship statement. + */ + @Child(name = "value", type = {MarkdownType.class}, order=4, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The display string for the author list, contributor list, or contributorship statement", formalDefinition="The display string for the author list, contributor list, or contributorship statement." ) + protected MarkdownType value; + + private static final long serialVersionUID = 1353383781L; + + /** + * Constructor + */ + public CitationCitedArtifactContributorshipSummaryComponent() { + super(); + } + + /** + * Constructor + */ + public CitationCitedArtifactContributorshipSummaryComponent(String value) { + super(); + this.setValue(value); + } + + /** + * @return {@link #type} (Used most commonly to express an author list or a contributorship statement.) + */ + public CodeableConcept getType() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactContributorshipSummaryComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new CodeableConcept(); // cc + return this.type; + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (Used most commonly to express an author list or a contributorship statement.) + */ + public CitationCitedArtifactContributorshipSummaryComponent setType(CodeableConcept value) { + this.type = value; + return this; + } + + /** + * @return {@link #style} (The format for the display string.) + */ + public CodeableConcept getStyle() { + if (this.style == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactContributorshipSummaryComponent.style"); + else if (Configuration.doAutoCreate()) + this.style = new CodeableConcept(); // cc + return this.style; + } + + public boolean hasStyle() { + return this.style != null && !this.style.isEmpty(); + } + + /** + * @param value {@link #style} (The format for the display string.) + */ + public CitationCitedArtifactContributorshipSummaryComponent setStyle(CodeableConcept value) { + this.style = value; + return this; + } + + /** + * @return {@link #source} (Used to code the producer or rule for creating the display string.) + */ + public CodeableConcept getSource() { + if (this.source == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactContributorshipSummaryComponent.source"); + else if (Configuration.doAutoCreate()) + this.source = new CodeableConcept(); // cc + return this.source; + } + + public boolean hasSource() { + return this.source != null && !this.source.isEmpty(); + } + + /** + * @param value {@link #source} (Used to code the producer or rule for creating the display string.) + */ + public CitationCitedArtifactContributorshipSummaryComponent setSource(CodeableConcept value) { + this.source = value; + return this; + } + + /** + * @return {@link #value} (The display string for the author list, contributor list, or contributorship statement.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value + */ + public MarkdownType getValueElement() { + if (this.value == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CitationCitedArtifactContributorshipSummaryComponent.value"); + else if (Configuration.doAutoCreate()) + this.value = new MarkdownType(); // bb + return this.value; + } + + public boolean hasValueElement() { + return this.value != null && !this.value.isEmpty(); + } + + public boolean hasValue() { + return this.value != null && !this.value.isEmpty(); + } + + /** + * @param value {@link #value} (The display string for the author list, contributor list, or contributorship statement.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value + */ + public CitationCitedArtifactContributorshipSummaryComponent setValueElement(MarkdownType value) { + this.value = value; + return this; + } + + /** + * @return The display string for the author list, contributor list, or contributorship statement. + */ + public String getValue() { + return this.value == null ? null : this.value.getValue(); + } + + /** + * @param value The display string for the author list, contributor list, or contributorship statement. + */ + public CitationCitedArtifactContributorshipSummaryComponent setValue(String value) { + if (this.value == null) + this.value = new MarkdownType(); + this.value.setValue(value); + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("type", "CodeableConcept", "Used most commonly to express an author list or a contributorship statement.", 0, 1, type)); + children.add(new Property("style", "CodeableConcept", "The format for the display string.", 0, 1, style)); + children.add(new Property("source", "CodeableConcept", "Used to code the producer or rule for creating the display string.", 0, 1, source)); + children.add(new Property("value", "markdown", "The display string for the author list, contributor list, or contributorship statement.", 0, 1, value)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Used most commonly to express an author list or a contributorship statement.", 0, 1, type); + case 109780401: /*style*/ return new Property("style", "CodeableConcept", "The format for the display string.", 0, 1, style); + case -896505829: /*source*/ return new Property("source", "CodeableConcept", "Used to code the producer or rule for creating the display string.", 0, 1, source); + case 111972721: /*value*/ return new Property("value", "markdown", "The display string for the author list, contributor list, or contributorship statement.", 0, 1, value); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case 109780401: /*style*/ return this.style == null ? new Base[0] : new Base[] {this.style}; // CodeableConcept + case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // CodeableConcept + case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // MarkdownType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3575610: // type + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 109780401: // style + this.style = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -896505829: // source + this.source = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 111972721: // value + this.value = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("style")) { + this.style = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("source")) { + this.source = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("value")) { + this.value = TypeConvertor.castToMarkdown(value); // MarkdownType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: return getType(); + case 109780401: return getStyle(); + case -896505829: return getSource(); + case 111972721: return getValueElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case 109780401: /*style*/ return new String[] {"CodeableConcept"}; + case -896505829: /*source*/ return new String[] {"CodeableConcept"}; + case 111972721: /*value*/ return new String[] {"markdown"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("type")) { + this.type = new CodeableConcept(); + return this.type; + } + else if (name.equals("style")) { + this.style = new CodeableConcept(); + return this.style; + } + else if (name.equals("source")) { + this.source = new CodeableConcept(); + return this.source; + } + else if (name.equals("value")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.citedArtifact.contributorship.summary.value"); + } + else + return super.addChild(name); + } + + public CitationCitedArtifactContributorshipSummaryComponent copy() { + CitationCitedArtifactContributorshipSummaryComponent dst = new CitationCitedArtifactContributorshipSummaryComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(CitationCitedArtifactContributorshipSummaryComponent dst) { + super.copyValues(dst); + dst.type = type == null ? null : type.copy(); + dst.style = style == null ? null : style.copy(); + dst.source = source == null ? null : source.copy(); + dst.value = value == null ? null : value.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactContributorshipSummaryComponent)) + return false; + CitationCitedArtifactContributorshipSummaryComponent o = (CitationCitedArtifactContributorshipSummaryComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(style, o.style, true) && compareDeep(source, o.source, true) + && compareDeep(value, o.value, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof CitationCitedArtifactContributorshipSummaryComponent)) + return false; + CitationCitedArtifactContributorshipSummaryComponent o = (CitationCitedArtifactContributorshipSummaryComponent) other_; + return compareValues(value, o.value, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, style, source, value + ); + } + + public String fhirType() { + return "Citation.citedArtifact.contributorship.summary"; } @@ -9867,170 +9121,168 @@ public class Citation extends MetadataResource { @Description(shortDefinition="Canonical identifier for this citation, represented as a globally unique URI", formalDefinition="An absolute URI that is used to identify this citation when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this summary is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the summary is stored on different servers." ) protected UriType url; + /** + * A formal identifier that is used to identify this citation when it is represented in other formats, or referenced in a specification, model, design or an instance. + */ + @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Identifier for the Citation resource itself", formalDefinition="A formal identifier that is used to identify this citation when it is represented in other formats, or referenced in a specification, model, design or an instance." ) + protected List identifier; + + /** + * The identifier that is used to identify this version of the citation when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the citation author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. + */ + @Child(name = "version", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Business version of the citation", formalDefinition="The identifier that is used to identify this version of the citation when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the citation author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence." ) + protected StringType version; + + /** + * A natural language name identifying the citation. This name should be usable as an identifier for the module by machine processing applications such as code generation. + */ + @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Name for this citation (computer friendly)", formalDefinition="A natural language name identifying the citation. This name should be usable as an identifier for the module by machine processing applications such as code generation." ) + protected StringType name; + + /** + * A short, descriptive, user-friendly title for the citation. + */ + @Child(name = "title", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Name for this citation (human friendly)", formalDefinition="A short, descriptive, user-friendly title for the citation." ) + protected StringType title; + /** * The status of this summary. Enables tracking the life-cycle of the content. */ - @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) + @Child(name = "status", type = {CodeType.class}, order=5, min=1, max=1, modifier=true, summary=true) @Description(shortDefinition="draft | active | retired | unknown", formalDefinition="The status of this summary. Enables tracking the life-cycle of the content." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/publication-status") protected Enumeration status; + /** + * A Boolean value to indicate that this citation is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. + */ + @Child(name = "experimental", type = {BooleanType.class}, order=6, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="For testing purposes, not real usage", formalDefinition="A Boolean value to indicate that this citation is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage." ) + protected BooleanType experimental; + + /** + * The date (and optionally time) when the citation was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the citation changes. + */ + @Child(name = "date", type = {DateTimeType.class}, order=7, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Date last changed", formalDefinition="The date (and optionally time) when the citation was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the citation changes." ) + protected DateTimeType date; + + /** + * The name of the organization or individual that published the citation. + */ + @Child(name = "publisher", type = {StringType.class}, order=8, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="The publisher of the Citation, not the publisher of the article or artifact being cited", formalDefinition="The name of the organization or individual that published the citation." ) + protected StringType publisher; + + /** + * Contact details to assist a user in finding and communicating with the publisher. + */ + @Child(name = "contact", type = {ContactDetail.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Contact details for the publisher of the Citation Resource", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." ) + protected List contact; + + /** + * A free text natural language description of the citation from a consumer's perspective. + */ + @Child(name = "description", type = {MarkdownType.class}, order=10, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Natural language description of the citation", formalDefinition="A free text natural language description of the citation from a consumer's perspective." ) + protected MarkdownType description; + /** * The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate citation instances. */ - @Child(name = "useContext", type = {UsageContext.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Use context", formalDefinition="The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate citation instances." ) + @Child(name = "useContext", type = {UsageContext.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="The context that the Citation Resource content is intended to support", formalDefinition="The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate citation instances." ) protected List useContext; /** - * A formal identifier that is used to identify this citation when it is represented in other formats, or referenced in a specification, model, design or an instance. + * A legal or geographic region in which the citation is intended to be used. */ - @Child(name = "identifier", type = {Identifier.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="May include DOI, PMID, PMCID, etc.", formalDefinition="A formal identifier that is used to identify this citation when it is represented in other formats, or referenced in a specification, model, design or an instance." ) - protected List identifier; + @Child(name = "jurisdiction", type = {CodeableConcept.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Intended jurisdiction for citation (if applicable)", formalDefinition="A legal or geographic region in which the citation is intended to be used." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/jurisdiction") + protected List jurisdiction; /** - * A formal identifier that is used to identify things closely related to this citation. + * Explanation of why this citation is needed and why it has been designed as it has. */ - @Child(name = "relatedIdentifier", type = {Identifier.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="May include trial registry identifiers", formalDefinition="A formal identifier that is used to identify things closely related to this citation." ) - protected List relatedIdentifier; + @Child(name = "purpose", type = {MarkdownType.class}, order=13, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Why this citation is defined", formalDefinition="Explanation of why this citation is needed and why it has been designed as it has." ) + protected MarkdownType purpose; + + /** + * Use and/or publishing restrictions for the Citation, not for the cited artifact. + */ + @Child(name = "copyright", type = {MarkdownType.class}, order=14, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Use and/or publishing restrictions for the Citation, not for the cited artifact", formalDefinition="Use and/or publishing restrictions for the Citation, not for the cited artifact." ) + protected MarkdownType copyright; + + /** + * The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. + */ + @Child(name = "approvalDate", type = {DateType.class}, order=15, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="When the citation was approved by publisher", formalDefinition="The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage." ) + protected DateType approvalDate; + + /** + * The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date. + */ + @Child(name = "lastReviewDate", type = {DateType.class}, order=16, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="When the citation was last reviewed", formalDefinition="The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date." ) + protected DateType lastReviewDate; + + /** + * The period during which the citation content was or is planned to be in active use. + */ + @Child(name = "effectivePeriod", type = {Period.class}, order=17, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="When the citation is expected to be used", formalDefinition="The period during which the citation content was or is planned to be in active use." ) + protected Period effectivePeriod; + + /** + * Who authored the Citation. + */ + @Child(name = "author", type = {ContactDetail.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Who authored the Citation", formalDefinition="Who authored the Citation." ) + protected List author; + + /** + * Who edited the Citation. + */ + @Child(name = "editor", type = {ContactDetail.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Who edited the Citation", formalDefinition="Who edited the Citation." ) + protected List editor; + + /** + * Who reviewed the Citation. + */ + @Child(name = "reviewer", type = {ContactDetail.class}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Who reviewed the Citation", formalDefinition="Who reviewed the Citation." ) + protected List reviewer; + + /** + * Who endorsed the Citation. + */ + @Child(name = "endorser", type = {ContactDetail.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Who endorsed the Citation", formalDefinition="Who endorsed the Citation." ) + protected List endorser; /** * A human-readable display of the citation. */ - @Child(name = "summary", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "summary", type = {ContactDetail.class}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="A human-readable display of the citation", formalDefinition="A human-readable display of the citation." ) - protected List summary; + protected List summary; /** - * Date Cited. + * The assignment to an organizing scheme. */ - @Child(name = "dateCited", type = {DateTimeType.class}, order=6, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Date Cited", formalDefinition="Date Cited." ) - protected DateTimeType dateCited; - - /** - * Variant citation. - */ - @Child(name = "variantCitation", type = {}, order=7, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Variant citation", formalDefinition="Variant citation." ) - protected CitationVariantCitationComponent variantCitation; - - /** - * Identify the medium/media in which the cited article is published, eg print, electronic or print-electronic. - */ - @Child(name = "publishingModel", type = {CodeableConcept.class}, order=8, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Identify the medium/media in which the cited article is published, eg print, electronic or print-electronic", formalDefinition="Identify the medium/media in which the cited article is published, eg print, electronic or print-electronic." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/publishing-model-type") - protected CodeableConcept publishingModel; - - /** - * Contains identifiers and classifiers for the journal cited. - */ - @Child(name = "journal", type = {}, order=9, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Contains identifiers and classifiers for the journal cited", formalDefinition="Contains identifiers and classifiers for the journal cited." ) - protected CitationJournalComponent journal; - - /** - * Citation detail for sources other than journals such as books and databases. - */ - @Child(name = "publicationInfo", type = {}, order=10, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Citation detail for sources other than journals", formalDefinition="Citation detail for sources other than journals such as books and databases." ) - protected CitationPublicationInfoComponent publicationInfo; - - /** - * Full title of the article. - */ - @Child(name = "articleTitle", type = {MarkdownType.class}, order=11, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Full title of the article", formalDefinition="Full title of the article." ) - protected MarkdownType articleTitle; - - /** - * Used for variant titles, such as translations. - */ - @Child(name = "alternativeTitle", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Used for variant titles, such as translations", formalDefinition="Used for variant titles, such as translations." ) - protected List alternativeTitle; - - /** - * Indicates the inclusive pages for the article cited. - */ - @Child(name = "pagination", type = {}, order=13, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Indicates the inclusive pages for the article cited", formalDefinition="Indicates the inclusive pages for the article cited." ) - protected CitationPaginationComponent pagination; - - /** - * Used for any URL for the article cited. - */ - @Child(name = "articleUrl", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Used for any URL for the article cited", formalDefinition="Used for any URL for the article cited." ) - protected List articleUrl; - - /** - * Abstract text, as published; may include structured labels. - */ - @Child(name = "abstract", type = {MarkdownType.class}, order=15, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Abstract text", formalDefinition="Abstract text, as published; may include structured labels." ) - protected MarkdownType abstract_; - - /** - * Copyright information for the abstract text. - */ - @Child(name = "abstractCopyright", type = {MarkdownType.class}, order=16, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Abstract copyright", formalDefinition="Copyright information for the abstract text." ) - protected MarkdownType abstractCopyright; - - /** - * Used for variant abstracts, such as translations. - */ - @Child(name = "alternativeAbstract", type = {}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Used for variant abstracts, such as translations", formalDefinition="Used for variant abstracts, such as translations." ) - protected List alternativeAbstract; - - /** - * This element is used to list authors and other contributors, their contact information, specific contributions, and summary statements. - */ - @Child(name = "contributorship", type = {}, order=18, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Attribution of authors and other contributors", formalDefinition="This element is used to list authors and other contributors, their contact information, specific contributions, and summary statements." ) - protected CitationContributorshipComponent contributorship; - - /** - * The language in which the article is published. - */ - @Child(name = "articleLanguage", type = {CodeableConcept.class}, order=19, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The language in which the article is published", formalDefinition="The language in which the article is published." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages") - protected CodeableConcept articleLanguage; - - /** - * Used to represent alternative forms of the article that are not separate citations. - */ - @Child(name = "alternativeForm", type = {}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Used to represent alternative forms of the article that are not separate citations", formalDefinition="Used to represent alternative forms of the article that are not separate citations." ) - protected List alternativeForm; - - /** - * Used for many classifiers including PublicationType, CitationSubset, MeshHeading, Chemical. - */ - @Child(name = "classifier", type = {CodeableConcept.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Used for many classifiers including PublicationType, CitationSubset, MeshHeading, Chemical", formalDefinition="Used for many classifiers including PublicationType, CitationSubset, MeshHeading, Chemical." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/citation-classifier") - protected List classifier; - - /** - * A list of words classified as keywords for specific use in search functions. - */ - @Child(name = "keywordList", type = {}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Used to support keyword searches", formalDefinition="A list of words classified as keywords for specific use in search functions." ) - protected List keywordList; - - /** - * Link or citation to artifact associated with the referenced material. - */ - @Child(name = "relatedArtifact", type = {RelatedArtifact.class}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Link or citation to artifact associated with the referenced material", formalDefinition="Link or citation to artifact associated with the referenced material." ) - protected List relatedArtifact; + @Child(name = "classification", type = {}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="The assignment to an organizing scheme", formalDefinition="The assignment to an organizing scheme." ) + protected List classification; /** * Used for general notes and annotations not coded elsewhere. @@ -10040,13 +9292,35 @@ public class Citation extends MetadataResource { protected List note; /** - * These elements are items with values assigned by MEDLINE or PubMed management. + * The status of the citation. */ - @Child(name = "medlinePubMed", type = {}, order=25, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="These elements are items with values assigned by MEDLINE or PubMed management", formalDefinition="These elements are items with values assigned by MEDLINE or PubMed management." ) - protected CitationMedlinePubMedComponent medlinePubMed; + @Child(name = "currentState", type = {CodeableConcept.class}, order=25, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="The status of the citation", formalDefinition="The status of the citation." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/citation-status-type") + protected List currentState; - private static final long serialVersionUID = -3279077L; + /** + * An effective date or period for a status of the citation. + */ + @Child(name = "statusDate", type = {}, order=26, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="An effective date or period for a status of the citation", formalDefinition="An effective date or period for a status of the citation." ) + protected List statusDate; + + /** + * Artifact related to the Citation Resource. + */ + @Child(name = "relatesTo", type = {}, order=27, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Artifact related to the Citation Resource", formalDefinition="Artifact related to the Citation Resource." ) + protected List relatesTo; + + /** + * The article or artifact being described. + */ + @Child(name = "citedArtifact", type = {}, order=28, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The article or artifact being described", formalDefinition="The article or artifact being described." ) + protected CitationCitedArtifactComponent citedArtifact; + + private static final long serialVersionUID = 2083863417L; /** * Constructor @@ -10112,6 +9386,206 @@ public class Citation extends MetadataResource { return this; } + /** + * @return {@link #identifier} (A formal identifier that is used to identify this citation when it is represented in other formats, or referenced in a specification, model, design or an instance.) + */ + public List getIdentifier() { + if (this.identifier == null) + this.identifier = new ArrayList(); + return this.identifier; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public Citation setIdentifier(List theIdentifier) { + this.identifier = theIdentifier; + return this; + } + + public boolean hasIdentifier() { + if (this.identifier == null) + return false; + for (Identifier item : this.identifier) + if (!item.isEmpty()) + return true; + return false; + } + + public Identifier addIdentifier() { //3 + Identifier t = new Identifier(); + if (this.identifier == null) + this.identifier = new ArrayList(); + this.identifier.add(t); + return t; + } + + public Citation addIdentifier(Identifier t) { //3 + if (t == null) + return this; + if (this.identifier == null) + this.identifier = new ArrayList(); + this.identifier.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} + */ + public Identifier getIdentifierFirstRep() { + if (getIdentifier().isEmpty()) { + addIdentifier(); + } + return getIdentifier().get(0); + } + + /** + * @return {@link #version} (The identifier that is used to identify this version of the citation when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the citation author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value + */ + public StringType getVersionElement() { + if (this.version == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Citation.version"); + else if (Configuration.doAutoCreate()) + this.version = new StringType(); // bb + return this.version; + } + + public boolean hasVersionElement() { + return this.version != null && !this.version.isEmpty(); + } + + public boolean hasVersion() { + return this.version != null && !this.version.isEmpty(); + } + + /** + * @param value {@link #version} (The identifier that is used to identify this version of the citation when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the citation author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value + */ + public Citation setVersionElement(StringType value) { + this.version = value; + return this; + } + + /** + * @return The identifier that is used to identify this version of the citation when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the citation author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. + */ + public String getVersion() { + return this.version == null ? null : this.version.getValue(); + } + + /** + * @param value The identifier that is used to identify this version of the citation when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the citation author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. + */ + public Citation setVersion(String value) { + if (Utilities.noString(value)) + this.version = null; + else { + if (this.version == null) + this.version = new StringType(); + this.version.setValue(value); + } + return this; + } + + /** + * @return {@link #name} (A natural language name identifying the citation. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public StringType getNameElement() { + if (this.name == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Citation.name"); + else if (Configuration.doAutoCreate()) + this.name = new StringType(); // bb + return this.name; + } + + public boolean hasNameElement() { + return this.name != null && !this.name.isEmpty(); + } + + public boolean hasName() { + return this.name != null && !this.name.isEmpty(); + } + + /** + * @param value {@link #name} (A natural language name identifying the citation. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public Citation setNameElement(StringType value) { + this.name = value; + return this; + } + + /** + * @return A natural language name identifying the citation. This name should be usable as an identifier for the module by machine processing applications such as code generation. + */ + public String getName() { + return this.name == null ? null : this.name.getValue(); + } + + /** + * @param value A natural language name identifying the citation. This name should be usable as an identifier for the module by machine processing applications such as code generation. + */ + public Citation setName(String value) { + if (Utilities.noString(value)) + this.name = null; + else { + if (this.name == null) + this.name = new StringType(); + this.name.setValue(value); + } + return this; + } + + /** + * @return {@link #title} (A short, descriptive, user-friendly title for the citation.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + */ + public StringType getTitleElement() { + if (this.title == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Citation.title"); + else if (Configuration.doAutoCreate()) + this.title = new StringType(); // bb + return this.title; + } + + public boolean hasTitleElement() { + return this.title != null && !this.title.isEmpty(); + } + + public boolean hasTitle() { + return this.title != null && !this.title.isEmpty(); + } + + /** + * @param value {@link #title} (A short, descriptive, user-friendly title for the citation.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + */ + public Citation setTitleElement(StringType value) { + this.title = value; + return this; + } + + /** + * @return A short, descriptive, user-friendly title for the citation. + */ + public String getTitle() { + return this.title == null ? null : this.title.getValue(); + } + + /** + * @param value A short, descriptive, user-friendly title for the citation. + */ + public Citation setTitle(String value) { + if (Utilities.noString(value)) + this.title = null; + else { + if (this.title == null) + this.title = new StringType(); + this.title.setValue(value); + } + return this; + } + /** * @return {@link #status} (The status of this summary. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ @@ -10157,6 +9631,251 @@ public class Citation extends MetadataResource { return this; } + /** + * @return {@link #experimental} (A Boolean value to indicate that this citation is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value + */ + public BooleanType getExperimentalElement() { + if (this.experimental == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Citation.experimental"); + else if (Configuration.doAutoCreate()) + this.experimental = new BooleanType(); // bb + return this.experimental; + } + + public boolean hasExperimentalElement() { + return this.experimental != null && !this.experimental.isEmpty(); + } + + public boolean hasExperimental() { + return this.experimental != null && !this.experimental.isEmpty(); + } + + /** + * @param value {@link #experimental} (A Boolean value to indicate that this citation is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value + */ + public Citation setExperimentalElement(BooleanType value) { + this.experimental = value; + return this; + } + + /** + * @return A Boolean value to indicate that this citation is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. + */ + public boolean getExperimental() { + return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue(); + } + + /** + * @param value A Boolean value to indicate that this citation is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. + */ + public Citation setExperimental(boolean value) { + if (this.experimental == null) + this.experimental = new BooleanType(); + this.experimental.setValue(value); + return this; + } + + /** + * @return {@link #date} (The date (and optionally time) when the citation was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the citation changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value + */ + public DateTimeType getDateElement() { + if (this.date == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Citation.date"); + else if (Configuration.doAutoCreate()) + this.date = new DateTimeType(); // bb + return this.date; + } + + public boolean hasDateElement() { + return this.date != null && !this.date.isEmpty(); + } + + public boolean hasDate() { + return this.date != null && !this.date.isEmpty(); + } + + /** + * @param value {@link #date} (The date (and optionally time) when the citation was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the citation changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value + */ + public Citation setDateElement(DateTimeType value) { + this.date = value; + return this; + } + + /** + * @return The date (and optionally time) when the citation was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the citation changes. + */ + public Date getDate() { + return this.date == null ? null : this.date.getValue(); + } + + /** + * @param value The date (and optionally time) when the citation was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the citation changes. + */ + public Citation setDate(Date value) { + if (value == null) + this.date = null; + else { + if (this.date == null) + this.date = new DateTimeType(); + this.date.setValue(value); + } + return this; + } + + /** + * @return {@link #publisher} (The name of the organization or individual that published the citation.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value + */ + public StringType getPublisherElement() { + if (this.publisher == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Citation.publisher"); + else if (Configuration.doAutoCreate()) + this.publisher = new StringType(); // bb + return this.publisher; + } + + public boolean hasPublisherElement() { + return this.publisher != null && !this.publisher.isEmpty(); + } + + public boolean hasPublisher() { + return this.publisher != null && !this.publisher.isEmpty(); + } + + /** + * @param value {@link #publisher} (The name of the organization or individual that published the citation.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value + */ + public Citation setPublisherElement(StringType value) { + this.publisher = value; + return this; + } + + /** + * @return The name of the organization or individual that published the citation. + */ + public String getPublisher() { + return this.publisher == null ? null : this.publisher.getValue(); + } + + /** + * @param value The name of the organization or individual that published the citation. + */ + public Citation setPublisher(String value) { + if (Utilities.noString(value)) + this.publisher = null; + else { + if (this.publisher == null) + this.publisher = new StringType(); + this.publisher.setValue(value); + } + return this; + } + + /** + * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.) + */ + public List getContact() { + if (this.contact == null) + this.contact = new ArrayList(); + return this.contact; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public Citation setContact(List theContact) { + this.contact = theContact; + return this; + } + + public boolean hasContact() { + if (this.contact == null) + return false; + for (ContactDetail item : this.contact) + if (!item.isEmpty()) + return true; + return false; + } + + public ContactDetail addContact() { //3 + ContactDetail t = new ContactDetail(); + if (this.contact == null) + this.contact = new ArrayList(); + this.contact.add(t); + return t; + } + + public Citation addContact(ContactDetail t) { //3 + if (t == null) + return this; + if (this.contact == null) + this.contact = new ArrayList(); + this.contact.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist {3} + */ + public ContactDetail getContactFirstRep() { + if (getContact().isEmpty()) { + addContact(); + } + return getContact().get(0); + } + + /** + * @return {@link #description} (A free text natural language description of the citation from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public MarkdownType getDescriptionElement() { + if (this.description == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Citation.description"); + else if (Configuration.doAutoCreate()) + this.description = new MarkdownType(); // bb + return this.description; + } + + public boolean hasDescriptionElement() { + return this.description != null && !this.description.isEmpty(); + } + + public boolean hasDescription() { + return this.description != null && !this.description.isEmpty(); + } + + /** + * @param value {@link #description} (A free text natural language description of the citation from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public Citation setDescriptionElement(MarkdownType value) { + this.description = value; + return this; + } + + /** + * @return A free text natural language description of the citation from a consumer's perspective. + */ + public String getDescription() { + return this.description == null ? null : this.description.getValue(); + } + + /** + * @param value A free text natural language description of the citation from a consumer's perspective. + */ + public Citation setDescription(String value) { + if (value == null) + this.description = null; + else { + if (this.description == null) + this.description = new MarkdownType(); + this.description.setValue(value); + } + return this; + } + /** * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate citation instances.) */ @@ -10211,124 +9930,503 @@ public class Citation extends MetadataResource { } /** - * @return {@link #identifier} (A formal identifier that is used to identify this citation when it is represented in other formats, or referenced in a specification, model, design or an instance.) + * @return {@link #jurisdiction} (A legal or geographic region in which the citation is intended to be used.) */ - public List getIdentifier() { - if (this.identifier == null) - this.identifier = new ArrayList(); - return this.identifier; + public List getJurisdiction() { + if (this.jurisdiction == null) + this.jurisdiction = new ArrayList(); + return this.jurisdiction; } /** * @return Returns a reference to this for easy method chaining */ - public Citation setIdentifier(List theIdentifier) { - this.identifier = theIdentifier; + public Citation setJurisdiction(List theJurisdiction) { + this.jurisdiction = theJurisdiction; return this; } - public boolean hasIdentifier() { - if (this.identifier == null) + public boolean hasJurisdiction() { + if (this.jurisdiction == null) return false; - for (Identifier item : this.identifier) + for (CodeableConcept item : this.jurisdiction) if (!item.isEmpty()) return true; return false; } - public Identifier addIdentifier() { //3 - Identifier t = new Identifier(); - if (this.identifier == null) - this.identifier = new ArrayList(); - this.identifier.add(t); + public CodeableConcept addJurisdiction() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.jurisdiction == null) + this.jurisdiction = new ArrayList(); + this.jurisdiction.add(t); return t; } - public Citation addIdentifier(Identifier t) { //3 + public Citation addJurisdiction(CodeableConcept t) { //3 if (t == null) return this; - if (this.identifier == null) - this.identifier = new ArrayList(); - this.identifier.add(t); + if (this.jurisdiction == null) + this.jurisdiction = new ArrayList(); + this.jurisdiction.add(t); return this; } /** - * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} + * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist {3} */ - public Identifier getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - addIdentifier(); + public CodeableConcept getJurisdictionFirstRep() { + if (getJurisdiction().isEmpty()) { + addJurisdiction(); } - return getIdentifier().get(0); + return getJurisdiction().get(0); } /** - * @return {@link #relatedIdentifier} (A formal identifier that is used to identify things closely related to this citation.) + * @return {@link #purpose} (Explanation of why this citation is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value */ - public List getRelatedIdentifier() { - if (this.relatedIdentifier == null) - this.relatedIdentifier = new ArrayList(); - return this.relatedIdentifier; + public MarkdownType getPurposeElement() { + if (this.purpose == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Citation.purpose"); + else if (Configuration.doAutoCreate()) + this.purpose = new MarkdownType(); // bb + return this.purpose; + } + + public boolean hasPurposeElement() { + return this.purpose != null && !this.purpose.isEmpty(); + } + + public boolean hasPurpose() { + return this.purpose != null && !this.purpose.isEmpty(); + } + + /** + * @param value {@link #purpose} (Explanation of why this citation is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value + */ + public Citation setPurposeElement(MarkdownType value) { + this.purpose = value; + return this; + } + + /** + * @return Explanation of why this citation is needed and why it has been designed as it has. + */ + public String getPurpose() { + return this.purpose == null ? null : this.purpose.getValue(); + } + + /** + * @param value Explanation of why this citation is needed and why it has been designed as it has. + */ + public Citation setPurpose(String value) { + if (value == null) + this.purpose = null; + else { + if (this.purpose == null) + this.purpose = new MarkdownType(); + this.purpose.setValue(value); + } + return this; + } + + /** + * @return {@link #copyright} (Use and/or publishing restrictions for the Citation, not for the cited artifact.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value + */ + public MarkdownType getCopyrightElement() { + if (this.copyright == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Citation.copyright"); + else if (Configuration.doAutoCreate()) + this.copyright = new MarkdownType(); // bb + return this.copyright; + } + + public boolean hasCopyrightElement() { + return this.copyright != null && !this.copyright.isEmpty(); + } + + public boolean hasCopyright() { + return this.copyright != null && !this.copyright.isEmpty(); + } + + /** + * @param value {@link #copyright} (Use and/or publishing restrictions for the Citation, not for the cited artifact.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value + */ + public Citation setCopyrightElement(MarkdownType value) { + this.copyright = value; + return this; + } + + /** + * @return Use and/or publishing restrictions for the Citation, not for the cited artifact. + */ + public String getCopyright() { + return this.copyright == null ? null : this.copyright.getValue(); + } + + /** + * @param value Use and/or publishing restrictions for the Citation, not for the cited artifact. + */ + public Citation setCopyright(String value) { + if (value == null) + this.copyright = null; + else { + if (this.copyright == null) + this.copyright = new MarkdownType(); + this.copyright.setValue(value); + } + return this; + } + + /** + * @return {@link #approvalDate} (The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.). This is the underlying object with id, value and extensions. The accessor "getApprovalDate" gives direct access to the value + */ + public DateType getApprovalDateElement() { + if (this.approvalDate == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Citation.approvalDate"); + else if (Configuration.doAutoCreate()) + this.approvalDate = new DateType(); // bb + return this.approvalDate; + } + + public boolean hasApprovalDateElement() { + return this.approvalDate != null && !this.approvalDate.isEmpty(); + } + + public boolean hasApprovalDate() { + return this.approvalDate != null && !this.approvalDate.isEmpty(); + } + + /** + * @param value {@link #approvalDate} (The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.). This is the underlying object with id, value and extensions. The accessor "getApprovalDate" gives direct access to the value + */ + public Citation setApprovalDateElement(DateType value) { + this.approvalDate = value; + return this; + } + + /** + * @return The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. + */ + public Date getApprovalDate() { + return this.approvalDate == null ? null : this.approvalDate.getValue(); + } + + /** + * @param value The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. + */ + public Citation setApprovalDate(Date value) { + if (value == null) + this.approvalDate = null; + else { + if (this.approvalDate == null) + this.approvalDate = new DateType(); + this.approvalDate.setValue(value); + } + return this; + } + + /** + * @return {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value + */ + public DateType getLastReviewDateElement() { + if (this.lastReviewDate == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Citation.lastReviewDate"); + else if (Configuration.doAutoCreate()) + this.lastReviewDate = new DateType(); // bb + return this.lastReviewDate; + } + + public boolean hasLastReviewDateElement() { + return this.lastReviewDate != null && !this.lastReviewDate.isEmpty(); + } + + public boolean hasLastReviewDate() { + return this.lastReviewDate != null && !this.lastReviewDate.isEmpty(); + } + + /** + * @param value {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value + */ + public Citation setLastReviewDateElement(DateType value) { + this.lastReviewDate = value; + return this; + } + + /** + * @return The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date. + */ + public Date getLastReviewDate() { + return this.lastReviewDate == null ? null : this.lastReviewDate.getValue(); + } + + /** + * @param value The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date. + */ + public Citation setLastReviewDate(Date value) { + if (value == null) + this.lastReviewDate = null; + else { + if (this.lastReviewDate == null) + this.lastReviewDate = new DateType(); + this.lastReviewDate.setValue(value); + } + return this; + } + + /** + * @return {@link #effectivePeriod} (The period during which the citation content was or is planned to be in active use.) + */ + public Period getEffectivePeriod() { + if (this.effectivePeriod == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Citation.effectivePeriod"); + else if (Configuration.doAutoCreate()) + this.effectivePeriod = new Period(); // cc + return this.effectivePeriod; + } + + public boolean hasEffectivePeriod() { + return this.effectivePeriod != null && !this.effectivePeriod.isEmpty(); + } + + /** + * @param value {@link #effectivePeriod} (The period during which the citation content was or is planned to be in active use.) + */ + public Citation setEffectivePeriod(Period value) { + this.effectivePeriod = value; + return this; + } + + /** + * @return {@link #author} (Who authored the Citation.) + */ + public List getAuthor() { + if (this.author == null) + this.author = new ArrayList(); + return this.author; } /** * @return Returns a reference to this for easy method chaining */ - public Citation setRelatedIdentifier(List theRelatedIdentifier) { - this.relatedIdentifier = theRelatedIdentifier; + public Citation setAuthor(List theAuthor) { + this.author = theAuthor; return this; } - public boolean hasRelatedIdentifier() { - if (this.relatedIdentifier == null) + public boolean hasAuthor() { + if (this.author == null) return false; - for (Identifier item : this.relatedIdentifier) + for (ContactDetail item : this.author) if (!item.isEmpty()) return true; return false; } - public Identifier addRelatedIdentifier() { //3 - Identifier t = new Identifier(); - if (this.relatedIdentifier == null) - this.relatedIdentifier = new ArrayList(); - this.relatedIdentifier.add(t); + public ContactDetail addAuthor() { //3 + ContactDetail t = new ContactDetail(); + if (this.author == null) + this.author = new ArrayList(); + this.author.add(t); return t; } - public Citation addRelatedIdentifier(Identifier t) { //3 + public Citation addAuthor(ContactDetail t) { //3 if (t == null) return this; - if (this.relatedIdentifier == null) - this.relatedIdentifier = new ArrayList(); - this.relatedIdentifier.add(t); + if (this.author == null) + this.author = new ArrayList(); + this.author.add(t); return this; } /** - * @return The first repetition of repeating field {@link #relatedIdentifier}, creating it if it does not already exist {3} + * @return The first repetition of repeating field {@link #author}, creating it if it does not already exist {3} */ - public Identifier getRelatedIdentifierFirstRep() { - if (getRelatedIdentifier().isEmpty()) { - addRelatedIdentifier(); + public ContactDetail getAuthorFirstRep() { + if (getAuthor().isEmpty()) { + addAuthor(); } - return getRelatedIdentifier().get(0); + return getAuthor().get(0); + } + + /** + * @return {@link #editor} (Who edited the Citation.) + */ + public List getEditor() { + if (this.editor == null) + this.editor = new ArrayList(); + return this.editor; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public Citation setEditor(List theEditor) { + this.editor = theEditor; + return this; + } + + public boolean hasEditor() { + if (this.editor == null) + return false; + for (ContactDetail item : this.editor) + if (!item.isEmpty()) + return true; + return false; + } + + public ContactDetail addEditor() { //3 + ContactDetail t = new ContactDetail(); + if (this.editor == null) + this.editor = new ArrayList(); + this.editor.add(t); + return t; + } + + public Citation addEditor(ContactDetail t) { //3 + if (t == null) + return this; + if (this.editor == null) + this.editor = new ArrayList(); + this.editor.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #editor}, creating it if it does not already exist {3} + */ + public ContactDetail getEditorFirstRep() { + if (getEditor().isEmpty()) { + addEditor(); + } + return getEditor().get(0); + } + + /** + * @return {@link #reviewer} (Who reviewed the Citation.) + */ + public List getReviewer() { + if (this.reviewer == null) + this.reviewer = new ArrayList(); + return this.reviewer; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public Citation setReviewer(List theReviewer) { + this.reviewer = theReviewer; + return this; + } + + public boolean hasReviewer() { + if (this.reviewer == null) + return false; + for (ContactDetail item : this.reviewer) + if (!item.isEmpty()) + return true; + return false; + } + + public ContactDetail addReviewer() { //3 + ContactDetail t = new ContactDetail(); + if (this.reviewer == null) + this.reviewer = new ArrayList(); + this.reviewer.add(t); + return t; + } + + public Citation addReviewer(ContactDetail t) { //3 + if (t == null) + return this; + if (this.reviewer == null) + this.reviewer = new ArrayList(); + this.reviewer.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #reviewer}, creating it if it does not already exist {3} + */ + public ContactDetail getReviewerFirstRep() { + if (getReviewer().isEmpty()) { + addReviewer(); + } + return getReviewer().get(0); + } + + /** + * @return {@link #endorser} (Who endorsed the Citation.) + */ + public List getEndorser() { + if (this.endorser == null) + this.endorser = new ArrayList(); + return this.endorser; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public Citation setEndorser(List theEndorser) { + this.endorser = theEndorser; + return this; + } + + public boolean hasEndorser() { + if (this.endorser == null) + return false; + for (ContactDetail item : this.endorser) + if (!item.isEmpty()) + return true; + return false; + } + + public ContactDetail addEndorser() { //3 + ContactDetail t = new ContactDetail(); + if (this.endorser == null) + this.endorser = new ArrayList(); + this.endorser.add(t); + return t; + } + + public Citation addEndorser(ContactDetail t) { //3 + if (t == null) + return this; + if (this.endorser == null) + this.endorser = new ArrayList(); + this.endorser.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #endorser}, creating it if it does not already exist {3} + */ + public ContactDetail getEndorserFirstRep() { + if (getEndorser().isEmpty()) { + addEndorser(); + } + return getEndorser().get(0); } /** * @return {@link #summary} (A human-readable display of the citation.) */ - public List getSummary() { + public List getSummary() { if (this.summary == null) - this.summary = new ArrayList(); + this.summary = new ArrayList(); return this.summary; } /** * @return Returns a reference to this for easy method chaining */ - public Citation setSummary(List theSummary) { + public Citation setSummary(List theSummary) { this.summary = theSummary; return this; } @@ -10336,25 +10434,25 @@ public class Citation extends MetadataResource { public boolean hasSummary() { if (this.summary == null) return false; - for (CitationSummaryComponent item : this.summary) + for (ContactDetail item : this.summary) if (!item.isEmpty()) return true; return false; } - public CitationSummaryComponent addSummary() { //3 - CitationSummaryComponent t = new CitationSummaryComponent(); + public ContactDetail addSummary() { //3 + ContactDetail t = new ContactDetail(); if (this.summary == null) - this.summary = new ArrayList(); + this.summary = new ArrayList(); this.summary.add(t); return t; } - public Citation addSummary(CitationSummaryComponent t) { //3 + public Citation addSummary(ContactDetail t) { //3 if (t == null) return this; if (this.summary == null) - this.summary = new ArrayList(); + this.summary = new ArrayList(); this.summary.add(t); return this; } @@ -10362,7 +10460,7 @@ public class Citation extends MetadataResource { /** * @return The first repetition of repeating field {@link #summary}, creating it if it does not already exist {3} */ - public CitationSummaryComponent getSummaryFirstRep() { + public ContactDetail getSummaryFirstRep() { if (getSummary().isEmpty()) { addSummary(); } @@ -10370,738 +10468,56 @@ public class Citation extends MetadataResource { } /** - * @return {@link #dateCited} (Date Cited.). This is the underlying object with id, value and extensions. The accessor "getDateCited" gives direct access to the value + * @return {@link #classification} (The assignment to an organizing scheme.) */ - public DateTimeType getDateCitedElement() { - if (this.dateCited == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create Citation.dateCited"); - else if (Configuration.doAutoCreate()) - this.dateCited = new DateTimeType(); // bb - return this.dateCited; - } - - public boolean hasDateCitedElement() { - return this.dateCited != null && !this.dateCited.isEmpty(); - } - - public boolean hasDateCited() { - return this.dateCited != null && !this.dateCited.isEmpty(); - } - - /** - * @param value {@link #dateCited} (Date Cited.). This is the underlying object with id, value and extensions. The accessor "getDateCited" gives direct access to the value - */ - public Citation setDateCitedElement(DateTimeType value) { - this.dateCited = value; - return this; - } - - /** - * @return Date Cited. - */ - public Date getDateCited() { - return this.dateCited == null ? null : this.dateCited.getValue(); - } - - /** - * @param value Date Cited. - */ - public Citation setDateCited(Date value) { - if (value == null) - this.dateCited = null; - else { - if (this.dateCited == null) - this.dateCited = new DateTimeType(); - this.dateCited.setValue(value); - } - return this; - } - - /** - * @return {@link #variantCitation} (Variant citation.) - */ - public CitationVariantCitationComponent getVariantCitation() { - if (this.variantCitation == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create Citation.variantCitation"); - else if (Configuration.doAutoCreate()) - this.variantCitation = new CitationVariantCitationComponent(); // cc - return this.variantCitation; - } - - public boolean hasVariantCitation() { - return this.variantCitation != null && !this.variantCitation.isEmpty(); - } - - /** - * @param value {@link #variantCitation} (Variant citation.) - */ - public Citation setVariantCitation(CitationVariantCitationComponent value) { - this.variantCitation = value; - return this; - } - - /** - * @return {@link #publishingModel} (Identify the medium/media in which the cited article is published, eg print, electronic or print-electronic.) - */ - public CodeableConcept getPublishingModel() { - if (this.publishingModel == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create Citation.publishingModel"); - else if (Configuration.doAutoCreate()) - this.publishingModel = new CodeableConcept(); // cc - return this.publishingModel; - } - - public boolean hasPublishingModel() { - return this.publishingModel != null && !this.publishingModel.isEmpty(); - } - - /** - * @param value {@link #publishingModel} (Identify the medium/media in which the cited article is published, eg print, electronic or print-electronic.) - */ - public Citation setPublishingModel(CodeableConcept value) { - this.publishingModel = value; - return this; - } - - /** - * @return {@link #journal} (Contains identifiers and classifiers for the journal cited.) - */ - public CitationJournalComponent getJournal() { - if (this.journal == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create Citation.journal"); - else if (Configuration.doAutoCreate()) - this.journal = new CitationJournalComponent(); // cc - return this.journal; - } - - public boolean hasJournal() { - return this.journal != null && !this.journal.isEmpty(); - } - - /** - * @param value {@link #journal} (Contains identifiers and classifiers for the journal cited.) - */ - public Citation setJournal(CitationJournalComponent value) { - this.journal = value; - return this; - } - - /** - * @return {@link #publicationInfo} (Citation detail for sources other than journals such as books and databases.) - */ - public CitationPublicationInfoComponent getPublicationInfo() { - if (this.publicationInfo == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create Citation.publicationInfo"); - else if (Configuration.doAutoCreate()) - this.publicationInfo = new CitationPublicationInfoComponent(); // cc - return this.publicationInfo; - } - - public boolean hasPublicationInfo() { - return this.publicationInfo != null && !this.publicationInfo.isEmpty(); - } - - /** - * @param value {@link #publicationInfo} (Citation detail for sources other than journals such as books and databases.) - */ - public Citation setPublicationInfo(CitationPublicationInfoComponent value) { - this.publicationInfo = value; - return this; - } - - /** - * @return {@link #articleTitle} (Full title of the article.). This is the underlying object with id, value and extensions. The accessor "getArticleTitle" gives direct access to the value - */ - public MarkdownType getArticleTitleElement() { - if (this.articleTitle == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create Citation.articleTitle"); - else if (Configuration.doAutoCreate()) - this.articleTitle = new MarkdownType(); // bb - return this.articleTitle; - } - - public boolean hasArticleTitleElement() { - return this.articleTitle != null && !this.articleTitle.isEmpty(); - } - - public boolean hasArticleTitle() { - return this.articleTitle != null && !this.articleTitle.isEmpty(); - } - - /** - * @param value {@link #articleTitle} (Full title of the article.). This is the underlying object with id, value and extensions. The accessor "getArticleTitle" gives direct access to the value - */ - public Citation setArticleTitleElement(MarkdownType value) { - this.articleTitle = value; - return this; - } - - /** - * @return Full title of the article. - */ - public String getArticleTitle() { - return this.articleTitle == null ? null : this.articleTitle.getValue(); - } - - /** - * @param value Full title of the article. - */ - public Citation setArticleTitle(String value) { - if (value == null) - this.articleTitle = null; - else { - if (this.articleTitle == null) - this.articleTitle = new MarkdownType(); - this.articleTitle.setValue(value); - } - return this; - } - - /** - * @return {@link #alternativeTitle} (Used for variant titles, such as translations.) - */ - public List getAlternativeTitle() { - if (this.alternativeTitle == null) - this.alternativeTitle = new ArrayList(); - return this.alternativeTitle; + public List getClassification() { + if (this.classification == null) + this.classification = new ArrayList(); + return this.classification; } /** * @return Returns a reference to this for easy method chaining */ - public Citation setAlternativeTitle(List theAlternativeTitle) { - this.alternativeTitle = theAlternativeTitle; + public Citation setClassification(List theClassification) { + this.classification = theClassification; return this; } - public boolean hasAlternativeTitle() { - if (this.alternativeTitle == null) + public boolean hasClassification() { + if (this.classification == null) return false; - for (CitationAlternativeTitleComponent item : this.alternativeTitle) + for (CitationClassificationComponent item : this.classification) if (!item.isEmpty()) return true; return false; } - public CitationAlternativeTitleComponent addAlternativeTitle() { //3 - CitationAlternativeTitleComponent t = new CitationAlternativeTitleComponent(); - if (this.alternativeTitle == null) - this.alternativeTitle = new ArrayList(); - this.alternativeTitle.add(t); + public CitationClassificationComponent addClassification() { //3 + CitationClassificationComponent t = new CitationClassificationComponent(); + if (this.classification == null) + this.classification = new ArrayList(); + this.classification.add(t); return t; } - public Citation addAlternativeTitle(CitationAlternativeTitleComponent t) { //3 + public Citation addClassification(CitationClassificationComponent t) { //3 if (t == null) return this; - if (this.alternativeTitle == null) - this.alternativeTitle = new ArrayList(); - this.alternativeTitle.add(t); + if (this.classification == null) + this.classification = new ArrayList(); + this.classification.add(t); return this; } /** - * @return The first repetition of repeating field {@link #alternativeTitle}, creating it if it does not already exist {3} + * @return The first repetition of repeating field {@link #classification}, creating it if it does not already exist {3} */ - public CitationAlternativeTitleComponent getAlternativeTitleFirstRep() { - if (getAlternativeTitle().isEmpty()) { - addAlternativeTitle(); + public CitationClassificationComponent getClassificationFirstRep() { + if (getClassification().isEmpty()) { + addClassification(); } - return getAlternativeTitle().get(0); - } - - /** - * @return {@link #pagination} (Indicates the inclusive pages for the article cited.) - */ - public CitationPaginationComponent getPagination() { - if (this.pagination == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create Citation.pagination"); - else if (Configuration.doAutoCreate()) - this.pagination = new CitationPaginationComponent(); // cc - return this.pagination; - } - - public boolean hasPagination() { - return this.pagination != null && !this.pagination.isEmpty(); - } - - /** - * @param value {@link #pagination} (Indicates the inclusive pages for the article cited.) - */ - public Citation setPagination(CitationPaginationComponent value) { - this.pagination = value; - return this; - } - - /** - * @return {@link #articleUrl} (Used for any URL for the article cited.) - */ - public List getArticleUrl() { - if (this.articleUrl == null) - this.articleUrl = new ArrayList(); - return this.articleUrl; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public Citation setArticleUrl(List theArticleUrl) { - this.articleUrl = theArticleUrl; - return this; - } - - public boolean hasArticleUrl() { - if (this.articleUrl == null) - return false; - for (CitationArticleUrlComponent item : this.articleUrl) - if (!item.isEmpty()) - return true; - return false; - } - - public CitationArticleUrlComponent addArticleUrl() { //3 - CitationArticleUrlComponent t = new CitationArticleUrlComponent(); - if (this.articleUrl == null) - this.articleUrl = new ArrayList(); - this.articleUrl.add(t); - return t; - } - - public Citation addArticleUrl(CitationArticleUrlComponent t) { //3 - if (t == null) - return this; - if (this.articleUrl == null) - this.articleUrl = new ArrayList(); - this.articleUrl.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #articleUrl}, creating it if it does not already exist {3} - */ - public CitationArticleUrlComponent getArticleUrlFirstRep() { - if (getArticleUrl().isEmpty()) { - addArticleUrl(); - } - return getArticleUrl().get(0); - } - - /** - * @return {@link #abstract_} (Abstract text, as published; may include structured labels.). This is the underlying object with id, value and extensions. The accessor "getAbstract" gives direct access to the value - */ - public MarkdownType getAbstractElement() { - if (this.abstract_ == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create Citation.abstract_"); - else if (Configuration.doAutoCreate()) - this.abstract_ = new MarkdownType(); // bb - return this.abstract_; - } - - public boolean hasAbstractElement() { - return this.abstract_ != null && !this.abstract_.isEmpty(); - } - - public boolean hasAbstract() { - return this.abstract_ != null && !this.abstract_.isEmpty(); - } - - /** - * @param value {@link #abstract_} (Abstract text, as published; may include structured labels.). This is the underlying object with id, value and extensions. The accessor "getAbstract" gives direct access to the value - */ - public Citation setAbstractElement(MarkdownType value) { - this.abstract_ = value; - return this; - } - - /** - * @return Abstract text, as published; may include structured labels. - */ - public String getAbstract() { - return this.abstract_ == null ? null : this.abstract_.getValue(); - } - - /** - * @param value Abstract text, as published; may include structured labels. - */ - public Citation setAbstract(String value) { - if (value == null) - this.abstract_ = null; - else { - if (this.abstract_ == null) - this.abstract_ = new MarkdownType(); - this.abstract_.setValue(value); - } - return this; - } - - /** - * @return {@link #abstractCopyright} (Copyright information for the abstract text.). This is the underlying object with id, value and extensions. The accessor "getAbstractCopyright" gives direct access to the value - */ - public MarkdownType getAbstractCopyrightElement() { - if (this.abstractCopyright == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create Citation.abstractCopyright"); - else if (Configuration.doAutoCreate()) - this.abstractCopyright = new MarkdownType(); // bb - return this.abstractCopyright; - } - - public boolean hasAbstractCopyrightElement() { - return this.abstractCopyright != null && !this.abstractCopyright.isEmpty(); - } - - public boolean hasAbstractCopyright() { - return this.abstractCopyright != null && !this.abstractCopyright.isEmpty(); - } - - /** - * @param value {@link #abstractCopyright} (Copyright information for the abstract text.). This is the underlying object with id, value and extensions. The accessor "getAbstractCopyright" gives direct access to the value - */ - public Citation setAbstractCopyrightElement(MarkdownType value) { - this.abstractCopyright = value; - return this; - } - - /** - * @return Copyright information for the abstract text. - */ - public String getAbstractCopyright() { - return this.abstractCopyright == null ? null : this.abstractCopyright.getValue(); - } - - /** - * @param value Copyright information for the abstract text. - */ - public Citation setAbstractCopyright(String value) { - if (value == null) - this.abstractCopyright = null; - else { - if (this.abstractCopyright == null) - this.abstractCopyright = new MarkdownType(); - this.abstractCopyright.setValue(value); - } - return this; - } - - /** - * @return {@link #alternativeAbstract} (Used for variant abstracts, such as translations.) - */ - public List getAlternativeAbstract() { - if (this.alternativeAbstract == null) - this.alternativeAbstract = new ArrayList(); - return this.alternativeAbstract; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public Citation setAlternativeAbstract(List theAlternativeAbstract) { - this.alternativeAbstract = theAlternativeAbstract; - return this; - } - - public boolean hasAlternativeAbstract() { - if (this.alternativeAbstract == null) - return false; - for (CitationAlternativeAbstractComponent item : this.alternativeAbstract) - if (!item.isEmpty()) - return true; - return false; - } - - public CitationAlternativeAbstractComponent addAlternativeAbstract() { //3 - CitationAlternativeAbstractComponent t = new CitationAlternativeAbstractComponent(); - if (this.alternativeAbstract == null) - this.alternativeAbstract = new ArrayList(); - this.alternativeAbstract.add(t); - return t; - } - - public Citation addAlternativeAbstract(CitationAlternativeAbstractComponent t) { //3 - if (t == null) - return this; - if (this.alternativeAbstract == null) - this.alternativeAbstract = new ArrayList(); - this.alternativeAbstract.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #alternativeAbstract}, creating it if it does not already exist {3} - */ - public CitationAlternativeAbstractComponent getAlternativeAbstractFirstRep() { - if (getAlternativeAbstract().isEmpty()) { - addAlternativeAbstract(); - } - return getAlternativeAbstract().get(0); - } - - /** - * @return {@link #contributorship} (This element is used to list authors and other contributors, their contact information, specific contributions, and summary statements.) - */ - public CitationContributorshipComponent getContributorship() { - if (this.contributorship == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create Citation.contributorship"); - else if (Configuration.doAutoCreate()) - this.contributorship = new CitationContributorshipComponent(); // cc - return this.contributorship; - } - - public boolean hasContributorship() { - return this.contributorship != null && !this.contributorship.isEmpty(); - } - - /** - * @param value {@link #contributorship} (This element is used to list authors and other contributors, their contact information, specific contributions, and summary statements.) - */ - public Citation setContributorship(CitationContributorshipComponent value) { - this.contributorship = value; - return this; - } - - /** - * @return {@link #articleLanguage} (The language in which the article is published.) - */ - public CodeableConcept getArticleLanguage() { - if (this.articleLanguage == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create Citation.articleLanguage"); - else if (Configuration.doAutoCreate()) - this.articleLanguage = new CodeableConcept(); // cc - return this.articleLanguage; - } - - public boolean hasArticleLanguage() { - return this.articleLanguage != null && !this.articleLanguage.isEmpty(); - } - - /** - * @param value {@link #articleLanguage} (The language in which the article is published.) - */ - public Citation setArticleLanguage(CodeableConcept value) { - this.articleLanguage = value; - return this; - } - - /** - * @return {@link #alternativeForm} (Used to represent alternative forms of the article that are not separate citations.) - */ - public List getAlternativeForm() { - if (this.alternativeForm == null) - this.alternativeForm = new ArrayList(); - return this.alternativeForm; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public Citation setAlternativeForm(List theAlternativeForm) { - this.alternativeForm = theAlternativeForm; - return this; - } - - public boolean hasAlternativeForm() { - if (this.alternativeForm == null) - return false; - for (CitationAlternativeFormComponent item : this.alternativeForm) - if (!item.isEmpty()) - return true; - return false; - } - - public CitationAlternativeFormComponent addAlternativeForm() { //3 - CitationAlternativeFormComponent t = new CitationAlternativeFormComponent(); - if (this.alternativeForm == null) - this.alternativeForm = new ArrayList(); - this.alternativeForm.add(t); - return t; - } - - public Citation addAlternativeForm(CitationAlternativeFormComponent t) { //3 - if (t == null) - return this; - if (this.alternativeForm == null) - this.alternativeForm = new ArrayList(); - this.alternativeForm.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #alternativeForm}, creating it if it does not already exist {3} - */ - public CitationAlternativeFormComponent getAlternativeFormFirstRep() { - if (getAlternativeForm().isEmpty()) { - addAlternativeForm(); - } - return getAlternativeForm().get(0); - } - - /** - * @return {@link #classifier} (Used for many classifiers including PublicationType, CitationSubset, MeshHeading, Chemical.) - */ - public List getClassifier() { - if (this.classifier == null) - this.classifier = new ArrayList(); - return this.classifier; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public Citation setClassifier(List theClassifier) { - this.classifier = theClassifier; - return this; - } - - public boolean hasClassifier() { - if (this.classifier == null) - return false; - for (CodeableConcept item : this.classifier) - if (!item.isEmpty()) - return true; - return false; - } - - public CodeableConcept addClassifier() { //3 - CodeableConcept t = new CodeableConcept(); - if (this.classifier == null) - this.classifier = new ArrayList(); - this.classifier.add(t); - return t; - } - - public Citation addClassifier(CodeableConcept t) { //3 - if (t == null) - return this; - if (this.classifier == null) - this.classifier = new ArrayList(); - this.classifier.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #classifier}, creating it if it does not already exist {3} - */ - public CodeableConcept getClassifierFirstRep() { - if (getClassifier().isEmpty()) { - addClassifier(); - } - return getClassifier().get(0); - } - - /** - * @return {@link #keywordList} (A list of words classified as keywords for specific use in search functions.) - */ - public List getKeywordList() { - if (this.keywordList == null) - this.keywordList = new ArrayList(); - return this.keywordList; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public Citation setKeywordList(List theKeywordList) { - this.keywordList = theKeywordList; - return this; - } - - public boolean hasKeywordList() { - if (this.keywordList == null) - return false; - for (CitationKeywordListComponent item : this.keywordList) - if (!item.isEmpty()) - return true; - return false; - } - - public CitationKeywordListComponent addKeywordList() { //3 - CitationKeywordListComponent t = new CitationKeywordListComponent(); - if (this.keywordList == null) - this.keywordList = new ArrayList(); - this.keywordList.add(t); - return t; - } - - public Citation addKeywordList(CitationKeywordListComponent t) { //3 - if (t == null) - return this; - if (this.keywordList == null) - this.keywordList = new ArrayList(); - this.keywordList.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #keywordList}, creating it if it does not already exist {3} - */ - public CitationKeywordListComponent getKeywordListFirstRep() { - if (getKeywordList().isEmpty()) { - addKeywordList(); - } - return getKeywordList().get(0); - } - - /** - * @return {@link #relatedArtifact} (Link or citation to artifact associated with the referenced material.) - */ - public List getRelatedArtifact() { - if (this.relatedArtifact == null) - this.relatedArtifact = new ArrayList(); - return this.relatedArtifact; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public Citation setRelatedArtifact(List theRelatedArtifact) { - this.relatedArtifact = theRelatedArtifact; - return this; - } - - public boolean hasRelatedArtifact() { - if (this.relatedArtifact == null) - return false; - for (RelatedArtifact item : this.relatedArtifact) - if (!item.isEmpty()) - return true; - return false; - } - - public RelatedArtifact addRelatedArtifact() { //3 - RelatedArtifact t = new RelatedArtifact(); - if (this.relatedArtifact == null) - this.relatedArtifact = new ArrayList(); - this.relatedArtifact.add(t); - return t; - } - - public Citation addRelatedArtifact(RelatedArtifact t) { //3 - if (t == null) - return this; - if (this.relatedArtifact == null) - this.relatedArtifact = new ArrayList(); - this.relatedArtifact.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #relatedArtifact}, creating it if it does not already exist {3} - */ - public RelatedArtifact getRelatedArtifactFirstRep() { - if (getRelatedArtifact().isEmpty()) { - addRelatedArtifact(); - } - return getRelatedArtifact().get(0); + return getClassification().get(0); } /** @@ -11158,26 +10574,185 @@ public class Citation extends MetadataResource { } /** - * @return {@link #medlinePubMed} (These elements are items with values assigned by MEDLINE or PubMed management.) + * @return {@link #currentState} (The status of the citation.) */ - public CitationMedlinePubMedComponent getMedlinePubMed() { - if (this.medlinePubMed == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create Citation.medlinePubMed"); - else if (Configuration.doAutoCreate()) - this.medlinePubMed = new CitationMedlinePubMedComponent(); // cc - return this.medlinePubMed; - } - - public boolean hasMedlinePubMed() { - return this.medlinePubMed != null && !this.medlinePubMed.isEmpty(); + public List getCurrentState() { + if (this.currentState == null) + this.currentState = new ArrayList(); + return this.currentState; } /** - * @param value {@link #medlinePubMed} (These elements are items with values assigned by MEDLINE or PubMed management.) + * @return Returns a reference to this for easy method chaining */ - public Citation setMedlinePubMed(CitationMedlinePubMedComponent value) { - this.medlinePubMed = value; + public Citation setCurrentState(List theCurrentState) { + this.currentState = theCurrentState; + return this; + } + + public boolean hasCurrentState() { + if (this.currentState == null) + return false; + for (CodeableConcept item : this.currentState) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addCurrentState() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.currentState == null) + this.currentState = new ArrayList(); + this.currentState.add(t); + return t; + } + + public Citation addCurrentState(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.currentState == null) + this.currentState = new ArrayList(); + this.currentState.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #currentState}, creating it if it does not already exist {3} + */ + public CodeableConcept getCurrentStateFirstRep() { + if (getCurrentState().isEmpty()) { + addCurrentState(); + } + return getCurrentState().get(0); + } + + /** + * @return {@link #statusDate} (An effective date or period for a status of the citation.) + */ + public List getStatusDate() { + if (this.statusDate == null) + this.statusDate = new ArrayList(); + return this.statusDate; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public Citation setStatusDate(List theStatusDate) { + this.statusDate = theStatusDate; + return this; + } + + public boolean hasStatusDate() { + if (this.statusDate == null) + return false; + for (CitationStatusDateComponent item : this.statusDate) + if (!item.isEmpty()) + return true; + return false; + } + + public CitationStatusDateComponent addStatusDate() { //3 + CitationStatusDateComponent t = new CitationStatusDateComponent(); + if (this.statusDate == null) + this.statusDate = new ArrayList(); + this.statusDate.add(t); + return t; + } + + public Citation addStatusDate(CitationStatusDateComponent t) { //3 + if (t == null) + return this; + if (this.statusDate == null) + this.statusDate = new ArrayList(); + this.statusDate.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #statusDate}, creating it if it does not already exist {3} + */ + public CitationStatusDateComponent getStatusDateFirstRep() { + if (getStatusDate().isEmpty()) { + addStatusDate(); + } + return getStatusDate().get(0); + } + + /** + * @return {@link #relatesTo} (Artifact related to the Citation Resource.) + */ + public List getRelatesTo() { + if (this.relatesTo == null) + this.relatesTo = new ArrayList(); + return this.relatesTo; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public Citation setRelatesTo(List theRelatesTo) { + this.relatesTo = theRelatesTo; + return this; + } + + public boolean hasRelatesTo() { + if (this.relatesTo == null) + return false; + for (CitationRelatesToComponent item : this.relatesTo) + if (!item.isEmpty()) + return true; + return false; + } + + public CitationRelatesToComponent addRelatesTo() { //3 + CitationRelatesToComponent t = new CitationRelatesToComponent(); + if (this.relatesTo == null) + this.relatesTo = new ArrayList(); + this.relatesTo.add(t); + return t; + } + + public Citation addRelatesTo(CitationRelatesToComponent t) { //3 + if (t == null) + return this; + if (this.relatesTo == null) + this.relatesTo = new ArrayList(); + this.relatesTo.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #relatesTo}, creating it if it does not already exist {3} + */ + public CitationRelatesToComponent getRelatesToFirstRep() { + if (getRelatesTo().isEmpty()) { + addRelatesTo(); + } + return getRelatesTo().get(0); + } + + /** + * @return {@link #citedArtifact} (The article or artifact being described.) + */ + public CitationCitedArtifactComponent getCitedArtifact() { + if (this.citedArtifact == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Citation.citedArtifact"); + else if (Configuration.doAutoCreate()) + this.citedArtifact = new CitationCitedArtifactComponent(); // cc + return this.citedArtifact; + } + + public boolean hasCitedArtifact() { + return this.citedArtifact != null && !this.citedArtifact.isEmpty(); + } + + /** + * @param value {@link #citedArtifact} (The article or artifact being described.) + */ + public Citation setCitedArtifact(CitationCitedArtifactComponent value) { + this.citedArtifact = value; return this; } @@ -11185,550 +10760,137 @@ public class Citation extends MetadataResource { * not supported on this implementation */ @Override - public int getVersionMax() { + public int getTopicMax() { return 0; } /** - * @return {@link #version} (The identifier that is used to identify this version of the citation when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the citation author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value + * @return {@link #topic} (Descriptive topics related to the content of the library. Topics provide a high-level categorization of the library that can be useful for filtering and searching.) */ - public StringType getVersionElement() { - throw new Error("The resource type \"Citation\" does not implement the property \"version\""); - } - - public boolean hasVersionElement() { - return false; - } - public boolean hasVersion() { - return false; - } - - /** - * @param value {@link #version} (The identifier that is used to identify this version of the citation when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the citation author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value - */ - public Citation setVersionElement(StringType value) { - throw new Error("The resource type \"Citation\" does not implement the property \"version\""); - } - public String getVersion() { - throw new Error("The resource type \"Citation\" does not implement the property \"version\""); - } - /** - * @param value The identifier that is used to identify this version of the citation when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the citation author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. - */ - public Citation setVersion(String value) { - throw new Error("The resource type \"Citation\" does not implement the property \"version\""); - } - /** - * not supported on this implementation - */ - @Override - public int getNameMax() { - return 0; - } - /** - * @return {@link #name} (A natural language name identifying the citation. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value - */ - public StringType getNameElement() { - throw new Error("The resource type \"Citation\" does not implement the property \"name\""); - } - - public boolean hasNameElement() { - return false; - } - public boolean hasName() { - return false; - } - - /** - * @param value {@link #name} (A natural language name identifying the citation. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value - */ - public Citation setNameElement(StringType value) { - throw new Error("The resource type \"Citation\" does not implement the property \"name\""); - } - public String getName() { - throw new Error("The resource type \"Citation\" does not implement the property \"name\""); - } - /** - * @param value A natural language name identifying the citation. This name should be usable as an identifier for the module by machine processing applications such as code generation. - */ - public Citation setName(String value) { - throw new Error("The resource type \"Citation\" does not implement the property \"name\""); - } - /** - * not supported on this implementation - */ - @Override - public int getTitleMax() { - return 0; - } - /** - * @return {@link #title} (A short, descriptive, user-friendly title for the citation.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value - */ - public StringType getTitleElement() { - throw new Error("The resource type \"Citation\" does not implement the property \"title\""); - } - - public boolean hasTitleElement() { - return false; - } - public boolean hasTitle() { - return false; - } - - /** - * @param value {@link #title} (A short, descriptive, user-friendly title for the citation.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value - */ - public Citation setTitleElement(StringType value) { - throw new Error("The resource type \"Citation\" does not implement the property \"title\""); - } - public String getTitle() { - throw new Error("The resource type \"Citation\" does not implement the property \"title\""); - } - /** - * @param value A short, descriptive, user-friendly title for the citation. - */ - public Citation setTitle(String value) { - throw new Error("The resource type \"Citation\" does not implement the property \"title\""); - } - /** - * not supported on this implementation - */ - @Override - public int getExperimentalMax() { - return 0; - } - /** - * @return {@link #experimental} (A Boolean value to indicate that this citation is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value - */ - public BooleanType getExperimentalElement() { - throw new Error("The resource type \"Citation\" does not implement the property \"experimental\""); - } - - public boolean hasExperimentalElement() { - return false; - } - public boolean hasExperimental() { - return false; - } - - /** - * @param value {@link #experimental} (A Boolean value to indicate that this citation is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value - */ - public Citation setExperimentalElement(BooleanType value) { - throw new Error("The resource type \"Citation\" does not implement the property \"experimental\""); - } - public boolean getExperimental() { - throw new Error("The resource type \"Citation\" does not implement the property \"experimental\""); - } - /** - * @param value A Boolean value to indicate that this citation is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage. - */ - public Citation setExperimental(boolean value) { - throw new Error("The resource type \"Citation\" does not implement the property \"experimental\""); - } - /** - * not supported on this implementation - */ - @Override - public int getDateMax() { - return 0; - } - /** - * @return {@link #date} (The date (and optionally time) when the citation was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the citation changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value - */ - public DateTimeType getDateElement() { - throw new Error("The resource type \"Citation\" does not implement the property \"date\""); - } - - public boolean hasDateElement() { - return false; - } - public boolean hasDate() { - return false; - } - - /** - * @param value {@link #date} (The date (and optionally time) when the citation was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the citation changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value - */ - public Citation setDateElement(DateTimeType value) { - throw new Error("The resource type \"Citation\" does not implement the property \"date\""); - } - public Date getDate() { - throw new Error("The resource type \"Citation\" does not implement the property \"date\""); - } - /** - * @param value The date (and optionally time) when the citation was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the citation changes. - */ - public Citation setDate(Date value) { - throw new Error("The resource type \"Citation\" does not implement the property \"date\""); - } - /** - * not supported on this implementation - */ - @Override - public int getPublisherMax() { - return 0; - } - /** - * @return {@link #publisher} (The name of the organization or individual that published the citation.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value - */ - public StringType getPublisherElement() { - throw new Error("The resource type \"Citation\" does not implement the property \"publisher\""); - } - - public boolean hasPublisherElement() { - return false; - } - public boolean hasPublisher() { - return false; - } - - /** - * @param value {@link #publisher} (The name of the organization or individual that published the citation.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value - */ - public Citation setPublisherElement(StringType value) { - throw new Error("The resource type \"Citation\" does not implement the property \"publisher\""); - } - public String getPublisher() { - throw new Error("The resource type \"Citation\" does not implement the property \"publisher\""); - } - /** - * @param value The name of the organization or individual that published the citation. - */ - public Citation setPublisher(String value) { - throw new Error("The resource type \"Citation\" does not implement the property \"publisher\""); - } - /** - * not supported on this implementation - */ - @Override - public int getContactMax() { - return 0; - } - /** - * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.) - */ - public List getContact() { + public List getTopic() { return new ArrayList<>(); } /** * @return Returns a reference to this for easy method chaining */ - public Citation setContact(List theContact) { - throw new Error("The resource type \"Citation\" does not implement the property \"contact\""); + public Citation setTopic(List theTopic) { + throw new Error("The resource type \"Citation\" does not implement the property \"topic\""); } - public boolean hasContact() { + public boolean hasTopic() { return false; } - public ContactDetail addContact() { //3 - throw new Error("The resource type \"Citation\" does not implement the property \"contact\""); + public CodeableConcept addTopic() { //3 + throw new Error("The resource type \"Citation\" does not implement the property \"topic\""); } - public Citation addContact(ContactDetail t) { //3 - throw new Error("The resource type \"Citation\" does not implement the property \"contact\""); + public Citation addTopic(CodeableConcept t) { //3 + throw new Error("The resource type \"Citation\" does not implement the property \"topic\""); } /** - * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist {2} + * @return The first repetition of repeating field {@link #topic}, creating it if it does not already exist {2} */ - public ContactDetail getContactFirstRep() { - throw new Error("The resource type \"Citation\" does not implement the property \"contact\""); + public CodeableConcept getTopicFirstRep() { + throw new Error("The resource type \"Citation\" does not implement the property \"topic\""); } /** * not supported on this implementation */ @Override - public int getDescriptionMax() { + public int getRelatedArtifactMax() { return 0; } /** - * @return {@link #description} (A free text natural language description of the citation from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + * @return {@link #relatedArtifact} (Related artifacts such as additional documentation, justification, dependencies, bibliographic references, and predecessor and successor artifacts.) */ - public MarkdownType getDescriptionElement() { - throw new Error("The resource type \"Citation\" does not implement the property \"description\""); - } - - public boolean hasDescriptionElement() { - return false; - } - public boolean hasDescription() { - return false; - } - - /** - * @param value {@link #description} (A free text natural language description of the citation from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value - */ - public Citation setDescriptionElement(MarkdownType value) { - throw new Error("The resource type \"Citation\" does not implement the property \"description\""); - } - public String getDescription() { - throw new Error("The resource type \"Citation\" does not implement the property \"description\""); - } - /** - * @param value A free text natural language description of the citation from a consumer's perspective. - */ - public Citation setDescription(String value) { - throw new Error("The resource type \"Citation\" does not implement the property \"description\""); - } - /** - * not supported on this implementation - */ - @Override - public int getJurisdictionMax() { - return 0; - } - /** - * @return {@link #jurisdiction} (A legal or geographic region in which the citation is intended to be used.) - */ - public List getJurisdiction() { + public List getRelatedArtifact() { return new ArrayList<>(); } /** * @return Returns a reference to this for easy method chaining */ - public Citation setJurisdiction(List theJurisdiction) { - throw new Error("The resource type \"Citation\" does not implement the property \"jurisdiction\""); + public Citation setRelatedArtifact(List theRelatedArtifact) { + throw new Error("The resource type \"Citation\" does not implement the property \"relatedArtifact\""); } - public boolean hasJurisdiction() { + public boolean hasRelatedArtifact() { return false; } - public CodeableConcept addJurisdiction() { //3 - throw new Error("The resource type \"Citation\" does not implement the property \"jurisdiction\""); + public RelatedArtifact addRelatedArtifact() { //3 + throw new Error("The resource type \"Citation\" does not implement the property \"relatedArtifact\""); } - public Citation addJurisdiction(CodeableConcept t) { //3 - throw new Error("The resource type \"Citation\" does not implement the property \"jurisdiction\""); + public Citation addRelatedArtifact(RelatedArtifact t) { //3 + throw new Error("The resource type \"Citation\" does not implement the property \"relatedArtifact\""); } /** - * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist {2} + * @return The first repetition of repeating field {@link #relatedArtifact}, creating it if it does not already exist {2} */ - public CodeableConcept getJurisdictionFirstRep() { - throw new Error("The resource type \"Citation\" does not implement the property \"jurisdiction\""); + public RelatedArtifact getRelatedArtifactFirstRep() { + throw new Error("The resource type \"Citation\" does not implement the property \"relatedArtifact\""); } - /** - * not supported on this implementation - */ - @Override - public int getPurposeMax() { - return 0; - } - /** - * @return {@link #purpose} (Explanation of why this citation is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value - */ - public MarkdownType getPurposeElement() { - throw new Error("The resource type \"Citation\" does not implement the property \"purpose\""); - } - - public boolean hasPurposeElement() { - return false; - } - public boolean hasPurpose() { - return false; - } - - /** - * @param value {@link #purpose} (Explanation of why this citation is needed and why it has been designed as it has.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value - */ - public Citation setPurposeElement(MarkdownType value) { - throw new Error("The resource type \"Citation\" does not implement the property \"purpose\""); - } - public String getPurpose() { - throw new Error("The resource type \"Citation\" does not implement the property \"purpose\""); - } - /** - * @param value Explanation of why this citation is needed and why it has been designed as it has. - */ - public Citation setPurpose(String value) { - throw new Error("The resource type \"Citation\" does not implement the property \"purpose\""); - } - /** - * not supported on this implementation - */ - @Override - public int getCopyrightMax() { - return 0; - } - /** - * @return {@link #copyright} (A copyright statement relating to the citation and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the citation.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value - */ - public MarkdownType getCopyrightElement() { - throw new Error("The resource type \"Citation\" does not implement the property \"copyright\""); - } - - public boolean hasCopyrightElement() { - return false; - } - public boolean hasCopyright() { - return false; - } - - /** - * @param value {@link #copyright} (A copyright statement relating to the citation and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the citation.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value - */ - public Citation setCopyrightElement(MarkdownType value) { - throw new Error("The resource type \"Citation\" does not implement the property \"copyright\""); - } - public String getCopyright() { - throw new Error("The resource type \"Citation\" does not implement the property \"copyright\""); - } - /** - * @param value A copyright statement relating to the citation and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the citation. - */ - public Citation setCopyright(String value) { - throw new Error("The resource type \"Citation\" does not implement the property \"copyright\""); - } - /** - * not supported on this implementation - */ - @Override - public int getApprovalDateMax() { - return 0; - } - /** - * @return {@link #approvalDate} (The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.). This is the underlying object with id, value and extensions. The accessor "getApprovalDate" gives direct access to the value - */ - public DateType getApprovalDateElement() { - throw new Error("The resource type \"Citation\" does not implement the property \"approvalDate\""); - } - - public boolean hasApprovalDateElement() { - return false; - } - public boolean hasApprovalDate() { - return false; - } - - /** - * @param value {@link #approvalDate} (The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.). This is the underlying object with id, value and extensions. The accessor "getApprovalDate" gives direct access to the value - */ - public Citation setApprovalDateElement(DateType value) { - throw new Error("The resource type \"Citation\" does not implement the property \"approvalDate\""); - } - public Date getApprovalDate() { - throw new Error("The resource type \"Citation\" does not implement the property \"approvalDate\""); - } - /** - * @param value The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. - */ - public Citation setApprovalDate(Date value) { - throw new Error("The resource type \"Citation\" does not implement the property \"approvalDate\""); - } - /** - * not supported on this implementation - */ - @Override - public int getLastReviewDateMax() { - return 0; - } - /** - * @return {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value - */ - public DateType getLastReviewDateElement() { - throw new Error("The resource type \"Citation\" does not implement the property \"lastReviewDate\""); - } - - public boolean hasLastReviewDateElement() { - return false; - } - public boolean hasLastReviewDate() { - return false; - } - - /** - * @param value {@link #lastReviewDate} (The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.). This is the underlying object with id, value and extensions. The accessor "getLastReviewDate" gives direct access to the value - */ - public Citation setLastReviewDateElement(DateType value) { - throw new Error("The resource type \"Citation\" does not implement the property \"lastReviewDate\""); - } - public Date getLastReviewDate() { - throw new Error("The resource type \"Citation\" does not implement the property \"lastReviewDate\""); - } - /** - * @param value The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date. - */ - public Citation setLastReviewDate(Date value) { - throw new Error("The resource type \"Citation\" does not implement the property \"lastReviewDate\""); - } - /** - * not supported on this implementation - */ - @Override - public int getEffectivePeriodMax() { - return 0; - } - /** - * @return {@link #effectivePeriod} (The period during which the citation content was or is planned to be in active use.) - */ - public Period getEffectivePeriod() { - throw new Error("The resource type \"Citation\" does not implement the property \"effectivePeriod\""); - } - public boolean hasEffectivePeriod() { - return false; - } - /** - * @param value {@link #effectivePeriod} (The period during which the citation content was or is planned to be in active use.) - */ - public Citation setEffectivePeriod(Period value) { - throw new Error("The resource type \"Citation\" does not implement the property \"effectivePeriod\""); - } - protected void listChildren(List children) { super.listChildren(children); children.add(new Property("url", "uri", "An absolute URI that is used to identify this citation when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this summary is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the summary is stored on different servers.", 0, 1, url)); - children.add(new Property("status", "code", "The status of this summary. Enables tracking the life-cycle of the content.", 0, 1, status)); - children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate citation instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this citation when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier)); - children.add(new Property("relatedIdentifier", "Identifier", "A formal identifier that is used to identify things closely related to this citation.", 0, java.lang.Integer.MAX_VALUE, relatedIdentifier)); - children.add(new Property("summary", "", "A human-readable display of the citation.", 0, java.lang.Integer.MAX_VALUE, summary)); - children.add(new Property("dateCited", "dateTime", "Date Cited.", 0, 1, dateCited)); - children.add(new Property("variantCitation", "", "Variant citation.", 0, 1, variantCitation)); - children.add(new Property("publishingModel", "CodeableConcept", "Identify the medium/media in which the cited article is published, eg print, electronic or print-electronic.", 0, 1, publishingModel)); - children.add(new Property("journal", "", "Contains identifiers and classifiers for the journal cited.", 0, 1, journal)); - children.add(new Property("publicationInfo", "", "Citation detail for sources other than journals such as books and databases.", 0, 1, publicationInfo)); - children.add(new Property("articleTitle", "markdown", "Full title of the article.", 0, 1, articleTitle)); - children.add(new Property("alternativeTitle", "", "Used for variant titles, such as translations.", 0, java.lang.Integer.MAX_VALUE, alternativeTitle)); - children.add(new Property("pagination", "", "Indicates the inclusive pages for the article cited.", 0, 1, pagination)); - children.add(new Property("articleUrl", "", "Used for any URL for the article cited.", 0, java.lang.Integer.MAX_VALUE, articleUrl)); - children.add(new Property("abstract", "markdown", "Abstract text, as published; may include structured labels.", 0, 1, abstract_)); - children.add(new Property("abstractCopyright", "markdown", "Copyright information for the abstract text.", 0, 1, abstractCopyright)); - children.add(new Property("alternativeAbstract", "", "Used for variant abstracts, such as translations.", 0, java.lang.Integer.MAX_VALUE, alternativeAbstract)); - children.add(new Property("contributorship", "", "This element is used to list authors and other contributors, their contact information, specific contributions, and summary statements.", 0, 1, contributorship)); - children.add(new Property("articleLanguage", "CodeableConcept", "The language in which the article is published.", 0, 1, articleLanguage)); - children.add(new Property("alternativeForm", "", "Used to represent alternative forms of the article that are not separate citations.", 0, java.lang.Integer.MAX_VALUE, alternativeForm)); - children.add(new Property("classifier", "CodeableConcept", "Used for many classifiers including PublicationType, CitationSubset, MeshHeading, Chemical.", 0, java.lang.Integer.MAX_VALUE, classifier)); - children.add(new Property("keywordList", "", "A list of words classified as keywords for specific use in search functions.", 0, java.lang.Integer.MAX_VALUE, keywordList)); - children.add(new Property("relatedArtifact", "RelatedArtifact", "Link or citation to artifact associated with the referenced material.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact)); + children.add(new Property("version", "string", "The identifier that is used to identify this version of the citation when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the citation author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version)); + children.add(new Property("name", "string", "A natural language name identifying the citation. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); + children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the citation.", 0, 1, title)); + children.add(new Property("status", "code", "The status of this summary. Enables tracking the life-cycle of the content.", 0, 1, status)); + children.add(new Property("experimental", "boolean", "A Boolean value to indicate that this citation is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental)); + children.add(new Property("date", "dateTime", "The date (and optionally time) when the citation was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the citation changes.", 0, 1, date)); + children.add(new Property("publisher", "string", "The name of the organization or individual that published the citation.", 0, 1, publisher)); + children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact)); + children.add(new Property("description", "markdown", "A free text natural language description of the citation from a consumer's perspective.", 0, 1, description)); + children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate citation instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); + children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the citation is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction)); + children.add(new Property("purpose", "markdown", "Explanation of why this citation is needed and why it has been designed as it has.", 0, 1, purpose)); + children.add(new Property("copyright", "markdown", "Use and/or publishing restrictions for the Citation, not for the cited artifact.", 0, 1, copyright)); + children.add(new Property("approvalDate", "date", "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate)); + children.add(new Property("lastReviewDate", "date", "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.", 0, 1, lastReviewDate)); + children.add(new Property("effectivePeriod", "Period", "The period during which the citation content was or is planned to be in active use.", 0, 1, effectivePeriod)); + children.add(new Property("author", "ContactDetail", "Who authored the Citation.", 0, java.lang.Integer.MAX_VALUE, author)); + children.add(new Property("editor", "ContactDetail", "Who edited the Citation.", 0, java.lang.Integer.MAX_VALUE, editor)); + children.add(new Property("reviewer", "ContactDetail", "Who reviewed the Citation.", 0, java.lang.Integer.MAX_VALUE, reviewer)); + children.add(new Property("endorser", "ContactDetail", "Who endorsed the Citation.", 0, java.lang.Integer.MAX_VALUE, endorser)); + children.add(new Property("summary", "ContactDetail", "A human-readable display of the citation.", 0, java.lang.Integer.MAX_VALUE, summary)); + children.add(new Property("classification", "", "The assignment to an organizing scheme.", 0, java.lang.Integer.MAX_VALUE, classification)); children.add(new Property("note", "Annotation", "Used for general notes and annotations not coded elsewhere.", 0, java.lang.Integer.MAX_VALUE, note)); - children.add(new Property("medlinePubMed", "", "These elements are items with values assigned by MEDLINE or PubMed management.", 0, 1, medlinePubMed)); + children.add(new Property("currentState", "CodeableConcept", "The status of the citation.", 0, java.lang.Integer.MAX_VALUE, currentState)); + children.add(new Property("statusDate", "", "An effective date or period for a status of the citation.", 0, java.lang.Integer.MAX_VALUE, statusDate)); + children.add(new Property("relatesTo", "", "Artifact related to the Citation Resource.", 0, java.lang.Integer.MAX_VALUE, relatesTo)); + children.add(new Property("citedArtifact", "", "The article or artifact being described.", 0, 1, citedArtifact)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this citation when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this summary is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the summary is stored on different servers.", 0, 1, url); - case -892481550: /*status*/ return new Property("status", "code", "The status of this summary. Enables tracking the life-cycle of the content.", 0, 1, status); - case -669707736: /*useContext*/ return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate citation instances.", 0, java.lang.Integer.MAX_VALUE, useContext); case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this citation when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier); - case -1007604940: /*relatedIdentifier*/ return new Property("relatedIdentifier", "Identifier", "A formal identifier that is used to identify things closely related to this citation.", 0, java.lang.Integer.MAX_VALUE, relatedIdentifier); - case -1857640538: /*summary*/ return new Property("summary", "", "A human-readable display of the citation.", 0, java.lang.Integer.MAX_VALUE, summary); - case -275034401: /*dateCited*/ return new Property("dateCited", "dateTime", "Date Cited.", 0, 1, dateCited); - case -1653134708: /*variantCitation*/ return new Property("variantCitation", "", "Variant citation.", 0, 1, variantCitation); - case 747318902: /*publishingModel*/ return new Property("publishingModel", "CodeableConcept", "Identify the medium/media in which the cited article is published, eg print, electronic or print-electronic.", 0, 1, publishingModel); - case -1419464905: /*journal*/ return new Property("journal", "", "Contains identifiers and classifiers for the journal cited.", 0, 1, journal); - case 1470727418: /*publicationInfo*/ return new Property("publicationInfo", "", "Citation detail for sources other than journals such as books and databases.", 0, 1, publicationInfo); - case -404746494: /*articleTitle*/ return new Property("articleTitle", "markdown", "Full title of the article.", 0, 1, articleTitle); - case -1478308181: /*alternativeTitle*/ return new Property("alternativeTitle", "", "Used for variant titles, such as translations.", 0, java.lang.Integer.MAX_VALUE, alternativeTitle); - case 1297692570: /*pagination*/ return new Property("pagination", "", "Indicates the inclusive pages for the article cited.", 0, 1, pagination); - case 164943001: /*articleUrl*/ return new Property("articleUrl", "", "Used for any URL for the article cited.", 0, java.lang.Integer.MAX_VALUE, articleUrl); - case 1732898850: /*abstract*/ return new Property("abstract", "markdown", "Abstract text, as published; may include structured labels.", 0, 1, abstract_); - case -656627259: /*abstractCopyright*/ return new Property("abstractCopyright", "markdown", "Copyright information for the abstract text.", 0, 1, abstractCopyright); - case -376340753: /*alternativeAbstract*/ return new Property("alternativeAbstract", "", "Used for variant abstracts, such as translations.", 0, java.lang.Integer.MAX_VALUE, alternativeAbstract); - case 538727831: /*contributorship*/ return new Property("contributorship", "", "This element is used to list authors and other contributors, their contact information, specific contributions, and summary statements.", 0, 1, contributorship); - case -1573097874: /*articleLanguage*/ return new Property("articleLanguage", "CodeableConcept", "The language in which the article is published.", 0, 1, articleLanguage); - case 2030111249: /*alternativeForm*/ return new Property("alternativeForm", "", "Used to represent alternative forms of the article that are not separate citations.", 0, java.lang.Integer.MAX_VALUE, alternativeForm); - case -281470431: /*classifier*/ return new Property("classifier", "CodeableConcept", "Used for many classifiers including PublicationType, CitationSubset, MeshHeading, Chemical.", 0, java.lang.Integer.MAX_VALUE, classifier); - case -1298782681: /*keywordList*/ return new Property("keywordList", "", "A list of words classified as keywords for specific use in search functions.", 0, java.lang.Integer.MAX_VALUE, keywordList); - case 666807069: /*relatedArtifact*/ return new Property("relatedArtifact", "RelatedArtifact", "Link or citation to artifact associated with the referenced material.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact); + case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the citation when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the citation author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version); + case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the citation. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); + case 110371416: /*title*/ return new Property("title", "string", "A short, descriptive, user-friendly title for the citation.", 0, 1, title); + case -892481550: /*status*/ return new Property("status", "code", "The status of this summary. Enables tracking the life-cycle of the content.", 0, 1, status); + case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A Boolean value to indicate that this citation is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental); + case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the citation was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the citation changes.", 0, 1, date); + case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the organization or individual that published the citation.", 0, 1, publisher); + case 951526432: /*contact*/ return new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact); + case -1724546052: /*description*/ return new Property("description", "markdown", "A free text natural language description of the citation from a consumer's perspective.", 0, 1, description); + case -669707736: /*useContext*/ return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate citation instances.", 0, java.lang.Integer.MAX_VALUE, useContext); + case -507075711: /*jurisdiction*/ return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the citation is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction); + case -220463842: /*purpose*/ return new Property("purpose", "markdown", "Explanation of why this citation is needed and why it has been designed as it has.", 0, 1, purpose); + case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "Use and/or publishing restrictions for the Citation, not for the cited artifact.", 0, 1, copyright); + case 223539345: /*approvalDate*/ return new Property("approvalDate", "date", "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate); + case -1687512484: /*lastReviewDate*/ return new Property("lastReviewDate", "date", "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.", 0, 1, lastReviewDate); + case -403934648: /*effectivePeriod*/ return new Property("effectivePeriod", "Period", "The period during which the citation content was or is planned to be in active use.", 0, 1, effectivePeriod); + case -1406328437: /*author*/ return new Property("author", "ContactDetail", "Who authored the Citation.", 0, java.lang.Integer.MAX_VALUE, author); + case -1307827859: /*editor*/ return new Property("editor", "ContactDetail", "Who edited the Citation.", 0, java.lang.Integer.MAX_VALUE, editor); + case -261190139: /*reviewer*/ return new Property("reviewer", "ContactDetail", "Who reviewed the Citation.", 0, java.lang.Integer.MAX_VALUE, reviewer); + case 1740277666: /*endorser*/ return new Property("endorser", "ContactDetail", "Who endorsed the Citation.", 0, java.lang.Integer.MAX_VALUE, endorser); + case -1857640538: /*summary*/ return new Property("summary", "ContactDetail", "A human-readable display of the citation.", 0, java.lang.Integer.MAX_VALUE, summary); + case 382350310: /*classification*/ return new Property("classification", "", "The assignment to an organizing scheme.", 0, java.lang.Integer.MAX_VALUE, classification); case 3387378: /*note*/ return new Property("note", "Annotation", "Used for general notes and annotations not coded elsewhere.", 0, java.lang.Integer.MAX_VALUE, note); - case -1342445201: /*medlinePubMed*/ return new Property("medlinePubMed", "", "These elements are items with values assigned by MEDLINE or PubMed management.", 0, 1, medlinePubMed); + case 1457822360: /*currentState*/ return new Property("currentState", "CodeableConcept", "The status of the citation.", 0, java.lang.Integer.MAX_VALUE, currentState); + case 247524032: /*statusDate*/ return new Property("statusDate", "", "An effective date or period for a status of the citation.", 0, java.lang.Integer.MAX_VALUE, statusDate); + case -7765931: /*relatesTo*/ return new Property("relatesTo", "", "Artifact related to the Citation Resource.", 0, java.lang.Integer.MAX_VALUE, relatesTo); + case -495272225: /*citedArtifact*/ return new Property("citedArtifact", "", "The article or artifact being described.", 0, 1, citedArtifact); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -11738,31 +10900,34 @@ public class Citation extends MetadataResource { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType - case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration - case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier - case -1007604940: /*relatedIdentifier*/ return this.relatedIdentifier == null ? new Base[0] : this.relatedIdentifier.toArray(new Base[this.relatedIdentifier.size()]); // Identifier - case -1857640538: /*summary*/ return this.summary == null ? new Base[0] : this.summary.toArray(new Base[this.summary.size()]); // CitationSummaryComponent - case -275034401: /*dateCited*/ return this.dateCited == null ? new Base[0] : new Base[] {this.dateCited}; // DateTimeType - case -1653134708: /*variantCitation*/ return this.variantCitation == null ? new Base[0] : new Base[] {this.variantCitation}; // CitationVariantCitationComponent - case 747318902: /*publishingModel*/ return this.publishingModel == null ? new Base[0] : new Base[] {this.publishingModel}; // CodeableConcept - case -1419464905: /*journal*/ return this.journal == null ? new Base[0] : new Base[] {this.journal}; // CitationJournalComponent - case 1470727418: /*publicationInfo*/ return this.publicationInfo == null ? new Base[0] : new Base[] {this.publicationInfo}; // CitationPublicationInfoComponent - case -404746494: /*articleTitle*/ return this.articleTitle == null ? new Base[0] : new Base[] {this.articleTitle}; // MarkdownType - case -1478308181: /*alternativeTitle*/ return this.alternativeTitle == null ? new Base[0] : this.alternativeTitle.toArray(new Base[this.alternativeTitle.size()]); // CitationAlternativeTitleComponent - case 1297692570: /*pagination*/ return this.pagination == null ? new Base[0] : new Base[] {this.pagination}; // CitationPaginationComponent - case 164943001: /*articleUrl*/ return this.articleUrl == null ? new Base[0] : this.articleUrl.toArray(new Base[this.articleUrl.size()]); // CitationArticleUrlComponent - case 1732898850: /*abstract*/ return this.abstract_ == null ? new Base[0] : new Base[] {this.abstract_}; // MarkdownType - case -656627259: /*abstractCopyright*/ return this.abstractCopyright == null ? new Base[0] : new Base[] {this.abstractCopyright}; // MarkdownType - case -376340753: /*alternativeAbstract*/ return this.alternativeAbstract == null ? new Base[0] : this.alternativeAbstract.toArray(new Base[this.alternativeAbstract.size()]); // CitationAlternativeAbstractComponent - case 538727831: /*contributorship*/ return this.contributorship == null ? new Base[0] : new Base[] {this.contributorship}; // CitationContributorshipComponent - case -1573097874: /*articleLanguage*/ return this.articleLanguage == null ? new Base[0] : new Base[] {this.articleLanguage}; // CodeableConcept - case 2030111249: /*alternativeForm*/ return this.alternativeForm == null ? new Base[0] : this.alternativeForm.toArray(new Base[this.alternativeForm.size()]); // CitationAlternativeFormComponent - case -281470431: /*classifier*/ return this.classifier == null ? new Base[0] : this.classifier.toArray(new Base[this.classifier.size()]); // CodeableConcept - case -1298782681: /*keywordList*/ return this.keywordList == null ? new Base[0] : this.keywordList.toArray(new Base[this.keywordList.size()]); // CitationKeywordListComponent - case 666807069: /*relatedArtifact*/ return this.relatedArtifact == null ? new Base[0] : this.relatedArtifact.toArray(new Base[this.relatedArtifact.size()]); // RelatedArtifact + case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType + case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType + case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType + case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration + case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType + case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType + case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType + case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail + case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType + case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext + case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept + case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : new Base[] {this.purpose}; // MarkdownType + case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType + case 223539345: /*approvalDate*/ return this.approvalDate == null ? new Base[0] : new Base[] {this.approvalDate}; // DateType + case -1687512484: /*lastReviewDate*/ return this.lastReviewDate == null ? new Base[0] : new Base[] {this.lastReviewDate}; // DateType + case -403934648: /*effectivePeriod*/ return this.effectivePeriod == null ? new Base[0] : new Base[] {this.effectivePeriod}; // Period + case -1406328437: /*author*/ return this.author == null ? new Base[0] : this.author.toArray(new Base[this.author.size()]); // ContactDetail + case -1307827859: /*editor*/ return this.editor == null ? new Base[0] : this.editor.toArray(new Base[this.editor.size()]); // ContactDetail + case -261190139: /*reviewer*/ return this.reviewer == null ? new Base[0] : this.reviewer.toArray(new Base[this.reviewer.size()]); // ContactDetail + case 1740277666: /*endorser*/ return this.endorser == null ? new Base[0] : this.endorser.toArray(new Base[this.endorser.size()]); // ContactDetail + case -1857640538: /*summary*/ return this.summary == null ? new Base[0] : this.summary.toArray(new Base[this.summary.size()]); // ContactDetail + case 382350310: /*classification*/ return this.classification == null ? new Base[0] : this.classification.toArray(new Base[this.classification.size()]); // CitationClassificationComponent case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation - case -1342445201: /*medlinePubMed*/ return this.medlinePubMed == null ? new Base[0] : new Base[] {this.medlinePubMed}; // CitationMedlinePubMedComponent + case 1457822360: /*currentState*/ return this.currentState == null ? new Base[0] : this.currentState.toArray(new Base[this.currentState.size()]); // CodeableConcept + case 247524032: /*statusDate*/ return this.statusDate == null ? new Base[0] : this.statusDate.toArray(new Base[this.statusDate.size()]); // CitationStatusDateComponent + case -7765931: /*relatesTo*/ return this.relatesTo == null ? new Base[0] : this.relatesTo.toArray(new Base[this.relatesTo.size()]); // CitationRelatesToComponent + case -495272225: /*citedArtifact*/ return this.citedArtifact == null ? new Base[0] : new Base[] {this.citedArtifact}; // CitationCitedArtifactComponent default: return super.getProperty(hash, name, checkValid); } @@ -11774,81 +10939,90 @@ public class Citation extends MetadataResource { case 116079: // url this.url = TypeConvertor.castToUri(value); // UriType return value; + case -1618432855: // identifier + this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier + return value; + case 351608024: // version + this.version = TypeConvertor.castToString(value); // StringType + return value; + case 3373707: // name + this.name = TypeConvertor.castToString(value); // StringType + return value; + case 110371416: // title + this.title = TypeConvertor.castToString(value); // StringType + return value; case -892481550: // status value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); this.status = (Enumeration) value; // Enumeration return value; + case -404562712: // experimental + this.experimental = TypeConvertor.castToBoolean(value); // BooleanType + return value; + case 3076014: // date + this.date = TypeConvertor.castToDateTime(value); // DateTimeType + return value; + case 1447404028: // publisher + this.publisher = TypeConvertor.castToString(value); // StringType + return value; + case 951526432: // contact + this.getContact().add(TypeConvertor.castToContactDetail(value)); // ContactDetail + return value; + case -1724546052: // description + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; case -669707736: // useContext this.getUseContext().add(TypeConvertor.castToUsageContext(value)); // UsageContext return value; - case -1618432855: // identifier - this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier + case -507075711: // jurisdiction + this.getJurisdiction().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept return value; - case -1007604940: // relatedIdentifier - this.getRelatedIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier + case -220463842: // purpose + this.purpose = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + case 1522889671: // copyright + this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + case 223539345: // approvalDate + this.approvalDate = TypeConvertor.castToDate(value); // DateType + return value; + case -1687512484: // lastReviewDate + this.lastReviewDate = TypeConvertor.castToDate(value); // DateType + return value; + case -403934648: // effectivePeriod + this.effectivePeriod = TypeConvertor.castToPeriod(value); // Period + return value; + case -1406328437: // author + this.getAuthor().add(TypeConvertor.castToContactDetail(value)); // ContactDetail + return value; + case -1307827859: // editor + this.getEditor().add(TypeConvertor.castToContactDetail(value)); // ContactDetail + return value; + case -261190139: // reviewer + this.getReviewer().add(TypeConvertor.castToContactDetail(value)); // ContactDetail + return value; + case 1740277666: // endorser + this.getEndorser().add(TypeConvertor.castToContactDetail(value)); // ContactDetail return value; case -1857640538: // summary - this.getSummary().add((CitationSummaryComponent) value); // CitationSummaryComponent + this.getSummary().add(TypeConvertor.castToContactDetail(value)); // ContactDetail return value; - case -275034401: // dateCited - this.dateCited = TypeConvertor.castToDateTime(value); // DateTimeType - return value; - case -1653134708: // variantCitation - this.variantCitation = (CitationVariantCitationComponent) value; // CitationVariantCitationComponent - return value; - case 747318902: // publishingModel - this.publishingModel = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; - case -1419464905: // journal - this.journal = (CitationJournalComponent) value; // CitationJournalComponent - return value; - case 1470727418: // publicationInfo - this.publicationInfo = (CitationPublicationInfoComponent) value; // CitationPublicationInfoComponent - return value; - case -404746494: // articleTitle - this.articleTitle = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - case -1478308181: // alternativeTitle - this.getAlternativeTitle().add((CitationAlternativeTitleComponent) value); // CitationAlternativeTitleComponent - return value; - case 1297692570: // pagination - this.pagination = (CitationPaginationComponent) value; // CitationPaginationComponent - return value; - case 164943001: // articleUrl - this.getArticleUrl().add((CitationArticleUrlComponent) value); // CitationArticleUrlComponent - return value; - case 1732898850: // abstract - this.abstract_ = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - case -656627259: // abstractCopyright - this.abstractCopyright = TypeConvertor.castToMarkdown(value); // MarkdownType - return value; - case -376340753: // alternativeAbstract - this.getAlternativeAbstract().add((CitationAlternativeAbstractComponent) value); // CitationAlternativeAbstractComponent - return value; - case 538727831: // contributorship - this.contributorship = (CitationContributorshipComponent) value; // CitationContributorshipComponent - return value; - case -1573097874: // articleLanguage - this.articleLanguage = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; - case 2030111249: // alternativeForm - this.getAlternativeForm().add((CitationAlternativeFormComponent) value); // CitationAlternativeFormComponent - return value; - case -281470431: // classifier - this.getClassifier().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept - return value; - case -1298782681: // keywordList - this.getKeywordList().add((CitationKeywordListComponent) value); // CitationKeywordListComponent - return value; - case 666807069: // relatedArtifact - this.getRelatedArtifact().add(TypeConvertor.castToRelatedArtifact(value)); // RelatedArtifact + case 382350310: // classification + this.getClassification().add((CitationClassificationComponent) value); // CitationClassificationComponent return value; case 3387378: // note this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation return value; - case -1342445201: // medlinePubMed - this.medlinePubMed = (CitationMedlinePubMedComponent) value; // CitationMedlinePubMedComponent + case 1457822360: // currentState + this.getCurrentState().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + case 247524032: // statusDate + this.getStatusDate().add((CitationStatusDateComponent) value); // CitationStatusDateComponent + return value; + case -7765931: // relatesTo + this.getRelatesTo().add((CitationRelatesToComponent) value); // CitationRelatesToComponent + return value; + case -495272225: // citedArtifact + this.citedArtifact = (CitationCitedArtifactComponent) value; // CitationCitedArtifactComponent return value; default: return super.setProperty(hash, name, value); } @@ -11859,57 +11033,63 @@ public class Citation extends MetadataResource { public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("url")) { this.url = TypeConvertor.castToUri(value); // UriType + } else if (name.equals("identifier")) { + this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); + } else if (name.equals("version")) { + this.version = TypeConvertor.castToString(value); // StringType + } else if (name.equals("name")) { + this.name = TypeConvertor.castToString(value); // StringType + } else if (name.equals("title")) { + this.title = TypeConvertor.castToString(value); // StringType } else if (name.equals("status")) { value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); this.status = (Enumeration) value; // Enumeration + } else if (name.equals("experimental")) { + this.experimental = TypeConvertor.castToBoolean(value); // BooleanType + } else if (name.equals("date")) { + this.date = TypeConvertor.castToDateTime(value); // DateTimeType + } else if (name.equals("publisher")) { + this.publisher = TypeConvertor.castToString(value); // StringType + } else if (name.equals("contact")) { + this.getContact().add(TypeConvertor.castToContactDetail(value)); + } else if (name.equals("description")) { + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType } else if (name.equals("useContext")) { this.getUseContext().add(TypeConvertor.castToUsageContext(value)); - } else if (name.equals("identifier")) { - this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); - } else if (name.equals("relatedIdentifier")) { - this.getRelatedIdentifier().add(TypeConvertor.castToIdentifier(value)); + } else if (name.equals("jurisdiction")) { + this.getJurisdiction().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("purpose")) { + this.purpose = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("copyright")) { + this.copyright = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("approvalDate")) { + this.approvalDate = TypeConvertor.castToDate(value); // DateType + } else if (name.equals("lastReviewDate")) { + this.lastReviewDate = TypeConvertor.castToDate(value); // DateType + } else if (name.equals("effectivePeriod")) { + this.effectivePeriod = TypeConvertor.castToPeriod(value); // Period + } else if (name.equals("author")) { + this.getAuthor().add(TypeConvertor.castToContactDetail(value)); + } else if (name.equals("editor")) { + this.getEditor().add(TypeConvertor.castToContactDetail(value)); + } else if (name.equals("reviewer")) { + this.getReviewer().add(TypeConvertor.castToContactDetail(value)); + } else if (name.equals("endorser")) { + this.getEndorser().add(TypeConvertor.castToContactDetail(value)); } else if (name.equals("summary")) { - this.getSummary().add((CitationSummaryComponent) value); - } else if (name.equals("dateCited")) { - this.dateCited = TypeConvertor.castToDateTime(value); // DateTimeType - } else if (name.equals("variantCitation")) { - this.variantCitation = (CitationVariantCitationComponent) value; // CitationVariantCitationComponent - } else if (name.equals("publishingModel")) { - this.publishingModel = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("journal")) { - this.journal = (CitationJournalComponent) value; // CitationJournalComponent - } else if (name.equals("publicationInfo")) { - this.publicationInfo = (CitationPublicationInfoComponent) value; // CitationPublicationInfoComponent - } else if (name.equals("articleTitle")) { - this.articleTitle = TypeConvertor.castToMarkdown(value); // MarkdownType - } else if (name.equals("alternativeTitle")) { - this.getAlternativeTitle().add((CitationAlternativeTitleComponent) value); - } else if (name.equals("pagination")) { - this.pagination = (CitationPaginationComponent) value; // CitationPaginationComponent - } else if (name.equals("articleUrl")) { - this.getArticleUrl().add((CitationArticleUrlComponent) value); - } else if (name.equals("abstract")) { - this.abstract_ = TypeConvertor.castToMarkdown(value); // MarkdownType - } else if (name.equals("abstractCopyright")) { - this.abstractCopyright = TypeConvertor.castToMarkdown(value); // MarkdownType - } else if (name.equals("alternativeAbstract")) { - this.getAlternativeAbstract().add((CitationAlternativeAbstractComponent) value); - } else if (name.equals("contributorship")) { - this.contributorship = (CitationContributorshipComponent) value; // CitationContributorshipComponent - } else if (name.equals("articleLanguage")) { - this.articleLanguage = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("alternativeForm")) { - this.getAlternativeForm().add((CitationAlternativeFormComponent) value); - } else if (name.equals("classifier")) { - this.getClassifier().add(TypeConvertor.castToCodeableConcept(value)); - } else if (name.equals("keywordList")) { - this.getKeywordList().add((CitationKeywordListComponent) value); - } else if (name.equals("relatedArtifact")) { - this.getRelatedArtifact().add(TypeConvertor.castToRelatedArtifact(value)); + this.getSummary().add(TypeConvertor.castToContactDetail(value)); + } else if (name.equals("classification")) { + this.getClassification().add((CitationClassificationComponent) value); } else if (name.equals("note")) { this.getNote().add(TypeConvertor.castToAnnotation(value)); - } else if (name.equals("medlinePubMed")) { - this.medlinePubMed = (CitationMedlinePubMedComponent) value; // CitationMedlinePubMedComponent + } else if (name.equals("currentState")) { + this.getCurrentState().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("statusDate")) { + this.getStatusDate().add((CitationStatusDateComponent) value); + } else if (name.equals("relatesTo")) { + this.getRelatesTo().add((CitationRelatesToComponent) value); + } else if (name.equals("citedArtifact")) { + this.citedArtifact = (CitationCitedArtifactComponent) value; // CitationCitedArtifactComponent } else return super.setProperty(name, value); return value; @@ -11919,31 +11099,34 @@ public class Citation extends MetadataResource { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 116079: return getUrlElement(); - case -892481550: return getStatusElement(); - case -669707736: return addUseContext(); case -1618432855: return addIdentifier(); - case -1007604940: return addRelatedIdentifier(); + case 351608024: return getVersionElement(); + case 3373707: return getNameElement(); + case 110371416: return getTitleElement(); + case -892481550: return getStatusElement(); + case -404562712: return getExperimentalElement(); + case 3076014: return getDateElement(); + case 1447404028: return getPublisherElement(); + case 951526432: return addContact(); + case -1724546052: return getDescriptionElement(); + case -669707736: return addUseContext(); + case -507075711: return addJurisdiction(); + case -220463842: return getPurposeElement(); + case 1522889671: return getCopyrightElement(); + case 223539345: return getApprovalDateElement(); + case -1687512484: return getLastReviewDateElement(); + case -403934648: return getEffectivePeriod(); + case -1406328437: return addAuthor(); + case -1307827859: return addEditor(); + case -261190139: return addReviewer(); + case 1740277666: return addEndorser(); case -1857640538: return addSummary(); - case -275034401: return getDateCitedElement(); - case -1653134708: return getVariantCitation(); - case 747318902: return getPublishingModel(); - case -1419464905: return getJournal(); - case 1470727418: return getPublicationInfo(); - case -404746494: return getArticleTitleElement(); - case -1478308181: return addAlternativeTitle(); - case 1297692570: return getPagination(); - case 164943001: return addArticleUrl(); - case 1732898850: return getAbstractElement(); - case -656627259: return getAbstractCopyrightElement(); - case -376340753: return addAlternativeAbstract(); - case 538727831: return getContributorship(); - case -1573097874: return getArticleLanguage(); - case 2030111249: return addAlternativeForm(); - case -281470431: return addClassifier(); - case -1298782681: return addKeywordList(); - case 666807069: return addRelatedArtifact(); + case 382350310: return addClassification(); case 3387378: return addNote(); - case -1342445201: return getMedlinePubMed(); + case 1457822360: return addCurrentState(); + case 247524032: return addStatusDate(); + case -7765931: return addRelatesTo(); + case -495272225: return getCitedArtifact(); default: return super.makeProperty(hash, name); } @@ -11953,31 +11136,34 @@ public class Citation extends MetadataResource { public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 116079: /*url*/ return new String[] {"uri"}; - case -892481550: /*status*/ return new String[] {"code"}; - case -669707736: /*useContext*/ return new String[] {"UsageContext"}; case -1618432855: /*identifier*/ return new String[] {"Identifier"}; - case -1007604940: /*relatedIdentifier*/ return new String[] {"Identifier"}; - case -1857640538: /*summary*/ return new String[] {}; - case -275034401: /*dateCited*/ return new String[] {"dateTime"}; - case -1653134708: /*variantCitation*/ return new String[] {}; - case 747318902: /*publishingModel*/ return new String[] {"CodeableConcept"}; - case -1419464905: /*journal*/ return new String[] {}; - case 1470727418: /*publicationInfo*/ return new String[] {}; - case -404746494: /*articleTitle*/ return new String[] {"markdown"}; - case -1478308181: /*alternativeTitle*/ return new String[] {}; - case 1297692570: /*pagination*/ return new String[] {}; - case 164943001: /*articleUrl*/ return new String[] {}; - case 1732898850: /*abstract*/ return new String[] {"markdown"}; - case -656627259: /*abstractCopyright*/ return new String[] {"markdown"}; - case -376340753: /*alternativeAbstract*/ return new String[] {}; - case 538727831: /*contributorship*/ return new String[] {}; - case -1573097874: /*articleLanguage*/ return new String[] {"CodeableConcept"}; - case 2030111249: /*alternativeForm*/ return new String[] {}; - case -281470431: /*classifier*/ return new String[] {"CodeableConcept"}; - case -1298782681: /*keywordList*/ return new String[] {}; - case 666807069: /*relatedArtifact*/ return new String[] {"RelatedArtifact"}; + case 351608024: /*version*/ return new String[] {"string"}; + case 3373707: /*name*/ return new String[] {"string"}; + case 110371416: /*title*/ return new String[] {"string"}; + case -892481550: /*status*/ return new String[] {"code"}; + case -404562712: /*experimental*/ return new String[] {"boolean"}; + case 3076014: /*date*/ return new String[] {"dateTime"}; + case 1447404028: /*publisher*/ return new String[] {"string"}; + case 951526432: /*contact*/ return new String[] {"ContactDetail"}; + case -1724546052: /*description*/ return new String[] {"markdown"}; + case -669707736: /*useContext*/ return new String[] {"UsageContext"}; + case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"}; + case -220463842: /*purpose*/ return new String[] {"markdown"}; + case 1522889671: /*copyright*/ return new String[] {"markdown"}; + case 223539345: /*approvalDate*/ return new String[] {"date"}; + case -1687512484: /*lastReviewDate*/ return new String[] {"date"}; + case -403934648: /*effectivePeriod*/ return new String[] {"Period"}; + case -1406328437: /*author*/ return new String[] {"ContactDetail"}; + case -1307827859: /*editor*/ return new String[] {"ContactDetail"}; + case -261190139: /*reviewer*/ return new String[] {"ContactDetail"}; + case 1740277666: /*endorser*/ return new String[] {"ContactDetail"}; + case -1857640538: /*summary*/ return new String[] {"ContactDetail"}; + case 382350310: /*classification*/ return new String[] {}; case 3387378: /*note*/ return new String[] {"Annotation"}; - case -1342445201: /*medlinePubMed*/ return new String[] {}; + case 1457822360: /*currentState*/ return new String[] {"CodeableConcept"}; + case 247524032: /*statusDate*/ return new String[] {}; + case -7765931: /*relatesTo*/ return new String[] {}; + case -495272225: /*citedArtifact*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -11988,88 +11174,91 @@ public class Citation extends MetadataResource { if (name.equals("url")) { throw new FHIRException("Cannot call addChild on a primitive type Citation.url"); } + else if (name.equals("identifier")) { + return addIdentifier(); + } + else if (name.equals("version")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.version"); + } + else if (name.equals("name")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.name"); + } + else if (name.equals("title")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.title"); + } else if (name.equals("status")) { throw new FHIRException("Cannot call addChild on a primitive type Citation.status"); } + else if (name.equals("experimental")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.experimental"); + } + else if (name.equals("date")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.date"); + } + else if (name.equals("publisher")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.publisher"); + } + else if (name.equals("contact")) { + return addContact(); + } + else if (name.equals("description")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.description"); + } else if (name.equals("useContext")) { return addUseContext(); } - else if (name.equals("identifier")) { - return addIdentifier(); + else if (name.equals("jurisdiction")) { + return addJurisdiction(); } - else if (name.equals("relatedIdentifier")) { - return addRelatedIdentifier(); + else if (name.equals("purpose")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.purpose"); + } + else if (name.equals("copyright")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.copyright"); + } + else if (name.equals("approvalDate")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.approvalDate"); + } + else if (name.equals("lastReviewDate")) { + throw new FHIRException("Cannot call addChild on a primitive type Citation.lastReviewDate"); + } + else if (name.equals("effectivePeriod")) { + this.effectivePeriod = new Period(); + return this.effectivePeriod; + } + else if (name.equals("author")) { + return addAuthor(); + } + else if (name.equals("editor")) { + return addEditor(); + } + else if (name.equals("reviewer")) { + return addReviewer(); + } + else if (name.equals("endorser")) { + return addEndorser(); } else if (name.equals("summary")) { return addSummary(); } - else if (name.equals("dateCited")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.dateCited"); - } - else if (name.equals("variantCitation")) { - this.variantCitation = new CitationVariantCitationComponent(); - return this.variantCitation; - } - else if (name.equals("publishingModel")) { - this.publishingModel = new CodeableConcept(); - return this.publishingModel; - } - else if (name.equals("journal")) { - this.journal = new CitationJournalComponent(); - return this.journal; - } - else if (name.equals("publicationInfo")) { - this.publicationInfo = new CitationPublicationInfoComponent(); - return this.publicationInfo; - } - else if (name.equals("articleTitle")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.articleTitle"); - } - else if (name.equals("alternativeTitle")) { - return addAlternativeTitle(); - } - else if (name.equals("pagination")) { - this.pagination = new CitationPaginationComponent(); - return this.pagination; - } - else if (name.equals("articleUrl")) { - return addArticleUrl(); - } - else if (name.equals("abstract")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.abstract"); - } - else if (name.equals("abstractCopyright")) { - throw new FHIRException("Cannot call addChild on a primitive type Citation.abstractCopyright"); - } - else if (name.equals("alternativeAbstract")) { - return addAlternativeAbstract(); - } - else if (name.equals("contributorship")) { - this.contributorship = new CitationContributorshipComponent(); - return this.contributorship; - } - else if (name.equals("articleLanguage")) { - this.articleLanguage = new CodeableConcept(); - return this.articleLanguage; - } - else if (name.equals("alternativeForm")) { - return addAlternativeForm(); - } - else if (name.equals("classifier")) { - return addClassifier(); - } - else if (name.equals("keywordList")) { - return addKeywordList(); - } - else if (name.equals("relatedArtifact")) { - return addRelatedArtifact(); + else if (name.equals("classification")) { + return addClassification(); } else if (name.equals("note")) { return addNote(); } - else if (name.equals("medlinePubMed")) { - this.medlinePubMed = new CitationMedlinePubMedComponent(); - return this.medlinePubMed; + else if (name.equals("currentState")) { + return addCurrentState(); + } + else if (name.equals("statusDate")) { + return addStatusDate(); + } + else if (name.equals("relatesTo")) { + return addRelatesTo(); + } + else if (name.equals("citedArtifact")) { + this.citedArtifact = new CitationCitedArtifactComponent(); + return this.citedArtifact; } else return super.addChild(name); @@ -12089,79 +11278,90 @@ public class Citation extends MetadataResource { public void copyValues(Citation dst) { super.copyValues(dst); dst.url = url == null ? null : url.copy(); - dst.status = status == null ? null : status.copy(); - if (useContext != null) { - dst.useContext = new ArrayList(); - for (UsageContext i : useContext) - dst.useContext.add(i.copy()); - }; if (identifier != null) { dst.identifier = new ArrayList(); for (Identifier i : identifier) dst.identifier.add(i.copy()); }; - if (relatedIdentifier != null) { - dst.relatedIdentifier = new ArrayList(); - for (Identifier i : relatedIdentifier) - dst.relatedIdentifier.add(i.copy()); + dst.version = version == null ? null : version.copy(); + dst.name = name == null ? null : name.copy(); + dst.title = title == null ? null : title.copy(); + dst.status = status == null ? null : status.copy(); + dst.experimental = experimental == null ? null : experimental.copy(); + dst.date = date == null ? null : date.copy(); + dst.publisher = publisher == null ? null : publisher.copy(); + if (contact != null) { + dst.contact = new ArrayList(); + for (ContactDetail i : contact) + dst.contact.add(i.copy()); + }; + dst.description = description == null ? null : description.copy(); + if (useContext != null) { + dst.useContext = new ArrayList(); + for (UsageContext i : useContext) + dst.useContext.add(i.copy()); + }; + if (jurisdiction != null) { + dst.jurisdiction = new ArrayList(); + for (CodeableConcept i : jurisdiction) + dst.jurisdiction.add(i.copy()); + }; + dst.purpose = purpose == null ? null : purpose.copy(); + dst.copyright = copyright == null ? null : copyright.copy(); + dst.approvalDate = approvalDate == null ? null : approvalDate.copy(); + dst.lastReviewDate = lastReviewDate == null ? null : lastReviewDate.copy(); + dst.effectivePeriod = effectivePeriod == null ? null : effectivePeriod.copy(); + if (author != null) { + dst.author = new ArrayList(); + for (ContactDetail i : author) + dst.author.add(i.copy()); + }; + if (editor != null) { + dst.editor = new ArrayList(); + for (ContactDetail i : editor) + dst.editor.add(i.copy()); + }; + if (reviewer != null) { + dst.reviewer = new ArrayList(); + for (ContactDetail i : reviewer) + dst.reviewer.add(i.copy()); + }; + if (endorser != null) { + dst.endorser = new ArrayList(); + for (ContactDetail i : endorser) + dst.endorser.add(i.copy()); }; if (summary != null) { - dst.summary = new ArrayList(); - for (CitationSummaryComponent i : summary) + dst.summary = new ArrayList(); + for (ContactDetail i : summary) dst.summary.add(i.copy()); }; - dst.dateCited = dateCited == null ? null : dateCited.copy(); - dst.variantCitation = variantCitation == null ? null : variantCitation.copy(); - dst.publishingModel = publishingModel == null ? null : publishingModel.copy(); - dst.journal = journal == null ? null : journal.copy(); - dst.publicationInfo = publicationInfo == null ? null : publicationInfo.copy(); - dst.articleTitle = articleTitle == null ? null : articleTitle.copy(); - if (alternativeTitle != null) { - dst.alternativeTitle = new ArrayList(); - for (CitationAlternativeTitleComponent i : alternativeTitle) - dst.alternativeTitle.add(i.copy()); - }; - dst.pagination = pagination == null ? null : pagination.copy(); - if (articleUrl != null) { - dst.articleUrl = new ArrayList(); - for (CitationArticleUrlComponent i : articleUrl) - dst.articleUrl.add(i.copy()); - }; - dst.abstract_ = abstract_ == null ? null : abstract_.copy(); - dst.abstractCopyright = abstractCopyright == null ? null : abstractCopyright.copy(); - if (alternativeAbstract != null) { - dst.alternativeAbstract = new ArrayList(); - for (CitationAlternativeAbstractComponent i : alternativeAbstract) - dst.alternativeAbstract.add(i.copy()); - }; - dst.contributorship = contributorship == null ? null : contributorship.copy(); - dst.articleLanguage = articleLanguage == null ? null : articleLanguage.copy(); - if (alternativeForm != null) { - dst.alternativeForm = new ArrayList(); - for (CitationAlternativeFormComponent i : alternativeForm) - dst.alternativeForm.add(i.copy()); - }; - if (classifier != null) { - dst.classifier = new ArrayList(); - for (CodeableConcept i : classifier) - dst.classifier.add(i.copy()); - }; - if (keywordList != null) { - dst.keywordList = new ArrayList(); - for (CitationKeywordListComponent i : keywordList) - dst.keywordList.add(i.copy()); - }; - if (relatedArtifact != null) { - dst.relatedArtifact = new ArrayList(); - for (RelatedArtifact i : relatedArtifact) - dst.relatedArtifact.add(i.copy()); + if (classification != null) { + dst.classification = new ArrayList(); + for (CitationClassificationComponent i : classification) + dst.classification.add(i.copy()); }; if (note != null) { dst.note = new ArrayList(); for (Annotation i : note) dst.note.add(i.copy()); }; - dst.medlinePubMed = medlinePubMed == null ? null : medlinePubMed.copy(); + if (currentState != null) { + dst.currentState = new ArrayList(); + for (CodeableConcept i : currentState) + dst.currentState.add(i.copy()); + }; + if (statusDate != null) { + dst.statusDate = new ArrayList(); + for (CitationStatusDateComponent i : statusDate) + dst.statusDate.add(i.copy()); + }; + if (relatesTo != null) { + dst.relatesTo = new ArrayList(); + for (CitationRelatesToComponent i : relatesTo) + dst.relatesTo.add(i.copy()); + }; + dst.citedArtifact = citedArtifact == null ? null : citedArtifact.copy(); } protected Citation typedCopy() { @@ -12175,17 +11375,17 @@ public class Citation extends MetadataResource { if (!(other_ instanceof Citation)) return false; Citation o = (Citation) other_; - return compareDeep(url, o.url, true) && compareDeep(status, o.status, true) && compareDeep(useContext, o.useContext, true) - && compareDeep(identifier, o.identifier, true) && compareDeep(relatedIdentifier, o.relatedIdentifier, true) - && compareDeep(summary, o.summary, true) && compareDeep(dateCited, o.dateCited, true) && compareDeep(variantCitation, o.variantCitation, true) - && compareDeep(publishingModel, o.publishingModel, true) && compareDeep(journal, o.journal, true) - && compareDeep(publicationInfo, o.publicationInfo, true) && compareDeep(articleTitle, o.articleTitle, true) - && compareDeep(alternativeTitle, o.alternativeTitle, true) && compareDeep(pagination, o.pagination, true) - && compareDeep(articleUrl, o.articleUrl, true) && compareDeep(abstract_, o.abstract_, true) && compareDeep(abstractCopyright, o.abstractCopyright, true) - && compareDeep(alternativeAbstract, o.alternativeAbstract, true) && compareDeep(contributorship, o.contributorship, true) - && compareDeep(articleLanguage, o.articleLanguage, true) && compareDeep(alternativeForm, o.alternativeForm, true) - && compareDeep(classifier, o.classifier, true) && compareDeep(keywordList, o.keywordList, true) - && compareDeep(relatedArtifact, o.relatedArtifact, true) && compareDeep(note, o.note, true) && compareDeep(medlinePubMed, o.medlinePubMed, true) + return compareDeep(url, o.url, true) && compareDeep(identifier, o.identifier, true) && compareDeep(version, o.version, true) + && compareDeep(name, o.name, true) && compareDeep(title, o.title, true) && compareDeep(status, o.status, true) + && compareDeep(experimental, o.experimental, true) && compareDeep(date, o.date, true) && compareDeep(publisher, o.publisher, true) + && compareDeep(contact, o.contact, true) && compareDeep(description, o.description, true) && compareDeep(useContext, o.useContext, true) + && compareDeep(jurisdiction, o.jurisdiction, true) && compareDeep(purpose, o.purpose, true) && compareDeep(copyright, o.copyright, true) + && compareDeep(approvalDate, o.approvalDate, true) && compareDeep(lastReviewDate, o.lastReviewDate, true) + && compareDeep(effectivePeriod, o.effectivePeriod, true) && compareDeep(author, o.author, true) + && compareDeep(editor, o.editor, true) && compareDeep(reviewer, o.reviewer, true) && compareDeep(endorser, o.endorser, true) + && compareDeep(summary, o.summary, true) && compareDeep(classification, o.classification, true) + && compareDeep(note, o.note, true) && compareDeep(currentState, o.currentState, true) && compareDeep(statusDate, o.statusDate, true) + && compareDeep(relatesTo, o.relatesTo, true) && compareDeep(citedArtifact, o.citedArtifact, true) ; } @@ -12196,18 +11396,19 @@ public class Citation extends MetadataResource { if (!(other_ instanceof Citation)) return false; Citation o = (Citation) other_; - return compareValues(url, o.url, true) && compareValues(status, o.status, true) && compareValues(dateCited, o.dateCited, true) - && compareValues(articleTitle, o.articleTitle, true) && compareValues(abstract_, o.abstract_, true) - && compareValues(abstractCopyright, o.abstractCopyright, true); + return compareValues(url, o.url, true) && compareValues(version, o.version, true) && compareValues(name, o.name, true) + && compareValues(title, o.title, true) && compareValues(status, o.status, true) && compareValues(experimental, o.experimental, true) + && compareValues(date, o.date, true) && compareValues(publisher, o.publisher, true) && compareValues(description, o.description, true) + && compareValues(purpose, o.purpose, true) && compareValues(copyright, o.copyright, true) && compareValues(approvalDate, o.approvalDate, true) + && compareValues(lastReviewDate, o.lastReviewDate, true); } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, status, useContext - , identifier, relatedIdentifier, summary, dateCited, variantCitation, publishingModel - , journal, publicationInfo, articleTitle, alternativeTitle, pagination, articleUrl - , abstract_, abstractCopyright, alternativeAbstract, contributorship, articleLanguage - , alternativeForm, classifier, keywordList, relatedArtifact, note, medlinePubMed - ); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, identifier, version + , name, title, status, experimental, date, publisher, contact, description, useContext + , jurisdiction, purpose, copyright, approvalDate, lastReviewDate, effectivePeriod + , author, editor, reviewer, endorser, summary, classification, note, currentState + , statusDate, relatesTo, citedArtifact); } @Override @@ -12215,6 +11416,26 @@ public class Citation extends MetadataResource { return ResourceType.Citation; } + /** + * Search parameter: context + *

+ * Description: A use context assigned to the citation
+ * Type: token
+ * Path: (Citation.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(Citation.useContext.value as CodeableConcept)", description="A use context assigned to the citation", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: A use context assigned to the citation
+ * Type: token
+ * Path: (Citation.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -12235,6 +11456,246 @@ public class Citation extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); + /** + * Search parameter: context-type + *

+ * Description: A type of use context assigned to the citation
+ * Type: token
+ * Path: Citation.useContext.code
+ *

+ */ + @SearchParamDefinition(name="context-type", path="Citation.useContext.code", description="A type of use context assigned to the citation", type="token" ) + public static final String SP_CONTEXT_TYPE = "context-type"; + /** + * Fluent Client search parameter constant for context-type + *

+ * Description: A type of use context assigned to the citation
+ * Type: token
+ * Path: Citation.useContext.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); + + /** + * Search parameter: date + *

+ * Description: The citation publication date
+ * Type: date
+ * Path: Citation.date
+ *

+ */ + @SearchParamDefinition(name="date", path="Citation.date", description="The citation publication date", type="date" ) + public static final String SP_DATE = "date"; + /** + * Fluent Client search parameter constant for date + *

+ * Description: The citation publication date
+ * Type: date
+ * Path: Citation.date
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + + /** + * Search parameter: description + *

+ * Description: The description of the citation
+ * Type: string
+ * Path: Citation.description
+ *

+ */ + @SearchParamDefinition(name="description", path="Citation.description", description="The description of the citation", type="string" ) + public static final String SP_DESCRIPTION = "description"; + /** + * Fluent Client search parameter constant for description + *

+ * Description: The description of the citation
+ * Type: string
+ * Path: Citation.description
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); + + /** + * Search parameter: effective + *

+ * Description: The time during which the citation is intended to be in use
+ * Type: date
+ * Path: Citation.effectivePeriod
+ *

+ */ + @SearchParamDefinition(name="effective", path="Citation.effectivePeriod", description="The time during which the citation is intended to be in use", type="date" ) + public static final String SP_EFFECTIVE = "effective"; + /** + * Fluent Client search parameter constant for effective + *

+ * Description: The time during which the citation is intended to be in use
+ * Type: date
+ * Path: Citation.effectivePeriod
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam EFFECTIVE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_EFFECTIVE); + + /** + * Search parameter: identifier + *

+ * Description: External identifier for the citation
+ * Type: token
+ * Path: Citation.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="Citation.identifier", description="External identifier for the citation", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: External identifier for the citation
+ * Type: token
+ * Path: Citation.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: jurisdiction + *

+ * Description: Intended jurisdiction for the citation
+ * Type: token
+ * Path: Citation.jurisdiction
+ *

+ */ + @SearchParamDefinition(name="jurisdiction", path="Citation.jurisdiction", description="Intended jurisdiction for the citation", type="token" ) + public static final String SP_JURISDICTION = "jurisdiction"; + /** + * Fluent Client search parameter constant for jurisdiction + *

+ * Description: Intended jurisdiction for the citation
+ * Type: token
+ * Path: Citation.jurisdiction
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION); + + /** + * Search parameter: name + *

+ * Description: Computationally friendly name of the citation
+ * Type: string
+ * Path: Citation.name
+ *

+ */ + @SearchParamDefinition(name="name", path="Citation.name", description="Computationally friendly name of the citation", type="string" ) + public static final String SP_NAME = "name"; + /** + * Fluent Client search parameter constant for name + *

+ * Description: Computationally friendly name of the citation
+ * Type: string
+ * Path: Citation.name
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); + + /** + * Search parameter: publisher + *

+ * Description: Name of the publisher of the citation
+ * Type: string
+ * Path: Citation.publisher
+ *

+ */ + @SearchParamDefinition(name="publisher", path="Citation.publisher", description="Name of the publisher of the citation", type="string" ) + public static final String SP_PUBLISHER = "publisher"; + /** + * Fluent Client search parameter constant for publisher + *

+ * Description: Name of the publisher of the citation
+ * Type: string
+ * Path: Citation.publisher
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); + + /** + * Search parameter: status + *

+ * Description: The current status of the citation
+ * Type: token
+ * Path: Citation.status
+ *

+ */ + @SearchParamDefinition(name="status", path="Citation.status", description="The current status of the citation", type="token" ) + public static final String SP_STATUS = "status"; + /** + * Fluent Client search parameter constant for status + *

+ * Description: The current status of the citation
+ * Type: token
+ * Path: Citation.status
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); + + /** + * Search parameter: title + *

+ * Description: The human-friendly name of the citation
+ * Type: string
+ * Path: Citation.title
+ *

+ */ + @SearchParamDefinition(name="title", path="Citation.title", description="The human-friendly name of the citation", type="string" ) + public static final String SP_TITLE = "title"; + /** + * Fluent Client search parameter constant for title + *

+ * Description: The human-friendly name of the citation
+ * Type: string
+ * Path: Citation.title
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE); + + /** + * Search parameter: url + *

+ * Description: The uri that identifies the citation
+ * Type: uri
+ * Path: Citation.url
+ *

+ */ + @SearchParamDefinition(name="url", path="Citation.url", description="The uri that identifies the citation", type="uri" ) + public static final String SP_URL = "url"; + /** + * Fluent Client search parameter constant for url + *

+ * Description: The uri that identifies the citation
+ * Type: uri
+ * Path: Citation.url
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL); + + /** + * Search parameter: version + *

+ * Description: The business version of the citation
+ * Type: token
+ * Path: Citation.version
+ *

+ */ + @SearchParamDefinition(name="version", path="Citation.version", description="The business version of the citation", type="token" ) + public static final String SP_VERSION = "version"; + /** + * Fluent Client search parameter constant for version + *

+ * Description: The business version of the citation
+ * Type: token
+ * Path: Citation.version
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** * Search parameter: context-type-quantity *

@@ -12275,106 +11736,6 @@ public class Citation extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** - * Search parameter: context-type - *

- * Description: A type of use context assigned to the citation
- * Type: token
- * Path: Citation.useContext.code
- *

- */ - @SearchParamDefinition(name="context-type", path="Citation.useContext.code", description="A type of use context assigned to the citation", type="token" ) - public static final String SP_CONTEXT_TYPE = "context-type"; - /** - * Fluent Client search parameter constant for context-type - *

- * Description: A type of use context assigned to the citation
- * Type: token
- * Path: Citation.useContext.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - - /** - * Search parameter: context - *

- * Description: A use context assigned to the citation
- * Type: token
- * Path: (Citation.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(Citation.useContext.value as CodeableConcept)", description="A use context assigned to the citation", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: A use context assigned to the citation
- * Type: token
- * Path: (Citation.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - - /** - * Search parameter: identifier - *

- * Description: External identifier for the citation
- * Type: token
- * Path: Citation.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="Citation.identifier", description="External identifier for the citation", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: External identifier for the citation
- * Type: token
- * Path: Citation.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: status - *

- * Description: The current status of the citation
- * Type: token
- * Path: Citation.status
- *

- */ - @SearchParamDefinition(name="status", path="Citation.status", description="The current status of the citation", type="token" ) - public static final String SP_STATUS = "status"; - /** - * Fluent Client search parameter constant for status - *

- * Description: The current status of the citation
- * Type: token
- * Path: Citation.status
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); - - /** - * Search parameter: url - *

- * Description: The uri that identifies the citation
- * Type: uri
- * Path: Citation.url
- *

- */ - @SearchParamDefinition(name="url", path="Citation.url", description="The uri that identifies the citation", type="uri" ) - public static final String SP_URL = "url"; - /** - * Fluent Client search parameter constant for url - *

- * Description: The uri that identifies the citation
- * Type: uri
- * Path: Citation.url
- *

- */ - public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Claim.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Claim.java index f259e92e4..5911a4683 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Claim.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Claim.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClaimResponse.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClaimResponse.java index b8c8327cd..1e52211d1 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClaimResponse.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClaimResponse.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -6280,7 +6280,7 @@ public class ClaimResponse extends DomainResource { */ @Child(name = "outcome", type = {CodeType.class}, order=10, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="queued | complete | error | partial", formalDefinition="The outcome of the claim, predetermination, or preauthorization processing." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/remittance-outcome") + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/claim-outcome") protected Enumeration outcome; /** diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalImpression.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalImpression.java index 5b2c75f1d..7cf13651a 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalImpression.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalImpression.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -1636,6 +1636,158 @@ public class ClinicalImpression extends DomainResource { return ResourceType.ClinicalImpression; } + /** + * Search parameter: date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) + public static final String SP_DATE = "date"; + /** + * Fluent Client search parameter constant for date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ClinicalImpression:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("ClinicalImpression:patient").toLocked(); + /** * Search parameter: encounter *

@@ -1860,7 +2012,7 @@ public class ClinicalImpression extends DomainResource { * Path: ClinicalImpression.supportingInfo
*

*/ - @SearchParamDefinition(name="supporting-info", path="ClinicalImpression.supportingInfo", description="Information supporting the clinical impression", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="supporting-info", path="ClinicalImpression.supportingInfo", description="Information supporting the clinical impression", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_SUPPORTING_INFO = "supporting-info"; /** * Fluent Client search parameter constant for supporting-info @@ -1878,158 +2030,6 @@ public class ClinicalImpression extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUPPORTING_INFO = new ca.uhn.fhir.model.api.Include("ClinicalImpression:supporting-info").toLocked(); - /** - * Search parameter: date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) - public static final String SP_DATE = "date"; - /** - * Fluent Client search parameter constant for date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ClinicalImpression:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("ClinicalImpression:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalUseIssue.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalUseIssue.java index 5081f879b..1e26c49ae 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalUseIssue.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ClinicalUseIssue.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -48,7 +48,7 @@ import ca.uhn.fhir.model.api.annotation.Description; import ca.uhn.fhir.model.api.annotation.Block; /** - * A single usage issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure. + * A single issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure. */ @ResourceDef(name="ClinicalUseIssue", profile="http://hl7.org/fhir/StructureDefinition/ClinicalUseIssue") public class ClinicalUseIssue extends DomainResource { @@ -103,7 +103,6 @@ public class ClinicalUseIssue extends DomainResource { case INTERACTION: return "interaction"; case UNDESIRABLEEFFECT: return "undesirable-effect"; case WARNING: return "warning"; - case NULL: return null; default: return "?"; } } @@ -114,7 +113,6 @@ public class ClinicalUseIssue extends DomainResource { case INTERACTION: return "http://hl7.org/fhir/clinical-use-issue-type"; case UNDESIRABLEEFFECT: return "http://hl7.org/fhir/clinical-use-issue-type"; case WARNING: return "http://hl7.org/fhir/clinical-use-issue-type"; - case NULL: return null; default: return "?"; } } @@ -125,7 +123,6 @@ public class ClinicalUseIssue extends DomainResource { case INTERACTION: return "Interactions between the medication and other substances."; case UNDESIRABLEEFFECT: return "Side effects or adverse effects associated with the medication."; case WARNING: return "A general warning or issue that is not specifically one of the other types."; - case NULL: return null; default: return "?"; } } @@ -136,7 +133,6 @@ public class ClinicalUseIssue extends DomainResource { case INTERACTION: return "Interaction"; case UNDESIRABLEEFFECT: return "Undesirable Effect"; case WARNING: return "Warning"; - case NULL: return null; default: return "?"; } } @@ -202,23 +198,23 @@ public class ClinicalUseIssue extends DomainResource { /** * The situation that is being documented as contraindicating against this item. */ - @Child(name = "diseaseSymptomProcedure", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) + @Child(name = "diseaseSymptomProcedure", type = {CodeableReference.class}, order=1, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="The situation that is being documented as contraindicating against this item", formalDefinition="The situation that is being documented as contraindicating against this item." ) - protected CodeableConcept diseaseSymptomProcedure; + protected CodeableReference diseaseSymptomProcedure; /** * The status of the disease or symptom for the contraindication. */ - @Child(name = "diseaseStatus", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true) + @Child(name = "diseaseStatus", type = {CodeableReference.class}, order=2, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="The status of the disease or symptom for the contraindication", formalDefinition="The status of the disease or symptom for the contraindication." ) - protected CodeableConcept diseaseStatus; + protected CodeableReference diseaseStatus; /** * A comorbidity (concurrent condition) or coinfection. */ - @Child(name = "comorbidity", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "comorbidity", type = {CodeableReference.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="A comorbidity (concurrent condition) or coinfection", formalDefinition="A comorbidity (concurrent condition) or coinfection." ) - protected List comorbidity; + protected List comorbidity; /** * The indication which this is a contraidication for. @@ -228,13 +224,13 @@ public class ClinicalUseIssue extends DomainResource { protected List indication; /** - * Information about the use of the medicinal product in relation to other therapies described as part of the indication. + * Information about the use of the medicinal product in relation to other therapies described as part of the contraindication. */ @Child(name = "otherTherapy", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Information about the use of the medicinal product in relation to other therapies described as part of the indication", formalDefinition="Information about the use of the medicinal product in relation to other therapies described as part of the indication." ) + @Description(shortDefinition="Information about the use of the medicinal product in relation to other therapies described as part of the contraindication", formalDefinition="Information about the use of the medicinal product in relation to other therapies described as part of the contraindication." ) protected List otherTherapy; - private static final long serialVersionUID = -165584476L; + private static final long serialVersionUID = 1347024193L; /** * Constructor @@ -246,12 +242,12 @@ public class ClinicalUseIssue extends DomainResource { /** * @return {@link #diseaseSymptomProcedure} (The situation that is being documented as contraindicating against this item.) */ - public CodeableConcept getDiseaseSymptomProcedure() { + public CodeableReference getDiseaseSymptomProcedure() { if (this.diseaseSymptomProcedure == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ClinicalUseIssueContraindicationComponent.diseaseSymptomProcedure"); else if (Configuration.doAutoCreate()) - this.diseaseSymptomProcedure = new CodeableConcept(); // cc + this.diseaseSymptomProcedure = new CodeableReference(); // cc return this.diseaseSymptomProcedure; } @@ -262,7 +258,7 @@ public class ClinicalUseIssue extends DomainResource { /** * @param value {@link #diseaseSymptomProcedure} (The situation that is being documented as contraindicating against this item.) */ - public ClinicalUseIssueContraindicationComponent setDiseaseSymptomProcedure(CodeableConcept value) { + public ClinicalUseIssueContraindicationComponent setDiseaseSymptomProcedure(CodeableReference value) { this.diseaseSymptomProcedure = value; return this; } @@ -270,12 +266,12 @@ public class ClinicalUseIssue extends DomainResource { /** * @return {@link #diseaseStatus} (The status of the disease or symptom for the contraindication.) */ - public CodeableConcept getDiseaseStatus() { + public CodeableReference getDiseaseStatus() { if (this.diseaseStatus == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ClinicalUseIssueContraindicationComponent.diseaseStatus"); else if (Configuration.doAutoCreate()) - this.diseaseStatus = new CodeableConcept(); // cc + this.diseaseStatus = new CodeableReference(); // cc return this.diseaseStatus; } @@ -286,7 +282,7 @@ public class ClinicalUseIssue extends DomainResource { /** * @param value {@link #diseaseStatus} (The status of the disease or symptom for the contraindication.) */ - public ClinicalUseIssueContraindicationComponent setDiseaseStatus(CodeableConcept value) { + public ClinicalUseIssueContraindicationComponent setDiseaseStatus(CodeableReference value) { this.diseaseStatus = value; return this; } @@ -294,16 +290,16 @@ public class ClinicalUseIssue extends DomainResource { /** * @return {@link #comorbidity} (A comorbidity (concurrent condition) or coinfection.) */ - public List getComorbidity() { + public List getComorbidity() { if (this.comorbidity == null) - this.comorbidity = new ArrayList(); + this.comorbidity = new ArrayList(); return this.comorbidity; } /** * @return Returns a reference to this for easy method chaining */ - public ClinicalUseIssueContraindicationComponent setComorbidity(List theComorbidity) { + public ClinicalUseIssueContraindicationComponent setComorbidity(List theComorbidity) { this.comorbidity = theComorbidity; return this; } @@ -311,25 +307,25 @@ public class ClinicalUseIssue extends DomainResource { public boolean hasComorbidity() { if (this.comorbidity == null) return false; - for (CodeableConcept item : this.comorbidity) + for (CodeableReference item : this.comorbidity) if (!item.isEmpty()) return true; return false; } - public CodeableConcept addComorbidity() { //3 - CodeableConcept t = new CodeableConcept(); + public CodeableReference addComorbidity() { //3 + CodeableReference t = new CodeableReference(); if (this.comorbidity == null) - this.comorbidity = new ArrayList(); + this.comorbidity = new ArrayList(); this.comorbidity.add(t); return t; } - public ClinicalUseIssueContraindicationComponent addComorbidity(CodeableConcept t) { //3 + public ClinicalUseIssueContraindicationComponent addComorbidity(CodeableReference t) { //3 if (t == null) return this; if (this.comorbidity == null) - this.comorbidity = new ArrayList(); + this.comorbidity = new ArrayList(); this.comorbidity.add(t); return this; } @@ -337,7 +333,7 @@ public class ClinicalUseIssue extends DomainResource { /** * @return The first repetition of repeating field {@link #comorbidity}, creating it if it does not already exist {3} */ - public CodeableConcept getComorbidityFirstRep() { + public CodeableReference getComorbidityFirstRep() { if (getComorbidity().isEmpty()) { addComorbidity(); } @@ -398,7 +394,7 @@ public class ClinicalUseIssue extends DomainResource { } /** - * @return {@link #otherTherapy} (Information about the use of the medicinal product in relation to other therapies described as part of the indication.) + * @return {@link #otherTherapy} (Information about the use of the medicinal product in relation to other therapies described as part of the contraindication.) */ public List getOtherTherapy() { if (this.otherTherapy == null) @@ -452,21 +448,21 @@ public class ClinicalUseIssue extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("diseaseSymptomProcedure", "CodeableConcept", "The situation that is being documented as contraindicating against this item.", 0, 1, diseaseSymptomProcedure)); - children.add(new Property("diseaseStatus", "CodeableConcept", "The status of the disease or symptom for the contraindication.", 0, 1, diseaseStatus)); - children.add(new Property("comorbidity", "CodeableConcept", "A comorbidity (concurrent condition) or coinfection.", 0, java.lang.Integer.MAX_VALUE, comorbidity)); + children.add(new Property("diseaseSymptomProcedure", "CodeableReference(ObservationDefinition)", "The situation that is being documented as contraindicating against this item.", 0, 1, diseaseSymptomProcedure)); + children.add(new Property("diseaseStatus", "CodeableReference(ObservationDefinition)", "The status of the disease or symptom for the contraindication.", 0, 1, diseaseStatus)); + children.add(new Property("comorbidity", "CodeableReference(ObservationDefinition)", "A comorbidity (concurrent condition) or coinfection.", 0, java.lang.Integer.MAX_VALUE, comorbidity)); children.add(new Property("indication", "Reference(ClinicalUseIssue)", "The indication which this is a contraidication for.", 0, java.lang.Integer.MAX_VALUE, indication)); - children.add(new Property("otherTherapy", "", "Information about the use of the medicinal product in relation to other therapies described as part of the indication.", 0, java.lang.Integer.MAX_VALUE, otherTherapy)); + children.add(new Property("otherTherapy", "", "Information about the use of the medicinal product in relation to other therapies described as part of the contraindication.", 0, java.lang.Integer.MAX_VALUE, otherTherapy)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -1497395130: /*diseaseSymptomProcedure*/ return new Property("diseaseSymptomProcedure", "CodeableConcept", "The situation that is being documented as contraindicating against this item.", 0, 1, diseaseSymptomProcedure); - case -505503602: /*diseaseStatus*/ return new Property("diseaseStatus", "CodeableConcept", "The status of the disease or symptom for the contraindication.", 0, 1, diseaseStatus); - case -406395211: /*comorbidity*/ return new Property("comorbidity", "CodeableConcept", "A comorbidity (concurrent condition) or coinfection.", 0, java.lang.Integer.MAX_VALUE, comorbidity); + case -1497395130: /*diseaseSymptomProcedure*/ return new Property("diseaseSymptomProcedure", "CodeableReference(ObservationDefinition)", "The situation that is being documented as contraindicating against this item.", 0, 1, diseaseSymptomProcedure); + case -505503602: /*diseaseStatus*/ return new Property("diseaseStatus", "CodeableReference(ObservationDefinition)", "The status of the disease or symptom for the contraindication.", 0, 1, diseaseStatus); + case -406395211: /*comorbidity*/ return new Property("comorbidity", "CodeableReference(ObservationDefinition)", "A comorbidity (concurrent condition) or coinfection.", 0, java.lang.Integer.MAX_VALUE, comorbidity); case -597168804: /*indication*/ return new Property("indication", "Reference(ClinicalUseIssue)", "The indication which this is a contraidication for.", 0, java.lang.Integer.MAX_VALUE, indication); - case -544509127: /*otherTherapy*/ return new Property("otherTherapy", "", "Information about the use of the medicinal product in relation to other therapies described as part of the indication.", 0, java.lang.Integer.MAX_VALUE, otherTherapy); + case -544509127: /*otherTherapy*/ return new Property("otherTherapy", "", "Information about the use of the medicinal product in relation to other therapies described as part of the contraindication.", 0, java.lang.Integer.MAX_VALUE, otherTherapy); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -475,9 +471,9 @@ public class ClinicalUseIssue extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case -1497395130: /*diseaseSymptomProcedure*/ return this.diseaseSymptomProcedure == null ? new Base[0] : new Base[] {this.diseaseSymptomProcedure}; // CodeableConcept - case -505503602: /*diseaseStatus*/ return this.diseaseStatus == null ? new Base[0] : new Base[] {this.diseaseStatus}; // CodeableConcept - case -406395211: /*comorbidity*/ return this.comorbidity == null ? new Base[0] : this.comorbidity.toArray(new Base[this.comorbidity.size()]); // CodeableConcept + case -1497395130: /*diseaseSymptomProcedure*/ return this.diseaseSymptomProcedure == null ? new Base[0] : new Base[] {this.diseaseSymptomProcedure}; // CodeableReference + case -505503602: /*diseaseStatus*/ return this.diseaseStatus == null ? new Base[0] : new Base[] {this.diseaseStatus}; // CodeableReference + case -406395211: /*comorbidity*/ return this.comorbidity == null ? new Base[0] : this.comorbidity.toArray(new Base[this.comorbidity.size()]); // CodeableReference case -597168804: /*indication*/ return this.indication == null ? new Base[0] : this.indication.toArray(new Base[this.indication.size()]); // Reference case -544509127: /*otherTherapy*/ return this.otherTherapy == null ? new Base[0] : this.otherTherapy.toArray(new Base[this.otherTherapy.size()]); // ClinicalUseIssueContraindicationOtherTherapyComponent default: return super.getProperty(hash, name, checkValid); @@ -489,13 +485,13 @@ public class ClinicalUseIssue extends DomainResource { public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -1497395130: // diseaseSymptomProcedure - this.diseaseSymptomProcedure = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.diseaseSymptomProcedure = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; case -505503602: // diseaseStatus - this.diseaseStatus = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.diseaseStatus = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; case -406395211: // comorbidity - this.getComorbidity().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + this.getComorbidity().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference return value; case -597168804: // indication this.getIndication().add(TypeConvertor.castToReference(value)); // Reference @@ -511,11 +507,11 @@ public class ClinicalUseIssue extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("diseaseSymptomProcedure")) { - this.diseaseSymptomProcedure = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.diseaseSymptomProcedure = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("diseaseStatus")) { - this.diseaseStatus = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.diseaseStatus = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("comorbidity")) { - this.getComorbidity().add(TypeConvertor.castToCodeableConcept(value)); + this.getComorbidity().add(TypeConvertor.castToCodeableReference(value)); } else if (name.equals("indication")) { this.getIndication().add(TypeConvertor.castToReference(value)); } else if (name.equals("otherTherapy")) { @@ -541,9 +537,9 @@ public class ClinicalUseIssue extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case -1497395130: /*diseaseSymptomProcedure*/ return new String[] {"CodeableConcept"}; - case -505503602: /*diseaseStatus*/ return new String[] {"CodeableConcept"}; - case -406395211: /*comorbidity*/ return new String[] {"CodeableConcept"}; + case -1497395130: /*diseaseSymptomProcedure*/ return new String[] {"CodeableReference"}; + case -505503602: /*diseaseStatus*/ return new String[] {"CodeableReference"}; + case -406395211: /*comorbidity*/ return new String[] {"CodeableReference"}; case -597168804: /*indication*/ return new String[] {"Reference"}; case -544509127: /*otherTherapy*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); @@ -554,11 +550,11 @@ public class ClinicalUseIssue extends DomainResource { @Override public Base addChild(String name) throws FHIRException { if (name.equals("diseaseSymptomProcedure")) { - this.diseaseSymptomProcedure = new CodeableConcept(); + this.diseaseSymptomProcedure = new CodeableReference(); return this.diseaseSymptomProcedure; } else if (name.equals("diseaseStatus")) { - this.diseaseStatus = new CodeableConcept(); + this.diseaseStatus = new CodeableReference(); return this.diseaseStatus; } else if (name.equals("comorbidity")) { @@ -585,8 +581,8 @@ public class ClinicalUseIssue extends DomainResource { dst.diseaseSymptomProcedure = diseaseSymptomProcedure == null ? null : diseaseSymptomProcedure.copy(); dst.diseaseStatus = diseaseStatus == null ? null : diseaseStatus.copy(); if (comorbidity != null) { - dst.comorbidity = new ArrayList(); - for (CodeableConcept i : comorbidity) + dst.comorbidity = new ArrayList(); + for (CodeableReference i : comorbidity) dst.comorbidity.add(i.copy()); }; if (indication != null) { @@ -640,18 +636,18 @@ public class ClinicalUseIssue extends DomainResource { /** * The type of relationship between the medicinal product indication or contraindication and another therapy. */ - @Child(name = "therapyRelationshipType", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=true) + @Child(name = "relationshipType", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="The type of relationship between the medicinal product indication or contraindication and another therapy", formalDefinition="The type of relationship between the medicinal product indication or contraindication and another therapy." ) - protected CodeableConcept therapyRelationshipType; + protected CodeableConcept relationshipType; /** * Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication. */ - @Child(name = "medication", type = {CodeableConcept.class, MedicinalProductDefinition.class, Medication.class, Substance.class, SubstanceDefinition.class}, order=2, min=1, max=1, modifier=false, summary=true) + @Child(name = "therapy", type = {CodeableReference.class}, order=2, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication", formalDefinition="Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication." ) - protected DataType medication; + protected CodeableReference therapy; - private static final long serialVersionUID = -923241363L; + private static final long serialVersionUID = -363440718L; /** * Constructor @@ -663,101 +659,71 @@ public class ClinicalUseIssue extends DomainResource { /** * Constructor */ - public ClinicalUseIssueContraindicationOtherTherapyComponent(CodeableConcept therapyRelationshipType, DataType medication) { + public ClinicalUseIssueContraindicationOtherTherapyComponent(CodeableConcept relationshipType, CodeableReference therapy) { super(); - this.setTherapyRelationshipType(therapyRelationshipType); - this.setMedication(medication); + this.setRelationshipType(relationshipType); + this.setTherapy(therapy); } /** - * @return {@link #therapyRelationshipType} (The type of relationship between the medicinal product indication or contraindication and another therapy.) + * @return {@link #relationshipType} (The type of relationship between the medicinal product indication or contraindication and another therapy.) */ - public CodeableConcept getTherapyRelationshipType() { - if (this.therapyRelationshipType == null) + public CodeableConcept getRelationshipType() { + if (this.relationshipType == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ClinicalUseIssueContraindicationOtherTherapyComponent.therapyRelationshipType"); + throw new Error("Attempt to auto-create ClinicalUseIssueContraindicationOtherTherapyComponent.relationshipType"); else if (Configuration.doAutoCreate()) - this.therapyRelationshipType = new CodeableConcept(); // cc - return this.therapyRelationshipType; + this.relationshipType = new CodeableConcept(); // cc + return this.relationshipType; } - public boolean hasTherapyRelationshipType() { - return this.therapyRelationshipType != null && !this.therapyRelationshipType.isEmpty(); + public boolean hasRelationshipType() { + return this.relationshipType != null && !this.relationshipType.isEmpty(); } /** - * @param value {@link #therapyRelationshipType} (The type of relationship between the medicinal product indication or contraindication and another therapy.) + * @param value {@link #relationshipType} (The type of relationship between the medicinal product indication or contraindication and another therapy.) */ - public ClinicalUseIssueContraindicationOtherTherapyComponent setTherapyRelationshipType(CodeableConcept value) { - this.therapyRelationshipType = value; + public ClinicalUseIssueContraindicationOtherTherapyComponent setRelationshipType(CodeableConcept value) { + this.relationshipType = value; return this; } /** - * @return {@link #medication} (Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication.) + * @return {@link #therapy} (Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication.) */ - public DataType getMedication() { - return this.medication; + public CodeableReference getTherapy() { + if (this.therapy == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ClinicalUseIssueContraindicationOtherTherapyComponent.therapy"); + else if (Configuration.doAutoCreate()) + this.therapy = new CodeableReference(); // cc + return this.therapy; + } + + public boolean hasTherapy() { + return this.therapy != null && !this.therapy.isEmpty(); } /** - * @return {@link #medication} (Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication.) + * @param value {@link #therapy} (Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication.) */ - public CodeableConcept getMedicationCodeableConcept() throws FHIRException { - if (this.medication == null) - this.medication = new CodeableConcept(); - if (!(this.medication instanceof CodeableConcept)) - throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.medication.getClass().getName()+" was encountered"); - return (CodeableConcept) this.medication; - } - - public boolean hasMedicationCodeableConcept() { - return this != null && this.medication instanceof CodeableConcept; - } - - /** - * @return {@link #medication} (Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication.) - */ - public Reference getMedicationReference() throws FHIRException { - if (this.medication == null) - this.medication = new Reference(); - if (!(this.medication instanceof Reference)) - throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.medication.getClass().getName()+" was encountered"); - return (Reference) this.medication; - } - - public boolean hasMedicationReference() { - return this != null && this.medication instanceof Reference; - } - - public boolean hasMedication() { - return this.medication != null && !this.medication.isEmpty(); - } - - /** - * @param value {@link #medication} (Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication.) - */ - public ClinicalUseIssueContraindicationOtherTherapyComponent setMedication(DataType value) { - if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) - throw new Error("Not the right type for ClinicalUseIssue.contraindication.otherTherapy.medication[x]: "+value.fhirType()); - this.medication = value; + public ClinicalUseIssueContraindicationOtherTherapyComponent setTherapy(CodeableReference value) { + this.therapy = value; return this; } protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("therapyRelationshipType", "CodeableConcept", "The type of relationship between the medicinal product indication or contraindication and another therapy.", 0, 1, therapyRelationshipType)); - children.add(new Property("medication[x]", "CodeableConcept|Reference(MedicinalProductDefinition|Medication|Substance|SubstanceDefinition)", "Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication.", 0, 1, medication)); + children.add(new Property("relationshipType", "CodeableConcept", "The type of relationship between the medicinal product indication or contraindication and another therapy.", 0, 1, relationshipType)); + children.add(new Property("therapy", "CodeableReference(MedicinalProductDefinition|Medication|Substance|SubstanceDefinition|ActivityDefinition)", "Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication.", 0, 1, therapy)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -551658469: /*therapyRelationshipType*/ return new Property("therapyRelationshipType", "CodeableConcept", "The type of relationship between the medicinal product indication or contraindication and another therapy.", 0, 1, therapyRelationshipType); - case 1458402129: /*medication[x]*/ return new Property("medication[x]", "CodeableConcept|Reference(MedicinalProductDefinition|Medication|Substance|SubstanceDefinition)", "Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication.", 0, 1, medication); - case 1998965455: /*medication*/ return new Property("medication[x]", "CodeableConcept|Reference(MedicinalProductDefinition|Medication|Substance|SubstanceDefinition)", "Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication.", 0, 1, medication); - case -209845038: /*medicationCodeableConcept*/ return new Property("medication[x]", "CodeableConcept", "Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication.", 0, 1, medication); - case 2104315196: /*medicationReference*/ return new Property("medication[x]", "Reference(MedicinalProductDefinition|Medication|Substance|SubstanceDefinition)", "Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication.", 0, 1, medication); + case -1602839150: /*relationshipType*/ return new Property("relationshipType", "CodeableConcept", "The type of relationship between the medicinal product indication or contraindication and another therapy.", 0, 1, relationshipType); + case -1349555095: /*therapy*/ return new Property("therapy", "CodeableReference(MedicinalProductDefinition|Medication|Substance|SubstanceDefinition|ActivityDefinition)", "Reference to a specific medication (active substance, medicinal product or class of products) as part of an indication or contraindication.", 0, 1, therapy); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -766,8 +732,8 @@ public class ClinicalUseIssue extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case -551658469: /*therapyRelationshipType*/ return this.therapyRelationshipType == null ? new Base[0] : new Base[] {this.therapyRelationshipType}; // CodeableConcept - case 1998965455: /*medication*/ return this.medication == null ? new Base[0] : new Base[] {this.medication}; // DataType + case -1602839150: /*relationshipType*/ return this.relationshipType == null ? new Base[0] : new Base[] {this.relationshipType}; // CodeableConcept + case -1349555095: /*therapy*/ return this.therapy == null ? new Base[0] : new Base[] {this.therapy}; // CodeableReference default: return super.getProperty(hash, name, checkValid); } @@ -776,11 +742,11 @@ public class ClinicalUseIssue extends DomainResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { - case -551658469: // therapyRelationshipType - this.therapyRelationshipType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + case -1602839150: // relationshipType + this.relationshipType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; - case 1998965455: // medication - this.medication = TypeConvertor.castToType(value); // DataType + case -1349555095: // therapy + this.therapy = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; default: return super.setProperty(hash, name, value); } @@ -789,10 +755,10 @@ public class ClinicalUseIssue extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("therapyRelationshipType")) { - this.therapyRelationshipType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("medication[x]")) { - this.medication = TypeConvertor.castToType(value); // DataType + if (name.equals("relationshipType")) { + this.relationshipType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("therapy")) { + this.therapy = TypeConvertor.castToCodeableReference(value); // CodeableReference } else return super.setProperty(name, value); return value; @@ -801,9 +767,8 @@ public class ClinicalUseIssue extends DomainResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { - case -551658469: return getTherapyRelationshipType(); - case 1458402129: return getMedication(); - case 1998965455: return getMedication(); + case -1602839150: return getRelationshipType(); + case -1349555095: return getTherapy(); default: return super.makeProperty(hash, name); } @@ -812,8 +777,8 @@ public class ClinicalUseIssue extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case -551658469: /*therapyRelationshipType*/ return new String[] {"CodeableConcept"}; - case 1998965455: /*medication*/ return new String[] {"CodeableConcept", "Reference"}; + case -1602839150: /*relationshipType*/ return new String[] {"CodeableConcept"}; + case -1349555095: /*therapy*/ return new String[] {"CodeableReference"}; default: return super.getTypesForProperty(hash, name); } @@ -821,17 +786,13 @@ public class ClinicalUseIssue extends DomainResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("therapyRelationshipType")) { - this.therapyRelationshipType = new CodeableConcept(); - return this.therapyRelationshipType; + if (name.equals("relationshipType")) { + this.relationshipType = new CodeableConcept(); + return this.relationshipType; } - else if (name.equals("medicationCodeableConcept")) { - this.medication = new CodeableConcept(); - return this.medication; - } - else if (name.equals("medicationReference")) { - this.medication = new Reference(); - return this.medication; + else if (name.equals("therapy")) { + this.therapy = new CodeableReference(); + return this.therapy; } else return super.addChild(name); @@ -845,8 +806,8 @@ public class ClinicalUseIssue extends DomainResource { public void copyValues(ClinicalUseIssueContraindicationOtherTherapyComponent dst) { super.copyValues(dst); - dst.therapyRelationshipType = therapyRelationshipType == null ? null : therapyRelationshipType.copy(); - dst.medication = medication == null ? null : medication.copy(); + dst.relationshipType = relationshipType == null ? null : relationshipType.copy(); + dst.therapy = therapy == null ? null : therapy.copy(); } @Override @@ -856,7 +817,7 @@ public class ClinicalUseIssue extends DomainResource { if (!(other_ instanceof ClinicalUseIssueContraindicationOtherTherapyComponent)) return false; ClinicalUseIssueContraindicationOtherTherapyComponent o = (ClinicalUseIssueContraindicationOtherTherapyComponent) other_; - return compareDeep(therapyRelationshipType, o.therapyRelationshipType, true) && compareDeep(medication, o.medication, true) + return compareDeep(relationshipType, o.relationshipType, true) && compareDeep(therapy, o.therapy, true) ; } @@ -871,7 +832,7 @@ public class ClinicalUseIssue extends DomainResource { } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(therapyRelationshipType, medication + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(relationshipType, therapy ); } @@ -887,53 +848,53 @@ public class ClinicalUseIssue extends DomainResource { /** * The situation that is being documented as an indicaton for this item. */ - @Child(name = "diseaseSymptomProcedure", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) + @Child(name = "diseaseSymptomProcedure", type = {CodeableReference.class}, order=1, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="The situation that is being documented as an indicaton for this item", formalDefinition="The situation that is being documented as an indicaton for this item." ) - protected CodeableConcept diseaseSymptomProcedure; + protected CodeableReference diseaseSymptomProcedure; /** * The status of the disease or symptom for the indication. */ - @Child(name = "diseaseStatus", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true) + @Child(name = "diseaseStatus", type = {CodeableReference.class}, order=2, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="The status of the disease or symptom for the indication", formalDefinition="The status of the disease or symptom for the indication." ) - protected CodeableConcept diseaseStatus; + protected CodeableReference diseaseStatus; /** * A comorbidity (concurrent condition) or coinfection as part of the indication. */ - @Child(name = "comorbidity", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "comorbidity", type = {CodeableReference.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="A comorbidity (concurrent condition) or coinfection as part of the indication", formalDefinition="A comorbidity (concurrent condition) or coinfection as part of the indication." ) - protected List comorbidity; + protected List comorbidity; /** - * For an indication - the intended effect, aim or strategy to be achieved. + * The intended effect, aim or strategy to be achieved. */ - @Child(name = "intendedEffect", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="For an indication - the intended effect, aim or strategy to be achieved", formalDefinition="For an indication - the intended effect, aim or strategy to be achieved." ) - protected CodeableConcept intendedEffect; + @Child(name = "intendedEffect", type = {CodeableReference.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="The intended effect, aim or strategy to be achieved", formalDefinition="The intended effect, aim or strategy to be achieved." ) + protected CodeableReference intendedEffect; /** - * For an indication - timing or duration information. + * Timing or duration information. */ @Child(name = "duration", type = {Quantity.class}, order=5, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="For an indication - timing or duration information", formalDefinition="For an indication - timing or duration information." ) + @Description(shortDefinition="Timing or duration information", formalDefinition="Timing or duration information." ) protected Quantity duration; /** - * For an indicaton - the specific undesirable effects of the medicinal product. + * The specific undesirable effects of the medicinal product. */ @Child(name = "undesirableEffect", type = {ClinicalUseIssue.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="For an indicaton - the specific undesirable effects of the medicinal product", formalDefinition="For an indicaton - the specific undesirable effects of the medicinal product." ) + @Description(shortDefinition="The specific undesirable effects of the medicinal product", formalDefinition="The specific undesirable effects of the medicinal product." ) protected List undesirableEffect; /** - * Information about the use of the medicinal product in relation to other therapies described as part of the contraindication. + * Information about the use of the medicinal product in relation to other therapies described as part of the indication. */ @Child(name = "otherTherapy", type = {ClinicalUseIssueContraindicationOtherTherapyComponent.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Information about the use of the medicinal product in relation to other therapies described as part of the contraindication", formalDefinition="Information about the use of the medicinal product in relation to other therapies described as part of the contraindication." ) + @Description(shortDefinition="Information about the use of the medicinal product in relation to other therapies described as part of the indication", formalDefinition="Information about the use of the medicinal product in relation to other therapies described as part of the indication." ) protected List otherTherapy; - private static final long serialVersionUID = -631720121L; + private static final long serialVersionUID = 1637864097L; /** * Constructor @@ -945,12 +906,12 @@ public class ClinicalUseIssue extends DomainResource { /** * @return {@link #diseaseSymptomProcedure} (The situation that is being documented as an indicaton for this item.) */ - public CodeableConcept getDiseaseSymptomProcedure() { + public CodeableReference getDiseaseSymptomProcedure() { if (this.diseaseSymptomProcedure == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ClinicalUseIssueIndicationComponent.diseaseSymptomProcedure"); else if (Configuration.doAutoCreate()) - this.diseaseSymptomProcedure = new CodeableConcept(); // cc + this.diseaseSymptomProcedure = new CodeableReference(); // cc return this.diseaseSymptomProcedure; } @@ -961,7 +922,7 @@ public class ClinicalUseIssue extends DomainResource { /** * @param value {@link #diseaseSymptomProcedure} (The situation that is being documented as an indicaton for this item.) */ - public ClinicalUseIssueIndicationComponent setDiseaseSymptomProcedure(CodeableConcept value) { + public ClinicalUseIssueIndicationComponent setDiseaseSymptomProcedure(CodeableReference value) { this.diseaseSymptomProcedure = value; return this; } @@ -969,12 +930,12 @@ public class ClinicalUseIssue extends DomainResource { /** * @return {@link #diseaseStatus} (The status of the disease or symptom for the indication.) */ - public CodeableConcept getDiseaseStatus() { + public CodeableReference getDiseaseStatus() { if (this.diseaseStatus == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ClinicalUseIssueIndicationComponent.diseaseStatus"); else if (Configuration.doAutoCreate()) - this.diseaseStatus = new CodeableConcept(); // cc + this.diseaseStatus = new CodeableReference(); // cc return this.diseaseStatus; } @@ -985,7 +946,7 @@ public class ClinicalUseIssue extends DomainResource { /** * @param value {@link #diseaseStatus} (The status of the disease or symptom for the indication.) */ - public ClinicalUseIssueIndicationComponent setDiseaseStatus(CodeableConcept value) { + public ClinicalUseIssueIndicationComponent setDiseaseStatus(CodeableReference value) { this.diseaseStatus = value; return this; } @@ -993,16 +954,16 @@ public class ClinicalUseIssue extends DomainResource { /** * @return {@link #comorbidity} (A comorbidity (concurrent condition) or coinfection as part of the indication.) */ - public List getComorbidity() { + public List getComorbidity() { if (this.comorbidity == null) - this.comorbidity = new ArrayList(); + this.comorbidity = new ArrayList(); return this.comorbidity; } /** * @return Returns a reference to this for easy method chaining */ - public ClinicalUseIssueIndicationComponent setComorbidity(List theComorbidity) { + public ClinicalUseIssueIndicationComponent setComorbidity(List theComorbidity) { this.comorbidity = theComorbidity; return this; } @@ -1010,25 +971,25 @@ public class ClinicalUseIssue extends DomainResource { public boolean hasComorbidity() { if (this.comorbidity == null) return false; - for (CodeableConcept item : this.comorbidity) + for (CodeableReference item : this.comorbidity) if (!item.isEmpty()) return true; return false; } - public CodeableConcept addComorbidity() { //3 - CodeableConcept t = new CodeableConcept(); + public CodeableReference addComorbidity() { //3 + CodeableReference t = new CodeableReference(); if (this.comorbidity == null) - this.comorbidity = new ArrayList(); + this.comorbidity = new ArrayList(); this.comorbidity.add(t); return t; } - public ClinicalUseIssueIndicationComponent addComorbidity(CodeableConcept t) { //3 + public ClinicalUseIssueIndicationComponent addComorbidity(CodeableReference t) { //3 if (t == null) return this; if (this.comorbidity == null) - this.comorbidity = new ArrayList(); + this.comorbidity = new ArrayList(); this.comorbidity.add(t); return this; } @@ -1036,7 +997,7 @@ public class ClinicalUseIssue extends DomainResource { /** * @return The first repetition of repeating field {@link #comorbidity}, creating it if it does not already exist {3} */ - public CodeableConcept getComorbidityFirstRep() { + public CodeableReference getComorbidityFirstRep() { if (getComorbidity().isEmpty()) { addComorbidity(); } @@ -1044,14 +1005,14 @@ public class ClinicalUseIssue extends DomainResource { } /** - * @return {@link #intendedEffect} (For an indication - the intended effect, aim or strategy to be achieved.) + * @return {@link #intendedEffect} (The intended effect, aim or strategy to be achieved.) */ - public CodeableConcept getIntendedEffect() { + public CodeableReference getIntendedEffect() { if (this.intendedEffect == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ClinicalUseIssueIndicationComponent.intendedEffect"); else if (Configuration.doAutoCreate()) - this.intendedEffect = new CodeableConcept(); // cc + this.intendedEffect = new CodeableReference(); // cc return this.intendedEffect; } @@ -1060,15 +1021,15 @@ public class ClinicalUseIssue extends DomainResource { } /** - * @param value {@link #intendedEffect} (For an indication - the intended effect, aim or strategy to be achieved.) + * @param value {@link #intendedEffect} (The intended effect, aim or strategy to be achieved.) */ - public ClinicalUseIssueIndicationComponent setIntendedEffect(CodeableConcept value) { + public ClinicalUseIssueIndicationComponent setIntendedEffect(CodeableReference value) { this.intendedEffect = value; return this; } /** - * @return {@link #duration} (For an indication - timing or duration information.) + * @return {@link #duration} (Timing or duration information.) */ public Quantity getDuration() { if (this.duration == null) @@ -1084,7 +1045,7 @@ public class ClinicalUseIssue extends DomainResource { } /** - * @param value {@link #duration} (For an indication - timing or duration information.) + * @param value {@link #duration} (Timing or duration information.) */ public ClinicalUseIssueIndicationComponent setDuration(Quantity value) { this.duration = value; @@ -1092,7 +1053,7 @@ public class ClinicalUseIssue extends DomainResource { } /** - * @return {@link #undesirableEffect} (For an indicaton - the specific undesirable effects of the medicinal product.) + * @return {@link #undesirableEffect} (The specific undesirable effects of the medicinal product.) */ public List getUndesirableEffect() { if (this.undesirableEffect == null) @@ -1145,7 +1106,7 @@ public class ClinicalUseIssue extends DomainResource { } /** - * @return {@link #otherTherapy} (Information about the use of the medicinal product in relation to other therapies described as part of the contraindication.) + * @return {@link #otherTherapy} (Information about the use of the medicinal product in relation to other therapies described as part of the indication.) */ public List getOtherTherapy() { if (this.otherTherapy == null) @@ -1199,25 +1160,25 @@ public class ClinicalUseIssue extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("diseaseSymptomProcedure", "CodeableConcept", "The situation that is being documented as an indicaton for this item.", 0, 1, diseaseSymptomProcedure)); - children.add(new Property("diseaseStatus", "CodeableConcept", "The status of the disease or symptom for the indication.", 0, 1, diseaseStatus)); - children.add(new Property("comorbidity", "CodeableConcept", "A comorbidity (concurrent condition) or coinfection as part of the indication.", 0, java.lang.Integer.MAX_VALUE, comorbidity)); - children.add(new Property("intendedEffect", "CodeableConcept", "For an indication - the intended effect, aim or strategy to be achieved.", 0, 1, intendedEffect)); - children.add(new Property("duration", "Quantity", "For an indication - timing or duration information.", 0, 1, duration)); - children.add(new Property("undesirableEffect", "Reference(ClinicalUseIssue)", "For an indicaton - the specific undesirable effects of the medicinal product.", 0, java.lang.Integer.MAX_VALUE, undesirableEffect)); - children.add(new Property("otherTherapy", "@ClinicalUseIssue.contraindication.otherTherapy", "Information about the use of the medicinal product in relation to other therapies described as part of the contraindication.", 0, java.lang.Integer.MAX_VALUE, otherTherapy)); + children.add(new Property("diseaseSymptomProcedure", "CodeableReference(ObservationDefinition)", "The situation that is being documented as an indicaton for this item.", 0, 1, diseaseSymptomProcedure)); + children.add(new Property("diseaseStatus", "CodeableReference(ObservationDefinition)", "The status of the disease or symptom for the indication.", 0, 1, diseaseStatus)); + children.add(new Property("comorbidity", "CodeableReference(ObservationDefinition)", "A comorbidity (concurrent condition) or coinfection as part of the indication.", 0, java.lang.Integer.MAX_VALUE, comorbidity)); + children.add(new Property("intendedEffect", "CodeableReference(ObservationDefinition)", "The intended effect, aim or strategy to be achieved.", 0, 1, intendedEffect)); + children.add(new Property("duration", "Quantity", "Timing or duration information.", 0, 1, duration)); + children.add(new Property("undesirableEffect", "Reference(ClinicalUseIssue)", "The specific undesirable effects of the medicinal product.", 0, java.lang.Integer.MAX_VALUE, undesirableEffect)); + children.add(new Property("otherTherapy", "@ClinicalUseIssue.contraindication.otherTherapy", "Information about the use of the medicinal product in relation to other therapies described as part of the indication.", 0, java.lang.Integer.MAX_VALUE, otherTherapy)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -1497395130: /*diseaseSymptomProcedure*/ return new Property("diseaseSymptomProcedure", "CodeableConcept", "The situation that is being documented as an indicaton for this item.", 0, 1, diseaseSymptomProcedure); - case -505503602: /*diseaseStatus*/ return new Property("diseaseStatus", "CodeableConcept", "The status of the disease or symptom for the indication.", 0, 1, diseaseStatus); - case -406395211: /*comorbidity*/ return new Property("comorbidity", "CodeableConcept", "A comorbidity (concurrent condition) or coinfection as part of the indication.", 0, java.lang.Integer.MAX_VALUE, comorbidity); - case 1587112348: /*intendedEffect*/ return new Property("intendedEffect", "CodeableConcept", "For an indication - the intended effect, aim or strategy to be achieved.", 0, 1, intendedEffect); - case -1992012396: /*duration*/ return new Property("duration", "Quantity", "For an indication - timing or duration information.", 0, 1, duration); - case 444367565: /*undesirableEffect*/ return new Property("undesirableEffect", "Reference(ClinicalUseIssue)", "For an indicaton - the specific undesirable effects of the medicinal product.", 0, java.lang.Integer.MAX_VALUE, undesirableEffect); - case -544509127: /*otherTherapy*/ return new Property("otherTherapy", "@ClinicalUseIssue.contraindication.otherTherapy", "Information about the use of the medicinal product in relation to other therapies described as part of the contraindication.", 0, java.lang.Integer.MAX_VALUE, otherTherapy); + case -1497395130: /*diseaseSymptomProcedure*/ return new Property("diseaseSymptomProcedure", "CodeableReference(ObservationDefinition)", "The situation that is being documented as an indicaton for this item.", 0, 1, diseaseSymptomProcedure); + case -505503602: /*diseaseStatus*/ return new Property("diseaseStatus", "CodeableReference(ObservationDefinition)", "The status of the disease or symptom for the indication.", 0, 1, diseaseStatus); + case -406395211: /*comorbidity*/ return new Property("comorbidity", "CodeableReference(ObservationDefinition)", "A comorbidity (concurrent condition) or coinfection as part of the indication.", 0, java.lang.Integer.MAX_VALUE, comorbidity); + case 1587112348: /*intendedEffect*/ return new Property("intendedEffect", "CodeableReference(ObservationDefinition)", "The intended effect, aim or strategy to be achieved.", 0, 1, intendedEffect); + case -1992012396: /*duration*/ return new Property("duration", "Quantity", "Timing or duration information.", 0, 1, duration); + case 444367565: /*undesirableEffect*/ return new Property("undesirableEffect", "Reference(ClinicalUseIssue)", "The specific undesirable effects of the medicinal product.", 0, java.lang.Integer.MAX_VALUE, undesirableEffect); + case -544509127: /*otherTherapy*/ return new Property("otherTherapy", "@ClinicalUseIssue.contraindication.otherTherapy", "Information about the use of the medicinal product in relation to other therapies described as part of the indication.", 0, java.lang.Integer.MAX_VALUE, otherTherapy); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -1226,10 +1187,10 @@ public class ClinicalUseIssue extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case -1497395130: /*diseaseSymptomProcedure*/ return this.diseaseSymptomProcedure == null ? new Base[0] : new Base[] {this.diseaseSymptomProcedure}; // CodeableConcept - case -505503602: /*diseaseStatus*/ return this.diseaseStatus == null ? new Base[0] : new Base[] {this.diseaseStatus}; // CodeableConcept - case -406395211: /*comorbidity*/ return this.comorbidity == null ? new Base[0] : this.comorbidity.toArray(new Base[this.comorbidity.size()]); // CodeableConcept - case 1587112348: /*intendedEffect*/ return this.intendedEffect == null ? new Base[0] : new Base[] {this.intendedEffect}; // CodeableConcept + case -1497395130: /*diseaseSymptomProcedure*/ return this.diseaseSymptomProcedure == null ? new Base[0] : new Base[] {this.diseaseSymptomProcedure}; // CodeableReference + case -505503602: /*diseaseStatus*/ return this.diseaseStatus == null ? new Base[0] : new Base[] {this.diseaseStatus}; // CodeableReference + case -406395211: /*comorbidity*/ return this.comorbidity == null ? new Base[0] : this.comorbidity.toArray(new Base[this.comorbidity.size()]); // CodeableReference + case 1587112348: /*intendedEffect*/ return this.intendedEffect == null ? new Base[0] : new Base[] {this.intendedEffect}; // CodeableReference case -1992012396: /*duration*/ return this.duration == null ? new Base[0] : new Base[] {this.duration}; // Quantity case 444367565: /*undesirableEffect*/ return this.undesirableEffect == null ? new Base[0] : this.undesirableEffect.toArray(new Base[this.undesirableEffect.size()]); // Reference case -544509127: /*otherTherapy*/ return this.otherTherapy == null ? new Base[0] : this.otherTherapy.toArray(new Base[this.otherTherapy.size()]); // ClinicalUseIssueContraindicationOtherTherapyComponent @@ -1242,16 +1203,16 @@ public class ClinicalUseIssue extends DomainResource { public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -1497395130: // diseaseSymptomProcedure - this.diseaseSymptomProcedure = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.diseaseSymptomProcedure = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; case -505503602: // diseaseStatus - this.diseaseStatus = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.diseaseStatus = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; case -406395211: // comorbidity - this.getComorbidity().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + this.getComorbidity().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference return value; case 1587112348: // intendedEffect - this.intendedEffect = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.intendedEffect = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; case -1992012396: // duration this.duration = TypeConvertor.castToQuantity(value); // Quantity @@ -1270,13 +1231,13 @@ public class ClinicalUseIssue extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("diseaseSymptomProcedure")) { - this.diseaseSymptomProcedure = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.diseaseSymptomProcedure = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("diseaseStatus")) { - this.diseaseStatus = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.diseaseStatus = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("comorbidity")) { - this.getComorbidity().add(TypeConvertor.castToCodeableConcept(value)); + this.getComorbidity().add(TypeConvertor.castToCodeableReference(value)); } else if (name.equals("intendedEffect")) { - this.intendedEffect = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.intendedEffect = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("duration")) { this.duration = TypeConvertor.castToQuantity(value); // Quantity } else if (name.equals("undesirableEffect")) { @@ -1306,10 +1267,10 @@ public class ClinicalUseIssue extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case -1497395130: /*diseaseSymptomProcedure*/ return new String[] {"CodeableConcept"}; - case -505503602: /*diseaseStatus*/ return new String[] {"CodeableConcept"}; - case -406395211: /*comorbidity*/ return new String[] {"CodeableConcept"}; - case 1587112348: /*intendedEffect*/ return new String[] {"CodeableConcept"}; + case -1497395130: /*diseaseSymptomProcedure*/ return new String[] {"CodeableReference"}; + case -505503602: /*diseaseStatus*/ return new String[] {"CodeableReference"}; + case -406395211: /*comorbidity*/ return new String[] {"CodeableReference"}; + case 1587112348: /*intendedEffect*/ return new String[] {"CodeableReference"}; case -1992012396: /*duration*/ return new String[] {"Quantity"}; case 444367565: /*undesirableEffect*/ return new String[] {"Reference"}; case -544509127: /*otherTherapy*/ return new String[] {"@ClinicalUseIssue.contraindication.otherTherapy"}; @@ -1321,18 +1282,18 @@ public class ClinicalUseIssue extends DomainResource { @Override public Base addChild(String name) throws FHIRException { if (name.equals("diseaseSymptomProcedure")) { - this.diseaseSymptomProcedure = new CodeableConcept(); + this.diseaseSymptomProcedure = new CodeableReference(); return this.diseaseSymptomProcedure; } else if (name.equals("diseaseStatus")) { - this.diseaseStatus = new CodeableConcept(); + this.diseaseStatus = new CodeableReference(); return this.diseaseStatus; } else if (name.equals("comorbidity")) { return addComorbidity(); } else if (name.equals("intendedEffect")) { - this.intendedEffect = new CodeableConcept(); + this.intendedEffect = new CodeableReference(); return this.intendedEffect; } else if (name.equals("duration")) { @@ -1360,8 +1321,8 @@ public class ClinicalUseIssue extends DomainResource { dst.diseaseSymptomProcedure = diseaseSymptomProcedure == null ? null : diseaseSymptomProcedure.copy(); dst.diseaseStatus = diseaseStatus == null ? null : diseaseStatus.copy(); if (comorbidity != null) { - dst.comorbidity = new ArrayList(); - for (CodeableConcept i : comorbidity) + dst.comorbidity = new ArrayList(); + for (CodeableReference i : comorbidity) dst.comorbidity.add(i.copy()); }; dst.intendedEffect = intendedEffect == null ? null : intendedEffect.copy(); @@ -1416,10 +1377,10 @@ public class ClinicalUseIssue extends DomainResource { @Block() public static class ClinicalUseIssueInteractionComponent extends BackboneElement implements IBaseBackboneElement { /** - * The specific medication, food or laboratory test that interacts. + * The specific medication, food, substance or laboratory test that interacts. */ @Child(name = "interactant", type = {}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="The specific medication, food or laboratory test that interacts", formalDefinition="The specific medication, food or laboratory test that interacts." ) + @Description(shortDefinition="The specific medication, food, substance or laboratory test that interacts", formalDefinition="The specific medication, food, substance or laboratory test that interacts." ) protected List interactant; /** @@ -1432,9 +1393,9 @@ public class ClinicalUseIssue extends DomainResource { /** * The effect of the interaction, for example "reduced gastric absorption of primary medication". */ - @Child(name = "effect", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Child(name = "effect", type = {CodeableReference.class}, order=3, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="The effect of the interaction, for example \"reduced gastric absorption of primary medication\"", formalDefinition="The effect of the interaction, for example \"reduced gastric absorption of primary medication\"." ) - protected CodeableConcept effect; + protected CodeableReference effect; /** * The incidence of the interaction, e.g. theoretical, observed. @@ -1450,7 +1411,7 @@ public class ClinicalUseIssue extends DomainResource { @Description(shortDefinition="Actions for managing the interaction", formalDefinition="Actions for managing the interaction." ) protected CodeableConcept management; - private static final long serialVersionUID = -910262208L; + private static final long serialVersionUID = -104458755L; /** * Constructor @@ -1460,7 +1421,7 @@ public class ClinicalUseIssue extends DomainResource { } /** - * @return {@link #interactant} (The specific medication, food or laboratory test that interacts.) + * @return {@link #interactant} (The specific medication, food, substance or laboratory test that interacts.) */ public List getInteractant() { if (this.interactant == null) @@ -1539,12 +1500,12 @@ public class ClinicalUseIssue extends DomainResource { /** * @return {@link #effect} (The effect of the interaction, for example "reduced gastric absorption of primary medication".) */ - public CodeableConcept getEffect() { + public CodeableReference getEffect() { if (this.effect == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ClinicalUseIssueInteractionComponent.effect"); else if (Configuration.doAutoCreate()) - this.effect = new CodeableConcept(); // cc + this.effect = new CodeableReference(); // cc return this.effect; } @@ -1555,7 +1516,7 @@ public class ClinicalUseIssue extends DomainResource { /** * @param value {@link #effect} (The effect of the interaction, for example "reduced gastric absorption of primary medication".) */ - public ClinicalUseIssueInteractionComponent setEffect(CodeableConcept value) { + public ClinicalUseIssueInteractionComponent setEffect(CodeableReference value) { this.effect = value; return this; } @@ -1610,9 +1571,9 @@ public class ClinicalUseIssue extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("interactant", "", "The specific medication, food or laboratory test that interacts.", 0, java.lang.Integer.MAX_VALUE, interactant)); + children.add(new Property("interactant", "", "The specific medication, food, substance or laboratory test that interacts.", 0, java.lang.Integer.MAX_VALUE, interactant)); children.add(new Property("type", "CodeableConcept", "The type of the interaction e.g. drug-drug interaction, drug-food interaction, drug-lab test interaction.", 0, 1, type)); - children.add(new Property("effect", "CodeableConcept", "The effect of the interaction, for example \"reduced gastric absorption of primary medication\".", 0, 1, effect)); + children.add(new Property("effect", "CodeableReference(ObservationDefinition)", "The effect of the interaction, for example \"reduced gastric absorption of primary medication\".", 0, 1, effect)); children.add(new Property("incidence", "CodeableConcept", "The incidence of the interaction, e.g. theoretical, observed.", 0, 1, incidence)); children.add(new Property("management", "CodeableConcept", "Actions for managing the interaction.", 0, 1, management)); } @@ -1620,9 +1581,9 @@ public class ClinicalUseIssue extends DomainResource { @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 1844097009: /*interactant*/ return new Property("interactant", "", "The specific medication, food or laboratory test that interacts.", 0, java.lang.Integer.MAX_VALUE, interactant); + case 1844097009: /*interactant*/ return new Property("interactant", "", "The specific medication, food, substance or laboratory test that interacts.", 0, java.lang.Integer.MAX_VALUE, interactant); case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The type of the interaction e.g. drug-drug interaction, drug-food interaction, drug-lab test interaction.", 0, 1, type); - case -1306084975: /*effect*/ return new Property("effect", "CodeableConcept", "The effect of the interaction, for example \"reduced gastric absorption of primary medication\".", 0, 1, effect); + case -1306084975: /*effect*/ return new Property("effect", "CodeableReference(ObservationDefinition)", "The effect of the interaction, for example \"reduced gastric absorption of primary medication\".", 0, 1, effect); case -1598467132: /*incidence*/ return new Property("incidence", "CodeableConcept", "The incidence of the interaction, e.g. theoretical, observed.", 0, 1, incidence); case -1799980989: /*management*/ return new Property("management", "CodeableConcept", "Actions for managing the interaction.", 0, 1, management); default: return super.getNamedProperty(_hash, _name, _checkValid); @@ -1635,7 +1596,7 @@ public class ClinicalUseIssue extends DomainResource { switch (hash) { case 1844097009: /*interactant*/ return this.interactant == null ? new Base[0] : this.interactant.toArray(new Base[this.interactant.size()]); // ClinicalUseIssueInteractionInteractantComponent case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept - case -1306084975: /*effect*/ return this.effect == null ? new Base[0] : new Base[] {this.effect}; // CodeableConcept + case -1306084975: /*effect*/ return this.effect == null ? new Base[0] : new Base[] {this.effect}; // CodeableReference case -1598467132: /*incidence*/ return this.incidence == null ? new Base[0] : new Base[] {this.incidence}; // CodeableConcept case -1799980989: /*management*/ return this.management == null ? new Base[0] : new Base[] {this.management}; // CodeableConcept default: return super.getProperty(hash, name, checkValid); @@ -1653,7 +1614,7 @@ public class ClinicalUseIssue extends DomainResource { this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; case -1306084975: // effect - this.effect = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.effect = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; case -1598467132: // incidence this.incidence = TypeConvertor.castToCodeableConcept(value); // CodeableConcept @@ -1673,7 +1634,7 @@ public class ClinicalUseIssue extends DomainResource { } else if (name.equals("type")) { this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("effect")) { - this.effect = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.effect = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("incidence")) { this.incidence = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("management")) { @@ -1701,7 +1662,7 @@ public class ClinicalUseIssue extends DomainResource { switch (hash) { case 1844097009: /*interactant*/ return new String[] {}; case 3575610: /*type*/ return new String[] {"CodeableConcept"}; - case -1306084975: /*effect*/ return new String[] {"CodeableConcept"}; + case -1306084975: /*effect*/ return new String[] {"CodeableReference"}; case -1598467132: /*incidence*/ return new String[] {"CodeableConcept"}; case -1799980989: /*management*/ return new String[] {"CodeableConcept"}; default: return super.getTypesForProperty(hash, name); @@ -1719,7 +1680,7 @@ public class ClinicalUseIssue extends DomainResource { return this.type; } else if (name.equals("effect")) { - this.effect = new CodeableConcept(); + this.effect = new CodeableReference(); return this.effect; } else if (name.equals("incidence")) { @@ -1989,9 +1950,9 @@ public class ClinicalUseIssue extends DomainResource { /** * The situation in which the undesirable effect may manifest. */ - @Child(name = "symptomConditionEffect", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) + @Child(name = "symptomConditionEffect", type = {CodeableReference.class}, order=1, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="The situation in which the undesirable effect may manifest", formalDefinition="The situation in which the undesirable effect may manifest." ) - protected CodeableConcept symptomConditionEffect; + protected CodeableReference symptomConditionEffect; /** * High level classification of the effect. @@ -2007,7 +1968,7 @@ public class ClinicalUseIssue extends DomainResource { @Description(shortDefinition="How often the effect is seen", formalDefinition="How often the effect is seen." ) protected CodeableConcept frequencyOfOccurrence; - private static final long serialVersionUID = 503141026L; + private static final long serialVersionUID = -55472609L; /** * Constructor @@ -2019,12 +1980,12 @@ public class ClinicalUseIssue extends DomainResource { /** * @return {@link #symptomConditionEffect} (The situation in which the undesirable effect may manifest.) */ - public CodeableConcept getSymptomConditionEffect() { + public CodeableReference getSymptomConditionEffect() { if (this.symptomConditionEffect == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ClinicalUseIssueUndesirableEffectComponent.symptomConditionEffect"); else if (Configuration.doAutoCreate()) - this.symptomConditionEffect = new CodeableConcept(); // cc + this.symptomConditionEffect = new CodeableReference(); // cc return this.symptomConditionEffect; } @@ -2035,7 +1996,7 @@ public class ClinicalUseIssue extends DomainResource { /** * @param value {@link #symptomConditionEffect} (The situation in which the undesirable effect may manifest.) */ - public ClinicalUseIssueUndesirableEffectComponent setSymptomConditionEffect(CodeableConcept value) { + public ClinicalUseIssueUndesirableEffectComponent setSymptomConditionEffect(CodeableReference value) { this.symptomConditionEffect = value; return this; } @@ -2090,7 +2051,7 @@ public class ClinicalUseIssue extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("symptomConditionEffect", "CodeableConcept", "The situation in which the undesirable effect may manifest.", 0, 1, symptomConditionEffect)); + children.add(new Property("symptomConditionEffect", "CodeableReference(ObservationDefinition)", "The situation in which the undesirable effect may manifest.", 0, 1, symptomConditionEffect)); children.add(new Property("classification", "CodeableConcept", "High level classification of the effect.", 0, 1, classification)); children.add(new Property("frequencyOfOccurrence", "CodeableConcept", "How often the effect is seen.", 0, 1, frequencyOfOccurrence)); } @@ -2098,7 +2059,7 @@ public class ClinicalUseIssue extends DomainResource { @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -650549981: /*symptomConditionEffect*/ return new Property("symptomConditionEffect", "CodeableConcept", "The situation in which the undesirable effect may manifest.", 0, 1, symptomConditionEffect); + case -650549981: /*symptomConditionEffect*/ return new Property("symptomConditionEffect", "CodeableReference(ObservationDefinition)", "The situation in which the undesirable effect may manifest.", 0, 1, symptomConditionEffect); case 382350310: /*classification*/ return new Property("classification", "CodeableConcept", "High level classification of the effect.", 0, 1, classification); case 791175812: /*frequencyOfOccurrence*/ return new Property("frequencyOfOccurrence", "CodeableConcept", "How often the effect is seen.", 0, 1, frequencyOfOccurrence); default: return super.getNamedProperty(_hash, _name, _checkValid); @@ -2109,7 +2070,7 @@ public class ClinicalUseIssue extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case -650549981: /*symptomConditionEffect*/ return this.symptomConditionEffect == null ? new Base[0] : new Base[] {this.symptomConditionEffect}; // CodeableConcept + case -650549981: /*symptomConditionEffect*/ return this.symptomConditionEffect == null ? new Base[0] : new Base[] {this.symptomConditionEffect}; // CodeableReference case 382350310: /*classification*/ return this.classification == null ? new Base[0] : new Base[] {this.classification}; // CodeableConcept case 791175812: /*frequencyOfOccurrence*/ return this.frequencyOfOccurrence == null ? new Base[0] : new Base[] {this.frequencyOfOccurrence}; // CodeableConcept default: return super.getProperty(hash, name, checkValid); @@ -2121,7 +2082,7 @@ public class ClinicalUseIssue extends DomainResource { public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -650549981: // symptomConditionEffect - this.symptomConditionEffect = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.symptomConditionEffect = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; case 382350310: // classification this.classification = TypeConvertor.castToCodeableConcept(value); // CodeableConcept @@ -2137,7 +2098,7 @@ public class ClinicalUseIssue extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("symptomConditionEffect")) { - this.symptomConditionEffect = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.symptomConditionEffect = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("classification")) { this.classification = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("frequencyOfOccurrence")) { @@ -2161,7 +2122,7 @@ public class ClinicalUseIssue extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case -650549981: /*symptomConditionEffect*/ return new String[] {"CodeableConcept"}; + case -650549981: /*symptomConditionEffect*/ return new String[] {"CodeableReference"}; case 382350310: /*classification*/ return new String[] {"CodeableConcept"}; case 791175812: /*frequencyOfOccurrence*/ return new String[] {"CodeableConcept"}; default: return super.getTypesForProperty(hash, name); @@ -2172,7 +2133,7 @@ public class ClinicalUseIssue extends DomainResource { @Override public Base addChild(String name) throws FHIRException { if (name.equals("symptomConditionEffect")) { - this.symptomConditionEffect = new CodeableConcept(); + this.symptomConditionEffect = new CodeableReference(); return this.symptomConditionEffect; } else if (name.equals("classification")) { @@ -3013,43 +2974,95 @@ public class ClinicalUseIssue extends DomainResource { /** * Search parameter: contraindication *

- * Description: The situation that is being documented as contraindicating against this item
+ * Description: The situation that is being documented as contraindicating against this item, as a code
* Type: token
* Path: ClinicalUseIssue.contraindication.diseaseSymptomProcedure
*

*/ - @SearchParamDefinition(name="contraindication", path="ClinicalUseIssue.contraindication.diseaseSymptomProcedure", description="The situation that is being documented as contraindicating against this item", type="token" ) + @SearchParamDefinition(name="contraindication", path="ClinicalUseIssue.contraindication.diseaseSymptomProcedure", description="The situation that is being documented as contraindicating against this item, as a code", type="token" ) public static final String SP_CONTRAINDICATION = "contraindication"; /** * Fluent Client search parameter constant for contraindication *

- * Description: The situation that is being documented as contraindicating against this item
+ * Description: The situation that is being documented as contraindicating against this item, as a code
* Type: token
* Path: ClinicalUseIssue.contraindication.diseaseSymptomProcedure
*

*/ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTRAINDICATION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTRAINDICATION); + /** + * Search parameter: contraindication-reference + *

+ * Description: The situation that is being documented as contraindicating against this item, as a reference
+ * Type: reference
+ * Path: ClinicalUseIssue.contraindication.diseaseSymptomProcedure
+ *

+ */ + @SearchParamDefinition(name="contraindication-reference", path="ClinicalUseIssue.contraindication.diseaseSymptomProcedure", description="The situation that is being documented as contraindicating against this item, as a reference", type="reference" ) + public static final String SP_CONTRAINDICATION_REFERENCE = "contraindication-reference"; + /** + * Fluent Client search parameter constant for contraindication-reference + *

+ * Description: The situation that is being documented as contraindicating against this item, as a reference
+ * Type: reference
+ * Path: ClinicalUseIssue.contraindication.diseaseSymptomProcedure
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam CONTRAINDICATION_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_CONTRAINDICATION_REFERENCE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ClinicalUseIssue:contraindication-reference". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_CONTRAINDICATION_REFERENCE = new ca.uhn.fhir.model.api.Include("ClinicalUseIssue:contraindication-reference").toLocked(); + /** * Search parameter: effect *

- * Description: The situation in which the undesirable effect may manifest
+ * Description: The situation in which the undesirable effect may manifest, as a code
* Type: token
* Path: ClinicalUseIssue.undesirableEffect.symptomConditionEffect
*

*/ - @SearchParamDefinition(name="effect", path="ClinicalUseIssue.undesirableEffect.symptomConditionEffect", description="The situation in which the undesirable effect may manifest", type="token" ) + @SearchParamDefinition(name="effect", path="ClinicalUseIssue.undesirableEffect.symptomConditionEffect", description="The situation in which the undesirable effect may manifest, as a code", type="token" ) public static final String SP_EFFECT = "effect"; /** * Fluent Client search parameter constant for effect *

- * Description: The situation in which the undesirable effect may manifest
+ * Description: The situation in which the undesirable effect may manifest, as a code
* Type: token
* Path: ClinicalUseIssue.undesirableEffect.symptomConditionEffect
*

*/ public static final ca.uhn.fhir.rest.gclient.TokenClientParam EFFECT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EFFECT); + /** + * Search parameter: effect-reference + *

+ * Description: The situation in which the undesirable effect may manifest, as a reference
+ * Type: reference
+ * Path: ClinicalUseIssue.undesirableEffect.symptomConditionEffect
+ *

+ */ + @SearchParamDefinition(name="effect-reference", path="ClinicalUseIssue.undesirableEffect.symptomConditionEffect", description="The situation in which the undesirable effect may manifest, as a reference", type="reference" ) + public static final String SP_EFFECT_REFERENCE = "effect-reference"; + /** + * Fluent Client search parameter constant for effect-reference + *

+ * Description: The situation in which the undesirable effect may manifest, as a reference
+ * Type: reference
+ * Path: ClinicalUseIssue.undesirableEffect.symptomConditionEffect
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam EFFECT_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_EFFECT_REFERENCE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ClinicalUseIssue:effect-reference". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_EFFECT_REFERENCE = new ca.uhn.fhir.model.api.Include("ClinicalUseIssue:effect-reference").toLocked(); + /** * Search parameter: identifier *

@@ -3073,23 +3086,49 @@ public class ClinicalUseIssue extends DomainResource { /** * Search parameter: indication *

- * Description: The situation that is being documented as an indicaton for this item
+ * Description: The situation that is being documented as an indicaton for this item, as a code
* Type: token
* Path: ClinicalUseIssue.indication.diseaseSymptomProcedure
*

*/ - @SearchParamDefinition(name="indication", path="ClinicalUseIssue.indication.diseaseSymptomProcedure", description="The situation that is being documented as an indicaton for this item", type="token" ) + @SearchParamDefinition(name="indication", path="ClinicalUseIssue.indication.diseaseSymptomProcedure", description="The situation that is being documented as an indicaton for this item, as a code", type="token" ) public static final String SP_INDICATION = "indication"; /** * Fluent Client search parameter constant for indication *

- * Description: The situation that is being documented as an indicaton for this item
+ * Description: The situation that is being documented as an indicaton for this item, as a code
* Type: token
* Path: ClinicalUseIssue.indication.diseaseSymptomProcedure
*

*/ public static final ca.uhn.fhir.rest.gclient.TokenClientParam INDICATION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_INDICATION); + /** + * Search parameter: indication-reference + *

+ * Description: The situation that is being documented as an indicaton for this item, as a reference
+ * Type: reference
+ * Path: ClinicalUseIssue.indication.diseaseSymptomProcedure
+ *

+ */ + @SearchParamDefinition(name="indication-reference", path="ClinicalUseIssue.indication.diseaseSymptomProcedure", description="The situation that is being documented as an indicaton for this item, as a reference", type="reference" ) + public static final String SP_INDICATION_REFERENCE = "indication-reference"; + /** + * Fluent Client search parameter constant for indication-reference + *

+ * Description: The situation that is being documented as an indicaton for this item, as a reference
+ * Type: reference
+ * Path: ClinicalUseIssue.indication.diseaseSymptomProcedure
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INDICATION_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INDICATION_REFERENCE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ClinicalUseIssue:indication-reference". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_INDICATION_REFERENCE = new ca.uhn.fhir.model.api.Include("ClinicalUseIssue:indication-reference").toLocked(); + /** * Search parameter: interaction *

@@ -3118,7 +3157,7 @@ public class ClinicalUseIssue extends DomainResource { * Path: ClinicalUseIssue.subject.where(resolve() is MedicinalProductDefinition)
*

*/ - @SearchParamDefinition(name="product", path="ClinicalUseIssue.subject.where(resolve() is MedicinalProductDefinition)", description="The medicinal product for which this is a clinical usage issue", type="reference", target={MedicinalProductDefinition.class } ) + @SearchParamDefinition(name="product", path="ClinicalUseIssue.subject.where(resolve() is MedicinalProductDefinition)", description="The medicinal product for which this is a clinical usage issue", type="reference", target={ActivityDefinition.class, Device.class, DeviceDefinition.class, Medication.class, MedicinalProductDefinition.class, PlanDefinition.class, Substance.class } ) public static final String SP_PRODUCT = "product"; /** * Fluent Client search parameter constant for product diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeSystem.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeSystem.java index b8490696b..d71f26fbe 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeSystem.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeSystem.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -103,7 +103,6 @@ public class CodeSystem extends CanonicalResource { case FRAGMENT: return "fragment"; case COMPLETE: return "complete"; case SUPPLEMENT: return "supplement"; - case NULL: return null; default: return "?"; } } @@ -114,7 +113,6 @@ public class CodeSystem extends CanonicalResource { case FRAGMENT: return "http://hl7.org/fhir/codesystem-content-mode"; case COMPLETE: return "http://hl7.org/fhir/codesystem-content-mode"; case SUPPLEMENT: return "http://hl7.org/fhir/codesystem-content-mode"; - case NULL: return null; default: return "?"; } } @@ -125,7 +123,6 @@ public class CodeSystem extends CanonicalResource { case FRAGMENT: return "A subset of the code system concepts are included in the code system resource. This is a curated subset released for a specific purpose under the governance of the code system steward, and that the intent, bounds and consequences of the fragmentation are clearly defined in the fragment or the code system documentation. Fragments are also known as partitions."; case COMPLETE: return "All the concepts defined by the code system are included in the code system resource."; case SUPPLEMENT: return "The resource doesn't define any new concepts; it just provides additional designations and properties to another code system."; - case NULL: return null; default: return "?"; } } @@ -136,7 +133,6 @@ public class CodeSystem extends CanonicalResource { case FRAGMENT: return "Fragment"; case COMPLETE: return "Complete"; case SUPPLEMENT: return "Supplement"; - case NULL: return null; default: return "?"; } } @@ -240,7 +236,6 @@ public class CodeSystem extends CanonicalResource { case ISA: return "is-a"; case PARTOF: return "part-of"; case CLASSIFIEDWITH: return "classified-with"; - case NULL: return null; default: return "?"; } } @@ -250,7 +245,6 @@ public class CodeSystem extends CanonicalResource { case ISA: return "http://hl7.org/fhir/codesystem-hierarchy-meaning"; case PARTOF: return "http://hl7.org/fhir/codesystem-hierarchy-meaning"; case CLASSIFIEDWITH: return "http://hl7.org/fhir/codesystem-hierarchy-meaning"; - case NULL: return null; default: return "?"; } } @@ -260,7 +254,6 @@ public class CodeSystem extends CanonicalResource { case ISA: return "A hierarchy where the child concepts have an IS-A relationship with the parents - that is, all the properties of the parent are also true for its child concepts. Not that is-a is a property of the concepts, so additional subsumption relationships may be defined using properties or the [subsumes](extension-codesystem-subsumes.html) extension."; case PARTOF: return "Child elements list the individual parts of a composite whole (e.g. body site)."; case CLASSIFIEDWITH: return "Child concepts in the hierarchy may have only one parent, and there is a presumption that the code system is a \"closed world\" meaning all things must be in the hierarchy. This results in concepts such as \"not otherwise classified.\"."; - case NULL: return null; default: return "?"; } } @@ -270,7 +263,6 @@ public class CodeSystem extends CanonicalResource { case ISA: return "Is-A"; case PARTOF: return "Part Of"; case CLASSIFIEDWITH: return "Classified With"; - case NULL: return null; default: return "?"; } } @@ -389,7 +381,6 @@ public class CodeSystem extends CanonicalResource { case BOOLEAN: return "boolean"; case DATETIME: return "dateTime"; case DECIMAL: return "decimal"; - case NULL: return null; default: return "?"; } } @@ -402,7 +393,6 @@ public class CodeSystem extends CanonicalResource { case BOOLEAN: return "http://hl7.org/fhir/concept-property-type"; case DATETIME: return "http://hl7.org/fhir/concept-property-type"; case DECIMAL: return "http://hl7.org/fhir/concept-property-type"; - case NULL: return null; default: return "?"; } } @@ -415,7 +405,6 @@ public class CodeSystem extends CanonicalResource { case BOOLEAN: return "The property value is a boolean true | false."; case DATETIME: return "The property is a date or a date + time."; case DECIMAL: return "The property value is a decimal number."; - case NULL: return null; default: return "?"; } } @@ -428,7 +417,6 @@ public class CodeSystem extends CanonicalResource { case BOOLEAN: return "boolean"; case DATETIME: return "dateTime"; case DECIMAL: return "decimal"; - case NULL: return null; default: return "?"; } } @@ -521,7 +509,7 @@ public class CodeSystem extends CanonicalResource { * A list of operators that can be used with the filter. */ @Child(name = "operator", type = {CodeType.class}, order=3, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="= | is-a | descendent-of | is-not-a | regex | in | not-in | generalizes | exists", formalDefinition="A list of operators that can be used with the filter." ) + @Description(shortDefinition="= | is-a | descendent-of | is-not-a | regex | in | not-in | generalizes | child-of | descendent-leaf | exists", formalDefinition="A list of operators that can be used with the filter." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/filter-operator") protected List> operator; @@ -4545,110 +4533,56 @@ public class CodeSystem extends CanonicalResource { } /** - * Search parameter: code + * Search parameter: context *

- * Description: A code defined in the code system
- * Type: token
- * Path: CodeSystem.concept.code
- *

- */ - @SearchParamDefinition(name="code", path="CodeSystem.concept.code", description="A code defined in the code system", type="token" ) - public static final String SP_CODE = "code"; - /** - * Fluent Client search parameter constant for code - *

- * Description: A code defined in the code system
- * Type: token
- * Path: CodeSystem.concept.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + * Description: Multiple Resources: - /** - * Search parameter: content-mode - *

- * Description: not-present | example | fragment | complete | supplement
+* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +

* Type: token
- * Path: CodeSystem.content
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="content-mode", path="CodeSystem.content", description="not-present | example | fragment | complete | supplement", type="token" ) - public static final String SP_CONTENT_MODE = "content-mode"; + @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) + public static final String SP_CONTEXT = "context"; /** - * Fluent Client search parameter constant for content-mode + * Fluent Client search parameter constant for context *

- * Description: not-present | example | fragment | complete | supplement
+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +
* Type: token
- * Path: CodeSystem.content
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTENT_MODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTENT_MODE); - - /** - * Search parameter: language - *

- * Description: A language in which a designation is provided
- * Type: token
- * Path: CodeSystem.concept.designation.language
- *

- */ - @SearchParamDefinition(name="language", path="CodeSystem.concept.designation.language", description="A language in which a designation is provided", type="token" ) - public static final String SP_LANGUAGE = "language"; - /** - * Fluent Client search parameter constant for language - *

- * Description: A language in which a designation is provided
- * Type: token
- * Path: CodeSystem.concept.designation.language
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam LANGUAGE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_LANGUAGE); - - /** - * Search parameter: supplements - *

- * Description: Find code system supplements for the referenced code system
- * Type: reference
- * Path: CodeSystem.supplements
- *

- */ - @SearchParamDefinition(name="supplements", path="CodeSystem.supplements", description="Find code system supplements for the referenced code system", type="reference", target={CodeSystem.class } ) - public static final String SP_SUPPLEMENTS = "supplements"; - /** - * Fluent Client search parameter constant for supplements - *

- * Description: Find code system supplements for the referenced code system
- * Type: reference
- * Path: CodeSystem.supplements
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUPPLEMENTS = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUPPLEMENTS); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "CodeSystem:supplements". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_SUPPLEMENTS = new ca.uhn.fhir.model.api.Include("CodeSystem:supplements").toLocked(); - - /** - * Search parameter: system - *

- * Description: The system for any codes defined by this code system (same as 'url')
- * Type: uri
- * Path: CodeSystem.url
- *

- */ - @SearchParamDefinition(name="system", path="CodeSystem.url", description="The system for any codes defined by this code system (same as 'url')", type="uri" ) - public static final String SP_SYSTEM = "system"; - /** - * Fluent Client search parameter constant for system - *

- * Description: The system for any codes defined by this code system (same as 'url')
- * Type: uri
- * Path: CodeSystem.url
- *

- */ - public static final ca.uhn.fhir.rest.gclient.UriClientParam SYSTEM = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_SYSTEM); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); /** * Search parameter: context-quantity @@ -4702,110 +4636,6 @@ public class CodeSystem extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -4858,58 +4688,6 @@ public class CodeSystem extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -5014,44 +4792,6 @@ public class CodeSystem extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [CodeSystem](codesystem.html): External identifier for the code system -* [ConceptMap](conceptmap.html): External identifier for the concept map -* [MessageDefinition](messagedefinition.html): External identifier for the message definition -* [StructureDefinition](structuredefinition.html): External identifier for the structure definition -* [StructureMap](structuremap.html): External identifier for the structure map -* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities -* [ValueSet](valueset.html): External identifier for the value set -
- * Type: token
- * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier", description="Multiple Resources: \r\n\r\n* [CodeSystem](codesystem.html): External identifier for the code system\r\n* [ConceptMap](conceptmap.html): External identifier for the concept map\r\n* [MessageDefinition](messagedefinition.html): External identifier for the message definition\r\n* [StructureDefinition](structuredefinition.html): External identifier for the structure definition\r\n* [StructureMap](structuremap.html): External identifier for the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities\r\n* [ValueSet](valueset.html): External identifier for the value set\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [CodeSystem](codesystem.html): External identifier for the code system -* [ConceptMap](conceptmap.html): External identifier for the concept map -* [MessageDefinition](messagedefinition.html): External identifier for the message definition -* [StructureDefinition](structuredefinition.html): External identifier for the structure definition -* [StructureMap](structuremap.html): External identifier for the structure map -* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities -* [ValueSet](valueset.html): External identifier for the value set -
- * Type: token
- * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - /** * Search parameter: jurisdiction *

@@ -5406,7 +5146,255 @@ public class CodeSystem extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); -// Manual code (from Configuration.txt)t: + /** + * Search parameter: context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + + /** + * Search parameter: code + *

+ * Description: A code defined in the code system
+ * Type: token
+ * Path: CodeSystem.concept.code
+ *

+ */ + @SearchParamDefinition(name="code", path="CodeSystem.concept.code", description="A code defined in the code system", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: A code defined in the code system
+ * Type: token
+ * Path: CodeSystem.concept.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + + /** + * Search parameter: content-mode + *

+ * Description: not-present | example | fragment | complete | supplement
+ * Type: token
+ * Path: CodeSystem.content
+ *

+ */ + @SearchParamDefinition(name="content-mode", path="CodeSystem.content", description="not-present | example | fragment | complete | supplement", type="token" ) + public static final String SP_CONTENT_MODE = "content-mode"; + /** + * Fluent Client search parameter constant for content-mode + *

+ * Description: not-present | example | fragment | complete | supplement
+ * Type: token
+ * Path: CodeSystem.content
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTENT_MODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTENT_MODE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [CodeSystem](codesystem.html): External identifier for the code system +* [ConceptMap](conceptmap.html): External identifier for the concept map +* [MessageDefinition](messagedefinition.html): External identifier for the message definition +* [StructureDefinition](structuredefinition.html): External identifier for the structure definition +* [StructureMap](structuremap.html): External identifier for the structure map +* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities +* [ValueSet](valueset.html): External identifier for the value set +
+ * Type: token
+ * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier", description="Multiple Resources: \r\n\r\n* [CodeSystem](codesystem.html): External identifier for the code system\r\n* [ConceptMap](conceptmap.html): External identifier for the concept map\r\n* [MessageDefinition](messagedefinition.html): External identifier for the message definition\r\n* [StructureDefinition](structuredefinition.html): External identifier for the structure definition\r\n* [StructureMap](structuremap.html): External identifier for the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities\r\n* [ValueSet](valueset.html): External identifier for the value set\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [CodeSystem](codesystem.html): External identifier for the code system +* [ConceptMap](conceptmap.html): External identifier for the concept map +* [MessageDefinition](messagedefinition.html): External identifier for the message definition +* [StructureDefinition](structuredefinition.html): External identifier for the structure definition +* [StructureMap](structuremap.html): External identifier for the structure map +* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities +* [ValueSet](valueset.html): External identifier for the value set +
+ * Type: token
+ * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: language + *

+ * Description: A language in which a designation is provided
+ * Type: token
+ * Path: CodeSystem.concept.designation.language
+ *

+ */ + @SearchParamDefinition(name="language", path="CodeSystem.concept.designation.language", description="A language in which a designation is provided", type="token" ) + public static final String SP_LANGUAGE = "language"; + /** + * Fluent Client search parameter constant for language + *

+ * Description: A language in which a designation is provided
+ * Type: token
+ * Path: CodeSystem.concept.designation.language
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam LANGUAGE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_LANGUAGE); + + /** + * Search parameter: supplements + *

+ * Description: Find code system supplements for the referenced code system
+ * Type: reference
+ * Path: CodeSystem.supplements
+ *

+ */ + @SearchParamDefinition(name="supplements", path="CodeSystem.supplements", description="Find code system supplements for the referenced code system", type="reference", target={CodeSystem.class } ) + public static final String SP_SUPPLEMENTS = "supplements"; + /** + * Fluent Client search parameter constant for supplements + *

+ * Description: Find code system supplements for the referenced code system
+ * Type: reference
+ * Path: CodeSystem.supplements
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUPPLEMENTS = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUPPLEMENTS); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "CodeSystem:supplements". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_SUPPLEMENTS = new ca.uhn.fhir.model.api.Include("CodeSystem:supplements").toLocked(); + + /** + * Search parameter: system + *

+ * Description: The system for any codes defined by this code system (same as 'url')
+ * Type: uri
+ * Path: CodeSystem.url
+ *

+ */ + @SearchParamDefinition(name="system", path="CodeSystem.url", description="The system for any codes defined by this code system (same as 'url')", type="uri" ) + public static final String SP_SYSTEM = "system"; + /** + * Fluent Client search parameter constant for system + *

+ * Description: The system for any codes defined by this code system (same as 'url')
+ * Type: uri
+ * Path: CodeSystem.url
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.UriClientParam SYSTEM = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_SYSTEM); + +// Manual code (from Configuration.txt): public PropertyComponent getProperty(String code) { for (PropertyComponent pd : getProperty()) { if (pd.getCode().equalsIgnoreCase(code)) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableConcept.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableConcept.java index c0d17dd31..ff89cc2ea 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableConcept.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableConcept.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -308,7 +308,7 @@ public class CodeableConcept extends DataType implements ICompositeType { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(coding, text); } -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): public boolean hasCoding(String system, String code) { for (Coding c : getCoding()) { if (system.equals(c.getSystem()) && code.equals(c.getCode())) @@ -400,12 +400,12 @@ public boolean hasCoding(String system, String code) { return res; } + public void addCoding(String system, String code, String display) { getCoding().add(new Coding(system, code, display)); } // end addition - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableReference.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableReference.java index 08badaaf7..dfa5074ec 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableReference.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CodeableReference.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -252,5 +252,15 @@ public class CodeableReference extends DataType implements ICompositeType { } + public CodeableReference(CodeableConcept cc) { + super(); + setConcept(cc); + } + + public CodeableReference(Reference ref) { + super(); + setReference(ref); + } + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coding.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coding.java index 9ed4710f6..d66066010 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coding.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coding.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -522,7 +522,7 @@ public class Coding extends DataType implements IBaseCoding, ICompositeType, ICo , userSelected); } -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): @Override public boolean supportsVersion() { return true; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Communication.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Communication.java index 25b4c1e71..c51bab7e4 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Communication.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Communication.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -406,7 +406,7 @@ public class Communication extends DomainResource { /** * The entity (e.g. person, organization, clinical information system, or device) which is the source of the communication. */ - @Child(name = "sender", type = {Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class, HealthcareService.class, Endpoint.class}, order=18, min=0, max=1, modifier=false, summary=false) + @Child(name = "sender", type = {Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class, HealthcareService.class, Endpoint.class, CareTeam.class}, order=18, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Who shares the information", formalDefinition="The entity (e.g. person, organization, clinical information system, or device) which is the source of the communication." ) protected Reference sender; @@ -1486,7 +1486,7 @@ public class Communication extends DomainResource { children.add(new Property("sent", "dateTime", "The time when this communication was sent.", 0, 1, sent)); 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("sender", "Reference(Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson|HealthcareService|Endpoint|CareTeam)", "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("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)); @@ -1513,7 +1513,7 @@ public class Communication extends DomainResource { case 3526552: /*sent*/ return new Property("sent", "dateTime", "The time when this communication was sent.", 0, 1, sent); 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 -905962955: /*sender*/ return new Property("sender", "Reference(Device|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson|HealthcareService|Endpoint|CareTeam)", "The entity (e.g. person, organization, clinical information system, or device) which is the source of the communication.", 0, 1, sender); 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); @@ -1961,7 +1961,7 @@ public class Communication extends DomainResource { * Path: Communication.basedOn
*

*/ - @SearchParamDefinition(name="based-on", path="Communication.basedOn", description="Request fulfilled by this communication", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="based-on", path="Communication.basedOn", description="Request fulfilled by this communication", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_BASED_ON = "based-on"; /** * Fluent Client search parameter constant for based-on @@ -2119,7 +2119,7 @@ public class Communication extends DomainResource { * Path: Communication.partOf
*

*/ - @SearchParamDefinition(name="part-of", path="Communication.partOf", description="Part of referenced event (e.g. Communication, Procedure)", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="part-of", path="Communication.partOf", description="Part of referenced event (e.g. Communication, Procedure)", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PART_OF = "part-of"; /** * Fluent Client search parameter constant for part-of @@ -2145,7 +2145,7 @@ public class Communication extends DomainResource { * Path: Communication.subject.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="Communication.subject.where(resolve() is Patient)", description="Focus of message", type="reference", target={Patient.class } ) + @SearchParamDefinition(name="patient", path="Communication.subject.where(resolve() is Patient)", description="Focus of message", type="reference", target={Group.class, Patient.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -2217,7 +2217,7 @@ public class Communication extends DomainResource { * Path: Communication.sender
*

*/ - @SearchParamDefinition(name="sender", path="Communication.sender", description="Who shares the information", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson"), @ca.uhn.fhir.model.api.annotation.Compartment(name="EXAMPLE") }, target={Device.class, Endpoint.class, HealthcareService.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) + @SearchParamDefinition(name="sender", path="Communication.sender", description="Who shares the information", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson"), @ca.uhn.fhir.model.api.annotation.Compartment(name="EXAMPLE") }, target={CareTeam.class, Device.class, Endpoint.class, HealthcareService.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) public static final String SP_SENDER = "sender"; /** * Fluent Client search parameter constant for sender diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CommunicationRequest.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CommunicationRequest.java index d607bd697..4800e6c81 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CommunicationRequest.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CommunicationRequest.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -315,10 +315,18 @@ public class CommunicationRequest extends DomainResource { @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/communication-request-status-reason") protected CodeableConcept statusReason; + /** + * Indicates the level of authority/intentionality associated with the CommunicationRequest and where the request fits into the workflow chain. + */ + @Child(name = "intent", type = {CodeType.class}, order=6, min=1, max=1, modifier=true, summary=true) + @Description(shortDefinition="proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option", formalDefinition="Indicates the level of authority/intentionality associated with the CommunicationRequest and where the request fits into the workflow chain." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/request-intent") + protected Enumeration intent; + /** * The type of message to be sent such as alert, notification, reminder, instruction, etc. */ - @Child(name = "category", type = {CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "category", type = {CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Message category", formalDefinition="The type of message to be sent such as alert, notification, reminder, instruction, etc." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/communication-category") protected List category; @@ -326,7 +334,7 @@ public class CommunicationRequest extends DomainResource { /** * Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine. */ - @Child(name = "priority", type = {CodeType.class}, order=7, min=0, max=1, modifier=false, summary=true) + @Child(name = "priority", type = {CodeType.class}, order=8, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="routine | urgent | asap | stat", formalDefinition="Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/request-priority") protected Enumeration priority; @@ -334,14 +342,14 @@ public class CommunicationRequest extends DomainResource { /** * If true indicates that the CommunicationRequest is asking for the specified action to *not* occur. */ - @Child(name = "doNotPerform", type = {BooleanType.class}, order=8, min=0, max=1, modifier=true, summary=true) + @Child(name = "doNotPerform", type = {BooleanType.class}, order=9, min=0, max=1, modifier=true, summary=true) @Description(shortDefinition="True if request is prohibiting action", formalDefinition="If true indicates that the CommunicationRequest is asking for the specified action to *not* occur." ) protected BooleanType doNotPerform; /** * A channel that was used for this communication (e.g. email, fax). */ - @Child(name = "medium", type = {CodeableConcept.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "medium", type = {CodeableConcept.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="A channel of communication", formalDefinition="A channel that was used for this communication (e.g. email, fax)." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v3-ParticipationMode") protected List medium; @@ -349,70 +357,70 @@ public class CommunicationRequest extends DomainResource { /** * The patient or group that is the focus of this communication request. */ - @Child(name = "subject", type = {Patient.class, Group.class}, order=10, min=0, max=1, modifier=false, summary=false) + @Child(name = "subject", type = {Patient.class, Group.class}, order=11, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Focus of message", formalDefinition="The patient or group that is the focus of this communication request." ) protected Reference subject; /** * Other resources that pertain to this communication request and to which this communication request should be associated. */ - @Child(name = "about", type = {Reference.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "about", type = {Reference.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Resources that pertain to this communication request", formalDefinition="Other resources that pertain to this communication request and to which this communication request should be associated." ) protected List about; /** * The Encounter during which this CommunicationRequest was created or to which the creation of this record is tightly associated. */ - @Child(name = "encounter", type = {Encounter.class}, order=12, min=0, max=1, modifier=false, summary=true) + @Child(name = "encounter", type = {Encounter.class}, order=13, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="The Encounter during which this CommunicationRequest was created", formalDefinition="The Encounter during which this CommunicationRequest was created or to which the creation of this record is tightly associated." ) protected Reference encounter; /** * Text, attachment(s), or resource(s) to be communicated to the recipient. */ - @Child(name = "payload", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "payload", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Message payload", formalDefinition="Text, attachment(s), or resource(s) to be communicated to the recipient." ) protected List payload; /** * The time when this communication is to occur. */ - @Child(name = "occurrence", type = {DateTimeType.class, Period.class}, order=14, min=0, max=1, modifier=false, summary=true) + @Child(name = "occurrence", type = {DateTimeType.class, Period.class}, order=15, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="When scheduled", formalDefinition="The time when this communication is to occur." ) protected DataType occurrence; /** * For draft requests, indicates the date of initial creation. For requests with other statuses, indicates the date of activation. */ - @Child(name = "authoredOn", type = {DateTimeType.class}, order=15, min=0, max=1, modifier=false, summary=true) + @Child(name = "authoredOn", type = {DateTimeType.class}, order=16, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="When request transitioned to being actionable", formalDefinition="For draft requests, indicates the date of initial creation. For requests with other statuses, indicates the date of activation." ) protected DateTimeType authoredOn; /** * The device, individual, or organization who asks for the information to be shared. */ - @Child(name = "requester", type = {Practitioner.class, PractitionerRole.class, Organization.class, Patient.class, RelatedPerson.class, Device.class}, order=16, min=0, max=1, modifier=false, summary=true) + @Child(name = "requester", type = {Practitioner.class, PractitionerRole.class, Organization.class, Patient.class, RelatedPerson.class, Device.class}, order=17, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Who asks for the information to be shared", formalDefinition="The device, individual, or organization who asks for the information to be shared." ) protected Reference requester; /** * The entity (e.g. person, organization, clinical information system, device, group, or care team) which is the intended target of the communication. */ - @Child(name = "recipient", type = {Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class, Group.class, CareTeam.class, HealthcareService.class, Endpoint.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "recipient", type = {Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class, Group.class, CareTeam.class, HealthcareService.class, Endpoint.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Who to share the information with", formalDefinition="The entity (e.g. person, organization, clinical information system, device, group, or care team) which is the intended target of the communication." ) protected List recipient; /** * The entity (e.g. person, organization, clinical information system, or device) which is to be the source of the communication. */ - @Child(name = "informationProvider", type = {Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class, HealthcareService.class, Endpoint.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "informationProvider", type = {Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class, HealthcareService.class, Endpoint.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Who should share the information", formalDefinition="The entity (e.g. person, organization, clinical information system, or device) which is to be the source of the communication." ) protected List informationProvider; /** * Describes why the request is being made in coded or textual form. */ - @Child(name = "reason", type = {CodeableReference.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "reason", type = {CodeableReference.class}, order=20, 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 reason; @@ -420,11 +428,11 @@ public class CommunicationRequest extends DomainResource { /** * Comments made about the request by the requester, sender, recipient, 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=21, 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 note; - private static final long serialVersionUID = 239948247L; + private static final long serialVersionUID = -442811807L; /** * Constructor @@ -436,9 +444,10 @@ public class CommunicationRequest extends DomainResource { /** * Constructor */ - public CommunicationRequest(RequestStatus status) { + public CommunicationRequest(RequestStatus status, RequestIntent intent) { super(); this.setStatus(status); + this.setIntent(intent); } /** @@ -693,6 +702,51 @@ public class CommunicationRequest extends DomainResource { return this; } + /** + * @return {@link #intent} (Indicates the level of authority/intentionality associated with the CommunicationRequest and where the request fits into the workflow chain.). This is the underlying object with id, value and extensions. The accessor "getIntent" gives direct access to the value + */ + public Enumeration getIntentElement() { + if (this.intent == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create CommunicationRequest.intent"); + else if (Configuration.doAutoCreate()) + this.intent = new Enumeration(new RequestIntentEnumFactory()); // bb + return this.intent; + } + + public boolean hasIntentElement() { + return this.intent != null && !this.intent.isEmpty(); + } + + public boolean hasIntent() { + return this.intent != null && !this.intent.isEmpty(); + } + + /** + * @param value {@link #intent} (Indicates the level of authority/intentionality associated with the CommunicationRequest and where the request fits into the workflow chain.). This is the underlying object with id, value and extensions. The accessor "getIntent" gives direct access to the value + */ + public CommunicationRequest setIntentElement(Enumeration value) { + this.intent = value; + return this; + } + + /** + * @return Indicates the level of authority/intentionality associated with the CommunicationRequest and where the request fits into the workflow chain. + */ + public RequestIntent getIntent() { + return this.intent == null ? null : this.intent.getValue(); + } + + /** + * @param value Indicates the level of authority/intentionality associated with the CommunicationRequest and where the request fits into the workflow chain. + */ + public CommunicationRequest setIntent(RequestIntent value) { + if (this.intent == null) + this.intent = new Enumeration(new RequestIntentEnumFactory()); + this.intent.setValue(value); + return this; + } + /** * @return {@link #category} (The type of message to be sent such as alert, notification, reminder, instruction, etc.) */ @@ -1391,6 +1445,7 @@ public class CommunicationRequest extends DomainResource { children.add(new Property("groupIdentifier", "Identifier", "A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form.", 0, 1, groupIdentifier)); children.add(new Property("status", "code", "The status of the proposal or order.", 0, 1, status)); children.add(new Property("statusReason", "CodeableConcept", "Captures the reason for the current state of the CommunicationRequest.", 0, 1, statusReason)); + children.add(new Property("intent", "code", "Indicates the level of authority/intentionality associated with the CommunicationRequest and where the request fits into the workflow chain.", 0, 1, intent)); children.add(new Property("category", "CodeableConcept", "The type of message to be sent such as alert, notification, reminder, instruction, etc.", 0, java.lang.Integer.MAX_VALUE, category)); children.add(new Property("priority", "code", "Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine.", 0, 1, priority)); children.add(new Property("doNotPerform", "boolean", "If true indicates that the CommunicationRequest is asking for the specified action to *not* occur.", 0, 1, doNotPerform)); @@ -1417,6 +1472,7 @@ public class CommunicationRequest extends DomainResource { case -445338488: /*groupIdentifier*/ return new Property("groupIdentifier", "Identifier", "A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form.", 0, 1, groupIdentifier); case -892481550: /*status*/ return new Property("status", "code", "The status of the proposal or order.", 0, 1, status); case 2051346646: /*statusReason*/ return new Property("statusReason", "CodeableConcept", "Captures the reason for the current state of the CommunicationRequest.", 0, 1, statusReason); + case -1183762788: /*intent*/ return new Property("intent", "code", "Indicates the level of authority/intentionality associated with the CommunicationRequest and where the request fits into the workflow chain.", 0, 1, intent); case 50511102: /*category*/ return new Property("category", "CodeableConcept", "The type of message to be sent such as alert, notification, reminder, instruction, etc.", 0, java.lang.Integer.MAX_VALUE, category); case -1165461084: /*priority*/ return new Property("priority", "code", "Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine.", 0, 1, priority); case -1788508167: /*doNotPerform*/ return new Property("doNotPerform", "boolean", "If true indicates that the CommunicationRequest is asking for the specified action to *not* occur.", 0, 1, doNotPerform); @@ -1449,6 +1505,7 @@ public class CommunicationRequest extends DomainResource { case -445338488: /*groupIdentifier*/ return this.groupIdentifier == null ? new Base[0] : new Base[] {this.groupIdentifier}; // Identifier case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration case 2051346646: /*statusReason*/ return this.statusReason == null ? new Base[0] : new Base[] {this.statusReason}; // CodeableConcept + case -1183762788: /*intent*/ return this.intent == null ? new Base[0] : new Base[] {this.intent}; // Enumeration case 50511102: /*category*/ return this.category == null ? new Base[0] : this.category.toArray(new Base[this.category.size()]); // CodeableConcept case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // Enumeration case -1788508167: /*doNotPerform*/ return this.doNotPerform == null ? new Base[0] : new Base[] {this.doNotPerform}; // BooleanType @@ -1491,6 +1548,10 @@ public class CommunicationRequest extends DomainResource { case 2051346646: // statusReason this.statusReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; + case -1183762788: // intent + value = new RequestIntentEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.intent = (Enumeration) value; // Enumeration + return value; case 50511102: // category this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept return value; @@ -1557,6 +1618,9 @@ public class CommunicationRequest extends DomainResource { this.status = (Enumeration) value; // Enumeration } else if (name.equals("statusReason")) { this.statusReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("intent")) { + value = new RequestIntentEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.intent = (Enumeration) value; // Enumeration } else if (name.equals("category")) { this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); } else if (name.equals("priority")) { @@ -1602,6 +1666,7 @@ public class CommunicationRequest extends DomainResource { case -445338488: return getGroupIdentifier(); case -892481550: return getStatusElement(); case 2051346646: return getStatusReason(); + case -1183762788: return getIntentElement(); case 50511102: return addCategory(); case -1165461084: return getPriorityElement(); case -1788508167: return getDoNotPerformElement(); @@ -1632,6 +1697,7 @@ public class CommunicationRequest extends DomainResource { case -445338488: /*groupIdentifier*/ return new String[] {"Identifier"}; case -892481550: /*status*/ return new String[] {"code"}; case 2051346646: /*statusReason*/ return new String[] {"CodeableConcept"}; + case -1183762788: /*intent*/ return new String[] {"code"}; case 50511102: /*category*/ return new String[] {"CodeableConcept"}; case -1165461084: /*priority*/ return new String[] {"code"}; case -1788508167: /*doNotPerform*/ return new String[] {"boolean"}; @@ -1674,6 +1740,9 @@ public class CommunicationRequest extends DomainResource { this.statusReason = new CodeableConcept(); return this.statusReason; } + else if (name.equals("intent")) { + throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.intent"); + } else if (name.equals("category")) { return addCategory(); } @@ -1762,6 +1831,7 @@ public class CommunicationRequest extends DomainResource { dst.groupIdentifier = groupIdentifier == null ? null : groupIdentifier.copy(); dst.status = status == null ? null : status.copy(); dst.statusReason = statusReason == null ? null : statusReason.copy(); + dst.intent = intent == null ? null : intent.copy(); if (category != null) { dst.category = new ArrayList(); for (CodeableConcept i : category) @@ -1824,11 +1894,11 @@ public class CommunicationRequest extends DomainResource { CommunicationRequest o = (CommunicationRequest) other_; return compareDeep(identifier, o.identifier, true) && compareDeep(basedOn, o.basedOn, true) && compareDeep(replaces, o.replaces, true) && compareDeep(groupIdentifier, o.groupIdentifier, true) && compareDeep(status, o.status, true) - && compareDeep(statusReason, o.statusReason, true) && compareDeep(category, o.category, true) && compareDeep(priority, o.priority, true) - && compareDeep(doNotPerform, o.doNotPerform, true) && compareDeep(medium, o.medium, true) && compareDeep(subject, o.subject, true) - && 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(statusReason, o.statusReason, true) && compareDeep(intent, o.intent, true) && compareDeep(category, o.category, true) + && compareDeep(priority, o.priority, true) && compareDeep(doNotPerform, o.doNotPerform, true) && compareDeep(medium, o.medium, true) + && compareDeep(subject, o.subject, true) && 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(reason, o.reason, true) && compareDeep(note, o.note, true); } @@ -1839,15 +1909,16 @@ public class CommunicationRequest extends DomainResource { if (!(other_ instanceof CommunicationRequest)) return false; CommunicationRequest o = (CommunicationRequest) other_; - return compareValues(status, o.status, true) && compareValues(priority, o.priority, true) && compareValues(doNotPerform, o.doNotPerform, true) - && compareValues(authoredOn, o.authoredOn, true); + return compareValues(status, o.status, true) && compareValues(intent, o.intent, true) && compareValues(priority, o.priority, true) + && compareValues(doNotPerform, o.doNotPerform, true) && compareValues(authoredOn, o.authoredOn, true) + ; } public boolean isEmpty() { 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, reason, note); + , groupIdentifier, status, statusReason, intent, category, priority, doNotPerform + , medium, subject, about, encounter, payload, occurrence, authoredOn, requester + , recipient, informationProvider, reason, note); } @Override @@ -1883,7 +1954,7 @@ public class CommunicationRequest extends DomainResource { * Path: CommunicationRequest.basedOn
*

*/ - @SearchParamDefinition(name="based-on", path="CommunicationRequest.basedOn", description="Fulfills plan or proposal", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="based-on", path="CommunicationRequest.basedOn", description="Fulfills plan or proposal", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_BASED_ON = "based-on"; /** * Fluent Client search parameter constant for based-on @@ -2061,7 +2132,7 @@ public class CommunicationRequest extends DomainResource { * Path: CommunicationRequest.subject.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="CommunicationRequest.subject.where(resolve() is Patient)", description="Focus of message", type="reference", target={Patient.class } ) + @SearchParamDefinition(name="patient", path="CommunicationRequest.subject.where(resolve() is Patient)", description="Focus of message", type="reference", target={Group.class, Patient.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CompartmentDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CompartmentDefinition.java index e37bee024..794769656 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CompartmentDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CompartmentDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -1660,44 +1660,56 @@ public class CompartmentDefinition extends CanonicalResource { } /** - * Search parameter: code + * Search parameter: context *

- * Description: Patient | Encounter | RelatedPerson | Practitioner | Device
- * Type: token
- * Path: CompartmentDefinition.code
- *

- */ - @SearchParamDefinition(name="code", path="CompartmentDefinition.code", description="Patient | Encounter | RelatedPerson | Practitioner | Device", type="token" ) - public static final String SP_CODE = "code"; - /** - * Fluent Client search parameter constant for code - *

- * Description: Patient | Encounter | RelatedPerson | Practitioner | Device
- * Type: token
- * Path: CompartmentDefinition.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + * Description: Multiple Resources: - /** - * Search parameter: resource - *

- * Description: Name of resource type
+* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +

* Type: token
- * Path: CompartmentDefinition.resource.code
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="resource", path="CompartmentDefinition.resource.code", description="Name of resource type", type="token" ) - public static final String SP_RESOURCE = "resource"; + @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) + public static final String SP_CONTEXT = "context"; /** - * Fluent Client search parameter constant for resource + * Fluent Client search parameter constant for context *

- * Description: Name of resource type
+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +
* Type: token
- * Path: CompartmentDefinition.resource.code
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam RESOURCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RESOURCE); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); /** * Search parameter: context-quantity @@ -1751,110 +1763,6 @@ public class CompartmentDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -1907,58 +1815,6 @@ public class CompartmentDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -2323,9 +2179,156 @@ public class CompartmentDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + + /** + * Search parameter: code + *

+ * Description: Patient | Encounter | RelatedPerson | Practitioner | Device
+ * Type: token
+ * Path: CompartmentDefinition.code
+ *

+ */ + @SearchParamDefinition(name="code", path="CompartmentDefinition.code", description="Patient | Encounter | RelatedPerson | Practitioner | Device", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: Patient | Encounter | RelatedPerson | Practitioner | Device
+ * Type: token
+ * Path: CompartmentDefinition.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + + /** + * Search parameter: resource + *

+ * Description: Name of resource type
+ * Type: token
+ * Path: CompartmentDefinition.resource.code
+ *

+ */ + @SearchParamDefinition(name="resource", path="CompartmentDefinition.resource.code", description="Name of resource type", type="token" ) + public static final String SP_RESOURCE = "resource"; + /** + * Fluent Client search parameter constant for resource + *

+ * Description: Name of resource type
+ * Type: token
+ * Path: CompartmentDefinition.resource.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam RESOURCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RESOURCE); + +// Manual code (from Configuration.txt): public boolean supportsCopyright() { return false; } + +// end addition } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Composition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Composition.java index 32eeaac6c..e3951aa9b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Composition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Composition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class Composition extends DomainResource { case PROFESSIONAL: return "professional"; case LEGAL: return "legal"; case OFFICIAL: return "official"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class Composition extends DomainResource { case PROFESSIONAL: return "http://hl7.org/fhir/composition-attestation-mode"; case LEGAL: return "http://hl7.org/fhir/composition-attestation-mode"; case OFFICIAL: return "http://hl7.org/fhir/composition-attestation-mode"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class Composition extends DomainResource { case PROFESSIONAL: return "The person authenticated the content in their professional capacity."; case LEGAL: return "The person authenticated the content and accepted legal responsibility for its content."; case OFFICIAL: return "The organization authenticated the content as consistent with their policies and procedures."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class Composition extends DomainResource { case PROFESSIONAL: return "Professional"; case LEGAL: return "Legal"; case OFFICIAL: return "Official"; - case NULL: return null; default: return "?"; } } @@ -2894,6 +2890,278 @@ public class Composition extends DomainResource { return ResourceType.Composition; } + /** + * Search parameter: date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) + public static final String SP_DATE = "date"; + /** + * Fluent Client search parameter constant for date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Composition:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Composition:patient").toLocked(); + + /** + * Search parameter: type + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) +* [Composition](composition.html): Kind of composition (LOINC if possible) +* [DocumentManifest](documentmanifest.html): Kind of document set +* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) +* [Encounter](encounter.html): Specific type of encounter +* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management +
+ * Type: token
+ * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
+ *

+ */ + @SearchParamDefinition(name="type", path="AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known)\r\n* [Composition](composition.html): Kind of composition (LOINC if possible)\r\n* [DocumentManifest](documentmanifest.html): Kind of document set\r\n* [DocumentReference](documentreference.html): Kind of document (LOINC if possible)\r\n* [Encounter](encounter.html): Specific type of encounter\r\n* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management\r\n", type="token" ) + public static final String SP_TYPE = "type"; + /** + * Fluent Client search parameter constant for type + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) +* [Composition](composition.html): Kind of composition (LOINC if possible) +* [DocumentManifest](documentmanifest.html): Kind of document set +* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) +* [Encounter](encounter.html): Specific type of encounter +* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management +
+ * Type: token
+ * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); + /** * Search parameter: attester *

@@ -3006,6 +3274,60 @@ public class Composition extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** + * Search parameter: encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) + public static final String SP_ENCOUNTER = "encounter"; + /** + * Fluent Client search parameter constant for encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Composition:encounter". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("Composition:encounter").toLocked(); + /** * Search parameter: entry *

@@ -3014,7 +3336,7 @@ public class Composition extends DomainResource { * Path: Composition.section.entry
*

*/ - @SearchParamDefinition(name="entry", path="Composition.section.entry", description="A reference to data that supports this section", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="entry", path="Composition.section.entry", description="A reference to data that supports this section", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_ENTRY = "entry"; /** * Fluent Client search parameter constant for entry @@ -3146,7 +3468,7 @@ public class Composition extends DomainResource { * Path: Composition.subject
*

*/ - @SearchParamDefinition(name="subject", path="Composition.subject", description="Who and/or what the composition is about", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="subject", path="Composition.subject", description="Who and/or what the composition is about", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject @@ -3184,332 +3506,6 @@ public class Composition extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE); - /** - * Search parameter: date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) - public static final String SP_DATE = "date"; - /** - * Fluent Client search parameter constant for date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); - - /** - * Search parameter: encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) - public static final String SP_ENCOUNTER = "encounter"; - /** - * Fluent Client search parameter constant for encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Composition:encounter". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("Composition:encounter").toLocked(); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Composition:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Composition:patient").toLocked(); - - /** - * Search parameter: type - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) -* [Composition](composition.html): Kind of composition (LOINC if possible) -* [DocumentManifest](documentmanifest.html): Kind of document set -* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) -* [Encounter](encounter.html): Specific type of encounter -* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management -
- * Type: token
- * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
- *

- */ - @SearchParamDefinition(name="type", path="AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known)\r\n* [Composition](composition.html): Kind of composition (LOINC if possible)\r\n* [DocumentManifest](documentmanifest.html): Kind of document set\r\n* [DocumentReference](documentreference.html): Kind of document (LOINC if possible)\r\n* [Encounter](encounter.html): Specific type of encounter\r\n* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management\r\n", type="token" ) - public static final String SP_TYPE = "type"; - /** - * Fluent Client search parameter constant for type - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) -* [Composition](composition.html): Kind of composition (LOINC if possible) -* [DocumentManifest](documentmanifest.html): Kind of document set -* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) -* [Encounter](encounter.html): Specific type of encounter -* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management -
- * Type: token
- * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConceptMap.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConceptMap.java index 691b4956c..3113ada53 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConceptMap.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConceptMap.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -89,7 +89,6 @@ public class ConceptMap extends CanonicalResource { case PROVIDED: return "provided"; case FIXED: return "fixed"; case OTHERMAP: return "other-map"; - case NULL: return null; default: return "?"; } } @@ -98,7 +97,6 @@ public class ConceptMap extends CanonicalResource { case PROVIDED: return "http://hl7.org/fhir/conceptmap-unmapped-mode"; case FIXED: return "http://hl7.org/fhir/conceptmap-unmapped-mode"; case OTHERMAP: return "http://hl7.org/fhir/conceptmap-unmapped-mode"; - case NULL: return null; default: return "?"; } } @@ -107,7 +105,6 @@ public class ConceptMap extends CanonicalResource { case PROVIDED: return "Use the code as provided in the $translate request."; case FIXED: return "Use the code explicitly provided in the group.unmapped."; case OTHERMAP: return "Use the map identified by the canonical URL in the url element."; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class ConceptMap extends CanonicalResource { case PROVIDED: return "Provided Code"; case FIXED: return "Fixed Code"; case OTHERMAP: return "Other Map"; - case NULL: return null; default: return "?"; } } @@ -170,46 +166,32 @@ public class ConceptMap extends CanonicalResource { /** * An absolute URI that identifies the source system where the concepts to be mapped are defined. */ - @Child(name = "source", type = {UriType.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Child(name = "source", type = {CanonicalType.class}, order=1, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Source system where concepts to be mapped are defined", formalDefinition="An absolute URI that identifies the source system where the concepts to be mapped are defined." ) - protected UriType source; - - /** - * The specific version of the code system, as determined by the code system authority. - */ - @Child(name = "sourceVersion", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Specific version of the code system", formalDefinition="The specific version of the code system, as determined by the code system authority." ) - protected StringType sourceVersion; + protected CanonicalType source; /** * An absolute URI that identifies the target system that the concepts will be mapped to. */ - @Child(name = "target", type = {UriType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Child(name = "target", type = {CanonicalType.class}, order=2, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Target system that the concepts are to be mapped to", formalDefinition="An absolute URI that identifies the target system that the concepts will be mapped to." ) - protected UriType target; - - /** - * The specific version of the code system, as determined by the code system authority. - */ - @Child(name = "targetVersion", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Specific version of the code system", formalDefinition="The specific version of the code system, as determined by the code system authority." ) - protected StringType targetVersion; + protected CanonicalType target; /** * Mappings for an individual concept in the source to one or more concepts in the target. */ - @Child(name = "element", type = {}, order=5, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "element", type = {}, order=3, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Mappings for a concept from the source set", formalDefinition="Mappings for an individual concept in the source to one or more concepts in the target." ) protected List element; /** * What to do when there is no mapping to a target concept from the source concept. This provides the "default" to be applied when there is no target concept mapping specified. The 'unmapped' element is ignored if a code is specified to have relationship = not-related-to. */ - @Child(name = "unmapped", type = {}, order=6, min=0, max=1, modifier=false, summary=false) + @Child(name = "unmapped", type = {}, order=4, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="What to do when there is no mapping target for the source concept", formalDefinition="What to do when there is no mapping to a target concept from the source concept. This provides the \"default\" to be applied when there is no target concept mapping specified. The 'unmapped' element is ignored if a code is specified to have relationship = not-related-to." ) protected ConceptMapGroupUnmappedComponent unmapped; - private static final long serialVersionUID = 1606357508L; + private static final long serialVersionUID = 1307192416L; /** * Constructor @@ -229,12 +211,12 @@ public class ConceptMap extends CanonicalResource { /** * @return {@link #source} (An absolute URI that identifies the source system where the concepts to be mapped are defined.). This is the underlying object with id, value and extensions. The accessor "getSource" gives direct access to the value */ - public UriType getSourceElement() { + public CanonicalType getSourceElement() { if (this.source == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ConceptMapGroupComponent.source"); else if (Configuration.doAutoCreate()) - this.source = new UriType(); // bb + this.source = new CanonicalType(); // bb return this.source; } @@ -249,7 +231,7 @@ public class ConceptMap extends CanonicalResource { /** * @param value {@link #source} (An absolute URI that identifies the source system where the concepts to be mapped are defined.). This is the underlying object with id, value and extensions. The accessor "getSource" gives direct access to the value */ - public ConceptMapGroupComponent setSourceElement(UriType value) { + public ConceptMapGroupComponent setSourceElement(CanonicalType value) { this.source = value; return this; } @@ -269,70 +251,21 @@ public class ConceptMap extends CanonicalResource { this.source = null; else { if (this.source == null) - this.source = new UriType(); + this.source = new CanonicalType(); this.source.setValue(value); } return this; } - /** - * @return {@link #sourceVersion} (The specific version of the code system, as determined by the code system authority.). This is the underlying object with id, value and extensions. The accessor "getSourceVersion" gives direct access to the value - */ - public StringType getSourceVersionElement() { - if (this.sourceVersion == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ConceptMapGroupComponent.sourceVersion"); - else if (Configuration.doAutoCreate()) - this.sourceVersion = new StringType(); // bb - return this.sourceVersion; - } - - public boolean hasSourceVersionElement() { - return this.sourceVersion != null && !this.sourceVersion.isEmpty(); - } - - public boolean hasSourceVersion() { - return this.sourceVersion != null && !this.sourceVersion.isEmpty(); - } - - /** - * @param value {@link #sourceVersion} (The specific version of the code system, as determined by the code system authority.). This is the underlying object with id, value and extensions. The accessor "getSourceVersion" gives direct access to the value - */ - public ConceptMapGroupComponent setSourceVersionElement(StringType value) { - this.sourceVersion = value; - return this; - } - - /** - * @return The specific version of the code system, as determined by the code system authority. - */ - public String getSourceVersion() { - return this.sourceVersion == null ? null : this.sourceVersion.getValue(); - } - - /** - * @param value The specific version of the code system, as determined by the code system authority. - */ - public ConceptMapGroupComponent setSourceVersion(String value) { - if (Utilities.noString(value)) - this.sourceVersion = null; - else { - if (this.sourceVersion == null) - this.sourceVersion = new StringType(); - this.sourceVersion.setValue(value); - } - return this; - } - /** * @return {@link #target} (An absolute URI that identifies the target system that the concepts will be mapped to.). This is the underlying object with id, value and extensions. The accessor "getTarget" gives direct access to the value */ - public UriType getTargetElement() { + public CanonicalType getTargetElement() { if (this.target == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ConceptMapGroupComponent.target"); else if (Configuration.doAutoCreate()) - this.target = new UriType(); // bb + this.target = new CanonicalType(); // bb return this.target; } @@ -347,7 +280,7 @@ public class ConceptMap extends CanonicalResource { /** * @param value {@link #target} (An absolute URI that identifies the target system that the concepts will be mapped to.). This is the underlying object with id, value and extensions. The accessor "getTarget" gives direct access to the value */ - public ConceptMapGroupComponent setTargetElement(UriType value) { + public ConceptMapGroupComponent setTargetElement(CanonicalType value) { this.target = value; return this; } @@ -367,61 +300,12 @@ public class ConceptMap extends CanonicalResource { this.target = null; else { if (this.target == null) - this.target = new UriType(); + this.target = new CanonicalType(); this.target.setValue(value); } return this; } - /** - * @return {@link #targetVersion} (The specific version of the code system, as determined by the code system authority.). This is the underlying object with id, value and extensions. The accessor "getTargetVersion" gives direct access to the value - */ - public StringType getTargetVersionElement() { - if (this.targetVersion == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ConceptMapGroupComponent.targetVersion"); - else if (Configuration.doAutoCreate()) - this.targetVersion = new StringType(); // bb - return this.targetVersion; - } - - public boolean hasTargetVersionElement() { - return this.targetVersion != null && !this.targetVersion.isEmpty(); - } - - public boolean hasTargetVersion() { - return this.targetVersion != null && !this.targetVersion.isEmpty(); - } - - /** - * @param value {@link #targetVersion} (The specific version of the code system, as determined by the code system authority.). This is the underlying object with id, value and extensions. The accessor "getTargetVersion" gives direct access to the value - */ - public ConceptMapGroupComponent setTargetVersionElement(StringType value) { - this.targetVersion = value; - return this; - } - - /** - * @return The specific version of the code system, as determined by the code system authority. - */ - public String getTargetVersion() { - return this.targetVersion == null ? null : this.targetVersion.getValue(); - } - - /** - * @param value The specific version of the code system, as determined by the code system authority. - */ - public ConceptMapGroupComponent setTargetVersion(String value) { - if (Utilities.noString(value)) - this.targetVersion = null; - else { - if (this.targetVersion == null) - this.targetVersion = new StringType(); - this.targetVersion.setValue(value); - } - return this; - } - /** * @return {@link #element} (Mappings for an individual concept in the source to one or more concepts in the target.) */ @@ -501,10 +385,8 @@ public class ConceptMap extends CanonicalResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("source", "uri", "An absolute URI that identifies the source system where the concepts to be mapped are defined.", 0, 1, source)); - children.add(new Property("sourceVersion", "string", "The specific version of the code system, as determined by the code system authority.", 0, 1, sourceVersion)); - children.add(new Property("target", "uri", "An absolute URI that identifies the target system that the concepts will be mapped to.", 0, 1, target)); - children.add(new Property("targetVersion", "string", "The specific version of the code system, as determined by the code system authority.", 0, 1, targetVersion)); + children.add(new Property("source", "canonical(CodeSystem)", "An absolute URI that identifies the source system where the concepts to be mapped are defined.", 0, 1, source)); + children.add(new Property("target", "canonical(CodeSystem)", "An absolute URI that identifies the target system that the concepts will be mapped to.", 0, 1, target)); children.add(new Property("element", "", "Mappings for an individual concept in the source to one or more concepts in the target.", 0, java.lang.Integer.MAX_VALUE, element)); children.add(new Property("unmapped", "", "What to do when there is no mapping to a target concept from the source concept. This provides the \"default\" to be applied when there is no target concept mapping specified. The 'unmapped' element is ignored if a code is specified to have relationship = not-related-to.", 0, 1, unmapped)); } @@ -512,10 +394,8 @@ public class ConceptMap extends CanonicalResource { @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -896505829: /*source*/ return new Property("source", "uri", "An absolute URI that identifies the source system where the concepts to be mapped are defined.", 0, 1, source); - case 446171197: /*sourceVersion*/ return new Property("sourceVersion", "string", "The specific version of the code system, as determined by the code system authority.", 0, 1, sourceVersion); - case -880905839: /*target*/ return new Property("target", "uri", "An absolute URI that identifies the target system that the concepts will be mapped to.", 0, 1, target); - case -1639412217: /*targetVersion*/ return new Property("targetVersion", "string", "The specific version of the code system, as determined by the code system authority.", 0, 1, targetVersion); + case -896505829: /*source*/ return new Property("source", "canonical(CodeSystem)", "An absolute URI that identifies the source system where the concepts to be mapped are defined.", 0, 1, source); + case -880905839: /*target*/ return new Property("target", "canonical(CodeSystem)", "An absolute URI that identifies the target system that the concepts will be mapped to.", 0, 1, target); case -1662836996: /*element*/ return new Property("element", "", "Mappings for an individual concept in the source to one or more concepts in the target.", 0, java.lang.Integer.MAX_VALUE, element); case -194857460: /*unmapped*/ return new Property("unmapped", "", "What to do when there is no mapping to a target concept from the source concept. This provides the \"default\" to be applied when there is no target concept mapping specified. The 'unmapped' element is ignored if a code is specified to have relationship = not-related-to.", 0, 1, unmapped); default: return super.getNamedProperty(_hash, _name, _checkValid); @@ -526,10 +406,8 @@ public class ConceptMap extends CanonicalResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // UriType - case 446171197: /*sourceVersion*/ return this.sourceVersion == null ? new Base[0] : new Base[] {this.sourceVersion}; // StringType - case -880905839: /*target*/ return this.target == null ? new Base[0] : new Base[] {this.target}; // UriType - case -1639412217: /*targetVersion*/ return this.targetVersion == null ? new Base[0] : new Base[] {this.targetVersion}; // StringType + case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // CanonicalType + case -880905839: /*target*/ return this.target == null ? new Base[0] : new Base[] {this.target}; // CanonicalType case -1662836996: /*element*/ return this.element == null ? new Base[0] : this.element.toArray(new Base[this.element.size()]); // SourceElementComponent case -194857460: /*unmapped*/ return this.unmapped == null ? new Base[0] : new Base[] {this.unmapped}; // ConceptMapGroupUnmappedComponent default: return super.getProperty(hash, name, checkValid); @@ -541,16 +419,10 @@ public class ConceptMap extends CanonicalResource { public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case -896505829: // source - this.source = TypeConvertor.castToUri(value); // UriType - return value; - case 446171197: // sourceVersion - this.sourceVersion = TypeConvertor.castToString(value); // StringType + this.source = TypeConvertor.castToCanonical(value); // CanonicalType return value; case -880905839: // target - this.target = TypeConvertor.castToUri(value); // UriType - return value; - case -1639412217: // targetVersion - this.targetVersion = TypeConvertor.castToString(value); // StringType + this.target = TypeConvertor.castToCanonical(value); // CanonicalType return value; case -1662836996: // element this.getElement().add((SourceElementComponent) value); // SourceElementComponent @@ -566,13 +438,9 @@ public class ConceptMap extends CanonicalResource { @Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("source")) { - this.source = TypeConvertor.castToUri(value); // UriType - } else if (name.equals("sourceVersion")) { - this.sourceVersion = TypeConvertor.castToString(value); // StringType + this.source = TypeConvertor.castToCanonical(value); // CanonicalType } else if (name.equals("target")) { - this.target = TypeConvertor.castToUri(value); // UriType - } else if (name.equals("targetVersion")) { - this.targetVersion = TypeConvertor.castToString(value); // StringType + this.target = TypeConvertor.castToCanonical(value); // CanonicalType } else if (name.equals("element")) { this.getElement().add((SourceElementComponent) value); } else if (name.equals("unmapped")) { @@ -586,9 +454,7 @@ public class ConceptMap extends CanonicalResource { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -896505829: return getSourceElement(); - case 446171197: return getSourceVersionElement(); case -880905839: return getTargetElement(); - case -1639412217: return getTargetVersionElement(); case -1662836996: return addElement(); case -194857460: return getUnmapped(); default: return super.makeProperty(hash, name); @@ -599,10 +465,8 @@ public class ConceptMap extends CanonicalResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case -896505829: /*source*/ return new String[] {"uri"}; - case 446171197: /*sourceVersion*/ return new String[] {"string"}; - case -880905839: /*target*/ return new String[] {"uri"}; - case -1639412217: /*targetVersion*/ return new String[] {"string"}; + case -896505829: /*source*/ return new String[] {"canonical"}; + case -880905839: /*target*/ return new String[] {"canonical"}; case -1662836996: /*element*/ return new String[] {}; case -194857460: /*unmapped*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); @@ -615,15 +479,9 @@ public class ConceptMap extends CanonicalResource { if (name.equals("source")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.source"); } - else if (name.equals("sourceVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.sourceVersion"); - } else if (name.equals("target")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.target"); } - else if (name.equals("targetVersion")) { - throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.group.targetVersion"); - } else if (name.equals("element")) { return addElement(); } @@ -644,9 +502,7 @@ public class ConceptMap extends CanonicalResource { public void copyValues(ConceptMapGroupComponent dst) { super.copyValues(dst); dst.source = source == null ? null : source.copy(); - dst.sourceVersion = sourceVersion == null ? null : sourceVersion.copy(); dst.target = target == null ? null : target.copy(); - dst.targetVersion = targetVersion == null ? null : targetVersion.copy(); if (element != null) { dst.element = new ArrayList(); for (SourceElementComponent i : element) @@ -662,8 +518,7 @@ public class ConceptMap extends CanonicalResource { if (!(other_ instanceof ConceptMapGroupComponent)) return false; ConceptMapGroupComponent o = (ConceptMapGroupComponent) other_; - return compareDeep(source, o.source, true) && compareDeep(sourceVersion, o.sourceVersion, true) - && compareDeep(target, o.target, true) && compareDeep(targetVersion, o.targetVersion, true) && compareDeep(element, o.element, true) + return compareDeep(source, o.source, true) && compareDeep(target, o.target, true) && compareDeep(element, o.element, true) && compareDeep(unmapped, o.unmapped, true); } @@ -674,13 +529,12 @@ public class ConceptMap extends CanonicalResource { if (!(other_ instanceof ConceptMapGroupComponent)) return false; ConceptMapGroupComponent o = (ConceptMapGroupComponent) other_; - return compareValues(source, o.source, true) && compareValues(sourceVersion, o.sourceVersion, true) - && compareValues(target, o.target, true) && compareValues(targetVersion, o.targetVersion, true); + return compareValues(source, o.source, true) && compareValues(target, o.target, true); } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(source, sourceVersion, target - , targetVersion, element, unmapped); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(source, target, element + , unmapped); } public String fhirType() { @@ -2444,9 +2298,9 @@ public class ConceptMap extends CanonicalResource { /** * A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance. */ - @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=1, modifier=false, summary=true) + @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Additional identifier for the concept map", formalDefinition="A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance." ) - protected Identifier identifier; + protected List identifier; /** * The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the concept map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. @@ -2562,7 +2416,7 @@ public class ConceptMap extends CanonicalResource { @Description(shortDefinition="Same source and target systems", formalDefinition="A group of mappings that all have the same source and target system." ) protected List group; - private static final long serialVersionUID = 1735271896L; + private static final long serialVersionUID = 342671242L; /** * Constructor @@ -2628,57 +2482,46 @@ public class ConceptMap extends CanonicalResource { return this; } - /** - * only one on this implementation - */ - @Override - public int getIdentifierMax() { - return 1; - } /** * @return {@link #identifier} (A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance.) */ public List getIdentifier() { - List list = new ArrayList(); - if (this.identifier == null) { - list.add(identifier); - } - return list; + if (this.identifier == null) + this.identifier = new ArrayList(); + return this.identifier; } /** * @return Returns a reference to this for easy method chaining */ public ConceptMap setIdentifier(List theIdentifier) { - if (theIdentifier.size() == 0) { - this.identifier = null; - } else if (theIdentifier.size() == 1) { - this.identifier = theIdentifier.get(0); - } else { - throw new Error("Cannot have more than one ConceptMap.identifier"); - } + this.identifier = theIdentifier; return this; } public boolean hasIdentifier() { - return this.identifier != null && !this.identifier.isEmpty(); + if (this.identifier == null) + return false; + for (Identifier item : this.identifier) + if (!item.isEmpty()) + return true; + return false; } public Identifier addIdentifier() { //3 - if (this.identifier == null) { - this.identifier = new Identifier(); - } else { - throw new Error("Cannot have more than one ConceptMap.identifier"); - } - return this.identifier; + Identifier t = new Identifier(); + if (this.identifier == null) + this.identifier = new ArrayList(); + this.identifier.add(t); + return t; } public ConceptMap addIdentifier(Identifier t) { //3 - if (this.identifier == null) { - this.identifier = t; - } else { - throw new Error("Cannot have more than one ConceptMap.identifier"); - } + if (t == null) + return this; + if (this.identifier == null) + this.identifier = new ArrayList(); + this.identifier.add(t); return this; } @@ -2686,10 +2529,10 @@ public class ConceptMap extends CanonicalResource { * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} */ public Identifier getIdentifierFirstRep() { - if (identifier == null) { + if (getIdentifier().isEmpty()) { addIdentifier(); } - return identifier; + return getIdentifier().get(0); } /** @@ -3491,7 +3334,7 @@ public class ConceptMap extends CanonicalResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("url", "uri", "An absolute URI that is used to identify this concept map when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this concept map is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the concept map is stored on different servers.", 0, 1, url)); - children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, 1, identifier)); + children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier)); children.add(new Property("version", "string", "The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the concept map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version)); children.add(new Property("name", "string", "A natural language name identifying the concept map. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the concept map.", 0, 1, title)); @@ -3514,7 +3357,7 @@ public class ConceptMap extends CanonicalResource { public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this concept map when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this concept map is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the concept map is stored on different servers.", 0, 1, url); - case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, 1, identifier); + case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier); case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the concept map author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version); case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the concept map. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); case 110371416: /*title*/ return new Property("title", "string", "A short, descriptive, user-friendly title for the concept map.", 0, 1, title); @@ -3546,7 +3389,7 @@ public class ConceptMap extends CanonicalResource { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType - case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier + case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType @@ -3575,7 +3418,7 @@ public class ConceptMap extends CanonicalResource { this.url = TypeConvertor.castToUri(value); // UriType return value; case -1618432855: // identifier - this.identifier = TypeConvertor.castToIdentifier(value); // Identifier + this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier return value; case 351608024: // version this.version = TypeConvertor.castToString(value); // StringType @@ -3636,7 +3479,7 @@ public class ConceptMap extends CanonicalResource { if (name.equals("url")) { this.url = TypeConvertor.castToUri(value); // UriType } else if (name.equals("identifier")) { - this.identifier = TypeConvertor.castToIdentifier(value); // Identifier + this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); } else if (name.equals("version")) { this.version = TypeConvertor.castToString(value); // StringType } else if (name.equals("name")) { @@ -3679,7 +3522,7 @@ public class ConceptMap extends CanonicalResource { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 116079: return getUrlElement(); - case -1618432855: return getIdentifierFirstRep(); + case -1618432855: return addIdentifier(); case 351608024: return getVersionElement(); case 3373707: return getNameElement(); case 110371416: return getTitleElement(); @@ -3735,8 +3578,7 @@ public class ConceptMap extends CanonicalResource { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.url"); } else if (name.equals("identifier")) { - this.identifier = new Identifier(); - return this.identifier; + return addIdentifier(); } else if (name.equals("version")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.version"); @@ -3814,7 +3656,11 @@ public class ConceptMap extends CanonicalResource { public void copyValues(ConceptMap dst) { super.copyValues(dst); dst.url = url == null ? null : url.copy(); - dst.identifier = identifier == null ? null : identifier.copy(); + if (identifier != null) { + dst.identifier = new ArrayList(); + for (Identifier i : identifier) + dst.identifier.add(i.copy()); + }; dst.version = version == null ? null : version.copy(); dst.name = name == null ? null : name.copy(); dst.title = title == null ? null : title.copy(); @@ -3894,254 +3740,56 @@ public class ConceptMap extends CanonicalResource { } /** - * Search parameter: dependson + * Search parameter: context *

- * Description: Reference to property mapping depends on
- * Type: uri
- * Path: ConceptMap.group.element.target.dependsOn.property
- *

- */ - @SearchParamDefinition(name="dependson", path="ConceptMap.group.element.target.dependsOn.property", description="Reference to property mapping depends on", type="uri" ) - public static final String SP_DEPENDSON = "dependson"; - /** - * Fluent Client search parameter constant for dependson - *

- * Description: Reference to property mapping depends on
- * Type: uri
- * Path: ConceptMap.group.element.target.dependsOn.property
- *

- */ - public static final ca.uhn.fhir.rest.gclient.UriClientParam DEPENDSON = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_DEPENDSON); + * Description: Multiple Resources: - /** - * Search parameter: other - *

- * Description: canonical reference to an additional ConceptMap to use for mapping if the source concept is unmapped
- * Type: reference
- * Path: ConceptMap.group.unmapped.url
- *

- */ - @SearchParamDefinition(name="other", path="ConceptMap.group.unmapped.url", description="canonical reference to an additional ConceptMap to use for mapping if the source concept is unmapped", type="reference", target={ConceptMap.class } ) - public static final String SP_OTHER = "other"; - /** - * Fluent Client search parameter constant for other - *

- * Description: canonical reference to an additional ConceptMap to use for mapping if the source concept is unmapped
- * Type: reference
- * Path: ConceptMap.group.unmapped.url
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam OTHER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_OTHER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ConceptMap:other". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_OTHER = new ca.uhn.fhir.model.api.Include("ConceptMap:other").toLocked(); - - /** - * Search parameter: product - *

- * Description: Reference to property mapping depends on
- * Type: uri
- * Path: ConceptMap.group.element.target.product.property
- *

- */ - @SearchParamDefinition(name="product", path="ConceptMap.group.element.target.product.property", description="Reference to property mapping depends on", type="uri" ) - public static final String SP_PRODUCT = "product"; - /** - * Fluent Client search parameter constant for product - *

- * Description: Reference to property mapping depends on
- * Type: uri
- * Path: ConceptMap.group.element.target.product.property
- *

- */ - public static final ca.uhn.fhir.rest.gclient.UriClientParam PRODUCT = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_PRODUCT); - - /** - * Search parameter: source-code - *

- * Description: Identifies element being mapped
+* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +

* Type: token
- * Path: ConceptMap.group.element.code
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="source-code", path="ConceptMap.group.element.code", description="Identifies element being mapped", type="token" ) - public static final String SP_SOURCE_CODE = "source-code"; + @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) + public static final String SP_CONTEXT = "context"; /** - * Fluent Client search parameter constant for source-code + * Fluent Client search parameter constant for context *

- * Description: Identifies element being mapped
+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +
* Type: token
- * Path: ConceptMap.group.element.code
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam SOURCE_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SOURCE_CODE); - - /** - * Search parameter: source-system - *

- * Description: Source system where concepts to be mapped are defined
- * Type: uri
- * Path: ConceptMap.group.source
- *

- */ - @SearchParamDefinition(name="source-system", path="ConceptMap.group.source", description="Source system where concepts to be mapped are defined", type="uri" ) - public static final String SP_SOURCE_SYSTEM = "source-system"; - /** - * Fluent Client search parameter constant for source-system - *

- * Description: Source system where concepts to be mapped are defined
- * Type: uri
- * Path: ConceptMap.group.source
- *

- */ - public static final ca.uhn.fhir.rest.gclient.UriClientParam SOURCE_SYSTEM = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_SOURCE_SYSTEM); - - /** - * Search parameter: source-uri - *

- * Description: The source value set that contains the concepts that are being mapped
- * Type: reference
- * Path: (ConceptMap.source as uri)
- *

- */ - @SearchParamDefinition(name="source-uri", path="(ConceptMap.source as uri)", description="The source value set that contains the concepts that are being mapped", type="reference", target={ValueSet.class } ) - public static final String SP_SOURCE_URI = "source-uri"; - /** - * Fluent Client search parameter constant for source-uri - *

- * Description: The source value set that contains the concepts that are being mapped
- * Type: reference
- * Path: (ConceptMap.source as uri)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SOURCE_URI = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SOURCE_URI); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ConceptMap:source-uri". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_SOURCE_URI = new ca.uhn.fhir.model.api.Include("ConceptMap:source-uri").toLocked(); - - /** - * Search parameter: source - *

- * Description: The source value set that contains the concepts that are being mapped
- * Type: reference
- * Path: (ConceptMap.source as canonical)
- *

- */ - @SearchParamDefinition(name="source", path="(ConceptMap.source as canonical)", description="The source value set that contains the concepts that are being mapped", type="reference", target={ValueSet.class } ) - public static final String SP_SOURCE = "source"; - /** - * Fluent Client search parameter constant for source - *

- * Description: The source value set that contains the concepts that are being mapped
- * Type: reference
- * Path: (ConceptMap.source as canonical)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SOURCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SOURCE); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ConceptMap:source". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_SOURCE = new ca.uhn.fhir.model.api.Include("ConceptMap:source").toLocked(); - - /** - * Search parameter: target-code - *

- * Description: Code that identifies the target element
- * Type: token
- * Path: ConceptMap.group.element.target.code
- *

- */ - @SearchParamDefinition(name="target-code", path="ConceptMap.group.element.target.code", description="Code that identifies the target element", type="token" ) - public static final String SP_TARGET_CODE = "target-code"; - /** - * Fluent Client search parameter constant for target-code - *

- * Description: Code that identifies the target element
- * Type: token
- * Path: ConceptMap.group.element.target.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam TARGET_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TARGET_CODE); - - /** - * Search parameter: target-system - *

- * Description: Target system that the concepts are to be mapped to
- * Type: uri
- * Path: ConceptMap.group.target
- *

- */ - @SearchParamDefinition(name="target-system", path="ConceptMap.group.target", description="Target system that the concepts are to be mapped to", type="uri" ) - public static final String SP_TARGET_SYSTEM = "target-system"; - /** - * Fluent Client search parameter constant for target-system - *

- * Description: Target system that the concepts are to be mapped to
- * Type: uri
- * Path: ConceptMap.group.target
- *

- */ - public static final ca.uhn.fhir.rest.gclient.UriClientParam TARGET_SYSTEM = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_TARGET_SYSTEM); - - /** - * Search parameter: target-uri - *

- * Description: The target value set which provides context for the mappings
- * Type: reference
- * Path: (ConceptMap.target as uri)
- *

- */ - @SearchParamDefinition(name="target-uri", path="(ConceptMap.target as uri)", description="The target value set which provides context for the mappings", type="reference", target={ValueSet.class } ) - public static final String SP_TARGET_URI = "target-uri"; - /** - * Fluent Client search parameter constant for target-uri - *

- * Description: The target value set which provides context for the mappings
- * Type: reference
- * Path: (ConceptMap.target as uri)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam TARGET_URI = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_TARGET_URI); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ConceptMap:target-uri". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_TARGET_URI = new ca.uhn.fhir.model.api.Include("ConceptMap:target-uri").toLocked(); - - /** - * Search parameter: target - *

- * Description: The target value set which provides context for the mappings
- * Type: reference
- * Path: (ConceptMap.target as canonical)
- *

- */ - @SearchParamDefinition(name="target", path="(ConceptMap.target as canonical)", description="The target value set which provides context for the mappings", type="reference", target={ValueSet.class } ) - public static final String SP_TARGET = "target"; - /** - * Fluent Client search parameter constant for target - *

- * Description: The target value set which provides context for the mappings
- * Type: reference
- * Path: (ConceptMap.target as canonical)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam TARGET = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_TARGET); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ConceptMap:target". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_TARGET = new ca.uhn.fhir.model.api.Include("ConceptMap:target").toLocked(); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); /** * Search parameter: context-quantity @@ -4195,110 +3843,6 @@ public class ConceptMap extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -4351,58 +3895,6 @@ public class ConceptMap extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -4507,44 +3999,6 @@ public class ConceptMap extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [CodeSystem](codesystem.html): External identifier for the code system -* [ConceptMap](conceptmap.html): External identifier for the concept map -* [MessageDefinition](messagedefinition.html): External identifier for the message definition -* [StructureDefinition](structuredefinition.html): External identifier for the structure definition -* [StructureMap](structuremap.html): External identifier for the structure map -* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities -* [ValueSet](valueset.html): External identifier for the value set -
- * Type: token
- * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier", description="Multiple Resources: \r\n\r\n* [CodeSystem](codesystem.html): External identifier for the code system\r\n* [ConceptMap](conceptmap.html): External identifier for the concept map\r\n* [MessageDefinition](messagedefinition.html): External identifier for the message definition\r\n* [StructureDefinition](structuredefinition.html): External identifier for the structure definition\r\n* [StructureMap](structuremap.html): External identifier for the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities\r\n* [ValueSet](valueset.html): External identifier for the value set\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [CodeSystem](codesystem.html): External identifier for the code system -* [ConceptMap](conceptmap.html): External identifier for the concept map -* [MessageDefinition](messagedefinition.html): External identifier for the message definition -* [StructureDefinition](structuredefinition.html): External identifier for the structure definition -* [StructureMap](structuremap.html): External identifier for the structure map -* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities -* [ValueSet](valueset.html): External identifier for the value set -
- * Type: token
- * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - /** * Search parameter: jurisdiction *

@@ -4899,6 +4353,398 @@ public class ConceptMap extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [CodeSystem](codesystem.html): External identifier for the code system +* [ConceptMap](conceptmap.html): External identifier for the concept map +* [MessageDefinition](messagedefinition.html): External identifier for the message definition +* [StructureDefinition](structuredefinition.html): External identifier for the structure definition +* [StructureMap](structuremap.html): External identifier for the structure map +* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities +* [ValueSet](valueset.html): External identifier for the value set +
+ * Type: token
+ * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier", description="Multiple Resources: \r\n\r\n* [CodeSystem](codesystem.html): External identifier for the code system\r\n* [ConceptMap](conceptmap.html): External identifier for the concept map\r\n* [MessageDefinition](messagedefinition.html): External identifier for the message definition\r\n* [StructureDefinition](structuredefinition.html): External identifier for the structure definition\r\n* [StructureMap](structuremap.html): External identifier for the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities\r\n* [ValueSet](valueset.html): External identifier for the value set\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [CodeSystem](codesystem.html): External identifier for the code system +* [ConceptMap](conceptmap.html): External identifier for the concept map +* [MessageDefinition](messagedefinition.html): External identifier for the message definition +* [StructureDefinition](structuredefinition.html): External identifier for the structure definition +* [StructureMap](structuremap.html): External identifier for the structure map +* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities +* [ValueSet](valueset.html): External identifier for the value set +
+ * Type: token
+ * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: dependson + *

+ * Description: Reference to property mapping depends on
+ * Type: uri
+ * Path: ConceptMap.group.element.target.dependsOn.property
+ *

+ */ + @SearchParamDefinition(name="dependson", path="ConceptMap.group.element.target.dependsOn.property", description="Reference to property mapping depends on", type="uri" ) + public static final String SP_DEPENDSON = "dependson"; + /** + * Fluent Client search parameter constant for dependson + *

+ * Description: Reference to property mapping depends on
+ * Type: uri
+ * Path: ConceptMap.group.element.target.dependsOn.property
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.UriClientParam DEPENDSON = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_DEPENDSON); + + /** + * Search parameter: other + *

+ * Description: canonical reference to an additional ConceptMap to use for mapping if the source concept is unmapped
+ * Type: reference
+ * Path: ConceptMap.group.unmapped.url
+ *

+ */ + @SearchParamDefinition(name="other", path="ConceptMap.group.unmapped.url", description="canonical reference to an additional ConceptMap to use for mapping if the source concept is unmapped", type="reference", target={ConceptMap.class } ) + public static final String SP_OTHER = "other"; + /** + * Fluent Client search parameter constant for other + *

+ * Description: canonical reference to an additional ConceptMap to use for mapping if the source concept is unmapped
+ * Type: reference
+ * Path: ConceptMap.group.unmapped.url
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam OTHER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_OTHER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ConceptMap:other". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_OTHER = new ca.uhn.fhir.model.api.Include("ConceptMap:other").toLocked(); + + /** + * Search parameter: product + *

+ * Description: Reference to property mapping depends on
+ * Type: uri
+ * Path: ConceptMap.group.element.target.product.property
+ *

+ */ + @SearchParamDefinition(name="product", path="ConceptMap.group.element.target.product.property", description="Reference to property mapping depends on", type="uri" ) + public static final String SP_PRODUCT = "product"; + /** + * Fluent Client search parameter constant for product + *

+ * Description: Reference to property mapping depends on
+ * Type: uri
+ * Path: ConceptMap.group.element.target.product.property
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.UriClientParam PRODUCT = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_PRODUCT); + + /** + * Search parameter: source + *

+ * Description: The source value set that contains the concepts that are being mapped
+ * Type: reference
+ * Path: (ConceptMap.source as canonical)
+ *

+ */ + @SearchParamDefinition(name="source", path="(ConceptMap.source as canonical)", description="The source value set that contains the concepts that are being mapped", type="reference", target={ValueSet.class } ) + public static final String SP_SOURCE = "source"; + /** + * Fluent Client search parameter constant for source + *

+ * Description: The source value set that contains the concepts that are being mapped
+ * Type: reference
+ * Path: (ConceptMap.source as canonical)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SOURCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SOURCE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ConceptMap:source". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_SOURCE = new ca.uhn.fhir.model.api.Include("ConceptMap:source").toLocked(); + + /** + * Search parameter: source-code + *

+ * Description: Identifies element being mapped
+ * Type: token
+ * Path: ConceptMap.group.element.code
+ *

+ */ + @SearchParamDefinition(name="source-code", path="ConceptMap.group.element.code", description="Identifies element being mapped", type="token" ) + public static final String SP_SOURCE_CODE = "source-code"; + /** + * Fluent Client search parameter constant for source-code + *

+ * Description: Identifies element being mapped
+ * Type: token
+ * Path: ConceptMap.group.element.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam SOURCE_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SOURCE_CODE); + + /** + * Search parameter: source-system + *

+ * Description: Source system where concepts to be mapped are defined
+ * Type: uri
+ * Path: ConceptMap.group.source
+ *

+ */ + @SearchParamDefinition(name="source-system", path="ConceptMap.group.source", description="Source system where concepts to be mapped are defined", type="uri" ) + public static final String SP_SOURCE_SYSTEM = "source-system"; + /** + * Fluent Client search parameter constant for source-system + *

+ * Description: Source system where concepts to be mapped are defined
+ * Type: uri
+ * Path: ConceptMap.group.source
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.UriClientParam SOURCE_SYSTEM = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_SOURCE_SYSTEM); + + /** + * Search parameter: source-uri + *

+ * Description: The source value set that contains the concepts that are being mapped
+ * Type: reference
+ * Path: (ConceptMap.source as uri)
+ *

+ */ + @SearchParamDefinition(name="source-uri", path="(ConceptMap.source as uri)", description="The source value set that contains the concepts that are being mapped", type="reference", target={ValueSet.class } ) + public static final String SP_SOURCE_URI = "source-uri"; + /** + * Fluent Client search parameter constant for source-uri + *

+ * Description: The source value set that contains the concepts that are being mapped
+ * Type: reference
+ * Path: (ConceptMap.source as uri)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SOURCE_URI = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SOURCE_URI); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ConceptMap:source-uri". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_SOURCE_URI = new ca.uhn.fhir.model.api.Include("ConceptMap:source-uri").toLocked(); + + /** + * Search parameter: target + *

+ * Description: The target value set which provides context for the mappings
+ * Type: reference
+ * Path: (ConceptMap.target as canonical)
+ *

+ */ + @SearchParamDefinition(name="target", path="(ConceptMap.target as canonical)", description="The target value set which provides context for the mappings", type="reference", target={ValueSet.class } ) + public static final String SP_TARGET = "target"; + /** + * Fluent Client search parameter constant for target + *

+ * Description: The target value set which provides context for the mappings
+ * Type: reference
+ * Path: (ConceptMap.target as canonical)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam TARGET = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_TARGET); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ConceptMap:target". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_TARGET = new ca.uhn.fhir.model.api.Include("ConceptMap:target").toLocked(); + + /** + * Search parameter: target-code + *

+ * Description: Code that identifies the target element
+ * Type: token
+ * Path: ConceptMap.group.element.target.code
+ *

+ */ + @SearchParamDefinition(name="target-code", path="ConceptMap.group.element.target.code", description="Code that identifies the target element", type="token" ) + public static final String SP_TARGET_CODE = "target-code"; + /** + * Fluent Client search parameter constant for target-code + *

+ * Description: Code that identifies the target element
+ * Type: token
+ * Path: ConceptMap.group.element.target.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam TARGET_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TARGET_CODE); + + /** + * Search parameter: target-system + *

+ * Description: Target system that the concepts are to be mapped to
+ * Type: uri
+ * Path: ConceptMap.group.target
+ *

+ */ + @SearchParamDefinition(name="target-system", path="ConceptMap.group.target", description="Target system that the concepts are to be mapped to", type="uri" ) + public static final String SP_TARGET_SYSTEM = "target-system"; + /** + * Fluent Client search parameter constant for target-system + *

+ * Description: Target system that the concepts are to be mapped to
+ * Type: uri
+ * Path: ConceptMap.group.target
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.UriClientParam TARGET_SYSTEM = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_TARGET_SYSTEM); + + /** + * Search parameter: target-uri + *

+ * Description: The target value set which provides context for the mappings
+ * Type: reference
+ * Path: (ConceptMap.target as uri)
+ *

+ */ + @SearchParamDefinition(name="target-uri", path="(ConceptMap.target as uri)", description="The target value set which provides context for the mappings", type="reference", target={ValueSet.class } ) + public static final String SP_TARGET_URI = "target-uri"; + /** + * Fluent Client search parameter constant for target-uri + *

+ * Description: The target value set which provides context for the mappings
+ * Type: reference
+ * Path: (ConceptMap.target as uri)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam TARGET_URI = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_TARGET_URI); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ConceptMap:target-uri". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_TARGET_URI = new ca.uhn.fhir.model.api.Include("ConceptMap:target-uri").toLocked(); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Condition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Condition.java index 933dc1e0b..e36bf5d23 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Condition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Condition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -55,10 +55,10 @@ public class Condition extends DomainResource { @Block() public static class ConditionStageComponent extends BackboneElement implements IBaseBackboneElement { /** - * A simple summary of the stage such as "Stage 3". The determination of the stage is disease-specific. + * A simple summary of the stage such as "Stage 3" or "Early Onset". The determination of the stage is disease-specific, such as cancer, retinopathy of prematurity, kidney diseases, Alzheimer's, or Parkinson disease. */ @Child(name = "summary", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Simple summary (disease specific)", formalDefinition="A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific." ) + @Description(shortDefinition="Simple summary (disease specific)", formalDefinition="A simple summary of the stage such as \"Stage 3\" or \"Early Onset\". The determination of the stage is disease-specific, such as cancer, retinopathy of prematurity, kidney diseases, Alzheimer's, or Parkinson disease." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-stage") protected CodeableConcept summary; @@ -87,7 +87,7 @@ public class Condition extends DomainResource { } /** - * @return {@link #summary} (A simple summary of the stage such as "Stage 3". The determination of the stage is disease-specific.) + * @return {@link #summary} (A simple summary of the stage such as "Stage 3" or "Early Onset". The determination of the stage is disease-specific, such as cancer, retinopathy of prematurity, kidney diseases, Alzheimer's, or Parkinson disease.) */ public CodeableConcept getSummary() { if (this.summary == null) @@ -103,7 +103,7 @@ public class Condition extends DomainResource { } /** - * @param value {@link #summary} (A simple summary of the stage such as "Stage 3". The determination of the stage is disease-specific.) + * @param value {@link #summary} (A simple summary of the stage such as "Stage 3" or "Early Onset". The determination of the stage is disease-specific, such as cancer, retinopathy of prematurity, kidney diseases, Alzheimer's, or Parkinson disease.) */ public ConditionStageComponent setSummary(CodeableConcept value) { this.summary = value; @@ -189,7 +189,7 @@ public class Condition extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("summary", "CodeableConcept", "A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific.", 0, 1, summary)); + children.add(new Property("summary", "CodeableConcept", "A simple summary of the stage such as \"Stage 3\" or \"Early Onset\". The determination of the stage is disease-specific, such as cancer, retinopathy of prematurity, kidney diseases, Alzheimer's, or Parkinson disease.", 0, 1, summary)); children.add(new Property("assessment", "Reference(ClinicalImpression|DiagnosticReport|Observation)", "Reference to a formal record of the evidence on which the staging assessment is based.", 0, java.lang.Integer.MAX_VALUE, assessment)); children.add(new Property("type", "CodeableConcept", "The kind of staging, such as pathological or clinical staging.", 0, 1, type)); } @@ -197,7 +197,7 @@ public class Condition extends DomainResource { @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -1857640538: /*summary*/ return new Property("summary", "CodeableConcept", "A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific.", 0, 1, summary); + case -1857640538: /*summary*/ return new Property("summary", "CodeableConcept", "A simple summary of the stage such as \"Stage 3\" or \"Early Onset\". The determination of the stage is disease-specific, such as cancer, retinopathy of prematurity, kidney diseases, Alzheimer's, or Parkinson disease.", 0, 1, summary); case 2119382722: /*assessment*/ return new Property("assessment", "Reference(ClinicalImpression|DiagnosticReport|Observation)", "Reference to a formal record of the evidence on which the staging assessment is based.", 0, java.lang.Integer.MAX_VALUE, assessment); case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The kind of staging, such as pathological or clinical staging.", 0, 1, type); default: return super.getNamedProperty(_hash, _name, _checkValid); @@ -611,16 +611,16 @@ public class Condition extends DomainResource { /** * The clinical status of the condition. */ - @Child(name = "clinicalStatus", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=true, summary=true) + @Child(name = "clinicalStatus", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=true, summary=true) @Description(shortDefinition="active | recurrence | relapse | inactive | remission | resolved", formalDefinition="The clinical status of the condition." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-clinical") protected CodeableConcept clinicalStatus; /** - * The verification status to support the clinical status of the condition. + * The verification status to support the clinical status of the condition. The verification status pertains to the condition, itself, not to any specific condition attribute. */ @Child(name = "verificationStatus", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=true, summary=true) - @Description(shortDefinition="unconfirmed | provisional | differential | confirmed | refuted | entered-in-error", formalDefinition="The verification status to support the clinical status of the condition." ) + @Description(shortDefinition="unconfirmed | provisional | differential | confirmed | refuted | entered-in-error", formalDefinition="The verification status to support the clinical status of the condition. The verification status pertains to the condition, itself, not to any specific condition attribute." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-ver-status") protected CodeableConcept verificationStatus; @@ -706,10 +706,10 @@ public class Condition extends DomainResource { protected Reference asserter; /** - * Clinical stage or grade of a condition. May include formal severity assessments. + * A simple summary of the stage such as "Stage 3" or "Early Onset". The determination of the stage is disease-specific, such as cancer, retinopathy of prematurity, kidney diseases, Alzheimer's, or Parkinson disease. */ @Child(name = "stage", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Stage/grade, usually assessed formally", formalDefinition="Clinical stage or grade of a condition. May include formal severity assessments." ) + @Description(shortDefinition="Stage/grade, usually assessed formally", formalDefinition="A simple summary of the stage such as \"Stage 3\" or \"Early Onset\". The determination of the stage is disease-specific, such as cancer, retinopathy of prematurity, kidney diseases, Alzheimer's, or Parkinson disease." ) protected List stage; /** @@ -738,8 +738,9 @@ public class Condition extends DomainResource { /** * Constructor */ - public Condition(Reference subject) { + public Condition(CodeableConcept clinicalStatus, Reference subject) { super(); + this.setClinicalStatus(clinicalStatus); this.setSubject(subject); } @@ -821,7 +822,7 @@ public class Condition extends DomainResource { } /** - * @return {@link #verificationStatus} (The verification status to support the clinical status of the condition.) + * @return {@link #verificationStatus} (The verification status to support the clinical status of the condition. The verification status pertains to the condition, itself, not to any specific condition attribute.) */ public CodeableConcept getVerificationStatus() { if (this.verificationStatus == null) @@ -837,7 +838,7 @@ public class Condition extends DomainResource { } /** - * @param value {@link #verificationStatus} (The verification status to support the clinical status of the condition.) + * @param value {@link #verificationStatus} (The verification status to support the clinical status of the condition. The verification status pertains to the condition, itself, not to any specific condition attribute.) */ public Condition setVerificationStatus(CodeableConcept value) { this.verificationStatus = value; @@ -1336,7 +1337,7 @@ public class Condition extends DomainResource { } /** - * @return {@link #stage} (Clinical stage or grade of a condition. May include formal severity assessments.) + * @return {@link #stage} (A simple summary of the stage such as "Stage 3" or "Early Onset". The determination of the stage is disease-specific, such as cancer, retinopathy of prematurity, kidney diseases, Alzheimer's, or Parkinson disease.) */ public List getStage() { if (this.stage == null) @@ -1498,7 +1499,7 @@ public class Condition extends DomainResource { super.listChildren(children); children.add(new Property("identifier", "Identifier", "Business identifiers assigned to this condition by the performer or other systems which remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier)); children.add(new Property("clinicalStatus", "CodeableConcept", "The clinical status of the condition.", 0, 1, clinicalStatus)); - children.add(new Property("verificationStatus", "CodeableConcept", "The verification status to support the clinical status of the condition.", 0, 1, verificationStatus)); + children.add(new Property("verificationStatus", "CodeableConcept", "The verification status to support the clinical status of the condition. The verification status pertains to the condition, itself, not to any specific condition attribute.", 0, 1, verificationStatus)); children.add(new Property("category", "CodeableConcept", "A category assigned to the condition.", 0, java.lang.Integer.MAX_VALUE, category)); children.add(new Property("severity", "CodeableConcept", "A subjective assessment of the severity of the condition as evaluated by the clinician.", 0, 1, severity)); children.add(new Property("code", "CodeableConcept", "Identification of the condition, problem or diagnosis.", 0, 1, code)); @@ -1510,7 +1511,7 @@ public class Condition extends DomainResource { children.add(new Property("recordedDate", "dateTime", "The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date.", 0, 1, recordedDate)); children.add(new Property("recorder", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson)", "Individual who recorded the record and takes responsibility for its content.", 0, 1, recorder)); children.add(new Property("asserter", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson|Device)", "Individual or device that is making the condition statement.", 0, 1, asserter)); - children.add(new Property("stage", "", "Clinical stage or grade of a condition. May include formal severity assessments.", 0, java.lang.Integer.MAX_VALUE, stage)); + children.add(new Property("stage", "", "A simple summary of the stage such as \"Stage 3\" or \"Early Onset\". The determination of the stage is disease-specific, such as cancer, retinopathy of prematurity, kidney diseases, Alzheimer's, or Parkinson disease.", 0, java.lang.Integer.MAX_VALUE, stage)); children.add(new Property("evidence", "", "Supporting evidence / manifestations that are the basis of the Condition's verification status, such as evidence that confirmed or refuted the condition.", 0, java.lang.Integer.MAX_VALUE, evidence)); children.add(new Property("note", "Annotation", "Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis.", 0, java.lang.Integer.MAX_VALUE, note)); } @@ -1520,7 +1521,7 @@ public class Condition extends DomainResource { switch (_hash) { case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifiers assigned to this condition by the performer or other systems which remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier); case -462853915: /*clinicalStatus*/ return new Property("clinicalStatus", "CodeableConcept", "The clinical status of the condition.", 0, 1, clinicalStatus); - case -842509843: /*verificationStatus*/ return new Property("verificationStatus", "CodeableConcept", "The verification status to support the clinical status of the condition.", 0, 1, verificationStatus); + case -842509843: /*verificationStatus*/ return new Property("verificationStatus", "CodeableConcept", "The verification status to support the clinical status of the condition. The verification status pertains to the condition, itself, not to any specific condition attribute.", 0, 1, verificationStatus); case 50511102: /*category*/ return new Property("category", "CodeableConcept", "A category assigned to the condition.", 0, java.lang.Integer.MAX_VALUE, category); case 1478300413: /*severity*/ return new Property("severity", "CodeableConcept", "A subjective assessment of the severity of the condition as evaluated by the clinician.", 0, 1, severity); case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Identification of the condition, problem or diagnosis.", 0, 1, code); @@ -1544,7 +1545,7 @@ public class Condition extends DomainResource { case -1952893826: /*recordedDate*/ return new Property("recordedDate", "dateTime", "The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date.", 0, 1, recordedDate); case -799233858: /*recorder*/ return new Property("recorder", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson)", "Individual who recorded the record and takes responsibility for its content.", 0, 1, recorder); case -373242253: /*asserter*/ return new Property("asserter", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson|Device)", "Individual or device that is making the condition statement.", 0, 1, asserter); - case 109757182: /*stage*/ return new Property("stage", "", "Clinical stage or grade of a condition. May include formal severity assessments.", 0, java.lang.Integer.MAX_VALUE, stage); + case 109757182: /*stage*/ return new Property("stage", "", "A simple summary of the stage such as \"Stage 3\" or \"Early Onset\". The determination of the stage is disease-specific, such as cancer, retinopathy of prematurity, kidney diseases, Alzheimer's, or Parkinson disease.", 0, java.lang.Integer.MAX_VALUE, stage); case 382967383: /*evidence*/ return new Property("evidence", "", "Supporting evidence / manifestations that are the basis of the Condition's verification status, such as evidence that confirmed or refuted the condition.", 0, java.lang.Integer.MAX_VALUE, evidence); case 3387378: /*note*/ return new Property("note", "Annotation", "Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis.", 0, java.lang.Integer.MAX_VALUE, note); default: return super.getNamedProperty(_hash, _name, _checkValid); @@ -1925,6 +1926,262 @@ public class Condition extends DomainResource { return ResourceType.Condition; } + /** + * Search parameter: subject + *

+ * Description: Search by condition subject
+ * Type: reference
+ * Path: Condition.subject
+ *

+ */ + @SearchParamDefinition(name="subject", path="Condition.subject", description="Search by condition subject", type="reference", target={Organization.class } ) + public static final String SP_SUBJECT = "subject"; + /** + * Fluent Client search parameter constant for subject + *

+ * Description: Search by condition subject
+ * Type: reference
+ * Path: Condition.subject
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Condition:subject". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("Condition:subject").toLocked(); + + /** + * Search parameter: code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Condition:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Condition:patient").toLocked(); + /** * Search parameter: abatement-age *

@@ -2097,32 +2354,6 @@ public class Condition extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("Condition:encounter").toLocked(); - /** - * Search parameter: evidence-detail - *

- * Description: Supporting information found elsewhere
- * Type: reference
- * Path: Condition.evidence.detail
- *

- */ - @SearchParamDefinition(name="evidence-detail", path="Condition.evidence.detail", description="Supporting information found elsewhere", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) - public static final String SP_EVIDENCE_DETAIL = "evidence-detail"; - /** - * Fluent Client search parameter constant for evidence-detail - *

- * Description: Supporting information found elsewhere
- * Type: reference
- * Path: Condition.evidence.detail
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam EVIDENCE_DETAIL = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_EVIDENCE_DETAIL); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Condition:evidence-detail". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_EVIDENCE_DETAIL = new ca.uhn.fhir.model.api.Include("Condition:evidence-detail").toLocked(); - /** * Search parameter: evidence *

@@ -2143,6 +2374,32 @@ public class Condition extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam EVIDENCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EVIDENCE); + /** + * Search parameter: evidence-detail + *

+ * Description: Supporting information found elsewhere
+ * Type: reference
+ * Path: Condition.evidence.detail
+ *

+ */ + @SearchParamDefinition(name="evidence-detail", path="Condition.evidence.detail", description="Supporting information found elsewhere", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_EVIDENCE_DETAIL = "evidence-detail"; + /** + * Fluent Client search parameter constant for evidence-detail + *

+ * Description: Supporting information found elsewhere
+ * Type: reference
+ * Path: Condition.evidence.detail
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam EVIDENCE_DETAIL = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_EVIDENCE_DETAIL); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Condition:evidence-detail". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_EVIDENCE_DETAIL = new ca.uhn.fhir.model.api.Include("Condition:evidence-detail").toLocked(); + /** * Search parameter: onset-age *

@@ -2263,32 +2520,6 @@ public class Condition extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam STAGE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STAGE); - /** - * Search parameter: subject - *

- * Description: Who has the condition?
- * Type: reference
- * Path: Condition.subject
- *

- */ - @SearchParamDefinition(name="subject", path="Condition.subject", description="Who has the condition?", type="reference", target={Group.class, Patient.class } ) - public static final String SP_SUBJECT = "subject"; - /** - * Fluent Client search parameter constant for subject - *

- * Description: Who has the condition?
- * Type: reference
- * Path: Condition.subject
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Condition:subject". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("Condition:subject").toLocked(); - /** * Search parameter: verification-status *

@@ -2309,236 +2540,6 @@ public class Condition extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERIFICATION_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERIFICATION_STATUS); - /** - * Search parameter: code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) - public static final String SP_CODE = "code"; - /** - * Fluent Client search parameter constant for code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Condition:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Condition:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConditionDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConditionDefinition.java index 5044afb35..7854120d4 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConditionDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ConditionDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -82,7 +82,6 @@ public class ConditionDefinition extends MetadataResource { switch (this) { case SENSITIVE: return "sensitive"; case SPECIFIC: return "specific"; - case NULL: return null; default: return "?"; } } @@ -90,7 +89,6 @@ public class ConditionDefinition extends MetadataResource { switch (this) { case SENSITIVE: return "http://hl7.org/fhir/condition-precondition-type"; case SPECIFIC: return "http://hl7.org/fhir/condition-precondition-type"; - case NULL: return null; default: return "?"; } } @@ -98,7 +96,6 @@ public class ConditionDefinition extends MetadataResource { switch (this) { case SENSITIVE: return "The observation is very sensitive for the condition, but may also indicate other conditions."; case SPECIFIC: return "The observation is very specific for this condition, but not particularly sensitive."; - case NULL: return null; default: return "?"; } } @@ -106,7 +103,6 @@ public class ConditionDefinition extends MetadataResource { switch (this) { case SENSITIVE: return "Sensitive"; case SPECIFIC: return "Specific"; - case NULL: return null; default: return "?"; } } @@ -185,7 +181,6 @@ public class ConditionDefinition extends MetadataResource { case PREADMIT: return "preadmit"; case DIFFDIAGNOSIS: return "diff-diagnosis"; case OUTCOME: return "outcome"; - case NULL: return null; default: return "?"; } } @@ -194,7 +189,6 @@ public class ConditionDefinition extends MetadataResource { case PREADMIT: return "http://hl7.org/fhir/condition-questionnaire-purpose"; case DIFFDIAGNOSIS: return "http://hl7.org/fhir/condition-questionnaire-purpose"; case OUTCOME: return "http://hl7.org/fhir/condition-questionnaire-purpose"; - case NULL: return null; default: return "?"; } } @@ -203,7 +197,6 @@ public class ConditionDefinition extends MetadataResource { case PREADMIT: return "A pre-admit questionnaire."; case DIFFDIAGNOSIS: return "A questionnaire that helps with diferential diagnosis."; case OUTCOME: return "A questionnaire to check on outcomes for the patient."; - case NULL: return null; default: return "?"; } } @@ -212,7 +205,6 @@ public class ConditionDefinition extends MetadataResource { case PREADMIT: return "Pre-admit"; case DIFFDIAGNOSIS: return "Diff Diagnosis"; case OUTCOME: return "Outcome"; - case NULL: return null; default: return "?"; } } @@ -3116,6 +3108,216 @@ public class ConditionDefinition extends MetadataResource { throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"effectivePeriod\""); } + /** + * not supported on this implementation + */ + @Override + public int getTopicMax() { + return 0; + } + /** + * @return {@link #topic} (Descriptive topics related to the content of the library. Topics provide a high-level categorization of the library that can be useful for filtering and searching.) + */ + public List getTopic() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public ConditionDefinition setTopic(List theTopic) { + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"topic\""); + } + public boolean hasTopic() { + return false; + } + + public CodeableConcept addTopic() { //3 + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"topic\""); + } + public ConditionDefinition addTopic(CodeableConcept t) { //3 + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"topic\""); + } + /** + * @return The first repetition of repeating field {@link #topic}, creating it if it does not already exist {2} + */ + public CodeableConcept getTopicFirstRep() { + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"topic\""); + } + /** + * not supported on this implementation + */ + @Override + public int getAuthorMax() { + return 0; + } + /** + * @return {@link #author} (An individiual or organization primarily involved in the creation and maintenance of the condition definition.) + */ + public List getAuthor() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public ConditionDefinition setAuthor(List theAuthor) { + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"author\""); + } + public boolean hasAuthor() { + return false; + } + + public ContactDetail addAuthor() { //3 + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"author\""); + } + public ConditionDefinition addAuthor(ContactDetail t) { //3 + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"author\""); + } + /** + * @return The first repetition of repeating field {@link #author}, creating it if it does not already exist {2} + */ + public ContactDetail getAuthorFirstRep() { + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"author\""); + } + /** + * not supported on this implementation + */ + @Override + public int getEditorMax() { + return 0; + } + /** + * @return {@link #editor} (An individual or organization primarily responsible for internal coherence of the condition definition.) + */ + public List getEditor() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public ConditionDefinition setEditor(List theEditor) { + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"editor\""); + } + public boolean hasEditor() { + return false; + } + + public ContactDetail addEditor() { //3 + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"editor\""); + } + public ConditionDefinition addEditor(ContactDetail t) { //3 + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"editor\""); + } + /** + * @return The first repetition of repeating field {@link #editor}, creating it if it does not already exist {2} + */ + public ContactDetail getEditorFirstRep() { + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"editor\""); + } + /** + * not supported on this implementation + */ + @Override + public int getReviewerMax() { + return 0; + } + /** + * @return {@link #reviewer} (An individual or organization primarily responsible for review of some aspect of the condition definition.) + */ + public List getReviewer() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public ConditionDefinition setReviewer(List theReviewer) { + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"reviewer\""); + } + public boolean hasReviewer() { + return false; + } + + public ContactDetail addReviewer() { //3 + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"reviewer\""); + } + public ConditionDefinition addReviewer(ContactDetail t) { //3 + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"reviewer\""); + } + /** + * @return The first repetition of repeating field {@link #reviewer}, creating it if it does not already exist {2} + */ + public ContactDetail getReviewerFirstRep() { + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"reviewer\""); + } + /** + * not supported on this implementation + */ + @Override + public int getEndorserMax() { + return 0; + } + /** + * @return {@link #endorser} (An individual or organization responsible for officially endorsing the condition definition for use in some setting.) + */ + public List getEndorser() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public ConditionDefinition setEndorser(List theEndorser) { + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"endorser\""); + } + public boolean hasEndorser() { + return false; + } + + public ContactDetail addEndorser() { //3 + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"endorser\""); + } + public ConditionDefinition addEndorser(ContactDetail t) { //3 + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"endorser\""); + } + /** + * @return The first repetition of repeating field {@link #endorser}, creating it if it does not already exist {2} + */ + public ContactDetail getEndorserFirstRep() { + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"endorser\""); + } + /** + * not supported on this implementation + */ + @Override + public int getRelatedArtifactMax() { + return 0; + } + /** + * @return {@link #relatedArtifact} (Related artifacts such as additional documentation, justification, dependencies, bibliographic references, and predecessor and successor artifacts.) + */ + public List getRelatedArtifact() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public ConditionDefinition setRelatedArtifact(List theRelatedArtifact) { + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"relatedArtifact\""); + } + public boolean hasRelatedArtifact() { + return false; + } + + public RelatedArtifact addRelatedArtifact() { //3 + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"relatedArtifact\""); + } + public ConditionDefinition addRelatedArtifact(RelatedArtifact t) { //3 + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"relatedArtifact\""); + } + /** + * @return The first repetition of repeating field {@link #relatedArtifact}, creating it if it does not already exist {2} + */ + public RelatedArtifact getRelatedArtifactFirstRep() { + throw new Error("The resource type \"ConditionDefinition\" does not implement the property \"relatedArtifact\""); + } protected void listChildren(List children) { super.listChildren(children); children.add(new Property("url", "uri", "An absolute URI that is used to identify this condition definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this condition definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the condition definition is stored on different servers.", 0, 1, url)); @@ -3682,6 +3884,26 @@ public class ConditionDefinition extends MetadataResource { return ResourceType.ConditionDefinition; } + /** + * Search parameter: context + *

+ * Description: A use context assigned to the condition definition
+ * Type: token
+ * Path: (ConditionDefinition.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(ConditionDefinition.useContext.value as CodeableConcept)", description="A use context assigned to the condition definition", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: A use context assigned to the condition definition
+ * Type: token
+ * Path: (ConditionDefinition.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -3702,46 +3924,6 @@ public class ConditionDefinition extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the condition definition
- * Type: composite
- * Path: ConditionDefinition.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="ConditionDefinition.useContext", description="A use context type and quantity- or range-based value assigned to the condition definition", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the condition definition
- * Type: composite
- * Path: ConditionDefinition.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: A use context type and value assigned to the condition definition
- * Type: composite
- * Path: ConditionDefinition.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="ConditionDefinition.useContext", description="A use context type and value assigned to the condition definition", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: A use context type and value assigned to the condition definition
- * Type: composite
- * Path: ConditionDefinition.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -3762,26 +3944,6 @@ public class ConditionDefinition extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: A use context assigned to the condition definition
- * Type: token
- * Path: (ConditionDefinition.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(ConditionDefinition.useContext.value as CodeableConcept)", description="A use context assigned to the condition definition", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: A use context assigned to the condition definition
- * Type: token
- * Path: (ConditionDefinition.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -3982,6 +4144,46 @@ public class ConditionDefinition extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the condition definition
+ * Type: composite
+ * Path: ConditionDefinition.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="ConditionDefinition.useContext", description="A use context type and quantity- or range-based value assigned to the condition definition", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the condition definition
+ * Type: composite
+ * Path: ConditionDefinition.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: A use context type and value assigned to the condition definition
+ * Type: composite
+ * Path: ConditionDefinition.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="ConditionDefinition.useContext", description="A use context type and value assigned to the condition definition", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: A use context type and value assigned to the condition definition
+ * Type: composite
+ * Path: ConditionDefinition.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Consent.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Consent.java index 86a046739..c99c31869 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Consent.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Consent.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class Consent extends DomainResource { case RELATED: return "related"; case DEPENDENTS: return "dependents"; case AUTHOREDBY: return "authoredby"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class Consent extends DomainResource { case RELATED: return "http://hl7.org/fhir/consent-data-meaning"; case DEPENDENTS: return "http://hl7.org/fhir/consent-data-meaning"; case AUTHOREDBY: return "http://hl7.org/fhir/consent-data-meaning"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class Consent extends DomainResource { case RELATED: return "The consent applies directly to the instance of the resource and instances it refers to."; case DEPENDENTS: return "The consent applies directly to the instance of the resource and instances that refer to it."; case AUTHOREDBY: return "The consent applies to instances of resources that are authored by."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class Consent extends DomainResource { case RELATED: return "Related"; case DEPENDENTS: return "Dependents"; case AUTHOREDBY: return "AuthoredBy"; - case NULL: return null; default: return "?"; } } @@ -210,7 +206,6 @@ public class Consent extends DomainResource { switch (this) { case DENY: return "deny"; case PERMIT: return "permit"; - case NULL: return null; default: return "?"; } } @@ -218,7 +213,6 @@ public class Consent extends DomainResource { switch (this) { case DENY: return "http://hl7.org/fhir/consent-provision-type"; case PERMIT: return "http://hl7.org/fhir/consent-provision-type"; - case NULL: return null; default: return "?"; } } @@ -226,7 +220,6 @@ public class Consent extends DomainResource { switch (this) { case DENY: return "Consent is denied for actions meeting these rules."; case PERMIT: return "Consent is provided for actions meeting these rules."; - case NULL: return null; default: return "?"; } } @@ -234,7 +227,6 @@ public class Consent extends DomainResource { switch (this) { case DENY: return "Deny"; case PERMIT: return "Permit"; - case NULL: return null; default: return "?"; } } @@ -327,7 +319,6 @@ public class Consent extends DomainResource { case INACTIVE: return "inactive"; case ENTEREDINERROR: return "entered-in-error"; case UNKNOWN: return "unknown"; - case NULL: return null; default: return "?"; } } @@ -338,7 +329,6 @@ public class Consent extends DomainResource { case INACTIVE: return "http://hl7.org/fhir/consent-state-codes"; case ENTEREDINERROR: return "http://hl7.org/fhir/consent-state-codes"; case UNKNOWN: return "http://hl7.org/fhir/consent-state-codes"; - case NULL: return null; default: return "?"; } } @@ -349,7 +339,6 @@ public class Consent extends DomainResource { case INACTIVE: return "The consent is terminated or replaced."; case ENTEREDINERROR: return "The consent was created wrongly (e.g. wrong patient) and should be ignored."; case UNKNOWN: return "The resource is in an indeterminate state."; - case NULL: return null; default: return "?"; } } @@ -360,7 +349,6 @@ public class Consent extends DomainResource { case INACTIVE: return "Inactive"; case ENTEREDINERROR: return "Entered in Error"; case UNKNOWN: return "Unknown"; - case NULL: return null; default: return "?"; } } @@ -3592,6 +3580,242 @@ public class Consent extends DomainResource { return ResourceType.Consent; } + /** + * Search parameter: date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) + public static final String SP_DATE = "date"; + /** + * Fluent Client search parameter constant for date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Consent:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Consent:patient").toLocked(); + /** * Search parameter: action *

@@ -3718,7 +3942,7 @@ public class Consent extends DomainResource { * Path: Consent.provision.data.reference
*

*/ - @SearchParamDefinition(name="data", path="Consent.provision.data.reference", description="The actual data reference", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="data", path="Consent.provision.data.reference", description="The actual data reference", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_DATA = "data"; /** * Fluent Client search parameter constant for data @@ -3916,7 +4140,7 @@ public class Consent extends DomainResource { * Path: Consent.subject
*

*/ - @SearchParamDefinition(name="subject", path="Consent.subject", description="Who the consent applies to", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class, Practitioner.class, ResearchSubject.class } ) + @SearchParamDefinition(name="subject", path="Consent.subject", description="Who the consent applies to", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class, Practitioner.class } ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject @@ -3934,26 +4158,6 @@ public class Consent extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("Consent:subject").toLocked(); - /** - * Search parameter: verified-date - *

- * Description: When consent verified
- * Type: date
- * Path: Consent.verification.verificationDate
- *

- */ - @SearchParamDefinition(name="verified-date", path="Consent.verification.verificationDate", description="When consent verified", type="date" ) - public static final String SP_VERIFIED_DATE = "verified-date"; - /** - * Fluent Client search parameter constant for verified-date - *

- * Description: When consent verified
- * Type: date
- * Path: Consent.verification.verificationDate
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam VERIFIED_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_VERIFIED_DATE); - /** * Search parameter: verified *

@@ -3975,240 +4179,24 @@ public class Consent extends DomainResource { public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERIFIED = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERIFIED); /** - * Search parameter: date + * Search parameter: verified-date *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
+ * Description: When consent verified
* Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ * Path: Consent.verification.verificationDate
*

*/ - @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) - public static final String SP_DATE = "date"; + @SearchParamDefinition(name="verified-date", path="Consent.verification.verificationDate", description="When consent verified", type="date" ) + public static final String SP_VERIFIED_DATE = "verified-date"; /** - * Fluent Client search parameter constant for date + * Fluent Client search parameter constant for verified-date *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
+ * Description: When consent verified
* Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ * Path: Consent.verification.verificationDate
*

*/ - public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Consent:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Consent:patient").toLocked(); + public static final ca.uhn.fhir.rest.gclient.DateClientParam VERIFIED_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_VERIFIED_DATE); } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Constants.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Constants.java index 2d7244827..2b78a28bd 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Constants.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Constants.java @@ -30,17 +30,17 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR v4.5.0 +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 public class Constants { - 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|Citation|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|EvidenceReport|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|NutritionProduct|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|PackagedProductDefinition|Parameters|Patient|PaymentNotice|PaymentReconciliation|Permission|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RegulatedAuthorization|RelatedPerson|RequestGroup|ResearchStudy|ResearchSubject|RiskAssessment|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|SubscriptionStatus|SubscriptionTopic|Substance|SubstanceDefinition|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|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|Citation|Claim|ClaimResponse|ClinicalImpression|ClinicalUseIssue|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|ConditionDefinition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUsage|DiagnosticReport|DocumentManifest|DocumentReference|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceReport|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|Ingredient|InsurancePlan|InventoryReport|Invoice|Library|Linkage|List|Location|ManufacturedItemDefinition|Measure|MeasureReport|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationUsage|MedicinalProductDefinition|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionIntake|NutritionOrder|NutritionProduct|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|PackagedProductDefinition|Parameters|Patient|PaymentNotice|PaymentReconciliation|Permission|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RegulatedAuthorization|RelatedPerson|RequestGroup|ResearchStudy|ResearchSubject|RiskAssessment|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|SubscriptionStatus|SubscriptionTopic|Substance|SubstanceDefinition|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|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.5.0"; - public final static String VERSION_MM = "4.5"; - public final static String DATE = "Thu, Aug 20, 2020 19:42+1000"; - 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|Citation|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|EvidenceReport|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|NutritionProduct|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|PackagedProductDefinition|Parameters|Patient|PaymentNotice|PaymentReconciliation|Permission|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RegulatedAuthorization|RelatedPerson|RequestGroup|ResearchStudy|ResearchSubject|RiskAssessment|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|SubscriptionStatus|SubscriptionTopic|Substance|SubstanceDefinition|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?"; + public final static String VERSION = "4.6.0"; + public final static String VERSION_MM = "4.6"; + public final static String DATE = "Tue, May 4, 2021 07:17+1000"; + 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|Citation|Claim|ClaimResponse|ClinicalImpression|ClinicalUseIssue|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|ConditionDefinition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUsage|DiagnosticReport|DocumentManifest|DocumentReference|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceReport|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|Ingredient|InsurancePlan|InventoryReport|Invoice|Library|Linkage|List|Location|ManufacturedItemDefinition|Measure|MeasureReport|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationUsage|MedicinalProductDefinition|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionIntake|NutritionOrder|NutritionProduct|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|PackagedProductDefinition|Parameters|Patient|PaymentNotice|PaymentReconciliation|Permission|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RegulatedAuthorization|RelatedPerson|RequestGroup|ResearchStudy|ResearchSubject|RiskAssessment|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|SubscriptionStatus|SubscriptionTopic|Substance|SubstanceDefinition|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?"; } \ No newline at end of file diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactDetail.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactDetail.java index 2dc6dfa16..ace96242e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactDetail.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactDetail.java @@ -29,13 +29,12 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; import java.util.List; import org.hl7.fhir.utilities.Utilities; -import org.hl7.fhir.r5.model.ContactPoint.ContactPointSystem; import org.hl7.fhir.r5.model.Enumerations.*; import org.hl7.fhir.instance.model.api.IBaseDatatypeElement; import org.hl7.fhir.exceptions.FHIRException; @@ -46,6 +45,7 @@ import ca.uhn.fhir.model.api.annotation.DatatypeDef; import ca.uhn.fhir.model.api.annotation.Description; import ca.uhn.fhir.model.api.annotation.Block; +import org.hl7.fhir.r5.model.ContactPoint.ContactPointSystem; /** * Base StructureDefinition for ContactDetail Type: Specifies contact information for a person or organization. */ @@ -309,6 +309,7 @@ public class ContactDetail extends DataType implements ICompositeType { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, telecom); } +// Manual code (from Configuration.txt): public ContactPoint getEmail() { for (ContactPoint cp : getTelecom()) { if (cp.getSystem() == ContactPointSystem.EMAIL) { @@ -336,5 +337,7 @@ public class ContactDetail extends DataType implements ICompositeType { return null; } +// end addition + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactPoint.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactPoint.java index b09ccf60b..d16a96093 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactPoint.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ContactPoint.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -115,7 +115,6 @@ public class ContactPoint extends DataType implements ICompositeType { case URL: return "url"; case SMS: return "sms"; case OTHER: return "other"; - case NULL: return null; default: return "?"; } } @@ -128,7 +127,6 @@ public class ContactPoint extends DataType implements ICompositeType { case URL: return "http://hl7.org/fhir/contact-point-system"; case SMS: return "http://hl7.org/fhir/contact-point-system"; case OTHER: return "http://hl7.org/fhir/contact-point-system"; - case NULL: return null; default: return "?"; } } @@ -141,7 +139,6 @@ public class ContactPoint extends DataType implements ICompositeType { case URL: return "A contact that is not a phone, fax, pager or email address and is expressed as a URL. This is intended for various institutional or personal contacts including web sites, blogs, Skype, Twitter, Facebook, etc. Do not use for email addresses."; case SMS: return "A contact that can be used for sending an sms message (e.g. mobile phones, some landlines)."; case OTHER: return "A contact that is not a phone, fax, page or email address and is not expressible as a URL. E.g. Internal mail address. This SHOULD NOT be used for contacts that are expressible as a URL (e.g. Skype, Twitter, Facebook, etc.) Extensions may be used to distinguish \"other\" contact types."; - case NULL: return null; default: return "?"; } } @@ -154,7 +151,6 @@ public class ContactPoint extends DataType implements ICompositeType { case URL: return "URL"; case SMS: return "SMS"; case OTHER: return "Other"; - case NULL: return null; default: return "?"; } } @@ -277,7 +273,6 @@ public class ContactPoint extends DataType implements ICompositeType { case TEMP: return "temp"; case OLD: return "old"; case MOBILE: return "mobile"; - case NULL: return null; default: return "?"; } } @@ -288,7 +283,6 @@ public class ContactPoint extends DataType implements ICompositeType { case TEMP: return "http://hl7.org/fhir/contact-point-use"; case OLD: return "http://hl7.org/fhir/contact-point-use"; case MOBILE: return "http://hl7.org/fhir/contact-point-use"; - case NULL: return null; default: return "?"; } } @@ -299,7 +293,6 @@ public class ContactPoint extends DataType implements ICompositeType { case TEMP: return "A temporary contact point. The period can provide more detailed information."; case OLD: return "This contact point is no longer in use (or was never correct, but retained for records)."; case MOBILE: return "A telecommunication device that moves and stays with its owner. May have characteristics of all other use codes, suitable for urgent matters, not the first choice for routine business."; - case NULL: return null; default: return "?"; } } @@ -310,7 +303,6 @@ public class ContactPoint extends DataType implements ICompositeType { case TEMP: return "Temp"; case OLD: return "Old"; case MOBILE: return "Mobile"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contract.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contract.java index 80fe07841..719333ac9 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contract.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contract.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -174,7 +174,6 @@ public class Contract extends DomainResource { case REVOKED: return "revoked"; case RESOLVED: return "resolved"; case TERMINATED: return "terminated"; - case NULL: return null; default: return "?"; } } @@ -195,7 +194,6 @@ public class Contract extends DomainResource { case REVOKED: return "http://hl7.org/fhir/contract-publicationstatus"; case RESOLVED: return "http://hl7.org/fhir/contract-publicationstatus"; case TERMINATED: return "http://hl7.org/fhir/contract-publicationstatus"; - case NULL: return null; default: return "?"; } } @@ -216,7 +214,6 @@ public class Contract extends DomainResource { case REVOKED: return "A Contract that is rescinded. May be required prior to replacing with an updated Contract. Comparable FHIR and v.3 status codes: nullified."; case RESOLVED: return "Contract is reactivated after being pended because of faulty execution. *E.g., competency of the signer(s), or where the policy is substantially different from and did not accompany the application/form so that the applicant could not compare them. Aka - ''reactivated''. Usage: Optional stage where a pended contract is reactivated. Precedence Order = 8. Comparable FHIR and v.3 status codes: reactivated."; case TERMINATED: return "Contract reaches its expiry date. It might or might not be renewed or renegotiated. Usage: Normal end of contract period. Precedence Order = 12. Comparable FHIR and v.3 status codes: Obsoleted."; - case NULL: return null; default: return "?"; } } @@ -237,7 +234,6 @@ public class Contract extends DomainResource { case REVOKED: return "Revoked"; case RESOLVED: return "Resolved"; case TERMINATED: return "Terminated"; - case NULL: return null; default: return "?"; } } @@ -478,7 +474,6 @@ public class Contract extends DomainResource { case REVOKED: return "revoked"; case RESOLVED: return "resolved"; case TERMINATED: return "terminated"; - case NULL: return null; default: return "?"; } } @@ -499,7 +494,6 @@ public class Contract extends DomainResource { case REVOKED: return "http://hl7.org/fhir/contract-status"; case RESOLVED: return "http://hl7.org/fhir/contract-status"; case TERMINATED: return "http://hl7.org/fhir/contract-status"; - case NULL: return null; default: return "?"; } } @@ -520,7 +514,6 @@ public class Contract extends DomainResource { case REVOKED: return "A Contract that is rescinded. May be required prior to replacing with an updated Contract. Comparable FHIR and v.3 status codes: nullified."; case RESOLVED: return "Contract is reactivated after being pended because of faulty execution. *E.g., competency of the signer(s), or where the policy is substantially different from and did not accompany the application/form so that the applicant could not compare them. Aka - ''reactivated''. Usage: Optional stage where a pended contract is reactivated. Precedence Order = 8. Comparable FHIR and v.3 status codes: reactivated."; case TERMINATED: return "Contract reaches its expiry date. It might or might not be renewed or renegotiated. Usage: Normal end of contract period. Precedence Order = 12. Comparable FHIR and v.3 status codes: Obsoleted."; - case NULL: return null; default: return "?"; } } @@ -541,7 +534,6 @@ public class Contract extends DomainResource { case REVOKED: return "Revoked"; case RESOLVED: return "Resolved"; case TERMINATED: return "Terminated"; - case NULL: return null; default: return "?"; } } @@ -11558,7 +11550,7 @@ public class Contract extends DomainResource { * Path: Contract.subject.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="Contract.subject.where(resolve() is Patient)", description="The identity of the subject of the contract (if a patient)", type="reference", target={Patient.class } ) + @SearchParamDefinition(name="patient", path="Contract.subject.where(resolve() is Patient)", description="The identity of the subject of the contract (if a patient)", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -11630,7 +11622,7 @@ public class Contract extends DomainResource { * Path: Contract.subject
*

*/ - @SearchParamDefinition(name="subject", path="Contract.subject", description="The identity of the subject of the contract", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="subject", path="Contract.subject", description="The identity of the subject of the contract", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contributor.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contributor.java index a587467bc..1634ccb91 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contributor.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Contributor.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -94,7 +94,6 @@ public class Contributor extends DataType implements ICompositeType { case EDITOR: return "editor"; case REVIEWER: return "reviewer"; case ENDORSER: return "endorser"; - case NULL: return null; default: return "?"; } } @@ -104,7 +103,6 @@ public class Contributor extends DataType implements ICompositeType { case EDITOR: return "http://hl7.org/fhir/contributor-type"; case REVIEWER: return "http://hl7.org/fhir/contributor-type"; case ENDORSER: return "http://hl7.org/fhir/contributor-type"; - case NULL: return null; default: return "?"; } } @@ -114,7 +112,6 @@ public class Contributor extends DataType implements ICompositeType { case EDITOR: return "An editor of the content of the module."; case REVIEWER: return "A reviewer of the content of the module."; case ENDORSER: return "An endorser of the content of the module."; - case NULL: return null; default: return "?"; } } @@ -124,7 +121,6 @@ public class Contributor extends DataType implements ICompositeType { case EDITOR: return "Editor"; case REVIEWER: return "Reviewer"; case ENDORSER: return "Endorser"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Count.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Count.java index c23848a07..8d7f182a9 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Count.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Count.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coverage.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coverage.java index 78cd476e8..2f895ef69 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coverage.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Coverage.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityRequest.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityRequest.java index 9548b1827..000654d1b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityRequest.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityRequest.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class CoverageEligibilityRequest extends DomainResource { case BENEFITS: return "benefits"; case DISCOVERY: return "discovery"; case VALIDATION: return "validation"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class CoverageEligibilityRequest extends DomainResource { case BENEFITS: return "http://hl7.org/fhir/eligibilityrequest-purpose"; case DISCOVERY: return "http://hl7.org/fhir/eligibilityrequest-purpose"; case VALIDATION: return "http://hl7.org/fhir/eligibilityrequest-purpose"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class CoverageEligibilityRequest extends DomainResource { case BENEFITS: return "The plan benefits and optionally benefits consumed for the listed, or discovered if specified, converages are requested."; case DISCOVERY: return "The insurer is requested to report on any coverages which they are aware of in addition to any specifed."; case VALIDATION: return "A check that the specified coverages are in-force is requested."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class CoverageEligibilityRequest extends DomainResource { case BENEFITS: return "Coverage benefits"; case DISCOVERY: return "Coverage Discovery"; case VALIDATION: return "Coverage Validation"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityResponse.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityResponse.java index 2b1130a4e..c6b314140 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityResponse.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/CoverageEligibilityResponse.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -53,6 +53,130 @@ import ca.uhn.fhir.model.api.annotation.Block; @ResourceDef(name="CoverageEligibilityResponse", profile="http://hl7.org/fhir/StructureDefinition/CoverageEligibilityResponse") public class CoverageEligibilityResponse extends DomainResource { + public enum EligibilityOutcome { + /** + * The Claim/Pre-authorization/Pre-determination has been received but processing has not begun. + */ + QUEUED, + /** + * The processing has completed without errors + */ + COMPLETE, + /** + * One or more errors have been detected in the Claim + */ + ERROR, + /** + * No errors have been detected in the Claim and some of the adjudication has been performed. + */ + PARTIAL, + /** + * added to help the parsers with the generic types + */ + NULL; + public static EligibilityOutcome fromCode(String codeString) throws FHIRException { + if (codeString == null || "".equals(codeString)) + return null; + if ("queued".equals(codeString)) + return QUEUED; + if ("complete".equals(codeString)) + return COMPLETE; + if ("error".equals(codeString)) + return ERROR; + if ("partial".equals(codeString)) + return PARTIAL; + if (Configuration.isAcceptInvalidEnums()) + return null; + else + throw new FHIRException("Unknown EligibilityOutcome code '"+codeString+"'"); + } + public String toCode() { + switch (this) { + case QUEUED: return "queued"; + case COMPLETE: return "complete"; + case ERROR: return "error"; + case PARTIAL: return "partial"; + default: return "?"; + } + } + public String getSystem() { + switch (this) { + case QUEUED: return "http://hl7.org/fhir/eligibility-outcome"; + case COMPLETE: return "http://hl7.org/fhir/eligibility-outcome"; + case ERROR: return "http://hl7.org/fhir/eligibility-outcome"; + case PARTIAL: return "http://hl7.org/fhir/eligibility-outcome"; + default: return "?"; + } + } + public String getDefinition() { + switch (this) { + case QUEUED: return "The Claim/Pre-authorization/Pre-determination has been received but processing has not begun."; + case COMPLETE: return "The processing has completed without errors"; + case ERROR: return "One or more errors have been detected in the Claim"; + case PARTIAL: return "No errors have been detected in the Claim and some of the adjudication has been performed."; + default: return "?"; + } + } + public String getDisplay() { + switch (this) { + case QUEUED: return "Queued"; + case COMPLETE: return "Processing Complete"; + case ERROR: return "Error"; + case PARTIAL: return "Partial Processing"; + default: return "?"; + } + } + } + + public static class EligibilityOutcomeEnumFactory implements EnumFactory { + public EligibilityOutcome fromCode(String codeString) throws IllegalArgumentException { + if (codeString == null || "".equals(codeString)) + if (codeString == null || "".equals(codeString)) + return null; + if ("queued".equals(codeString)) + return EligibilityOutcome.QUEUED; + if ("complete".equals(codeString)) + return EligibilityOutcome.COMPLETE; + if ("error".equals(codeString)) + return EligibilityOutcome.ERROR; + if ("partial".equals(codeString)) + return EligibilityOutcome.PARTIAL; + throw new IllegalArgumentException("Unknown EligibilityOutcome code '"+codeString+"'"); + } + public Enumeration fromType(Base code) throws FHIRException { + if (code == null) + return null; + if (code.isEmpty()) + return new Enumeration(this); + String codeString = ((PrimitiveType) code).asStringValue(); + if (codeString == null || "".equals(codeString)) + return null; + if ("queued".equals(codeString)) + return new Enumeration(this, EligibilityOutcome.QUEUED); + if ("complete".equals(codeString)) + return new Enumeration(this, EligibilityOutcome.COMPLETE); + if ("error".equals(codeString)) + return new Enumeration(this, EligibilityOutcome.ERROR); + if ("partial".equals(codeString)) + return new Enumeration(this, EligibilityOutcome.PARTIAL); + throw new FHIRException("Unknown EligibilityOutcome code '"+codeString+"'"); + } + public String toCode(EligibilityOutcome code) { + if (code == EligibilityOutcome.QUEUED) + return "queued"; + if (code == EligibilityOutcome.COMPLETE) + return "complete"; + if (code == EligibilityOutcome.ERROR) + return "error"; + if (code == EligibilityOutcome.PARTIAL) + return "partial"; + return "?"; + } + public String toSystem(EligibilityOutcome code) { + return code.getSystem(); + } + } + public enum EligibilityResponsePurpose { /** * The prior authorization requirements for the listed, or discovered if specified, converages for the categories of service and/or specifed biling codes are requested. @@ -96,7 +220,6 @@ public class CoverageEligibilityResponse extends DomainResource { case BENEFITS: return "benefits"; case DISCOVERY: return "discovery"; case VALIDATION: return "validation"; - case NULL: return null; default: return "?"; } } @@ -106,7 +229,6 @@ public class CoverageEligibilityResponse extends DomainResource { case BENEFITS: return "http://hl7.org/fhir/eligibilityresponse-purpose"; case DISCOVERY: return "http://hl7.org/fhir/eligibilityresponse-purpose"; case VALIDATION: return "http://hl7.org/fhir/eligibilityresponse-purpose"; - case NULL: return null; default: return "?"; } } @@ -116,7 +238,6 @@ public class CoverageEligibilityResponse extends DomainResource { case BENEFITS: return "The plan benefits and optionally benefits consumed for the listed, or discovered if specified, converages are requested."; case DISCOVERY: return "The insurer is requested to report on any coverages which they are aware of in addition to any specifed."; case VALIDATION: return "A check that the specified coverages are in-force is requested."; - case NULL: return null; default: return "?"; } } @@ -126,7 +247,6 @@ public class CoverageEligibilityResponse extends DomainResource { case BENEFITS: return "Coverage benefits"; case DISCOVERY: return "Coverage Discovery"; case VALIDATION: return "Coverage Validation"; - case NULL: return null; default: return "?"; } } @@ -2107,8 +2227,8 @@ public class CoverageEligibilityResponse extends DomainResource { */ @Child(name = "outcome", type = {CodeType.class}, order=8, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="queued | complete | error | partial", formalDefinition="The outcome of the request processing." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/remittance-outcome") - protected Enumeration outcome; + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/eligibility-outcome") + protected Enumeration outcome; /** * A human readable description of the status of the adjudication. @@ -2153,7 +2273,7 @@ public class CoverageEligibilityResponse extends DomainResource { @Description(shortDefinition="Processing errors", formalDefinition="Errors encountered during the processing of the request." ) protected List error; - private static final long serialVersionUID = 1048956296L; + private static final long serialVersionUID = 235292922L; /** * Constructor @@ -2165,7 +2285,7 @@ public class CoverageEligibilityResponse extends DomainResource { /** * Constructor */ - public CoverageEligibilityResponse(FinancialResourceStatusCodes status, EligibilityResponsePurpose purpose, Reference patient, Date created, Reference request, ClaimProcessingCodes outcome, Reference insurer) { + public CoverageEligibilityResponse(FinancialResourceStatusCodes status, EligibilityResponsePurpose purpose, Reference patient, Date created, Reference request, EligibilityOutcome outcome, Reference insurer) { super(); this.setStatus(status); this.addPurpose(purpose); @@ -2506,12 +2626,12 @@ public class CoverageEligibilityResponse extends DomainResource { /** * @return {@link #outcome} (The outcome of the request processing.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value */ - public Enumeration getOutcomeElement() { + public Enumeration getOutcomeElement() { if (this.outcome == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create CoverageEligibilityResponse.outcome"); else if (Configuration.doAutoCreate()) - this.outcome = new Enumeration(new ClaimProcessingCodesEnumFactory()); // bb + this.outcome = new Enumeration(new EligibilityOutcomeEnumFactory()); // bb return this.outcome; } @@ -2526,7 +2646,7 @@ public class CoverageEligibilityResponse extends DomainResource { /** * @param value {@link #outcome} (The outcome of the request processing.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value */ - public CoverageEligibilityResponse setOutcomeElement(Enumeration value) { + public CoverageEligibilityResponse setOutcomeElement(Enumeration value) { this.outcome = value; return this; } @@ -2534,16 +2654,16 @@ public class CoverageEligibilityResponse extends DomainResource { /** * @return The outcome of the request processing. */ - public ClaimProcessingCodes getOutcome() { + public EligibilityOutcome getOutcome() { return this.outcome == null ? null : this.outcome.getValue(); } /** * @param value The outcome of the request processing. */ - public CoverageEligibilityResponse setOutcome(ClaimProcessingCodes value) { + public CoverageEligibilityResponse setOutcome(EligibilityOutcome value) { if (this.outcome == null) - this.outcome = new Enumeration(new ClaimProcessingCodesEnumFactory()); + this.outcome = new Enumeration(new EligibilityOutcomeEnumFactory()); this.outcome.setValue(value); return this; } @@ -2856,7 +2976,7 @@ public class CoverageEligibilityResponse extends DomainResource { case 1028554472: /*created*/ return this.created == null ? new Base[0] : new Base[] {this.created}; // DateTimeType case 693934258: /*requestor*/ return this.requestor == null ? new Base[0] : new Base[] {this.requestor}; // Reference case 1095692943: /*request*/ return this.request == null ? new Base[0] : new Base[] {this.request}; // Reference - case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : new Base[] {this.outcome}; // Enumeration + case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : new Base[] {this.outcome}; // Enumeration case 583380919: /*disposition*/ return this.disposition == null ? new Base[0] : new Base[] {this.disposition}; // StringType case 1957615864: /*insurer*/ return this.insurer == null ? new Base[0] : new Base[] {this.insurer}; // Reference case 73049818: /*insurance*/ return this.insurance == null ? new Base[0] : this.insurance.toArray(new Base[this.insurance.size()]); // InsuranceComponent @@ -2898,8 +3018,8 @@ public class CoverageEligibilityResponse extends DomainResource { this.request = TypeConvertor.castToReference(value); // Reference return value; case -1106507950: // outcome - value = new ClaimProcessingCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.outcome = (Enumeration) value; // Enumeration + value = new EligibilityOutcomeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.outcome = (Enumeration) value; // Enumeration return value; case 583380919: // disposition this.disposition = TypeConvertor.castToString(value); // StringType @@ -2945,8 +3065,8 @@ public class CoverageEligibilityResponse extends DomainResource { } else if (name.equals("request")) { this.request = TypeConvertor.castToReference(value); // Reference } else if (name.equals("outcome")) { - value = new ClaimProcessingCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.outcome = (Enumeration) value; // Enumeration + value = new EligibilityOutcomeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.outcome = (Enumeration) value; // Enumeration } else if (name.equals("disposition")) { this.disposition = TypeConvertor.castToString(value); // StringType } else if (name.equals("insurer")) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DataRequirement.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DataRequirement.java index 4157a0c0d..cc1be31e3 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DataRequirement.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DataRequirement.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -80,7 +80,6 @@ public class DataRequirement extends DataType implements ICompositeType { switch (this) { case ASCENDING: return "ascending"; case DESCENDING: return "descending"; - case NULL: return null; default: return "?"; } } @@ -88,7 +87,6 @@ public class DataRequirement extends DataType implements ICompositeType { switch (this) { case ASCENDING: return "http://hl7.org/fhir/sort-direction"; case DESCENDING: return "http://hl7.org/fhir/sort-direction"; - case NULL: return null; default: return "?"; } } @@ -96,7 +94,6 @@ public class DataRequirement extends DataType implements ICompositeType { switch (this) { case ASCENDING: return "Sort by the value ascending, so that lower values appear first."; case DESCENDING: return "Sort by the value descending, so that lower values appear last."; - case NULL: return null; default: return "?"; } } @@ -104,7 +101,6 @@ public class DataRequirement extends DataType implements ICompositeType { switch (this) { case ASCENDING: return "Ascending"; case DESCENDING: return "Descending"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DataType.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DataType.java index 8833576c7..db057c917 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DataType.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DataType.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DetectedIssue.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DetectedIssue.java index 51210be2b..ddd92c31b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DetectedIssue.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DetectedIssue.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -89,7 +89,6 @@ public class DetectedIssue extends DomainResource { case HIGH: return "high"; case MODERATE: return "moderate"; case LOW: return "low"; - case NULL: return null; default: return "?"; } } @@ -98,7 +97,6 @@ public class DetectedIssue extends DomainResource { case HIGH: return "http://hl7.org/fhir/detectedissue-severity"; case MODERATE: return "http://hl7.org/fhir/detectedissue-severity"; case LOW: return "http://hl7.org/fhir/detectedissue-severity"; - case NULL: return null; default: return "?"; } } @@ -107,7 +105,6 @@ public class DetectedIssue extends DomainResource { case HIGH: return "Indicates the issue may be life-threatening or has the potential to cause permanent injury."; case MODERATE: return "Indicates the issue may result in noticeable adverse consequences but is unlikely to be life-threatening or cause permanent injury."; case LOW: return "Indicates the issue may result in some adverse consequences but is unlikely to substantially affect the situation of the subject."; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class DetectedIssue extends DomainResource { case HIGH: return "High"; case MODERATE: return "Moderate"; case LOW: return "Low"; - case NULL: return null; default: return "?"; } } @@ -1655,6 +1651,184 @@ public class DetectedIssue extends DomainResource { return ResourceType.DetectedIssue; } + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "DetectedIssue:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("DetectedIssue:patient").toLocked(); + /** * Search parameter: author *

@@ -1729,7 +1903,7 @@ public class DetectedIssue extends DomainResource { * Path: DetectedIssue.implicated
*

*/ - @SearchParamDefinition(name="implicated", path="DetectedIssue.implicated", description="Problem resource", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="implicated", path="DetectedIssue.implicated", description="Problem resource", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_IMPLICATED = "implicated"; /** * Fluent Client search parameter constant for implicated @@ -1748,182 +1922,24 @@ public class DetectedIssue extends DomainResource { public static final ca.uhn.fhir.model.api.Include INCLUDE_IMPLICATED = new ca.uhn.fhir.model.api.Include("DetectedIssue:implicated").toLocked(); /** - * Search parameter: identifier + * Search parameter: status *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
+ * Description: The status of the issue
* Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ * Path: DetectedIssue.status
*

*/ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name="status", path="DetectedIssue.status", description="The status of the issue", type="token" ) + public static final String SP_STATUS = "status"; /** - * Fluent Client search parameter constant for identifier + * Fluent Client search parameter constant for status *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
+ * Description: The status of the issue
* Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ * Path: DetectedIssue.status
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DetectedIssue:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("DetectedIssue:patient").toLocked(); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Device.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Device.java index 70a5ce715..033f9cc51 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Device.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Device.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class Device extends DomainResource { case INACTIVE: return "inactive"; case ENTEREDINERROR: return "entered-in-error"; case UNKNOWN: return "unknown"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class Device extends DomainResource { case INACTIVE: return "http://hl7.org/fhir/device-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/device-status"; case UNKNOWN: return "http://hl7.org/fhir/device-status"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class Device extends DomainResource { case INACTIVE: return "The device is no longer available for use (e.g. lost, expired, damaged). Note: For *implanted devices* this means that the device has been removed from the patient."; case ENTEREDINERROR: return "The device was entered in error and voided."; case UNKNOWN: return "The status of the device has not been determined."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class Device extends DomainResource { case INACTIVE: return "Inactive"; case ENTEREDINERROR: return "Entered in Error"; case UNKNOWN: return "Unknown"; - case NULL: return null; default: return "?"; } } @@ -245,7 +241,6 @@ public class Device extends DomainResource { case SELFREPORTED: return "self-reported"; case ELECTRONICTRANSMISSION: return "electronic-transmission"; case UNKNOWN: return "unknown"; - case NULL: return null; default: return "?"; } } @@ -258,7 +253,6 @@ public class Device extends DomainResource { case SELFREPORTED: return "http://hl7.org/fhir/udi-entry-type"; case ELECTRONICTRANSMISSION: return "http://hl7.org/fhir/udi-entry-type"; case UNKNOWN: return "http://hl7.org/fhir/udi-entry-type"; - case NULL: return null; default: return "?"; } } @@ -271,7 +265,6 @@ public class Device extends DomainResource { case SELFREPORTED: return "The data originated from a patient source and was not directly scanned or read from a label or card."; case ELECTRONICTRANSMISSION: return "The UDI information was received electronically from the device through a communication protocol, such as the IEEE 11073 20601 version 4 exchange protocol over Bluetooth or USB."; case UNKNOWN: return "The method of data capture has not been determined."; - case NULL: return null; default: return "?"; } } @@ -284,7 +277,6 @@ public class Device extends DomainResource { case SELFREPORTED: return "Self Reported"; case ELECTRONICTRANSMISSION: return "Electronic Transmission"; case UNKNOWN: return "Unknown"; - case NULL: return null; default: return "?"; } } @@ -1711,20 +1703,13 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | protected CodeableConcept type; /** - * Property value as a quantity. + * Property value - can be a code or quantity. */ - @Child(name = "valueQuantity", type = {Quantity.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Property value as a quantity", formalDefinition="Property value as a quantity." ) - protected List valueQuantity; + @Child(name = "value", type = {Quantity.class, CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Property value - as a code or quantity", formalDefinition="Property value - can be a code or quantity." ) + protected DataType value; - /** - * Property value as a code, e.g., NTP4 (synced to NTP). - */ - @Child(name = "valueCode", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Property value as a code, e.g., NTP4 (synced to NTP)", formalDefinition="Property value as a code, e.g., NTP4 (synced to NTP)." ) - protected List valueCode; - - private static final long serialVersionUID = 1512172633L; + private static final long serialVersionUID = -1659186716L; /** * Constructor @@ -1766,124 +1751,70 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | } /** - * @return {@link #valueQuantity} (Property value as a quantity.) + * @return {@link #value} (Property value - can be a code or quantity.) */ - public List getValueQuantity() { - if (this.valueQuantity == null) - this.valueQuantity = new ArrayList(); - return this.valueQuantity; + public DataType getValue() { + return this.value; } /** - * @return Returns a reference to this for easy method chaining + * @return {@link #value} (Property value - can be a code or quantity.) */ - public DevicePropertyComponent setValueQuantity(List theValueQuantity) { - this.valueQuantity = theValueQuantity; - return this; + public Quantity getValueQuantity() throws FHIRException { + if (this.value == null) + this.value = new Quantity(); + if (!(this.value instanceof Quantity)) + throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.value.getClass().getName()+" was encountered"); + return (Quantity) this.value; } public boolean hasValueQuantity() { - if (this.valueQuantity == null) - return false; - for (Quantity item : this.valueQuantity) - if (!item.isEmpty()) - return true; - return false; + return this != null && this.value instanceof Quantity; } - public Quantity addValueQuantity() { //3 - Quantity t = new Quantity(); - if (this.valueQuantity == null) - this.valueQuantity = new ArrayList(); - this.valueQuantity.add(t); - return t; + /** + * @return {@link #value} (Property value - can be a code or quantity.) + */ + public CodeableConcept getValueCodeableConcept() throws FHIRException { + if (this.value == null) + this.value = new CodeableConcept(); + if (!(this.value instanceof CodeableConcept)) + throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.value.getClass().getName()+" was encountered"); + return (CodeableConcept) this.value; } - public DevicePropertyComponent addValueQuantity(Quantity t) { //3 - if (t == null) - return this; - if (this.valueQuantity == null) - this.valueQuantity = new ArrayList(); - this.valueQuantity.add(t); + public boolean hasValueCodeableConcept() { + return this != null && this.value instanceof CodeableConcept; + } + + public boolean hasValue() { + return this.value != null && !this.value.isEmpty(); + } + + /** + * @param value {@link #value} (Property value - can be a code or quantity.) + */ + public DevicePropertyComponent setValue(DataType value) { + if (value != null && !(value instanceof Quantity || value instanceof CodeableConcept)) + throw new Error("Not the right type for Device.property.value[x]: "+value.fhirType()); + this.value = value; return this; } - /** - * @return The first repetition of repeating field {@link #valueQuantity}, creating it if it does not already exist {3} - */ - public Quantity getValueQuantityFirstRep() { - if (getValueQuantity().isEmpty()) { - addValueQuantity(); - } - return getValueQuantity().get(0); - } - - /** - * @return {@link #valueCode} (Property value as a code, e.g., NTP4 (synced to NTP).) - */ - public List getValueCode() { - if (this.valueCode == null) - this.valueCode = new ArrayList(); - return this.valueCode; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public DevicePropertyComponent setValueCode(List theValueCode) { - this.valueCode = theValueCode; - return this; - } - - public boolean hasValueCode() { - if (this.valueCode == null) - return false; - for (CodeableConcept item : this.valueCode) - if (!item.isEmpty()) - return true; - return false; - } - - public CodeableConcept addValueCode() { //3 - CodeableConcept t = new CodeableConcept(); - if (this.valueCode == null) - this.valueCode = new ArrayList(); - this.valueCode.add(t); - return t; - } - - public DevicePropertyComponent addValueCode(CodeableConcept t) { //3 - if (t == null) - return this; - if (this.valueCode == null) - this.valueCode = new ArrayList(); - this.valueCode.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #valueCode}, creating it if it does not already exist {3} - */ - public CodeableConcept getValueCodeFirstRep() { - if (getValueCode().isEmpty()) { - addValueCode(); - } - return getValueCode().get(0); - } - protected void listChildren(List children) { super.listChildren(children); children.add(new Property("type", "CodeableConcept", "Code that specifies the property being represented. No codes are specified but the MDC codes are an example: https://build.fhir.org/mdc.html.", 0, 1, type)); - children.add(new Property("valueQuantity", "Quantity", "Property value as a quantity.", 0, java.lang.Integer.MAX_VALUE, valueQuantity)); - children.add(new Property("valueCode", "CodeableConcept", "Property value as a code, e.g., NTP4 (synced to NTP).", 0, java.lang.Integer.MAX_VALUE, valueCode)); + children.add(new Property("value[x]", "Quantity|CodeableConcept", "Property value - can be a code or quantity.", 0, 1, value)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Code that specifies the property being represented. No codes are specified but the MDC codes are an example: https://build.fhir.org/mdc.html.", 0, 1, type); - case -2029823716: /*valueQuantity*/ return new Property("valueQuantity", "Quantity", "Property value as a quantity.", 0, java.lang.Integer.MAX_VALUE, valueQuantity); - case -766209282: /*valueCode*/ return new Property("valueCode", "CodeableConcept", "Property value as a code, e.g., NTP4 (synced to NTP).", 0, java.lang.Integer.MAX_VALUE, valueCode); + case -1410166417: /*value[x]*/ return new Property("value[x]", "Quantity|CodeableConcept", "Property value - can be a code or quantity.", 0, 1, value); + case 111972721: /*value*/ return new Property("value[x]", "Quantity|CodeableConcept", "Property value - can be a code or quantity.", 0, 1, value); + case -2029823716: /*valueQuantity*/ return new Property("value[x]", "Quantity", "Property value - can be a code or quantity.", 0, 1, value); + case 924902896: /*valueCodeableConcept*/ return new Property("value[x]", "CodeableConcept", "Property value - can be a code or quantity.", 0, 1, value); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -1893,8 +1824,7 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept - case -2029823716: /*valueQuantity*/ return this.valueQuantity == null ? new Base[0] : this.valueQuantity.toArray(new Base[this.valueQuantity.size()]); // Quantity - case -766209282: /*valueCode*/ return this.valueCode == null ? new Base[0] : this.valueCode.toArray(new Base[this.valueCode.size()]); // CodeableConcept + case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // DataType default: return super.getProperty(hash, name, checkValid); } @@ -1906,11 +1836,8 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | case 3575610: // type this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; - case -2029823716: // valueQuantity - this.getValueQuantity().add(TypeConvertor.castToQuantity(value)); // Quantity - return value; - case -766209282: // valueCode - this.getValueCode().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + case 111972721: // value + this.value = TypeConvertor.castToType(value); // DataType return value; default: return super.setProperty(hash, name, value); } @@ -1921,10 +1848,8 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("type")) { this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("valueQuantity")) { - this.getValueQuantity().add(TypeConvertor.castToQuantity(value)); - } else if (name.equals("valueCode")) { - this.getValueCode().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("value[x]")) { + this.value = TypeConvertor.castToType(value); // DataType } else return super.setProperty(name, value); return value; @@ -1934,8 +1859,8 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: return getType(); - case -2029823716: return addValueQuantity(); - case -766209282: return addValueCode(); + case -1410166417: return getValue(); + case 111972721: return getValue(); default: return super.makeProperty(hash, name); } @@ -1945,8 +1870,7 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: /*type*/ return new String[] {"CodeableConcept"}; - case -2029823716: /*valueQuantity*/ return new String[] {"Quantity"}; - case -766209282: /*valueCode*/ return new String[] {"CodeableConcept"}; + case 111972721: /*value*/ return new String[] {"Quantity", "CodeableConcept"}; default: return super.getTypesForProperty(hash, name); } @@ -1959,10 +1883,12 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | return this.type; } else if (name.equals("valueQuantity")) { - return addValueQuantity(); + this.value = new Quantity(); + return this.value; } - else if (name.equals("valueCode")) { - return addValueCode(); + else if (name.equals("valueCodeableConcept")) { + this.value = new CodeableConcept(); + return this.value; } else return super.addChild(name); @@ -1977,16 +1903,7 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | public void copyValues(DevicePropertyComponent dst) { super.copyValues(dst); dst.type = type == null ? null : type.copy(); - if (valueQuantity != null) { - dst.valueQuantity = new ArrayList(); - for (Quantity i : valueQuantity) - dst.valueQuantity.add(i.copy()); - }; - if (valueCode != null) { - dst.valueCode = new ArrayList(); - for (CodeableConcept i : valueCode) - dst.valueCode.add(i.copy()); - }; + dst.value = value == null ? null : value.copy(); } @Override @@ -1996,8 +1913,7 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | if (!(other_ instanceof DevicePropertyComponent)) return false; DevicePropertyComponent o = (DevicePropertyComponent) other_; - return compareDeep(type, o.type, true) && compareDeep(valueQuantity, o.valueQuantity, true) && compareDeep(valueCode, o.valueCode, true) - ; + return compareDeep(type, o.type, true) && compareDeep(value, o.value, true); } @Override @@ -2011,8 +1927,7 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, valueQuantity, valueCode - ); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, value); } public String fhirType() { @@ -2029,6 +1944,7 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | */ @Child(name = "value", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="on |off | standby", formalDefinition="on |off | standby." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-operationalstatus") protected CodeableConcept value; /** @@ -2262,6 +2178,7 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | */ @Child(name = "value", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="implanted|explanted|attached", formalDefinition="implanted|explanted|attached." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-associationstatus") protected CodeableConcept value; /** @@ -4579,6 +4496,26 @@ In the PHD case, there are 11073 10101 nomenclature codes that define the specia return ResourceType.Device; } + /** + * Search parameter: din + *

+ * Description: The donation identification number (DIN)
+ * Type: token
+ * Path: Device.extension('http://hl7.org/fhir/SearchParameter/device-extensions-Device-din')
+ *

+ */ + @SearchParamDefinition(name="din", path="Device.extension('http://hl7.org/fhir/SearchParameter/device-extensions-Device-din')", description="The donation identification number (DIN)", type="token" ) + public static final String SP_DIN = "din"; + /** + * Fluent Client search parameter constant for din + *

+ * Description: The donation identification number (DIN)
+ * Type: token
+ * Path: Device.extension('http://hl7.org/fhir/SearchParameter/device-extensions-Device-din')
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam DIN = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_DIN); + /** * Search parameter: definition *

@@ -4831,7 +4768,7 @@ In the PHD case, there are 11073 10101 nomenclature codes that define the specia * Path: Device.patient
*

*/ - @SearchParamDefinition(name="patient", path="Device.patient", description="Patient information, if the resource is affixed to a person", type="reference", target={Patient.class } ) + @SearchParamDefinition(name="patient", path="Device.patient", description="Patient information, if the resource is affixed to a person", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -4989,26 +4926,6 @@ In the PHD case, there are 11073 10101 nomenclature codes that define the specia */ public static final ca.uhn.fhir.rest.gclient.StringClientParam VERSION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_VERSION); - /** - * Search parameter: din - *

- * Description: The donation identification number (DIN)
- * Type: token
- * Path: Device.extension('http://hl7.org/fhir/SearchParameter/device-extensions-Device-din')
- *

- */ - @SearchParamDefinition(name="din", path="Device.extension('http://hl7.org/fhir/SearchParameter/device-extensions-Device-din')", description="The donation identification number (DIN)", type="token" ) - public static final String SP_DIN = "din"; - /** - * Fluent Client search parameter constant for din - *

- * Description: The donation identification number (DIN)
- * Type: token
- * Path: Device.extension('http://hl7.org/fhir/SearchParameter/device-extensions-Device-din')
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam DIN = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_DIN); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceDefinition.java index 897f9bd87..ccee0ccbe 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -882,6 +882,1594 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | } + } + + @Block() + public static class DeviceDefinitionHasPartComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Reference to the device that is part of the current device. + */ + @Child(name = "reference", type = {DeviceDefinition.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="Reference to the part", formalDefinition="Reference to the device that is part of the current device." ) + protected Reference reference; + + /** + * Number of instances of the component device in the current device. + */ + @Child(name = "count", type = {IntegerType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Number of occurrences of the part", formalDefinition="Number of instances of the component device in the current device." ) + protected IntegerType count; + + private static final long serialVersionUID = -1166127369L; + + /** + * Constructor + */ + public DeviceDefinitionHasPartComponent() { + super(); + } + + /** + * Constructor + */ + public DeviceDefinitionHasPartComponent(Reference reference) { + super(); + this.setReference(reference); + } + + /** + * @return {@link #reference} (Reference to the device that is part of the current device.) + */ + public Reference getReference() { + if (this.reference == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create DeviceDefinitionHasPartComponent.reference"); + else if (Configuration.doAutoCreate()) + this.reference = new Reference(); // cc + return this.reference; + } + + public boolean hasReference() { + return this.reference != null && !this.reference.isEmpty(); + } + + /** + * @param value {@link #reference} (Reference to the device that is part of the current device.) + */ + public DeviceDefinitionHasPartComponent setReference(Reference value) { + this.reference = value; + return this; + } + + /** + * @return {@link #count} (Number of instances of the component device in the current device.). This is the underlying object with id, value and extensions. The accessor "getCount" gives direct access to the value + */ + public IntegerType getCountElement() { + if (this.count == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create DeviceDefinitionHasPartComponent.count"); + else if (Configuration.doAutoCreate()) + this.count = new IntegerType(); // bb + return this.count; + } + + public boolean hasCountElement() { + return this.count != null && !this.count.isEmpty(); + } + + public boolean hasCount() { + return this.count != null && !this.count.isEmpty(); + } + + /** + * @param value {@link #count} (Number of instances of the component device in the current device.). This is the underlying object with id, value and extensions. The accessor "getCount" gives direct access to the value + */ + public DeviceDefinitionHasPartComponent setCountElement(IntegerType value) { + this.count = value; + return this; + } + + /** + * @return Number of instances of the component device in the current device. + */ + public int getCount() { + return this.count == null || this.count.isEmpty() ? 0 : this.count.getValue(); + } + + /** + * @param value Number of instances of the component device in the current device. + */ + public DeviceDefinitionHasPartComponent setCount(int value) { + if (this.count == null) + this.count = new IntegerType(); + this.count.setValue(value); + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("reference", "Reference(DeviceDefinition)", "Reference to the device that is part of the current device.", 0, 1, reference)); + children.add(new Property("count", "integer", "Number of instances of the component device in the current device.", 0, 1, count)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -925155509: /*reference*/ return new Property("reference", "Reference(DeviceDefinition)", "Reference to the device that is part of the current device.", 0, 1, reference); + case 94851343: /*count*/ return new Property("count", "integer", "Number of instances of the component device in the current device.", 0, 1, count); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -925155509: /*reference*/ return this.reference == null ? new Base[0] : new Base[] {this.reference}; // Reference + case 94851343: /*count*/ return this.count == null ? new Base[0] : new Base[] {this.count}; // IntegerType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -925155509: // reference + this.reference = TypeConvertor.castToReference(value); // Reference + return value; + case 94851343: // count + this.count = TypeConvertor.castToInteger(value); // IntegerType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("reference")) { + this.reference = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("count")) { + this.count = TypeConvertor.castToInteger(value); // IntegerType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -925155509: return getReference(); + case 94851343: return getCountElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -925155509: /*reference*/ return new String[] {"Reference"}; + case 94851343: /*count*/ return new String[] {"integer"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("reference")) { + this.reference = new Reference(); + return this.reference; + } + else if (name.equals("count")) { + throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.hasPart.count"); + } + else + return super.addChild(name); + } + + public DeviceDefinitionHasPartComponent copy() { + DeviceDefinitionHasPartComponent dst = new DeviceDefinitionHasPartComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(DeviceDefinitionHasPartComponent dst) { + super.copyValues(dst); + dst.reference = reference == null ? null : reference.copy(); + dst.count = count == null ? null : count.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof DeviceDefinitionHasPartComponent)) + return false; + DeviceDefinitionHasPartComponent o = (DeviceDefinitionHasPartComponent) other_; + return compareDeep(reference, o.reference, true) && compareDeep(count, o.count, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof DeviceDefinitionHasPartComponent)) + return false; + DeviceDefinitionHasPartComponent o = (DeviceDefinitionHasPartComponent) other_; + return compareValues(count, o.count, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(reference, count); + } + + public String fhirType() { + return "DeviceDefinition.hasPart"; + + } + + } + + @Block() + public static class DeviceDefinitionPackagingComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The business identifier of the packaged medication. + */ + @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Business identifier of the packaged medication", formalDefinition="The business identifier of the packaged medication." ) + protected Identifier identifier; + + /** + * A code that defines the specific type of packaging. + */ + @Child(name = "type", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="A code that defines the specific type of packaging", formalDefinition="A code that defines the specific type of packaging." ) + protected CodeableConcept type; + + /** + * The number of items contained in the package (devices or sub-packages). + */ + @Child(name = "count", type = {IntegerType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The number of items contained in the package (devices or sub-packages)", formalDefinition="The number of items contained in the package (devices or sub-packages)." ) + protected IntegerType count; + + /** + * An organization that distributes the packaged device. + */ + @Child(name = "distributor", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="An organization that distributes the packaged device", formalDefinition="An organization that distributes the packaged device." ) + protected List distributor; + + /** + * Unique Device Identifier (UDI) Barcode string on the packaging. + */ + @Child(name = "udiDeviceIdentifier", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Unique Device Identifier (UDI) Barcode string on the packaging", formalDefinition="Unique Device Identifier (UDI) Barcode string on the packaging." ) + protected List udiDeviceIdentifier; + + /** + * Allows packages within packages. + */ + @Child(name = "packaging", type = {DeviceDefinitionPackagingComponent.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Allows packages within packages", formalDefinition="Allows packages within packages." ) + protected List packaging; + + private static final long serialVersionUID = 1491079286L; + + /** + * Constructor + */ + public DeviceDefinitionPackagingComponent() { + super(); + } + + /** + * @return {@link #identifier} (The business identifier of the packaged medication.) + */ + public Identifier getIdentifier() { + if (this.identifier == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create DeviceDefinitionPackagingComponent.identifier"); + else if (Configuration.doAutoCreate()) + this.identifier = new Identifier(); // cc + return this.identifier; + } + + public boolean hasIdentifier() { + return this.identifier != null && !this.identifier.isEmpty(); + } + + /** + * @param value {@link #identifier} (The business identifier of the packaged medication.) + */ + public DeviceDefinitionPackagingComponent setIdentifier(Identifier value) { + this.identifier = value; + return this; + } + + /** + * @return {@link #type} (A code that defines the specific type of packaging.) + */ + public CodeableConcept getType() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create DeviceDefinitionPackagingComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new CodeableConcept(); // cc + return this.type; + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (A code that defines the specific type of packaging.) + */ + public DeviceDefinitionPackagingComponent setType(CodeableConcept value) { + this.type = value; + return this; + } + + /** + * @return {@link #count} (The number of items contained in the package (devices or sub-packages).). This is the underlying object with id, value and extensions. The accessor "getCount" gives direct access to the value + */ + public IntegerType getCountElement() { + if (this.count == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create DeviceDefinitionPackagingComponent.count"); + else if (Configuration.doAutoCreate()) + this.count = new IntegerType(); // bb + return this.count; + } + + public boolean hasCountElement() { + return this.count != null && !this.count.isEmpty(); + } + + public boolean hasCount() { + return this.count != null && !this.count.isEmpty(); + } + + /** + * @param value {@link #count} (The number of items contained in the package (devices or sub-packages).). This is the underlying object with id, value and extensions. The accessor "getCount" gives direct access to the value + */ + public DeviceDefinitionPackagingComponent setCountElement(IntegerType value) { + this.count = value; + return this; + } + + /** + * @return The number of items contained in the package (devices or sub-packages). + */ + public int getCount() { + return this.count == null || this.count.isEmpty() ? 0 : this.count.getValue(); + } + + /** + * @param value The number of items contained in the package (devices or sub-packages). + */ + public DeviceDefinitionPackagingComponent setCount(int value) { + if (this.count == null) + this.count = new IntegerType(); + this.count.setValue(value); + return this; + } + + /** + * @return {@link #distributor} (An organization that distributes the packaged device.) + */ + public List getDistributor() { + if (this.distributor == null) + this.distributor = new ArrayList(); + return this.distributor; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public DeviceDefinitionPackagingComponent setDistributor(List theDistributor) { + this.distributor = theDistributor; + return this; + } + + public boolean hasDistributor() { + if (this.distributor == null) + return false; + for (DeviceDefinitionPackagingDistributorComponent item : this.distributor) + if (!item.isEmpty()) + return true; + return false; + } + + public DeviceDefinitionPackagingDistributorComponent addDistributor() { //3 + DeviceDefinitionPackagingDistributorComponent t = new DeviceDefinitionPackagingDistributorComponent(); + if (this.distributor == null) + this.distributor = new ArrayList(); + this.distributor.add(t); + return t; + } + + public DeviceDefinitionPackagingComponent addDistributor(DeviceDefinitionPackagingDistributorComponent t) { //3 + if (t == null) + return this; + if (this.distributor == null) + this.distributor = new ArrayList(); + this.distributor.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #distributor}, creating it if it does not already exist {3} + */ + public DeviceDefinitionPackagingDistributorComponent getDistributorFirstRep() { + if (getDistributor().isEmpty()) { + addDistributor(); + } + return getDistributor().get(0); + } + + /** + * @return {@link #udiDeviceIdentifier} (Unique Device Identifier (UDI) Barcode string on the packaging.) + */ + public List getUdiDeviceIdentifier() { + if (this.udiDeviceIdentifier == null) + this.udiDeviceIdentifier = new ArrayList(); + return this.udiDeviceIdentifier; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public DeviceDefinitionPackagingComponent setUdiDeviceIdentifier(List theUdiDeviceIdentifier) { + this.udiDeviceIdentifier = theUdiDeviceIdentifier; + return this; + } + + public boolean hasUdiDeviceIdentifier() { + if (this.udiDeviceIdentifier == null) + return false; + for (DeviceDefinitionPackagingUdiDeviceIdentifierComponent item : this.udiDeviceIdentifier) + if (!item.isEmpty()) + return true; + return false; + } + + public DeviceDefinitionPackagingUdiDeviceIdentifierComponent addUdiDeviceIdentifier() { //3 + DeviceDefinitionPackagingUdiDeviceIdentifierComponent t = new DeviceDefinitionPackagingUdiDeviceIdentifierComponent(); + if (this.udiDeviceIdentifier == null) + this.udiDeviceIdentifier = new ArrayList(); + this.udiDeviceIdentifier.add(t); + return t; + } + + public DeviceDefinitionPackagingComponent addUdiDeviceIdentifier(DeviceDefinitionPackagingUdiDeviceIdentifierComponent t) { //3 + if (t == null) + return this; + if (this.udiDeviceIdentifier == null) + this.udiDeviceIdentifier = new ArrayList(); + this.udiDeviceIdentifier.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #udiDeviceIdentifier}, creating it if it does not already exist {3} + */ + public DeviceDefinitionPackagingUdiDeviceIdentifierComponent getUdiDeviceIdentifierFirstRep() { + if (getUdiDeviceIdentifier().isEmpty()) { + addUdiDeviceIdentifier(); + } + return getUdiDeviceIdentifier().get(0); + } + + /** + * @return {@link #packaging} (Allows packages within packages.) + */ + public List getPackaging() { + if (this.packaging == null) + this.packaging = new ArrayList(); + return this.packaging; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public DeviceDefinitionPackagingComponent setPackaging(List thePackaging) { + this.packaging = thePackaging; + return this; + } + + public boolean hasPackaging() { + if (this.packaging == null) + return false; + for (DeviceDefinitionPackagingComponent item : this.packaging) + if (!item.isEmpty()) + return true; + return false; + } + + public DeviceDefinitionPackagingComponent addPackaging() { //3 + DeviceDefinitionPackagingComponent t = new DeviceDefinitionPackagingComponent(); + if (this.packaging == null) + this.packaging = new ArrayList(); + this.packaging.add(t); + return t; + } + + public DeviceDefinitionPackagingComponent addPackaging(DeviceDefinitionPackagingComponent t) { //3 + if (t == null) + return this; + if (this.packaging == null) + this.packaging = new ArrayList(); + this.packaging.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #packaging}, creating it if it does not already exist {3} + */ + public DeviceDefinitionPackagingComponent getPackagingFirstRep() { + if (getPackaging().isEmpty()) { + addPackaging(); + } + return getPackaging().get(0); + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("identifier", "Identifier", "The business identifier of the packaged medication.", 0, 1, identifier)); + children.add(new Property("type", "CodeableConcept", "A code that defines the specific type of packaging.", 0, 1, type)); + children.add(new Property("count", "integer", "The number of items contained in the package (devices or sub-packages).", 0, 1, count)); + children.add(new Property("distributor", "", "An organization that distributes the packaged device.", 0, java.lang.Integer.MAX_VALUE, distributor)); + children.add(new Property("udiDeviceIdentifier", "", "Unique Device Identifier (UDI) Barcode string on the packaging.", 0, java.lang.Integer.MAX_VALUE, udiDeviceIdentifier)); + children.add(new Property("packaging", "@DeviceDefinition.packaging", "Allows packages within packages.", 0, java.lang.Integer.MAX_VALUE, packaging)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "The business identifier of the packaged medication.", 0, 1, identifier); + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "A code that defines the specific type of packaging.", 0, 1, type); + case 94851343: /*count*/ return new Property("count", "integer", "The number of items contained in the package (devices or sub-packages).", 0, 1, count); + case 1334482919: /*distributor*/ return new Property("distributor", "", "An organization that distributes the packaged device.", 0, java.lang.Integer.MAX_VALUE, distributor); + case -99121287: /*udiDeviceIdentifier*/ return new Property("udiDeviceIdentifier", "", "Unique Device Identifier (UDI) Barcode string on the packaging.", 0, java.lang.Integer.MAX_VALUE, udiDeviceIdentifier); + case 1802065795: /*packaging*/ return new Property("packaging", "@DeviceDefinition.packaging", "Allows packages within packages.", 0, java.lang.Integer.MAX_VALUE, packaging); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case 94851343: /*count*/ return this.count == null ? new Base[0] : new Base[] {this.count}; // IntegerType + case 1334482919: /*distributor*/ return this.distributor == null ? new Base[0] : this.distributor.toArray(new Base[this.distributor.size()]); // DeviceDefinitionPackagingDistributorComponent + case -99121287: /*udiDeviceIdentifier*/ return this.udiDeviceIdentifier == null ? new Base[0] : this.udiDeviceIdentifier.toArray(new Base[this.udiDeviceIdentifier.size()]); // DeviceDefinitionPackagingUdiDeviceIdentifierComponent + case 1802065795: /*packaging*/ return this.packaging == null ? new Base[0] : this.packaging.toArray(new Base[this.packaging.size()]); // DeviceDefinitionPackagingComponent + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -1618432855: // identifier + this.identifier = TypeConvertor.castToIdentifier(value); // Identifier + return value; + case 3575610: // type + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 94851343: // count + this.count = TypeConvertor.castToInteger(value); // IntegerType + return value; + case 1334482919: // distributor + this.getDistributor().add((DeviceDefinitionPackagingDistributorComponent) value); // DeviceDefinitionPackagingDistributorComponent + return value; + case -99121287: // udiDeviceIdentifier + this.getUdiDeviceIdentifier().add((DeviceDefinitionPackagingUdiDeviceIdentifierComponent) value); // DeviceDefinitionPackagingUdiDeviceIdentifierComponent + return value; + case 1802065795: // packaging + this.getPackaging().add((DeviceDefinitionPackagingComponent) value); // DeviceDefinitionPackagingComponent + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.identifier = TypeConvertor.castToIdentifier(value); // Identifier + } else if (name.equals("type")) { + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("count")) { + this.count = TypeConvertor.castToInteger(value); // IntegerType + } else if (name.equals("distributor")) { + this.getDistributor().add((DeviceDefinitionPackagingDistributorComponent) value); + } else if (name.equals("udiDeviceIdentifier")) { + this.getUdiDeviceIdentifier().add((DeviceDefinitionPackagingUdiDeviceIdentifierComponent) value); + } else if (name.equals("packaging")) { + this.getPackaging().add((DeviceDefinitionPackagingComponent) value); + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1618432855: return getIdentifier(); + case 3575610: return getType(); + case 94851343: return getCountElement(); + case 1334482919: return addDistributor(); + case -99121287: return addUdiDeviceIdentifier(); + case 1802065795: return addPackaging(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1618432855: /*identifier*/ return new String[] {"Identifier"}; + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case 94851343: /*count*/ return new String[] {"integer"}; + case 1334482919: /*distributor*/ return new String[] {}; + case -99121287: /*udiDeviceIdentifier*/ return new String[] {}; + case 1802065795: /*packaging*/ return new String[] {"@DeviceDefinition.packaging"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("identifier")) { + this.identifier = new Identifier(); + return this.identifier; + } + else if (name.equals("type")) { + this.type = new CodeableConcept(); + return this.type; + } + else if (name.equals("count")) { + throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.packaging.count"); + } + else if (name.equals("distributor")) { + return addDistributor(); + } + else if (name.equals("udiDeviceIdentifier")) { + return addUdiDeviceIdentifier(); + } + else if (name.equals("packaging")) { + return addPackaging(); + } + else + return super.addChild(name); + } + + public DeviceDefinitionPackagingComponent copy() { + DeviceDefinitionPackagingComponent dst = new DeviceDefinitionPackagingComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(DeviceDefinitionPackagingComponent dst) { + super.copyValues(dst); + dst.identifier = identifier == null ? null : identifier.copy(); + dst.type = type == null ? null : type.copy(); + dst.count = count == null ? null : count.copy(); + if (distributor != null) { + dst.distributor = new ArrayList(); + for (DeviceDefinitionPackagingDistributorComponent i : distributor) + dst.distributor.add(i.copy()); + }; + if (udiDeviceIdentifier != null) { + dst.udiDeviceIdentifier = new ArrayList(); + for (DeviceDefinitionPackagingUdiDeviceIdentifierComponent i : udiDeviceIdentifier) + dst.udiDeviceIdentifier.add(i.copy()); + }; + if (packaging != null) { + dst.packaging = new ArrayList(); + for (DeviceDefinitionPackagingComponent i : packaging) + dst.packaging.add(i.copy()); + }; + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof DeviceDefinitionPackagingComponent)) + return false; + DeviceDefinitionPackagingComponent o = (DeviceDefinitionPackagingComponent) other_; + return compareDeep(identifier, o.identifier, true) && compareDeep(type, o.type, true) && compareDeep(count, o.count, true) + && compareDeep(distributor, o.distributor, true) && compareDeep(udiDeviceIdentifier, o.udiDeviceIdentifier, true) + && compareDeep(packaging, o.packaging, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof DeviceDefinitionPackagingComponent)) + return false; + DeviceDefinitionPackagingComponent o = (DeviceDefinitionPackagingComponent) other_; + return compareValues(count, o.count, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, type, count + , distributor, udiDeviceIdentifier, packaging); + } + + public String fhirType() { + return "DeviceDefinition.packaging"; + + } + + } + + @Block() + public static class DeviceDefinitionPackagingDistributorComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Distributor's human-readable name. + */ + @Child(name = "name", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Distributor's human-readable name", formalDefinition="Distributor's human-readable name." ) + protected StringType name; + + /** + * Distributor as an Organization resource. + */ + @Child(name = "organizationReference", type = {Organization.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Distributor as an Organization resource", formalDefinition="Distributor as an Organization resource." ) + protected List organizationReference; + + private static final long serialVersionUID = 1587433419L; + + /** + * Constructor + */ + public DeviceDefinitionPackagingDistributorComponent() { + super(); + } + + /** + * @return {@link #name} (Distributor's human-readable name.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public StringType getNameElement() { + if (this.name == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create DeviceDefinitionPackagingDistributorComponent.name"); + else if (Configuration.doAutoCreate()) + this.name = new StringType(); // bb + return this.name; + } + + public boolean hasNameElement() { + return this.name != null && !this.name.isEmpty(); + } + + public boolean hasName() { + return this.name != null && !this.name.isEmpty(); + } + + /** + * @param value {@link #name} (Distributor's human-readable name.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public DeviceDefinitionPackagingDistributorComponent setNameElement(StringType value) { + this.name = value; + return this; + } + + /** + * @return Distributor's human-readable name. + */ + public String getName() { + return this.name == null ? null : this.name.getValue(); + } + + /** + * @param value Distributor's human-readable name. + */ + public DeviceDefinitionPackagingDistributorComponent setName(String value) { + if (Utilities.noString(value)) + this.name = null; + else { + if (this.name == null) + this.name = new StringType(); + this.name.setValue(value); + } + return this; + } + + /** + * @return {@link #organizationReference} (Distributor as an Organization resource.) + */ + public List getOrganizationReference() { + if (this.organizationReference == null) + this.organizationReference = new ArrayList(); + return this.organizationReference; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public DeviceDefinitionPackagingDistributorComponent setOrganizationReference(List theOrganizationReference) { + this.organizationReference = theOrganizationReference; + return this; + } + + public boolean hasOrganizationReference() { + if (this.organizationReference == null) + return false; + for (Reference item : this.organizationReference) + if (!item.isEmpty()) + return true; + return false; + } + + public Reference addOrganizationReference() { //3 + Reference t = new Reference(); + if (this.organizationReference == null) + this.organizationReference = new ArrayList(); + this.organizationReference.add(t); + return t; + } + + public DeviceDefinitionPackagingDistributorComponent addOrganizationReference(Reference t) { //3 + if (t == null) + return this; + if (this.organizationReference == null) + this.organizationReference = new ArrayList(); + this.organizationReference.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #organizationReference}, creating it if it does not already exist {3} + */ + public Reference getOrganizationReferenceFirstRep() { + if (getOrganizationReference().isEmpty()) { + addOrganizationReference(); + } + return getOrganizationReference().get(0); + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("name", "string", "Distributor's human-readable name.", 0, 1, name)); + children.add(new Property("organizationReference", "Reference(Organization)", "Distributor as an Organization resource.", 0, java.lang.Integer.MAX_VALUE, organizationReference)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3373707: /*name*/ return new Property("name", "string", "Distributor's human-readable name.", 0, 1, name); + case 1860475736: /*organizationReference*/ return new Property("organizationReference", "Reference(Organization)", "Distributor as an Organization resource.", 0, java.lang.Integer.MAX_VALUE, organizationReference); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType + case 1860475736: /*organizationReference*/ return this.organizationReference == null ? new Base[0] : this.organizationReference.toArray(new Base[this.organizationReference.size()]); // Reference + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3373707: // name + this.name = TypeConvertor.castToString(value); // StringType + return value; + case 1860475736: // organizationReference + this.getOrganizationReference().add(TypeConvertor.castToReference(value)); // Reference + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = TypeConvertor.castToString(value); // StringType + } else if (name.equals("organizationReference")) { + this.getOrganizationReference().add(TypeConvertor.castToReference(value)); + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3373707: return getNameElement(); + case 1860475736: return addOrganizationReference(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3373707: /*name*/ return new String[] {"string"}; + case 1860475736: /*organizationReference*/ return new String[] {"Reference"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("name")) { + throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.packaging.distributor.name"); + } + else if (name.equals("organizationReference")) { + return addOrganizationReference(); + } + else + return super.addChild(name); + } + + public DeviceDefinitionPackagingDistributorComponent copy() { + DeviceDefinitionPackagingDistributorComponent dst = new DeviceDefinitionPackagingDistributorComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(DeviceDefinitionPackagingDistributorComponent dst) { + super.copyValues(dst); + dst.name = name == null ? null : name.copy(); + if (organizationReference != null) { + dst.organizationReference = new ArrayList(); + for (Reference i : organizationReference) + dst.organizationReference.add(i.copy()); + }; + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof DeviceDefinitionPackagingDistributorComponent)) + return false; + DeviceDefinitionPackagingDistributorComponent o = (DeviceDefinitionPackagingDistributorComponent) other_; + return compareDeep(name, o.name, true) && compareDeep(organizationReference, o.organizationReference, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof DeviceDefinitionPackagingDistributorComponent)) + return false; + DeviceDefinitionPackagingDistributorComponent o = (DeviceDefinitionPackagingDistributorComponent) other_; + return compareValues(name, o.name, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, organizationReference + ); + } + + public String fhirType() { + return "DeviceDefinition.packaging.distributor"; + + } + + } + + @Block() + public static class DeviceDefinitionPackagingUdiDeviceIdentifierComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Identifier to be associated with every instance for issuer and jurisdiction. + */ + @Child(name = "deviceIdentifier", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="Identifier to be associated with every instance for issuer and jurisdiction", formalDefinition="Identifier to be associated with every instance for issuer and jurisdiction." ) + protected StringType deviceIdentifier; + + /** + * The organization that assigns the identifier algorithm. + */ + @Child(name = "issuer", type = {UriType.class}, order=2, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The organization that assigns the identifier algorithm", formalDefinition="The organization that assigns the identifier algorithm." ) + protected UriType issuer; + + /** + * The jurisdiction to which the deviceIdentifier applies. + */ + @Child(name = "jurisdiction", type = {UriType.class}, order=3, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The jurisdiction to which the deviceIdentifier applies", formalDefinition="The jurisdiction to which the deviceIdentifier applies." ) + protected UriType jurisdiction; + + private static final long serialVersionUID = -1577319218L; + + /** + * Constructor + */ + public DeviceDefinitionPackagingUdiDeviceIdentifierComponent() { + super(); + } + + /** + * Constructor + */ + public DeviceDefinitionPackagingUdiDeviceIdentifierComponent(String deviceIdentifier, String issuer, String jurisdiction) { + super(); + this.setDeviceIdentifier(deviceIdentifier); + this.setIssuer(issuer); + this.setJurisdiction(jurisdiction); + } + + /** + * @return {@link #deviceIdentifier} (Identifier to be associated with every instance for issuer and jurisdiction.). This is the underlying object with id, value and extensions. The accessor "getDeviceIdentifier" gives direct access to the value + */ + public StringType getDeviceIdentifierElement() { + if (this.deviceIdentifier == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create DeviceDefinitionPackagingUdiDeviceIdentifierComponent.deviceIdentifier"); + else if (Configuration.doAutoCreate()) + this.deviceIdentifier = new StringType(); // bb + return this.deviceIdentifier; + } + + public boolean hasDeviceIdentifierElement() { + return this.deviceIdentifier != null && !this.deviceIdentifier.isEmpty(); + } + + public boolean hasDeviceIdentifier() { + return this.deviceIdentifier != null && !this.deviceIdentifier.isEmpty(); + } + + /** + * @param value {@link #deviceIdentifier} (Identifier to be associated with every instance for issuer and jurisdiction.). This is the underlying object with id, value and extensions. The accessor "getDeviceIdentifier" gives direct access to the value + */ + public DeviceDefinitionPackagingUdiDeviceIdentifierComponent setDeviceIdentifierElement(StringType value) { + this.deviceIdentifier = value; + return this; + } + + /** + * @return Identifier to be associated with every instance for issuer and jurisdiction. + */ + public String getDeviceIdentifier() { + return this.deviceIdentifier == null ? null : this.deviceIdentifier.getValue(); + } + + /** + * @param value Identifier to be associated with every instance for issuer and jurisdiction. + */ + public DeviceDefinitionPackagingUdiDeviceIdentifierComponent setDeviceIdentifier(String value) { + if (this.deviceIdentifier == null) + this.deviceIdentifier = new StringType(); + this.deviceIdentifier.setValue(value); + return this; + } + + /** + * @return {@link #issuer} (The organization that assigns the identifier algorithm.). This is the underlying object with id, value and extensions. The accessor "getIssuer" gives direct access to the value + */ + public UriType getIssuerElement() { + if (this.issuer == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create DeviceDefinitionPackagingUdiDeviceIdentifierComponent.issuer"); + else if (Configuration.doAutoCreate()) + this.issuer = new UriType(); // bb + return this.issuer; + } + + public boolean hasIssuerElement() { + return this.issuer != null && !this.issuer.isEmpty(); + } + + public boolean hasIssuer() { + return this.issuer != null && !this.issuer.isEmpty(); + } + + /** + * @param value {@link #issuer} (The organization that assigns the identifier algorithm.). This is the underlying object with id, value and extensions. The accessor "getIssuer" gives direct access to the value + */ + public DeviceDefinitionPackagingUdiDeviceIdentifierComponent setIssuerElement(UriType value) { + this.issuer = value; + return this; + } + + /** + * @return The organization that assigns the identifier algorithm. + */ + public String getIssuer() { + return this.issuer == null ? null : this.issuer.getValue(); + } + + /** + * @param value The organization that assigns the identifier algorithm. + */ + public DeviceDefinitionPackagingUdiDeviceIdentifierComponent setIssuer(String value) { + if (this.issuer == null) + this.issuer = new UriType(); + this.issuer.setValue(value); + return this; + } + + /** + * @return {@link #jurisdiction} (The jurisdiction to which the deviceIdentifier applies.). This is the underlying object with id, value and extensions. The accessor "getJurisdiction" gives direct access to the value + */ + public UriType getJurisdictionElement() { + if (this.jurisdiction == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create DeviceDefinitionPackagingUdiDeviceIdentifierComponent.jurisdiction"); + else if (Configuration.doAutoCreate()) + this.jurisdiction = new UriType(); // bb + return this.jurisdiction; + } + + public boolean hasJurisdictionElement() { + return this.jurisdiction != null && !this.jurisdiction.isEmpty(); + } + + public boolean hasJurisdiction() { + return this.jurisdiction != null && !this.jurisdiction.isEmpty(); + } + + /** + * @param value {@link #jurisdiction} (The jurisdiction to which the deviceIdentifier applies.). This is the underlying object with id, value and extensions. The accessor "getJurisdiction" gives direct access to the value + */ + public DeviceDefinitionPackagingUdiDeviceIdentifierComponent setJurisdictionElement(UriType value) { + this.jurisdiction = value; + return this; + } + + /** + * @return The jurisdiction to which the deviceIdentifier applies. + */ + public String getJurisdiction() { + return this.jurisdiction == null ? null : this.jurisdiction.getValue(); + } + + /** + * @param value The jurisdiction to which the deviceIdentifier applies. + */ + public DeviceDefinitionPackagingUdiDeviceIdentifierComponent setJurisdiction(String value) { + if (this.jurisdiction == null) + this.jurisdiction = new UriType(); + this.jurisdiction.setValue(value); + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("deviceIdentifier", "string", "Identifier to be associated with every instance for issuer and jurisdiction.", 0, 1, deviceIdentifier)); + children.add(new Property("issuer", "uri", "The organization that assigns the identifier algorithm.", 0, 1, issuer)); + children.add(new Property("jurisdiction", "uri", "The jurisdiction to which the deviceIdentifier applies.", 0, 1, jurisdiction)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 1322005407: /*deviceIdentifier*/ return new Property("deviceIdentifier", "string", "Identifier to be associated with every instance for issuer and jurisdiction.", 0, 1, deviceIdentifier); + case -1179159879: /*issuer*/ return new Property("issuer", "uri", "The organization that assigns the identifier algorithm.", 0, 1, issuer); + case -507075711: /*jurisdiction*/ return new Property("jurisdiction", "uri", "The jurisdiction to which the deviceIdentifier applies.", 0, 1, jurisdiction); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 1322005407: /*deviceIdentifier*/ return this.deviceIdentifier == null ? new Base[0] : new Base[] {this.deviceIdentifier}; // StringType + case -1179159879: /*issuer*/ return this.issuer == null ? new Base[0] : new Base[] {this.issuer}; // UriType + case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : new Base[] {this.jurisdiction}; // UriType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 1322005407: // deviceIdentifier + this.deviceIdentifier = TypeConvertor.castToString(value); // StringType + return value; + case -1179159879: // issuer + this.issuer = TypeConvertor.castToUri(value); // UriType + return value; + case -507075711: // jurisdiction + this.jurisdiction = TypeConvertor.castToUri(value); // UriType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("deviceIdentifier")) { + this.deviceIdentifier = TypeConvertor.castToString(value); // StringType + } else if (name.equals("issuer")) { + this.issuer = TypeConvertor.castToUri(value); // UriType + } else if (name.equals("jurisdiction")) { + this.jurisdiction = TypeConvertor.castToUri(value); // UriType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 1322005407: return getDeviceIdentifierElement(); + case -1179159879: return getIssuerElement(); + case -507075711: return getJurisdictionElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 1322005407: /*deviceIdentifier*/ return new String[] {"string"}; + case -1179159879: /*issuer*/ return new String[] {"uri"}; + case -507075711: /*jurisdiction*/ return new String[] {"uri"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("deviceIdentifier")) { + throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.packaging.udiDeviceIdentifier.deviceIdentifier"); + } + else if (name.equals("issuer")) { + throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.packaging.udiDeviceIdentifier.issuer"); + } + else if (name.equals("jurisdiction")) { + throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.packaging.udiDeviceIdentifier.jurisdiction"); + } + else + return super.addChild(name); + } + + public DeviceDefinitionPackagingUdiDeviceIdentifierComponent copy() { + DeviceDefinitionPackagingUdiDeviceIdentifierComponent dst = new DeviceDefinitionPackagingUdiDeviceIdentifierComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(DeviceDefinitionPackagingUdiDeviceIdentifierComponent dst) { + super.copyValues(dst); + dst.deviceIdentifier = deviceIdentifier == null ? null : deviceIdentifier.copy(); + dst.issuer = issuer == null ? null : issuer.copy(); + dst.jurisdiction = jurisdiction == null ? null : jurisdiction.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof DeviceDefinitionPackagingUdiDeviceIdentifierComponent)) + return false; + DeviceDefinitionPackagingUdiDeviceIdentifierComponent o = (DeviceDefinitionPackagingUdiDeviceIdentifierComponent) other_; + return compareDeep(deviceIdentifier, o.deviceIdentifier, true) && compareDeep(issuer, o.issuer, true) + && compareDeep(jurisdiction, o.jurisdiction, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof DeviceDefinitionPackagingUdiDeviceIdentifierComponent)) + return false; + DeviceDefinitionPackagingUdiDeviceIdentifierComponent o = (DeviceDefinitionPackagingUdiDeviceIdentifierComponent) other_; + return compareValues(deviceIdentifier, o.deviceIdentifier, true) && compareValues(issuer, o.issuer, true) + && compareValues(jurisdiction, o.jurisdiction, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(deviceIdentifier, issuer, jurisdiction + ); + } + + public String fhirType() { + return "DeviceDefinition.packaging.udiDeviceIdentifier"; + + } + + } + + @Block() + public static class DeviceDefinitionVersionComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The type of the device version, e.g. manufacturer, approved, internal. + */ + @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The type of the device version, e.g. manufacturer, approved, internal", formalDefinition="The type of the device version, e.g. manufacturer, approved, internal." ) + protected CodeableConcept type; + + /** + * The hardware or software module of the device to which the version applies. + */ + @Child(name = "component", type = {Identifier.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The hardware or software module of the device to which the version applies", formalDefinition="The hardware or software module of the device to which the version applies." ) + protected Identifier component; + + /** + * The version text. + */ + @Child(name = "value", type = {StringType.class}, order=3, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The version text", formalDefinition="The version text." ) + protected StringType value; + + private static final long serialVersionUID = 645214295L; + + /** + * Constructor + */ + public DeviceDefinitionVersionComponent() { + super(); + } + + /** + * Constructor + */ + public DeviceDefinitionVersionComponent(String value) { + super(); + this.setValue(value); + } + + /** + * @return {@link #type} (The type of the device version, e.g. manufacturer, approved, internal.) + */ + public CodeableConcept getType() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create DeviceDefinitionVersionComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new CodeableConcept(); // cc + return this.type; + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (The type of the device version, e.g. manufacturer, approved, internal.) + */ + public DeviceDefinitionVersionComponent setType(CodeableConcept value) { + this.type = value; + return this; + } + + /** + * @return {@link #component} (The hardware or software module of the device to which the version applies.) + */ + public Identifier getComponent() { + if (this.component == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create DeviceDefinitionVersionComponent.component"); + else if (Configuration.doAutoCreate()) + this.component = new Identifier(); // cc + return this.component; + } + + public boolean hasComponent() { + return this.component != null && !this.component.isEmpty(); + } + + /** + * @param value {@link #component} (The hardware or software module of the device to which the version applies.) + */ + public DeviceDefinitionVersionComponent setComponent(Identifier value) { + this.component = value; + return this; + } + + /** + * @return {@link #value} (The version text.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value + */ + public StringType getValueElement() { + if (this.value == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create DeviceDefinitionVersionComponent.value"); + else if (Configuration.doAutoCreate()) + this.value = new StringType(); // bb + return this.value; + } + + public boolean hasValueElement() { + return this.value != null && !this.value.isEmpty(); + } + + public boolean hasValue() { + return this.value != null && !this.value.isEmpty(); + } + + /** + * @param value {@link #value} (The version text.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value + */ + public DeviceDefinitionVersionComponent setValueElement(StringType value) { + this.value = value; + return this; + } + + /** + * @return The version text. + */ + public String getValue() { + return this.value == null ? null : this.value.getValue(); + } + + /** + * @param value The version text. + */ + public DeviceDefinitionVersionComponent setValue(String value) { + if (this.value == null) + this.value = new StringType(); + this.value.setValue(value); + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("type", "CodeableConcept", "The type of the device version, e.g. manufacturer, approved, internal.", 0, 1, type)); + children.add(new Property("component", "Identifier", "The hardware or software module of the device to which the version applies.", 0, 1, component)); + children.add(new Property("value", "string", "The version text.", 0, 1, value)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The type of the device version, e.g. manufacturer, approved, internal.", 0, 1, type); + case -1399907075: /*component*/ return new Property("component", "Identifier", "The hardware or software module of the device to which the version applies.", 0, 1, component); + case 111972721: /*value*/ return new Property("value", "string", "The version text.", 0, 1, value); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case -1399907075: /*component*/ return this.component == null ? new Base[0] : new Base[] {this.component}; // Identifier + case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // StringType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3575610: // type + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -1399907075: // component + this.component = TypeConvertor.castToIdentifier(value); // Identifier + return value; + case 111972721: // value + this.value = TypeConvertor.castToString(value); // StringType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("component")) { + this.component = TypeConvertor.castToIdentifier(value); // Identifier + } else if (name.equals("value")) { + this.value = TypeConvertor.castToString(value); // StringType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: return getType(); + case -1399907075: return getComponent(); + case 111972721: return getValueElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case -1399907075: /*component*/ return new String[] {"Identifier"}; + case 111972721: /*value*/ return new String[] {"string"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("type")) { + this.type = new CodeableConcept(); + return this.type; + } + else if (name.equals("component")) { + this.component = new Identifier(); + return this.component; + } + else if (name.equals("value")) { + throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.version.value"); + } + else + return super.addChild(name); + } + + public DeviceDefinitionVersionComponent copy() { + DeviceDefinitionVersionComponent dst = new DeviceDefinitionVersionComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(DeviceDefinitionVersionComponent dst) { + super.copyValues(dst); + dst.type = type == null ? null : type.copy(); + dst.component = component == null ? null : component.copy(); + dst.value = value == null ? null : value.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof DeviceDefinitionVersionComponent)) + return false; + DeviceDefinitionVersionComponent o = (DeviceDefinitionVersionComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(component, o.component, true) && compareDeep(value, o.value, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof DeviceDefinitionVersionComponent)) + return false; + DeviceDefinitionVersionComponent o = (DeviceDefinitionVersionComponent) other_; + return compareValues(value, o.value, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, component, value); + } + + public String fhirType() { + return "DeviceDefinition.version"; + + } + } @Block() @@ -1782,10 +3370,10 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | /** * What kind of device or device system this is. */ - @Child(name = "type", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=false) + @Child(name = "type", type = {CodeableConcept.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="What kind of device or device system this is", formalDefinition="What kind of device or device system this is." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-kind") - protected CodeableConcept type; + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-type") + protected List type; /** * The capabilities supported on a device, the standards to which the device conforms for a particular purpose, and used for the communication. @@ -1795,16 +3383,30 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | protected List specialization; /** - * The available versions of the device, e.g., software versions. + * A device that is part (for example a component) of the present device. */ - @Child(name = "version", type = {StringType.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Available versions", formalDefinition="The available versions of the device, e.g., software versions." ) - protected List version; + @Child(name = "hasPart", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="A device, part of the current one", formalDefinition="A device that is part (for example a component) of the present device." ) + protected List hasPart; + + /** + * Information about the packaging of the device, i.e. how the device is packaged. + */ + @Child(name = "packaging", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Information about the packaging of the device, i.e. how the device is packaged", formalDefinition="Information about the packaging of the device, i.e. how the device is packaged." ) + protected List packaging; + + /** + * The version of the device or software. + */ + @Child(name = "version", type = {}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="The version of the device or software", formalDefinition="The version of the device or software." ) + protected List version; /** * Safety characteristics of the device. */ - @Child(name = "safety", type = {CodeableConcept.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "safety", type = {CodeableConcept.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Safety characteristics of the device", formalDefinition="Safety characteristics of the device." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-safety") protected List safety; @@ -1812,88 +3414,81 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | /** * Shelf Life and storage information. */ - @Child(name = "shelfLifeStorage", type = {ProductShelfLife.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "shelfLifeStorage", type = {ProductShelfLife.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Shelf Life and storage information", formalDefinition="Shelf Life and storage information." ) protected List shelfLifeStorage; /** * Physical characteristics to define or specify the product - for example dimensions, color etc. These can be defined by the manufacturer or labeler, or can be used to specify characteristics when ordering. */ - @Child(name = "physicalCharacteristics", type = {ProdCharacteristic.class}, order=10, min=0, max=1, modifier=false, summary=false) + @Child(name = "physicalCharacteristics", type = {ProdCharacteristic.class}, order=12, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Physical characteristics to define or specify the product - for example dimensions, color etc.", formalDefinition="Physical characteristics to define or specify the product - for example dimensions, color etc. These can be defined by the manufacturer or labeler, or can be used to specify characteristics when ordering." ) protected ProdCharacteristic physicalCharacteristics; /** * Language code for the human-readable text strings produced by the device (all supported). */ - @Child(name = "languageCode", type = {CodeableConcept.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "languageCode", type = {CodeableConcept.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Language code for the human-readable text strings produced by the device (all supported)", formalDefinition="Language code for the human-readable text strings produced by the device (all supported)." ) protected List languageCode; /** * Additional capabilities that the device is defined or required to have e.g. "water resistant", "long life". */ - @Child(name = "capability", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "capability", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Additional capabilities of the device", formalDefinition="Additional capabilities that the device is defined or required to have e.g. \"water resistant\", \"long life\"." ) protected List capability; /** * The actual configuration settings of a device as it actually operates, e.g., regulation status, time properties. */ - @Child(name = "property", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "property", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="The actual configuration settings of a device as it actually operates, e.g., regulation status, time properties", formalDefinition="The actual configuration settings of a device as it actually operates, e.g., regulation status, time properties." ) protected List property; /** * An organization that is responsible for the provision and ongoing maintenance of the device. */ - @Child(name = "owner", type = {Organization.class}, order=14, min=0, max=1, modifier=false, summary=false) + @Child(name = "owner", type = {Organization.class}, order=16, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Organization responsible for device", formalDefinition="An organization that is responsible for the provision and ongoing maintenance of the device." ) protected Reference owner; /** * Contact details for an organization or a particular human that is responsible for the device. */ - @Child(name = "contact", type = {ContactPoint.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "contact", type = {ContactPoint.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Details for human/organization for support", formalDefinition="Contact details for an organization or a particular human that is responsible for the device." ) protected List contact; /** * Access to on-line information about the device. */ - @Child(name = "onlineInformation", type = {UriType.class}, order=16, min=0, max=1, modifier=false, summary=false) + @Child(name = "onlineInformation", type = {UriType.class}, order=18, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Access to on-line information", formalDefinition="Access to on-line information about the device." ) protected UriType onlineInformation; /** * Descriptive information, usage information or implantation information that is not captured in an existing element. */ - @Child(name = "note", type = {Annotation.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "note", type = {Annotation.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Device notes and comments", formalDefinition="Descriptive information, usage information or implantation information that is not captured in an existing element." ) protected List note; - /** - * The quantity of the device present in the packaging (e.g. the number of devices present in a pack, or the number of devices in the same package of the medicinal product). - */ - @Child(name = "quantity", type = {Quantity.class}, order=18, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The quantity of the device present in the packaging (e.g. the number of devices present in a pack, or the number of devices in the same package of the medicinal product)", formalDefinition="The quantity of the device present in the packaging (e.g. the number of devices present in a pack, or the number of devices in the same package of the medicinal product)." ) - protected Quantity quantity; - /** * The parent device it can be part of. */ - @Child(name = "parentDevice", type = {DeviceDefinition.class}, order=19, min=0, max=1, modifier=false, summary=true) + @Child(name = "parentDevice", type = {DeviceDefinition.class}, order=20, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="The parent device it can be part of", formalDefinition="The parent device it can be part of." ) protected Reference parentDevice; /** * A substance used to create the material(s) of which the device is made. */ - @Child(name = "material", type = {}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "material", type = {}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="A substance used to create the material(s) of which the device is made", formalDefinition="A substance used to create the material(s) of which the device is made." ) protected List material; - private static final long serialVersionUID = 330387501L; + private static final long serialVersionUID = -695849396L; /** * Constructor @@ -2164,25 +3759,54 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | /** * @return {@link #type} (What kind of device or device system this is.) */ - public CodeableConcept getType() { + public List getType() { if (this.type == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create DeviceDefinition.type"); - else if (Configuration.doAutoCreate()) - this.type = new CodeableConcept(); // cc + this.type = new ArrayList(); return this.type; } + /** + * @return Returns a reference to this for easy method chaining + */ + public DeviceDefinition setType(List theType) { + this.type = theType; + return this; + } + public boolean hasType() { - return this.type != null && !this.type.isEmpty(); + if (this.type == null) + return false; + for (CodeableConcept item : this.type) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addType() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.type == null) + this.type = new ArrayList(); + this.type.add(t); + return t; + } + + public DeviceDefinition addType(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.type == null) + this.type = new ArrayList(); + this.type.add(t); + return this; } /** - * @param value {@link #type} (What kind of device or device system this is.) + * @return The first repetition of repeating field {@link #type}, creating it if it does not already exist {3} */ - public DeviceDefinition setType(CodeableConcept value) { - this.type = value; - return this; + public CodeableConcept getTypeFirstRep() { + if (getType().isEmpty()) { + addType(); + } + return getType().get(0); } /** @@ -2239,18 +3863,124 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | } /** - * @return {@link #version} (The available versions of the device, e.g., software versions.) + * @return {@link #hasPart} (A device that is part (for example a component) of the present device.) */ - public List getVersion() { + public List getHasPart() { + if (this.hasPart == null) + this.hasPart = new ArrayList(); + return this.hasPart; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public DeviceDefinition setHasPart(List theHasPart) { + this.hasPart = theHasPart; + return this; + } + + public boolean hasHasPart() { + if (this.hasPart == null) + return false; + for (DeviceDefinitionHasPartComponent item : this.hasPart) + if (!item.isEmpty()) + return true; + return false; + } + + public DeviceDefinitionHasPartComponent addHasPart() { //3 + DeviceDefinitionHasPartComponent t = new DeviceDefinitionHasPartComponent(); + if (this.hasPart == null) + this.hasPart = new ArrayList(); + this.hasPart.add(t); + return t; + } + + public DeviceDefinition addHasPart(DeviceDefinitionHasPartComponent t) { //3 + if (t == null) + return this; + if (this.hasPart == null) + this.hasPart = new ArrayList(); + this.hasPart.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #hasPart}, creating it if it does not already exist {3} + */ + public DeviceDefinitionHasPartComponent getHasPartFirstRep() { + if (getHasPart().isEmpty()) { + addHasPart(); + } + return getHasPart().get(0); + } + + /** + * @return {@link #packaging} (Information about the packaging of the device, i.e. how the device is packaged.) + */ + public List getPackaging() { + if (this.packaging == null) + this.packaging = new ArrayList(); + return this.packaging; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public DeviceDefinition setPackaging(List thePackaging) { + this.packaging = thePackaging; + return this; + } + + public boolean hasPackaging() { + if (this.packaging == null) + return false; + for (DeviceDefinitionPackagingComponent item : this.packaging) + if (!item.isEmpty()) + return true; + return false; + } + + public DeviceDefinitionPackagingComponent addPackaging() { //3 + DeviceDefinitionPackagingComponent t = new DeviceDefinitionPackagingComponent(); + if (this.packaging == null) + this.packaging = new ArrayList(); + this.packaging.add(t); + return t; + } + + public DeviceDefinition addPackaging(DeviceDefinitionPackagingComponent t) { //3 + if (t == null) + return this; + if (this.packaging == null) + this.packaging = new ArrayList(); + this.packaging.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #packaging}, creating it if it does not already exist {3} + */ + public DeviceDefinitionPackagingComponent getPackagingFirstRep() { + if (getPackaging().isEmpty()) { + addPackaging(); + } + return getPackaging().get(0); + } + + /** + * @return {@link #version} (The version of the device or software.) + */ + public List getVersion() { if (this.version == null) - this.version = new ArrayList(); + this.version = new ArrayList(); return this.version; } /** * @return Returns a reference to this for easy method chaining */ - public DeviceDefinition setVersion(List theVersion) { + public DeviceDefinition setVersion(List theVersion) { this.version = theVersion; return this; } @@ -2258,45 +3988,37 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | public boolean hasVersion() { if (this.version == null) return false; - for (StringType item : this.version) + for (DeviceDefinitionVersionComponent item : this.version) if (!item.isEmpty()) return true; return false; } - /** - * @return {@link #version} (The available versions of the device, e.g., software versions.) - */ - public StringType addVersionElement() {//2 - StringType t = new StringType(); + public DeviceDefinitionVersionComponent addVersion() { //3 + DeviceDefinitionVersionComponent t = new DeviceDefinitionVersionComponent(); if (this.version == null) - this.version = new ArrayList(); + this.version = new ArrayList(); this.version.add(t); return t; } - /** - * @param value {@link #version} (The available versions of the device, e.g., software versions.) - */ - public DeviceDefinition addVersion(String value) { //1 - StringType t = new StringType(); - t.setValue(value); + public DeviceDefinition addVersion(DeviceDefinitionVersionComponent t) { //3 + if (t == null) + return this; if (this.version == null) - this.version = new ArrayList(); + this.version = new ArrayList(); this.version.add(t); return this; } /** - * @param value {@link #version} (The available versions of the device, e.g., software versions.) + * @return The first repetition of repeating field {@link #version}, creating it if it does not already exist {3} */ - public boolean hasVersion(String value) { - if (this.version == null) - return false; - for (StringType v : this.version) - if (v.getValue().equals(value)) // string - return true; - return false; + public DeviceDefinitionVersionComponent getVersionFirstRep() { + if (getVersion().isEmpty()) { + addVersion(); + } + return getVersion().get(0); } /** @@ -2767,30 +4489,6 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | return getNote().get(0); } - /** - * @return {@link #quantity} (The quantity of the device present in the packaging (e.g. the number of devices present in a pack, or the number of devices in the same package of the medicinal product).) - */ - public Quantity getQuantity() { - if (this.quantity == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create DeviceDefinition.quantity"); - else if (Configuration.doAutoCreate()) - this.quantity = new Quantity(); // cc - return this.quantity; - } - - public boolean hasQuantity() { - return this.quantity != null && !this.quantity.isEmpty(); - } - - /** - * @param value {@link #quantity} (The quantity of the device present in the packaging (e.g. the number of devices present in a pack, or the number of devices in the same package of the medicinal product).) - */ - public DeviceDefinition setQuantity(Quantity value) { - this.quantity = value; - return this; - } - /** * @return {@link #parentDevice} (The parent device it can be part of.) */ @@ -2875,9 +4573,11 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | children.add(new Property("manufacturer[x]", "string|Reference(Organization)", "A name of the manufacturer or legal representative e.g. labeler. Whether this is the actual manufacturer or the labeler or responsible depends on implementation and jurisdiction.", 0, 1, manufacturer)); children.add(new Property("deviceName", "", "The name or names of the device as given by the manufacturer.", 0, java.lang.Integer.MAX_VALUE, deviceName)); children.add(new Property("modelNumber", "string", "The model number for the device for example as defined by the manufacturer or labeler, or other agency.", 0, 1, modelNumber)); - children.add(new Property("type", "CodeableConcept", "What kind of device or device system this is.", 0, 1, type)); + children.add(new Property("type", "CodeableConcept", "What kind of device or device system this is.", 0, java.lang.Integer.MAX_VALUE, type)); children.add(new Property("specialization", "", "The capabilities supported on a device, the standards to which the device conforms for a particular purpose, and used for the communication.", 0, java.lang.Integer.MAX_VALUE, specialization)); - children.add(new Property("version", "string", "The available versions of the device, e.g., software versions.", 0, java.lang.Integer.MAX_VALUE, version)); + children.add(new Property("hasPart", "", "A device that is part (for example a component) of the present device.", 0, java.lang.Integer.MAX_VALUE, hasPart)); + children.add(new Property("packaging", "", "Information about the packaging of the device, i.e. how the device is packaged.", 0, java.lang.Integer.MAX_VALUE, packaging)); + children.add(new Property("version", "", "The version of the device or software.", 0, java.lang.Integer.MAX_VALUE, version)); children.add(new Property("safety", "CodeableConcept", "Safety characteristics of the device.", 0, java.lang.Integer.MAX_VALUE, safety)); children.add(new Property("shelfLifeStorage", "ProductShelfLife", "Shelf Life and storage information.", 0, java.lang.Integer.MAX_VALUE, shelfLifeStorage)); children.add(new Property("physicalCharacteristics", "ProdCharacteristic", "Physical characteristics to define or specify the product - for example dimensions, color etc. These can be defined by the manufacturer or labeler, or can be used to specify characteristics when ordering.", 0, 1, physicalCharacteristics)); @@ -2888,7 +4588,6 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | children.add(new Property("contact", "ContactPoint", "Contact details for an organization or a particular human that is responsible for the device.", 0, java.lang.Integer.MAX_VALUE, contact)); children.add(new Property("onlineInformation", "uri", "Access to on-line information about the device.", 0, 1, onlineInformation)); children.add(new Property("note", "Annotation", "Descriptive information, usage information or implantation information that is not captured in an existing element.", 0, java.lang.Integer.MAX_VALUE, note)); - children.add(new Property("quantity", "Quantity", "The quantity of the device present in the packaging (e.g. the number of devices present in a pack, or the number of devices in the same package of the medicinal product).", 0, 1, quantity)); children.add(new Property("parentDevice", "Reference(DeviceDefinition)", "The parent device it can be part of.", 0, 1, parentDevice)); children.add(new Property("material", "", "A substance used to create the material(s) of which the device is made.", 0, java.lang.Integer.MAX_VALUE, material)); } @@ -2904,9 +4603,11 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | case 1104934522: /*manufacturerReference*/ return new Property("manufacturer[x]", "Reference(Organization)", "A name of the manufacturer or legal representative e.g. labeler. Whether this is the actual manufacturer or the labeler or responsible depends on implementation and jurisdiction.", 0, 1, manufacturer); case 780988929: /*deviceName*/ return new Property("deviceName", "", "The name or names of the device as given by the manufacturer.", 0, java.lang.Integer.MAX_VALUE, deviceName); case 346619858: /*modelNumber*/ return new Property("modelNumber", "string", "The model number for the device for example as defined by the manufacturer or labeler, or other agency.", 0, 1, modelNumber); - case 3575610: /*type*/ return new Property("type", "CodeableConcept", "What kind of device or device system this is.", 0, 1, type); + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "What kind of device or device system this is.", 0, java.lang.Integer.MAX_VALUE, type); case 682815883: /*specialization*/ return new Property("specialization", "", "The capabilities supported on a device, the standards to which the device conforms for a particular purpose, and used for the communication.", 0, java.lang.Integer.MAX_VALUE, specialization); - case 351608024: /*version*/ return new Property("version", "string", "The available versions of the device, e.g., software versions.", 0, java.lang.Integer.MAX_VALUE, version); + case 696815021: /*hasPart*/ return new Property("hasPart", "", "A device that is part (for example a component) of the present device.", 0, java.lang.Integer.MAX_VALUE, hasPart); + case 1802065795: /*packaging*/ return new Property("packaging", "", "Information about the packaging of the device, i.e. how the device is packaged.", 0, java.lang.Integer.MAX_VALUE, packaging); + case 351608024: /*version*/ return new Property("version", "", "The version of the device or software.", 0, java.lang.Integer.MAX_VALUE, version); case -909893934: /*safety*/ return new Property("safety", "CodeableConcept", "Safety characteristics of the device.", 0, java.lang.Integer.MAX_VALUE, safety); case 172049237: /*shelfLifeStorage*/ return new Property("shelfLifeStorage", "ProductShelfLife", "Shelf Life and storage information.", 0, java.lang.Integer.MAX_VALUE, shelfLifeStorage); case -1599676319: /*physicalCharacteristics*/ return new Property("physicalCharacteristics", "ProdCharacteristic", "Physical characteristics to define or specify the product - for example dimensions, color etc. These can be defined by the manufacturer or labeler, or can be used to specify characteristics when ordering.", 0, 1, physicalCharacteristics); @@ -2917,7 +4618,6 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | case 951526432: /*contact*/ return new Property("contact", "ContactPoint", "Contact details for an organization or a particular human that is responsible for the device.", 0, java.lang.Integer.MAX_VALUE, contact); case -788511527: /*onlineInformation*/ return new Property("onlineInformation", "uri", "Access to on-line information about the device.", 0, 1, onlineInformation); case 3387378: /*note*/ return new Property("note", "Annotation", "Descriptive information, usage information or implantation information that is not captured in an existing element.", 0, java.lang.Integer.MAX_VALUE, note); - case -1285004149: /*quantity*/ return new Property("quantity", "Quantity", "The quantity of the device present in the packaging (e.g. the number of devices present in a pack, or the number of devices in the same package of the medicinal product).", 0, 1, quantity); case 620260256: /*parentDevice*/ return new Property("parentDevice", "Reference(DeviceDefinition)", "The parent device it can be part of.", 0, 1, parentDevice); case 299066663: /*material*/ return new Property("material", "", "A substance used to create the material(s) of which the device is made.", 0, java.lang.Integer.MAX_VALUE, material); default: return super.getNamedProperty(_hash, _name, _checkValid); @@ -2933,9 +4633,11 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | case -1969347631: /*manufacturer*/ return this.manufacturer == null ? new Base[0] : new Base[] {this.manufacturer}; // DataType case 780988929: /*deviceName*/ return this.deviceName == null ? new Base[0] : this.deviceName.toArray(new Base[this.deviceName.size()]); // DeviceDefinitionDeviceNameComponent case 346619858: /*modelNumber*/ return this.modelNumber == null ? new Base[0] : new Base[] {this.modelNumber}; // StringType - case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case 3575610: /*type*/ return this.type == null ? new Base[0] : this.type.toArray(new Base[this.type.size()]); // CodeableConcept case 682815883: /*specialization*/ return this.specialization == null ? new Base[0] : this.specialization.toArray(new Base[this.specialization.size()]); // DeviceDefinitionSpecializationComponent - case 351608024: /*version*/ return this.version == null ? new Base[0] : this.version.toArray(new Base[this.version.size()]); // StringType + case 696815021: /*hasPart*/ return this.hasPart == null ? new Base[0] : this.hasPart.toArray(new Base[this.hasPart.size()]); // DeviceDefinitionHasPartComponent + case 1802065795: /*packaging*/ return this.packaging == null ? new Base[0] : this.packaging.toArray(new Base[this.packaging.size()]); // DeviceDefinitionPackagingComponent + case 351608024: /*version*/ return this.version == null ? new Base[0] : this.version.toArray(new Base[this.version.size()]); // DeviceDefinitionVersionComponent case -909893934: /*safety*/ return this.safety == null ? new Base[0] : this.safety.toArray(new Base[this.safety.size()]); // CodeableConcept case 172049237: /*shelfLifeStorage*/ return this.shelfLifeStorage == null ? new Base[0] : this.shelfLifeStorage.toArray(new Base[this.shelfLifeStorage.size()]); // ProductShelfLife case -1599676319: /*physicalCharacteristics*/ return this.physicalCharacteristics == null ? new Base[0] : new Base[] {this.physicalCharacteristics}; // ProdCharacteristic @@ -2946,7 +4648,6 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactPoint case -788511527: /*onlineInformation*/ return this.onlineInformation == null ? new Base[0] : new Base[] {this.onlineInformation}; // UriType case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation - case -1285004149: /*quantity*/ return this.quantity == null ? new Base[0] : new Base[] {this.quantity}; // Quantity case 620260256: /*parentDevice*/ return this.parentDevice == null ? new Base[0] : new Base[] {this.parentDevice}; // Reference case 299066663: /*material*/ return this.material == null ? new Base[0] : this.material.toArray(new Base[this.material.size()]); // DeviceDefinitionMaterialComponent default: return super.getProperty(hash, name, checkValid); @@ -2973,13 +4674,19 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | this.modelNumber = TypeConvertor.castToString(value); // StringType return value; case 3575610: // type - this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.getType().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept return value; case 682815883: // specialization this.getSpecialization().add((DeviceDefinitionSpecializationComponent) value); // DeviceDefinitionSpecializationComponent return value; + case 696815021: // hasPart + this.getHasPart().add((DeviceDefinitionHasPartComponent) value); // DeviceDefinitionHasPartComponent + return value; + case 1802065795: // packaging + this.getPackaging().add((DeviceDefinitionPackagingComponent) value); // DeviceDefinitionPackagingComponent + return value; case 351608024: // version - this.getVersion().add(TypeConvertor.castToString(value)); // StringType + this.getVersion().add((DeviceDefinitionVersionComponent) value); // DeviceDefinitionVersionComponent return value; case -909893934: // safety this.getSafety().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept @@ -3011,9 +4718,6 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | case 3387378: // note this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation return value; - case -1285004149: // quantity - this.quantity = TypeConvertor.castToQuantity(value); // Quantity - return value; case 620260256: // parentDevice this.parentDevice = TypeConvertor.castToReference(value); // Reference return value; @@ -3038,11 +4742,15 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | } else if (name.equals("modelNumber")) { this.modelNumber = TypeConvertor.castToString(value); // StringType } else if (name.equals("type")) { - this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.getType().add(TypeConvertor.castToCodeableConcept(value)); } else if (name.equals("specialization")) { this.getSpecialization().add((DeviceDefinitionSpecializationComponent) value); + } else if (name.equals("hasPart")) { + this.getHasPart().add((DeviceDefinitionHasPartComponent) value); + } else if (name.equals("packaging")) { + this.getPackaging().add((DeviceDefinitionPackagingComponent) value); } else if (name.equals("version")) { - this.getVersion().add(TypeConvertor.castToString(value)); + this.getVersion().add((DeviceDefinitionVersionComponent) value); } else if (name.equals("safety")) { this.getSafety().add(TypeConvertor.castToCodeableConcept(value)); } else if (name.equals("shelfLifeStorage")) { @@ -3063,8 +4771,6 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | this.onlineInformation = TypeConvertor.castToUri(value); // UriType } else if (name.equals("note")) { this.getNote().add(TypeConvertor.castToAnnotation(value)); - } else if (name.equals("quantity")) { - this.quantity = TypeConvertor.castToQuantity(value); // Quantity } else if (name.equals("parentDevice")) { this.parentDevice = TypeConvertor.castToReference(value); // Reference } else if (name.equals("material")) { @@ -3083,9 +4789,11 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | case -1969347631: return getManufacturer(); case 780988929: return addDeviceName(); case 346619858: return getModelNumberElement(); - case 3575610: return getType(); + case 3575610: return addType(); case 682815883: return addSpecialization(); - case 351608024: return addVersionElement(); + case 696815021: return addHasPart(); + case 1802065795: return addPackaging(); + case 351608024: return addVersion(); case -909893934: return addSafety(); case 172049237: return addShelfLifeStorage(); case -1599676319: return getPhysicalCharacteristics(); @@ -3096,7 +4804,6 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | case 951526432: return addContact(); case -788511527: return getOnlineInformationElement(); case 3387378: return addNote(); - case -1285004149: return getQuantity(); case 620260256: return getParentDevice(); case 299066663: return addMaterial(); default: return super.makeProperty(hash, name); @@ -3114,7 +4821,9 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | case 346619858: /*modelNumber*/ return new String[] {"string"}; case 3575610: /*type*/ return new String[] {"CodeableConcept"}; case 682815883: /*specialization*/ return new String[] {}; - case 351608024: /*version*/ return new String[] {"string"}; + case 696815021: /*hasPart*/ return new String[] {}; + case 1802065795: /*packaging*/ return new String[] {}; + case 351608024: /*version*/ return new String[] {}; case -909893934: /*safety*/ return new String[] {"CodeableConcept"}; case 172049237: /*shelfLifeStorage*/ return new String[] {"ProductShelfLife"}; case -1599676319: /*physicalCharacteristics*/ return new String[] {"ProdCharacteristic"}; @@ -3125,7 +4834,6 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | case 951526432: /*contact*/ return new String[] {"ContactPoint"}; case -788511527: /*onlineInformation*/ return new String[] {"uri"}; case 3387378: /*note*/ return new String[] {"Annotation"}; - case -1285004149: /*quantity*/ return new String[] {"Quantity"}; case 620260256: /*parentDevice*/ return new String[] {"Reference"}; case 299066663: /*material*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); @@ -3156,14 +4864,19 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.modelNumber"); } else if (name.equals("type")) { - this.type = new CodeableConcept(); - return this.type; + return addType(); } else if (name.equals("specialization")) { return addSpecialization(); } + else if (name.equals("hasPart")) { + return addHasPart(); + } + else if (name.equals("packaging")) { + return addPackaging(); + } else if (name.equals("version")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceDefinition.version"); + return addVersion(); } else if (name.equals("safety")) { return addSafety(); @@ -3197,10 +4910,6 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | else if (name.equals("note")) { return addNote(); } - else if (name.equals("quantity")) { - this.quantity = new Quantity(); - return this.quantity; - } else if (name.equals("parentDevice")) { this.parentDevice = new Reference(); return this.parentDevice; @@ -3242,15 +4951,29 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | dst.deviceName.add(i.copy()); }; dst.modelNumber = modelNumber == null ? null : modelNumber.copy(); - dst.type = type == null ? null : type.copy(); + if (type != null) { + dst.type = new ArrayList(); + for (CodeableConcept i : type) + dst.type.add(i.copy()); + }; if (specialization != null) { dst.specialization = new ArrayList(); for (DeviceDefinitionSpecializationComponent i : specialization) dst.specialization.add(i.copy()); }; + if (hasPart != null) { + dst.hasPart = new ArrayList(); + for (DeviceDefinitionHasPartComponent i : hasPart) + dst.hasPart.add(i.copy()); + }; + if (packaging != null) { + dst.packaging = new ArrayList(); + for (DeviceDefinitionPackagingComponent i : packaging) + dst.packaging.add(i.copy()); + }; if (version != null) { - dst.version = new ArrayList(); - for (StringType i : version) + dst.version = new ArrayList(); + for (DeviceDefinitionVersionComponent i : version) dst.version.add(i.copy()); }; if (safety != null) { @@ -3291,7 +5014,6 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | for (Annotation i : note) dst.note.add(i.copy()); }; - dst.quantity = quantity == null ? null : quantity.copy(); dst.parentDevice = parentDevice == null ? null : parentDevice.copy(); if (material != null) { dst.material = new ArrayList(); @@ -3314,12 +5036,13 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | return compareDeep(identifier, o.identifier, true) && compareDeep(udiDeviceIdentifier, o.udiDeviceIdentifier, true) && compareDeep(manufacturer, o.manufacturer, true) && compareDeep(deviceName, o.deviceName, true) && compareDeep(modelNumber, o.modelNumber, true) && compareDeep(type, o.type, true) && compareDeep(specialization, o.specialization, true) - && compareDeep(version, o.version, true) && compareDeep(safety, o.safety, true) && compareDeep(shelfLifeStorage, o.shelfLifeStorage, true) + && compareDeep(hasPart, o.hasPart, true) && compareDeep(packaging, o.packaging, true) && compareDeep(version, o.version, true) + && compareDeep(safety, o.safety, true) && compareDeep(shelfLifeStorage, o.shelfLifeStorage, true) && compareDeep(physicalCharacteristics, o.physicalCharacteristics, true) && compareDeep(languageCode, o.languageCode, true) && compareDeep(capability, o.capability, true) && compareDeep(property, o.property, true) && compareDeep(owner, o.owner, true) && compareDeep(contact, o.contact, true) && compareDeep(onlineInformation, o.onlineInformation, true) - && compareDeep(note, o.note, true) && compareDeep(quantity, o.quantity, true) && compareDeep(parentDevice, o.parentDevice, true) - && compareDeep(material, o.material, true); + && compareDeep(note, o.note, true) && compareDeep(parentDevice, o.parentDevice, true) && compareDeep(material, o.material, true) + ; } @Override @@ -3329,15 +5052,15 @@ UDILabelName | UserFriendlyName | PatientReportedName | ManufactureDeviceName | if (!(other_ instanceof DeviceDefinition)) return false; DeviceDefinition o = (DeviceDefinition) other_; - return compareValues(modelNumber, o.modelNumber, true) && compareValues(version, o.version, true) && compareValues(onlineInformation, o.onlineInformation, true) + return compareValues(modelNumber, o.modelNumber, true) && compareValues(onlineInformation, o.onlineInformation, true) ; } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, udiDeviceIdentifier - , manufacturer, deviceName, modelNumber, type, specialization, version, safety - , shelfLifeStorage, physicalCharacteristics, languageCode, capability, property, owner - , contact, onlineInformation, note, quantity, parentDevice, material); + , manufacturer, deviceName, modelNumber, type, specialization, hasPart, packaging + , version, safety, shelfLifeStorage, physicalCharacteristics, languageCode, capability + , property, owner, contact, onlineInformation, note, parentDevice, material); } @Override diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceMetric.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceMetric.java index 2ab7ba1c2..ddb4c8487 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceMetric.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceMetric.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class DeviceMetric extends DomainResource { case CALIBRATIONREQUIRED: return "calibration-required"; case CALIBRATED: return "calibrated"; case UNSPECIFIED: return "unspecified"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class DeviceMetric extends DomainResource { case CALIBRATIONREQUIRED: return "http://hl7.org/fhir/metric-calibration-state"; case CALIBRATED: return "http://hl7.org/fhir/metric-calibration-state"; case UNSPECIFIED: return "http://hl7.org/fhir/metric-calibration-state"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class DeviceMetric extends DomainResource { case CALIBRATIONREQUIRED: return "The metric needs to be calibrated."; case CALIBRATED: return "The metric has been calibrated."; case UNSPECIFIED: return "The state of calibration of this metric is unspecified."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class DeviceMetric extends DomainResource { case CALIBRATIONREQUIRED: return "Calibration Required"; case CALIBRATED: return "Calibrated"; case UNSPECIFIED: return "Unspecified"; - case NULL: return null; default: return "?"; } } @@ -224,7 +220,6 @@ public class DeviceMetric extends DomainResource { case OFFSET: return "offset"; case GAIN: return "gain"; case TWOPOINT: return "two-point"; - case NULL: return null; default: return "?"; } } @@ -234,7 +229,6 @@ public class DeviceMetric extends DomainResource { case OFFSET: return "http://hl7.org/fhir/metric-calibration-type"; case GAIN: return "http://hl7.org/fhir/metric-calibration-type"; case TWOPOINT: return "http://hl7.org/fhir/metric-calibration-type"; - case NULL: return null; default: return "?"; } } @@ -244,7 +238,6 @@ public class DeviceMetric extends DomainResource { case OFFSET: return "Offset metric calibration method."; case GAIN: return "Gain metric calibration method."; case TWOPOINT: return "Two-point metric calibration method."; - case NULL: return null; default: return "?"; } } @@ -254,7 +247,6 @@ public class DeviceMetric extends DomainResource { case OFFSET: return "Offset"; case GAIN: return "Gain"; case TWOPOINT: return "Two Point"; - case NULL: return null; default: return "?"; } } @@ -352,7 +344,6 @@ public class DeviceMetric extends DomainResource { case SETTING: return "setting"; case CALCULATION: return "calculation"; case UNSPECIFIED: return "unspecified"; - case NULL: return null; default: return "?"; } } @@ -362,7 +353,6 @@ public class DeviceMetric extends DomainResource { case SETTING: return "http://hl7.org/fhir/metric-category"; case CALCULATION: return "http://hl7.org/fhir/metric-category"; case UNSPECIFIED: return "http://hl7.org/fhir/metric-category"; - case NULL: return null; default: return "?"; } } @@ -372,7 +362,6 @@ public class DeviceMetric extends DomainResource { case SETTING: return "DeviceObservations generated for this DeviceMetric is a setting that will influence the behavior of the Device."; case CALCULATION: return "DeviceObservations generated for this DeviceMetric are calculated."; case UNSPECIFIED: return "The category of this DeviceMetric is unspecified."; - case NULL: return null; default: return "?"; } } @@ -382,7 +371,6 @@ public class DeviceMetric extends DomainResource { case SETTING: return "Setting"; case CALCULATION: return "Calculation"; case UNSPECIFIED: return "Unspecified"; - case NULL: return null; default: return "?"; } } @@ -508,7 +496,6 @@ public class DeviceMetric extends DomainResource { case MAGENTA: return "magenta"; case CYAN: return "cyan"; case WHITE: return "white"; - case NULL: return null; default: return "?"; } } @@ -522,7 +509,6 @@ public class DeviceMetric extends DomainResource { case MAGENTA: return "http://hl7.org/fhir/metric-color"; case CYAN: return "http://hl7.org/fhir/metric-color"; case WHITE: return "http://hl7.org/fhir/metric-color"; - case NULL: return null; default: return "?"; } } @@ -536,7 +522,6 @@ public class DeviceMetric extends DomainResource { case MAGENTA: return "Color for representation - magenta."; case CYAN: return "Color for representation - cyan."; case WHITE: return "Color for representation - white."; - case NULL: return null; default: return "?"; } } @@ -550,7 +535,6 @@ public class DeviceMetric extends DomainResource { case MAGENTA: return "Color Magenta"; case CYAN: return "Color Cyan"; case WHITE: return "Color White"; - case NULL: return null; default: return "?"; } } @@ -672,7 +656,6 @@ public class DeviceMetric extends DomainResource { case OFF: return "off"; case STANDBY: return "standby"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -682,7 +665,6 @@ public class DeviceMetric extends DomainResource { case OFF: return "http://hl7.org/fhir/metric-operational-status"; case STANDBY: return "http://hl7.org/fhir/metric-operational-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/metric-operational-status"; - case NULL: return null; default: return "?"; } } @@ -692,7 +674,6 @@ public class DeviceMetric extends DomainResource { case OFF: return "The DeviceMetric is not operating."; case STANDBY: return "The DeviceMetric is operating, but will not generate any DeviceObservations."; case ENTEREDINERROR: return "The DeviceMetric was entered in error."; - case NULL: return null; default: return "?"; } } @@ -702,7 +683,6 @@ public class DeviceMetric extends DomainResource { case OFF: return "Off"; case STANDBY: return "Standby"; case ENTEREDINERROR: return "Entered In Error"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceRequest.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceRequest.java index 60e8ae71c..319a0d5e6 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceRequest.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceRequest.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -360,7 +360,7 @@ public class DeviceRequest extends DomainResource { /** * The request takes the place of the referenced completed or terminated request(s). */ - @Child(name = "priorRequest", type = {Reference.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "priorRequest", type = {DeviceRequest.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="What request replaces", formalDefinition="The request takes the place of the referenced completed or terminated request(s)." ) protected List priorRequest; @@ -388,82 +388,96 @@ public class DeviceRequest extends DomainResource { protected Enumeration intent; /** - * Indicates how quickly the device request should be addressed with respect to other requests. + * Indicates how quickly the request should be addressed with respect to other requests. */ @Child(name = "priority", type = {CodeType.class}, order=8, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="routine | urgent | asap | stat", formalDefinition="Indicates how quickly the device request should be addressed with respect to other requests." ) + @Description(shortDefinition="routine | urgent | asap | stat", formalDefinition="Indicates how quickly the request should be addressed with respect to other requests." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/request-priority") protected Enumeration priority; + /** + * If true, indicates that the provider is asking for the patient to either stop using or to not start using the specified device or category of devices. For example, the patient has undergone surgery and the provider is indicating that the patient should not wear contact lenses. + */ + @Child(name = "doNotPerform", type = {BooleanType.class}, order=9, min=0, max=1, modifier=true, summary=true) + @Description(shortDefinition="True if the request is to stop or not to start using the device", formalDefinition="If true, indicates that the provider is asking for the patient to either stop using or to not start using the specified device or category of devices. For example, the patient has undergone surgery and the provider is indicating that the patient should not wear contact lenses." ) + protected BooleanType doNotPerform; + /** * The details of the device to be used. */ - @Child(name = "code", type = {CodeableReference.class}, order=9, min=1, max=1, modifier=false, summary=true) + @Child(name = "code", type = {CodeableReference.class}, order=10, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="Device requested", formalDefinition="The details of the device to be used." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-kind") + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-type") protected CodeableReference code; + /** + * The number of devices to be provided. + */ + @Child(name = "quantity", type = {IntegerType.class}, order=11, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Quantity of devices to supply", formalDefinition="The number of devices to be provided." ) + protected IntegerType quantity; + /** * Specific parameters for the ordered item. For example, the prism value for lenses. */ - @Child(name = "parameter", type = {}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "parameter", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Device details", formalDefinition="Specific parameters for the ordered item. For example, the prism value for lenses." ) protected List parameter; /** * The patient who will use the device. */ - @Child(name = "subject", type = {Patient.class, Group.class, Location.class, Device.class}, order=11, min=1, max=1, modifier=false, summary=true) + @Child(name = "subject", type = {Patient.class, Group.class, Location.class, Device.class}, order=13, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="Focus of request", formalDefinition="The patient who will use the device." ) protected Reference subject; /** * An encounter that provides additional context in which this request is made. */ - @Child(name = "encounter", type = {Encounter.class}, order=12, min=0, max=1, modifier=false, summary=true) + @Child(name = "encounter", type = {Encounter.class}, order=14, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Encounter motivating request", formalDefinition="An encounter that provides additional context in which this request is made." ) protected Reference encounter; /** * The timing schedule for the use of the device. The Schedule data type allows many different expressions, for example. "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013". */ - @Child(name = "occurrence", type = {DateTimeType.class, Period.class, Timing.class}, order=13, min=0, max=1, modifier=false, summary=true) + @Child(name = "occurrence", type = {DateTimeType.class, Period.class, Timing.class}, order=15, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Desired time or schedule for use", formalDefinition="The timing schedule for the use of the device. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\"." ) protected DataType occurrence; /** * When the request transitioned to being actionable. */ - @Child(name = "authoredOn", type = {DateTimeType.class}, order=14, min=0, max=1, modifier=false, summary=true) + @Child(name = "authoredOn", type = {DateTimeType.class}, order=16, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="When recorded", formalDefinition="When the request transitioned to being actionable." ) protected DateTimeType authoredOn; /** - * The individual who initiated the request and has responsibility for its activation. + * The individual or entity who initiated the request and has responsibility for its activation. */ - @Child(name = "requester", type = {Device.class, Practitioner.class, PractitionerRole.class, Organization.class}, order=15, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Who/what is requesting diagnostics", formalDefinition="The individual who initiated the request and has responsibility for its activation." ) + @Child(name = "requester", type = {Device.class, Practitioner.class, PractitionerRole.class, Organization.class}, order=17, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Who/what submitted the device request", formalDefinition="The individual or entity who initiated the request and has responsibility for its activation." ) protected Reference requester; /** - * Desired type of performer for doing the diagnostic testing. + * The desired kind of individual or entity to provide the device to the subject of the request (e.g., patient, location). */ - @Child(name = "performerType", type = {CodeableConcept.class}, order=16, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Filler role", formalDefinition="Desired type of performer for doing the diagnostic testing." ) + @Child(name = "performerType", type = {CodeableConcept.class}, order=18, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Filler role", formalDefinition="The desired kind of individual or entity to provide the device to the subject of the request (e.g., patient, location)." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/participant-role") protected CodeableConcept performerType; /** - * The desired performer for doing the diagnostic testing. + * The desired individual or entity to provide the device to the subject of the request (e.g., patient, location). */ - @Child(name = "performer", type = {Practitioner.class, PractitionerRole.class, Organization.class, CareTeam.class, HealthcareService.class, Patient.class, Device.class, RelatedPerson.class}, order=17, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Requested Filler", formalDefinition="The desired performer for doing the diagnostic testing." ) + @Child(name = "performer", type = {Practitioner.class, PractitionerRole.class, Organization.class, CareTeam.class, HealthcareService.class, Patient.class, Device.class, RelatedPerson.class}, order=19, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Requested Filler", formalDefinition="The desired individual or entity to provide the device to the subject of the request (e.g., patient, location)." ) protected Reference performer; /** * 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) + @Child(name = "reason", type = {CodeableReference.class}, order=20, 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 reason; @@ -471,32 +485,32 @@ public class DeviceRequest extends DomainResource { /** * 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=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "insurance", type = {Coverage.class, ClaimResponse.class}, order=21, 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 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=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "supportingInfo", type = {Reference.class}, order=22, 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 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=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "note", type = {Annotation.class}, order=23, 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 note; /** * Key events in the history of the request. */ - @Child(name = "relevantHistory", type = {Provenance.class}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "relevantHistory", type = {Provenance.class}, order=24, 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 relevantHistory; - private static final long serialVersionUID = 1727309364L; + private static final long serialVersionUID = 97830140L; /** * Constructor @@ -915,7 +929,7 @@ public class DeviceRequest extends DomainResource { } /** - * @return {@link #priority} (Indicates how quickly the device request should be addressed with respect to other requests.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value + * @return {@link #priority} (Indicates how quickly the request should be addressed with respect to other requests.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value */ public Enumeration getPriorityElement() { if (this.priority == null) @@ -935,7 +949,7 @@ public class DeviceRequest extends DomainResource { } /** - * @param value {@link #priority} (Indicates how quickly the device request should be addressed with respect to other requests.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value + * @param value {@link #priority} (Indicates how quickly the request should be addressed with respect to other requests.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value */ public DeviceRequest setPriorityElement(Enumeration value) { this.priority = value; @@ -943,14 +957,14 @@ public class DeviceRequest extends DomainResource { } /** - * @return Indicates how quickly the device request should be addressed with respect to other requests. + * @return Indicates how quickly the request should be addressed with respect to other requests. */ public RequestPriority getPriority() { return this.priority == null ? null : this.priority.getValue(); } /** - * @param value Indicates how quickly the device request should be addressed with respect to other requests. + * @param value Indicates how quickly the request should be addressed with respect to other requests. */ public DeviceRequest setPriority(RequestPriority value) { if (value == null) @@ -963,6 +977,51 @@ public class DeviceRequest extends DomainResource { return this; } + /** + * @return {@link #doNotPerform} (If true, indicates that the provider is asking for the patient to either stop using or to not start using the specified device or category of devices. For example, the patient has undergone surgery and the provider is indicating that the patient should not wear contact lenses.). This is the underlying object with id, value and extensions. The accessor "getDoNotPerform" gives direct access to the value + */ + public BooleanType getDoNotPerformElement() { + if (this.doNotPerform == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create DeviceRequest.doNotPerform"); + else if (Configuration.doAutoCreate()) + this.doNotPerform = new BooleanType(); // bb + return this.doNotPerform; + } + + public boolean hasDoNotPerformElement() { + return this.doNotPerform != null && !this.doNotPerform.isEmpty(); + } + + public boolean hasDoNotPerform() { + return this.doNotPerform != null && !this.doNotPerform.isEmpty(); + } + + /** + * @param value {@link #doNotPerform} (If true, indicates that the provider is asking for the patient to either stop using or to not start using the specified device or category of devices. For example, the patient has undergone surgery and the provider is indicating that the patient should not wear contact lenses.). This is the underlying object with id, value and extensions. The accessor "getDoNotPerform" gives direct access to the value + */ + public DeviceRequest setDoNotPerformElement(BooleanType value) { + this.doNotPerform = value; + return this; + } + + /** + * @return If true, indicates that the provider is asking for the patient to either stop using or to not start using the specified device or category of devices. For example, the patient has undergone surgery and the provider is indicating that the patient should not wear contact lenses. + */ + public boolean getDoNotPerform() { + return this.doNotPerform == null || this.doNotPerform.isEmpty() ? false : this.doNotPerform.getValue(); + } + + /** + * @param value If true, indicates that the provider is asking for the patient to either stop using or to not start using the specified device or category of devices. For example, the patient has undergone surgery and the provider is indicating that the patient should not wear contact lenses. + */ + public DeviceRequest setDoNotPerform(boolean value) { + if (this.doNotPerform == null) + this.doNotPerform = new BooleanType(); + this.doNotPerform.setValue(value); + return this; + } + /** * @return {@link #code} (The details of the device to be used.) */ @@ -987,6 +1046,51 @@ public class DeviceRequest extends DomainResource { return this; } + /** + * @return {@link #quantity} (The number of devices to be provided.). This is the underlying object with id, value and extensions. The accessor "getQuantity" gives direct access to the value + */ + public IntegerType getQuantityElement() { + if (this.quantity == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create DeviceRequest.quantity"); + else if (Configuration.doAutoCreate()) + this.quantity = new IntegerType(); // bb + return this.quantity; + } + + public boolean hasQuantityElement() { + return this.quantity != null && !this.quantity.isEmpty(); + } + + public boolean hasQuantity() { + return this.quantity != null && !this.quantity.isEmpty(); + } + + /** + * @param value {@link #quantity} (The number of devices to be provided.). This is the underlying object with id, value and extensions. The accessor "getQuantity" gives direct access to the value + */ + public DeviceRequest setQuantityElement(IntegerType value) { + this.quantity = value; + return this; + } + + /** + * @return The number of devices to be provided. + */ + public int getQuantity() { + return this.quantity == null || this.quantity.isEmpty() ? 0 : this.quantity.getValue(); + } + + /** + * @param value The number of devices to be provided. + */ + public DeviceRequest setQuantity(int value) { + if (this.quantity == null) + this.quantity = new IntegerType(); + this.quantity.setValue(value); + return this; + } + /** * @return {@link #parameter} (Specific parameters for the ordered item. For example, the prism value for lenses.) */ @@ -1204,7 +1308,7 @@ public class DeviceRequest extends DomainResource { } /** - * @return {@link #requester} (The individual who initiated the request and has responsibility for its activation.) + * @return {@link #requester} (The individual or entity who initiated the request and has responsibility for its activation.) */ public Reference getRequester() { if (this.requester == null) @@ -1220,7 +1324,7 @@ public class DeviceRequest extends DomainResource { } /** - * @param value {@link #requester} (The individual who initiated the request and has responsibility for its activation.) + * @param value {@link #requester} (The individual or entity who initiated the request and has responsibility for its activation.) */ public DeviceRequest setRequester(Reference value) { this.requester = value; @@ -1228,7 +1332,7 @@ public class DeviceRequest extends DomainResource { } /** - * @return {@link #performerType} (Desired type of performer for doing the diagnostic testing.) + * @return {@link #performerType} (The desired kind of individual or entity to provide the device to the subject of the request (e.g., patient, location).) */ public CodeableConcept getPerformerType() { if (this.performerType == null) @@ -1244,7 +1348,7 @@ public class DeviceRequest extends DomainResource { } /** - * @param value {@link #performerType} (Desired type of performer for doing the diagnostic testing.) + * @param value {@link #performerType} (The desired kind of individual or entity to provide the device to the subject of the request (e.g., patient, location).) */ public DeviceRequest setPerformerType(CodeableConcept value) { this.performerType = value; @@ -1252,7 +1356,7 @@ public class DeviceRequest extends DomainResource { } /** - * @return {@link #performer} (The desired performer for doing the diagnostic testing.) + * @return {@link #performer} (The desired individual or entity to provide the device to the subject of the request (e.g., patient, location).) */ public Reference getPerformer() { if (this.performer == null) @@ -1268,7 +1372,7 @@ public class DeviceRequest extends DomainResource { } /** - * @param value {@link #performer} (The desired performer for doing the diagnostic testing.) + * @param value {@link #performer} (The desired individual or entity to provide the device to the subject of the request (e.g., patient, location).) */ public DeviceRequest setPerformer(Reference value) { this.performer = value; @@ -1546,20 +1650,22 @@ public class DeviceRequest extends DomainResource { children.add(new Property("instantiatesCanonical", "canonical(ActivityDefinition|PlanDefinition)", "The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this DeviceRequest.", 0, java.lang.Integer.MAX_VALUE, instantiatesCanonical)); children.add(new Property("instantiatesUri", "uri", "The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this DeviceRequest.", 0, java.lang.Integer.MAX_VALUE, instantiatesUri)); children.add(new Property("basedOn", "Reference(Any)", "Plan/proposal/order fulfilled by this request.", 0, java.lang.Integer.MAX_VALUE, basedOn)); - children.add(new Property("priorRequest", "Reference(Any)", "The request takes the place of the referenced completed or terminated request(s).", 0, java.lang.Integer.MAX_VALUE, priorRequest)); + children.add(new Property("priorRequest", "Reference(DeviceRequest)", "The request takes the place of the referenced completed or terminated request(s).", 0, java.lang.Integer.MAX_VALUE, priorRequest)); children.add(new Property("groupIdentifier", "Identifier", "Composite request this is part of.", 0, 1, groupIdentifier)); children.add(new Property("status", "code", "The status of the request.", 0, 1, status)); children.add(new Property("intent", "code", "Whether the request is a proposal, plan, an original order or a reflex order.", 0, 1, intent)); - children.add(new Property("priority", "code", "Indicates how quickly the device request should be addressed with respect to other requests.", 0, 1, priority)); + children.add(new Property("priority", "code", "Indicates how quickly the request should be addressed with respect to other requests.", 0, 1, priority)); + children.add(new Property("doNotPerform", "boolean", "If true, indicates that the provider is asking for the patient to either stop using or to not start using the specified device or category of devices. For example, the patient has undergone surgery and the provider is indicating that the patient should not wear contact lenses.", 0, 1, doNotPerform)); children.add(new Property("code", "CodeableReference(Device|DeviceDefinition)", "The details of the device to be used.", 0, 1, code)); + children.add(new Property("quantity", "integer", "The number of devices to be provided.", 0, 1, quantity)); children.add(new Property("parameter", "", "Specific parameters for the ordered item. For example, the prism value for lenses.", 0, java.lang.Integer.MAX_VALUE, parameter)); children.add(new Property("subject", "Reference(Patient|Group|Location|Device)", "The patient who will use the device.", 0, 1, subject)); children.add(new Property("encounter", "Reference(Encounter)", "An encounter that provides additional context in which this request is made.", 0, 1, encounter)); children.add(new Property("occurrence[x]", "dateTime|Period|Timing", "The timing schedule for the use of the device. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".", 0, 1, occurrence)); children.add(new Property("authoredOn", "dateTime", "When the request transitioned to being actionable.", 0, 1, authoredOn)); - 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("requester", "Reference(Device|Practitioner|PractitionerRole|Organization)", "The individual or entity who initiated the request and has responsibility for its activation.", 0, 1, requester)); + children.add(new Property("performerType", "CodeableConcept", "The desired kind of individual or entity to provide the device to the subject of the request (e.g., patient, location).", 0, 1, performerType)); + children.add(new Property("performer", "Reference(Practitioner|PractitionerRole|Organization|CareTeam|HealthcareService|Patient|Device|RelatedPerson)", "The desired individual or entity to provide the device to the subject of the request (e.g., patient, location).", 0, 1, performer)); 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)); @@ -1574,12 +1680,14 @@ public class DeviceRequest extends DomainResource { case 8911915: /*instantiatesCanonical*/ return new Property("instantiatesCanonical", "canonical(ActivityDefinition|PlanDefinition)", "The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this DeviceRequest.", 0, java.lang.Integer.MAX_VALUE, instantiatesCanonical); case -1926393373: /*instantiatesUri*/ return new Property("instantiatesUri", "uri", "The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this DeviceRequest.", 0, java.lang.Integer.MAX_VALUE, instantiatesUri); case -332612366: /*basedOn*/ return new Property("basedOn", "Reference(Any)", "Plan/proposal/order fulfilled by this request.", 0, java.lang.Integer.MAX_VALUE, basedOn); - case 237568101: /*priorRequest*/ return new Property("priorRequest", "Reference(Any)", "The request takes the place of the referenced completed or terminated request(s).", 0, java.lang.Integer.MAX_VALUE, priorRequest); + case 237568101: /*priorRequest*/ return new Property("priorRequest", "Reference(DeviceRequest)", "The request takes the place of the referenced completed or terminated request(s).", 0, java.lang.Integer.MAX_VALUE, priorRequest); case -445338488: /*groupIdentifier*/ return new Property("groupIdentifier", "Identifier", "Composite request this is part of.", 0, 1, groupIdentifier); case -892481550: /*status*/ return new Property("status", "code", "The status of the request.", 0, 1, status); case -1183762788: /*intent*/ return new Property("intent", "code", "Whether the request is a proposal, plan, an original order or a reflex order.", 0, 1, intent); - case -1165461084: /*priority*/ return new Property("priority", "code", "Indicates how quickly the device request should be addressed with respect to other requests.", 0, 1, priority); + case -1165461084: /*priority*/ return new Property("priority", "code", "Indicates how quickly the request should be addressed with respect to other requests.", 0, 1, priority); + case -1788508167: /*doNotPerform*/ return new Property("doNotPerform", "boolean", "If true, indicates that the provider is asking for the patient to either stop using or to not start using the specified device or category of devices. For example, the patient has undergone surgery and the provider is indicating that the patient should not wear contact lenses.", 0, 1, doNotPerform); case 3059181: /*code*/ return new Property("code", "CodeableReference(Device|DeviceDefinition)", "The details of the device to be used.", 0, 1, code); + case -1285004149: /*quantity*/ return new Property("quantity", "integer", "The number of devices to be provided.", 0, 1, quantity); case 1954460585: /*parameter*/ return new Property("parameter", "", "Specific parameters for the ordered item. For example, the prism value for lenses.", 0, java.lang.Integer.MAX_VALUE, parameter); case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group|Location|Device)", "The patient who will use the device.", 0, 1, subject); case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "An encounter that provides additional context in which this request is made.", 0, 1, encounter); @@ -1589,9 +1697,9 @@ public class DeviceRequest extends DomainResource { case 1397156594: /*occurrencePeriod*/ return new Property("occurrence[x]", "Period", "The timing schedule for the use of the device. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".", 0, 1, occurrence); case 1515218299: /*occurrenceTiming*/ return new Property("occurrence[x]", "Timing", "The timing schedule for the use of the device. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".", 0, 1, occurrence); case -1500852503: /*authoredOn*/ return new Property("authoredOn", "dateTime", "When the request transitioned to being actionable.", 0, 1, authoredOn); - 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 693933948: /*requester*/ return new Property("requester", "Reference(Device|Practitioner|PractitionerRole|Organization)", "The individual or entity who initiated the request and has responsibility for its activation.", 0, 1, requester); + case -901444568: /*performerType*/ return new Property("performerType", "CodeableConcept", "The desired kind of individual or entity to provide the device to the subject of the request (e.g., patient, location).", 0, 1, performerType); + case 481140686: /*performer*/ return new Property("performer", "Reference(Practitioner|PractitionerRole|Organization|CareTeam|HealthcareService|Patient|Device|RelatedPerson)", "The desired individual or entity to provide the device to the subject of the request (e.g., patient, location).", 0, 1, performer); 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); @@ -1614,7 +1722,9 @@ public class DeviceRequest extends DomainResource { case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration case -1183762788: /*intent*/ return this.intent == null ? new Base[0] : new Base[] {this.intent}; // Enumeration case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // Enumeration + case -1788508167: /*doNotPerform*/ return this.doNotPerform == null ? new Base[0] : new Base[] {this.doNotPerform}; // BooleanType case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableReference + case -1285004149: /*quantity*/ return this.quantity == null ? new Base[0] : new Base[] {this.quantity}; // IntegerType case 1954460585: /*parameter*/ return this.parameter == null ? new Base[0] : this.parameter.toArray(new Base[this.parameter.size()]); // DeviceRequestParameterComponent case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference case 1524132147: /*encounter*/ return this.encounter == null ? new Base[0] : new Base[] {this.encounter}; // Reference @@ -1666,9 +1776,15 @@ public class DeviceRequest extends DomainResource { value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); this.priority = (Enumeration) value; // Enumeration return value; + case -1788508167: // doNotPerform + this.doNotPerform = TypeConvertor.castToBoolean(value); // BooleanType + return value; case 3059181: // code this.code = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; + case -1285004149: // quantity + this.quantity = TypeConvertor.castToInteger(value); // IntegerType + return value; case 1954460585: // parameter this.getParameter().add((DeviceRequestParameterComponent) value); // DeviceRequestParameterComponent return value; @@ -1736,8 +1852,12 @@ public class DeviceRequest extends DomainResource { } else if (name.equals("priority")) { value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); this.priority = (Enumeration) value; // Enumeration + } else if (name.equals("doNotPerform")) { + this.doNotPerform = TypeConvertor.castToBoolean(value); // BooleanType } else if (name.equals("code")) { this.code = TypeConvertor.castToCodeableReference(value); // CodeableReference + } else if (name.equals("quantity")) { + this.quantity = TypeConvertor.castToInteger(value); // IntegerType } else if (name.equals("parameter")) { this.getParameter().add((DeviceRequestParameterComponent) value); } else if (name.equals("subject")) { @@ -1781,7 +1901,9 @@ public class DeviceRequest extends DomainResource { case -892481550: return getStatusElement(); case -1183762788: return getIntentElement(); case -1165461084: return getPriorityElement(); + case -1788508167: return getDoNotPerformElement(); case 3059181: return getCode(); + case -1285004149: return getQuantityElement(); case 1954460585: return addParameter(); case -1867885268: return getSubject(); case 1524132147: return getEncounter(); @@ -1813,7 +1935,9 @@ public class DeviceRequest extends DomainResource { case -892481550: /*status*/ return new String[] {"code"}; case -1183762788: /*intent*/ return new String[] {"code"}; case -1165461084: /*priority*/ return new String[] {"code"}; + case -1788508167: /*doNotPerform*/ return new String[] {"boolean"}; case 3059181: /*code*/ return new String[] {"CodeableReference"}; + case -1285004149: /*quantity*/ return new String[] {"integer"}; case 1954460585: /*parameter*/ return new String[] {}; case -1867885268: /*subject*/ return new String[] {"Reference"}; case 1524132147: /*encounter*/ return new String[] {"Reference"}; @@ -1862,10 +1986,16 @@ public class DeviceRequest extends DomainResource { else if (name.equals("priority")) { throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.priority"); } + else if (name.equals("doNotPerform")) { + throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.doNotPerform"); + } else if (name.equals("code")) { this.code = new CodeableReference(); return this.code; } + else if (name.equals("quantity")) { + throw new FHIRException("Cannot call addChild on a primitive type DeviceRequest.quantity"); + } else if (name.equals("parameter")) { return addParameter(); } @@ -1965,7 +2095,9 @@ public class DeviceRequest extends DomainResource { dst.status = status == null ? null : status.copy(); dst.intent = intent == null ? null : intent.copy(); dst.priority = priority == null ? null : priority.copy(); + dst.doNotPerform = doNotPerform == null ? null : doNotPerform.copy(); dst.code = code == null ? null : code.copy(); + dst.quantity = quantity == null ? null : quantity.copy(); if (parameter != null) { dst.parameter = new ArrayList(); for (DeviceRequestParameterComponent i : parameter) @@ -2020,12 +2152,12 @@ public class DeviceRequest extends DomainResource { && compareDeep(instantiatesUri, o.instantiatesUri, true) && compareDeep(basedOn, o.basedOn, true) && compareDeep(priorRequest, o.priorRequest, true) && compareDeep(groupIdentifier, o.groupIdentifier, true) && compareDeep(status, o.status, true) && compareDeep(intent, o.intent, true) && compareDeep(priority, o.priority, true) - && 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(reason, o.reason, true) && compareDeep(insurance, o.insurance, true) - && compareDeep(supportingInfo, o.supportingInfo, true) && compareDeep(note, o.note, true) && compareDeep(relevantHistory, o.relevantHistory, true) - ; + && compareDeep(doNotPerform, o.doNotPerform, true) && compareDeep(code, o.code, true) && compareDeep(quantity, o.quantity, 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(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 @@ -2037,14 +2169,16 @@ public class DeviceRequest extends DomainResource { DeviceRequest o = (DeviceRequest) other_; return compareValues(instantiatesCanonical, o.instantiatesCanonical, true) && compareValues(instantiatesUri, o.instantiatesUri, true) && compareValues(status, o.status, true) && compareValues(intent, o.intent, true) && compareValues(priority, o.priority, true) - && compareValues(authoredOn, o.authoredOn, true); + && compareValues(doNotPerform, o.doNotPerform, true) && compareValues(quantity, o.quantity, true) && compareValues(authoredOn, o.authoredOn, true) + ; } public boolean isEmpty() { 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, reason, insurance, supportingInfo, note, relevantHistory); + , doNotPerform, code, quantity, parameter, subject, encounter, occurrence, authoredOn + , requester, performerType, performer, reason, insurance, supportingInfo, note + , relevantHistory); } @Override @@ -2052,6 +2186,290 @@ public class DeviceRequest extends DomainResource { return ResourceType.DeviceRequest; } + /** + * Search parameter: code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "DeviceRequest:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("DeviceRequest:patient").toLocked(); + + /** + * Search parameter: encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) + public static final String SP_ENCOUNTER = "encounter"; + /** + * Fluent Client search parameter constant for encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "DeviceRequest:encounter". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("DeviceRequest:encounter").toLocked(); + /** * Search parameter: authored-on *

@@ -2080,7 +2498,7 @@ public class DeviceRequest extends DomainResource { * Path: DeviceRequest.basedOn
*

*/ - @SearchParamDefinition(name="based-on", path="DeviceRequest.basedOn", description="Plan/proposal/order fulfilled by this request", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="based-on", path="DeviceRequest.basedOn", description="Plan/proposal/order fulfilled by this request", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_BASED_ON = "based-on"; /** * Fluent Client search parameter constant for based-on @@ -2290,7 +2708,7 @@ public class DeviceRequest extends DomainResource { * Path: DeviceRequest.priorRequest
*

*/ - @SearchParamDefinition(name="prior-request", path="DeviceRequest.priorRequest", description="Request takes the place of referenced completed or terminated requests", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="prior-request", path="DeviceRequest.priorRequest", description="Request takes the place of referenced completed or terminated requests", type="reference", target={DeviceRequest.class } ) public static final String SP_PRIOR_REQUEST = "prior-request"; /** * Fluent Client search parameter constant for prior-request @@ -2380,290 +2798,6 @@ public class DeviceRequest extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("DeviceRequest:subject").toLocked(); - /** - * Search parameter: code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) - public static final String SP_CODE = "code"; - /** - * Fluent Client search parameter constant for code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); - - /** - * Search parameter: encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) - public static final String SP_ENCOUNTER = "encounter"; - /** - * Fluent Client search parameter constant for encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DeviceRequest:encounter". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("DeviceRequest:encounter").toLocked(); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DeviceRequest:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("DeviceRequest:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceUseStatement.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceUsage.java similarity index 76% rename from org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceUseStatement.java rename to org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceUsage.java index 610d8ad30..0c6ebd4d9 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceUseStatement.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DeviceUsage.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -50,10 +50,10 @@ import ca.uhn.fhir.model.api.annotation.Block; /** * A record of a device being used by a patient where the record is the result of a report from the patient or a clinician. */ -@ResourceDef(name="DeviceUseStatement", profile="http://hl7.org/fhir/StructureDefinition/DeviceUseStatement") -public class DeviceUseStatement extends DomainResource { +@ResourceDef(name="DeviceUsage", profile="http://hl7.org/fhir/StructureDefinition/DeviceUsage") +public class DeviceUsage extends DomainResource { - public enum DeviceUseStatementStatus { + public enum DeviceUsageStatus { /** * The device is still being used. */ @@ -82,7 +82,7 @@ public class DeviceUseStatement extends DomainResource { * added to help the parsers with the generic types */ NULL; - public static DeviceUseStatementStatus fromCode(String codeString) throws FHIRException { + public static DeviceUsageStatus fromCode(String codeString) throws FHIRException { if (codeString == null || "".equals(codeString)) return null; if ("active".equals(codeString)) @@ -100,7 +100,7 @@ public class DeviceUseStatement extends DomainResource { if (Configuration.isAcceptInvalidEnums()) return null; else - throw new FHIRException("Unknown DeviceUseStatementStatus code '"+codeString+"'"); + throw new FHIRException("Unknown DeviceUsageStatus code '"+codeString+"'"); } public String toCode() { switch (this) { @@ -110,19 +110,17 @@ public class DeviceUseStatement extends DomainResource { case INTENDED: return "intended"; case STOPPED: return "stopped"; case ONHOLD: return "on-hold"; - case NULL: return null; default: return "?"; } } public String getSystem() { switch (this) { - case ACTIVE: return "http://hl7.org/fhir/device-statement-status"; - case COMPLETED: return "http://hl7.org/fhir/device-statement-status"; - case ENTEREDINERROR: return "http://hl7.org/fhir/device-statement-status"; - case INTENDED: return "http://hl7.org/fhir/device-statement-status"; - case STOPPED: return "http://hl7.org/fhir/device-statement-status"; - case ONHOLD: return "http://hl7.org/fhir/device-statement-status"; - case NULL: return null; + case ACTIVE: return "http://hl7.org/fhir/device-usage-status"; + case COMPLETED: return "http://hl7.org/fhir/device-usage-status"; + case ENTEREDINERROR: return "http://hl7.org/fhir/device-usage-status"; + case INTENDED: return "http://hl7.org/fhir/device-usage-status"; + case STOPPED: return "http://hl7.org/fhir/device-usage-status"; + case ONHOLD: return "http://hl7.org/fhir/device-usage-status"; default: return "?"; } } @@ -134,7 +132,6 @@ public class DeviceUseStatement extends DomainResource { case INTENDED: return "The device may be used at some time in the future."; case STOPPED: return "Actions implied by the statement have been permanently halted, before all of them occurred."; case ONHOLD: return "Actions implied by the statement have been temporarily halted, but are expected to continue later. May also be called \"suspended\"."; - case NULL: return null; default: return "?"; } } @@ -146,69 +143,68 @@ public class DeviceUseStatement extends DomainResource { case INTENDED: return "Intended"; case STOPPED: return "Stopped"; case ONHOLD: return "On Hold"; - case NULL: return null; default: return "?"; } } } - public static class DeviceUseStatementStatusEnumFactory implements EnumFactory { - public DeviceUseStatementStatus fromCode(String codeString) throws IllegalArgumentException { + public static class DeviceUsageStatusEnumFactory implements EnumFactory { + public DeviceUsageStatus fromCode(String codeString) throws IllegalArgumentException { if (codeString == null || "".equals(codeString)) if (codeString == null || "".equals(codeString)) return null; if ("active".equals(codeString)) - return DeviceUseStatementStatus.ACTIVE; + return DeviceUsageStatus.ACTIVE; if ("completed".equals(codeString)) - return DeviceUseStatementStatus.COMPLETED; + return DeviceUsageStatus.COMPLETED; if ("entered-in-error".equals(codeString)) - return DeviceUseStatementStatus.ENTEREDINERROR; + return DeviceUsageStatus.ENTEREDINERROR; if ("intended".equals(codeString)) - return DeviceUseStatementStatus.INTENDED; + return DeviceUsageStatus.INTENDED; if ("stopped".equals(codeString)) - return DeviceUseStatementStatus.STOPPED; + return DeviceUsageStatus.STOPPED; if ("on-hold".equals(codeString)) - return DeviceUseStatementStatus.ONHOLD; - throw new IllegalArgumentException("Unknown DeviceUseStatementStatus code '"+codeString+"'"); + return DeviceUsageStatus.ONHOLD; + throw new IllegalArgumentException("Unknown DeviceUsageStatus code '"+codeString+"'"); } - public Enumeration fromType(Base code) throws FHIRException { + public Enumeration fromType(Base code) throws FHIRException { if (code == null) return null; if (code.isEmpty()) - return new Enumeration(this); + return new Enumeration(this); String codeString = ((PrimitiveType) code).asStringValue(); if (codeString == null || "".equals(codeString)) return null; if ("active".equals(codeString)) - return new Enumeration(this, DeviceUseStatementStatus.ACTIVE); + return new Enumeration(this, DeviceUsageStatus.ACTIVE); if ("completed".equals(codeString)) - return new Enumeration(this, DeviceUseStatementStatus.COMPLETED); + return new Enumeration(this, DeviceUsageStatus.COMPLETED); if ("entered-in-error".equals(codeString)) - return new Enumeration(this, DeviceUseStatementStatus.ENTEREDINERROR); + return new Enumeration(this, DeviceUsageStatus.ENTEREDINERROR); if ("intended".equals(codeString)) - return new Enumeration(this, DeviceUseStatementStatus.INTENDED); + return new Enumeration(this, DeviceUsageStatus.INTENDED); if ("stopped".equals(codeString)) - return new Enumeration(this, DeviceUseStatementStatus.STOPPED); + return new Enumeration(this, DeviceUsageStatus.STOPPED); if ("on-hold".equals(codeString)) - return new Enumeration(this, DeviceUseStatementStatus.ONHOLD); - throw new FHIRException("Unknown DeviceUseStatementStatus code '"+codeString+"'"); + return new Enumeration(this, DeviceUsageStatus.ONHOLD); + throw new FHIRException("Unknown DeviceUsageStatus code '"+codeString+"'"); } - public String toCode(DeviceUseStatementStatus code) { - if (code == DeviceUseStatementStatus.ACTIVE) + public String toCode(DeviceUsageStatus code) { + if (code == DeviceUsageStatus.ACTIVE) return "active"; - if (code == DeviceUseStatementStatus.COMPLETED) + if (code == DeviceUsageStatus.COMPLETED) return "completed"; - if (code == DeviceUseStatementStatus.ENTEREDINERROR) + if (code == DeviceUsageStatus.ENTEREDINERROR) return "entered-in-error"; - if (code == DeviceUseStatementStatus.INTENDED) + if (code == DeviceUsageStatus.INTENDED) return "intended"; - if (code == DeviceUseStatementStatus.STOPPED) + if (code == DeviceUsageStatus.STOPPED) return "stopped"; - if (code == DeviceUseStatementStatus.ONHOLD) + if (code == DeviceUsageStatus.ONHOLD) return "on-hold"; return "?"; } - public String toSystem(DeviceUseStatementStatus code) { + public String toSystem(DeviceUsageStatus code) { return code.getSystem(); } } @@ -221,10 +217,10 @@ public class DeviceUseStatement extends DomainResource { protected List identifier; /** - * A plan, proposal or order that is fulfilled in whole or in part by this DeviceUseStatement. + * A plan, proposal or order that is fulfilled in whole or in part by this DeviceUsage. */ @Child(name = "basedOn", type = {ServiceRequest.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Fulfills plan, proposal or order", formalDefinition="A plan, proposal or order that is fulfilled in whole or in part by this DeviceUseStatement." ) + @Description(shortDefinition="Fulfills plan, proposal or order", formalDefinition="A plan, proposal or order that is fulfilled in whole or in part by this DeviceUsage." ) protected List basedOn; /** @@ -232,8 +228,8 @@ public class DeviceUseStatement extends DomainResource { */ @Child(name = "status", type = {CodeType.class}, order=2, min=1, max=1, modifier=true, summary=true) @Description(shortDefinition="active | completed | entered-in-error +", formalDefinition="A code representing the patient or other source's judgment about the state of the device used that this statement is about. Generally this will be active or completed." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-statement-status") - protected Enumeration status; + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-usage-status") + protected Enumeration status; /** * This attribute indicates a category for the statement - The device statement may be made in an inpatient or outpatient settting (inpatient | outpatient | community | patientspecified). @@ -245,15 +241,15 @@ public class DeviceUseStatement extends DomainResource { /** * The patient who used the device. */ - @Child(name = "subject", type = {Patient.class, Group.class}, order=4, min=1, max=1, modifier=false, summary=true) + @Child(name = "subject", type = {Patient.class}, order=4, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="Patient using device", formalDefinition="The patient who used the device." ) protected Reference subject; /** - * Allows linking the DeviceUseStatement to the underlying Request, or to other information that supports or is used to derive the DeviceUseStatement. + * Allows linking the DeviceUsage to the underlying Request, or to other information that supports or is used to derive the DeviceUsage. */ @Child(name = "derivedFrom", type = {ServiceRequest.class, Procedure.class, Claim.class, Observation.class, QuestionnaireResponse.class, DocumentReference.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Supporting information", formalDefinition="Allows linking the DeviceUseStatement to the underlying Request, or to other information that supports or is used to derive the DeviceUseStatement." ) + @Description(shortDefinition="Supporting information", formalDefinition="Allows linking the DeviceUsage to the underlying Request, or to other information that supports or is used to derive the DeviceUsage." ) protected List derivedFrom; /** @@ -282,6 +278,7 @@ public class DeviceUseStatement extends DomainResource { */ @Child(name = "usageStatus", type = {CodeableConcept.class}, order=9, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="The status of the device usage, for example always, sometimes, never. This is not the same as the status of the statement", formalDefinition="The status of the device usage, for example always, sometimes, never. This is not the same as the status of the statement." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-usage-status") protected CodeableConcept usageStatus; /** @@ -306,10 +303,10 @@ public class DeviceUseStatement extends DomainResource { protected CodeableReference device; /** - * Reason or justification for the use of the device. A coded concept, or another resource whose existence justifies this DeviceUseStatement. + * Reason or justification for the use of the device. A coded concept, or another resource whose existence justifies this DeviceUsage. */ @Child(name = "reason", type = {CodeableReference.class}, order=13, 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." ) + @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 DeviceUsage." ) protected List reason; /** @@ -327,19 +324,19 @@ public class DeviceUseStatement extends DomainResource { @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 note; - private static final long serialVersionUID = 1284477298L; + private static final long serialVersionUID = -196510255L; /** * Constructor */ - public DeviceUseStatement() { + public DeviceUsage() { super(); } /** * Constructor */ - public DeviceUseStatement(DeviceUseStatementStatus status, Reference subject, CodeableReference device) { + public DeviceUsage(DeviceUsageStatus status, Reference subject, CodeableReference device) { super(); this.setStatus(status); this.setSubject(subject); @@ -358,7 +355,7 @@ public class DeviceUseStatement extends DomainResource { /** * @return Returns a reference to this for easy method chaining */ - public DeviceUseStatement setIdentifier(List theIdentifier) { + public DeviceUsage setIdentifier(List theIdentifier) { this.identifier = theIdentifier; return this; } @@ -380,7 +377,7 @@ public class DeviceUseStatement extends DomainResource { return t; } - public DeviceUseStatement addIdentifier(Identifier t) { //3 + public DeviceUsage addIdentifier(Identifier t) { //3 if (t == null) return this; if (this.identifier == null) @@ -400,7 +397,7 @@ public class DeviceUseStatement extends DomainResource { } /** - * @return {@link #basedOn} (A plan, proposal or order that is fulfilled in whole or in part by this DeviceUseStatement.) + * @return {@link #basedOn} (A plan, proposal or order that is fulfilled in whole or in part by this DeviceUsage.) */ public List getBasedOn() { if (this.basedOn == null) @@ -411,7 +408,7 @@ public class DeviceUseStatement extends DomainResource { /** * @return Returns a reference to this for easy method chaining */ - public DeviceUseStatement setBasedOn(List theBasedOn) { + public DeviceUsage setBasedOn(List theBasedOn) { this.basedOn = theBasedOn; return this; } @@ -433,7 +430,7 @@ public class DeviceUseStatement extends DomainResource { return t; } - public DeviceUseStatement addBasedOn(Reference t) { //3 + public DeviceUsage addBasedOn(Reference t) { //3 if (t == null) return this; if (this.basedOn == null) @@ -455,12 +452,12 @@ public class DeviceUseStatement extends DomainResource { /** * @return {@link #status} (A code representing the patient or other source's judgment about the state of the device used that this statement is about. Generally this will be active or completed.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ - public Enumeration getStatusElement() { + public Enumeration getStatusElement() { if (this.status == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create DeviceUseStatement.status"); + throw new Error("Attempt to auto-create DeviceUsage.status"); else if (Configuration.doAutoCreate()) - this.status = new Enumeration(new DeviceUseStatementStatusEnumFactory()); // bb + this.status = new Enumeration(new DeviceUsageStatusEnumFactory()); // bb return this.status; } @@ -475,7 +472,7 @@ public class DeviceUseStatement extends DomainResource { /** * @param value {@link #status} (A code representing the patient or other source's judgment about the state of the device used that this statement is about. Generally this will be active or completed.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ - public DeviceUseStatement setStatusElement(Enumeration value) { + public DeviceUsage setStatusElement(Enumeration value) { this.status = value; return this; } @@ -483,16 +480,16 @@ public class DeviceUseStatement extends DomainResource { /** * @return A code representing the patient or other source's judgment about the state of the device used that this statement is about. Generally this will be active or completed. */ - public DeviceUseStatementStatus getStatus() { + public DeviceUsageStatus getStatus() { return this.status == null ? null : this.status.getValue(); } /** * @param value A code representing the patient or other source's judgment about the state of the device used that this statement is about. Generally this will be active or completed. */ - public DeviceUseStatement setStatus(DeviceUseStatementStatus value) { + public DeviceUsage setStatus(DeviceUsageStatus value) { if (this.status == null) - this.status = new Enumeration(new DeviceUseStatementStatusEnumFactory()); + this.status = new Enumeration(new DeviceUsageStatusEnumFactory()); this.status.setValue(value); return this; } @@ -509,7 +506,7 @@ public class DeviceUseStatement extends DomainResource { /** * @return Returns a reference to this for easy method chaining */ - public DeviceUseStatement setCategory(List theCategory) { + public DeviceUsage setCategory(List theCategory) { this.category = theCategory; return this; } @@ -531,7 +528,7 @@ public class DeviceUseStatement extends DomainResource { return t; } - public DeviceUseStatement addCategory(CodeableConcept t) { //3 + public DeviceUsage addCategory(CodeableConcept t) { //3 if (t == null) return this; if (this.category == null) @@ -556,7 +553,7 @@ public class DeviceUseStatement extends DomainResource { public Reference getSubject() { if (this.subject == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create DeviceUseStatement.subject"); + throw new Error("Attempt to auto-create DeviceUsage.subject"); else if (Configuration.doAutoCreate()) this.subject = new Reference(); // cc return this.subject; @@ -569,13 +566,13 @@ public class DeviceUseStatement extends DomainResource { /** * @param value {@link #subject} (The patient who used the device.) */ - public DeviceUseStatement setSubject(Reference value) { + public DeviceUsage setSubject(Reference value) { this.subject = value; return this; } /** - * @return {@link #derivedFrom} (Allows linking the DeviceUseStatement to the underlying Request, or to other information that supports or is used to derive the DeviceUseStatement.) + * @return {@link #derivedFrom} (Allows linking the DeviceUsage to the underlying Request, or to other information that supports or is used to derive the DeviceUsage.) */ public List getDerivedFrom() { if (this.derivedFrom == null) @@ -586,7 +583,7 @@ public class DeviceUseStatement extends DomainResource { /** * @return Returns a reference to this for easy method chaining */ - public DeviceUseStatement setDerivedFrom(List theDerivedFrom) { + public DeviceUsage setDerivedFrom(List theDerivedFrom) { this.derivedFrom = theDerivedFrom; return this; } @@ -608,7 +605,7 @@ public class DeviceUseStatement extends DomainResource { return t; } - public DeviceUseStatement addDerivedFrom(Reference t) { //3 + public DeviceUsage addDerivedFrom(Reference t) { //3 if (t == null) return this; if (this.derivedFrom == null) @@ -633,7 +630,7 @@ public class DeviceUseStatement extends DomainResource { public Reference getContext() { if (this.context == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create DeviceUseStatement.context"); + throw new Error("Attempt to auto-create DeviceUsage.context"); else if (Configuration.doAutoCreate()) this.context = new Reference(); // cc return this.context; @@ -646,7 +643,7 @@ public class DeviceUseStatement extends DomainResource { /** * @param value {@link #context} (The encounter or episode of care that establishes the context for this device use statement.) */ - public DeviceUseStatement setContext(Reference value) { + public DeviceUsage setContext(Reference value) { this.context = value; return this; } @@ -710,9 +707,9 @@ public class DeviceUseStatement extends DomainResource { /** * @param value {@link #timing} (How often the device was used.) */ - public DeviceUseStatement setTiming(DataType value) { + public DeviceUsage setTiming(DataType value) { if (value != null && !(value instanceof Timing || value instanceof Period || value instanceof DateTimeType)) - throw new Error("Not the right type for DeviceUseStatement.timing[x]: "+value.fhirType()); + throw new Error("Not the right type for DeviceUsage.timing[x]: "+value.fhirType()); this.timing = value; return this; } @@ -723,7 +720,7 @@ public class DeviceUseStatement extends DomainResource { public DateTimeType getDateAssertedElement() { if (this.dateAsserted == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create DeviceUseStatement.dateAsserted"); + throw new Error("Attempt to auto-create DeviceUsage.dateAsserted"); else if (Configuration.doAutoCreate()) this.dateAsserted = new DateTimeType(); // bb return this.dateAsserted; @@ -740,7 +737,7 @@ public class DeviceUseStatement extends DomainResource { /** * @param value {@link #dateAsserted} (The time at which the statement was recorded by informationSource.). This is the underlying object with id, value and extensions. The accessor "getDateAsserted" gives direct access to the value */ - public DeviceUseStatement setDateAssertedElement(DateTimeType value) { + public DeviceUsage setDateAssertedElement(DateTimeType value) { this.dateAsserted = value; return this; } @@ -755,7 +752,7 @@ public class DeviceUseStatement extends DomainResource { /** * @param value The time at which the statement was recorded by informationSource. */ - public DeviceUseStatement setDateAsserted(Date value) { + public DeviceUsage setDateAsserted(Date value) { if (value == null) this.dateAsserted = null; else { @@ -772,7 +769,7 @@ public class DeviceUseStatement extends DomainResource { public CodeableConcept getUsageStatus() { if (this.usageStatus == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create DeviceUseStatement.usageStatus"); + throw new Error("Attempt to auto-create DeviceUsage.usageStatus"); else if (Configuration.doAutoCreate()) this.usageStatus = new CodeableConcept(); // cc return this.usageStatus; @@ -785,7 +782,7 @@ public class DeviceUseStatement extends DomainResource { /** * @param value {@link #usageStatus} (The status of the device usage, for example always, sometimes, never. This is not the same as the status of the statement.) */ - public DeviceUseStatement setUsageStatus(CodeableConcept value) { + public DeviceUsage setUsageStatus(CodeableConcept value) { this.usageStatus = value; return this; } @@ -802,7 +799,7 @@ public class DeviceUseStatement extends DomainResource { /** * @return Returns a reference to this for easy method chaining */ - public DeviceUseStatement setUsageReason(List theUsageReason) { + public DeviceUsage setUsageReason(List theUsageReason) { this.usageReason = theUsageReason; return this; } @@ -824,7 +821,7 @@ public class DeviceUseStatement extends DomainResource { return t; } - public DeviceUseStatement addUsageReason(CodeableConcept t) { //3 + public DeviceUsage addUsageReason(CodeableConcept t) { //3 if (t == null) return this; if (this.usageReason == null) @@ -849,7 +846,7 @@ public class DeviceUseStatement extends DomainResource { public Reference getInformationSource() { if (this.informationSource == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create DeviceUseStatement.informationSource"); + throw new Error("Attempt to auto-create DeviceUsage.informationSource"); else if (Configuration.doAutoCreate()) this.informationSource = new Reference(); // cc return this.informationSource; @@ -862,7 +859,7 @@ public class DeviceUseStatement extends DomainResource { /** * @param value {@link #informationSource} (Who reported the device was being used by the patient.) */ - public DeviceUseStatement setInformationSource(Reference value) { + public DeviceUsage setInformationSource(Reference value) { this.informationSource = value; return this; } @@ -873,7 +870,7 @@ public class DeviceUseStatement extends DomainResource { public CodeableReference getDevice() { if (this.device == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create DeviceUseStatement.device"); + throw new Error("Attempt to auto-create DeviceUsage.device"); else if (Configuration.doAutoCreate()) this.device = new CodeableReference(); // cc return this.device; @@ -886,13 +883,13 @@ public class DeviceUseStatement extends DomainResource { /** * @param value {@link #device} (Code or Reference to device used.) */ - public DeviceUseStatement setDevice(CodeableReference value) { + public DeviceUsage setDevice(CodeableReference value) { this.device = value; return this; } /** - * @return {@link #reason} (Reason or justification for the use of the device. A coded concept, or another resource whose existence justifies this DeviceUseStatement.) + * @return {@link #reason} (Reason or justification for the use of the device. A coded concept, or another resource whose existence justifies this DeviceUsage.) */ public List getReason() { if (this.reason == null) @@ -903,7 +900,7 @@ public class DeviceUseStatement extends DomainResource { /** * @return Returns a reference to this for easy method chaining */ - public DeviceUseStatement setReason(List theReason) { + public DeviceUsage setReason(List theReason) { this.reason = theReason; return this; } @@ -925,7 +922,7 @@ public class DeviceUseStatement extends DomainResource { return t; } - public DeviceUseStatement addReason(CodeableReference t) { //3 + public DeviceUsage addReason(CodeableReference t) { //3 if (t == null) return this; if (this.reason == null) @@ -950,7 +947,7 @@ public class DeviceUseStatement extends DomainResource { public CodeableReference getBodySite() { if (this.bodySite == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create DeviceUseStatement.bodySite"); + throw new Error("Attempt to auto-create DeviceUsage.bodySite"); else if (Configuration.doAutoCreate()) this.bodySite = new CodeableReference(); // cc return this.bodySite; @@ -963,7 +960,7 @@ public class DeviceUseStatement extends DomainResource { /** * @param value {@link #bodySite} (Indicates the anotomic location on the subject's body where the device was used ( i.e. the target).) */ - public DeviceUseStatement setBodySite(CodeableReference value) { + public DeviceUsage setBodySite(CodeableReference value) { this.bodySite = value; return this; } @@ -980,7 +977,7 @@ public class DeviceUseStatement extends DomainResource { /** * @return Returns a reference to this for easy method chaining */ - public DeviceUseStatement setNote(List theNote) { + public DeviceUsage setNote(List theNote) { this.note = theNote; return this; } @@ -1002,7 +999,7 @@ public class DeviceUseStatement extends DomainResource { return t; } - public DeviceUseStatement addNote(Annotation t) { //3 + public DeviceUsage addNote(Annotation t) { //3 if (t == null) return this; if (this.note == null) @@ -1024,11 +1021,11 @@ public class DeviceUseStatement extends DomainResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("identifier", "Identifier", "An external identifier for this statement such as an IRI.", 0, java.lang.Integer.MAX_VALUE, identifier)); - children.add(new Property("basedOn", "Reference(ServiceRequest)", "A plan, proposal or order that is fulfilled in whole or in part by this DeviceUseStatement.", 0, java.lang.Integer.MAX_VALUE, basedOn)); + children.add(new Property("basedOn", "Reference(ServiceRequest)", "A plan, proposal or order that is fulfilled in whole or in part by this DeviceUsage.", 0, java.lang.Integer.MAX_VALUE, basedOn)); children.add(new Property("status", "code", "A code representing the patient or other source's judgment about the state of the device used that this statement is about. Generally this will be active or completed.", 0, 1, status)); children.add(new Property("category", "CodeableConcept", "This attribute indicates a category for the statement - The device statement may be made in an inpatient or outpatient settting (inpatient | outpatient | community | patientspecified).", 0, java.lang.Integer.MAX_VALUE, category)); - children.add(new Property("subject", "Reference(Patient|Group)", "The patient who used the device.", 0, 1, subject)); - children.add(new Property("derivedFrom", "Reference(ServiceRequest|Procedure|Claim|Observation|QuestionnaireResponse|DocumentReference)", "Allows linking the DeviceUseStatement to the underlying Request, or to other information that supports or is used to derive the DeviceUseStatement.", 0, java.lang.Integer.MAX_VALUE, derivedFrom)); + children.add(new Property("subject", "Reference(Patient)", "The patient who used the device.", 0, 1, subject)); + children.add(new Property("derivedFrom", "Reference(ServiceRequest|Procedure|Claim|Observation|QuestionnaireResponse|DocumentReference)", "Allows linking the DeviceUsage to the underlying Request, or to other information that supports or is used to derive the DeviceUsage.", 0, java.lang.Integer.MAX_VALUE, derivedFrom)); children.add(new Property("context", "Reference(Encounter|EpisodeOfCare)", "The encounter or episode of care that establishes the context for this device use statement.", 0, 1, context)); children.add(new Property("timing[x]", "Timing|Period|dateTime", "How often the device was used.", 0, 1, timing)); children.add(new Property("dateAsserted", "dateTime", "The time at which the statement was recorded by informationSource.", 0, 1, dateAsserted)); @@ -1036,7 +1033,7 @@ public class DeviceUseStatement extends DomainResource { children.add(new Property("usageReason", "CodeableConcept", "The reason for asserting the usage status - for example forgot, lost, stolen, broken.", 0, java.lang.Integer.MAX_VALUE, usageReason)); children.add(new Property("informationSource", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|Organization)", "Who reported the device was being used by the patient.", 0, 1, informationSource)); children.add(new Property("device", "CodeableReference(Device|DeviceDefinition)", "Code or Reference to device used.", 0, 1, device)); - 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("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 DeviceUsage.", 0, java.lang.Integer.MAX_VALUE, reason)); children.add(new Property("bodySite", "CodeableReference(BodyStructure)", "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)); } @@ -1045,11 +1042,11 @@ public class DeviceUseStatement extends DomainResource { public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "An external identifier for this statement such as an IRI.", 0, java.lang.Integer.MAX_VALUE, identifier); - case -332612366: /*basedOn*/ return new Property("basedOn", "Reference(ServiceRequest)", "A plan, proposal or order that is fulfilled in whole or in part by this DeviceUseStatement.", 0, java.lang.Integer.MAX_VALUE, basedOn); + case -332612366: /*basedOn*/ return new Property("basedOn", "Reference(ServiceRequest)", "A plan, proposal or order that is fulfilled in whole or in part by this DeviceUsage.", 0, java.lang.Integer.MAX_VALUE, basedOn); case -892481550: /*status*/ return new Property("status", "code", "A code representing the patient or other source's judgment about the state of the device used that this statement is about. Generally this will be active or completed.", 0, 1, status); case 50511102: /*category*/ return new Property("category", "CodeableConcept", "This attribute indicates a category for the statement - The device statement may be made in an inpatient or outpatient settting (inpatient | outpatient | community | patientspecified).", 0, java.lang.Integer.MAX_VALUE, category); - case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group)", "The patient who used the device.", 0, 1, subject); - case 1077922663: /*derivedFrom*/ return new Property("derivedFrom", "Reference(ServiceRequest|Procedure|Claim|Observation|QuestionnaireResponse|DocumentReference)", "Allows linking the DeviceUseStatement to the underlying Request, or to other information that supports or is used to derive the DeviceUseStatement.", 0, java.lang.Integer.MAX_VALUE, derivedFrom); + case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient)", "The patient who used the device.", 0, 1, subject); + case 1077922663: /*derivedFrom*/ return new Property("derivedFrom", "Reference(ServiceRequest|Procedure|Claim|Observation|QuestionnaireResponse|DocumentReference)", "Allows linking the DeviceUsage to the underlying Request, or to other information that supports or is used to derive the DeviceUsage.", 0, java.lang.Integer.MAX_VALUE, derivedFrom); case 951530927: /*context*/ return new Property("context", "Reference(Encounter|EpisodeOfCare)", "The encounter or episode of care that establishes the context for this device use statement.", 0, 1, context); case 164632566: /*timing[x]*/ return new Property("timing[x]", "Timing|Period|dateTime", "How often the device was used.", 0, 1, timing); case -873664438: /*timing*/ return new Property("timing[x]", "Timing|Period|dateTime", "How often the device was used.", 0, 1, timing); @@ -1061,7 +1058,7 @@ public class DeviceUseStatement extends DomainResource { case 864714565: /*usageReason*/ return new Property("usageReason", "CodeableConcept", "The reason for asserting the usage status - for example forgot, lost, stolen, broken.", 0, java.lang.Integer.MAX_VALUE, usageReason); case -2123220889: /*informationSource*/ return new Property("informationSource", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|Organization)", "Who reported the device was being used by the patient.", 0, 1, informationSource); case -1335157162: /*device*/ return new Property("device", "CodeableReference(Device|DeviceDefinition)", "Code or Reference to device used.", 0, 1, device); - 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 -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 DeviceUsage.", 0, java.lang.Integer.MAX_VALUE, reason); case 1702620169: /*bodySite*/ return new Property("bodySite", "CodeableReference(BodyStructure)", "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); @@ -1074,7 +1071,7 @@ public class DeviceUseStatement extends DomainResource { switch (hash) { case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier case -332612366: /*basedOn*/ return this.basedOn == null ? new Base[0] : this.basedOn.toArray(new Base[this.basedOn.size()]); // Reference - case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration + case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration case 50511102: /*category*/ return this.category == null ? new Base[0] : this.category.toArray(new Base[this.category.size()]); // CodeableConcept case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference case 1077922663: /*derivedFrom*/ return this.derivedFrom == null ? new Base[0] : this.derivedFrom.toArray(new Base[this.derivedFrom.size()]); // Reference @@ -1103,8 +1100,8 @@ public class DeviceUseStatement extends DomainResource { this.getBasedOn().add(TypeConvertor.castToReference(value)); // Reference return value; case -892481550: // status - value = new DeviceUseStatementStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.status = (Enumeration) value; // Enumeration + value = new DeviceUsageStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration return value; case 50511102: // category this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept @@ -1157,8 +1154,8 @@ public class DeviceUseStatement extends DomainResource { } else if (name.equals("basedOn")) { this.getBasedOn().add(TypeConvertor.castToReference(value)); } else if (name.equals("status")) { - value = new DeviceUseStatementStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.status = (Enumeration) value; // Enumeration + value = new DeviceUsageStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration } else if (name.equals("category")) { this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); } else if (name.equals("subject")) { @@ -1248,7 +1245,7 @@ public class DeviceUseStatement extends DomainResource { return addBasedOn(); } else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseStatement.status"); + throw new FHIRException("Cannot call addChild on a primitive type DeviceUsage.status"); } else if (name.equals("category")) { return addCategory(); @@ -1277,7 +1274,7 @@ public class DeviceUseStatement extends DomainResource { return this.timing; } else if (name.equals("dateAsserted")) { - throw new FHIRException("Cannot call addChild on a primitive type DeviceUseStatement.dateAsserted"); + throw new FHIRException("Cannot call addChild on a primitive type DeviceUsage.dateAsserted"); } else if (name.equals("usageStatus")) { this.usageStatus = new CodeableConcept(); @@ -1309,17 +1306,17 @@ public class DeviceUseStatement extends DomainResource { } public String fhirType() { - return "DeviceUseStatement"; + return "DeviceUsage"; } - public DeviceUseStatement copy() { - DeviceUseStatement dst = new DeviceUseStatement(); + public DeviceUsage copy() { + DeviceUsage dst = new DeviceUsage(); copyValues(dst); return dst; } - public void copyValues(DeviceUseStatement dst) { + public void copyValues(DeviceUsage dst) { super.copyValues(dst); if (identifier != null) { dst.identifier = new ArrayList(); @@ -1367,7 +1364,7 @@ public class DeviceUseStatement extends DomainResource { }; } - protected DeviceUseStatement typedCopy() { + protected DeviceUsage typedCopy() { return copy(); } @@ -1375,9 +1372,9 @@ public class DeviceUseStatement extends DomainResource { public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof DeviceUseStatement)) + if (!(other_ instanceof DeviceUsage)) return false; - DeviceUseStatement o = (DeviceUseStatement) other_; + DeviceUsage o = (DeviceUsage) other_; return compareDeep(identifier, o.identifier, true) && compareDeep(basedOn, o.basedOn, true) && compareDeep(status, o.status, true) && compareDeep(category, o.category, true) && compareDeep(subject, o.subject, true) && compareDeep(derivedFrom, o.derivedFrom, true) && compareDeep(context, o.context, true) && compareDeep(timing, o.timing, true) && compareDeep(dateAsserted, o.dateAsserted, true) @@ -1391,9 +1388,9 @@ public class DeviceUseStatement extends DomainResource { public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof DeviceUseStatement)) + if (!(other_ instanceof DeviceUsage)) return false; - DeviceUseStatement o = (DeviceUseStatement) other_; + DeviceUsage o = (DeviceUsage) other_; return compareValues(status, o.status, true) && compareValues(dateAsserted, o.dateAsserted, true); } @@ -1405,75 +1402,9 @@ public class DeviceUseStatement extends DomainResource { @Override public ResourceType getResourceType() { - return ResourceType.DeviceUseStatement; + return ResourceType.DeviceUsage; } - /** - * Search parameter: device - *

- * Description: Search by device
- * Type: token
- * Path: DeviceUseStatement.device.concept
- *

- */ - @SearchParamDefinition(name="device", path="DeviceUseStatement.device.concept", description="Search by device", type="token" ) - public static final String SP_DEVICE = "device"; - /** - * Fluent Client search parameter constant for device - *

- * Description: Search by device
- * Type: token
- * Path: DeviceUseStatement.device.concept
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam DEVICE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_DEVICE); - - /** - * Search parameter: identifier - *

- * Description: Search by identifier
- * Type: token
- * Path: DeviceUseStatement.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="DeviceUseStatement.identifier", description="Search by identifier", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Search by identifier
- * Type: token
- * Path: DeviceUseStatement.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: subject - *

- * Description: Search by subject
- * Type: reference
- * Path: DeviceUseStatement.subject
- *

- */ - @SearchParamDefinition(name="subject", path="DeviceUseStatement.subject", description="Search by subject", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_SUBJECT = "subject"; - /** - * Fluent Client search parameter constant for subject - *

- * Description: Search by subject
- * Type: reference
- * Path: DeviceUseStatement.subject
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DeviceUseStatement:subject". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("DeviceUseStatement:subject").toLocked(); - /** * Search parameter: patient *

@@ -1488,7 +1419,7 @@ public class DeviceUseStatement extends DomainResource { * [Consent](consent.html): Who the consent applies to * [DetectedIssue](detectedissue.html): Associated patient * [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient +* [DeviceUsage](deviceusage.html): Search by subject - a patient * [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient * [DocumentManifest](documentmanifest.html): The subject of the set of documents * [DocumentReference](documentreference.html): Who/what is the subject of the document @@ -1513,10 +1444,10 @@ public class DeviceUseStatement extends DomainResource { * [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
* Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
*

*/ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -1532,7 +1463,7 @@ public class DeviceUseStatement extends DomainResource { * [Consent](consent.html): Who the consent applies to * [DetectedIssue](detectedissue.html): Associated patient * [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient +* [DeviceUsage](deviceusage.html): Search by subject - a patient * [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient * [DocumentManifest](documentmanifest.html): The subject of the set of documents * [DocumentReference](documentreference.html): Who/what is the subject of the document @@ -1557,16 +1488,82 @@ public class DeviceUseStatement extends DomainResource { * [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
* Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); /** * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DeviceUseStatement:patient". + * the path value of "DeviceUsage:patient". */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("DeviceUseStatement:patient").toLocked(); + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("DeviceUsage:patient").toLocked(); + + /** + * Search parameter: device + *

+ * Description: Search by device
+ * Type: token
+ * Path: DeviceUsage.device.concept
+ *

+ */ + @SearchParamDefinition(name="device", path="DeviceUsage.device.concept", description="Search by device", type="token" ) + public static final String SP_DEVICE = "device"; + /** + * Fluent Client search parameter constant for device + *

+ * Description: Search by device
+ * Type: token
+ * Path: DeviceUsage.device.concept
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam DEVICE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_DEVICE); + + /** + * Search parameter: identifier + *

+ * Description: Search by identifier
+ * Type: token
+ * Path: DeviceUsage.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="DeviceUsage.identifier", description="Search by identifier", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Search by identifier
+ * Type: token
+ * Path: DeviceUsage.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: subject + *

+ * Description: Search by subject
+ * Type: reference
+ * Path: DeviceUsage.subject
+ *

+ */ + @SearchParamDefinition(name="subject", path="DeviceUsage.subject", description="Search by subject", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } ) + public static final String SP_SUBJECT = "subject"; + /** + * Fluent Client search parameter constant for subject + *

+ * Description: Search by subject
+ * Type: reference
+ * Path: DeviceUsage.subject
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "DeviceUsage:subject". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("DeviceUsage:subject").toLocked(); } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DiagnosticReport.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DiagnosticReport.java index 0ac543d60..11e860bc8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DiagnosticReport.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DiagnosticReport.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -48,7 +48,7 @@ import ca.uhn.fhir.model.api.annotation.Description; import ca.uhn.fhir.model.api.annotation.Block; /** - * The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. + * The findings and interpretation of diagnostic tests performed on patients, groups of patients, products, substances, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. The report also includes non-clinical context such as batch analysis and stability reporting of products and substances. */ @ResourceDef(name="DiagnosticReport", profile="http://hl7.org/fhir/StructureDefinition/DiagnosticReport") public class DiagnosticReport extends DomainResource { @@ -138,7 +138,6 @@ public class DiagnosticReport extends DomainResource { case CANCELLED: return "cancelled"; case ENTEREDINERROR: return "entered-in-error"; case UNKNOWN: return "unknown"; - case NULL: return null; default: return "?"; } } @@ -154,7 +153,6 @@ public class DiagnosticReport extends DomainResource { case CANCELLED: return "http://hl7.org/fhir/diagnostic-report-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/diagnostic-report-status"; case UNKNOWN: return "http://hl7.org/fhir/diagnostic-report-status"; - case NULL: return null; default: return "?"; } } @@ -170,7 +168,6 @@ public class DiagnosticReport extends DomainResource { case CANCELLED: return "The report is unavailable because the measurement was not started or not completed (also sometimes called \"aborted\")."; case ENTEREDINERROR: return "The report has been withdrawn following a previous final release. This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)."; case UNKNOWN: return "The authoring/source system does not know which of the status values currently applies for this observation. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, but the authoring/source system does not know which."; - case NULL: return null; default: return "?"; } } @@ -186,7 +183,6 @@ public class DiagnosticReport extends DomainResource { case CANCELLED: return "Cancelled"; case ENTEREDINERROR: return "Entered in Error"; case UNKNOWN: return "Unknown"; - case NULL: return null; default: return "?"; } } @@ -551,7 +547,7 @@ public class DiagnosticReport extends DomainResource { /** * The subject of the report. Usually, but not always, this is a patient. However, diagnostic services also perform analyses on specimens collected from a variety of other sources. */ - @Child(name = "subject", type = {Patient.class, Group.class, Device.class, Location.class}, order=5, min=0, max=1, modifier=false, summary=true) + @Child(name = "subject", type = {Patient.class, Group.class, Device.class, Location.class, Organization.class, Procedure.class, Practitioner.class, Medication.class, Substance.class}, order=5, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="The subject of the report - usually, but not always, the patient", formalDefinition="The subject of the report. Usually, but not always, this is a patient. However, diagnostic services also perform analyses on specimens collected from a variety of other sources." ) protected Reference subject; @@ -618,17 +614,24 @@ public class DiagnosticReport extends DomainResource { @Description(shortDefinition="Key images associated with this report", formalDefinition="A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest)." ) protected List media; + /** + * Reference to a Composition resource instance that provides structure for organizing the contents of the DiagnosticReport. + */ + @Child(name = "composition", type = {Composition.class}, order=15, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Reference to a Composition resource for the DiagnosticReport structure", formalDefinition="Reference to a Composition resource instance that provides structure for organizing the contents of the DiagnosticReport." ) + protected Reference composition; + /** * Concise and clinically contextualized summary conclusion (interpretation/impression) of the diagnostic report. */ - @Child(name = "conclusion", type = {StringType.class}, order=15, min=0, max=1, modifier=false, summary=false) + @Child(name = "conclusion", type = {StringType.class}, order=16, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Clinical conclusion (interpretation) of test results", formalDefinition="Concise and clinically contextualized summary conclusion (interpretation/impression) of the diagnostic report." ) protected StringType conclusion; /** * One or more codes that represent the summary conclusion (interpretation/impression) of the diagnostic report. */ - @Child(name = "conclusionCode", type = {CodeableConcept.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "conclusionCode", type = {CodeableConcept.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Codes for the clinical conclusion of test results", formalDefinition="One or more codes that represent the summary conclusion (interpretation/impression) of the diagnostic report." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/clinical-findings") protected List conclusionCode; @@ -636,11 +639,11 @@ public class DiagnosticReport extends DomainResource { /** * Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent. */ - @Child(name = "presentedForm", type = {Attachment.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "presentedForm", type = {Attachment.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Entire report as issued", formalDefinition="Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent." ) protected List presentedForm; - private static final long serialVersionUID = 1870271821L; + private static final long serialVersionUID = 1097616706L; /** * Constructor @@ -1352,6 +1355,30 @@ public class DiagnosticReport extends DomainResource { return getMedia().get(0); } + /** + * @return {@link #composition} (Reference to a Composition resource instance that provides structure for organizing the contents of the DiagnosticReport.) + */ + public Reference getComposition() { + if (this.composition == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create DiagnosticReport.composition"); + else if (Configuration.doAutoCreate()) + this.composition = new Reference(); // cc + return this.composition; + } + + public boolean hasComposition() { + return this.composition != null && !this.composition.isEmpty(); + } + + /** + * @param value {@link #composition} (Reference to a Composition resource instance that provides structure for organizing the contents of the DiagnosticReport.) + */ + public DiagnosticReport setComposition(Reference value) { + this.composition = value; + return this; + } + /** * @return {@link #conclusion} (Concise and clinically contextualized summary conclusion (interpretation/impression) of the diagnostic report.). This is the underlying object with id, value and extensions. The accessor "getConclusion" gives direct access to the value */ @@ -1514,7 +1541,7 @@ public class DiagnosticReport extends DomainResource { children.add(new Property("status", "code", "The status of the diagnostic report.", 0, 1, status)); children.add(new Property("category", "CodeableConcept", "A code that classifies the clinical discipline, department or diagnostic service that created the report (e.g. cardiology, biochemistry, hematology, MRI). This is used for searching, sorting and display purposes.", 0, java.lang.Integer.MAX_VALUE, category)); children.add(new Property("code", "CodeableConcept", "A code or name that describes this diagnostic report.", 0, 1, code)); - children.add(new Property("subject", "Reference(Patient|Group|Device|Location)", "The subject of the report. Usually, but not always, this is a patient. However, diagnostic services also perform analyses on specimens collected from a variety of other sources.", 0, 1, subject)); + children.add(new Property("subject", "Reference(Patient|Group|Device|Location|Organization|Procedure|Practitioner|Medication|Substance)", "The subject of the report. Usually, but not always, this is a patient. However, diagnostic services also perform analyses on specimens collected from a variety of other sources.", 0, 1, subject)); children.add(new Property("encounter", "Reference(Encounter)", "The healthcare event (e.g. a patient and healthcare provider interaction) which this DiagnosticReport is about.", 0, 1, encounter)); children.add(new Property("effective[x]", "dateTime|Period", "The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself.", 0, 1, effective)); children.add(new Property("issued", "instant", "The date and time that this version of the report was made available to providers, typically after the report was reviewed and verified.", 0, 1, issued)); @@ -1524,6 +1551,7 @@ public class DiagnosticReport extends DomainResource { children.add(new Property("result", "Reference(Observation)", "[Observations](observation.html) that are part of this diagnostic report.", 0, java.lang.Integer.MAX_VALUE, result)); children.add(new Property("imagingStudy", "Reference(ImagingStudy)", "One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images.", 0, java.lang.Integer.MAX_VALUE, imagingStudy)); children.add(new Property("media", "", "A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest).", 0, java.lang.Integer.MAX_VALUE, media)); + children.add(new Property("composition", "Reference(Composition)", "Reference to a Composition resource instance that provides structure for organizing the contents of the DiagnosticReport.", 0, 1, composition)); children.add(new Property("conclusion", "string", "Concise and clinically contextualized summary conclusion (interpretation/impression) of the diagnostic report.", 0, 1, conclusion)); children.add(new Property("conclusionCode", "CodeableConcept", "One or more codes that represent the summary conclusion (interpretation/impression) of the diagnostic report.", 0, java.lang.Integer.MAX_VALUE, conclusionCode)); children.add(new Property("presentedForm", "Attachment", "Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent.", 0, java.lang.Integer.MAX_VALUE, presentedForm)); @@ -1537,7 +1565,7 @@ public class DiagnosticReport extends DomainResource { case -892481550: /*status*/ return new Property("status", "code", "The status of the diagnostic report.", 0, 1, status); case 50511102: /*category*/ return new Property("category", "CodeableConcept", "A code that classifies the clinical discipline, department or diagnostic service that created the report (e.g. cardiology, biochemistry, hematology, MRI). This is used for searching, sorting and display purposes.", 0, java.lang.Integer.MAX_VALUE, category); case 3059181: /*code*/ return new Property("code", "CodeableConcept", "A code or name that describes this diagnostic report.", 0, 1, code); - case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group|Device|Location)", "The subject of the report. Usually, but not always, this is a patient. However, diagnostic services also perform analyses on specimens collected from a variety of other sources.", 0, 1, subject); + case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group|Device|Location|Organization|Procedure|Practitioner|Medication|Substance)", "The subject of the report. Usually, but not always, this is a patient. However, diagnostic services also perform analyses on specimens collected from a variety of other sources.", 0, 1, subject); case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "The healthcare event (e.g. a patient and healthcare provider interaction) which this DiagnosticReport is about.", 0, 1, encounter); case 247104889: /*effective[x]*/ return new Property("effective[x]", "dateTime|Period", "The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself.", 0, 1, effective); case -1468651097: /*effective*/ return new Property("effective[x]", "dateTime|Period", "The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself.", 0, 1, effective); @@ -1550,6 +1578,7 @@ public class DiagnosticReport extends DomainResource { case -934426595: /*result*/ return new Property("result", "Reference(Observation)", "[Observations](observation.html) that are part of this diagnostic report.", 0, java.lang.Integer.MAX_VALUE, result); case -814900911: /*imagingStudy*/ return new Property("imagingStudy", "Reference(ImagingStudy)", "One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images.", 0, java.lang.Integer.MAX_VALUE, imagingStudy); case 103772132: /*media*/ return new Property("media", "", "A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest).", 0, java.lang.Integer.MAX_VALUE, media); + case -838923862: /*composition*/ return new Property("composition", "Reference(Composition)", "Reference to a Composition resource instance that provides structure for organizing the contents of the DiagnosticReport.", 0, 1, composition); case -1731259873: /*conclusion*/ return new Property("conclusion", "string", "Concise and clinically contextualized summary conclusion (interpretation/impression) of the diagnostic report.", 0, 1, conclusion); case -1731523412: /*conclusionCode*/ return new Property("conclusionCode", "CodeableConcept", "One or more codes that represent the summary conclusion (interpretation/impression) of the diagnostic report.", 0, java.lang.Integer.MAX_VALUE, conclusionCode); case 230090366: /*presentedForm*/ return new Property("presentedForm", "Attachment", "Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent.", 0, java.lang.Integer.MAX_VALUE, presentedForm); @@ -1576,6 +1605,7 @@ public class DiagnosticReport extends DomainResource { case -934426595: /*result*/ return this.result == null ? new Base[0] : this.result.toArray(new Base[this.result.size()]); // Reference case -814900911: /*imagingStudy*/ return this.imagingStudy == null ? new Base[0] : this.imagingStudy.toArray(new Base[this.imagingStudy.size()]); // Reference case 103772132: /*media*/ return this.media == null ? new Base[0] : this.media.toArray(new Base[this.media.size()]); // DiagnosticReportMediaComponent + case -838923862: /*composition*/ return this.composition == null ? new Base[0] : new Base[] {this.composition}; // Reference case -1731259873: /*conclusion*/ return this.conclusion == null ? new Base[0] : new Base[] {this.conclusion}; // StringType case -1731523412: /*conclusionCode*/ return this.conclusionCode == null ? new Base[0] : this.conclusionCode.toArray(new Base[this.conclusionCode.size()]); // CodeableConcept case 230090366: /*presentedForm*/ return this.presentedForm == null ? new Base[0] : this.presentedForm.toArray(new Base[this.presentedForm.size()]); // Attachment @@ -1633,6 +1663,9 @@ public class DiagnosticReport extends DomainResource { case 103772132: // media this.getMedia().add((DiagnosticReportMediaComponent) value); // DiagnosticReportMediaComponent return value; + case -838923862: // composition + this.composition = TypeConvertor.castToReference(value); // Reference + return value; case -1731259873: // conclusion this.conclusion = TypeConvertor.castToString(value); // StringType return value; @@ -1680,6 +1713,8 @@ public class DiagnosticReport extends DomainResource { this.getImagingStudy().add(TypeConvertor.castToReference(value)); } else if (name.equals("media")) { this.getMedia().add((DiagnosticReportMediaComponent) value); + } else if (name.equals("composition")) { + this.composition = TypeConvertor.castToReference(value); // Reference } else if (name.equals("conclusion")) { this.conclusion = TypeConvertor.castToString(value); // StringType } else if (name.equals("conclusionCode")) { @@ -1710,6 +1745,7 @@ public class DiagnosticReport extends DomainResource { case -934426595: return addResult(); case -814900911: return addImagingStudy(); case 103772132: return addMedia(); + case -838923862: return getComposition(); case -1731259873: return getConclusionElement(); case -1731523412: return addConclusionCode(); case 230090366: return addPresentedForm(); @@ -1736,6 +1772,7 @@ public class DiagnosticReport extends DomainResource { case -934426595: /*result*/ return new String[] {"Reference"}; case -814900911: /*imagingStudy*/ return new String[] {"Reference"}; case 103772132: /*media*/ return new String[] {}; + case -838923862: /*composition*/ return new String[] {"Reference"}; case -1731259873: /*conclusion*/ return new String[] {"string"}; case -1731523412: /*conclusionCode*/ return new String[] {"CodeableConcept"}; case 230090366: /*presentedForm*/ return new String[] {"Attachment"}; @@ -1799,6 +1836,10 @@ public class DiagnosticReport extends DomainResource { else if (name.equals("media")) { return addMedia(); } + else if (name.equals("composition")) { + this.composition = new Reference(); + return this.composition; + } else if (name.equals("conclusion")) { throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.conclusion"); } @@ -1876,6 +1917,7 @@ public class DiagnosticReport extends DomainResource { for (DiagnosticReportMediaComponent i : media) dst.media.add(i.copy()); }; + dst.composition = composition == null ? null : composition.copy(); dst.conclusion = conclusion == null ? null : conclusion.copy(); if (conclusionCode != null) { dst.conclusionCode = new ArrayList(); @@ -1905,8 +1947,9 @@ public class DiagnosticReport extends DomainResource { && compareDeep(encounter, o.encounter, true) && compareDeep(effective, o.effective, true) && compareDeep(issued, o.issued, true) && compareDeep(performer, o.performer, true) && compareDeep(resultsInterpreter, o.resultsInterpreter, true) && compareDeep(specimen, o.specimen, true) && compareDeep(result, o.result, true) && compareDeep(imagingStudy, o.imagingStudy, true) - && compareDeep(media, o.media, true) && compareDeep(conclusion, o.conclusion, true) && compareDeep(conclusionCode, o.conclusionCode, true) - && compareDeep(presentedForm, o.presentedForm, true); + && compareDeep(media, o.media, true) && compareDeep(composition, o.composition, true) && compareDeep(conclusion, o.conclusion, true) + && compareDeep(conclusionCode, o.conclusionCode, true) && compareDeep(presentedForm, o.presentedForm, true) + ; } @Override @@ -1923,8 +1966,8 @@ public class DiagnosticReport extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, basedOn, status , category, code, subject, encounter, effective, issued, performer, resultsInterpreter - , specimen, result, imagingStudy, media, conclusion, conclusionCode, presentedForm - ); + , specimen, result, imagingStudy, media, composition, conclusion, conclusionCode + , presentedForm); } @Override @@ -1932,6 +1975,348 @@ public class DiagnosticReport extends DomainResource { return ResourceType.DiagnosticReport; } + /** + * Search parameter: code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + + /** + * Search parameter: date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) + public static final String SP_DATE = "date"; + /** + * Fluent Client search parameter constant for date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "DiagnosticReport:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("DiagnosticReport:patient").toLocked(); + + /** + * Search parameter: encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) + public static final String SP_ENCOUNTER = "encounter"; + /** + * Fluent Client search parameter constant for encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "DiagnosticReport:encounter". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("DiagnosticReport:encounter").toLocked(); + /** * Search parameter: based-on *

@@ -2176,7 +2561,7 @@ public class DiagnosticReport extends DomainResource { * Path: DiagnosticReport.subject
*

*/ - @SearchParamDefinition(name="subject", path="DiagnosticReport.subject", description="The subject of the report", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Device.class, Group.class, Location.class, Patient.class } ) + @SearchParamDefinition(name="subject", path="DiagnosticReport.subject", description="The subject of the report", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Device.class, Group.class, Location.class, Medication.class, Organization.class, Patient.class, Practitioner.class, Procedure.class, Substance.class } ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject @@ -2194,348 +2579,6 @@ public class DiagnosticReport extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("DiagnosticReport:subject").toLocked(); - /** - * Search parameter: code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) - public static final String SP_CODE = "code"; - /** - * Fluent Client search parameter constant for code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); - - /** - * Search parameter: date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) - public static final String SP_DATE = "date"; - /** - * Fluent Client search parameter constant for date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); - - /** - * Search parameter: encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) - public static final String SP_ENCOUNTER = "encounter"; - /** - * Fluent Client search parameter constant for encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DiagnosticReport:encounter". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("DiagnosticReport:encounter").toLocked(); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DiagnosticReport:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("DiagnosticReport:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Distance.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Distance.java index 13e07d6a8..43c635ca8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Distance.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Distance.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DocumentManifest.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DocumentManifest.java index 58813a852..e77dae65e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DocumentManifest.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DocumentManifest.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -1192,6 +1192,220 @@ public class DocumentManifest extends DomainResource { return ResourceType.DocumentManifest; } + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "DocumentManifest:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("DocumentManifest:patient").toLocked(); + + /** + * Search parameter: type + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) +* [Composition](composition.html): Kind of composition (LOINC if possible) +* [DocumentManifest](documentmanifest.html): Kind of document set +* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) +* [Encounter](encounter.html): Specific type of encounter +* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management +
+ * Type: token
+ * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
+ *

+ */ + @SearchParamDefinition(name="type", path="AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known)\r\n* [Composition](composition.html): Kind of composition (LOINC if possible)\r\n* [DocumentManifest](documentmanifest.html): Kind of document set\r\n* [DocumentReference](documentreference.html): Kind of document (LOINC if possible)\r\n* [Encounter](encounter.html): Specific type of encounter\r\n* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management\r\n", type="token" ) + public static final String SP_TYPE = "type"; + /** + * Fluent Client search parameter constant for type + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) +* [Composition](composition.html): Kind of composition (LOINC if possible) +* [DocumentManifest](documentmanifest.html): Kind of document set +* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) +* [Encounter](encounter.html): Specific type of encounter +* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management +
+ * Type: token
+ * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); + /** * Search parameter: author *

@@ -1266,7 +1480,7 @@ public class DocumentManifest extends DomainResource { * Path: DocumentManifest.content
*

*/ - @SearchParamDefinition(name="item", path="DocumentManifest.content", description="Items in manifest", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="item", path="DocumentManifest.content", description="Items in manifest", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_ITEM = "item"; /** * Fluent Client search parameter constant for item @@ -1338,7 +1552,7 @@ public class DocumentManifest extends DomainResource { * Path: DocumentManifest.related.ref
*

*/ - @SearchParamDefinition(name="related-ref", path="DocumentManifest.related.ref", description="Related Resource", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="related-ref", path="DocumentManifest.related.ref", description="Related Resource", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_RELATED_REF = "related-ref"; /** * Fluent Client search parameter constant for related-ref @@ -1422,220 +1636,6 @@ public class DocumentManifest extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("DocumentManifest:subject").toLocked(); - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DocumentManifest:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("DocumentManifest:patient").toLocked(); - - /** - * Search parameter: type - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) -* [Composition](composition.html): Kind of composition (LOINC if possible) -* [DocumentManifest](documentmanifest.html): Kind of document set -* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) -* [Encounter](encounter.html): Specific type of encounter -* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management -
- * Type: token
- * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
- *

- */ - @SearchParamDefinition(name="type", path="AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known)\r\n* [Composition](composition.html): Kind of composition (LOINC if possible)\r\n* [DocumentManifest](documentmanifest.html): Kind of document set\r\n* [DocumentReference](documentreference.html): Kind of document (LOINC if possible)\r\n* [Encounter](encounter.html): Specific type of encounter\r\n* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management\r\n", type="token" ) - public static final String SP_TYPE = "type"; - /** - * Fluent Client search parameter constant for type - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) -* [Composition](composition.html): Kind of composition (LOINC if possible) -* [DocumentManifest](documentmanifest.html): Kind of document set -* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) -* [Encounter](encounter.html): Specific type of encounter -* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management -
- * Type: token
- * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DocumentReference.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DocumentReference.java index b607954fb..aa562f0e2 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DocumentReference.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DocumentReference.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class DocumentReference extends DomainResource { case PROFESSIONAL: return "professional"; case LEGAL: return "legal"; case OFFICIAL: return "official"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class DocumentReference extends DomainResource { case PROFESSIONAL: return "http://hl7.org/fhir/document-attestation-mode"; case LEGAL: return "http://hl7.org/fhir/document-attestation-mode"; case OFFICIAL: return "http://hl7.org/fhir/document-attestation-mode"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class DocumentReference extends DomainResource { case PROFESSIONAL: return "The person authenticated the content in their professional capacity."; case LEGAL: return "The person authenticated the content and accepted legal responsibility for its content."; case OFFICIAL: return "The organization authenticated the content as consistent with their policies and procedures."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class DocumentReference extends DomainResource { case PROFESSIONAL: return "Professional"; case LEGAL: return "Legal"; case OFFICIAL: return "Official"; - case NULL: return null; default: return "?"; } } @@ -2578,6 +2574,274 @@ public class DocumentReference extends DomainResource { return ResourceType.DocumentReference; } + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "DocumentReference:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("DocumentReference:patient").toLocked(); + + /** + * Search parameter: type + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) +* [Composition](composition.html): Kind of composition (LOINC if possible) +* [DocumentManifest](documentmanifest.html): Kind of document set +* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) +* [Encounter](encounter.html): Specific type of encounter +* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management +
+ * Type: token
+ * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
+ *

+ */ + @SearchParamDefinition(name="type", path="AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known)\r\n* [Composition](composition.html): Kind of composition (LOINC if possible)\r\n* [DocumentManifest](documentmanifest.html): Kind of document set\r\n* [DocumentReference](documentreference.html): Kind of document (LOINC if possible)\r\n* [Encounter](encounter.html): Specific type of encounter\r\n* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management\r\n", type="token" ) + public static final String SP_TYPE = "type"; + /** + * Fluent Client search parameter constant for type + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) +* [Composition](composition.html): Kind of composition (LOINC if possible) +* [DocumentManifest](documentmanifest.html): Kind of document set +* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) +* [Encounter](encounter.html): Specific type of encounter +* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management +
+ * Type: token
+ * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); + + /** + * Search parameter: encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) + public static final String SP_ENCOUNTER = "encounter"; + /** + * Fluent Client search parameter constant for encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "DocumentReference:encounter". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("DocumentReference:encounter").toLocked(); + /** * Search parameter: attester *

@@ -2930,7 +3194,7 @@ public class DocumentReference extends DomainResource { * Path: DocumentReference.related
*

*/ - @SearchParamDefinition(name="related", path="DocumentReference.related", description="Related identifiers or resources", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="related", path="DocumentReference.related", description="Related identifiers or resources", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_RELATED = "related"; /** * Fluent Client search parameter constant for related @@ -2994,26 +3258,6 @@ public class DocumentReference extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam RELATION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RELATION); - /** - * Search parameter: relationship - *

- * Description: Combination of relation and relatesTo
- * Type: composite
- * Path: DocumentReference.relatesTo
- *

- */ - @SearchParamDefinition(name="relationship", path="DocumentReference.relatesTo", description="Combination of relation and relatesTo", type="composite", compositeOf={"relatesto", "relation"} ) - public static final String SP_RELATIONSHIP = "relationship"; - /** - * Fluent Client search parameter constant for relationship - *

- * Description: Combination of relation and relatesTo
- * Type: composite
- * Path: DocumentReference.relatesTo
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam RELATIONSHIP = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_RELATIONSHIP); - /** * Search parameter: security-label *

@@ -3101,272 +3345,24 @@ public class DocumentReference extends DomainResource { public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("DocumentReference:subject").toLocked(); /** - * Search parameter: encounter + * Search parameter: relationship *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ * Description: Combination of relation and relatesTo
+ * Type: composite
+ * Path: DocumentReference.relatesTo
*

*/ - @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) - public static final String SP_ENCOUNTER = "encounter"; + @SearchParamDefinition(name="relationship", path="DocumentReference.relatesTo", description="Combination of relation and relatesTo", type="composite", compositeOf={"relatesto", "relation"} ) + public static final String SP_RELATIONSHIP = "relationship"; /** - * Fluent Client search parameter constant for encounter + * Fluent Client search parameter constant for relationship *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ * Description: Combination of relation and relatesTo
+ * Type: composite
+ * Path: DocumentReference.relatesTo
*

*/ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DocumentReference:encounter". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("DocumentReference:encounter").toLocked(); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "DocumentReference:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("DocumentReference:patient").toLocked(); - - /** - * Search parameter: type - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) -* [Composition](composition.html): Kind of composition (LOINC if possible) -* [DocumentManifest](documentmanifest.html): Kind of document set -* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) -* [Encounter](encounter.html): Specific type of encounter -* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management -
- * Type: token
- * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
- *

- */ - @SearchParamDefinition(name="type", path="AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known)\r\n* [Composition](composition.html): Kind of composition (LOINC if possible)\r\n* [DocumentManifest](documentmanifest.html): Kind of document set\r\n* [DocumentReference](documentreference.html): Kind of document (LOINC if possible)\r\n* [Encounter](encounter.html): Specific type of encounter\r\n* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management\r\n", type="token" ) - public static final String SP_TYPE = "type"; - /** - * Fluent Client search parameter constant for type - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) -* [Composition](composition.html): Kind of composition (LOINC if possible) -* [DocumentManifest](documentmanifest.html): Kind of document set -* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) -* [Encounter](encounter.html): Specific type of encounter -* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management -
- * Type: token
- * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam RELATIONSHIP = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_RELATIONSHIP); } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DomainResource.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DomainResource.java index 1c7e56d1f..635db9c46 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DomainResource.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/DomainResource.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -410,23 +410,23 @@ Modifier extensions SHALL NOT change the meaning of any elements on Resource or * Search parameter: _text *

* Description: Search on the narrative of the resource
- * Type: string
+ * Type: special
* Path: null
*

*/ - @SearchParamDefinition(name="_text", path="", description="Search on the narrative of the resource", type="string" ) + @SearchParamDefinition(name="_text", path="", description="Search on the narrative of the resource", type="special" ) public static final String SP_TEXT = "_text"; /** * Fluent Client search parameter constant for _text *

* Description: Search on the narrative of the resource
- * Type: string
+ * Type: special
* Path: null
*

*/ - public static final ca.uhn.fhir.rest.gclient.StringClientParam TEXT = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TEXT); + public static final ca.uhn.fhir.rest.gclient.SpecialClientParam TEXT = new ca.uhn.fhir.rest.gclient.SpecialClientParam(SP_TEXT); -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): public void checkNoModifiers(String noun, String verb) throws FHIRException { if (hasModifierExtension()) { throw new FHIRException("Found unknown Modifier Exceptions on "+noun+" doing "+verb); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Dosage.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Dosage.java index b79ed6dbb..95af8f213 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Dosage.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Dosage.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Duration.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Duration.java index 1c21d0f03..b4c03ab96 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Duration.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Duration.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Element.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Element.java index 31994c68f..360b6a6aa 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Element.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Element.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -302,7 +302,7 @@ public abstract class Element extends Base implements IBaseHasExtensions, IBaseE return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(id, extension); } -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): @Override public String getIdBase() { return getId(); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ElementDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ElementDefinition.java index 0c01c8567..6f4982f5d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ElementDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ElementDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -93,7 +93,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case CONTAINED: return "contained"; case REFERENCED: return "referenced"; case BUNDLED: return "bundled"; - case NULL: return null; default: return "?"; } } @@ -102,7 +101,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case CONTAINED: return "http://hl7.org/fhir/resource-aggregation-mode"; case REFERENCED: return "http://hl7.org/fhir/resource-aggregation-mode"; case BUNDLED: return "http://hl7.org/fhir/resource-aggregation-mode"; - case NULL: return null; default: return "?"; } } @@ -111,7 +109,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case CONTAINED: return "The reference is a local reference to a contained resource."; case REFERENCED: return "The reference to a resource that has to be resolved externally to the resource that includes the reference."; case BUNDLED: return "The resource the reference points to will be found in the same bundle as the resource that includes the reference."; - case NULL: return null; default: return "?"; } } @@ -120,7 +117,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case CONTAINED: return "Contained"; case REFERENCED: return "Referenced"; case BUNDLED: return "Bundled"; - case NULL: return null; default: return "?"; } } @@ -198,7 +194,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { switch (this) { case ERROR: return "error"; case WARNING: return "warning"; - case NULL: return null; default: return "?"; } } @@ -206,7 +201,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { switch (this) { case ERROR: return "http://hl7.org/fhir/constraint-severity"; case WARNING: return "http://hl7.org/fhir/constraint-severity"; - case NULL: return null; default: return "?"; } } @@ -214,7 +208,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { switch (this) { case ERROR: return "If the constraint is violated, the resource is not conformant."; case WARNING: return "If the constraint is violated, the resource is conformant, but it is not necessarily following best practice."; - case NULL: return null; default: return "?"; } } @@ -222,7 +215,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { switch (this) { case ERROR: return "Error"; case WARNING: return "Warning"; - case NULL: return null; default: return "?"; } } @@ -315,7 +307,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case PATTERN: return "pattern"; case TYPE: return "type"; case PROFILE: return "profile"; - case NULL: return null; default: return "?"; } } @@ -326,7 +317,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case PATTERN: return "http://hl7.org/fhir/discriminator-type"; case TYPE: return "http://hl7.org/fhir/discriminator-type"; case PROFILE: return "http://hl7.org/fhir/discriminator-type"; - case NULL: return null; default: return "?"; } } @@ -337,7 +327,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case PATTERN: return "The slices have different values in the nominated element, as determined by testing them against the applicable ElementDefinition.pattern[x]."; case TYPE: return "The slices are differentiated by type of the nominated element."; case PROFILE: return "The slices are differentiated by conformance of the nominated element to a specified profile. Note that if the path specifies .resolve() then the profile is the target profile on the reference. In this case, validation by the possible profiles is required to differentiate the slices."; - case NULL: return null; default: return "?"; } } @@ -348,7 +337,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case PATTERN: return "Pattern"; case TYPE: return "Type"; case PROFILE: return "Profile"; - case NULL: return null; default: return "?"; } } @@ -459,7 +447,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case TYPEATTR: return "typeAttr"; case CDATEXT: return "cdaText"; case XHTML: return "xhtml"; - case NULL: return null; default: return "?"; } } @@ -470,7 +457,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case TYPEATTR: return "http://hl7.org/fhir/property-representation"; case CDATEXT: return "http://hl7.org/fhir/property-representation"; case XHTML: return "http://hl7.org/fhir/property-representation"; - case NULL: return null; default: return "?"; } } @@ -481,7 +467,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case TYPEATTR: return "The type of this element is indicated using xsi:type."; case CDATEXT: return "Use CDA narrative instead of XHTML."; case XHTML: return "The property is represented using XHTML."; - case NULL: return null; default: return "?"; } } @@ -492,7 +477,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case TYPEATTR: return "Type Attribute"; case CDATEXT: return "CDA Text Format"; case XHTML: return "XHTML"; - case NULL: return null; default: return "?"; } } @@ -589,7 +573,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case EITHER: return "either"; case INDEPENDENT: return "independent"; case SPECIFIC: return "specific"; - case NULL: return null; default: return "?"; } } @@ -598,7 +581,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case EITHER: return "http://hl7.org/fhir/reference-version-rules"; case INDEPENDENT: return "http://hl7.org/fhir/reference-version-rules"; case SPECIFIC: return "http://hl7.org/fhir/reference-version-rules"; - case NULL: return null; default: return "?"; } } @@ -607,7 +589,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case EITHER: return "The reference may be either version independent or version specific."; case INDEPENDENT: return "The reference must be version independent."; case SPECIFIC: return "The reference must be version specific."; - case NULL: return null; default: return "?"; } } @@ -616,7 +597,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case EITHER: return "Either Specific or independent"; case INDEPENDENT: return "Version independent"; case SPECIFIC: return "Version Specific"; - case NULL: return null; default: return "?"; } } @@ -701,7 +681,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case CLOSED: return "closed"; case OPEN: return "open"; case OPENATEND: return "openAtEnd"; - case NULL: return null; default: return "?"; } } @@ -710,7 +689,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case CLOSED: return "http://hl7.org/fhir/resource-slicing-rules"; case OPEN: return "http://hl7.org/fhir/resource-slicing-rules"; case OPENATEND: return "http://hl7.org/fhir/resource-slicing-rules"; - case NULL: return null; default: return "?"; } } @@ -719,7 +697,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case CLOSED: return "No additional content is allowed other than that described by the slices in this profile."; case OPEN: return "Additional content is allowed anywhere in the list."; case OPENATEND: return "Additional content is allowed, but only at the end of the list. Note that using this requires that the slices be ordered, which makes it hard to share uses. This should only be done where absolutely required."; - case NULL: return null; default: return "?"; } } @@ -728,7 +705,6 @@ public class ElementDefinition extends BackboneType implements ICompositeType { case CLOSED: return "Closed"; case OPEN: return "Open"; case OPENATEND: return "Open at End"; - case NULL: return null; default: return "?"; } } @@ -11300,120 +11276,119 @@ When pattern[x] is used to constrain a complex object, it means that each proper ); } -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): - - public String toString() { - if (hasId()) - return getId(); - if (hasSliceName()) - return getPath()+":"+getSliceName(); - else - return getPath(); - } - - public void makeBase(String path, int min, String max) { - ElementDefinitionBaseComponent self = getBase(); - self.setPath(path); - self.setMin(min); - self.setMax(max); - } - - public void makeBase() { - ElementDefinitionBaseComponent self = getBase(); - self.setPath(getPath()); - self.setMin(getMin()); - self.setMax(getMax()); - } - - - public String typeSummary() { - CommaSeparatedStringBuilder b = new CommaSeparatedStringBuilder(); - for (TypeRefComponent tr : getType()) { - if (tr.hasCode()) - b.append(tr.getWorkingCode()); - } - return b.toString(); - } - - public String typeSummaryVB() { - CommaSeparatedStringBuilder b = new CommaSeparatedStringBuilder("|"); - for (TypeRefComponent tr : getType()) { - if (tr.hasCode()) - b.append(tr.getWorkingCode()); - } - return b.toString().replace(" ", ""); - } - - public TypeRefComponent getType(String code) { - for (TypeRefComponent tr : getType()) - if (tr.getCode().equals(code)) - return tr; - TypeRefComponent tr = new TypeRefComponent(); - tr.setCode(code); - type.add(tr); + public String toString() { + if (hasId()) + return getId(); + if (hasSliceName()) + return getPath()+":"+getSliceName(); + else + return getPath(); + } + + public void makeBase(String path, int min, String max) { + ElementDefinitionBaseComponent self = getBase(); + self.setPath(path); + self.setMin(min); + self.setMax(max); + } + + public void makeBase() { + ElementDefinitionBaseComponent self = getBase(); + self.setPath(getPath()); + self.setMin(getMin()); + self.setMax(getMax()); + } + + + public String typeSummary() { + CommaSeparatedStringBuilder b = new CommaSeparatedStringBuilder(); + for (TypeRefComponent tr : getType()) { + if (tr.hasCode()) + b.append(tr.getWorkingCode()); + } + return b.toString(); + } + + public String typeSummaryVB() { + CommaSeparatedStringBuilder b = new CommaSeparatedStringBuilder("|"); + for (TypeRefComponent tr : getType()) { + if (tr.hasCode()) + b.append(tr.getWorkingCode()); + } + return b.toString().replace(" ", ""); + } + + public TypeRefComponent getType(String code) { + for (TypeRefComponent tr : getType()) + if (tr.getCode().equals(code)) return tr; - } + TypeRefComponent tr = new TypeRefComponent(); + tr.setCode(code); + type.add(tr); + return tr; + } - public static final boolean NOT_MODIFIER = false; - public static final boolean NOT_IN_SUMMARY = false; - public static final boolean IS_MODIFIER = true; - public static final boolean IS_IN_SUMMARY = true; - public ElementDefinition(boolean defaults, boolean modifier, boolean inSummary) { - super(); - if (defaults) { - setIsModifier(modifier); - setIsSummary(inSummary); - } - } + public static final boolean NOT_MODIFIER = false; + public static final boolean NOT_IN_SUMMARY = false; + public static final boolean IS_MODIFIER = true; + public static final boolean IS_IN_SUMMARY = true; + public ElementDefinition(boolean defaults, boolean modifier, boolean inSummary) { + super(); + if (defaults) { + setIsModifier(modifier); + setIsSummary(inSummary); + } + } - public String present() { - return hasId() ? getId() : getPath(); - } + public String present() { + return hasId() ? getId() : getPath(); + } - public boolean hasCondition(IdType id) { - for (IdType c : getCondition()) { - if (c.primitiveValue().equals(id.primitiveValue())) - return true; - } - return false; - } + public boolean hasCondition(IdType id) { + for (IdType c : getCondition()) { + if (c.primitiveValue().equals(id.primitiveValue())) + return true; + } + return false; + } - public boolean hasConstraint(String key) { - for (ElementDefinitionConstraintComponent c : getConstraint()) { - if (c.getKey().equals(key)) - return true; - } - return false; - } + public boolean hasConstraint(String key) { + for (ElementDefinitionConstraintComponent c : getConstraint()) { + if (c.getKey().equals(key)) + return true; + } + return false; + } - public boolean hasCode(Coding c) { - for (Coding t : getCode()) { - if (t.getSystem().equals(c.getSystem()) && t.getCode().equals(c.getCode())) - return true; - } - return false; - } + public boolean hasCode(Coding c) { + for (Coding t : getCode()) { + if (t.getSystem().equals(c.getSystem()) && t.getCode().equals(c.getCode())) + return true; + } + return false; + } - public boolean isChoice() { - return getPath().endsWith("[x]"); - } + public boolean isChoice() { + return getPath().endsWith("[x]"); + } - public String getName() { - return hasPath() ? getPath().contains(".") ? getPath().substring(getPath().lastIndexOf(".")+1) : getPath() : null; - } + public String getName() { + return hasPath() ? getPath().contains(".") ? getPath().substring(getPath().lastIndexOf(".")+1) : getPath() : null; + } - public boolean unbounded() { - return getMax().equals("*") || Integer.parseInt(getMax()) > 1; - } + public boolean unbounded() { + return getMax().equals("*") || Integer.parseInt(getMax()) > 1; + } - public boolean isMandatory() { - return getMin() > 0; - } + public boolean isMandatory() { + return getMin() > 0; + } - public boolean isInlineType() { - return getType().size() == 1 && Utilities.existsInList(getType().get(0).getCode(), "Element", "BackboneElement"); - } + public boolean isInlineType() { + return getType().size() == 1 && Utilities.existsInList(getType().get(0).getCode(), "Element", "BackboneElement"); + } // end addition diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Encounter.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Encounter.java index 58dd2f75b..84ca6761a 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Encounter.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Encounter.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class Encounter extends DomainResource { case ACTIVE: return "active"; case RESERVED: return "reserved"; case COMPLETED: return "completed"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class Encounter extends DomainResource { case ACTIVE: return "http://hl7.org/fhir/encounter-location-status"; case RESERVED: return "http://hl7.org/fhir/encounter-location-status"; case COMPLETED: return "http://hl7.org/fhir/encounter-location-status"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class Encounter extends DomainResource { case ACTIVE: return "The patient is currently at this location, or was between the period specified.\r\rA system may update these records when the patient leaves the location to either reserved, or completed."; case RESERVED: return "This location is held empty for this patient."; case COMPLETED: return "The patient was at this location during the period specified.\r\rNot to be used when the patient is currently at the location."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class Encounter extends DomainResource { case ACTIVE: return "Active"; case RESERVED: return "Reserved"; case COMPLETED: return "Completed"; - case NULL: return null; default: return "?"; } } @@ -245,7 +241,6 @@ public class Encounter extends DomainResource { case CANCELLED: return "cancelled"; case ENTEREDINERROR: return "entered-in-error"; case UNKNOWN: return "unknown"; - case NULL: return null; default: return "?"; } } @@ -258,7 +253,6 @@ public class Encounter extends DomainResource { case CANCELLED: return "http://hl7.org/fhir/encounter-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/encounter-status"; case UNKNOWN: return "http://hl7.org/fhir/encounter-status"; - case NULL: return null; default: return "?"; } } @@ -271,7 +265,6 @@ public class Encounter extends DomainResource { case CANCELLED: return "The Encounter has ended before it has begun."; case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record."; case UNKNOWN: return "The encounter status is unknown. Note that \"unknown\" is a value of last resort and every attempt should be made to provide a meaningful value other than \"unknown\"."; - case NULL: return null; default: return "?"; } } @@ -284,7 +277,6 @@ public class Encounter extends DomainResource { case CANCELLED: return "Cancelled"; case ENTEREDINERROR: return "Entered in Error"; case UNKNOWN: return "Unknown"; - case NULL: return null; default: return "?"; } } @@ -3927,6 +3919,278 @@ public class Encounter extends DomainResource { return ResourceType.Encounter; } + /** + * Search parameter: date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) + public static final String SP_DATE = "date"; + /** + * Fluent Client search parameter constant for date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Encounter:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Encounter:patient").toLocked(); + + /** + * Search parameter: type + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) +* [Composition](composition.html): Kind of composition (LOINC if possible) +* [DocumentManifest](documentmanifest.html): Kind of document set +* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) +* [Encounter](encounter.html): Specific type of encounter +* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management +
+ * Type: token
+ * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
+ *

+ */ + @SearchParamDefinition(name="type", path="AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known)\r\n* [Composition](composition.html): Kind of composition (LOINC if possible)\r\n* [DocumentManifest](documentmanifest.html): Kind of document set\r\n* [DocumentReference](documentreference.html): Kind of document (LOINC if possible)\r\n* [Encounter](encounter.html): Specific type of encounter\r\n* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management\r\n", type="token" ) + public static final String SP_TYPE = "type"; + /** + * Fluent Client search parameter constant for type + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) +* [Composition](composition.html): Kind of composition (LOINC if possible) +* [DocumentManifest](documentmanifest.html): Kind of document set +* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) +* [Encounter](encounter.html): Specific type of encounter +* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management +
+ * Type: token
+ * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); + /** * Search parameter: account *

@@ -4097,26 +4361,6 @@ public class Encounter extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam LENGTH = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_LENGTH); - /** - * Search parameter: location-period - *

- * Description: Time period during which the patient was present at the location
- * Type: date
- * Path: Encounter.location.period
- *

- */ - @SearchParamDefinition(name="location-period", path="Encounter.location.period", description="Time period during which the patient was present at the location", type="date" ) - public static final String SP_LOCATION_PERIOD = "location-period"; - /** - * Fluent Client search parameter constant for location-period - *

- * Description: Time period during which the patient was present at the location
- * Type: date
- * Path: Encounter.location.period
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam LOCATION_PERIOD = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_LOCATION_PERIOD); - /** * Search parameter: location *

@@ -4143,6 +4387,26 @@ public class Encounter extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_LOCATION = new ca.uhn.fhir.model.api.Include("Encounter:location").toLocked(); + /** + * Search parameter: location-period + *

+ * Description: Time period during which the patient was present at the location
+ * Type: date
+ * Path: Encounter.location.period
+ *

+ */ + @SearchParamDefinition(name="location-period", path="Encounter.location.period", description="Time period during which the patient was present at the location", type="date" ) + public static final String SP_LOCATION_PERIOD = "location-period"; + /** + * Fluent Client search parameter constant for location-period + *

+ * Description: Time period during which the patient was present at the location
+ * Type: date
+ * Path: Encounter.location.period
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam LOCATION_PERIOD = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_LOCATION_PERIOD); + /** * Search parameter: part-of *

@@ -4169,26 +4433,6 @@ public class Encounter extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_PART_OF = new ca.uhn.fhir.model.api.Include("Encounter:part-of").toLocked(); - /** - * Search parameter: participant-type - *

- * Description: Role of participant in encounter
- * Type: token
- * Path: Encounter.participant.type
- *

- */ - @SearchParamDefinition(name="participant-type", path="Encounter.participant.type", description="Role of participant in encounter", type="token" ) - public static final String SP_PARTICIPANT_TYPE = "participant-type"; - /** - * Fluent Client search parameter constant for participant-type - *

- * Description: Role of participant in encounter
- * Type: token
- * Path: Encounter.participant.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam PARTICIPANT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PARTICIPANT_TYPE); - /** * Search parameter: participant *

@@ -4215,6 +4459,26 @@ public class Encounter extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_PARTICIPANT = new ca.uhn.fhir.model.api.Include("Encounter:participant").toLocked(); + /** + * Search parameter: participant-type + *

+ * Description: Role of participant in encounter
+ * Type: token
+ * Path: Encounter.participant.type
+ *

+ */ + @SearchParamDefinition(name="participant-type", path="Encounter.participant.type", description="Role of participant in encounter", type="token" ) + public static final String SP_PARTICIPANT_TYPE = "participant-type"; + /** + * Fluent Client search parameter constant for participant-type + *

+ * Description: Role of participant in encounter
+ * Type: token
+ * Path: Encounter.participant.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam PARTICIPANT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PARTICIPANT_TYPE); + /** * Search parameter: practitioner *

@@ -4223,7 +4487,7 @@ public class Encounter extends DomainResource { * Path: Encounter.participant.individual.where(resolve() is Practitioner)
*

*/ - @SearchParamDefinition(name="practitioner", path="Encounter.participant.individual.where(resolve() is Practitioner)", description="Persons involved in the encounter other than the patient", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Practitioner.class } ) + @SearchParamDefinition(name="practitioner", path="Encounter.participant.individual.where(resolve() is Practitioner)", description="Persons involved in the encounter other than the patient", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) public static final String SP_PRACTITIONER = "practitioner"; /** * Fluent Client search parameter constant for practitioner @@ -4353,26 +4617,6 @@ public class Encounter extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); - /** - * Search parameter: subject-status - *

- * Description: The current status of the subject in relation to the Encounter
- * Type: token
- * Path: Encounter.subjectStatus
- *

- */ - @SearchParamDefinition(name="subject-status", path="Encounter.subjectStatus", description="The current status of the subject in relation to the Encounter", type="token" ) - public static final String SP_SUBJECT_STATUS = "subject-status"; - /** - * Fluent Client search parameter constant for subject-status - *

- * Description: The current status of the subject in relation to the Encounter
- * Type: token
- * Path: Encounter.subjectStatus
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUBJECT_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SUBJECT_STATUS); - /** * Search parameter: subject *

@@ -4400,276 +4644,24 @@ public class Encounter extends DomainResource { public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("Encounter:subject").toLocked(); /** - * Search parameter: date + * Search parameter: subject-status *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) - public static final String SP_DATE = "date"; - /** - * Fluent Client search parameter constant for date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
+ * Description: The current status of the subject in relation to the Encounter
* Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ * Path: Encounter.subjectStatus
*

*/ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name="subject-status", path="Encounter.subjectStatus", description="The current status of the subject in relation to the Encounter", type="token" ) + public static final String SP_SUBJECT_STATUS = "subject-status"; /** - * Fluent Client search parameter constant for identifier + * Fluent Client search parameter constant for subject-status *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
+ * Description: The current status of the subject in relation to the Encounter
* Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ * Path: Encounter.subjectStatus
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Encounter:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Encounter:patient").toLocked(); - - /** - * Search parameter: type - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) -* [Composition](composition.html): Kind of composition (LOINC if possible) -* [DocumentManifest](documentmanifest.html): Kind of document set -* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) -* [Encounter](encounter.html): Specific type of encounter -* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management -
- * Type: token
- * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
- *

- */ - @SearchParamDefinition(name="type", path="AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known)\r\n* [Composition](composition.html): Kind of composition (LOINC if possible)\r\n* [DocumentManifest](documentmanifest.html): Kind of document set\r\n* [DocumentReference](documentreference.html): Kind of document (LOINC if possible)\r\n* [Encounter](encounter.html): Specific type of encounter\r\n* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management\r\n", type="token" ) - public static final String SP_TYPE = "type"; - /** - * Fluent Client search parameter constant for type - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) -* [Composition](composition.html): Kind of composition (LOINC if possible) -* [DocumentManifest](documentmanifest.html): Kind of document set -* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) -* [Encounter](encounter.html): Specific type of encounter -* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management -
- * Type: token
- * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUBJECT_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SUBJECT_STATUS); } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Endpoint.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Endpoint.java index 70cef5fe8..4a52bf24b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Endpoint.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Endpoint.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -110,7 +110,6 @@ public class Endpoint extends DomainResource { case OFF: return "off"; case ENTEREDINERROR: return "entered-in-error"; case TEST: return "test"; - case NULL: return null; default: return "?"; } } @@ -122,7 +121,6 @@ public class Endpoint extends DomainResource { case OFF: return "http://hl7.org/fhir/endpoint-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/endpoint-status"; case TEST: return "http://hl7.org/fhir/endpoint-status"; - case NULL: return null; default: return "?"; } } @@ -134,7 +132,6 @@ public class Endpoint extends DomainResource { case OFF: return "This endpoint is no longer to be used."; case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record."; case TEST: return "This endpoint is not intended for production usage."; - case NULL: return null; default: return "?"; } } @@ -146,7 +143,6 @@ public class Endpoint extends DomainResource { case OFF: return "Off"; case ENTEREDINERROR: return "Entered in error"; case TEST: return "Test"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentRequest.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentRequest.java index 46a17983b..4c581aeed 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentRequest.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentRequest.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentResponse.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentResponse.java index 1e306b1ae..7e5f564d8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentResponse.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EnrollmentResponse.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -53,6 +53,130 @@ import ca.uhn.fhir.model.api.annotation.Block; @ResourceDef(name="EnrollmentResponse", profile="http://hl7.org/fhir/StructureDefinition/EnrollmentResponse") public class EnrollmentResponse extends DomainResource { + public enum EnrollmentOutcome { + /** + * The Claim/Pre-authorization/Pre-determination has been received but processing has not begun. + */ + QUEUED, + /** + * The processing has completed without errors + */ + COMPLETE, + /** + * One or more errors have been detected in the Claim + */ + ERROR, + /** + * No errors have been detected in the Claim and some of the adjudication has been performed. + */ + PARTIAL, + /** + * added to help the parsers with the generic types + */ + NULL; + public static EnrollmentOutcome fromCode(String codeString) throws FHIRException { + if (codeString == null || "".equals(codeString)) + return null; + if ("queued".equals(codeString)) + return QUEUED; + if ("complete".equals(codeString)) + return COMPLETE; + if ("error".equals(codeString)) + return ERROR; + if ("partial".equals(codeString)) + return PARTIAL; + if (Configuration.isAcceptInvalidEnums()) + return null; + else + throw new FHIRException("Unknown EnrollmentOutcome code '"+codeString+"'"); + } + public String toCode() { + switch (this) { + case QUEUED: return "queued"; + case COMPLETE: return "complete"; + case ERROR: return "error"; + case PARTIAL: return "partial"; + default: return "?"; + } + } + public String getSystem() { + switch (this) { + case QUEUED: return "http://hl7.org/fhir/enrollment-outcome"; + case COMPLETE: return "http://hl7.org/fhir/enrollment-outcome"; + case ERROR: return "http://hl7.org/fhir/enrollment-outcome"; + case PARTIAL: return "http://hl7.org/fhir/enrollment-outcome"; + default: return "?"; + } + } + public String getDefinition() { + switch (this) { + case QUEUED: return "The Claim/Pre-authorization/Pre-determination has been received but processing has not begun."; + case COMPLETE: return "The processing has completed without errors"; + case ERROR: return "One or more errors have been detected in the Claim"; + case PARTIAL: return "No errors have been detected in the Claim and some of the adjudication has been performed."; + default: return "?"; + } + } + public String getDisplay() { + switch (this) { + case QUEUED: return "Queued"; + case COMPLETE: return "Processing Complete"; + case ERROR: return "Error"; + case PARTIAL: return "Partial Processing"; + default: return "?"; + } + } + } + + public static class EnrollmentOutcomeEnumFactory implements EnumFactory { + public EnrollmentOutcome fromCode(String codeString) throws IllegalArgumentException { + if (codeString == null || "".equals(codeString)) + if (codeString == null || "".equals(codeString)) + return null; + if ("queued".equals(codeString)) + return EnrollmentOutcome.QUEUED; + if ("complete".equals(codeString)) + return EnrollmentOutcome.COMPLETE; + if ("error".equals(codeString)) + return EnrollmentOutcome.ERROR; + if ("partial".equals(codeString)) + return EnrollmentOutcome.PARTIAL; + throw new IllegalArgumentException("Unknown EnrollmentOutcome code '"+codeString+"'"); + } + public Enumeration fromType(Base code) throws FHIRException { + if (code == null) + return null; + if (code.isEmpty()) + return new Enumeration(this); + String codeString = ((PrimitiveType) code).asStringValue(); + if (codeString == null || "".equals(codeString)) + return null; + if ("queued".equals(codeString)) + return new Enumeration(this, EnrollmentOutcome.QUEUED); + if ("complete".equals(codeString)) + return new Enumeration(this, EnrollmentOutcome.COMPLETE); + if ("error".equals(codeString)) + return new Enumeration(this, EnrollmentOutcome.ERROR); + if ("partial".equals(codeString)) + return new Enumeration(this, EnrollmentOutcome.PARTIAL); + throw new FHIRException("Unknown EnrollmentOutcome code '"+codeString+"'"); + } + public String toCode(EnrollmentOutcome code) { + if (code == EnrollmentOutcome.QUEUED) + return "queued"; + if (code == EnrollmentOutcome.COMPLETE) + return "complete"; + if (code == EnrollmentOutcome.ERROR) + return "error"; + if (code == EnrollmentOutcome.PARTIAL) + return "partial"; + return "?"; + } + public String toSystem(EnrollmentOutcome code) { + return code.getSystem(); + } + } + /** * The Response business identifier. */ @@ -80,8 +204,8 @@ public class EnrollmentResponse extends DomainResource { */ @Child(name = "outcome", type = {CodeType.class}, order=3, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="queued | complete | error | partial", formalDefinition="Processing status: error, complete." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/remittance-outcome") - protected Enumeration outcome; + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/enrollment-outcome") + protected Enumeration outcome; /** * A description of the status of the adjudication. @@ -111,7 +235,7 @@ public class EnrollmentResponse extends DomainResource { @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." ) protected Reference requestProvider; - private static final long serialVersionUID = -1692369510L; + private static final long serialVersionUID = -1503790623L; /** * Constructor @@ -249,12 +373,12 @@ public class EnrollmentResponse extends DomainResource { /** * @return {@link #outcome} (Processing status: error, complete.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value */ - public Enumeration getOutcomeElement() { + public Enumeration getOutcomeElement() { if (this.outcome == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create EnrollmentResponse.outcome"); else if (Configuration.doAutoCreate()) - this.outcome = new Enumeration(new ClaimProcessingCodesEnumFactory()); // bb + this.outcome = new Enumeration(new EnrollmentOutcomeEnumFactory()); // bb return this.outcome; } @@ -269,7 +393,7 @@ public class EnrollmentResponse extends DomainResource { /** * @param value {@link #outcome} (Processing status: error, complete.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value */ - public EnrollmentResponse setOutcomeElement(Enumeration value) { + public EnrollmentResponse setOutcomeElement(Enumeration value) { this.outcome = value; return this; } @@ -277,19 +401,19 @@ public class EnrollmentResponse extends DomainResource { /** * @return Processing status: error, complete. */ - public ClaimProcessingCodes getOutcome() { + public EnrollmentOutcome getOutcome() { return this.outcome == null ? null : this.outcome.getValue(); } /** * @param value Processing status: error, complete. */ - public EnrollmentResponse setOutcome(ClaimProcessingCodes value) { + public EnrollmentResponse setOutcome(EnrollmentOutcome value) { if (value == null) this.outcome = null; else { if (this.outcome == null) - this.outcome = new Enumeration(new ClaimProcessingCodesEnumFactory()); + this.outcome = new Enumeration(new EnrollmentOutcomeEnumFactory()); this.outcome.setValue(value); } return this; @@ -475,7 +599,7 @@ public class EnrollmentResponse extends DomainResource { case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration case 1095692943: /*request*/ return this.request == null ? new Base[0] : new Base[] {this.request}; // Reference - case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : new Base[] {this.outcome}; // Enumeration + case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : new Base[] {this.outcome}; // Enumeration case 583380919: /*disposition*/ return this.disposition == null ? new Base[0] : new Base[] {this.disposition}; // StringType case 1028554472: /*created*/ return this.created == null ? new Base[0] : new Base[] {this.created}; // DateTimeType case 1178922291: /*organization*/ return this.organization == null ? new Base[0] : new Base[] {this.organization}; // Reference @@ -499,8 +623,8 @@ public class EnrollmentResponse extends DomainResource { this.request = TypeConvertor.castToReference(value); // Reference return value; case -1106507950: // outcome - value = new ClaimProcessingCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.outcome = (Enumeration) value; // Enumeration + value = new EnrollmentOutcomeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.outcome = (Enumeration) value; // Enumeration return value; case 583380919: // disposition this.disposition = TypeConvertor.castToString(value); // StringType @@ -529,8 +653,8 @@ public class EnrollmentResponse extends DomainResource { } else if (name.equals("request")) { this.request = TypeConvertor.castToReference(value); // Reference } else if (name.equals("outcome")) { - value = new ClaimProcessingCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.outcome = (Enumeration) value; // Enumeration + value = new EnrollmentOutcomeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.outcome = (Enumeration) value; // Enumeration } else if (name.equals("disposition")) { this.disposition = TypeConvertor.castToString(value); // StringType } else if (name.equals("created")) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java index 471d5dffb..bb1894715 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Enumerations.java @@ -29,11 +29,10 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import org.hl7.fhir.instance.model.api.*; -import org.hl7.fhir.r5.model.Enumerations.FHIRVersion; import org.hl7.fhir.exceptions.FHIRException; public class Enumerations { @@ -42,7 +41,7 @@ public class Enumerations { // ActionCardinalityBehavior: Defines behavior for an action or a group for how many times that item may be repeated.[PlanDefinition, RequestGroup] // ActionConditionKind: Defines the kinds of conditions that can appear on actions.[PlanDefinition, RequestGroup] // ActionGroupingBehavior: Defines organization behavior of a group.[PlanDefinition, RequestGroup] -// ActionParticipantType: The type of participant for the action.[ActivityDefinition, PlanDefinition] +// ActionParticipantType: The type of participant for the action.[ActivityDefinition, PlanDefinition, RequestGroup] // ActionPrecheckBehavior: Defines selection frequency behavior for an action or group.[PlanDefinition, RequestGroup] // ActionRelationshipType: Defines the types of relationships between actions.[PlanDefinition, RequestGroup] // ActionRequiredBehavior: Defines expectations around whether an action or action group is required.[PlanDefinition, RequestGroup] @@ -50,7 +49,7 @@ public class Enumerations { // AdministrativeGender: The gender of a person used for administrative purposes.[ObservationDefinition, Patient, Person, Practitioner, RelatedPerson] // BindingStrength: Indication of the degree of conformance expectations associated with a binding.[ElementDefinition, OperationDefinition] // CapabilityStatementKind: How a capability statement is intended to be used.[CapabilityStatement, CapabilityStatement2, TerminologyCapabilities] -// ClaimProcessingCodes: This value set includes Claim Processing Outcome codes.[ClaimResponse, CoverageEligibilityResponse, EnrollmentResponse, ExplanationOfBenefit, PaymentReconciliation] +// ClaimProcessingCodes: This value set includes Claim Processing Outcome codes.[ClaimResponse, ExplanationOfBenefit] // CompartmentType: Which type a compartment definition describes.[CompartmentDefinition, GraphDefinition] // CompositionStatus: The workflow/clinical status of the composition.[Composition, DocumentReference] // ConceptMapRelationship: The relationship between concepts.[ConceptMap] @@ -60,7 +59,7 @@ public class Enumerations { // DocumentRelationshipType: The type of relationship between documents.[Composition, DocumentReference] // EventStatus: Codes identifying the lifecycle stage of an event.[ClinicalImpression, Communication, NutritionIntake, Procedure] // EvidenceVariableHandling: The handling of the variable in statistical analysis for exposures or outcomes (E.g. Dichotomous, Continuous, Descriptive).[EvidenceVariable, Statistic] -// FHIRAllTypes: A list of all the concrete types defined in this version of the FHIR specification - Abstract Types, Data Types and Resource Types.[DataRequirement, OperationDefinition, ParameterDefinition] +// FHIRAllTypes: A list of all the concrete types defined in this version of the FHIR specification - Abstract Types, Data Types and Resource Types.[DataRequirement, Measure, OperationDefinition, ParameterDefinition] // FHIRVersion: All published FHIR Versions.[CapabilityStatement, CapabilityStatement2, ImplementationGuide, StructureDefinition] // FilterOperator: The kind of operation to perform as a part of a property based filter.[CodeSystem, ValueSet] // FinancialResourceStatusCodes: This value set includes Status codes.[Claim, ClaimResponse, Coverage, CoverageEligibilityRequest, CoverageEligibilityResponse, EnrollmentRequest, EnrollmentResponse, PaymentNotice, PaymentReconciliation, VisionPrescription] @@ -72,12 +71,12 @@ public class Enumerations { // ObservationStatus: Codes providing the status of an observation.[DetectedIssue, Observation, RiskAssessment] // OperationParameterUse: Whether an operation parameter is an input or an output parameter.[OperationDefinition, ParameterDefinition] // ParticipationStatus: The Participation status of an appointment.[Appointment, AppointmentResponse] -// PublicationStatus: The lifecycle status of an artifact.[ActivityDefinition, CanonicalResource, CapabilityStatement, CapabilityStatement2, ChargeItemDefinition, Citation, CodeSystem, CompartmentDefinition, ConceptMap, ConditionDefinition, EventDefinition, Evidence, EvidenceReport, EvidenceVariable, ExampleScenario, GraphDefinition, ImplementationGuide, InsurancePlan, Library, Measure, MessageDefinition, NamingSystem, ObservationDefinition, OperationDefinition, PlanDefinition, Questionnaire, SearchParameter, SpecimenDefinition, StructureDefinition, StructureMap, SubscriptionTopic, TerminologyCapabilities, TestScript, ValueSet] +// PublicationStatus: The lifecycle status of an artifact.[ActivityDefinition, CanonicalResource, CapabilityStatement, CapabilityStatement2, ChargeItemDefinition, Citation, CodeSystem, CompartmentDefinition, ConceptMap, ConditionDefinition, EventDefinition, Evidence, EvidenceReport, EvidenceVariable, ExampleScenario, GraphDefinition, ImplementationGuide, InsurancePlan, Library, Measure, MessageDefinition, NamingSystem, ObservationDefinition, OperationDefinition, PlanDefinition, Questionnaire, ResearchStudy, ResearchSubject, SearchParameter, SpecimenDefinition, StructureDefinition, StructureMap, SubscriptionTopic, TerminologyCapabilities, TestScript, ValueSet] // QuantityComparator: How the Quantity should be understood and represented.[Age, Count, Distance, Duration, Quantity] -// RequestIntent: Codes indicating the degree of authority/intentionality associated with a request.[ActivityDefinition, DeviceRequest, NutritionOrder, RequestGroup, ServiceRequest] -// RequestPriority: The clinical priority of a diagnostic order.[ActivityDefinition, Communication, CommunicationRequest, DeviceRequest, MedicationRequest, PlanDefinition, RequestGroup, ServiceRequest, SupplyRequest, Task] +// RequestIntent: Codes indicating the degree of authority/intentionality associated with a request.[ActivityDefinition, CommunicationRequest, DeviceRequest, NutritionOrder, RequestGroup, ServiceRequest] +// RequestPriority: Identifies the level of importance to be assigned to actioning the request.[ActivityDefinition, Communication, CommunicationRequest, DeviceRequest, MedicationRequest, PlanDefinition, RequestGroup, ServiceRequest, SupplyRequest, Task] // RequestStatus: Codes identifying the lifecycle stage of a request.[CarePlan, CommunicationRequest, DeviceRequest, NutritionOrder, RequestGroup, ServiceRequest] -// ResourceTypeEnum: One of the resource types defined as part of this version of FHIR.[CapabilityStatement, CapabilityStatement2, CompartmentDefinition, ExampleScenario, GraphDefinition, ImplementationGuide, MessageDefinition, OperationDefinition, Questionnaire, SearchParameter, SubscriptionTopic] +// ResourceTypeEnum: One of the resource types defined as part of this version of FHIR.[CapabilityStatement, CapabilityStatement2, CompartmentDefinition, ExampleScenario, GraphDefinition, ImplementationGuide, MessageDefinition, OperationDefinition, Questionnaire, SearchParameter] // RestfulCapabilityMode: The mode of a RESTful capability statement.[CapabilityStatement, CapabilityStatement2] // SearchParamType: Data types allowed to be used for search parameters.[CapabilityStatement, CapabilityStatement2, OperationDefinition, SearchParameter] // SubscriptionSearchModifier: FHIR search modifiers allowed for use in Subscriptions and SubscriptionTopics.[Subscription, SubscriptionTopic] @@ -397,6 +396,30 @@ public class Enumerations { } public enum ActionParticipantType { + /** + * The participant is a care team caring for the patient under evaluation. + */ + CARETEAM, + /** + * The participant is a system or device used in the care of the patient. + */ + DEVICE, + /** + * The participant is a group of participants involved in the care of the patient. + */ + GROUP, + /** + * The participant is an institution that can provide the given healthcare service used in the care of the patient. + */ + HEALTHCARESERVICE, + /** + * The participant is a location involved in the care of the patient. + */ + LOCATION, + /** + * The participant is an organization involved in the care of the patient. + */ + ORGANIZATION, /** * The participant is the patient under evaluation. */ @@ -405,14 +428,14 @@ public class Enumerations { * The participant is a practitioner involved in the patient's care. */ PRACTITIONER, + /** + * The participant is a particular practitioner role involved in the patient's care. + */ + PRACTITIONERROLE, /** * The participant is a person related to the patient. */ RELATEDPERSON, - /** - * The participant is a system or device used in the care of the patient. - */ - DEVICE, /** * added to help the parsers */ @@ -420,52 +443,88 @@ public class Enumerations { public static ActionParticipantType fromCode(String codeString) throws FHIRException { if (codeString == null || "".equals(codeString)) return null; + if ("careteam".equals(codeString)) + return CARETEAM; + if ("device".equals(codeString)) + return DEVICE; + if ("group".equals(codeString)) + return GROUP; + if ("healthcareservice".equals(codeString)) + return HEALTHCARESERVICE; + if ("location".equals(codeString)) + return LOCATION; + if ("organization".equals(codeString)) + return ORGANIZATION; if ("patient".equals(codeString)) return PATIENT; if ("practitioner".equals(codeString)) return PRACTITIONER; - if ("related-person".equals(codeString)) + if ("practitionerrole".equals(codeString)) + return PRACTITIONERROLE; + if ("relatedperson".equals(codeString)) return RELATEDPERSON; - if ("device".equals(codeString)) - return DEVICE; throw new FHIRException("Unknown ActionParticipantType code '"+codeString+"'"); } public String toCode() { switch (this) { + case CARETEAM: return "careteam"; + case DEVICE: return "device"; + case GROUP: return "group"; + case HEALTHCARESERVICE: return "healthcareservice"; + case LOCATION: return "location"; + case ORGANIZATION: return "organization"; case PATIENT: return "patient"; case PRACTITIONER: return "practitioner"; - case RELATEDPERSON: return "related-person"; - case DEVICE: return "device"; + case PRACTITIONERROLE: return "practitionerrole"; + case RELATEDPERSON: return "relatedperson"; case NULL: return null; default: return "?"; } } public String getSystem() { switch (this) { + case CARETEAM: return "http://hl7.org/fhir/action-participant-type"; + case DEVICE: return "http://hl7.org/fhir/action-participant-type"; + case GROUP: return "http://hl7.org/fhir/action-participant-type"; + case HEALTHCARESERVICE: return "http://hl7.org/fhir/action-participant-type"; + case LOCATION: return "http://hl7.org/fhir/action-participant-type"; + case ORGANIZATION: return "http://hl7.org/fhir/action-participant-type"; case PATIENT: return "http://hl7.org/fhir/action-participant-type"; case PRACTITIONER: return "http://hl7.org/fhir/action-participant-type"; + case PRACTITIONERROLE: return "http://hl7.org/fhir/action-participant-type"; case RELATEDPERSON: return "http://hl7.org/fhir/action-participant-type"; - case DEVICE: return "http://hl7.org/fhir/action-participant-type"; case NULL: return null; default: return "?"; } } public String getDefinition() { switch (this) { + case CARETEAM: return "The participant is a care team caring for the patient under evaluation."; + case DEVICE: return "The participant is a system or device used in the care of the patient."; + case GROUP: return "The participant is a group of participants involved in the care of the patient."; + case HEALTHCARESERVICE: return "The participant is an institution that can provide the given healthcare service used in the care of the patient."; + case LOCATION: return "The participant is a location involved in the care of the patient."; + case ORGANIZATION: return "The participant is an organization involved in the care of the patient."; case PATIENT: return "The participant is the patient under evaluation."; case PRACTITIONER: return "The participant is a practitioner involved in the patient's care."; + case PRACTITIONERROLE: return "The participant is a particular practitioner role involved in the patient's care."; case RELATEDPERSON: return "The participant is a person related to the patient."; - case DEVICE: return "The participant is a system or device used in the care of the patient."; case NULL: return null; default: return "?"; } } public String getDisplay() { switch (this) { + case CARETEAM: return "CareTeam"; + case DEVICE: return "Device"; + case GROUP: return "Group"; + case HEALTHCARESERVICE: return "HealthcareService"; + case LOCATION: return "Location"; + case ORGANIZATION: return "Organization"; case PATIENT: return "Patient"; case PRACTITIONER: return "Practitioner"; - case RELATEDPERSON: return "Related Person"; - case DEVICE: return "Device"; + case PRACTITIONERROLE: return "PractitionerRole"; + case RELATEDPERSON: return "RelatedPerson"; case NULL: return null; default: return "?"; } @@ -477,14 +536,26 @@ public class Enumerations { if (codeString == null || "".equals(codeString)) if (codeString == null || "".equals(codeString)) return null; + if ("careteam".equals(codeString)) + return ActionParticipantType.CARETEAM; + if ("device".equals(codeString)) + return ActionParticipantType.DEVICE; + if ("group".equals(codeString)) + return ActionParticipantType.GROUP; + if ("healthcareservice".equals(codeString)) + return ActionParticipantType.HEALTHCARESERVICE; + if ("location".equals(codeString)) + return ActionParticipantType.LOCATION; + if ("organization".equals(codeString)) + return ActionParticipantType.ORGANIZATION; if ("patient".equals(codeString)) return ActionParticipantType.PATIENT; if ("practitioner".equals(codeString)) return ActionParticipantType.PRACTITIONER; - if ("related-person".equals(codeString)) + if ("practitionerrole".equals(codeString)) + return ActionParticipantType.PRACTITIONERROLE; + if ("relatedperson".equals(codeString)) return ActionParticipantType.RELATEDPERSON; - if ("device".equals(codeString)) - return ActionParticipantType.DEVICE; throw new IllegalArgumentException("Unknown ActionParticipantType code '"+codeString+"'"); } public Enumeration fromType(Base code) throws FHIRException { @@ -495,25 +566,49 @@ public class Enumerations { String codeString = ((PrimitiveType) code).asStringValue(); if (codeString == null || "".equals(codeString)) return null; + if ("careteam".equals(codeString)) + return new Enumeration(this, ActionParticipantType.CARETEAM); + if ("device".equals(codeString)) + return new Enumeration(this, ActionParticipantType.DEVICE); + if ("group".equals(codeString)) + return new Enumeration(this, ActionParticipantType.GROUP); + if ("healthcareservice".equals(codeString)) + return new Enumeration(this, ActionParticipantType.HEALTHCARESERVICE); + if ("location".equals(codeString)) + return new Enumeration(this, ActionParticipantType.LOCATION); + if ("organization".equals(codeString)) + return new Enumeration(this, ActionParticipantType.ORGANIZATION); if ("patient".equals(codeString)) return new Enumeration(this, ActionParticipantType.PATIENT); if ("practitioner".equals(codeString)) return new Enumeration(this, ActionParticipantType.PRACTITIONER); - if ("related-person".equals(codeString)) + if ("practitionerrole".equals(codeString)) + return new Enumeration(this, ActionParticipantType.PRACTITIONERROLE); + if ("relatedperson".equals(codeString)) return new Enumeration(this, ActionParticipantType.RELATEDPERSON); - if ("device".equals(codeString)) - return new Enumeration(this, ActionParticipantType.DEVICE); throw new FHIRException("Unknown ActionParticipantType code '"+codeString+"'"); } public String toCode(ActionParticipantType code) { + if (code == ActionParticipantType.CARETEAM) + return "careteam"; + if (code == ActionParticipantType.DEVICE) + return "device"; + if (code == ActionParticipantType.GROUP) + return "group"; + if (code == ActionParticipantType.HEALTHCARESERVICE) + return "healthcareservice"; + if (code == ActionParticipantType.LOCATION) + return "location"; + if (code == ActionParticipantType.ORGANIZATION) + return "organization"; if (code == ActionParticipantType.PATIENT) return "patient"; if (code == ActionParticipantType.PRACTITIONER) return "practitioner"; + if (code == ActionParticipantType.PRACTITIONERROLE) + return "practitionerrole"; if (code == ActionParticipantType.RELATEDPERSON) - return "related-person"; - if (code == ActionParticipantType.DEVICE) - return "device"; + return "relatedperson"; return "?"; } public String toSystem(ActionParticipantType code) { @@ -1490,10 +1585,10 @@ public class Enumerations { } public String getSystem() { switch (this) { - case QUEUED: return "http://hl7.org/fhir/remittance-outcome"; - case COMPLETE: return "http://hl7.org/fhir/remittance-outcome"; - case ERROR: return "http://hl7.org/fhir/remittance-outcome"; - case PARTIAL: return "http://hl7.org/fhir/remittance-outcome"; + case QUEUED: return "http://hl7.org/fhir/claim-outcome"; + case COMPLETE: return "http://hl7.org/fhir/claim-outcome"; + case ERROR: return "http://hl7.org/fhir/claim-outcome"; + case PARTIAL: return "http://hl7.org/fhir/claim-outcome"; case NULL: return null; default: return "?"; } @@ -3015,6 +3110,10 @@ public class Enumerations { * A relationship of two Quantity values - expressed as a numerator and a denominator. */ RATIO, + /** + * A range of ratios expressed as a low and high numerator and a denominator. + */ + RATIORANGE, /** * A reference from one resource to another. */ @@ -3068,11 +3167,11 @@ public class Enumerations { */ CODE, /** - * A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates. + * A date or partial date (e.g. just year or year + month). There is no UTC offset. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates. */ DATE, /** - * A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates. + * A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a UTC offset SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates. */ DATETIME, /** @@ -3144,7 +3243,7 @@ public class Enumerations { */ ACTIVITYDEFINITION, /** - * A pharmaceutical product described in terms of its composition and dose form. + * A medicinal product in the final form which is suitable for administering to a patient (after any mixing of multiple components, dissolution etc. has been performed). */ ADMINISTRABLEPRODUCTDEFINITION, /** @@ -3188,6 +3287,10 @@ into another (possibly the same) biological entity. * A container for a collection of resources. */ BUNDLE, + /** + * Common Ancestor declaration for conformance and knowledge artifact resources. + */ + CANONICALRESOURCE, /** * A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation. */ @@ -3217,7 +3320,7 @@ into another (possibly the same) biological entity. */ CHARGEITEMDEFINITION, /** - * The Citation. + * The Citation Resource enables reference to any knowledge artifact for purposes of identification and attribution. The Citation Resource supports existing reference structures and developing publication practices such as versioning, expressing complex contributorship roles, and referencing computable resources. */ CITATION, /** @@ -3233,7 +3336,7 @@ into another (possibly the same) biological entity. */ CLINICALIMPRESSION, /** - * A single usage issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure. + * A single issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure. */ CLINICALUSEISSUE, /** @@ -3311,9 +3414,9 @@ into another (possibly the same) biological entity. /** * A record of a device being used by a patient where the record is the result of a report from the patient or a clinician. */ - DEVICEUSESTATEMENT, + DEVICEUSAGE, /** - * The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. + * The findings and interpretation of diagnostic tests performed on patients, groups of patients, products, substances, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. The report also includes non-clinical context such as batch analysis and stability reporting of products and substances. */ DIAGNOSTICREPORT, /** @@ -3353,11 +3456,11 @@ into another (possibly the same) biological entity. */ EVENTDEFINITION, /** - * This represents statistics, certainty, both the intended and actual population, and evidence variables. + * The Evidence Resource provides a machine-interpretable expression of an evidence concept including the evidence variables (eg population, exposures/interventions, comparators, outcomes, measured variables, confounding variables), the statistics, and the certainty of this evidence. */ EVIDENCE, /** - * The EvidenceReport. + * The EvidenceReport Resource is a specialized container for a collection of resources and codable concepts, adapted to support compositions of Evidence, EvidenceVariable, and Citation resources and related concepts. */ EVIDENCEREPORT, /** @@ -3428,6 +3531,10 @@ into another (possibly the same) biological entity. * Details of a Health Insurance product/plan provided by an organization. */ INSURANCEPLAN, + /** + * A report of inventory or stock items. + */ + INVENTORYREPORT, /** * Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose. */ @@ -3483,11 +3590,13 @@ into another (possibly the same) biological entity. /** * A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. -The primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information. +The primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information. + +The MedicationUsage resource was previously called MedicationStatement. */ MEDICATIONUSAGE, /** - * Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use). + * Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use, drug catalogs). */ MEDICINALPRODUCTDEFINITION, /** @@ -3498,6 +3607,10 @@ The primary difference between a medicationusage and a medicationadministration * The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle. */ MESSAGEHEADER, + /** + * Common Ancestor declaration for conformance and knowledge artifact resources. + */ + METADATARESOURCE, /** * Raw data describing a biological sequence. */ @@ -3571,7 +3684,7 @@ The primary difference between a medicationusage and a medicationadministration */ PERSON, /** - * This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols. + * This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical and non-clinical artifacts such as clinical decision support rules, order sets, protocols, and drug quality specifications. */ PLANDEFINITION, /** @@ -3583,7 +3696,7 @@ The primary difference between a medicationusage and a medicationadministration */ PRACTITIONERROLE, /** - * An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy. + * An action that is or was performed on or for a patient, practitioner, device, organization, or location. For example, this can be a physical intervention on a patient like an operation, or less invasive like long term services, counseling, or hypnotherapy. This can be a quality or safety inspection for a location, organization, or device. This can be an accreditation procedure on a practitioner for licensing. */ PROCEDURE, /** @@ -3599,7 +3712,7 @@ The primary difference between a medicationusage and a medicationadministration */ QUESTIONNAIRERESPONSE, /** - * The regulatory authorization of a medicinal product, device or process. + * Regulatory approval, clearance or licencing related to a regulated product, treatment, facility or activity that is cited in a guidance, regulation, rule or legislative act. An example is Market Authorization relating to a Medicinal Product. */ REGULATEDAUTHORIZATION, /** @@ -3611,7 +3724,7 @@ The primary difference between a medicationusage and a medicationadministration */ REQUESTGROUP, /** - * A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects. + * A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects or stability data about drug products or drug substances. */ RESEARCHSTUDY, /** @@ -3723,7 +3836,7 @@ The primary difference between a medicationusage and a medicationadministration */ TESTSCRIPT, /** - * A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html). + * A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [CodeSystem](codesystem.html) definitions and their use in [coded elements](terminologies.html). */ VALUESET, /** @@ -3829,6 +3942,8 @@ The primary difference between a medicationusage and a medicationadministration return RANGE; if ("Ratio".equals(codeString)) return RATIO; + if ("RatioRange".equals(codeString)) + return RATIORANGE; if ("Reference".equals(codeString)) return REFERENCE; if ("RelatedArtifact".equals(codeString)) @@ -3915,6 +4030,8 @@ The primary difference between a medicationusage and a medicationadministration return BODYSTRUCTURE; if ("Bundle".equals(codeString)) return BUNDLE; + if ("CanonicalResource".equals(codeString)) + return CANONICALRESOURCE; if ("CapabilityStatement".equals(codeString)) return CAPABILITYSTATEMENT; if ("CapabilityStatement2".equals(codeString)) @@ -3975,8 +4092,8 @@ The primary difference between a medicationusage and a medicationadministration return DEVICEMETRIC; if ("DeviceRequest".equals(codeString)) return DEVICEREQUEST; - if ("DeviceUseStatement".equals(codeString)) - return DEVICEUSESTATEMENT; + if ("DeviceUsage".equals(codeString)) + return DEVICEUSAGE; if ("DiagnosticReport".equals(codeString)) return DIAGNOSTICREPORT; if ("DocumentManifest".equals(codeString)) @@ -4035,6 +4152,8 @@ The primary difference between a medicationusage and a medicationadministration return INGREDIENT; if ("InsurancePlan".equals(codeString)) return INSURANCEPLAN; + if ("InventoryReport".equals(codeString)) + return INVENTORYREPORT; if ("Invoice".equals(codeString)) return INVOICE; if ("Library".equals(codeString)) @@ -4069,6 +4188,8 @@ The primary difference between a medicationusage and a medicationadministration return MESSAGEDEFINITION; if ("MessageHeader".equals(codeString)) return MESSAGEHEADER; + if ("MetadataResource".equals(codeString)) + return METADATARESOURCE; if ("MolecularSequence".equals(codeString)) return MOLECULARSEQUENCE; if ("NamingSystem".equals(codeString)) @@ -4235,6 +4356,7 @@ The primary difference between a medicationusage and a medicationadministration case QUANTITY: return "Quantity"; case RANGE: return "Range"; case RATIO: return "Ratio"; + case RATIORANGE: return "RatioRange"; case REFERENCE: return "Reference"; case RELATEDARTIFACT: return "RelatedArtifact"; case SAMPLEDDATA: return "SampledData"; @@ -4278,6 +4400,7 @@ The primary difference between a medicationusage and a medicationadministration case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct"; case BODYSTRUCTURE: return "BodyStructure"; case BUNDLE: return "Bundle"; + case CANONICALRESOURCE: return "CanonicalResource"; case CAPABILITYSTATEMENT: return "CapabilityStatement"; case CAPABILITYSTATEMENT2: return "CapabilityStatement2"; case CAREPLAN: return "CarePlan"; @@ -4308,7 +4431,7 @@ The primary difference between a medicationusage and a medicationadministration case DEVICEDEFINITION: return "DeviceDefinition"; case DEVICEMETRIC: return "DeviceMetric"; case DEVICEREQUEST: return "DeviceRequest"; - case DEVICEUSESTATEMENT: return "DeviceUseStatement"; + case DEVICEUSAGE: return "DeviceUsage"; case DIAGNOSTICREPORT: return "DiagnosticReport"; case DOCUMENTMANIFEST: return "DocumentManifest"; case DOCUMENTREFERENCE: return "DocumentReference"; @@ -4338,6 +4461,7 @@ The primary difference between a medicationusage and a medicationadministration case IMPLEMENTATIONGUIDE: return "ImplementationGuide"; case INGREDIENT: return "Ingredient"; case INSURANCEPLAN: return "InsurancePlan"; + case INVENTORYREPORT: return "InventoryReport"; case INVOICE: return "Invoice"; case LIBRARY: return "Library"; case LINKAGE: return "Linkage"; @@ -4355,6 +4479,7 @@ The primary difference between a medicationusage and a medicationadministration case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition"; case MESSAGEDEFINITION: return "MessageDefinition"; case MESSAGEHEADER: return "MessageHeader"; + case METADATARESOURCE: return "MetadataResource"; case MOLECULARSEQUENCE: return "MolecularSequence"; case NAMINGSYSTEM: return "NamingSystem"; case NUTRITIONINTAKE: return "NutritionIntake"; @@ -4462,6 +4587,7 @@ The primary difference between a medicationusage and a medicationadministration case QUANTITY: return "http://hl7.org/fhir/data-types"; case RANGE: return "http://hl7.org/fhir/data-types"; case RATIO: return "http://hl7.org/fhir/data-types"; + case RATIORANGE: return "http://hl7.org/fhir/data-types"; case REFERENCE: return "http://hl7.org/fhir/data-types"; case RELATEDARTIFACT: return "http://hl7.org/fhir/data-types"; case SAMPLEDDATA: return "http://hl7.org/fhir/data-types"; @@ -4505,6 +4631,7 @@ The primary difference between a medicationusage and a medicationadministration case BIOLOGICALLYDERIVEDPRODUCT: return "http://hl7.org/fhir/resource-types"; case BODYSTRUCTURE: return "http://hl7.org/fhir/resource-types"; case BUNDLE: return "http://hl7.org/fhir/resource-types"; + case CANONICALRESOURCE: return "http://hl7.org/fhir/resource-types"; case CAPABILITYSTATEMENT: return "http://hl7.org/fhir/resource-types"; case CAPABILITYSTATEMENT2: return "http://hl7.org/fhir/resource-types"; case CAREPLAN: return "http://hl7.org/fhir/resource-types"; @@ -4535,7 +4662,7 @@ The primary difference between a medicationusage and a medicationadministration case DEVICEDEFINITION: return "http://hl7.org/fhir/resource-types"; case DEVICEMETRIC: return "http://hl7.org/fhir/resource-types"; case DEVICEREQUEST: return "http://hl7.org/fhir/resource-types"; - case DEVICEUSESTATEMENT: return "http://hl7.org/fhir/resource-types"; + case DEVICEUSAGE: return "http://hl7.org/fhir/resource-types"; case DIAGNOSTICREPORT: return "http://hl7.org/fhir/resource-types"; case DOCUMENTMANIFEST: return "http://hl7.org/fhir/resource-types"; case DOCUMENTREFERENCE: return "http://hl7.org/fhir/resource-types"; @@ -4565,6 +4692,7 @@ The primary difference between a medicationusage and a medicationadministration case IMPLEMENTATIONGUIDE: return "http://hl7.org/fhir/resource-types"; case INGREDIENT: return "http://hl7.org/fhir/resource-types"; case INSURANCEPLAN: return "http://hl7.org/fhir/resource-types"; + case INVENTORYREPORT: return "http://hl7.org/fhir/resource-types"; case INVOICE: return "http://hl7.org/fhir/resource-types"; case LIBRARY: return "http://hl7.org/fhir/resource-types"; case LINKAGE: return "http://hl7.org/fhir/resource-types"; @@ -4582,6 +4710,7 @@ The primary difference between a medicationusage and a medicationadministration case MEDICINALPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types"; case MESSAGEDEFINITION: return "http://hl7.org/fhir/resource-types"; case MESSAGEHEADER: return "http://hl7.org/fhir/resource-types"; + case METADATARESOURCE: return "http://hl7.org/fhir/resource-types"; case MOLECULARSEQUENCE: return "http://hl7.org/fhir/resource-types"; case NAMINGSYSTEM: return "http://hl7.org/fhir/resource-types"; case NUTRITIONINTAKE: return "http://hl7.org/fhir/resource-types"; @@ -4689,6 +4818,7 @@ The primary difference between a medicationusage and a medicationadministration case QUANTITY: return "A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies."; case RANGE: return "A set of ordered Quantities defined by a low and high limit."; case RATIO: return "A relationship of two Quantity values - expressed as a numerator and a denominator."; + case RATIORANGE: return "A range of ratios expressed as a low and high numerator and a denominator."; case REFERENCE: return "A reference from one resource to another."; case RELATEDARTIFACT: return "Related artifacts such as additional documentation, justification, or bibliographic references."; case SAMPLEDDATA: return "A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data."; @@ -4702,8 +4832,8 @@ The primary difference between a medicationusage and a medicationadministration case BOOLEAN: return "Value of \"true\" or \"false\""; case CANONICAL: return "A URI that is a reference to a canonical URL on a FHIR resource"; case CODE: return "A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents"; - case DATE: return "A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates."; - case DATETIME: return "A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates."; + case DATE: return "A date or partial date (e.g. just year or year + month). There is no UTC offset. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates."; + case DATETIME: return "A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a UTC offset SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates."; case DECIMAL: return "A rational number with implicit precision"; case ID: return "Any combination of letters, numerals, \"-\" and \".\", with a length limit of 64 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Ids are case-insensitive."; case INSTANT: return "An instant in time - known at least to the second"; @@ -4721,7 +4851,7 @@ The primary difference between a medicationusage and a medicationadministration case XHTML: return "XHTML format, as defined by W3C, but restricted usage (mainly, no active content)"; case ACCOUNT: return "A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centers, etc."; case ACTIVITYDEFINITION: return "This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context."; - case ADMINISTRABLEPRODUCTDEFINITION: return "A pharmaceutical product described in terms of its composition and dose form."; + case ADMINISTRABLEPRODUCTDEFINITION: return "A medicinal product in the final form which is suitable for administering to a patient (after any mixing of multiple components, dissolution etc. has been performed)."; case ADVERSEEVENT: return "An event (i.e. any change to current patient status) that may be related to unintended effects on a patient or research subject. The unintended effects may require additional monitoring, treatment or hospitalization or may result in death. The AdverseEvent resource also extends to potential or avoided events that could have had such effects."; case ALLERGYINTOLERANCE: return "Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance."; case APPOINTMENT: return "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)."; @@ -4732,6 +4862,7 @@ The primary difference between a medicationusage and a medicationadministration case BIOLOGICALLYDERIVEDPRODUCT: return "A material substance originating from a biological entity intended to be transplanted or infused\ninto another (possibly the same) biological entity."; case BODYSTRUCTURE: return "Record details about an anatomical structure. This resource may be used when a coded concept does not provide the necessary detail needed for the use case."; case BUNDLE: return "A container for a collection of resources."; + case CANONICALRESOURCE: return "Common Ancestor declaration for conformance and knowledge artifact resources."; case CAPABILITYSTATEMENT: return "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; case CAPABILITYSTATEMENT2: return "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; case CAREPLAN: return "Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions."; @@ -4739,11 +4870,11 @@ The primary difference between a medicationusage and a medicationadministration case CATALOGENTRY: return "Catalog entries are wrappers that contextualize items included in a catalog."; case CHARGEITEM: return "The resource ChargeItem describes the provision of healthcare provider products for a certain patient, therefore referring not only to the product, but containing in addition details of the provision, like date, time, amounts and participating organizations and persons. Main Usage of the ChargeItem is to enable the billing process and internal cost allocation."; case CHARGEITEMDEFINITION: return "The ChargeItemDefinition resource provides the properties that apply to the (billing) codes necessary to calculate costs and prices. The properties may differ largely depending on type and realm, therefore this resource gives only a rough structure and requires profiling for each type of billing code system."; - case CITATION: return "The Citation."; + case CITATION: return "The Citation Resource enables reference to any knowledge artifact for purposes of identification and attribution. The Citation Resource supports existing reference structures and developing publication practices such as versioning, expressing complex contributorship roles, and referencing computable resources."; case CLAIM: return "A provider issued list of professional services and products which have been provided, or are to be provided, to a patient which is sent to an insurer for reimbursement."; case CLAIMRESPONSE: return "This resource provides the adjudication details from the processing of a Claim resource."; case CLINICALIMPRESSION: return "A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. This resource is called \"ClinicalImpression\" rather than \"ClinicalAssessment\" to avoid confusion with the recording of assessment tools such as Apgar score."; - case CLINICALUSEISSUE: return "A single usage issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure."; + case CLINICALUSEISSUE: return "A single issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure."; case CODESYSTEM: return "The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content."; case COMMUNICATION: return "A clinical or business level record of information being transmitted or shared; e.g. an alert that was sent to a responsible provider, a public health agency communication to a provider/reporter in response to a case report for a reportable condition."; case COMMUNICATIONREQUEST: return "A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition."; @@ -4762,8 +4893,8 @@ The primary difference between a medicationusage and a medicationadministration case DEVICEDEFINITION: return "The characteristics, operational status and capabilities of a medical-related component of a medical device."; case DEVICEMETRIC: return "Describes a measurement, calculation or setting capability of a medical device."; case DEVICEREQUEST: return "Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker."; - case DEVICEUSESTATEMENT: return "A record of a device being used by a patient where the record is the result of a report from the patient or a clinician."; - case DIAGNOSTICREPORT: return "The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports."; + case DEVICEUSAGE: return "A record of a device being used by a patient where the record is the result of a report from the patient or a clinician."; + case DIAGNOSTICREPORT: return "The findings and interpretation of diagnostic tests performed on patients, groups of patients, products, substances, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. The report also includes non-clinical context such as batch analysis and stability reporting of products and substances."; case DOCUMENTMANIFEST: return "A collection of documents compiled for a purpose together with metadata that applies to the collection."; case DOCUMENTREFERENCE: return "A reference to a document of any kind for any purpose. While the term “document” implies a more narrow focus, for this resource this \"document\" encompasses *any* serialized object with a mime-type, it includes formal patient-centric documents (CDA), clinical notes, scanned paper, non-patient specific documents like policy text, as well as a photo, video, or audio recording acquired or used in healthcare. The DocumentReference resource provides metadata about the document so that the document can be discovered and managed. The actual content may be inline base64 encoded data or provided by direct reference."; case DOMAINRESOURCE: return "A resource that includes narrative, extensions, and contained resources."; @@ -4773,8 +4904,8 @@ The primary difference between a medicationusage and a medicationadministration case ENROLLMENTRESPONSE: return "This resource provides enrollment and plan details from the processing of an EnrollmentRequest resource."; case EPISODEOFCARE: return "An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time."; case EVENTDEFINITION: return "The EventDefinition resource provides a reusable description of when a particular event can occur."; - case EVIDENCE: return "This represents statistics, certainty, both the intended and actual population, and evidence variables."; - case EVIDENCEREPORT: return "The EvidenceReport."; + case EVIDENCE: return "The Evidence Resource provides a machine-interpretable expression of an evidence concept including the evidence variables (eg population, exposures/interventions, comparators, outcomes, measured variables, confounding variables), the statistics, and the certainty of this evidence."; + case EVIDENCEREPORT: return "The EvidenceReport Resource is a specialized container for a collection of resources and codable concepts, adapted to support compositions of Evidence, EvidenceVariable, and Citation resources and related concepts."; case EVIDENCEVARIABLE: return "The EvidenceVariable resource describes an element that knowledge (Evidence) is about."; case EXAMPLESCENARIO: return "Example of workflow instance."; case EXPLANATIONOFBENEFIT: return "This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided."; @@ -4792,6 +4923,7 @@ The primary difference between a medicationusage and a medicationadministration case IMPLEMENTATIONGUIDE: return "A set of rules of how a particular interoperability or standards problem is solved - typically through the use of FHIR resources. This resource is used to gather all the parts of an implementation guide into a logical whole and to publish a computable definition of all the parts."; case INGREDIENT: return "An ingredient of a manufactured item or pharmaceutical product."; case INSURANCEPLAN: return "Details of a Health Insurance product/plan provided by an organization."; + case INVENTORYREPORT: return "A report of inventory or stock items."; case INVOICE: return "Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose."; case LIBRARY: return "The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets."; case LINKAGE: return "Identifies two or more records (resource instances) that refer to the same real-world \"occurrence\"."; @@ -4805,10 +4937,11 @@ The primary difference between a medicationusage and a medicationadministration case MEDICATIONDISPENSE: return "Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order."; case MEDICATIONKNOWLEDGE: return "Information about a medication that is used to support knowledge."; case MEDICATIONREQUEST: return "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns."; - case MEDICATIONUSAGE: return "A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information."; - case MEDICINALPRODUCTDEFINITION: return "Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use)."; + case MEDICATIONUSAGE: return "A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information.\n\nThe MedicationUsage resource was previously called MedicationStatement."; + case MEDICINALPRODUCTDEFINITION: return "Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use, drug catalogs)."; case MESSAGEDEFINITION: return "Defines the characteristics of a message that can be shared between systems, including the type of event that initiates the message, the content to be transmitted and what response(s), if any, are permitted."; case MESSAGEHEADER: return "The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle."; + case METADATARESOURCE: return "Common Ancestor declaration for conformance and knowledge artifact resources."; case MOLECULARSEQUENCE: return "Raw data describing a biological sequence."; case NAMINGSYSTEM: return "A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a \"System\" used within the Identifier and Coding data types."; case NUTRITIONINTAKE: return "A record of food or fluid that is being consumed by a patient. A NutritionIntake may indicate that the patient may be consuming the food or fluid now or has consumed the food or fluid in the past. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay or through an app that tracks food or fluids consumed. The consumption information may come from sources such as the patient's memory, from a nutrition label, or from a clinician documenting observed intake."; @@ -4827,17 +4960,17 @@ The primary difference between a medicationusage and a medicationadministration case PAYMENTRECONCILIATION: return "This resource provides the details including amount of a payment and allocates the payment items being paid."; case PERMISSION: return "Permission."; case PERSON: return "Demographics and administrative information about a person independent of a specific health-related context."; - case PLANDEFINITION: return "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols."; + case PLANDEFINITION: return "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical and non-clinical artifacts such as clinical decision support rules, order sets, protocols, and drug quality specifications."; case PRACTITIONER: return "A person who is directly or indirectly involved in the provisioning of healthcare."; case PRACTITIONERROLE: return "A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time."; - case PROCEDURE: return "An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy."; + case PROCEDURE: return "An action that is or was performed on or for a patient, practitioner, device, organization, or location. For example, this can be a physical intervention on a patient like an operation, or less invasive like long term services, counseling, or hypnotherapy. This can be a quality or safety inspection for a location, organization, or device. This can be an accreditation procedure on a practitioner for licensing."; case PROVENANCE: return "Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies."; case QUESTIONNAIRE: return "A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection."; case QUESTIONNAIRERESPONSE: return "A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to."; - case REGULATEDAUTHORIZATION: return "The regulatory authorization of a medicinal product, device or process."; + case REGULATEDAUTHORIZATION: return "Regulatory approval, clearance or licencing related to a regulated product, treatment, facility or activity that is cited in a guidance, regulation, rule or legislative act. An example is Market Authorization relating to a Medicinal Product."; case RELATEDPERSON: return "Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process."; case REQUESTGROUP: return "A group of related requests that can be used to capture intended activities that have inter-dependencies such as \"give this medication after that one\"."; - case RESEARCHSTUDY: return "A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects."; + case RESEARCHSTUDY: return "A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects or stability data about drug products or drug substances."; case RESEARCHSUBJECT: return "A physical entity which is the primary unit of operational and/or administrative interest in a study."; case RESOURCE: return "This is the base resource type for everything."; case RISKASSESSMENT: return "An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome."; @@ -4865,7 +4998,7 @@ The primary difference between a medicationusage and a medicationadministration case TERMINOLOGYCAPABILITIES: return "A TerminologyCapabilities resource documents a set of capabilities (behaviors) of a FHIR Terminology Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; case TESTREPORT: return "A summary of information based on the results of executing a TestScript."; case TESTSCRIPT: return "A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification."; - case VALUESET: return "A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html)."; + case VALUESET: return "A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [CodeSystem](codesystem.html) definitions and their use in [coded elements](terminologies.html)."; case VERIFICATIONRESULT: return "Describes validation requirements, source(s), status and dates for one or more elements."; case VISIONPRESCRIPTION: return "An authorization for the provision of glasses and/or contact lenses to a patient."; case TYPE: return "A place holder that means any kind of data type"; @@ -4916,6 +5049,7 @@ The primary difference between a medicationusage and a medicationadministration case QUANTITY: return "Quantity"; case RANGE: return "Range"; case RATIO: return "Ratio"; + case RATIORANGE: return "RatioRange"; case REFERENCE: return "Reference"; case RELATEDARTIFACT: return "RelatedArtifact"; case SAMPLEDDATA: return "SampledData"; @@ -4959,6 +5093,7 @@ The primary difference between a medicationusage and a medicationadministration case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct"; case BODYSTRUCTURE: return "BodyStructure"; case BUNDLE: return "Bundle"; + case CANONICALRESOURCE: return "CanonicalResource"; case CAPABILITYSTATEMENT: return "CapabilityStatement"; case CAPABILITYSTATEMENT2: return "CapabilityStatement2"; case CAREPLAN: return "CarePlan"; @@ -4989,7 +5124,7 @@ The primary difference between a medicationusage and a medicationadministration case DEVICEDEFINITION: return "DeviceDefinition"; case DEVICEMETRIC: return "DeviceMetric"; case DEVICEREQUEST: return "DeviceRequest"; - case DEVICEUSESTATEMENT: return "DeviceUseStatement"; + case DEVICEUSAGE: return "DeviceUsage"; case DIAGNOSTICREPORT: return "DiagnosticReport"; case DOCUMENTMANIFEST: return "DocumentManifest"; case DOCUMENTREFERENCE: return "DocumentReference"; @@ -5019,6 +5154,7 @@ The primary difference between a medicationusage and a medicationadministration case IMPLEMENTATIONGUIDE: return "ImplementationGuide"; case INGREDIENT: return "Ingredient"; case INSURANCEPLAN: return "InsurancePlan"; + case INVENTORYREPORT: return "InventoryReport"; case INVOICE: return "Invoice"; case LIBRARY: return "Library"; case LINKAGE: return "Linkage"; @@ -5036,6 +5172,7 @@ The primary difference between a medicationusage and a medicationadministration case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition"; case MESSAGEDEFINITION: return "MessageDefinition"; case MESSAGEHEADER: return "MessageHeader"; + case METADATARESOURCE: return "MetadataResource"; case MOLECULARSEQUENCE: return "MolecularSequence"; case NAMINGSYSTEM: return "NamingSystem"; case NUTRITIONINTAKE: return "NutritionIntake"; @@ -5188,6 +5325,8 @@ The primary difference between a medicationusage and a medicationadministration return FHIRAllTypes.RANGE; if ("Ratio".equals(codeString)) return FHIRAllTypes.RATIO; + if ("RatioRange".equals(codeString)) + return FHIRAllTypes.RATIORANGE; if ("Reference".equals(codeString)) return FHIRAllTypes.REFERENCE; if ("RelatedArtifact".equals(codeString)) @@ -5274,6 +5413,8 @@ The primary difference between a medicationusage and a medicationadministration return FHIRAllTypes.BODYSTRUCTURE; if ("Bundle".equals(codeString)) return FHIRAllTypes.BUNDLE; + if ("CanonicalResource".equals(codeString)) + return FHIRAllTypes.CANONICALRESOURCE; if ("CapabilityStatement".equals(codeString)) return FHIRAllTypes.CAPABILITYSTATEMENT; if ("CapabilityStatement2".equals(codeString)) @@ -5334,8 +5475,8 @@ The primary difference between a medicationusage and a medicationadministration return FHIRAllTypes.DEVICEMETRIC; if ("DeviceRequest".equals(codeString)) return FHIRAllTypes.DEVICEREQUEST; - if ("DeviceUseStatement".equals(codeString)) - return FHIRAllTypes.DEVICEUSESTATEMENT; + if ("DeviceUsage".equals(codeString)) + return FHIRAllTypes.DEVICEUSAGE; if ("DiagnosticReport".equals(codeString)) return FHIRAllTypes.DIAGNOSTICREPORT; if ("DocumentManifest".equals(codeString)) @@ -5394,6 +5535,8 @@ The primary difference between a medicationusage and a medicationadministration return FHIRAllTypes.INGREDIENT; if ("InsurancePlan".equals(codeString)) return FHIRAllTypes.INSURANCEPLAN; + if ("InventoryReport".equals(codeString)) + return FHIRAllTypes.INVENTORYREPORT; if ("Invoice".equals(codeString)) return FHIRAllTypes.INVOICE; if ("Library".equals(codeString)) @@ -5428,6 +5571,8 @@ The primary difference between a medicationusage and a medicationadministration return FHIRAllTypes.MESSAGEDEFINITION; if ("MessageHeader".equals(codeString)) return FHIRAllTypes.MESSAGEHEADER; + if ("MetadataResource".equals(codeString)) + return FHIRAllTypes.METADATARESOURCE; if ("MolecularSequence".equals(codeString)) return FHIRAllTypes.MOLECULARSEQUENCE; if ("NamingSystem".equals(codeString)) @@ -5640,6 +5785,8 @@ The primary difference between a medicationusage and a medicationadministration return new Enumeration(this, FHIRAllTypes.RANGE); if ("Ratio".equals(codeString)) return new Enumeration(this, FHIRAllTypes.RATIO); + if ("RatioRange".equals(codeString)) + return new Enumeration(this, FHIRAllTypes.RATIORANGE); if ("Reference".equals(codeString)) return new Enumeration(this, FHIRAllTypes.REFERENCE); if ("RelatedArtifact".equals(codeString)) @@ -5726,6 +5873,8 @@ The primary difference between a medicationusage and a medicationadministration return new Enumeration(this, FHIRAllTypes.BODYSTRUCTURE); if ("Bundle".equals(codeString)) return new Enumeration(this, FHIRAllTypes.BUNDLE); + if ("CanonicalResource".equals(codeString)) + return new Enumeration(this, FHIRAllTypes.CANONICALRESOURCE); if ("CapabilityStatement".equals(codeString)) return new Enumeration(this, FHIRAllTypes.CAPABILITYSTATEMENT); if ("CapabilityStatement2".equals(codeString)) @@ -5786,8 +5935,8 @@ The primary difference between a medicationusage and a medicationadministration return new Enumeration(this, FHIRAllTypes.DEVICEMETRIC); if ("DeviceRequest".equals(codeString)) return new Enumeration(this, FHIRAllTypes.DEVICEREQUEST); - if ("DeviceUseStatement".equals(codeString)) - return new Enumeration(this, FHIRAllTypes.DEVICEUSESTATEMENT); + if ("DeviceUsage".equals(codeString)) + return new Enumeration(this, FHIRAllTypes.DEVICEUSAGE); if ("DiagnosticReport".equals(codeString)) return new Enumeration(this, FHIRAllTypes.DIAGNOSTICREPORT); if ("DocumentManifest".equals(codeString)) @@ -5846,6 +5995,8 @@ The primary difference between a medicationusage and a medicationadministration return new Enumeration(this, FHIRAllTypes.INGREDIENT); if ("InsurancePlan".equals(codeString)) return new Enumeration(this, FHIRAllTypes.INSURANCEPLAN); + if ("InventoryReport".equals(codeString)) + return new Enumeration(this, FHIRAllTypes.INVENTORYREPORT); if ("Invoice".equals(codeString)) return new Enumeration(this, FHIRAllTypes.INVOICE); if ("Library".equals(codeString)) @@ -5880,6 +6031,8 @@ The primary difference between a medicationusage and a medicationadministration return new Enumeration(this, FHIRAllTypes.MESSAGEDEFINITION); if ("MessageHeader".equals(codeString)) return new Enumeration(this, FHIRAllTypes.MESSAGEHEADER); + if ("MetadataResource".equals(codeString)) + return new Enumeration(this, FHIRAllTypes.METADATARESOURCE); if ("MolecularSequence".equals(codeString)) return new Enumeration(this, FHIRAllTypes.MOLECULARSEQUENCE); if ("NamingSystem".equals(codeString)) @@ -6085,6 +6238,8 @@ The primary difference between a medicationusage and a medicationadministration return "Range"; if (code == FHIRAllTypes.RATIO) return "Ratio"; + if (code == FHIRAllTypes.RATIORANGE) + return "RatioRange"; if (code == FHIRAllTypes.REFERENCE) return "Reference"; if (code == FHIRAllTypes.RELATEDARTIFACT) @@ -6171,6 +6326,8 @@ The primary difference between a medicationusage and a medicationadministration return "BodyStructure"; if (code == FHIRAllTypes.BUNDLE) return "Bundle"; + if (code == FHIRAllTypes.CANONICALRESOURCE) + return "CanonicalResource"; if (code == FHIRAllTypes.CAPABILITYSTATEMENT) return "CapabilityStatement"; if (code == FHIRAllTypes.CAPABILITYSTATEMENT2) @@ -6231,8 +6388,8 @@ The primary difference between a medicationusage and a medicationadministration return "DeviceMetric"; if (code == FHIRAllTypes.DEVICEREQUEST) return "DeviceRequest"; - if (code == FHIRAllTypes.DEVICEUSESTATEMENT) - return "DeviceUseStatement"; + if (code == FHIRAllTypes.DEVICEUSAGE) + return "DeviceUsage"; if (code == FHIRAllTypes.DIAGNOSTICREPORT) return "DiagnosticReport"; if (code == FHIRAllTypes.DOCUMENTMANIFEST) @@ -6291,6 +6448,8 @@ The primary difference between a medicationusage and a medicationadministration return "Ingredient"; if (code == FHIRAllTypes.INSURANCEPLAN) return "InsurancePlan"; + if (code == FHIRAllTypes.INVENTORYREPORT) + return "InventoryReport"; if (code == FHIRAllTypes.INVOICE) return "Invoice"; if (code == FHIRAllTypes.LIBRARY) @@ -6325,6 +6484,8 @@ The primary difference between a medicationusage and a medicationadministration return "MessageDefinition"; if (code == FHIRAllTypes.MESSAGEHEADER) return "MessageHeader"; + if (code == FHIRAllTypes.METADATARESOURCE) + return "MetadataResource"; if (code == FHIRAllTypes.MOLECULARSEQUENCE) return "MolecularSequence"; if (code == FHIRAllTypes.NAMINGSYSTEM) @@ -6563,11 +6724,14 @@ The primary difference between a medicationusage and a medicationadministration * R5 Preview #3. */ _4_5_0, + /** + * R5 Draft Ballot. + */ _4_6_0, /** * added to help the parsers */ - NULL; + NULL; public static final FHIRVersion R4B = FHIRVersion._4_1_0; @@ -6832,9 +6996,11 @@ public String toCode(int len) { return toCode(); } + public boolean isR4B() { return toCode().startsWith("4.1"); } + // end addition } @@ -7064,6 +7230,14 @@ public String toCode(int len) { * Includes all concept ids that have a transitive is-a relationship from the concept Id provided as the value, including the provided concept itself (i.e. include ancestor codes and self). */ GENERALIZES, + /** + * Only concepts with a direct hierarchical relationship to the index code and no other concepts. This does not include the index code in the output. + */ + CHILDOF, + /** + * Includes concept ids that have a transitive is-a relationship with the concept Id provided as the value, but which do not have any concept ids with transitive is-a relationships with themselves. + */ + DESCENDENTLEAF, /** * The specified property of the code has at least one value (if the specified value is true; if the specified value is false, then matches when the specified property of the code has no values). */ @@ -7091,6 +7265,10 @@ public String toCode(int len) { return NOTIN; if ("generalizes".equals(codeString)) return GENERALIZES; + if ("child-of".equals(codeString)) + return CHILDOF; + if ("descendent-leaf".equals(codeString)) + return DESCENDENTLEAF; if ("exists".equals(codeString)) return EXISTS; throw new FHIRException("Unknown FilterOperator code '"+codeString+"'"); @@ -7105,6 +7283,8 @@ public String toCode(int len) { case IN: return "in"; case NOTIN: return "not-in"; case GENERALIZES: return "generalizes"; + case CHILDOF: return "child-of"; + case DESCENDENTLEAF: return "descendent-leaf"; case EXISTS: return "exists"; case NULL: return null; default: return "?"; @@ -7120,6 +7300,8 @@ public String toCode(int len) { case IN: return "http://hl7.org/fhir/filter-operator"; case NOTIN: return "http://hl7.org/fhir/filter-operator"; case GENERALIZES: return "http://hl7.org/fhir/filter-operator"; + case CHILDOF: return "http://hl7.org/fhir/filter-operator"; + case DESCENDENTLEAF: return "http://hl7.org/fhir/filter-operator"; case EXISTS: return "http://hl7.org/fhir/filter-operator"; case NULL: return null; default: return "?"; @@ -7135,6 +7317,8 @@ public String toCode(int len) { case IN: return "The specified property of the code is in the set of codes or concepts specified in the provided value (comma separated list)."; case NOTIN: return "The specified property of the code is not in the set of codes or concepts specified in the provided value (comma separated list)."; case GENERALIZES: return "Includes all concept ids that have a transitive is-a relationship from the concept Id provided as the value, including the provided concept itself (i.e. include ancestor codes and self)."; + case CHILDOF: return "Only concepts with a direct hierarchical relationship to the index code and no other concepts. This does not include the index code in the output."; + case DESCENDENTLEAF: return "Includes concept ids that have a transitive is-a relationship with the concept Id provided as the value, but which do not have any concept ids with transitive is-a relationships with themselves."; case EXISTS: return "The specified property of the code has at least one value (if the specified value is true; if the specified value is false, then matches when the specified property of the code has no values)."; case NULL: return null; default: return "?"; @@ -7150,6 +7334,8 @@ public String toCode(int len) { case IN: return "In Set"; case NOTIN: return "Not in Set"; case GENERALIZES: return "Generalizes (by Subsumption)"; + case CHILDOF: return "Child Of"; + case DESCENDENTLEAF: return "Descendent Leaf"; case EXISTS: return "Exists"; case NULL: return null; default: return "?"; @@ -7178,6 +7364,10 @@ public String toCode(int len) { return FilterOperator.NOTIN; if ("generalizes".equals(codeString)) return FilterOperator.GENERALIZES; + if ("child-of".equals(codeString)) + return FilterOperator.CHILDOF; + if ("descendent-leaf".equals(codeString)) + return FilterOperator.DESCENDENTLEAF; if ("exists".equals(codeString)) return FilterOperator.EXISTS; throw new IllegalArgumentException("Unknown FilterOperator code '"+codeString+"'"); @@ -7206,6 +7396,10 @@ public String toCode(int len) { return new Enumeration(this, FilterOperator.NOTIN); if ("generalizes".equals(codeString)) return new Enumeration(this, FilterOperator.GENERALIZES); + if ("child-of".equals(codeString)) + return new Enumeration(this, FilterOperator.CHILDOF); + if ("descendent-leaf".equals(codeString)) + return new Enumeration(this, FilterOperator.DESCENDENTLEAF); if ("exists".equals(codeString)) return new Enumeration(this, FilterOperator.EXISTS); throw new FHIRException("Unknown FilterOperator code '"+codeString+"'"); @@ -7227,6 +7421,10 @@ public String toCode(int len) { return "not-in"; if (code == FilterOperator.GENERALIZES) return "generalizes"; + if (code == FilterOperator.CHILDOF) + return "child-of"; + if (code == FilterOperator.DESCENDENTLEAF) + return "descendent-leaf"; if (code == FilterOperator.EXISTS) return "exists"; return "?"; @@ -8439,6 +8637,10 @@ public String toCode(int len) { * The actual value is greater than the given value. */ GREATER_THAN, + /** + * The actual value is sufficient for the total quantity to equal the given value. + */ + AD, /** * added to help the parsers */ @@ -8454,6 +8656,8 @@ public String toCode(int len) { return GREATER_OR_EQUAL; if (">".equals(codeString)) return GREATER_THAN; + if ("ad".equals(codeString)) + return AD; throw new FHIRException("Unknown QuantityComparator code '"+codeString+"'"); } public String toCode() { @@ -8462,6 +8666,7 @@ public String toCode(int len) { case LESS_OR_EQUAL: return "<="; case GREATER_OR_EQUAL: return ">="; case GREATER_THAN: return ">"; + case AD: return "ad"; case NULL: return null; default: return "?"; } @@ -8472,6 +8677,7 @@ public String toCode(int len) { case LESS_OR_EQUAL: return "http://hl7.org/fhir/quantity-comparator"; case GREATER_OR_EQUAL: return "http://hl7.org/fhir/quantity-comparator"; case GREATER_THAN: return "http://hl7.org/fhir/quantity-comparator"; + case AD: return "http://hl7.org/fhir/quantity-comparator"; case NULL: return null; default: return "?"; } @@ -8482,6 +8688,7 @@ public String toCode(int len) { case LESS_OR_EQUAL: return "The actual value is less than or equal to the given value."; case GREATER_OR_EQUAL: return "The actual value is greater than or equal to the given value."; case GREATER_THAN: return "The actual value is greater than the given value."; + case AD: return "The actual value is sufficient for the total quantity to equal the given value."; case NULL: return null; default: return "?"; } @@ -8492,6 +8699,7 @@ public String toCode(int len) { case LESS_OR_EQUAL: return "Less or Equal to"; case GREATER_OR_EQUAL: return "Greater or Equal to"; case GREATER_THAN: return "Greater than"; + case AD: return "Sufficient to achieve this total quantity"; case NULL: return null; default: return "?"; } @@ -8511,6 +8719,8 @@ public String toCode(int len) { return QuantityComparator.GREATER_OR_EQUAL; if (">".equals(codeString)) return QuantityComparator.GREATER_THAN; + if ("ad".equals(codeString)) + return QuantityComparator.AD; throw new IllegalArgumentException("Unknown QuantityComparator code '"+codeString+"'"); } public Enumeration fromType(Base code) throws FHIRException { @@ -8529,6 +8739,8 @@ public String toCode(int len) { return new Enumeration(this, QuantityComparator.GREATER_OR_EQUAL); if (">".equals(codeString)) return new Enumeration(this, QuantityComparator.GREATER_THAN); + if ("ad".equals(codeString)) + return new Enumeration(this, QuantityComparator.AD); throw new FHIRException("Unknown QuantityComparator code '"+codeString+"'"); } public String toCode(QuantityComparator code) { @@ -8540,6 +8752,8 @@ public String toCode(int len) { return ">="; if (code == QuantityComparator.GREATER_THAN) return ">"; + if (code == QuantityComparator.AD) + return "ad"; return "?"; } public String toSystem(QuantityComparator code) { @@ -9060,7 +9274,7 @@ public String toCode(int len) { */ ACTIVITYDEFINITION, /** - * A pharmaceutical product described in terms of its composition and dose form. + * A medicinal product in the final form which is suitable for administering to a patient (after any mixing of multiple components, dissolution etc. has been performed). */ ADMINISTRABLEPRODUCTDEFINITION, /** @@ -9104,6 +9318,10 @@ into another (possibly the same) biological entity. * A container for a collection of resources. */ BUNDLE, + /** + * Common Ancestor declaration for conformance and knowledge artifact resources. + */ + CANONICALRESOURCE, /** * A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation. */ @@ -9133,7 +9351,7 @@ into another (possibly the same) biological entity. */ CHARGEITEMDEFINITION, /** - * The Citation. + * The Citation Resource enables reference to any knowledge artifact for purposes of identification and attribution. The Citation Resource supports existing reference structures and developing publication practices such as versioning, expressing complex contributorship roles, and referencing computable resources. */ CITATION, /** @@ -9149,7 +9367,7 @@ into another (possibly the same) biological entity. */ CLINICALIMPRESSION, /** - * A single usage issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure. + * A single issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure. */ CLINICALUSEISSUE, /** @@ -9227,9 +9445,9 @@ into another (possibly the same) biological entity. /** * A record of a device being used by a patient where the record is the result of a report from the patient or a clinician. */ - DEVICEUSESTATEMENT, + DEVICEUSAGE, /** - * The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. + * The findings and interpretation of diagnostic tests performed on patients, groups of patients, products, substances, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. The report also includes non-clinical context such as batch analysis and stability reporting of products and substances. */ DIAGNOSTICREPORT, /** @@ -9269,11 +9487,11 @@ into another (possibly the same) biological entity. */ EVENTDEFINITION, /** - * This represents statistics, certainty, both the intended and actual population, and evidence variables. + * The Evidence Resource provides a machine-interpretable expression of an evidence concept including the evidence variables (eg population, exposures/interventions, comparators, outcomes, measured variables, confounding variables), the statistics, and the certainty of this evidence. */ EVIDENCE, /** - * The EvidenceReport. + * The EvidenceReport Resource is a specialized container for a collection of resources and codable concepts, adapted to support compositions of Evidence, EvidenceVariable, and Citation resources and related concepts. */ EVIDENCEREPORT, /** @@ -9344,6 +9562,10 @@ into another (possibly the same) biological entity. * Details of a Health Insurance product/plan provided by an organization. */ INSURANCEPLAN, + /** + * A report of inventory or stock items. + */ + INVENTORYREPORT, /** * Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose. */ @@ -9399,11 +9621,13 @@ into another (possibly the same) biological entity. /** * A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. -The primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information. +The primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information. + +The MedicationUsage resource was previously called MedicationStatement. */ MEDICATIONUSAGE, /** - * Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use). + * Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use, drug catalogs). */ MEDICINALPRODUCTDEFINITION, /** @@ -9414,6 +9638,10 @@ The primary difference between a medicationusage and a medicationadministration * The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle. */ MESSAGEHEADER, + /** + * Common Ancestor declaration for conformance and knowledge artifact resources. + */ + METADATARESOURCE, /** * Raw data describing a biological sequence. */ @@ -9487,7 +9715,7 @@ The primary difference between a medicationusage and a medicationadministration */ PERSON, /** - * This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols. + * This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical and non-clinical artifacts such as clinical decision support rules, order sets, protocols, and drug quality specifications. */ PLANDEFINITION, /** @@ -9499,7 +9727,7 @@ The primary difference between a medicationusage and a medicationadministration */ PRACTITIONERROLE, /** - * An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy. + * An action that is or was performed on or for a patient, practitioner, device, organization, or location. For example, this can be a physical intervention on a patient like an operation, or less invasive like long term services, counseling, or hypnotherapy. This can be a quality or safety inspection for a location, organization, or device. This can be an accreditation procedure on a practitioner for licensing. */ PROCEDURE, /** @@ -9515,7 +9743,7 @@ The primary difference between a medicationusage and a medicationadministration */ QUESTIONNAIRERESPONSE, /** - * The regulatory authorization of a medicinal product, device or process. + * Regulatory approval, clearance or licencing related to a regulated product, treatment, facility or activity that is cited in a guidance, regulation, rule or legislative act. An example is Market Authorization relating to a Medicinal Product. */ REGULATEDAUTHORIZATION, /** @@ -9527,7 +9755,7 @@ The primary difference between a medicationusage and a medicationadministration */ REQUESTGROUP, /** - * A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects. + * A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects or stability data about drug products or drug substances. */ RESEARCHSTUDY, /** @@ -9639,7 +9867,7 @@ The primary difference between a medicationusage and a medicationadministration */ TESTSCRIPT, /** - * A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html). + * A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [CodeSystem](codesystem.html) definitions and their use in [coded elements](terminologies.html). */ VALUESET, /** @@ -9683,6 +9911,8 @@ The primary difference between a medicationusage and a medicationadministration return BODYSTRUCTURE; if ("Bundle".equals(codeString)) return BUNDLE; + if ("CanonicalResource".equals(codeString)) + return CANONICALRESOURCE; if ("CapabilityStatement".equals(codeString)) return CAPABILITYSTATEMENT; if ("CapabilityStatement2".equals(codeString)) @@ -9743,8 +9973,8 @@ The primary difference between a medicationusage and a medicationadministration return DEVICEMETRIC; if ("DeviceRequest".equals(codeString)) return DEVICEREQUEST; - if ("DeviceUseStatement".equals(codeString)) - return DEVICEUSESTATEMENT; + if ("DeviceUsage".equals(codeString)) + return DEVICEUSAGE; if ("DiagnosticReport".equals(codeString)) return DIAGNOSTICREPORT; if ("DocumentManifest".equals(codeString)) @@ -9803,6 +10033,8 @@ The primary difference between a medicationusage and a medicationadministration return INGREDIENT; if ("InsurancePlan".equals(codeString)) return INSURANCEPLAN; + if ("InventoryReport".equals(codeString)) + return INVENTORYREPORT; if ("Invoice".equals(codeString)) return INVOICE; if ("Library".equals(codeString)) @@ -9837,6 +10069,8 @@ The primary difference between a medicationusage and a medicationadministration return MESSAGEDEFINITION; if ("MessageHeader".equals(codeString)) return MESSAGEHEADER; + if ("MetadataResource".equals(codeString)) + return METADATARESOURCE; if ("MolecularSequence".equals(codeString)) return MOLECULARSEQUENCE; if ("NamingSystem".equals(codeString)) @@ -9972,6 +10206,7 @@ The primary difference between a medicationusage and a medicationadministration case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct"; case BODYSTRUCTURE: return "BodyStructure"; case BUNDLE: return "Bundle"; + case CANONICALRESOURCE: return "CanonicalResource"; case CAPABILITYSTATEMENT: return "CapabilityStatement"; case CAPABILITYSTATEMENT2: return "CapabilityStatement2"; case CAREPLAN: return "CarePlan"; @@ -10002,7 +10237,7 @@ The primary difference between a medicationusage and a medicationadministration case DEVICEDEFINITION: return "DeviceDefinition"; case DEVICEMETRIC: return "DeviceMetric"; case DEVICEREQUEST: return "DeviceRequest"; - case DEVICEUSESTATEMENT: return "DeviceUseStatement"; + case DEVICEUSAGE: return "DeviceUsage"; case DIAGNOSTICREPORT: return "DiagnosticReport"; case DOCUMENTMANIFEST: return "DocumentManifest"; case DOCUMENTREFERENCE: return "DocumentReference"; @@ -10032,6 +10267,7 @@ The primary difference between a medicationusage and a medicationadministration case IMPLEMENTATIONGUIDE: return "ImplementationGuide"; case INGREDIENT: return "Ingredient"; case INSURANCEPLAN: return "InsurancePlan"; + case INVENTORYREPORT: return "InventoryReport"; case INVOICE: return "Invoice"; case LIBRARY: return "Library"; case LINKAGE: return "Linkage"; @@ -10049,6 +10285,7 @@ The primary difference between a medicationusage and a medicationadministration case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition"; case MESSAGEDEFINITION: return "MessageDefinition"; case MESSAGEHEADER: return "MessageHeader"; + case METADATARESOURCE: return "MetadataResource"; case MOLECULARSEQUENCE: return "MolecularSequence"; case NAMINGSYSTEM: return "NamingSystem"; case NUTRITIONINTAKE: return "NutritionIntake"; @@ -10127,6 +10364,7 @@ The primary difference between a medicationusage and a medicationadministration case BIOLOGICALLYDERIVEDPRODUCT: return "http://hl7.org/fhir/resource-types"; case BODYSTRUCTURE: return "http://hl7.org/fhir/resource-types"; case BUNDLE: return "http://hl7.org/fhir/resource-types"; + case CANONICALRESOURCE: return "http://hl7.org/fhir/resource-types"; case CAPABILITYSTATEMENT: return "http://hl7.org/fhir/resource-types"; case CAPABILITYSTATEMENT2: return "http://hl7.org/fhir/resource-types"; case CAREPLAN: return "http://hl7.org/fhir/resource-types"; @@ -10157,7 +10395,7 @@ The primary difference between a medicationusage and a medicationadministration case DEVICEDEFINITION: return "http://hl7.org/fhir/resource-types"; case DEVICEMETRIC: return "http://hl7.org/fhir/resource-types"; case DEVICEREQUEST: return "http://hl7.org/fhir/resource-types"; - case DEVICEUSESTATEMENT: return "http://hl7.org/fhir/resource-types"; + case DEVICEUSAGE: return "http://hl7.org/fhir/resource-types"; case DIAGNOSTICREPORT: return "http://hl7.org/fhir/resource-types"; case DOCUMENTMANIFEST: return "http://hl7.org/fhir/resource-types"; case DOCUMENTREFERENCE: return "http://hl7.org/fhir/resource-types"; @@ -10187,6 +10425,7 @@ The primary difference between a medicationusage and a medicationadministration case IMPLEMENTATIONGUIDE: return "http://hl7.org/fhir/resource-types"; case INGREDIENT: return "http://hl7.org/fhir/resource-types"; case INSURANCEPLAN: return "http://hl7.org/fhir/resource-types"; + case INVENTORYREPORT: return "http://hl7.org/fhir/resource-types"; case INVOICE: return "http://hl7.org/fhir/resource-types"; case LIBRARY: return "http://hl7.org/fhir/resource-types"; case LINKAGE: return "http://hl7.org/fhir/resource-types"; @@ -10204,6 +10443,7 @@ The primary difference between a medicationusage and a medicationadministration case MEDICINALPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types"; case MESSAGEDEFINITION: return "http://hl7.org/fhir/resource-types"; case MESSAGEHEADER: return "http://hl7.org/fhir/resource-types"; + case METADATARESOURCE: return "http://hl7.org/fhir/resource-types"; case MOLECULARSEQUENCE: return "http://hl7.org/fhir/resource-types"; case NAMINGSYSTEM: return "http://hl7.org/fhir/resource-types"; case NUTRITIONINTAKE: return "http://hl7.org/fhir/resource-types"; @@ -10271,7 +10511,7 @@ The primary difference between a medicationusage and a medicationadministration switch (this) { case ACCOUNT: return "A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centers, etc."; case ACTIVITYDEFINITION: return "This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context."; - case ADMINISTRABLEPRODUCTDEFINITION: return "A pharmaceutical product described in terms of its composition and dose form."; + case ADMINISTRABLEPRODUCTDEFINITION: return "A medicinal product in the final form which is suitable for administering to a patient (after any mixing of multiple components, dissolution etc. has been performed)."; case ADVERSEEVENT: return "An event (i.e. any change to current patient status) that may be related to unintended effects on a patient or research subject. The unintended effects may require additional monitoring, treatment or hospitalization or may result in death. The AdverseEvent resource also extends to potential or avoided events that could have had such effects."; case ALLERGYINTOLERANCE: return "Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance."; case APPOINTMENT: return "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)."; @@ -10282,6 +10522,7 @@ The primary difference between a medicationusage and a medicationadministration case BIOLOGICALLYDERIVEDPRODUCT: return "A material substance originating from a biological entity intended to be transplanted or infused\ninto another (possibly the same) biological entity."; case BODYSTRUCTURE: return "Record details about an anatomical structure. This resource may be used when a coded concept does not provide the necessary detail needed for the use case."; case BUNDLE: return "A container for a collection of resources."; + case CANONICALRESOURCE: return "Common Ancestor declaration for conformance and knowledge artifact resources."; case CAPABILITYSTATEMENT: return "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; case CAPABILITYSTATEMENT2: return "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; case CAREPLAN: return "Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions."; @@ -10289,11 +10530,11 @@ The primary difference between a medicationusage and a medicationadministration case CATALOGENTRY: return "Catalog entries are wrappers that contextualize items included in a catalog."; case CHARGEITEM: return "The resource ChargeItem describes the provision of healthcare provider products for a certain patient, therefore referring not only to the product, but containing in addition details of the provision, like date, time, amounts and participating organizations and persons. Main Usage of the ChargeItem is to enable the billing process and internal cost allocation."; case CHARGEITEMDEFINITION: return "The ChargeItemDefinition resource provides the properties that apply to the (billing) codes necessary to calculate costs and prices. The properties may differ largely depending on type and realm, therefore this resource gives only a rough structure and requires profiling for each type of billing code system."; - case CITATION: return "The Citation."; + case CITATION: return "The Citation Resource enables reference to any knowledge artifact for purposes of identification and attribution. The Citation Resource supports existing reference structures and developing publication practices such as versioning, expressing complex contributorship roles, and referencing computable resources."; case CLAIM: return "A provider issued list of professional services and products which have been provided, or are to be provided, to a patient which is sent to an insurer for reimbursement."; case CLAIMRESPONSE: return "This resource provides the adjudication details from the processing of a Claim resource."; case CLINICALIMPRESSION: return "A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. This resource is called \"ClinicalImpression\" rather than \"ClinicalAssessment\" to avoid confusion with the recording of assessment tools such as Apgar score."; - case CLINICALUSEISSUE: return "A single usage issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure."; + case CLINICALUSEISSUE: return "A single issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure."; case CODESYSTEM: return "The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content."; case COMMUNICATION: return "A clinical or business level record of information being transmitted or shared; e.g. an alert that was sent to a responsible provider, a public health agency communication to a provider/reporter in response to a case report for a reportable condition."; case COMMUNICATIONREQUEST: return "A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition."; @@ -10312,8 +10553,8 @@ The primary difference between a medicationusage and a medicationadministration case DEVICEDEFINITION: return "The characteristics, operational status and capabilities of a medical-related component of a medical device."; case DEVICEMETRIC: return "Describes a measurement, calculation or setting capability of a medical device."; case DEVICEREQUEST: return "Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker."; - case DEVICEUSESTATEMENT: return "A record of a device being used by a patient where the record is the result of a report from the patient or a clinician."; - case DIAGNOSTICREPORT: return "The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports."; + case DEVICEUSAGE: return "A record of a device being used by a patient where the record is the result of a report from the patient or a clinician."; + case DIAGNOSTICREPORT: return "The findings and interpretation of diagnostic tests performed on patients, groups of patients, products, substances, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. The report also includes non-clinical context such as batch analysis and stability reporting of products and substances."; case DOCUMENTMANIFEST: return "A collection of documents compiled for a purpose together with metadata that applies to the collection."; case DOCUMENTREFERENCE: return "A reference to a document of any kind for any purpose. While the term “document” implies a more narrow focus, for this resource this \"document\" encompasses *any* serialized object with a mime-type, it includes formal patient-centric documents (CDA), clinical notes, scanned paper, non-patient specific documents like policy text, as well as a photo, video, or audio recording acquired or used in healthcare. The DocumentReference resource provides metadata about the document so that the document can be discovered and managed. The actual content may be inline base64 encoded data or provided by direct reference."; case DOMAINRESOURCE: return "A resource that includes narrative, extensions, and contained resources."; @@ -10323,8 +10564,8 @@ The primary difference between a medicationusage and a medicationadministration case ENROLLMENTRESPONSE: return "This resource provides enrollment and plan details from the processing of an EnrollmentRequest resource."; case EPISODEOFCARE: return "An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time."; case EVENTDEFINITION: return "The EventDefinition resource provides a reusable description of when a particular event can occur."; - case EVIDENCE: return "This represents statistics, certainty, both the intended and actual population, and evidence variables."; - case EVIDENCEREPORT: return "The EvidenceReport."; + case EVIDENCE: return "The Evidence Resource provides a machine-interpretable expression of an evidence concept including the evidence variables (eg population, exposures/interventions, comparators, outcomes, measured variables, confounding variables), the statistics, and the certainty of this evidence."; + case EVIDENCEREPORT: return "The EvidenceReport Resource is a specialized container for a collection of resources and codable concepts, adapted to support compositions of Evidence, EvidenceVariable, and Citation resources and related concepts."; case EVIDENCEVARIABLE: return "The EvidenceVariable resource describes an element that knowledge (Evidence) is about."; case EXAMPLESCENARIO: return "Example of workflow instance."; case EXPLANATIONOFBENEFIT: return "This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided."; @@ -10342,6 +10583,7 @@ The primary difference between a medicationusage and a medicationadministration case IMPLEMENTATIONGUIDE: return "A set of rules of how a particular interoperability or standards problem is solved - typically through the use of FHIR resources. This resource is used to gather all the parts of an implementation guide into a logical whole and to publish a computable definition of all the parts."; case INGREDIENT: return "An ingredient of a manufactured item or pharmaceutical product."; case INSURANCEPLAN: return "Details of a Health Insurance product/plan provided by an organization."; + case INVENTORYREPORT: return "A report of inventory or stock items."; case INVOICE: return "Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose."; case LIBRARY: return "The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets."; case LINKAGE: return "Identifies two or more records (resource instances) that refer to the same real-world \"occurrence\"."; @@ -10355,10 +10597,11 @@ The primary difference between a medicationusage and a medicationadministration case MEDICATIONDISPENSE: return "Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order."; case MEDICATIONKNOWLEDGE: return "Information about a medication that is used to support knowledge."; case MEDICATIONREQUEST: return "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns."; - case MEDICATIONUSAGE: return "A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information."; - case MEDICINALPRODUCTDEFINITION: return "Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use)."; + case MEDICATIONUSAGE: return "A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information.\n\nThe MedicationUsage resource was previously called MedicationStatement."; + case MEDICINALPRODUCTDEFINITION: return "Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use, drug catalogs)."; case MESSAGEDEFINITION: return "Defines the characteristics of a message that can be shared between systems, including the type of event that initiates the message, the content to be transmitted and what response(s), if any, are permitted."; case MESSAGEHEADER: return "The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle."; + case METADATARESOURCE: return "Common Ancestor declaration for conformance and knowledge artifact resources."; case MOLECULARSEQUENCE: return "Raw data describing a biological sequence."; case NAMINGSYSTEM: return "A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a \"System\" used within the Identifier and Coding data types."; case NUTRITIONINTAKE: return "A record of food or fluid that is being consumed by a patient. A NutritionIntake may indicate that the patient may be consuming the food or fluid now or has consumed the food or fluid in the past. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay or through an app that tracks food or fluids consumed. The consumption information may come from sources such as the patient's memory, from a nutrition label, or from a clinician documenting observed intake."; @@ -10377,17 +10620,17 @@ The primary difference between a medicationusage and a medicationadministration case PAYMENTRECONCILIATION: return "This resource provides the details including amount of a payment and allocates the payment items being paid."; case PERMISSION: return "Permission."; case PERSON: return "Demographics and administrative information about a person independent of a specific health-related context."; - case PLANDEFINITION: return "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols."; + case PLANDEFINITION: return "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical and non-clinical artifacts such as clinical decision support rules, order sets, protocols, and drug quality specifications."; case PRACTITIONER: return "A person who is directly or indirectly involved in the provisioning of healthcare."; case PRACTITIONERROLE: return "A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time."; - case PROCEDURE: return "An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy."; + case PROCEDURE: return "An action that is or was performed on or for a patient, practitioner, device, organization, or location. For example, this can be a physical intervention on a patient like an operation, or less invasive like long term services, counseling, or hypnotherapy. This can be a quality or safety inspection for a location, organization, or device. This can be an accreditation procedure on a practitioner for licensing."; case PROVENANCE: return "Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies."; case QUESTIONNAIRE: return "A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection."; case QUESTIONNAIRERESPONSE: return "A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to."; - case REGULATEDAUTHORIZATION: return "The regulatory authorization of a medicinal product, device or process."; + case REGULATEDAUTHORIZATION: return "Regulatory approval, clearance or licencing related to a regulated product, treatment, facility or activity that is cited in a guidance, regulation, rule or legislative act. An example is Market Authorization relating to a Medicinal Product."; case RELATEDPERSON: return "Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process."; case REQUESTGROUP: return "A group of related requests that can be used to capture intended activities that have inter-dependencies such as \"give this medication after that one\"."; - case RESEARCHSTUDY: return "A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects."; + case RESEARCHSTUDY: return "A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects or stability data about drug products or drug substances."; case RESEARCHSUBJECT: return "A physical entity which is the primary unit of operational and/or administrative interest in a study."; case RESOURCE: return "This is the base resource type for everything."; case RISKASSESSMENT: return "An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome."; @@ -10415,7 +10658,7 @@ The primary difference between a medicationusage and a medicationadministration case TERMINOLOGYCAPABILITIES: return "A TerminologyCapabilities resource documents a set of capabilities (behaviors) of a FHIR Terminology Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; case TESTREPORT: return "A summary of information based on the results of executing a TestScript."; case TESTSCRIPT: return "A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification."; - case VALUESET: return "A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html)."; + case VALUESET: return "A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [CodeSystem](codesystem.html) definitions and their use in [coded elements](terminologies.html)."; case VERIFICATIONRESULT: return "Describes validation requirements, source(s), status and dates for one or more elements."; case VISIONPRESCRIPTION: return "An authorization for the provision of glasses and/or contact lenses to a patient."; case NULL: return null; @@ -10437,6 +10680,7 @@ The primary difference between a medicationusage and a medicationadministration case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct"; case BODYSTRUCTURE: return "BodyStructure"; case BUNDLE: return "Bundle"; + case CANONICALRESOURCE: return "CanonicalResource"; case CAPABILITYSTATEMENT: return "CapabilityStatement"; case CAPABILITYSTATEMENT2: return "CapabilityStatement2"; case CAREPLAN: return "CarePlan"; @@ -10467,7 +10711,7 @@ The primary difference between a medicationusage and a medicationadministration case DEVICEDEFINITION: return "DeviceDefinition"; case DEVICEMETRIC: return "DeviceMetric"; case DEVICEREQUEST: return "DeviceRequest"; - case DEVICEUSESTATEMENT: return "DeviceUseStatement"; + case DEVICEUSAGE: return "DeviceUsage"; case DIAGNOSTICREPORT: return "DiagnosticReport"; case DOCUMENTMANIFEST: return "DocumentManifest"; case DOCUMENTREFERENCE: return "DocumentReference"; @@ -10497,6 +10741,7 @@ The primary difference between a medicationusage and a medicationadministration case IMPLEMENTATIONGUIDE: return "ImplementationGuide"; case INGREDIENT: return "Ingredient"; case INSURANCEPLAN: return "InsurancePlan"; + case INVENTORYREPORT: return "InventoryReport"; case INVOICE: return "Invoice"; case LIBRARY: return "Library"; case LINKAGE: return "Linkage"; @@ -10514,6 +10759,7 @@ The primary difference between a medicationusage and a medicationadministration case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition"; case MESSAGEDEFINITION: return "MessageDefinition"; case MESSAGEHEADER: return "MessageHeader"; + case METADATARESOURCE: return "MetadataResource"; case MOLECULARSEQUENCE: return "MolecularSequence"; case NAMINGSYSTEM: return "NamingSystem"; case NUTRITIONINTAKE: return "NutritionIntake"; @@ -10610,6 +10856,8 @@ The primary difference between a medicationusage and a medicationadministration return ResourceTypeEnum.BODYSTRUCTURE; if ("Bundle".equals(codeString)) return ResourceTypeEnum.BUNDLE; + if ("CanonicalResource".equals(codeString)) + return ResourceTypeEnum.CANONICALRESOURCE; if ("CapabilityStatement".equals(codeString)) return ResourceTypeEnum.CAPABILITYSTATEMENT; if ("CapabilityStatement2".equals(codeString)) @@ -10670,8 +10918,8 @@ The primary difference between a medicationusage and a medicationadministration return ResourceTypeEnum.DEVICEMETRIC; if ("DeviceRequest".equals(codeString)) return ResourceTypeEnum.DEVICEREQUEST; - if ("DeviceUseStatement".equals(codeString)) - return ResourceTypeEnum.DEVICEUSESTATEMENT; + if ("DeviceUsage".equals(codeString)) + return ResourceTypeEnum.DEVICEUSAGE; if ("DiagnosticReport".equals(codeString)) return ResourceTypeEnum.DIAGNOSTICREPORT; if ("DocumentManifest".equals(codeString)) @@ -10730,6 +10978,8 @@ The primary difference between a medicationusage and a medicationadministration return ResourceTypeEnum.INGREDIENT; if ("InsurancePlan".equals(codeString)) return ResourceTypeEnum.INSURANCEPLAN; + if ("InventoryReport".equals(codeString)) + return ResourceTypeEnum.INVENTORYREPORT; if ("Invoice".equals(codeString)) return ResourceTypeEnum.INVOICE; if ("Library".equals(codeString)) @@ -10764,6 +11014,8 @@ The primary difference between a medicationusage and a medicationadministration return ResourceTypeEnum.MESSAGEDEFINITION; if ("MessageHeader".equals(codeString)) return ResourceTypeEnum.MESSAGEHEADER; + if ("MetadataResource".equals(codeString)) + return ResourceTypeEnum.METADATARESOURCE; if ("MolecularSequence".equals(codeString)) return ResourceTypeEnum.MOLECULARSEQUENCE; if ("NamingSystem".equals(codeString)) @@ -10918,6 +11170,8 @@ The primary difference between a medicationusage and a medicationadministration return new Enumeration(this, ResourceTypeEnum.BODYSTRUCTURE); if ("Bundle".equals(codeString)) return new Enumeration(this, ResourceTypeEnum.BUNDLE); + if ("CanonicalResource".equals(codeString)) + return new Enumeration(this, ResourceTypeEnum.CANONICALRESOURCE); if ("CapabilityStatement".equals(codeString)) return new Enumeration(this, ResourceTypeEnum.CAPABILITYSTATEMENT); if ("CapabilityStatement2".equals(codeString)) @@ -10978,8 +11232,8 @@ The primary difference between a medicationusage and a medicationadministration return new Enumeration(this, ResourceTypeEnum.DEVICEMETRIC); if ("DeviceRequest".equals(codeString)) return new Enumeration(this, ResourceTypeEnum.DEVICEREQUEST); - if ("DeviceUseStatement".equals(codeString)) - return new Enumeration(this, ResourceTypeEnum.DEVICEUSESTATEMENT); + if ("DeviceUsage".equals(codeString)) + return new Enumeration(this, ResourceTypeEnum.DEVICEUSAGE); if ("DiagnosticReport".equals(codeString)) return new Enumeration(this, ResourceTypeEnum.DIAGNOSTICREPORT); if ("DocumentManifest".equals(codeString)) @@ -11038,6 +11292,8 @@ The primary difference between a medicationusage and a medicationadministration return new Enumeration(this, ResourceTypeEnum.INGREDIENT); if ("InsurancePlan".equals(codeString)) return new Enumeration(this, ResourceTypeEnum.INSURANCEPLAN); + if ("InventoryReport".equals(codeString)) + return new Enumeration(this, ResourceTypeEnum.INVENTORYREPORT); if ("Invoice".equals(codeString)) return new Enumeration(this, ResourceTypeEnum.INVOICE); if ("Library".equals(codeString)) @@ -11072,6 +11328,8 @@ The primary difference between a medicationusage and a medicationadministration return new Enumeration(this, ResourceTypeEnum.MESSAGEDEFINITION); if ("MessageHeader".equals(codeString)) return new Enumeration(this, ResourceTypeEnum.MESSAGEHEADER); + if ("MetadataResource".equals(codeString)) + return new Enumeration(this, ResourceTypeEnum.METADATARESOURCE); if ("MolecularSequence".equals(codeString)) return new Enumeration(this, ResourceTypeEnum.MOLECULARSEQUENCE); if ("NamingSystem".equals(codeString)) @@ -11219,6 +11477,8 @@ The primary difference between a medicationusage and a medicationadministration return "BodyStructure"; if (code == ResourceTypeEnum.BUNDLE) return "Bundle"; + if (code == ResourceTypeEnum.CANONICALRESOURCE) + return "CanonicalResource"; if (code == ResourceTypeEnum.CAPABILITYSTATEMENT) return "CapabilityStatement"; if (code == ResourceTypeEnum.CAPABILITYSTATEMENT2) @@ -11279,8 +11539,8 @@ The primary difference between a medicationusage and a medicationadministration return "DeviceMetric"; if (code == ResourceTypeEnum.DEVICEREQUEST) return "DeviceRequest"; - if (code == ResourceTypeEnum.DEVICEUSESTATEMENT) - return "DeviceUseStatement"; + if (code == ResourceTypeEnum.DEVICEUSAGE) + return "DeviceUsage"; if (code == ResourceTypeEnum.DIAGNOSTICREPORT) return "DiagnosticReport"; if (code == ResourceTypeEnum.DOCUMENTMANIFEST) @@ -11339,6 +11599,8 @@ The primary difference between a medicationusage and a medicationadministration return "Ingredient"; if (code == ResourceTypeEnum.INSURANCEPLAN) return "InsurancePlan"; + if (code == ResourceTypeEnum.INVENTORYREPORT) + return "InventoryReport"; if (code == ResourceTypeEnum.INVOICE) return "Invoice"; if (code == ResourceTypeEnum.LIBRARY) @@ -11373,6 +11635,8 @@ The primary difference between a medicationusage and a medicationadministration return "MessageDefinition"; if (code == ResourceTypeEnum.MESSAGEHEADER) return "MessageHeader"; + if (code == ResourceTypeEnum.METADATARESOURCE) + return "MetadataResource"; if (code == ResourceTypeEnum.MOLECULARSEQUENCE) return "MolecularSequence"; if (code == ResourceTypeEnum.NAMINGSYSTEM) @@ -12114,6 +12378,10 @@ The primary difference between a medicationusage and a medicationadministration * Too many errors have occurred or the subscription has expired. */ OFF, + /** + * This subscription has been flagged as incorrect. + */ + ENTEREDINERROR, /** * added to help the parsers */ @@ -12129,6 +12397,8 @@ The primary difference between a medicationusage and a medicationadministration return ERROR; if ("off".equals(codeString)) return OFF; + if ("entered-in-error".equals(codeString)) + return ENTEREDINERROR; throw new FHIRException("Unknown SubscriptionState code '"+codeString+"'"); } public String toCode() { @@ -12137,6 +12407,7 @@ The primary difference between a medicationusage and a medicationadministration case ACTIVE: return "active"; case ERROR: return "error"; case OFF: return "off"; + case ENTEREDINERROR: return "entered-in-error"; case NULL: return null; default: return "?"; } @@ -12147,6 +12418,7 @@ The primary difference between a medicationusage and a medicationadministration case ACTIVE: return "http://terminology.hl7.org/CodeSystem/subscription-state"; case ERROR: return "http://terminology.hl7.org/CodeSystem/subscription-state"; case OFF: return "http://terminology.hl7.org/CodeSystem/subscription-state"; + case ENTEREDINERROR: return "http://terminology.hl7.org/CodeSystem/subscription-state"; case NULL: return null; default: return "?"; } @@ -12157,6 +12429,7 @@ The primary difference between a medicationusage and a medicationadministration case ACTIVE: return "The subscription is active."; case ERROR: return "The server has an error executing the notification."; case OFF: return "Too many errors have occurred or the subscription has expired."; + case ENTEREDINERROR: return "This subscription has been flagged as incorrect."; case NULL: return null; default: return "?"; } @@ -12167,6 +12440,7 @@ The primary difference between a medicationusage and a medicationadministration case ACTIVE: return "Active"; case ERROR: return "Error"; case OFF: return "Off"; + case ENTEREDINERROR: return "Entered in Error"; case NULL: return null; default: return "?"; } @@ -12186,6 +12460,8 @@ The primary difference between a medicationusage and a medicationadministration return SubscriptionState.ERROR; if ("off".equals(codeString)) return SubscriptionState.OFF; + if ("entered-in-error".equals(codeString)) + return SubscriptionState.ENTEREDINERROR; throw new IllegalArgumentException("Unknown SubscriptionState code '"+codeString+"'"); } public Enumeration fromType(Base code) throws FHIRException { @@ -12204,6 +12480,8 @@ The primary difference between a medicationusage and a medicationadministration return new Enumeration(this, SubscriptionState.ERROR); if ("off".equals(codeString)) return new Enumeration(this, SubscriptionState.OFF); + if ("entered-in-error".equals(codeString)) + return new Enumeration(this, SubscriptionState.ENTEREDINERROR); throw new FHIRException("Unknown SubscriptionState code '"+codeString+"'"); } public String toCode(SubscriptionState code) { @@ -12215,6 +12493,8 @@ The primary difference between a medicationusage and a medicationadministration return "error"; if (code == SubscriptionState.OFF) return "off"; + if (code == SubscriptionState.ENTEREDINERROR) + return "entered-in-error"; return "?"; } public String toSystem(SubscriptionState code) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EpisodeOfCare.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EpisodeOfCare.java index 290fcbb25..0231475db 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EpisodeOfCare.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EpisodeOfCare.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -117,7 +117,6 @@ public class EpisodeOfCare extends DomainResource { case FINISHED: return "finished"; case CANCELLED: return "cancelled"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -130,7 +129,6 @@ public class EpisodeOfCare extends DomainResource { case FINISHED: return "http://hl7.org/fhir/episode-of-care-status"; case CANCELLED: return "http://hl7.org/fhir/episode-of-care-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/episode-of-care-status"; - case NULL: return null; default: return "?"; } } @@ -143,7 +141,6 @@ public class EpisodeOfCare extends DomainResource { case FINISHED: return "This episode of care is finished and the organization is not expecting to be providing further care to the patient. Can also be known as \"closed\", \"completed\" or other similar terms."; case CANCELLED: return "The episode of care was cancelled, or withdrawn from service, often selected during the planned stage as the patient may have gone elsewhere, or the circumstances have changed and the organization is unable to provide the care. It indicates that services terminated outside the planned/expected workflow."; case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record."; - case NULL: return null; default: return "?"; } } @@ -156,7 +153,6 @@ public class EpisodeOfCare extends DomainResource { case FINISHED: return "Finished"; case CANCELLED: return "Cancelled"; case ENTEREDINERROR: return "Entered in Error"; - case NULL: return null; default: return "?"; } } @@ -1668,6 +1664,278 @@ public class EpisodeOfCare extends DomainResource { return ResourceType.EpisodeOfCare; } + /** + * Search parameter: date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) + public static final String SP_DATE = "date"; + /** + * Fluent Client search parameter constant for date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "EpisodeOfCare:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("EpisodeOfCare:patient").toLocked(); + + /** + * Search parameter: type + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) +* [Composition](composition.html): Kind of composition (LOINC if possible) +* [DocumentManifest](documentmanifest.html): Kind of document set +* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) +* [Encounter](encounter.html): Specific type of encounter +* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management +
+ * Type: token
+ * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
+ *

+ */ + @SearchParamDefinition(name="type", path="AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known)\r\n* [Composition](composition.html): Kind of composition (LOINC if possible)\r\n* [DocumentManifest](documentmanifest.html): Kind of document set\r\n* [DocumentReference](documentreference.html): Kind of document (LOINC if possible)\r\n* [Encounter](encounter.html): Specific type of encounter\r\n* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management\r\n", type="token" ) + public static final String SP_TYPE = "type"; + /** + * Fluent Client search parameter constant for type + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) +* [Composition](composition.html): Kind of composition (LOINC if possible) +* [DocumentManifest](documentmanifest.html): Kind of document set +* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) +* [Encounter](encounter.html): Specific type of encounter +* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management +
+ * Type: token
+ * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); + /** * Search parameter: care-manager *

@@ -1676,7 +1944,7 @@ public class EpisodeOfCare extends DomainResource { * Path: EpisodeOfCare.careManager.where(resolve() is Practitioner)
*

*/ - @SearchParamDefinition(name="care-manager", path="EpisodeOfCare.careManager.where(resolve() is Practitioner)", description="Care manager/care coordinator for the patient", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Practitioner.class } ) + @SearchParamDefinition(name="care-manager", path="EpisodeOfCare.careManager.where(resolve() is Practitioner)", description="Care manager/care coordinator for the patient", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Practitioner.class, PractitionerRole.class } ) public static final String SP_CARE_MANAGER = "care-manager"; /** * Fluent Client search parameter constant for care-manager @@ -1792,278 +2060,6 @@ public class EpisodeOfCare extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); - /** - * Search parameter: date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) - public static final String SP_DATE = "date"; - /** - * Fluent Client search parameter constant for date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "EpisodeOfCare:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("EpisodeOfCare:patient").toLocked(); - - /** - * Search parameter: type - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) -* [Composition](composition.html): Kind of composition (LOINC if possible) -* [DocumentManifest](documentmanifest.html): Kind of document set -* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) -* [Encounter](encounter.html): Specific type of encounter -* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management -
- * Type: token
- * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
- *

- */ - @SearchParamDefinition(name="type", path="AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known)\r\n* [Composition](composition.html): Kind of composition (LOINC if possible)\r\n* [DocumentManifest](documentmanifest.html): Kind of document set\r\n* [DocumentReference](documentreference.html): Kind of document (LOINC if possible)\r\n* [Encounter](encounter.html): Specific type of encounter\r\n* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management\r\n", type="token" ) - public static final String SP_TYPE = "type"; - /** - * Fluent Client search parameter constant for type - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): allergy | intolerance - Underlying mechanism (if known) -* [Composition](composition.html): Kind of composition (LOINC if possible) -* [DocumentManifest](documentmanifest.html): Kind of document set -* [DocumentReference](documentreference.html): Kind of document (LOINC if possible) -* [Encounter](encounter.html): Specific type of encounter -* [EpisodeOfCare](episodeofcare.html): Type/class - e.g. specialist referral, disease management -
- * Type: token
- * Path: AllergyIntolerance.type | Composition.type | DocumentManifest.type | DocumentReference.type | Encounter.type | EpisodeOfCare.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EventDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EventDefinition.java index e6932ffc4..59c27e76f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EventDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EventDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -2236,7 +2236,7 @@ public class EventDefinition extends MetadataResource { * Path: EventDefinition.relatedArtifact.where(type='composed-of').resource
*

*/ - @SearchParamDefinition(name="composed-of", path="EventDefinition.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="composed-of", path="EventDefinition.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_COMPOSED_OF = "composed-of"; /** * Fluent Client search parameter constant for composed-of @@ -2254,6 +2254,26 @@ public class EventDefinition extends MetadataResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_COMPOSED_OF = new ca.uhn.fhir.model.api.Include("EventDefinition:composed-of").toLocked(); + /** + * Search parameter: context + *

+ * Description: A use context assigned to the event definition
+ * Type: token
+ * Path: (EventDefinition.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(EventDefinition.useContext.value as CodeableConcept)", description="A use context assigned to the event definition", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: A use context assigned to the event definition
+ * Type: token
+ * Path: (EventDefinition.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -2274,46 +2294,6 @@ public class EventDefinition extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the event definition
- * Type: composite
- * Path: EventDefinition.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="EventDefinition.useContext", description="A use context type and quantity- or range-based value assigned to the event definition", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the event definition
- * Type: composite
- * Path: EventDefinition.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: A use context type and value assigned to the event definition
- * Type: composite
- * Path: EventDefinition.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="EventDefinition.useContext", description="A use context type and value assigned to the event definition", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: A use context type and value assigned to the event definition
- * Type: composite
- * Path: EventDefinition.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -2334,26 +2314,6 @@ public class EventDefinition extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: A use context assigned to the event definition
- * Type: token
- * Path: (EventDefinition.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(EventDefinition.useContext.value as CodeableConcept)", description="A use context assigned to the event definition", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: A use context assigned to the event definition
- * Type: token
- * Path: (EventDefinition.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -2382,7 +2342,7 @@ public class EventDefinition extends MetadataResource { * Path: EventDefinition.relatedArtifact.where(type='depends-on').resource
*

*/ - @SearchParamDefinition(name="depends-on", path="EventDefinition.relatedArtifact.where(type='depends-on').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="depends-on", path="EventDefinition.relatedArtifact.where(type='depends-on').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_DEPENDS_ON = "depends-on"; /** * Fluent Client search parameter constant for depends-on @@ -2408,7 +2368,7 @@ public class EventDefinition extends MetadataResource { * Path: EventDefinition.relatedArtifact.where(type='derived-from').resource
*

*/ - @SearchParamDefinition(name="derived-from", path="EventDefinition.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="derived-from", path="EventDefinition.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_DERIVED_FROM = "derived-from"; /** * Fluent Client search parameter constant for derived-from @@ -2534,7 +2494,7 @@ public class EventDefinition extends MetadataResource { * Path: EventDefinition.relatedArtifact.where(type='predecessor').resource
*

*/ - @SearchParamDefinition(name="predecessor", path="EventDefinition.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="predecessor", path="EventDefinition.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PREDECESSOR = "predecessor"; /** * Fluent Client search parameter constant for predecessor @@ -2600,7 +2560,7 @@ public class EventDefinition extends MetadataResource { * Path: EventDefinition.relatedArtifact.where(type='successor').resource
*

*/ - @SearchParamDefinition(name="successor", path="EventDefinition.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="successor", path="EventDefinition.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_SUCCESSOR = "successor"; /** * Fluent Client search parameter constant for successor @@ -2698,6 +2658,46 @@ public class EventDefinition extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the event definition
+ * Type: composite
+ * Path: EventDefinition.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="EventDefinition.useContext", description="A use context type and quantity- or range-based value assigned to the event definition", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the event definition
+ * Type: composite
+ * Path: EventDefinition.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: A use context type and value assigned to the event definition
+ * Type: composite
+ * Path: EventDefinition.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="EventDefinition.useContext", description="A use context type and value assigned to the event definition", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: A use context type and value assigned to the event definition
+ * Type: composite
+ * Path: EventDefinition.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Evidence.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Evidence.java index 58ae13aae..25d4d49eb 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Evidence.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Evidence.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -48,7 +48,7 @@ import ca.uhn.fhir.model.api.annotation.Description; import ca.uhn.fhir.model.api.annotation.Block; /** - * This represents statistics, certainty, both the intended and actual population, and evidence variables. + * The Evidence Resource provides a machine-interpretable expression of an evidence concept including the evidence variables (eg population, exposures/interventions, comparators, outcomes, measured variables, confounding variables), the statistics, and the certainty of this evidence. */ @ResourceDef(name="Evidence", profile="http://hl7.org/fhir/StructureDefinition/Evidence") public class Evidence extends MetadataResource { @@ -524,21 +524,36 @@ public class Evidence extends MetadataResource { protected List note; /** - * Quality or certainty of the Evidence. + * Aspect of certainty being rated. */ - @Child(name = "rating", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Quality or certainty of the Evidence", formalDefinition="Quality or certainty of the Evidence." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/evidence-quality") - protected List rating; + @Child(name = "type", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Aspect of certainty being rated", formalDefinition="Aspect of certainty being rated." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/certainty-type") + protected CodeableConcept type; /** - * A domain or subdomain of certainty rating. + * Assessment or judgement of the aspect. */ - @Child(name = "certaintySubcomponent", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="A domain or subdomain of certainty rating", formalDefinition="A domain or subdomain of certainty rating." ) - protected List certaintySubcomponent; + @Child(name = "rating", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Assessment or judgement of the aspect", formalDefinition="Assessment or judgement of the aspect." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/certainty-rating") + protected CodeableConcept rating; - private static final long serialVersionUID = 775762511L; + /** + * Individual or group who did the rating. + */ + @Child(name = "rater", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Individual or group who did the rating", formalDefinition="Individual or group who did the rating." ) + protected StringType rater; + + /** + * A domain or subdomain of certainty. + */ + @Child(name = "subcomponent", type = {EvidenceCertaintyComponent.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="A domain or subdomain of certainty", formalDefinition="A domain or subdomain of certainty." ) + protected List subcomponent; + + private static final long serialVersionUID = 432882532L; /** * Constructor @@ -650,117 +665,163 @@ public class Evidence extends MetadataResource { } /** - * @return {@link #rating} (Quality or certainty of the Evidence.) + * @return {@link #type} (Aspect of certainty being rated.) */ - public List getRating() { + public CodeableConcept getType() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create EvidenceCertaintyComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new CodeableConcept(); // cc + return this.type; + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (Aspect of certainty being rated.) + */ + public EvidenceCertaintyComponent setType(CodeableConcept value) { + this.type = value; + return this; + } + + /** + * @return {@link #rating} (Assessment or judgement of the aspect.) + */ + public CodeableConcept getRating() { if (this.rating == null) - this.rating = new ArrayList(); + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create EvidenceCertaintyComponent.rating"); + else if (Configuration.doAutoCreate()) + this.rating = new CodeableConcept(); // cc return this.rating; } - /** - * @return Returns a reference to this for easy method chaining - */ - public EvidenceCertaintyComponent setRating(List theRating) { - this.rating = theRating; - return this; - } - public boolean hasRating() { - if (this.rating == null) - return false; - for (CodeableConcept item : this.rating) - if (!item.isEmpty()) - return true; - return false; + return this.rating != null && !this.rating.isEmpty(); } - public CodeableConcept addRating() { //3 - CodeableConcept t = new CodeableConcept(); - if (this.rating == null) - this.rating = new ArrayList(); - this.rating.add(t); - return t; - } - - public EvidenceCertaintyComponent addRating(CodeableConcept t) { //3 - if (t == null) - return this; - if (this.rating == null) - this.rating = new ArrayList(); - this.rating.add(t); + /** + * @param value {@link #rating} (Assessment or judgement of the aspect.) + */ + public EvidenceCertaintyComponent setRating(CodeableConcept value) { + this.rating = value; return this; } /** - * @return The first repetition of repeating field {@link #rating}, creating it if it does not already exist {3} + * @return {@link #rater} (Individual or group who did the rating.). This is the underlying object with id, value and extensions. The accessor "getRater" gives direct access to the value */ - public CodeableConcept getRatingFirstRep() { - if (getRating().isEmpty()) { - addRating(); - } - return getRating().get(0); + public StringType getRaterElement() { + if (this.rater == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create EvidenceCertaintyComponent.rater"); + else if (Configuration.doAutoCreate()) + this.rater = new StringType(); // bb + return this.rater; + } + + public boolean hasRaterElement() { + return this.rater != null && !this.rater.isEmpty(); + } + + public boolean hasRater() { + return this.rater != null && !this.rater.isEmpty(); } /** - * @return {@link #certaintySubcomponent} (A domain or subdomain of certainty rating.) + * @param value {@link #rater} (Individual or group who did the rating.). This is the underlying object with id, value and extensions. The accessor "getRater" gives direct access to the value */ - public List getCertaintySubcomponent() { - if (this.certaintySubcomponent == null) - this.certaintySubcomponent = new ArrayList(); - return this.certaintySubcomponent; + public EvidenceCertaintyComponent setRaterElement(StringType value) { + this.rater = value; + return this; + } + + /** + * @return Individual or group who did the rating. + */ + public String getRater() { + return this.rater == null ? null : this.rater.getValue(); + } + + /** + * @param value Individual or group who did the rating. + */ + public EvidenceCertaintyComponent setRater(String value) { + if (Utilities.noString(value)) + this.rater = null; + else { + if (this.rater == null) + this.rater = new StringType(); + this.rater.setValue(value); + } + return this; + } + + /** + * @return {@link #subcomponent} (A domain or subdomain of certainty.) + */ + public List getSubcomponent() { + if (this.subcomponent == null) + this.subcomponent = new ArrayList(); + return this.subcomponent; } /** * @return Returns a reference to this for easy method chaining */ - public EvidenceCertaintyComponent setCertaintySubcomponent(List theCertaintySubcomponent) { - this.certaintySubcomponent = theCertaintySubcomponent; + public EvidenceCertaintyComponent setSubcomponent(List theSubcomponent) { + this.subcomponent = theSubcomponent; return this; } - public boolean hasCertaintySubcomponent() { - if (this.certaintySubcomponent == null) + public boolean hasSubcomponent() { + if (this.subcomponent == null) return false; - for (EvidenceCertaintyCertaintySubcomponentComponent item : this.certaintySubcomponent) + for (EvidenceCertaintyComponent item : this.subcomponent) if (!item.isEmpty()) return true; return false; } - public EvidenceCertaintyCertaintySubcomponentComponent addCertaintySubcomponent() { //3 - EvidenceCertaintyCertaintySubcomponentComponent t = new EvidenceCertaintyCertaintySubcomponentComponent(); - if (this.certaintySubcomponent == null) - this.certaintySubcomponent = new ArrayList(); - this.certaintySubcomponent.add(t); + public EvidenceCertaintyComponent addSubcomponent() { //3 + EvidenceCertaintyComponent t = new EvidenceCertaintyComponent(); + if (this.subcomponent == null) + this.subcomponent = new ArrayList(); + this.subcomponent.add(t); return t; } - public EvidenceCertaintyComponent addCertaintySubcomponent(EvidenceCertaintyCertaintySubcomponentComponent t) { //3 + public EvidenceCertaintyComponent addSubcomponent(EvidenceCertaintyComponent t) { //3 if (t == null) return this; - if (this.certaintySubcomponent == null) - this.certaintySubcomponent = new ArrayList(); - this.certaintySubcomponent.add(t); + if (this.subcomponent == null) + this.subcomponent = new ArrayList(); + this.subcomponent.add(t); return this; } /** - * @return The first repetition of repeating field {@link #certaintySubcomponent}, creating it if it does not already exist {3} + * @return The first repetition of repeating field {@link #subcomponent}, creating it if it does not already exist {3} */ - public EvidenceCertaintyCertaintySubcomponentComponent getCertaintySubcomponentFirstRep() { - if (getCertaintySubcomponent().isEmpty()) { - addCertaintySubcomponent(); + public EvidenceCertaintyComponent getSubcomponentFirstRep() { + if (getSubcomponent().isEmpty()) { + addSubcomponent(); } - return getCertaintySubcomponent().get(0); + return getSubcomponent().get(0); } protected void listChildren(List children) { super.listChildren(children); children.add(new Property("description", "string", "Textual description of certainty.", 0, 1, description)); children.add(new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, note)); - children.add(new Property("rating", "CodeableConcept", "Quality or certainty of the Evidence.", 0, java.lang.Integer.MAX_VALUE, rating)); - children.add(new Property("certaintySubcomponent", "", "A domain or subdomain of certainty rating.", 0, java.lang.Integer.MAX_VALUE, certaintySubcomponent)); + children.add(new Property("type", "CodeableConcept", "Aspect of certainty being rated.", 0, 1, type)); + children.add(new Property("rating", "CodeableConcept", "Assessment or judgement of the aspect.", 0, 1, rating)); + children.add(new Property("rater", "string", "Individual or group who did the rating.", 0, 1, rater)); + children.add(new Property("subcomponent", "@Evidence.certainty", "A domain or subdomain of certainty.", 0, java.lang.Integer.MAX_VALUE, subcomponent)); } @Override @@ -768,8 +829,10 @@ public class Evidence extends MetadataResource { switch (_hash) { case -1724546052: /*description*/ return new Property("description", "string", "Textual description of certainty.", 0, 1, description); case 3387378: /*note*/ return new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, note); - case -938102371: /*rating*/ return new Property("rating", "CodeableConcept", "Quality or certainty of the Evidence.", 0, java.lang.Integer.MAX_VALUE, rating); - case 1806398212: /*certaintySubcomponent*/ return new Property("certaintySubcomponent", "", "A domain or subdomain of certainty rating.", 0, java.lang.Integer.MAX_VALUE, certaintySubcomponent); + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Aspect of certainty being rated.", 0, 1, type); + case -938102371: /*rating*/ return new Property("rating", "CodeableConcept", "Assessment or judgement of the aspect.", 0, 1, rating); + case 108285842: /*rater*/ return new Property("rater", "string", "Individual or group who did the rating.", 0, 1, rater); + case -1308662083: /*subcomponent*/ return new Property("subcomponent", "@Evidence.certainty", "A domain or subdomain of certainty.", 0, java.lang.Integer.MAX_VALUE, subcomponent); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -780,8 +843,10 @@ public class Evidence extends MetadataResource { switch (hash) { case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation - case -938102371: /*rating*/ return this.rating == null ? new Base[0] : this.rating.toArray(new Base[this.rating.size()]); // CodeableConcept - case 1806398212: /*certaintySubcomponent*/ return this.certaintySubcomponent == null ? new Base[0] : this.certaintySubcomponent.toArray(new Base[this.certaintySubcomponent.size()]); // EvidenceCertaintyCertaintySubcomponentComponent + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case -938102371: /*rating*/ return this.rating == null ? new Base[0] : new Base[] {this.rating}; // CodeableConcept + case 108285842: /*rater*/ return this.rater == null ? new Base[0] : new Base[] {this.rater}; // StringType + case -1308662083: /*subcomponent*/ return this.subcomponent == null ? new Base[0] : this.subcomponent.toArray(new Base[this.subcomponent.size()]); // EvidenceCertaintyComponent default: return super.getProperty(hash, name, checkValid); } @@ -796,11 +861,17 @@ public class Evidence extends MetadataResource { case 3387378: // note this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation return value; - case -938102371: // rating - this.getRating().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + case 3575610: // type + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; - case 1806398212: // certaintySubcomponent - this.getCertaintySubcomponent().add((EvidenceCertaintyCertaintySubcomponentComponent) value); // EvidenceCertaintyCertaintySubcomponentComponent + case -938102371: // rating + this.rating = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 108285842: // rater + this.rater = TypeConvertor.castToString(value); // StringType + return value; + case -1308662083: // subcomponent + this.getSubcomponent().add((EvidenceCertaintyComponent) value); // EvidenceCertaintyComponent return value; default: return super.setProperty(hash, name, value); } @@ -813,10 +884,14 @@ public class Evidence extends MetadataResource { this.description = TypeConvertor.castToString(value); // StringType } else if (name.equals("note")) { this.getNote().add(TypeConvertor.castToAnnotation(value)); + } else if (name.equals("type")) { + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("rating")) { - this.getRating().add(TypeConvertor.castToCodeableConcept(value)); - } else if (name.equals("certaintySubcomponent")) { - this.getCertaintySubcomponent().add((EvidenceCertaintyCertaintySubcomponentComponent) value); + this.rating = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("rater")) { + this.rater = TypeConvertor.castToString(value); // StringType + } else if (name.equals("subcomponent")) { + this.getSubcomponent().add((EvidenceCertaintyComponent) value); } else return super.setProperty(name, value); return value; @@ -827,8 +902,10 @@ public class Evidence extends MetadataResource { switch (hash) { case -1724546052: return getDescriptionElement(); case 3387378: return addNote(); - case -938102371: return addRating(); - case 1806398212: return addCertaintySubcomponent(); + case 3575610: return getType(); + case -938102371: return getRating(); + case 108285842: return getRaterElement(); + case -1308662083: return addSubcomponent(); default: return super.makeProperty(hash, name); } @@ -839,8 +916,10 @@ public class Evidence extends MetadataResource { switch (hash) { case -1724546052: /*description*/ return new String[] {"string"}; case 3387378: /*note*/ return new String[] {"Annotation"}; + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; case -938102371: /*rating*/ return new String[] {"CodeableConcept"}; - case 1806398212: /*certaintySubcomponent*/ return new String[] {}; + case 108285842: /*rater*/ return new String[] {"string"}; + case -1308662083: /*subcomponent*/ return new String[] {"@Evidence.certainty"}; default: return super.getTypesForProperty(hash, name); } @@ -854,11 +933,19 @@ public class Evidence extends MetadataResource { else if (name.equals("note")) { return addNote(); } - else if (name.equals("rating")) { - return addRating(); + else if (name.equals("type")) { + this.type = new CodeableConcept(); + return this.type; } - else if (name.equals("certaintySubcomponent")) { - return addCertaintySubcomponent(); + else if (name.equals("rating")) { + this.rating = new CodeableConcept(); + return this.rating; + } + else if (name.equals("rater")) { + throw new FHIRException("Cannot call addChild on a primitive type Evidence.certainty.rater"); + } + else if (name.equals("subcomponent")) { + return addSubcomponent(); } else return super.addChild(name); @@ -878,15 +965,13 @@ public class Evidence extends MetadataResource { for (Annotation i : note) dst.note.add(i.copy()); }; - if (rating != null) { - dst.rating = new ArrayList(); - for (CodeableConcept i : rating) - dst.rating.add(i.copy()); - }; - if (certaintySubcomponent != null) { - dst.certaintySubcomponent = new ArrayList(); - for (EvidenceCertaintyCertaintySubcomponentComponent i : certaintySubcomponent) - dst.certaintySubcomponent.add(i.copy()); + dst.type = type == null ? null : type.copy(); + dst.rating = rating == null ? null : rating.copy(); + dst.rater = rater == null ? null : rater.copy(); + if (subcomponent != null) { + dst.subcomponent = new ArrayList(); + for (EvidenceCertaintyComponent i : subcomponent) + dst.subcomponent.add(i.copy()); }; } @@ -897,444 +982,28 @@ public class Evidence extends MetadataResource { if (!(other_ instanceof EvidenceCertaintyComponent)) return false; EvidenceCertaintyComponent o = (EvidenceCertaintyComponent) other_; - return compareDeep(description, o.description, true) && compareDeep(note, o.note, true) && compareDeep(rating, o.rating, true) - && compareDeep(certaintySubcomponent, o.certaintySubcomponent, true); - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof EvidenceCertaintyComponent)) - return false; - EvidenceCertaintyComponent o = (EvidenceCertaintyComponent) other_; - return compareValues(description, o.description, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(description, note, rating - , certaintySubcomponent); - } - - public String fhirType() { - return "Evidence.certainty"; - - } - - } - - @Block() - public static class EvidenceCertaintyCertaintySubcomponentComponent extends BackboneElement implements IBaseBackboneElement { - /** - * Textual description of certainty subcomponent. - */ - @Child(name = "description", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Textual description of certainty subcomponent", formalDefinition="Textual description of certainty subcomponent." ) - protected StringType description; - - /** - * Footnotes and/or explanatory notes. - */ - @Child(name = "note", type = {Annotation.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Footnotes and/or explanatory notes", formalDefinition="Footnotes and/or explanatory notes." ) - protected List note; - - /** - * Aspect of quality or certainty being rated. - */ - @Child(name = "type", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Aspect of quality or certainty being rated", formalDefinition="Aspect of quality or certainty being rated." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/certainty-subcomponent-type") - protected List type; - - /** - * Quality or certainty of the aspect. - */ - @Child(name = "rating", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Quality or certainty of the aspect", formalDefinition="Quality or certainty of the aspect." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/certainty-subcomponent-rating") - protected List rating; - - private static final long serialVersionUID = 619041733L; - - /** - * Constructor - */ - public EvidenceCertaintyCertaintySubcomponentComponent() { - super(); - } - - /** - * @return {@link #description} (Textual description of certainty subcomponent.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value - */ - public StringType getDescriptionElement() { - if (this.description == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create EvidenceCertaintyCertaintySubcomponentComponent.description"); - else if (Configuration.doAutoCreate()) - this.description = new StringType(); // bb - return this.description; - } - - public boolean hasDescriptionElement() { - return this.description != null && !this.description.isEmpty(); - } - - public boolean hasDescription() { - return this.description != null && !this.description.isEmpty(); - } - - /** - * @param value {@link #description} (Textual description of certainty subcomponent.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value - */ - public EvidenceCertaintyCertaintySubcomponentComponent setDescriptionElement(StringType value) { - this.description = value; - return this; - } - - /** - * @return Textual description of certainty subcomponent. - */ - public String getDescription() { - return this.description == null ? null : this.description.getValue(); - } - - /** - * @param value Textual description of certainty subcomponent. - */ - public EvidenceCertaintyCertaintySubcomponentComponent setDescription(String value) { - if (Utilities.noString(value)) - this.description = null; - else { - if (this.description == null) - this.description = new StringType(); - this.description.setValue(value); - } - return this; - } - - /** - * @return {@link #note} (Footnotes and/or explanatory notes.) - */ - public List getNote() { - if (this.note == null) - this.note = new ArrayList(); - return this.note; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public EvidenceCertaintyCertaintySubcomponentComponent setNote(List theNote) { - this.note = theNote; - return this; - } - - public boolean hasNote() { - if (this.note == null) - return false; - for (Annotation item : this.note) - if (!item.isEmpty()) - return true; - return false; - } - - public Annotation addNote() { //3 - Annotation t = new Annotation(); - if (this.note == null) - this.note = new ArrayList(); - this.note.add(t); - return t; - } - - public EvidenceCertaintyCertaintySubcomponentComponent addNote(Annotation t) { //3 - if (t == null) - return this; - if (this.note == null) - this.note = new ArrayList(); - this.note.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist {3} - */ - public Annotation getNoteFirstRep() { - if (getNote().isEmpty()) { - addNote(); - } - return getNote().get(0); - } - - /** - * @return {@link #type} (Aspect of quality or certainty being rated.) - */ - public List getType() { - if (this.type == null) - this.type = new ArrayList(); - return this.type; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public EvidenceCertaintyCertaintySubcomponentComponent setType(List theType) { - this.type = theType; - return this; - } - - public boolean hasType() { - if (this.type == null) - return false; - for (CodeableConcept item : this.type) - if (!item.isEmpty()) - return true; - return false; - } - - public CodeableConcept addType() { //3 - CodeableConcept t = new CodeableConcept(); - if (this.type == null) - this.type = new ArrayList(); - this.type.add(t); - return t; - } - - public EvidenceCertaintyCertaintySubcomponentComponent addType(CodeableConcept t) { //3 - if (t == null) - return this; - if (this.type == null) - this.type = new ArrayList(); - this.type.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #type}, creating it if it does not already exist {3} - */ - public CodeableConcept getTypeFirstRep() { - if (getType().isEmpty()) { - addType(); - } - return getType().get(0); - } - - /** - * @return {@link #rating} (Quality or certainty of the aspect.) - */ - public List getRating() { - if (this.rating == null) - this.rating = new ArrayList(); - return this.rating; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public EvidenceCertaintyCertaintySubcomponentComponent setRating(List theRating) { - this.rating = theRating; - return this; - } - - public boolean hasRating() { - if (this.rating == null) - return false; - for (CodeableConcept item : this.rating) - if (!item.isEmpty()) - return true; - return false; - } - - public CodeableConcept addRating() { //3 - CodeableConcept t = new CodeableConcept(); - if (this.rating == null) - this.rating = new ArrayList(); - this.rating.add(t); - return t; - } - - public EvidenceCertaintyCertaintySubcomponentComponent addRating(CodeableConcept t) { //3 - if (t == null) - return this; - if (this.rating == null) - this.rating = new ArrayList(); - this.rating.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #rating}, creating it if it does not already exist {3} - */ - public CodeableConcept getRatingFirstRep() { - if (getRating().isEmpty()) { - addRating(); - } - return getRating().get(0); - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("description", "string", "Textual description of certainty subcomponent.", 0, 1, description)); - children.add(new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, note)); - children.add(new Property("type", "CodeableConcept", "Aspect of quality or certainty being rated.", 0, java.lang.Integer.MAX_VALUE, type)); - children.add(new Property("rating", "CodeableConcept", "Quality or certainty of the aspect.", 0, java.lang.Integer.MAX_VALUE, rating)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case -1724546052: /*description*/ return new Property("description", "string", "Textual description of certainty subcomponent.", 0, 1, description); - case 3387378: /*note*/ return new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, note); - case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Aspect of quality or certainty being rated.", 0, java.lang.Integer.MAX_VALUE, type); - case -938102371: /*rating*/ return new Property("rating", "CodeableConcept", "Quality or certainty of the aspect.", 0, java.lang.Integer.MAX_VALUE, rating); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType - case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation - case 3575610: /*type*/ return this.type == null ? new Base[0] : this.type.toArray(new Base[this.type.size()]); // CodeableConcept - case -938102371: /*rating*/ return this.rating == null ? new Base[0] : this.rating.toArray(new Base[this.rating.size()]); // CodeableConcept - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case -1724546052: // description - this.description = TypeConvertor.castToString(value); // StringType - return value; - case 3387378: // note - this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation - return value; - case 3575610: // type - this.getType().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept - return value; - case -938102371: // rating - this.getRating().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("description")) { - this.description = TypeConvertor.castToString(value); // StringType - } else if (name.equals("note")) { - this.getNote().add(TypeConvertor.castToAnnotation(value)); - } else if (name.equals("type")) { - this.getType().add(TypeConvertor.castToCodeableConcept(value)); - } else if (name.equals("rating")) { - this.getRating().add(TypeConvertor.castToCodeableConcept(value)); - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -1724546052: return getDescriptionElement(); - case 3387378: return addNote(); - case 3575610: return addType(); - case -938102371: return addRating(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -1724546052: /*description*/ return new String[] {"string"}; - case 3387378: /*note*/ return new String[] {"Annotation"}; - case 3575610: /*type*/ return new String[] {"CodeableConcept"}; - case -938102371: /*rating*/ return new String[] {"CodeableConcept"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type Evidence.certainty.certaintySubcomponent.description"); - } - else if (name.equals("note")) { - return addNote(); - } - else if (name.equals("type")) { - return addType(); - } - else if (name.equals("rating")) { - return addRating(); - } - else - return super.addChild(name); - } - - public EvidenceCertaintyCertaintySubcomponentComponent copy() { - EvidenceCertaintyCertaintySubcomponentComponent dst = new EvidenceCertaintyCertaintySubcomponentComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(EvidenceCertaintyCertaintySubcomponentComponent dst) { - super.copyValues(dst); - dst.description = description == null ? null : description.copy(); - if (note != null) { - dst.note = new ArrayList(); - for (Annotation i : note) - dst.note.add(i.copy()); - }; - if (type != null) { - dst.type = new ArrayList(); - for (CodeableConcept i : type) - dst.type.add(i.copy()); - }; - if (rating != null) { - dst.rating = new ArrayList(); - for (CodeableConcept i : rating) - dst.rating.add(i.copy()); - }; - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof EvidenceCertaintyCertaintySubcomponentComponent)) - return false; - EvidenceCertaintyCertaintySubcomponentComponent o = (EvidenceCertaintyCertaintySubcomponentComponent) other_; return compareDeep(description, o.description, true) && compareDeep(note, o.note, true) && compareDeep(type, o.type, true) - && compareDeep(rating, o.rating, true); + && compareDeep(rating, o.rating, true) && compareDeep(rater, o.rater, true) && compareDeep(subcomponent, o.subcomponent, true) + ; } @Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof EvidenceCertaintyCertaintySubcomponentComponent)) + if (!(other_ instanceof EvidenceCertaintyComponent)) return false; - EvidenceCertaintyCertaintySubcomponentComponent o = (EvidenceCertaintyCertaintySubcomponentComponent) other_; - return compareValues(description, o.description, true); + EvidenceCertaintyComponent o = (EvidenceCertaintyComponent) other_; + return compareValues(description, o.description, true) && compareValues(rater, o.rater, true); } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(description, note, type - , rating); + , rating, rater, subcomponent); } public String fhirType() { - return "Evidence.certainty.certaintySubcomponent"; + return "Evidence.certainty"; } @@ -1368,10 +1037,17 @@ public class Evidence extends MetadataResource { @Description(shortDefinition="Name for this summary (human friendly)", formalDefinition="A short, descriptive, user-friendly title for the summary." ) protected StringType title; + /** + * Citation Resource or display of suggested citation for this evidence. + */ + @Child(name = "citeAs", type = {Citation.class, MarkdownType.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Citation for this evidence", formalDefinition="Citation Resource or display of suggested citation for this evidence." ) + protected DataType citeAs; + /** * The status of this summary. Enables tracking the life-cycle of the content. */ - @Child(name = "status", type = {CodeType.class}, order=4, min=1, max=1, modifier=true, summary=true) + @Child(name = "status", type = {CodeType.class}, order=5, min=1, max=1, modifier=true, summary=true) @Description(shortDefinition="draft | active | retired | unknown", formalDefinition="The status of this summary. Enables tracking the life-cycle of the content." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/publication-status") protected Enumeration status; @@ -1379,146 +1055,146 @@ public class Evidence extends MetadataResource { /** * The date (and optionally time) when the summary was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the summary changes. */ - @Child(name = "date", type = {DateTimeType.class}, order=5, min=0, max=1, modifier=false, summary=true) + @Child(name = "date", type = {DateTimeType.class}, order=6, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Date last changed", formalDefinition="The date (and optionally time) when the summary was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the summary changes." ) protected DateTimeType date; /** * The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate evidence instances. */ - @Child(name = "useContext", type = {UsageContext.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "useContext", type = {UsageContext.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="The context that the content is intended to support", formalDefinition="The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate evidence instances." ) protected List useContext; /** * The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. */ - @Child(name = "approvalDate", type = {DateType.class}, order=7, min=0, max=1, modifier=false, summary=false) + @Child(name = "approvalDate", type = {DateType.class}, order=8, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="When the summary was approved by publisher", formalDefinition="The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage." ) protected DateType approvalDate; /** * The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date. */ - @Child(name = "lastReviewDate", type = {DateType.class}, order=8, min=0, max=1, modifier=false, summary=false) + @Child(name = "lastReviewDate", type = {DateType.class}, order=9, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="When the summary was last reviewed", formalDefinition="The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date." ) protected DateType lastReviewDate; /** * The name of the organization or individual that published the evidence. */ - @Child(name = "publisher", type = {StringType.class}, order=9, min=0, max=1, modifier=false, summary=true) + @Child(name = "publisher", type = {StringType.class}, order=10, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Name of the publisher (organization or individual)", formalDefinition="The name of the organization or individual that published the evidence." ) protected StringType publisher; /** * Contact details to assist a user in finding and communicating with the publisher. */ - @Child(name = "contact", type = {ContactDetail.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "contact", type = {ContactDetail.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Contact details for the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." ) protected List contact; /** * An individiual, organization, or device primarily involved in the creation and maintenance of the content. */ - @Child(name = "author", type = {ContactDetail.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "author", type = {ContactDetail.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Who authored the content", formalDefinition="An individiual, organization, or device primarily involved in the creation and maintenance of the content." ) protected List author; /** * An individiual, organization, or device primarily responsible for internal coherence of the content. */ - @Child(name = "editor", type = {ContactDetail.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "editor", type = {ContactDetail.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Who edited the content", formalDefinition="An individiual, organization, or device primarily responsible for internal coherence of the content." ) protected List editor; /** * An individiual, organization, or device primarily responsible for review of some aspect of the content. */ - @Child(name = "reviewer", type = {ContactDetail.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "reviewer", type = {ContactDetail.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Who reviewed the content", formalDefinition="An individiual, organization, or device primarily responsible for review of some aspect of the content." ) protected List reviewer; /** * An individiual, organization, or device responsible for officially endorsing the content for use in some setting. */ - @Child(name = "endorser", type = {ContactDetail.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "endorser", type = {ContactDetail.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Who endorsed the content", formalDefinition="An individiual, organization, or device responsible for officially endorsing the content for use in some setting." ) protected List endorser; /** * Link or citation to artifact associated with the summary. */ - @Child(name = "relatedArtifact", type = {RelatedArtifact.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "relatedArtifact", type = {RelatedArtifact.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Link or citation to artifact associated with the summary", formalDefinition="Link or citation to artifact associated with the summary." ) protected List relatedArtifact; /** * A free text natural language description of the evidence from a consumer's perspective. */ - @Child(name = "description", type = {MarkdownType.class}, order=16, min=0, max=1, modifier=false, summary=false) + @Child(name = "description", type = {MarkdownType.class}, order=17, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Description of the particular summary", formalDefinition="A free text natural language description of the evidence from a consumer's perspective." ) protected MarkdownType description; /** * Declarative description of the Evidence. */ - @Child(name = "assertion", type = {MarkdownType.class}, order=17, min=0, max=1, modifier=false, summary=false) + @Child(name = "assertion", type = {MarkdownType.class}, order=18, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Declarative description of the Evidence", formalDefinition="Declarative description of the Evidence." ) protected MarkdownType assertion; /** * Footnotes and/or explanatory notes. */ - @Child(name = "note", type = {Annotation.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "note", type = {Annotation.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Footnotes and/or explanatory notes", formalDefinition="Footnotes and/or explanatory notes." ) protected List note; /** * Evidence variable such as population, exposure, or outcome. */ - @Child(name = "variableDefinition", type = {}, order=19, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "variableDefinition", type = {}, order=20, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Evidence variable such as population, exposure, or outcome", formalDefinition="Evidence variable such as population, exposure, or outcome." ) protected List variableDefinition; /** - * The particular type of synthesis if this is a synthesis summary. + * The method to combine studies. */ - @Child(name = "synthesisType", type = {CodeableConcept.class}, order=20, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The particular type of synthesis if this is a synthesis summary", formalDefinition="The particular type of synthesis if this is a synthesis summary." ) + @Child(name = "synthesisType", type = {CodeableConcept.class}, order=21, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The method to combine studies", formalDefinition="The method to combine studies." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/synthesis-type") protected CodeableConcept synthesisType; /** - * The type of study that produced this summary. + * The type of study that produced this evidence. */ - @Child(name = "studyType", type = {CodeableConcept.class}, order=21, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The type of study that produced this summary", formalDefinition="The type of study that produced this summary." ) + @Child(name = "studyType", type = {CodeableConcept.class}, order=22, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The type of study that produced this evidence", formalDefinition="The type of study that produced this evidence." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/study-type") protected CodeableConcept studyType; /** - * The statistic value(s). + * Values and parameters for a single statistic. */ - @Child(name = "statistic", type = {Statistic.class}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Values and parameters for a single statistic", formalDefinition="The statistic value(s)." ) + @Child(name = "statistic", type = {Statistic.class}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Values and parameters for a single statistic", formalDefinition="Values and parameters for a single statistic." ) protected List statistic; /** - * Ordered distribution. + * An ordered group of statistics. */ - @Child(name = "distribution", type = {OrderedDistribution.class}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="An ordered group of statistics", formalDefinition="Ordered distribution." ) + @Child(name = "distribution", type = {OrderedDistribution.class}, order=24, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="An ordered group of statistics", formalDefinition="An ordered group of statistics." ) protected List distribution; /** - * Level of certainty. + * Assessment of certainty, confidence in the estimates, or quality of the evidence. */ - @Child(name = "certainty", type = {}, order=24, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Level of certainty", formalDefinition="Level of certainty." ) + @Child(name = "certainty", type = {}, order=25, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Certainty or quality of the evidence", formalDefinition="Assessment of certainty, confidence in the estimates, or quality of the evidence." ) protected List certainty; - private static final long serialVersionUID = 100960848L; + private static final long serialVersionUID = -2080725419L; /** * Constructor @@ -1736,6 +1412,57 @@ public class Evidence extends MetadataResource { return this; } + /** + * @return {@link #citeAs} (Citation Resource or display of suggested citation for this evidence.) + */ + public DataType getCiteAs() { + return this.citeAs; + } + + /** + * @return {@link #citeAs} (Citation Resource or display of suggested citation for this evidence.) + */ + public Reference getCiteAsReference() throws FHIRException { + if (this.citeAs == null) + this.citeAs = new Reference(); + if (!(this.citeAs instanceof Reference)) + throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.citeAs.getClass().getName()+" was encountered"); + return (Reference) this.citeAs; + } + + public boolean hasCiteAsReference() { + return this != null && this.citeAs instanceof Reference; + } + + /** + * @return {@link #citeAs} (Citation Resource or display of suggested citation for this evidence.) + */ + public MarkdownType getCiteAsMarkdownType() throws FHIRException { + if (this.citeAs == null) + this.citeAs = new MarkdownType(); + if (!(this.citeAs instanceof MarkdownType)) + throw new FHIRException("Type mismatch: the type MarkdownType was expected, but "+this.citeAs.getClass().getName()+" was encountered"); + return (MarkdownType) this.citeAs; + } + + public boolean hasCiteAsMarkdownType() { + return this != null && this.citeAs instanceof MarkdownType; + } + + public boolean hasCiteAs() { + return this.citeAs != null && !this.citeAs.isEmpty(); + } + + /** + * @param value {@link #citeAs} (Citation Resource or display of suggested citation for this evidence.) + */ + public Evidence setCiteAs(DataType value) { + if (value != null && !(value instanceof Reference || value instanceof MarkdownType)) + throw new Error("Not the right type for Evidence.citeAs[x]: "+value.fhirType()); + this.citeAs = value; + return this; + } + /** * @return {@link #status} (The status of this summary. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ @@ -2553,7 +2280,7 @@ public class Evidence extends MetadataResource { } /** - * @return {@link #synthesisType} (The particular type of synthesis if this is a synthesis summary.) + * @return {@link #synthesisType} (The method to combine studies.) */ public CodeableConcept getSynthesisType() { if (this.synthesisType == null) @@ -2569,7 +2296,7 @@ public class Evidence extends MetadataResource { } /** - * @param value {@link #synthesisType} (The particular type of synthesis if this is a synthesis summary.) + * @param value {@link #synthesisType} (The method to combine studies.) */ public Evidence setSynthesisType(CodeableConcept value) { this.synthesisType = value; @@ -2577,7 +2304,7 @@ public class Evidence extends MetadataResource { } /** - * @return {@link #studyType} (The type of study that produced this summary.) + * @return {@link #studyType} (The type of study that produced this evidence.) */ public CodeableConcept getStudyType() { if (this.studyType == null) @@ -2593,7 +2320,7 @@ public class Evidence extends MetadataResource { } /** - * @param value {@link #studyType} (The type of study that produced this summary.) + * @param value {@link #studyType} (The type of study that produced this evidence.) */ public Evidence setStudyType(CodeableConcept value) { this.studyType = value; @@ -2601,7 +2328,7 @@ public class Evidence extends MetadataResource { } /** - * @return {@link #statistic} (The statistic value(s).) + * @return {@link #statistic} (Values and parameters for a single statistic.) */ public List getStatistic() { if (this.statistic == null) @@ -2654,7 +2381,7 @@ public class Evidence extends MetadataResource { } /** - * @return {@link #distribution} (Ordered distribution.) + * @return {@link #distribution} (An ordered group of statistics.) */ public List getDistribution() { if (this.distribution == null) @@ -2707,7 +2434,7 @@ public class Evidence extends MetadataResource { } /** - * @return {@link #certainty} (Level of certainty.) + * @return {@link #certainty} (Assessment of certainty, confidence in the estimates, or quality of the evidence.) */ public List getCertainty() { if (this.certainty == null) @@ -2961,12 +2688,48 @@ public class Evidence extends MetadataResource { throw new Error("The resource type \"Evidence\" does not implement the property \"effectivePeriod\""); } + /** + * not supported on this implementation + */ + @Override + public int getTopicMax() { + return 0; + } + /** + * @return {@link #topic} (Descriptive topics related to the content of the library. Topics provide a high-level categorization of the library that can be useful for filtering and searching.) + */ + public List getTopic() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public Evidence setTopic(List theTopic) { + throw new Error("The resource type \"Evidence\" does not implement the property \"topic\""); + } + public boolean hasTopic() { + return false; + } + + public CodeableConcept addTopic() { //3 + throw new Error("The resource type \"Evidence\" does not implement the property \"topic\""); + } + public Evidence addTopic(CodeableConcept t) { //3 + throw new Error("The resource type \"Evidence\" does not implement the property \"topic\""); + } + /** + * @return The first repetition of repeating field {@link #topic}, creating it if it does not already exist {2} + */ + public CodeableConcept getTopicFirstRep() { + throw new Error("The resource type \"Evidence\" does not implement the property \"topic\""); + } protected void listChildren(List children) { super.listChildren(children); children.add(new Property("url", "uri", "An absolute URI that is used to identify this evidence when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this summary is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the summary is stored on different servers.", 0, 1, url)); children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this summary when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier)); children.add(new Property("version", "string", "The identifier that is used to identify this version of the summary when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the summary author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version)); children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the summary.", 0, 1, title)); + children.add(new Property("citeAs[x]", "Reference(Citation)|markdown", "Citation Resource or display of suggested citation for this evidence.", 0, 1, citeAs)); children.add(new Property("status", "code", "The status of this summary. Enables tracking the life-cycle of the content.", 0, 1, status)); children.add(new Property("date", "dateTime", "The date (and optionally time) when the summary was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the summary changes.", 0, 1, date)); children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate evidence instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); @@ -2983,11 +2746,11 @@ public class Evidence extends MetadataResource { children.add(new Property("assertion", "markdown", "Declarative description of the Evidence.", 0, 1, assertion)); children.add(new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, note)); children.add(new Property("variableDefinition", "", "Evidence variable such as population, exposure, or outcome.", 0, java.lang.Integer.MAX_VALUE, variableDefinition)); - children.add(new Property("synthesisType", "CodeableConcept", "The particular type of synthesis if this is a synthesis summary.", 0, 1, synthesisType)); - children.add(new Property("studyType", "CodeableConcept", "The type of study that produced this summary.", 0, 1, studyType)); - children.add(new Property("statistic", "Statistic", "The statistic value(s).", 0, java.lang.Integer.MAX_VALUE, statistic)); - children.add(new Property("distribution", "OrderedDistribution", "Ordered distribution.", 0, java.lang.Integer.MAX_VALUE, distribution)); - children.add(new Property("certainty", "", "Level of certainty.", 0, java.lang.Integer.MAX_VALUE, certainty)); + children.add(new Property("synthesisType", "CodeableConcept", "The method to combine studies.", 0, 1, synthesisType)); + children.add(new Property("studyType", "CodeableConcept", "The type of study that produced this evidence.", 0, 1, studyType)); + children.add(new Property("statistic", "Statistic", "Values and parameters for a single statistic.", 0, java.lang.Integer.MAX_VALUE, statistic)); + children.add(new Property("distribution", "OrderedDistribution", "An ordered group of statistics.", 0, java.lang.Integer.MAX_VALUE, distribution)); + children.add(new Property("certainty", "", "Assessment of certainty, confidence in the estimates, or quality of the evidence.", 0, java.lang.Integer.MAX_VALUE, certainty)); } @Override @@ -2997,6 +2760,10 @@ public class Evidence extends MetadataResource { case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this summary when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier); case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the summary when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the summary author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version); case 110371416: /*title*/ return new Property("title", "string", "A short, descriptive, user-friendly title for the summary.", 0, 1, title); + case -1706539017: /*citeAs[x]*/ return new Property("citeAs[x]", "Reference(Citation)|markdown", "Citation Resource or display of suggested citation for this evidence.", 0, 1, citeAs); + case -1360156695: /*citeAs*/ return new Property("citeAs[x]", "Reference(Citation)|markdown", "Citation Resource or display of suggested citation for this evidence.", 0, 1, citeAs); + case 1269009762: /*citeAsReference*/ return new Property("citeAs[x]", "Reference(Citation)", "Citation Resource or display of suggested citation for this evidence.", 0, 1, citeAs); + case 456265720: /*citeAsMarkdown*/ return new Property("citeAs[x]", "markdown", "Citation Resource or display of suggested citation for this evidence.", 0, 1, citeAs); case -892481550: /*status*/ return new Property("status", "code", "The status of this summary. Enables tracking the life-cycle of the content.", 0, 1, status); case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the summary was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the summary changes.", 0, 1, date); case -669707736: /*useContext*/ return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate evidence instances.", 0, java.lang.Integer.MAX_VALUE, useContext); @@ -3013,11 +2780,11 @@ public class Evidence extends MetadataResource { case 1314395906: /*assertion*/ return new Property("assertion", "markdown", "Declarative description of the Evidence.", 0, 1, assertion); case 3387378: /*note*/ return new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, note); case -1807222545: /*variableDefinition*/ return new Property("variableDefinition", "", "Evidence variable such as population, exposure, or outcome.", 0, java.lang.Integer.MAX_VALUE, variableDefinition); - case 672726254: /*synthesisType*/ return new Property("synthesisType", "CodeableConcept", "The particular type of synthesis if this is a synthesis summary.", 0, 1, synthesisType); - case -1955265373: /*studyType*/ return new Property("studyType", "CodeableConcept", "The type of study that produced this summary.", 0, 1, studyType); - case -2081261232: /*statistic*/ return new Property("statistic", "Statistic", "The statistic value(s).", 0, java.lang.Integer.MAX_VALUE, statistic); - case -1580708220: /*distribution*/ return new Property("distribution", "OrderedDistribution", "Ordered distribution.", 0, java.lang.Integer.MAX_VALUE, distribution); - case -1404142937: /*certainty*/ return new Property("certainty", "", "Level of certainty.", 0, java.lang.Integer.MAX_VALUE, certainty); + case 672726254: /*synthesisType*/ return new Property("synthesisType", "CodeableConcept", "The method to combine studies.", 0, 1, synthesisType); + case -1955265373: /*studyType*/ return new Property("studyType", "CodeableConcept", "The type of study that produced this evidence.", 0, 1, studyType); + case -2081261232: /*statistic*/ return new Property("statistic", "Statistic", "Values and parameters for a single statistic.", 0, java.lang.Integer.MAX_VALUE, statistic); + case -1580708220: /*distribution*/ return new Property("distribution", "OrderedDistribution", "An ordered group of statistics.", 0, java.lang.Integer.MAX_VALUE, distribution); + case -1404142937: /*certainty*/ return new Property("certainty", "", "Assessment of certainty, confidence in the estimates, or quality of the evidence.", 0, java.lang.Integer.MAX_VALUE, certainty); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -3030,6 +2797,7 @@ public class Evidence extends MetadataResource { case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType + case -1360156695: /*citeAs*/ return this.citeAs == null ? new Base[0] : new Base[] {this.citeAs}; // DataType case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext @@ -3071,6 +2839,9 @@ public class Evidence extends MetadataResource { case 110371416: // title this.title = TypeConvertor.castToString(value); // StringType return value; + case -1360156695: // citeAs + this.citeAs = TypeConvertor.castToType(value); // DataType + return value; case -892481550: // status value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); this.status = (Enumeration) value; // Enumeration @@ -3150,6 +2921,8 @@ public class Evidence extends MetadataResource { this.version = TypeConvertor.castToString(value); // StringType } else if (name.equals("title")) { this.title = TypeConvertor.castToString(value); // StringType + } else if (name.equals("citeAs[x]")) { + this.citeAs = TypeConvertor.castToType(value); // DataType } else if (name.equals("status")) { value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); this.status = (Enumeration) value; // Enumeration @@ -3205,6 +2978,8 @@ public class Evidence extends MetadataResource { case -1618432855: return addIdentifier(); case 351608024: return getVersionElement(); case 110371416: return getTitleElement(); + case -1706539017: return getCiteAs(); + case -1360156695: return getCiteAs(); case -892481550: return getStatusElement(); case 3076014: return getDateElement(); case -669707736: return addUseContext(); @@ -3238,6 +3013,7 @@ public class Evidence extends MetadataResource { case -1618432855: /*identifier*/ return new String[] {"Identifier"}; case 351608024: /*version*/ return new String[] {"string"}; case 110371416: /*title*/ return new String[] {"string"}; + case -1360156695: /*citeAs*/ return new String[] {"Reference", "markdown"}; case -892481550: /*status*/ return new String[] {"code"}; case 3076014: /*date*/ return new String[] {"dateTime"}; case -669707736: /*useContext*/ return new String[] {"UsageContext"}; @@ -3278,6 +3054,14 @@ public class Evidence extends MetadataResource { else if (name.equals("title")) { throw new FHIRException("Cannot call addChild on a primitive type Evidence.title"); } + else if (name.equals("citeAsReference")) { + this.citeAs = new Reference(); + return this.citeAs; + } + else if (name.equals("citeAsMarkdown")) { + this.citeAs = new MarkdownType(); + return this.citeAs; + } else if (name.equals("status")) { throw new FHIRException("Cannot call addChild on a primitive type Evidence.status"); } @@ -3368,6 +3152,7 @@ public class Evidence extends MetadataResource { }; dst.version = version == null ? null : version.copy(); dst.title = title == null ? null : title.copy(); + dst.citeAs = citeAs == null ? null : citeAs.copy(); dst.status = status == null ? null : status.copy(); dst.date = date == null ? null : date.copy(); if (useContext != null) { @@ -3451,8 +3236,8 @@ public class Evidence extends MetadataResource { return false; Evidence o = (Evidence) other_; return compareDeep(url, o.url, true) && compareDeep(identifier, o.identifier, true) && compareDeep(version, o.version, true) - && compareDeep(title, o.title, true) && compareDeep(status, o.status, true) && compareDeep(date, o.date, true) - && compareDeep(useContext, o.useContext, true) && compareDeep(approvalDate, o.approvalDate, true) + && compareDeep(title, o.title, true) && compareDeep(citeAs, o.citeAs, true) && compareDeep(status, o.status, true) + && compareDeep(date, o.date, true) && compareDeep(useContext, o.useContext, true) && compareDeep(approvalDate, o.approvalDate, true) && compareDeep(lastReviewDate, o.lastReviewDate, true) && compareDeep(publisher, o.publisher, true) && compareDeep(contact, o.contact, true) && compareDeep(author, o.author, true) && compareDeep(editor, o.editor, true) && compareDeep(reviewer, o.reviewer, true) && compareDeep(endorser, o.endorser, true) && compareDeep(relatedArtifact, o.relatedArtifact, true) @@ -3477,8 +3262,8 @@ public class Evidence extends MetadataResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, identifier, version - , title, status, date, useContext, approvalDate, lastReviewDate, publisher, contact - , author, editor, reviewer, endorser, relatedArtifact, description, assertion + , title, citeAs, status, date, useContext, approvalDate, lastReviewDate, publisher + , contact, author, editor, reviewer, endorser, relatedArtifact, description, assertion , note, variableDefinition, synthesisType, studyType, statistic, distribution, certainty ); } @@ -3488,6 +3273,26 @@ public class Evidence extends MetadataResource { return ResourceType.Evidence; } + /** + * Search parameter: context + *

+ * Description: A use context assigned to the evidence
+ * Type: token
+ * Path: (Evidence.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(Evidence.useContext.value as CodeableConcept)", description="A use context assigned to the evidence", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: A use context assigned to the evidence
+ * Type: token
+ * Path: (Evidence.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -3508,46 +3313,6 @@ public class Evidence extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the evidence
- * Type: composite
- * Path: Evidence.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="Evidence.useContext", description="A use context type and quantity- or range-based value assigned to the evidence", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the evidence
- * Type: composite
- * Path: Evidence.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: A use context type and value assigned to the evidence
- * Type: composite
- * Path: Evidence.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="Evidence.useContext", description="A use context type and value assigned to the evidence", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: A use context type and value assigned to the evidence
- * Type: composite
- * Path: Evidence.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -3568,26 +3333,6 @@ public class Evidence extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: A use context assigned to the evidence
- * Type: token
- * Path: (Evidence.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(Evidence.useContext.value as CodeableConcept)", description="A use context assigned to the evidence", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: A use context assigned to the evidence
- * Type: token
- * Path: (Evidence.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -3748,6 +3493,46 @@ public class Evidence extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the evidence
+ * Type: composite
+ * Path: Evidence.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="Evidence.useContext", description="A use context type and quantity- or range-based value assigned to the evidence", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the evidence
+ * Type: composite
+ * Path: Evidence.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: A use context type and value assigned to the evidence
+ * Type: composite
+ * Path: Evidence.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="Evidence.useContext", description="A use context type and value assigned to the evidence", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: A use context type and value assigned to the evidence
+ * Type: composite
+ * Path: Evidence.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceReport.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceReport.java index 4eedbb8f4..f94baa7cf 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceReport.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceReport.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -48,7 +48,7 @@ import ca.uhn.fhir.model.api.annotation.Description; import ca.uhn.fhir.model.api.annotation.Block; /** - * The EvidenceReport. + * The EvidenceReport Resource is a specialized container for a collection of resources and codable concepts, adapted to support compositions of Evidence, EvidenceVariable, and Citation resources and related concepts. */ @ResourceDef(name="EvidenceReport", profile="http://hl7.org/fhir/StructureDefinition/EvidenceReport") public class EvidenceReport extends MetadataResource { @@ -70,6 +70,22 @@ public class EvidenceReport extends MetadataResource { * This document was generated by transforming the target document (eg format or language conversion). */ TRANSFORMS, + /** + * This document was. + */ + REPLACEDWITH, + /** + * This document was. + */ + AMENDEDWITH, + /** + * This document was. + */ + APPENDEDWITH, + /** + * This document was. + */ + TRANSFORMEDWITH, /** * added to help the parsers with the generic types */ @@ -85,6 +101,14 @@ public class EvidenceReport extends MetadataResource { return APPENDS; if ("transforms".equals(codeString)) return TRANSFORMS; + if ("replacedWith".equals(codeString)) + return REPLACEDWITH; + if ("amendedWith".equals(codeString)) + return AMENDEDWITH; + if ("appendedWith".equals(codeString)) + return APPENDEDWITH; + if ("transformedWith".equals(codeString)) + return TRANSFORMEDWITH; if (Configuration.isAcceptInvalidEnums()) return null; else @@ -96,7 +120,10 @@ public class EvidenceReport extends MetadataResource { case AMENDS: return "amends"; case APPENDS: return "appends"; case TRANSFORMS: return "transforms"; - case NULL: return null; + case REPLACEDWITH: return "replacedWith"; + case AMENDEDWITH: return "amendedWith"; + case APPENDEDWITH: return "appendedWith"; + case TRANSFORMEDWITH: return "transformedWith"; default: return "?"; } } @@ -106,7 +133,10 @@ public class EvidenceReport extends MetadataResource { case AMENDS: return "http://hl7.org/fhir/report-relation-type"; case APPENDS: return "http://hl7.org/fhir/report-relation-type"; case TRANSFORMS: return "http://hl7.org/fhir/report-relation-type"; - case NULL: return null; + case REPLACEDWITH: return "http://hl7.org/fhir/report-relation-type"; + case AMENDEDWITH: return "http://hl7.org/fhir/report-relation-type"; + case APPENDEDWITH: return "http://hl7.org/fhir/report-relation-type"; + case TRANSFORMEDWITH: return "http://hl7.org/fhir/report-relation-type"; default: return "?"; } } @@ -116,7 +146,10 @@ public class EvidenceReport extends MetadataResource { case AMENDS: return "This document notes corrections or changes to replace or supersede parts of the target document."; case APPENDS: return "This document adds additional information to the target document."; case TRANSFORMS: return "This document was generated by transforming the target document (eg format or language conversion)."; - case NULL: return null; + case REPLACEDWITH: return "This document was."; + case AMENDEDWITH: return "This document was."; + case APPENDEDWITH: return "This document was."; + case TRANSFORMEDWITH: return "This document was."; default: return "?"; } } @@ -126,7 +159,10 @@ public class EvidenceReport extends MetadataResource { case AMENDS: return "Amends"; case APPENDS: return "Appends"; case TRANSFORMS: return "Transforms"; - case NULL: return null; + case REPLACEDWITH: return "Replaced With"; + case AMENDEDWITH: return "Amended With"; + case APPENDEDWITH: return "Appended With"; + case TRANSFORMEDWITH: return "Transformed With"; default: return "?"; } } @@ -145,6 +181,14 @@ public class EvidenceReport extends MetadataResource { return ReportRelationshipType.APPENDS; if ("transforms".equals(codeString)) return ReportRelationshipType.TRANSFORMS; + if ("replacedWith".equals(codeString)) + return ReportRelationshipType.REPLACEDWITH; + if ("amendedWith".equals(codeString)) + return ReportRelationshipType.AMENDEDWITH; + if ("appendedWith".equals(codeString)) + return ReportRelationshipType.APPENDEDWITH; + if ("transformedWith".equals(codeString)) + return ReportRelationshipType.TRANSFORMEDWITH; throw new IllegalArgumentException("Unknown ReportRelationshipType code '"+codeString+"'"); } public Enumeration fromType(Base code) throws FHIRException { @@ -163,6 +207,14 @@ public class EvidenceReport extends MetadataResource { return new Enumeration(this, ReportRelationshipType.APPENDS); if ("transforms".equals(codeString)) return new Enumeration(this, ReportRelationshipType.TRANSFORMS); + if ("replacedWith".equals(codeString)) + return new Enumeration(this, ReportRelationshipType.REPLACEDWITH); + if ("amendedWith".equals(codeString)) + return new Enumeration(this, ReportRelationshipType.AMENDEDWITH); + if ("appendedWith".equals(codeString)) + return new Enumeration(this, ReportRelationshipType.APPENDEDWITH); + if ("transformedWith".equals(codeString)) + return new Enumeration(this, ReportRelationshipType.TRANSFORMEDWITH); throw new FHIRException("Unknown ReportRelationshipType code '"+codeString+"'"); } public String toCode(ReportRelationshipType code) { @@ -174,6 +226,14 @@ public class EvidenceReport extends MetadataResource { return "appends"; if (code == ReportRelationshipType.TRANSFORMS) return "transforms"; + if (code == ReportRelationshipType.REPLACEDWITH) + return "replacedWith"; + if (code == ReportRelationshipType.AMENDEDWITH) + return "amendedWith"; + if (code == ReportRelationshipType.APPENDEDWITH) + return "appendedWith"; + if (code == ReportRelationshipType.TRANSFORMEDWITH) + return "transformedWith"; return "?"; } public String toSystem(ReportRelationshipType code) { @@ -872,7 +932,7 @@ public class EvidenceReport extends MetadataResource { * The type of relationship that this composition has with anther composition or document. */ @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="replaces | amends | appends | transforms", formalDefinition="The type of relationship that this composition has with anther composition or document." ) + @Description(shortDefinition="replaces | amends | appends | transforms | replacedWith | amendedWith | appendedWith | transformedWith", formalDefinition="The type of relationship that this composition has with anther composition or document." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/report-relation-type") protected Enumeration code; @@ -1192,7 +1252,7 @@ public class EvidenceReport extends MetadataResource { * Specifies any type of classification of the evidence report. */ @Child(name = "entryClassifier", type = {CodeableConcept.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Extensible classifiers", formalDefinition="Specifies any type of classification of the evidence report." ) + @Description(shortDefinition="Extensible classifiers as content", formalDefinition="Specifies any type of classification of the evidence report." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/evidence-classifier-code") protected List entryClassifier; @@ -1200,13 +1260,20 @@ public class EvidenceReport extends MetadataResource { * A reference to the actual resource from which the narrative in the section is derived. */ @Child(name = "entryReference", type = {Reference.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="A reference to data that supports this section", formalDefinition="A reference to the actual resource from which the narrative in the section is derived." ) + @Description(shortDefinition="Reference to resources as content", formalDefinition="A reference to the actual resource from which the narrative in the section is derived." ) protected List entryReference; + /** + * Quantity as content. + */ + @Child(name = "entryQuantity", type = {Quantity.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Quantity as content", formalDefinition="Quantity as content." ) + protected List entryQuantity; + /** * If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason. */ - @Child(name = "emptyReason", type = {CodeableConcept.class}, order=10, min=0, max=1, modifier=false, summary=false) + @Child(name = "emptyReason", type = {CodeableConcept.class}, order=11, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Why the section is empty", formalDefinition="If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/list-empty-reason") protected CodeableConcept emptyReason; @@ -1214,11 +1281,11 @@ public class EvidenceReport extends MetadataResource { /** * A nested sub-section within this section. */ - @Child(name = "section", type = {SectionComponent.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "section", type = {SectionComponent.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Nested Section", formalDefinition="A nested sub-section within this section." ) protected List section; - private static final long serialVersionUID = -354142458L; + private static final long serialVersionUID = -324854168L; /** * Constructor @@ -1580,6 +1647,59 @@ public class EvidenceReport extends MetadataResource { return getEntryReference().get(0); } + /** + * @return {@link #entryQuantity} (Quantity as content.) + */ + public List getEntryQuantity() { + if (this.entryQuantity == null) + this.entryQuantity = new ArrayList(); + return this.entryQuantity; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public SectionComponent setEntryQuantity(List theEntryQuantity) { + this.entryQuantity = theEntryQuantity; + return this; + } + + public boolean hasEntryQuantity() { + if (this.entryQuantity == null) + return false; + for (Quantity item : this.entryQuantity) + if (!item.isEmpty()) + return true; + return false; + } + + public Quantity addEntryQuantity() { //3 + Quantity t = new Quantity(); + if (this.entryQuantity == null) + this.entryQuantity = new ArrayList(); + this.entryQuantity.add(t); + return t; + } + + public SectionComponent addEntryQuantity(Quantity t) { //3 + if (t == null) + return this; + if (this.entryQuantity == null) + this.entryQuantity = new ArrayList(); + this.entryQuantity.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #entryQuantity}, creating it if it does not already exist {3} + */ + public Quantity getEntryQuantityFirstRep() { + if (getEntryQuantity().isEmpty()) { + addEntryQuantity(); + } + return getEntryQuantity().get(0); + } + /** * @return {@link #emptyReason} (If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.) */ @@ -1668,6 +1788,7 @@ public class EvidenceReport extends MetadataResource { children.add(new Property("orderedBy", "CodeableConcept", "Specifies the order applied to the items in the section entries.", 0, 1, orderedBy)); children.add(new Property("entryClassifier", "CodeableConcept", "Specifies any type of classification of the evidence report.", 0, java.lang.Integer.MAX_VALUE, entryClassifier)); children.add(new Property("entryReference", "Reference(Any)", "A reference to the actual resource from which the narrative in the section is derived.", 0, java.lang.Integer.MAX_VALUE, entryReference)); + children.add(new Property("entryQuantity", "Quantity", "Quantity as content.", 0, java.lang.Integer.MAX_VALUE, entryQuantity)); children.add(new Property("emptyReason", "CodeableConcept", "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.", 0, 1, emptyReason)); children.add(new Property("section", "@EvidenceReport.section", "A nested sub-section within this section.", 0, java.lang.Integer.MAX_VALUE, section)); } @@ -1684,6 +1805,7 @@ public class EvidenceReport extends MetadataResource { case -391079516: /*orderedBy*/ return new Property("orderedBy", "CodeableConcept", "Specifies the order applied to the items in the section entries.", 0, 1, orderedBy); case -948201421: /*entryClassifier*/ return new Property("entryClassifier", "CodeableConcept", "Specifies any type of classification of the evidence report.", 0, java.lang.Integer.MAX_VALUE, entryClassifier); case 438810361: /*entryReference*/ return new Property("entryReference", "Reference(Any)", "A reference to the actual resource from which the narrative in the section is derived.", 0, java.lang.Integer.MAX_VALUE, entryReference); + case 1945583389: /*entryQuantity*/ return new Property("entryQuantity", "Quantity", "Quantity as content.", 0, java.lang.Integer.MAX_VALUE, entryQuantity); case 1140135409: /*emptyReason*/ return new Property("emptyReason", "CodeableConcept", "If the section is empty, why the list is empty. An empty section typically has some text explaining the empty reason.", 0, 1, emptyReason); case 1970241253: /*section*/ return new Property("section", "@EvidenceReport.section", "A nested sub-section within this section.", 0, java.lang.Integer.MAX_VALUE, section); default: return super.getNamedProperty(_hash, _name, _checkValid); @@ -1703,6 +1825,7 @@ public class EvidenceReport extends MetadataResource { case -391079516: /*orderedBy*/ return this.orderedBy == null ? new Base[0] : new Base[] {this.orderedBy}; // CodeableConcept case -948201421: /*entryClassifier*/ return this.entryClassifier == null ? new Base[0] : this.entryClassifier.toArray(new Base[this.entryClassifier.size()]); // CodeableConcept case 438810361: /*entryReference*/ return this.entryReference == null ? new Base[0] : this.entryReference.toArray(new Base[this.entryReference.size()]); // Reference + case 1945583389: /*entryQuantity*/ return this.entryQuantity == null ? new Base[0] : this.entryQuantity.toArray(new Base[this.entryQuantity.size()]); // Quantity case 1140135409: /*emptyReason*/ return this.emptyReason == null ? new Base[0] : new Base[] {this.emptyReason}; // CodeableConcept case 1970241253: /*section*/ return this.section == null ? new Base[0] : this.section.toArray(new Base[this.section.size()]); // SectionComponent default: return super.getProperty(hash, name, checkValid); @@ -1741,6 +1864,9 @@ public class EvidenceReport extends MetadataResource { case 438810361: // entryReference this.getEntryReference().add(TypeConvertor.castToReference(value)); // Reference return value; + case 1945583389: // entryQuantity + this.getEntryQuantity().add(TypeConvertor.castToQuantity(value)); // Quantity + return value; case 1140135409: // emptyReason this.emptyReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; @@ -1773,6 +1899,8 @@ public class EvidenceReport extends MetadataResource { this.getEntryClassifier().add(TypeConvertor.castToCodeableConcept(value)); } else if (name.equals("entryReference")) { this.getEntryReference().add(TypeConvertor.castToReference(value)); + } else if (name.equals("entryQuantity")) { + this.getEntryQuantity().add(TypeConvertor.castToQuantity(value)); } else if (name.equals("emptyReason")) { this.emptyReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("section")) { @@ -1794,6 +1922,7 @@ public class EvidenceReport extends MetadataResource { case -391079516: return getOrderedBy(); case -948201421: return addEntryClassifier(); case 438810361: return addEntryReference(); + case 1945583389: return addEntryQuantity(); case 1140135409: return getEmptyReason(); case 1970241253: return addSection(); default: return super.makeProperty(hash, name); @@ -1813,6 +1942,7 @@ public class EvidenceReport extends MetadataResource { case -391079516: /*orderedBy*/ return new String[] {"CodeableConcept"}; case -948201421: /*entryClassifier*/ return new String[] {"CodeableConcept"}; case 438810361: /*entryReference*/ return new String[] {"Reference"}; + case 1945583389: /*entryQuantity*/ return new String[] {"Quantity"}; case 1140135409: /*emptyReason*/ return new String[] {"CodeableConcept"}; case 1970241253: /*section*/ return new String[] {"@EvidenceReport.section"}; default: return super.getTypesForProperty(hash, name); @@ -1853,6 +1983,9 @@ public class EvidenceReport extends MetadataResource { else if (name.equals("entryReference")) { return addEntryReference(); } + else if (name.equals("entryQuantity")) { + return addEntryQuantity(); + } else if (name.equals("emptyReason")) { this.emptyReason = new CodeableConcept(); return this.emptyReason; @@ -1893,6 +2026,11 @@ public class EvidenceReport extends MetadataResource { for (Reference i : entryReference) dst.entryReference.add(i.copy()); }; + if (entryQuantity != null) { + dst.entryQuantity = new ArrayList(); + for (Quantity i : entryQuantity) + dst.entryQuantity.add(i.copy()); + }; dst.emptyReason = emptyReason == null ? null : emptyReason.copy(); if (section != null) { dst.section = new ArrayList(); @@ -1911,8 +2049,8 @@ public class EvidenceReport extends MetadataResource { return compareDeep(title, o.title, true) && compareDeep(focus, o.focus, true) && compareDeep(focusReference, o.focusReference, true) && compareDeep(author, o.author, true) && compareDeep(text, o.text, true) && compareDeep(mode, o.mode, true) && compareDeep(orderedBy, o.orderedBy, true) && compareDeep(entryClassifier, o.entryClassifier, true) - && compareDeep(entryReference, o.entryReference, true) && compareDeep(emptyReason, o.emptyReason, true) - && compareDeep(section, o.section, true); + && compareDeep(entryReference, o.entryReference, true) && compareDeep(entryQuantity, o.entryQuantity, true) + && compareDeep(emptyReason, o.emptyReason, true) && compareDeep(section, o.section, true); } @Override @@ -1927,8 +2065,8 @@ public class EvidenceReport extends MetadataResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(title, focus, focusReference - , author, text, mode, orderedBy, entryClassifier, entryReference, emptyReason - , section); + , author, text, mode, orderedBy, entryClassifier, entryReference, entryQuantity + , emptyReason, section); } public String fhirType() { @@ -1964,22 +2102,22 @@ public class EvidenceReport extends MetadataResource { * A formal identifier that is used to identify this EvidenceReport when it is represented in other formats, or referenced in a specification, model, design or an instance. */ @Child(name = "identifier", type = {Identifier.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="May include DOI, PMID, PMCID, etc.", formalDefinition="A formal identifier that is used to identify this EvidenceReport when it is represented in other formats, or referenced in a specification, model, design or an instance." ) + @Description(shortDefinition="Unique identifier for the evidence report", formalDefinition="A formal identifier that is used to identify this EvidenceReport when it is represented in other formats, or referenced in a specification, model, design or an instance." ) protected List identifier; /** * A formal identifier that is used to identify things closely related to this EvidenceReport. */ @Child(name = "relatedIdentifier", type = {Identifier.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="May include trial registry identifiers", formalDefinition="A formal identifier that is used to identify things closely related to this EvidenceReport." ) + @Description(shortDefinition="Identifiers for articles that may relate to more than one evidence report", formalDefinition="A formal identifier that is used to identify things closely related to this EvidenceReport." ) protected List relatedIdentifier; /** * Citation Resource or display of suggested citation for this report. */ - @Child(name = "citeAs", type = {Citation.class}, order=5, min=0, max=1, modifier=false, summary=false) + @Child(name = "citeAs", type = {Citation.class, MarkdownType.class}, order=5, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Citation for this report", formalDefinition="Citation Resource or display of suggested citation for this report." ) - protected Reference citeAs; + protected DataType citeAs; /** * Specifies the kind of report, such as grouping of classifiers, search results, or human-compiled expression. @@ -2066,7 +2204,7 @@ public class EvidenceReport extends MetadataResource { @Description(shortDefinition="Composition is broken into sections", formalDefinition="The root of the sections that make up the composition." ) protected List section; - private static final long serialVersionUID = 867867967L; + private static final long serialVersionUID = -1087028792L; /** * Constructor @@ -2340,15 +2478,40 @@ public class EvidenceReport extends MetadataResource { /** * @return {@link #citeAs} (Citation Resource or display of suggested citation for this report.) */ - public Reference getCiteAs() { - if (this.citeAs == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create EvidenceReport.citeAs"); - else if (Configuration.doAutoCreate()) - this.citeAs = new Reference(); // cc + public DataType getCiteAs() { return this.citeAs; } + /** + * @return {@link #citeAs} (Citation Resource or display of suggested citation for this report.) + */ + public Reference getCiteAsReference() throws FHIRException { + if (this.citeAs == null) + this.citeAs = new Reference(); + if (!(this.citeAs instanceof Reference)) + throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.citeAs.getClass().getName()+" was encountered"); + return (Reference) this.citeAs; + } + + public boolean hasCiteAsReference() { + return this != null && this.citeAs instanceof Reference; + } + + /** + * @return {@link #citeAs} (Citation Resource or display of suggested citation for this report.) + */ + public MarkdownType getCiteAsMarkdownType() throws FHIRException { + if (this.citeAs == null) + this.citeAs = new MarkdownType(); + if (!(this.citeAs instanceof MarkdownType)) + throw new FHIRException("Type mismatch: the type MarkdownType was expected, but "+this.citeAs.getClass().getName()+" was encountered"); + return (MarkdownType) this.citeAs; + } + + public boolean hasCiteAsMarkdownType() { + return this != null && this.citeAs instanceof MarkdownType; + } + public boolean hasCiteAs() { return this.citeAs != null && !this.citeAs.isEmpty(); } @@ -2356,7 +2519,9 @@ public class EvidenceReport extends MetadataResource { /** * @param value {@link #citeAs} (Citation Resource or display of suggested citation for this report.) */ - public EvidenceReport setCiteAs(Reference value) { + public EvidenceReport setCiteAs(DataType value) { + if (value != null && !(value instanceof Reference || value instanceof MarkdownType)) + throw new Error("Not the right type for EvidenceReport.citeAs[x]: "+value.fhirType()); this.citeAs = value; return this; } @@ -3353,6 +3518,41 @@ public class EvidenceReport extends MetadataResource { throw new Error("The resource type \"EvidenceReport\" does not implement the property \"effectivePeriod\""); } + /** + * not supported on this implementation + */ + @Override + public int getTopicMax() { + return 0; + } + /** + * @return {@link #topic} (Descriptive topics related to the content of the library. Topics provide a high-level categorization of the library that can be useful for filtering and searching.) + */ + public List getTopic() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public EvidenceReport setTopic(List theTopic) { + throw new Error("The resource type \"EvidenceReport\" does not implement the property \"topic\""); + } + public boolean hasTopic() { + return false; + } + + public CodeableConcept addTopic() { //3 + throw new Error("The resource type \"EvidenceReport\" does not implement the property \"topic\""); + } + public EvidenceReport addTopic(CodeableConcept t) { //3 + throw new Error("The resource type \"EvidenceReport\" does not implement the property \"topic\""); + } + /** + * @return The first repetition of repeating field {@link #topic}, creating it if it does not already exist {2} + */ + public CodeableConcept getTopicFirstRep() { + throw new Error("The resource type \"EvidenceReport\" does not implement the property \"topic\""); + } protected void listChildren(List children) { super.listChildren(children); children.add(new Property("url", "uri", "An absolute URI that is used to identify this EvidenceReport when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this summary is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the summary is stored on different servers.", 0, 1, url)); @@ -3360,7 +3560,7 @@ public class EvidenceReport extends MetadataResource { children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate evidence report instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this EvidenceReport when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier)); children.add(new Property("relatedIdentifier", "Identifier", "A formal identifier that is used to identify things closely related to this EvidenceReport.", 0, java.lang.Integer.MAX_VALUE, relatedIdentifier)); - children.add(new Property("citeAs", "Reference(Citation)", "Citation Resource or display of suggested citation for this report.", 0, 1, citeAs)); + children.add(new Property("citeAs[x]", "Reference(Citation)|markdown", "Citation Resource or display of suggested citation for this report.", 0, 1, citeAs)); children.add(new Property("type", "CodeableConcept", "Specifies the kind of report, such as grouping of classifiers, search results, or human-compiled expression.", 0, 1, type)); children.add(new Property("note", "Annotation", "Used for footnotes and annotations.", 0, java.lang.Integer.MAX_VALUE, note)); children.add(new Property("relatedArtifact", "RelatedArtifact", "Link, description or reference to artifact associated with the report.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact)); @@ -3383,7 +3583,10 @@ public class EvidenceReport extends MetadataResource { case -669707736: /*useContext*/ return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate evidence report instances.", 0, java.lang.Integer.MAX_VALUE, useContext); case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this EvidenceReport when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier); case -1007604940: /*relatedIdentifier*/ return new Property("relatedIdentifier", "Identifier", "A formal identifier that is used to identify things closely related to this EvidenceReport.", 0, java.lang.Integer.MAX_VALUE, relatedIdentifier); - case -1360156695: /*citeAs*/ return new Property("citeAs", "Reference(Citation)", "Citation Resource or display of suggested citation for this report.", 0, 1, citeAs); + case -1706539017: /*citeAs[x]*/ return new Property("citeAs[x]", "Reference(Citation)|markdown", "Citation Resource or display of suggested citation for this report.", 0, 1, citeAs); + case -1360156695: /*citeAs*/ return new Property("citeAs[x]", "Reference(Citation)|markdown", "Citation Resource or display of suggested citation for this report.", 0, 1, citeAs); + case 1269009762: /*citeAsReference*/ return new Property("citeAs[x]", "Reference(Citation)", "Citation Resource or display of suggested citation for this report.", 0, 1, citeAs); + case 456265720: /*citeAsMarkdown*/ return new Property("citeAs[x]", "markdown", "Citation Resource or display of suggested citation for this report.", 0, 1, citeAs); case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Specifies the kind of report, such as grouping of classifiers, search results, or human-compiled expression.", 0, 1, type); case 3387378: /*note*/ return new Property("note", "Annotation", "Used for footnotes and annotations.", 0, java.lang.Integer.MAX_VALUE, note); case 666807069: /*relatedArtifact*/ return new Property("relatedArtifact", "RelatedArtifact", "Link, description or reference to artifact associated with the report.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact); @@ -3409,7 +3612,7 @@ public class EvidenceReport extends MetadataResource { case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier case -1007604940: /*relatedIdentifier*/ return this.relatedIdentifier == null ? new Base[0] : this.relatedIdentifier.toArray(new Base[this.relatedIdentifier.size()]); // Identifier - case -1360156695: /*citeAs*/ return this.citeAs == null ? new Base[0] : new Base[] {this.citeAs}; // Reference + case -1360156695: /*citeAs*/ return this.citeAs == null ? new Base[0] : new Base[] {this.citeAs}; // DataType case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation case 666807069: /*relatedArtifact*/ return this.relatedArtifact == null ? new Base[0] : this.relatedArtifact.toArray(new Base[this.relatedArtifact.size()]); // RelatedArtifact @@ -3447,7 +3650,7 @@ public class EvidenceReport extends MetadataResource { this.getRelatedIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier return value; case -1360156695: // citeAs - this.citeAs = TypeConvertor.castToReference(value); // Reference + this.citeAs = TypeConvertor.castToType(value); // DataType return value; case 3575610: // type this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept @@ -3503,8 +3706,8 @@ public class EvidenceReport extends MetadataResource { this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); } else if (name.equals("relatedIdentifier")) { this.getRelatedIdentifier().add(TypeConvertor.castToIdentifier(value)); - } else if (name.equals("citeAs")) { - this.citeAs = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("citeAs[x]")) { + this.citeAs = TypeConvertor.castToType(value); // DataType } else if (name.equals("type")) { this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("note")) { @@ -3542,6 +3745,7 @@ public class EvidenceReport extends MetadataResource { case -669707736: return addUseContext(); case -1618432855: return addIdentifier(); case -1007604940: return addRelatedIdentifier(); + case -1706539017: return getCiteAs(); case -1360156695: return getCiteAs(); case 3575610: return getType(); case 3387378: return addNote(); @@ -3568,7 +3772,7 @@ public class EvidenceReport extends MetadataResource { case -669707736: /*useContext*/ return new String[] {"UsageContext"}; case -1618432855: /*identifier*/ return new String[] {"Identifier"}; case -1007604940: /*relatedIdentifier*/ return new String[] {"Identifier"}; - case -1360156695: /*citeAs*/ return new String[] {"Reference"}; + case -1360156695: /*citeAs*/ return new String[] {"Reference", "markdown"}; case 3575610: /*type*/ return new String[] {"CodeableConcept"}; case 3387378: /*note*/ return new String[] {"Annotation"}; case 666807069: /*relatedArtifact*/ return new String[] {"RelatedArtifact"}; @@ -3603,10 +3807,14 @@ public class EvidenceReport extends MetadataResource { else if (name.equals("relatedIdentifier")) { return addRelatedIdentifier(); } - else if (name.equals("citeAs")) { + else if (name.equals("citeAsReference")) { this.citeAs = new Reference(); return this.citeAs; } + else if (name.equals("citeAsMarkdown")) { + this.citeAs = new MarkdownType(); + return this.citeAs; + } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; @@ -3773,6 +3981,26 @@ public class EvidenceReport extends MetadataResource { return ResourceType.EvidenceReport; } + /** + * Search parameter: context + *

+ * Description: A use context assigned to the evidence report
+ * Type: token
+ * Path: (EvidenceReport.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(EvidenceReport.useContext.value as CodeableConcept)", description="A use context assigned to the evidence report", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: A use context assigned to the evidence report
+ * Type: token
+ * Path: (EvidenceReport.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -3793,46 +4021,6 @@ public class EvidenceReport extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the evidence report
- * Type: composite
- * Path: EvidenceReport.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="EvidenceReport.useContext", description="A use context type and quantity- or range-based value assigned to the evidence report", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the evidence report
- * Type: composite
- * Path: EvidenceReport.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: A use context type and value assigned to the evidence report
- * Type: composite
- * Path: EvidenceReport.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="EvidenceReport.useContext", description="A use context type and value assigned to the evidence report", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: A use context type and value assigned to the evidence report
- * Type: composite
- * Path: EvidenceReport.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -3853,26 +4041,6 @@ public class EvidenceReport extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: A use context assigned to the evidence report
- * Type: token
- * Path: (EvidenceReport.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(EvidenceReport.useContext.value as CodeableConcept)", description="A use context assigned to the evidence report", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: A use context assigned to the evidence report
- * Type: token
- * Path: (EvidenceReport.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: identifier *

@@ -3953,6 +4121,46 @@ public class EvidenceReport extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL); + /** + * Search parameter: context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the evidence report
+ * Type: composite
+ * Path: EvidenceReport.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="EvidenceReport.useContext", description="A use context type and quantity- or range-based value assigned to the evidence report", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the evidence report
+ * Type: composite
+ * Path: EvidenceReport.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: A use context type and value assigned to the evidence report
+ * Type: composite
+ * Path: EvidenceReport.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="EvidenceReport.useContext", description="A use context type and value assigned to the evidence report", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: A use context type and value assigned to the evidence report
+ * Type: composite
+ * Path: EvidenceReport.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceVariable.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceVariable.java index 4595bb1af..783c719fd 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceVariable.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/EvidenceVariable.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -82,7 +82,6 @@ public class EvidenceVariable extends MetadataResource { switch (this) { case INTERSECTION: return "intersection"; case UNION: return "union"; - case NULL: return null; default: return "?"; } } @@ -90,7 +89,6 @@ public class EvidenceVariable extends MetadataResource { switch (this) { case INTERSECTION: return "http://hl7.org/fhir/characteristic-combination"; case UNION: return "http://hl7.org/fhir/characteristic-combination"; - case NULL: return null; default: return "?"; } } @@ -98,7 +96,6 @@ public class EvidenceVariable extends MetadataResource { switch (this) { case INTERSECTION: return "Combine characteristics with AND."; case UNION: return "Combine characteristics with OR."; - case NULL: return null; default: return "?"; } } @@ -106,7 +103,6 @@ public class EvidenceVariable extends MetadataResource { switch (this) { case INTERSECTION: return "intersection"; case UNION: return "union"; - case NULL: return null; default: return "?"; } } @@ -206,7 +202,6 @@ public class EvidenceVariable extends MetadataResource { case MEANOFMEDIAN: return "mean-of-median"; case MEDIANOFMEAN: return "median-of-mean"; case MEDIANOFMEDIAN: return "median-of-median"; - case NULL: return null; default: return "?"; } } @@ -218,7 +213,6 @@ public class EvidenceVariable extends MetadataResource { case MEANOFMEDIAN: return "http://hl7.org/fhir/group-measure"; case MEDIANOFMEAN: return "http://hl7.org/fhir/group-measure"; case MEDIANOFMEDIAN: return "http://hl7.org/fhir/group-measure"; - case NULL: return null; default: return "?"; } } @@ -230,7 +224,6 @@ public class EvidenceVariable extends MetadataResource { case MEANOFMEDIAN: return "Aggregated using Mean of study median values."; case MEDIANOFMEAN: return "Aggregated using Median of study mean values."; case MEDIANOFMEDIAN: return "Aggregated using Median of study median values."; - case NULL: return null; default: return "?"; } } @@ -242,7 +235,6 @@ public class EvidenceVariable extends MetadataResource { case MEANOFMEDIAN: return "Mean of Study Medins"; case MEDIANOFMEAN: return "Median of Study Means"; case MEDIANOFMEDIAN: return "Median of Study Medians"; - case NULL: return null; default: return "?"; } } @@ -3169,6 +3161,41 @@ public class EvidenceVariable extends MetadataResource { throw new Error("The resource type \"EvidenceVariable\" does not implement the property \"effectivePeriod\""); } + /** + * not supported on this implementation + */ + @Override + public int getTopicMax() { + return 0; + } + /** + * @return {@link #topic} (Descriptive topics related to the content of the library. Topics provide a high-level categorization of the library that can be useful for filtering and searching.) + */ + public List getTopic() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public EvidenceVariable setTopic(List theTopic) { + throw new Error("The resource type \"EvidenceVariable\" does not implement the property \"topic\""); + } + public boolean hasTopic() { + return false; + } + + public CodeableConcept addTopic() { //3 + throw new Error("The resource type \"EvidenceVariable\" does not implement the property \"topic\""); + } + public EvidenceVariable addTopic(CodeableConcept t) { //3 + throw new Error("The resource type \"EvidenceVariable\" does not implement the property \"topic\""); + } + /** + * @return The first repetition of repeating field {@link #topic}, creating it if it does not already exist {2} + */ + public CodeableConcept getTopicFirstRep() { + throw new Error("The resource type \"EvidenceVariable\" does not implement the property \"topic\""); + } protected void listChildren(List children) { super.listChildren(children); children.add(new Property("url", "uri", "An absolute URI that is used to identify this evidence variable when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this evidence variable is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the evidence variable is stored on different servers.", 0, 1, url)); @@ -3683,7 +3710,7 @@ public class EvidenceVariable extends MetadataResource { * Path: EvidenceVariable.relatedArtifact.where(type='composed-of').resource
*

*/ - @SearchParamDefinition(name="composed-of", path="EvidenceVariable.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="composed-of", path="EvidenceVariable.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_COMPOSED_OF = "composed-of"; /** * Fluent Client search parameter constant for composed-of @@ -3701,6 +3728,26 @@ public class EvidenceVariable extends MetadataResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_COMPOSED_OF = new ca.uhn.fhir.model.api.Include("EvidenceVariable:composed-of").toLocked(); + /** + * Search parameter: context + *

+ * Description: A use context assigned to the evidence variable
+ * Type: token
+ * Path: (EvidenceVariable.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(EvidenceVariable.useContext.value as CodeableConcept)", description="A use context assigned to the evidence variable", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: A use context assigned to the evidence variable
+ * Type: token
+ * Path: (EvidenceVariable.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -3721,46 +3768,6 @@ public class EvidenceVariable extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the evidence variable
- * Type: composite
- * Path: EvidenceVariable.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="EvidenceVariable.useContext", description="A use context type and quantity- or range-based value assigned to the evidence variable", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the evidence variable
- * Type: composite
- * Path: EvidenceVariable.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: A use context type and value assigned to the evidence variable
- * Type: composite
- * Path: EvidenceVariable.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="EvidenceVariable.useContext", description="A use context type and value assigned to the evidence variable", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: A use context type and value assigned to the evidence variable
- * Type: composite
- * Path: EvidenceVariable.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -3781,26 +3788,6 @@ public class EvidenceVariable extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: A use context assigned to the evidence variable
- * Type: token
- * Path: (EvidenceVariable.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(EvidenceVariable.useContext.value as CodeableConcept)", description="A use context assigned to the evidence variable", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: A use context assigned to the evidence variable
- * Type: token
- * Path: (EvidenceVariable.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -3829,7 +3816,7 @@ public class EvidenceVariable extends MetadataResource { * Path: EvidenceVariable.relatedArtifact.where(type='depends-on').resource
*

*/ - @SearchParamDefinition(name="depends-on", path="EvidenceVariable.relatedArtifact.where(type='depends-on').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="depends-on", path="EvidenceVariable.relatedArtifact.where(type='depends-on').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_DEPENDS_ON = "depends-on"; /** * Fluent Client search parameter constant for depends-on @@ -3855,7 +3842,7 @@ public class EvidenceVariable extends MetadataResource { * Path: EvidenceVariable.relatedArtifact.where(type='derived-from').resource
*

*/ - @SearchParamDefinition(name="derived-from", path="EvidenceVariable.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="derived-from", path="EvidenceVariable.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_DERIVED_FROM = "derived-from"; /** * Fluent Client search parameter constant for derived-from @@ -3941,7 +3928,7 @@ public class EvidenceVariable extends MetadataResource { * Path: EvidenceVariable.relatedArtifact.where(type='predecessor').resource
*

*/ - @SearchParamDefinition(name="predecessor", path="EvidenceVariable.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="predecessor", path="EvidenceVariable.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PREDECESSOR = "predecessor"; /** * Fluent Client search parameter constant for predecessor @@ -4007,7 +3994,7 @@ public class EvidenceVariable extends MetadataResource { * Path: EvidenceVariable.relatedArtifact.where(type='successor').resource
*

*/ - @SearchParamDefinition(name="successor", path="EvidenceVariable.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="successor", path="EvidenceVariable.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_SUCCESSOR = "successor"; /** * Fluent Client search parameter constant for successor @@ -4105,6 +4092,46 @@ public class EvidenceVariable extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the evidence variable
+ * Type: composite
+ * Path: EvidenceVariable.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="EvidenceVariable.useContext", description="A use context type and quantity- or range-based value assigned to the evidence variable", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the evidence variable
+ * Type: composite
+ * Path: EvidenceVariable.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: A use context type and value assigned to the evidence variable
+ * Type: composite
+ * Path: EvidenceVariable.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="EvidenceVariable.useContext", description="A use context type and value assigned to the evidence variable", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: A use context type and value assigned to the evidence variable
+ * Type: composite
+ * Path: EvidenceVariable.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExampleScenario.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExampleScenario.java index ea77a779f..a41b1a9df 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExampleScenario.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExampleScenario.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -82,7 +82,6 @@ public class ExampleScenario extends CanonicalResource { switch (this) { case PERSON: return "person"; case ENTITY: return "entity"; - case NULL: return null; default: return "?"; } } @@ -90,7 +89,6 @@ public class ExampleScenario extends CanonicalResource { switch (this) { case PERSON: return "http://hl7.org/fhir/examplescenario-actor-type"; case ENTITY: return "http://hl7.org/fhir/examplescenario-actor-type"; - case NULL: return null; default: return "?"; } } @@ -98,7 +96,6 @@ public class ExampleScenario extends CanonicalResource { switch (this) { case PERSON: return "A person."; case ENTITY: return "A system."; - case NULL: return null; default: return "?"; } } @@ -106,7 +103,6 @@ public class ExampleScenario extends CanonicalResource { switch (this) { case PERSON: return "Person"; case ENTITY: return "System"; - case NULL: return null; default: return "?"; } } @@ -5016,6 +5012,26 @@ public class ExampleScenario extends CanonicalResource { return ResourceType.ExampleScenario; } + /** + * Search parameter: context + *

+ * Description: A use context assigned to the example scenario
+ * Type: token
+ * Path: (ExampleScenario.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(ExampleScenario.useContext.value as CodeableConcept)", description="A use context assigned to the example scenario", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: A use context assigned to the example scenario
+ * Type: token
+ * Path: (ExampleScenario.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -5036,46 +5052,6 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the example scenario
- * Type: composite
- * Path: ExampleScenario.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="ExampleScenario.useContext", description="A use context type and quantity- or range-based value assigned to the example scenario", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the example scenario
- * Type: composite
- * Path: ExampleScenario.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: A use context type and value assigned to the example scenario
- * Type: composite
- * Path: ExampleScenario.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="ExampleScenario.useContext", description="A use context type and value assigned to the example scenario", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: A use context type and value assigned to the example scenario
- * Type: composite
- * Path: ExampleScenario.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -5096,26 +5072,6 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: A use context assigned to the example scenario
- * Type: token
- * Path: (ExampleScenario.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(ExampleScenario.useContext.value as CodeableConcept)", description="A use context assigned to the example scenario", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: A use context assigned to the example scenario
- * Type: token
- * Path: (ExampleScenario.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -5276,6 +5232,46 @@ public class ExampleScenario extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the example scenario
+ * Type: composite
+ * Path: ExampleScenario.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="ExampleScenario.useContext", description="A use context type and quantity- or range-based value assigned to the example scenario", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the example scenario
+ * Type: composite
+ * Path: ExampleScenario.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: A use context type and value assigned to the example scenario
+ * Type: composite
+ * Path: ExampleScenario.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="ExampleScenario.useContext", description="A use context type and value assigned to the example scenario", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: A use context type and value assigned to the example scenario
+ * Type: composite
+ * Path: ExampleScenario.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExplanationOfBenefit.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExplanationOfBenefit.java index a035266de..97f7ed795 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExplanationOfBenefit.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ExplanationOfBenefit.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -97,7 +97,6 @@ public class ExplanationOfBenefit extends DomainResource { case CANCELLED: return "cancelled"; case DRAFT: return "draft"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -107,7 +106,6 @@ public class ExplanationOfBenefit extends DomainResource { case CANCELLED: return "http://hl7.org/fhir/explanationofbenefit-status"; case DRAFT: return "http://hl7.org/fhir/explanationofbenefit-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/explanationofbenefit-status"; - case NULL: return null; default: return "?"; } } @@ -117,7 +115,6 @@ public class ExplanationOfBenefit extends DomainResource { case CANCELLED: return "The resource instance is withdrawn, rescinded or reversed."; case DRAFT: return "A new resource instance the contents of which is not complete."; case ENTEREDINERROR: return "The resource instance was entered in error."; - case NULL: return null; default: return "?"; } } @@ -127,7 +124,6 @@ public class ExplanationOfBenefit extends DomainResource { case CANCELLED: return "Cancelled"; case DRAFT: return "Draft"; case ENTEREDINERROR: return "Entered In Error"; - case NULL: return null; default: return "?"; } } @@ -12156,7 +12152,7 @@ public class ExplanationOfBenefit extends DomainResource { */ @Child(name = "outcome", type = {CodeType.class}, order=22, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="queued | complete | error | partial", formalDefinition="The outcome of the claim, predetermination, or preauthorization processing." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/remittance-outcome") + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/claim-outcome") protected Enumeration outcome; /** diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Expression.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Expression.java index b09288ba4..942a992ee 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Expression.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Expression.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Extension.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Extension.java index 79c080921..1a527f628 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Extension.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Extension.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/FamilyMemberHistory.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/FamilyMemberHistory.java index 432d9c8f2..d73f08eb1 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/FamilyMemberHistory.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/FamilyMemberHistory.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class FamilyMemberHistory extends DomainResource { case COMPLETED: return "completed"; case ENTEREDINERROR: return "entered-in-error"; case HEALTHUNKNOWN: return "health-unknown"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class FamilyMemberHistory extends DomainResource { case COMPLETED: return "http://hl7.org/fhir/history-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/history-status"; case HEALTHUNKNOWN: return "http://hl7.org/fhir/history-status"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class FamilyMemberHistory extends DomainResource { case COMPLETED: return "All available related health information is captured as of the date (and possibly time) when the family member history was taken."; case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record."; case HEALTHUNKNOWN: return "Health information for this family member is unavailable/unknown."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class FamilyMemberHistory extends DomainResource { case COMPLETED: return "Completed"; case ENTEREDINERROR: return "Entered in Error"; case HEALTHUNKNOWN: return "Health Unknown"; - case NULL: return null; default: return "?"; } } @@ -2661,112 +2657,6 @@ public class FamilyMemberHistory extends DomainResource { return ResourceType.FamilyMemberHistory; } - /** - * Search parameter: instantiates-canonical - *

- * Description: Instantiates FHIR protocol or definition
- * Type: reference
- * Path: FamilyMemberHistory.instantiatesCanonical
- *

- */ - @SearchParamDefinition(name="instantiates-canonical", path="FamilyMemberHistory.instantiatesCanonical", description="Instantiates FHIR protocol or definition", type="reference", target={ActivityDefinition.class, Measure.class, OperationDefinition.class, PlanDefinition.class, Questionnaire.class } ) - public static final String SP_INSTANTIATES_CANONICAL = "instantiates-canonical"; - /** - * Fluent Client search parameter constant for instantiates-canonical - *

- * Description: Instantiates FHIR protocol or definition
- * Type: reference
- * Path: FamilyMemberHistory.instantiatesCanonical
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INSTANTIATES_CANONICAL = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INSTANTIATES_CANONICAL); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "FamilyMemberHistory:instantiates-canonical". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_INSTANTIATES_CANONICAL = new ca.uhn.fhir.model.api.Include("FamilyMemberHistory:instantiates-canonical").toLocked(); - - /** - * Search parameter: instantiates-uri - *

- * Description: Instantiates external protocol or definition
- * Type: uri
- * Path: FamilyMemberHistory.instantiatesUri
- *

- */ - @SearchParamDefinition(name="instantiates-uri", path="FamilyMemberHistory.instantiatesUri", description="Instantiates external protocol or definition", type="uri" ) - public static final String SP_INSTANTIATES_URI = "instantiates-uri"; - /** - * Fluent Client search parameter constant for instantiates-uri - *

- * Description: Instantiates external protocol or definition
- * Type: uri
- * Path: FamilyMemberHistory.instantiatesUri
- *

- */ - public static final ca.uhn.fhir.rest.gclient.UriClientParam INSTANTIATES_URI = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_INSTANTIATES_URI); - - /** - * Search parameter: relationship - *

- * Description: A search by a relationship type
- * Type: token
- * Path: FamilyMemberHistory.relationship
- *

- */ - @SearchParamDefinition(name="relationship", path="FamilyMemberHistory.relationship", description="A search by a relationship type", type="token" ) - public static final String SP_RELATIONSHIP = "relationship"; - /** - * Fluent Client search parameter constant for relationship - *

- * Description: A search by a relationship type
- * Type: token
- * Path: FamilyMemberHistory.relationship
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam RELATIONSHIP = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RELATIONSHIP); - - /** - * Search parameter: sex - *

- * Description: A search by a sex code of a family member
- * Type: token
- * Path: FamilyMemberHistory.sex
- *

- */ - @SearchParamDefinition(name="sex", path="FamilyMemberHistory.sex", description="A search by a sex code of a family member", type="token" ) - public static final String SP_SEX = "sex"; - /** - * Fluent Client search parameter constant for sex - *

- * Description: A search by a sex code of a family member
- * Type: token
- * Path: FamilyMemberHistory.sex
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam SEX = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SEX); - - /** - * Search parameter: status - *

- * Description: partial | completed | entered-in-error | health-unknown
- * Type: token
- * Path: FamilyMemberHistory.status
- *

- */ - @SearchParamDefinition(name="status", path="FamilyMemberHistory.status", description="partial | completed | entered-in-error | health-unknown", type="token" ) - public static final String SP_STATUS = "status"; - /** - * Fluent Client search parameter constant for status - *

- * Description: partial | completed | entered-in-error | health-unknown
- * Type: token
- * Path: FamilyMemberHistory.status
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); - /** * Search parameter: code *

@@ -2897,7 +2787,7 @@ public class FamilyMemberHistory extends DomainResource { * [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare * [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier * [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID * [Immunization](immunization.html): Business identifier * [List](list.html): Business identifier * [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier @@ -2917,7 +2807,7 @@ public class FamilyMemberHistory extends DomainResource { * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
*

*/ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) public static final String SP_IDENTIFIER = "identifier"; /** * Fluent Client search parameter constant for identifier @@ -2939,7 +2829,7 @@ public class FamilyMemberHistory extends DomainResource { * [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare * [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier * [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID * [Immunization](immunization.html): Business identifier * [List](list.html): Business identifier * [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier @@ -2975,7 +2865,7 @@ public class FamilyMemberHistory extends DomainResource { * [Consent](consent.html): Who the consent applies to * [DetectedIssue](detectedissue.html): Associated patient * [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient +* [DeviceUsage](deviceusage.html): Search by subject - a patient * [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient * [DocumentManifest](documentmanifest.html): The subject of the set of documents * [DocumentReference](documentreference.html): Who/what is the subject of the document @@ -3000,10 +2890,10 @@ public class FamilyMemberHistory extends DomainResource { * [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
* Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
*

*/ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -3019,7 +2909,7 @@ public class FamilyMemberHistory extends DomainResource { * [Consent](consent.html): Who the consent applies to * [DetectedIssue](detectedissue.html): Associated patient * [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient +* [DeviceUsage](deviceusage.html): Search by subject - a patient * [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient * [DocumentManifest](documentmanifest.html): The subject of the set of documents * [DocumentReference](documentreference.html): Who/what is the subject of the document @@ -3044,7 +2934,7 @@ public class FamilyMemberHistory extends DomainResource { * [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
* Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); @@ -3055,6 +2945,112 @@ public class FamilyMemberHistory extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("FamilyMemberHistory:patient").toLocked(); + /** + * Search parameter: instantiates-canonical + *

+ * Description: Instantiates FHIR protocol or definition
+ * Type: reference
+ * Path: FamilyMemberHistory.instantiatesCanonical
+ *

+ */ + @SearchParamDefinition(name="instantiates-canonical", path="FamilyMemberHistory.instantiatesCanonical", description="Instantiates FHIR protocol or definition", type="reference", target={ActivityDefinition.class, Measure.class, OperationDefinition.class, PlanDefinition.class, Questionnaire.class } ) + public static final String SP_INSTANTIATES_CANONICAL = "instantiates-canonical"; + /** + * Fluent Client search parameter constant for instantiates-canonical + *

+ * Description: Instantiates FHIR protocol or definition
+ * Type: reference
+ * Path: FamilyMemberHistory.instantiatesCanonical
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INSTANTIATES_CANONICAL = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INSTANTIATES_CANONICAL); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "FamilyMemberHistory:instantiates-canonical". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_INSTANTIATES_CANONICAL = new ca.uhn.fhir.model.api.Include("FamilyMemberHistory:instantiates-canonical").toLocked(); + + /** + * Search parameter: instantiates-uri + *

+ * Description: Instantiates external protocol or definition
+ * Type: uri
+ * Path: FamilyMemberHistory.instantiatesUri
+ *

+ */ + @SearchParamDefinition(name="instantiates-uri", path="FamilyMemberHistory.instantiatesUri", description="Instantiates external protocol or definition", type="uri" ) + public static final String SP_INSTANTIATES_URI = "instantiates-uri"; + /** + * Fluent Client search parameter constant for instantiates-uri + *

+ * Description: Instantiates external protocol or definition
+ * Type: uri
+ * Path: FamilyMemberHistory.instantiatesUri
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.UriClientParam INSTANTIATES_URI = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_INSTANTIATES_URI); + + /** + * Search parameter: relationship + *

+ * Description: A search by a relationship type
+ * Type: token
+ * Path: FamilyMemberHistory.relationship
+ *

+ */ + @SearchParamDefinition(name="relationship", path="FamilyMemberHistory.relationship", description="A search by a relationship type", type="token" ) + public static final String SP_RELATIONSHIP = "relationship"; + /** + * Fluent Client search parameter constant for relationship + *

+ * Description: A search by a relationship type
+ * Type: token
+ * Path: FamilyMemberHistory.relationship
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam RELATIONSHIP = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RELATIONSHIP); + + /** + * Search parameter: sex + *

+ * Description: A search by a sex code of a family member
+ * Type: token
+ * Path: FamilyMemberHistory.sex
+ *

+ */ + @SearchParamDefinition(name="sex", path="FamilyMemberHistory.sex", description="A search by a sex code of a family member", type="token" ) + public static final String SP_SEX = "sex"; + /** + * Fluent Client search parameter constant for sex + *

+ * Description: A search by a sex code of a family member
+ * Type: token
+ * Path: FamilyMemberHistory.sex
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam SEX = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SEX); + + /** + * Search parameter: status + *

+ * Description: partial | completed | entered-in-error | health-unknown
+ * Type: token
+ * Path: FamilyMemberHistory.status
+ *

+ */ + @SearchParamDefinition(name="status", path="FamilyMemberHistory.status", description="partial | completed | entered-in-error | health-unknown", type="token" ) + public static final String SP_STATUS = "status"; + /** + * Fluent Client search parameter constant for status + *

+ * Description: partial | completed | entered-in-error | health-unknown
+ * Type: token
+ * Path: FamilyMemberHistory.status
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Flag.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Flag.java index 0f502beac..3a3fc8aca 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Flag.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Flag.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -89,7 +89,6 @@ public class Flag extends DomainResource { case ACTIVE: return "active"; case INACTIVE: return "inactive"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -98,7 +97,6 @@ public class Flag extends DomainResource { case ACTIVE: return "http://hl7.org/fhir/flag-status"; case INACTIVE: return "http://hl7.org/fhir/flag-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/flag-status"; - case NULL: return null; default: return "?"; } } @@ -107,7 +105,6 @@ public class Flag extends DomainResource { case ACTIVE: return "A current flag that should be displayed to a user. A system may use the category to determine which user roles should view the flag."; case INACTIVE: return "The flag no longer needs to be displayed."; case ENTEREDINERROR: return "The flag was added in error and should no longer be displayed."; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class Flag extends DomainResource { case ACTIVE: return "Active"; case INACTIVE: return "Inactive"; case ENTEREDINERROR: return "Entered in Error"; - case NULL: return null; default: return "?"; } } @@ -749,6 +745,212 @@ public class Flag extends DomainResource { return ResourceType.Flag; } + /** + * Search parameter: date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) + public static final String SP_DATE = "date"; + /** + * Fluent Client search parameter constant for date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Flag:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Flag:patient").toLocked(); + + /** + * Search parameter: encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", target={Encounter.class } ) + public static final String SP_ENCOUNTER = "encounter"; + /** + * Fluent Client search parameter constant for encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Flag:encounter". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("Flag:encounter").toLocked(); + /** * Search parameter: author *

@@ -841,212 +1043,6 @@ public class Flag extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("Flag:subject").toLocked(); - /** - * Search parameter: date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) - public static final String SP_DATE = "date"; - /** - * Fluent Client search parameter constant for date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); - - /** - * Search parameter: encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", target={Encounter.class } ) - public static final String SP_ENCOUNTER = "encounter"; - /** - * Fluent Client search parameter constant for encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Flag:encounter". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("Flag:encounter").toLocked(); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Flag:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Flag:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Goal.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Goal.java index e32ec5665..4febecf7e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Goal.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Goal.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -131,7 +131,6 @@ public class Goal extends DomainResource { case CANCELLED: return "cancelled"; case ENTEREDINERROR: return "entered-in-error"; case REJECTED: return "rejected"; - case NULL: return null; default: return "?"; } } @@ -146,7 +145,6 @@ public class Goal extends DomainResource { case CANCELLED: return "http://hl7.org/fhir/goal-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/goal-status"; case REJECTED: return "http://hl7.org/fhir/goal-status"; - case NULL: return null; default: return "?"; } } @@ -161,7 +159,6 @@ public class Goal extends DomainResource { case CANCELLED: return "The goal has been abandoned."; case ENTEREDINERROR: return "The goal was entered in error and voided."; case REJECTED: return "A proposed goal was rejected."; - case NULL: return null; default: return "?"; } } @@ -176,7 +173,6 @@ public class Goal extends DomainResource { case CANCELLED: return "Cancelled"; case ENTEREDINERROR: return "Entered in Error"; case REJECTED: return "Rejected"; - case NULL: return null; default: return "?"; } } @@ -773,9 +769,9 @@ public class Goal extends DomainResource { /** * Indicates whose goal this is - patient goal, practitioner goal, etc. */ - @Child(name = "expressedBy", type = {Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class}, order=12, min=0, max=1, modifier=false, summary=true) + @Child(name = "source", type = {Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class, CareTeam.class}, order=12, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Who's responsible for creating Goal?", formalDefinition="Indicates whose goal this is - patient goal, practitioner goal, etc." ) - protected Reference expressedBy; + protected Reference source; /** * The identified conditions and other health record elements that are intended to be addressed by the goal. @@ -799,7 +795,7 @@ public class Goal extends DomainResource { @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/clinical-findings") protected List outcome; - private static final long serialVersionUID = -1181155521L; + private static final long serialVersionUID = -884300976L; /** * Constructor @@ -1313,26 +1309,26 @@ public class Goal extends DomainResource { } /** - * @return {@link #expressedBy} (Indicates whose goal this is - patient goal, practitioner goal, etc.) + * @return {@link #source} (Indicates whose goal this is - patient goal, practitioner goal, etc.) */ - public Reference getExpressedBy() { - if (this.expressedBy == null) + public Reference getSource() { + if (this.source == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create Goal.expressedBy"); + throw new Error("Attempt to auto-create Goal.source"); else if (Configuration.doAutoCreate()) - this.expressedBy = new Reference(); // cc - return this.expressedBy; + this.source = new Reference(); // cc + return this.source; } - public boolean hasExpressedBy() { - return this.expressedBy != null && !this.expressedBy.isEmpty(); + public boolean hasSource() { + return this.source != null && !this.source.isEmpty(); } /** - * @param value {@link #expressedBy} (Indicates whose goal this is - patient goal, practitioner goal, etc.) + * @param value {@link #source} (Indicates whose goal this is - patient goal, practitioner goal, etc.) */ - public Goal setExpressedBy(Reference value) { - this.expressedBy = value; + public Goal setSource(Reference value) { + this.source = value; return this; } @@ -1509,7 +1505,7 @@ public class Goal extends DomainResource { children.add(new Property("target", "", "Indicates what should be done by when.", 0, java.lang.Integer.MAX_VALUE, target)); children.add(new Property("statusDate", "date", "Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc.", 0, 1, statusDate)); children.add(new Property("statusReason", "string", "Captures the reason for the current status.", 0, 1, statusReason)); - children.add(new Property("expressedBy", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson)", "Indicates whose goal this is - patient goal, practitioner goal, etc.", 0, 1, expressedBy)); + children.add(new Property("source", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|CareTeam)", "Indicates whose goal this is - patient goal, practitioner goal, etc.", 0, 1, source)); children.add(new Property("addresses", "Reference(Condition|Observation|MedicationUsage|MedicationRequest|NutritionOrder|ServiceRequest|RiskAssessment)", "The identified conditions and other health record elements that are intended to be addressed by the goal.", 0, java.lang.Integer.MAX_VALUE, addresses)); children.add(new Property("note", "Annotation", "Any comments related to the goal.", 0, java.lang.Integer.MAX_VALUE, note)); children.add(new Property("outcome", "CodeableReference(Observation)", "Identifies the change (or lack of change) at the point when the status of the goal is assessed.", 0, java.lang.Integer.MAX_VALUE, outcome)); @@ -1533,7 +1529,7 @@ public class Goal extends DomainResource { case -880905839: /*target*/ return new Property("target", "", "Indicates what should be done by when.", 0, java.lang.Integer.MAX_VALUE, target); case 247524032: /*statusDate*/ return new Property("statusDate", "date", "Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc.", 0, 1, statusDate); case 2051346646: /*statusReason*/ return new Property("statusReason", "string", "Captures the reason for the current status.", 0, 1, statusReason); - case 175423686: /*expressedBy*/ return new Property("expressedBy", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson)", "Indicates whose goal this is - patient goal, practitioner goal, etc.", 0, 1, expressedBy); + case -896505829: /*source*/ return new Property("source", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|CareTeam)", "Indicates whose goal this is - patient goal, practitioner goal, etc.", 0, 1, source); case 874544034: /*addresses*/ return new Property("addresses", "Reference(Condition|Observation|MedicationUsage|MedicationRequest|NutritionOrder|ServiceRequest|RiskAssessment)", "The identified conditions and other health record elements that are intended to be addressed by the goal.", 0, java.lang.Integer.MAX_VALUE, addresses); case 3387378: /*note*/ return new Property("note", "Annotation", "Any comments related to the goal.", 0, java.lang.Integer.MAX_VALUE, note); case -1106507950: /*outcome*/ return new Property("outcome", "CodeableReference(Observation)", "Identifies the change (or lack of change) at the point when the status of the goal is assessed.", 0, java.lang.Integer.MAX_VALUE, outcome); @@ -1557,7 +1553,7 @@ public class Goal extends DomainResource { case -880905839: /*target*/ return this.target == null ? new Base[0] : this.target.toArray(new Base[this.target.size()]); // GoalTargetComponent case 247524032: /*statusDate*/ return this.statusDate == null ? new Base[0] : new Base[] {this.statusDate}; // DateType case 2051346646: /*statusReason*/ return this.statusReason == null ? new Base[0] : new Base[] {this.statusReason}; // StringType - case 175423686: /*expressedBy*/ return this.expressedBy == null ? new Base[0] : new Base[] {this.expressedBy}; // Reference + case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // Reference case 874544034: /*addresses*/ return this.addresses == null ? new Base[0] : this.addresses.toArray(new Base[this.addresses.size()]); // Reference case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : this.outcome.toArray(new Base[this.outcome.size()]); // CodeableReference @@ -1606,8 +1602,8 @@ public class Goal extends DomainResource { case 2051346646: // statusReason this.statusReason = TypeConvertor.castToString(value); // StringType return value; - case 175423686: // expressedBy - this.expressedBy = TypeConvertor.castToReference(value); // Reference + case -896505829: // source + this.source = TypeConvertor.castToReference(value); // Reference return value; case 874544034: // addresses this.getAddresses().add(TypeConvertor.castToReference(value)); // Reference @@ -1650,8 +1646,8 @@ public class Goal extends DomainResource { this.statusDate = TypeConvertor.castToDate(value); // DateType } else if (name.equals("statusReason")) { this.statusReason = TypeConvertor.castToString(value); // StringType - } else if (name.equals("expressedBy")) { - this.expressedBy = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("source")) { + this.source = TypeConvertor.castToReference(value); // Reference } else if (name.equals("addresses")) { this.getAddresses().add(TypeConvertor.castToReference(value)); } else if (name.equals("note")) { @@ -1679,7 +1675,7 @@ public class Goal extends DomainResource { case -880905839: return addTarget(); case 247524032: return getStatusDateElement(); case 2051346646: return getStatusReasonElement(); - case 175423686: return getExpressedBy(); + case -896505829: return getSource(); case 874544034: return addAddresses(); case 3387378: return addNote(); case -1106507950: return addOutcome(); @@ -1703,7 +1699,7 @@ public class Goal extends DomainResource { case -880905839: /*target*/ return new String[] {}; case 247524032: /*statusDate*/ return new String[] {"date"}; case 2051346646: /*statusReason*/ return new String[] {"string"}; - case 175423686: /*expressedBy*/ return new String[] {"Reference"}; + case -896505829: /*source*/ return new String[] {"Reference"}; case 874544034: /*addresses*/ return new String[] {"Reference"}; case 3387378: /*note*/ return new String[] {"Annotation"}; case -1106507950: /*outcome*/ return new String[] {"CodeableReference"}; @@ -1759,9 +1755,9 @@ public class Goal extends DomainResource { else if (name.equals("statusReason")) { throw new FHIRException("Cannot call addChild on a primitive type Goal.statusReason"); } - else if (name.equals("expressedBy")) { - this.expressedBy = new Reference(); - return this.expressedBy; + else if (name.equals("source")) { + this.source = new Reference(); + return this.source; } else if (name.equals("addresses")) { return addAddresses(); @@ -1813,7 +1809,7 @@ public class Goal extends DomainResource { }; dst.statusDate = statusDate == null ? null : statusDate.copy(); dst.statusReason = statusReason == null ? null : statusReason.copy(); - dst.expressedBy = expressedBy == null ? null : expressedBy.copy(); + dst.source = source == null ? null : source.copy(); if (addresses != null) { dst.addresses = new ArrayList(); for (Reference i : addresses) @@ -1847,7 +1843,7 @@ public class Goal extends DomainResource { && compareDeep(continuous, o.continuous, true) && compareDeep(priority, o.priority, true) && compareDeep(description, o.description, true) && compareDeep(subject, o.subject, true) && compareDeep(start, o.start, true) && compareDeep(target, o.target, true) && compareDeep(statusDate, o.statusDate, true) && compareDeep(statusReason, o.statusReason, true) - && compareDeep(expressedBy, o.expressedBy, true) && compareDeep(addresses, o.addresses, true) && compareDeep(note, o.note, true) + && compareDeep(source, o.source, true) && compareDeep(addresses, o.addresses, true) && compareDeep(note, o.note, true) && compareDeep(outcome, o.outcome, true); } @@ -1866,7 +1862,7 @@ public class Goal extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, lifecycleStatus , achievementStatus, category, continuous, priority, description, subject, start - , target, statusDate, statusReason, expressedBy, addresses, note, outcome); + , target, statusDate, statusReason, source, addresses, note, outcome); } @Override @@ -1874,6 +1870,184 @@ public class Goal extends DomainResource { return ResourceType.Goal; } + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Goal:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Goal:patient").toLocked(); + /** * Search parameter: achievement-status *

@@ -2000,184 +2174,6 @@ public class Goal extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.DateClientParam TARGET_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_TARGET_DATE); - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Goal:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Goal:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GraphDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GraphDefinition.java index 891767c21..cbe88b35d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GraphDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GraphDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class GraphDefinition extends CanonicalResource { case MATCHING: return "matching"; case DIFFERENT: return "different"; case CUSTOM: return "custom"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class GraphDefinition extends CanonicalResource { case MATCHING: return "http://hl7.org/fhir/graph-compartment-rule"; case DIFFERENT: return "http://hl7.org/fhir/graph-compartment-rule"; case CUSTOM: return "http://hl7.org/fhir/graph-compartment-rule"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class GraphDefinition extends CanonicalResource { case MATCHING: return "The compartment must be the same - the record must be about the same patient, but the reference may be different."; case DIFFERENT: return "The compartment must be different."; case CUSTOM: return "The compartment rule is defined in the accompanying FHIRPath expression."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class GraphDefinition extends CanonicalResource { case MATCHING: return "Matching"; case DIFFERENT: return "Different"; case CUSTOM: return "Custom"; - case NULL: return null; default: return "?"; } } @@ -210,7 +206,6 @@ public class GraphDefinition extends CanonicalResource { switch (this) { case CONDITION: return "condition"; case REQUIREMENT: return "requirement"; - case NULL: return null; default: return "?"; } } @@ -218,7 +213,6 @@ public class GraphDefinition extends CanonicalResource { switch (this) { case CONDITION: return "http://hl7.org/fhir/graph-compartment-use"; case REQUIREMENT: return "http://hl7.org/fhir/graph-compartment-use"; - case NULL: return null; default: return "?"; } } @@ -226,7 +220,6 @@ public class GraphDefinition extends CanonicalResource { switch (this) { case CONDITION: return "This compartment rule is a condition for whether the rule applies."; case REQUIREMENT: return "This compartment rule is enforced on any relationships that meet the conditions."; - case NULL: return null; default: return "?"; } } @@ -234,7 +227,6 @@ public class GraphDefinition extends CanonicalResource { switch (this) { case CONDITION: return "Condition"; case REQUIREMENT: return "Requirement"; - case NULL: return null; default: return "?"; } } @@ -3081,24 +3073,56 @@ public class GraphDefinition extends CanonicalResource { } /** - * Search parameter: start + * Search parameter: context *

- * Description: Type of resource at which the graph starts
+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +
* Type: token
- * Path: GraphDefinition.start
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="start", path="GraphDefinition.start", description="Type of resource at which the graph starts", type="token" ) - public static final String SP_START = "start"; + @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) + public static final String SP_CONTEXT = "context"; /** - * Fluent Client search parameter constant for start + * Fluent Client search parameter constant for context *

- * Description: Type of resource at which the graph starts
+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +
* Type: token
- * Path: GraphDefinition.start
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam START = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_START); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); /** * Search parameter: context-quantity @@ -3152,110 +3176,6 @@ public class GraphDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -3308,58 +3228,6 @@ public class GraphDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -3774,9 +3642,136 @@ public class GraphDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + + /** + * Search parameter: start + *

+ * Description: Type of resource at which the graph starts
+ * Type: token
+ * Path: GraphDefinition.start
+ *

+ */ + @SearchParamDefinition(name="start", path="GraphDefinition.start", description="Type of resource at which the graph starts", type="token" ) + public static final String SP_START = "start"; + /** + * Fluent Client search parameter constant for start + *

+ * Description: Type of resource at which the graph starts
+ * Type: token
+ * Path: GraphDefinition.start
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam START = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_START); + +// Manual code (from Configuration.txt): public boolean supportsCopyright() { return false; } + +// end addition } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Group.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Group.java index a15e8f6bf..b853f6c78 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Group.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Group.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -110,7 +110,6 @@ public class Group extends DomainResource { case DEVICE: return "device"; case MEDICATION: return "medication"; case SUBSTANCE: return "substance"; - case NULL: return null; default: return "?"; } } @@ -122,7 +121,6 @@ public class Group extends DomainResource { case DEVICE: return "http://hl7.org/fhir/group-type"; case MEDICATION: return "http://hl7.org/fhir/group-type"; case SUBSTANCE: return "http://hl7.org/fhir/group-type"; - case NULL: return null; default: return "?"; } } @@ -134,7 +132,6 @@ public class Group extends DomainResource { case DEVICE: return "Group contains Device resources."; case MEDICATION: return "Group contains Medication resources."; case SUBSTANCE: return "Group contains Substance resources."; - case NULL: return null; default: return "?"; } } @@ -146,7 +143,6 @@ public class Group extends DomainResource { case DEVICE: return "Device"; case MEDICATION: return "Medication"; case SUBSTANCE: return "Substance"; - case NULL: return null; default: return "?"; } } @@ -1721,26 +1717,6 @@ public class Group extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTUAL = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTUAL); - /** - * Search parameter: characteristic-value - *

- * Description: A composite of both characteristic and value
- * Type: composite
- * Path: Group.characteristic
- *

- */ - @SearchParamDefinition(name="characteristic-value", path="Group.characteristic", description="A composite of both characteristic and value", type="composite", compositeOf={"characteristic", "value"} ) - public static final String SP_CHARACTERISTIC_VALUE = "characteristic-value"; - /** - * Fluent Client search parameter constant for characteristic-value - *

- * Description: A composite of both characteristic and value
- * Type: composite
- * Path: Group.characteristic
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CHARACTERISTIC_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CHARACTERISTIC_VALUE); - /** * Search parameter: characteristic *

@@ -1913,6 +1889,26 @@ public class Group extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VALUE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VALUE); + /** + * Search parameter: characteristic-value + *

+ * Description: A composite of both characteristic and value
+ * Type: composite
+ * Path: Group.characteristic
+ *

+ */ + @SearchParamDefinition(name="characteristic-value", path="Group.characteristic", description="A composite of both characteristic and value", type="composite", compositeOf={"characteristic", "value"} ) + public static final String SP_CHARACTERISTIC_VALUE = "characteristic-value"; + /** + * Fluent Client search parameter constant for characteristic-value + *

+ * Description: A composite of both characteristic and value
+ * Type: composite
+ * Path: Group.characteristic
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CHARACTERISTIC_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CHARACTERISTIC_VALUE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GuidanceResponse.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GuidanceResponse.java index df31808bb..db1810b3a 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GuidanceResponse.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/GuidanceResponse.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -110,7 +110,6 @@ public class GuidanceResponse extends DomainResource { case INPROGRESS: return "in-progress"; case FAILURE: return "failure"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -122,7 +121,6 @@ public class GuidanceResponse extends DomainResource { case INPROGRESS: return "http://hl7.org/fhir/guidance-response-status"; case FAILURE: return "http://hl7.org/fhir/guidance-response-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/guidance-response-status"; - case NULL: return null; default: return "?"; } } @@ -134,7 +132,6 @@ public class GuidanceResponse extends DomainResource { case INPROGRESS: return "The request is currently being processed."; case FAILURE: return "The request was not processed successfully."; case ENTEREDINERROR: return "The response was entered in error."; - case NULL: return null; default: return "?"; } } @@ -146,7 +143,6 @@ public class GuidanceResponse extends DomainResource { case INPROGRESS: return "In Progress"; case FAILURE: return "Failure"; case ENTEREDINERROR: return "Entered In Error"; - case NULL: return null; default: return "?"; } } @@ -232,6 +228,7 @@ public class GuidanceResponse extends DomainResource { */ @Child(name = "module", type = {UriType.class, CanonicalType.class, CodeableConcept.class}, order=2, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="What guidance was requested", formalDefinition="An identifier, CodeableConcept or canonical reference to the guidance that was requested." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/guidance-module-code") protected DataType module; /** @@ -1279,7 +1276,7 @@ public class GuidanceResponse extends DomainResource { * Path: GuidanceResponse.subject.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="GuidanceResponse.subject.where(resolve() is Patient)", description="The identity of a patient to search for guidance response results", type="reference", target={Patient.class } ) + @SearchParamDefinition(name="patient", path="GuidanceResponse.subject.where(resolve() is Patient)", description="The identity of a patient to search for guidance response results", type="reference", target={Group.class, Patient.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -1317,6 +1314,26 @@ public class GuidanceResponse extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam REQUEST = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REQUEST); + /** + * Search parameter: status + *

+ * Description: The status of the guidance response
+ * Type: token
+ * Path: GuidanceResponse.status
+ *

+ */ + @SearchParamDefinition(name="status", path="GuidanceResponse.status", description="The status of the guidance response", type="token" ) + public static final String SP_STATUS = "status"; + /** + * Fluent Client search parameter constant for status + *

+ * Description: The status of the guidance response
+ * Type: token
+ * Path: GuidanceResponse.status
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); + /** * Search parameter: subject *

diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HealthcareService.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HealthcareService.java index 427bd52f5..e09cdd678 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HealthcareService.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HealthcareService.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HumanName.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HumanName.java index 87236cbf1..4fdbcb820 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HumanName.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/HumanName.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -117,7 +117,6 @@ public class HumanName extends DataType implements ICompositeType { case ANONYMOUS: return "anonymous"; case OLD: return "old"; case MAIDEN: return "maiden"; - case NULL: return null; default: return "?"; } } @@ -130,7 +129,6 @@ public class HumanName extends DataType implements ICompositeType { case ANONYMOUS: return "http://hl7.org/fhir/name-use"; case OLD: return "http://hl7.org/fhir/name-use"; case MAIDEN: return "http://hl7.org/fhir/name-use"; - case NULL: return null; default: return "?"; } } @@ -143,7 +141,6 @@ public class HumanName extends DataType implements ICompositeType { case ANONYMOUS: return "Anonymous assigned name, alias, or pseudonym (used to protect a person's identity for privacy reasons)."; case OLD: return "This name is no longer in use (or was never correct, but retained for records)."; case MAIDEN: return "A name used prior to changing name because of marriage. This name use is for use by applications that collect and store names that were used prior to a marriage. Marriage naming customs vary greatly around the world, and are constantly changing. This term is not gender specific. The use of this term does not imply any particular history for a person's name."; - case NULL: return null; default: return "?"; } } @@ -156,7 +153,6 @@ public class HumanName extends DataType implements ICompositeType { case ANONYMOUS: return "Anonymous"; case OLD: return "Old"; case MAIDEN: return "Name changed for Marriage"; - case NULL: return null; default: return "?"; } } @@ -860,7 +856,7 @@ public class HumanName extends DataType implements ICompositeType { , prefix, suffix, period); } -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): /** /** * Returns all repetitions of {@link #getGiven() given name} as a space separated string diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Identifier.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Identifier.java index f26cda365..c1b543ef5 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Identifier.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Identifier.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -101,7 +101,6 @@ public class Identifier extends DataType implements ICompositeType { case TEMP: return "temp"; case SECONDARY: return "secondary"; case OLD: return "old"; - case NULL: return null; default: return "?"; } } @@ -112,7 +111,6 @@ public class Identifier extends DataType implements ICompositeType { case TEMP: return "http://hl7.org/fhir/identifier-use"; case SECONDARY: return "http://hl7.org/fhir/identifier-use"; case OLD: return "http://hl7.org/fhir/identifier-use"; - case NULL: return null; default: return "?"; } } @@ -123,7 +121,6 @@ public class Identifier extends DataType implements ICompositeType { case TEMP: return "A temporary identifier."; case SECONDARY: return "An identifier that was assigned in secondary use - it serves to identify the object in a relative context, but cannot be consistently assigned to the same object again in a different context."; case OLD: return "The identifier id no longer considered valid, but may be relevant for search purposes. E.g. Changes to identifier schemes, account merges, etc."; - case NULL: return null; default: return "?"; } } @@ -134,7 +131,6 @@ public class Identifier extends DataType implements ICompositeType { case TEMP: return "Temp"; case SECONDARY: return "Secondary"; case OLD: return "Old"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImagingStudy.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImagingStudy.java index fdb53e31b..89fbcad95 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImagingStudy.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImagingStudy.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -103,7 +103,6 @@ public class ImagingStudy extends DomainResource { case CANCELLED: return "cancelled"; case ENTEREDINERROR: return "entered-in-error"; case UNKNOWN: return "unknown"; - case NULL: return null; default: return "?"; } } @@ -114,7 +113,6 @@ public class ImagingStudy extends DomainResource { case CANCELLED: return "http://hl7.org/fhir/imagingstudy-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/imagingstudy-status"; case UNKNOWN: return "http://hl7.org/fhir/imagingstudy-status"; - case NULL: return null; default: return "?"; } } @@ -125,7 +123,6 @@ public class ImagingStudy extends DomainResource { case CANCELLED: return "The imaging study is unavailable because the imaging study was not started or not completed (also sometimes called \"aborted\")."; case ENTEREDINERROR: return "The imaging study has been withdrawn following a previous final release. This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)."; case UNKNOWN: return "The system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, it's just not known which one."; - case NULL: return null; default: return "?"; } } @@ -136,7 +133,6 @@ public class ImagingStudy extends DomainResource { case CANCELLED: return "Cancelled"; case ENTEREDINERROR: return "Entered in Error"; case UNKNOWN: return "Unknown"; - case NULL: return null; default: return "?"; } } @@ -413,10 +409,10 @@ public class ImagingStudy extends DomainResource { protected UnsignedIntType number; /** - * The distinct modality for this series. This may include both aquisition and non-aquisition modalities. + * The distinct modality for this series. This may include both acquisition and non-acquisition modalities. */ @Child(name = "modality", type = {Coding.class}, order=3, min=1, max=1, modifier=false, summary=true) - @Description(shortDefinition="The modality used for this series", formalDefinition="The distinct modality for this series. This may include both aquisition and non-aquisition modalities." ) + @Description(shortDefinition="The modality used for this series", formalDefinition="The distinct modality for this series. This may include both acquisition and non-acquisition modalities." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_33.html") protected Coding modality; @@ -594,7 +590,7 @@ public class ImagingStudy extends DomainResource { } /** - * @return {@link #modality} (The distinct modality for this series. This may include both aquisition and non-aquisition modalities.) + * @return {@link #modality} (The distinct modality for this series. This may include both acquisition and non-acquisition modalities.) */ public Coding getModality() { if (this.modality == null) @@ -610,7 +606,7 @@ public class ImagingStudy extends DomainResource { } /** - * @param value {@link #modality} (The distinct modality for this series. This may include both aquisition and non-aquisition modalities.) + * @param value {@link #modality} (The distinct modality for this series. This may include both acquisition and non-acquisition modalities.) */ public ImagingStudySeriesComponent setModality(Coding value) { this.modality = value; @@ -1024,7 +1020,7 @@ public class ImagingStudy extends DomainResource { super.listChildren(children); children.add(new Property("uid", "id", "The DICOM Series Instance UID for the series.", 0, 1, uid)); children.add(new Property("number", "unsignedInt", "The numeric identifier of this series in the study.", 0, 1, number)); - children.add(new Property("modality", "Coding", "The distinct modality for this series. This may include both aquisition and non-aquisition modalities.", 0, 1, modality)); + children.add(new Property("modality", "Coding", "The distinct modality for this series. This may include both acquisition and non-acquisition modalities.", 0, 1, modality)); children.add(new Property("description", "string", "A description of the series.", 0, 1, description)); children.add(new Property("numberOfInstances", "unsignedInt", "Number of SOP Instances in the Study. The value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present.", 0, 1, numberOfInstances)); children.add(new Property("endpoint", "Reference(Endpoint)", "The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.connectionType.", 0, java.lang.Integer.MAX_VALUE, endpoint)); @@ -1041,7 +1037,7 @@ public class ImagingStudy extends DomainResource { switch (_hash) { case 115792: /*uid*/ return new Property("uid", "id", "The DICOM Series Instance UID for the series.", 0, 1, uid); case -1034364087: /*number*/ return new Property("number", "unsignedInt", "The numeric identifier of this series in the study.", 0, 1, number); - case -622722335: /*modality*/ return new Property("modality", "Coding", "The distinct modality for this series. This may include both aquisition and non-aquisition modalities.", 0, 1, modality); + case -622722335: /*modality*/ return new Property("modality", "Coding", "The distinct modality for this series. This may include both acquisition and non-acquisition modalities.", 0, 1, modality); case -1724546052: /*description*/ return new Property("description", "string", "A description of the series.", 0, 1, description); case -1043544226: /*numberOfInstances*/ return new Property("numberOfInstances", "unsignedInt", "Number of SOP Instances in the Study. The value given may be larger than the number of instance elements this resource contains due to resource availability, security, or other factors. This element should be present if any instance elements are present.", 0, 1, numberOfInstances); case 1741102485: /*endpoint*/ return new Property("endpoint", "Reference(Endpoint)", "The network service providing access (e.g., query, view, or retrieval) for this series. See implementation notes for information about using DICOM endpoints. A series-level endpoint, if present, has precedence over a study-level endpoint with the same Endpoint.connectionType.", 0, java.lang.Integer.MAX_VALUE, endpoint); @@ -1894,25 +1890,25 @@ public class ImagingStudy extends DomainResource { } /** - * Identifiers for the ImagingStudy such as DICOM Study Instance UID, and Accession Number. + * Identifiers for the ImagingStudy such as DICOM Study Instance UID. */ @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Identifiers for the whole study", formalDefinition="Identifiers for the ImagingStudy such as DICOM Study Instance UID, and Accession Number." ) + @Description(shortDefinition="Identifiers for the whole study", formalDefinition="Identifiers for the ImagingStudy such as DICOM Study Instance UID." ) protected List identifier; /** - * The current state of the ImagingStudy. + * The current state of the ImagingStudy resource. This is not the status of any ServiceRequest or Task resources associated with the ImagingStudy. */ @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) - @Description(shortDefinition="registered | available | cancelled | entered-in-error | unknown", formalDefinition="The current state of the ImagingStudy." ) + @Description(shortDefinition="registered | available | cancelled | entered-in-error | unknown", formalDefinition="The current state of the ImagingStudy resource. This is not the status of any ServiceRequest or Task resources associated with the ImagingStudy." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/imagingstudy-status") protected Enumeration status; /** - * A list of all the distinct values of series.modality. This may include both aquisition and non-aquisition modalities. + * A list of all the distinct values of series.modality. This may include both acquisition and non-acquisition modalities. */ @Child(name = "modality", type = {Coding.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="All of the distinct values for series' modalities", formalDefinition="A list of all the distinct values of series.modality. This may include both aquisition and non-aquisition modalities." ) + @Description(shortDefinition="All of the distinct values for series' modalities", formalDefinition="A list of all the distinct values of series.modality. This may include both acquisition and non-acquisition modalities." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://dicom.nema.org/medical/dicom/current/output/chtml/part16/sect_CID_33.html") protected List modality; @@ -2041,7 +2037,7 @@ public class ImagingStudy extends DomainResource { } /** - * @return {@link #identifier} (Identifiers for the ImagingStudy such as DICOM Study Instance UID, and Accession Number.) + * @return {@link #identifier} (Identifiers for the ImagingStudy such as DICOM Study Instance UID.) */ public List getIdentifier() { if (this.identifier == null) @@ -2094,7 +2090,7 @@ public class ImagingStudy extends DomainResource { } /** - * @return {@link #status} (The current state of the ImagingStudy.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value + * @return {@link #status} (The current state of the ImagingStudy resource. This is not the status of any ServiceRequest or Task resources associated with the ImagingStudy.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ public Enumeration getStatusElement() { if (this.status == null) @@ -2114,7 +2110,7 @@ public class ImagingStudy extends DomainResource { } /** - * @param value {@link #status} (The current state of the ImagingStudy.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value + * @param value {@link #status} (The current state of the ImagingStudy resource. This is not the status of any ServiceRequest or Task resources associated with the ImagingStudy.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ public ImagingStudy setStatusElement(Enumeration value) { this.status = value; @@ -2122,14 +2118,14 @@ public class ImagingStudy extends DomainResource { } /** - * @return The current state of the ImagingStudy. + * @return The current state of the ImagingStudy resource. This is not the status of any ServiceRequest or Task resources associated with the ImagingStudy. */ public ImagingStudyStatus getStatus() { return this.status == null ? null : this.status.getValue(); } /** - * @param value The current state of the ImagingStudy. + * @param value The current state of the ImagingStudy resource. This is not the status of any ServiceRequest or Task resources associated with the ImagingStudy. */ public ImagingStudy setStatus(ImagingStudyStatus value) { if (this.status == null) @@ -2139,7 +2135,7 @@ public class ImagingStudy extends DomainResource { } /** - * @return {@link #modality} (A list of all the distinct values of series.modality. This may include both aquisition and non-aquisition modalities.) + * @return {@link #modality} (A list of all the distinct values of series.modality. This may include both acquisition and non-acquisition modalities.) */ public List getModality() { if (this.modality == null) @@ -2848,9 +2844,9 @@ public class ImagingStudy extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("identifier", "Identifier", "Identifiers for the ImagingStudy such as DICOM Study Instance UID, and Accession Number.", 0, java.lang.Integer.MAX_VALUE, identifier)); - children.add(new Property("status", "code", "The current state of the ImagingStudy.", 0, 1, status)); - children.add(new Property("modality", "Coding", "A list of all the distinct values of series.modality. This may include both aquisition and non-aquisition modalities.", 0, java.lang.Integer.MAX_VALUE, modality)); + children.add(new Property("identifier", "Identifier", "Identifiers for the ImagingStudy such as DICOM Study Instance UID.", 0, java.lang.Integer.MAX_VALUE, identifier)); + children.add(new Property("status", "code", "The current state of the ImagingStudy resource. This is not the status of any ServiceRequest or Task resources associated with the ImagingStudy.", 0, 1, status)); + children.add(new Property("modality", "Coding", "A list of all the distinct values of series.modality. This may include both acquisition and non-acquisition modalities.", 0, java.lang.Integer.MAX_VALUE, modality)); children.add(new Property("subject", "Reference(Patient|Device|Group)", "The subject, typically a patient, of the imaging study.", 0, 1, subject)); children.add(new Property("encounter", "Reference(Encounter)", "The healthcare event (e.g. a patient and healthcare provider interaction) during which this ImagingStudy is made.", 0, 1, encounter)); children.add(new Property("started", "dateTime", "Date and time the study started.", 0, 1, started)); @@ -2871,9 +2867,9 @@ public class ImagingStudy extends DomainResource { @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifiers for the ImagingStudy such as DICOM Study Instance UID, and Accession Number.", 0, java.lang.Integer.MAX_VALUE, identifier); - case -892481550: /*status*/ return new Property("status", "code", "The current state of the ImagingStudy.", 0, 1, status); - case -622722335: /*modality*/ return new Property("modality", "Coding", "A list of all the distinct values of series.modality. This may include both aquisition and non-aquisition modalities.", 0, java.lang.Integer.MAX_VALUE, modality); + case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifiers for the ImagingStudy such as DICOM Study Instance UID.", 0, java.lang.Integer.MAX_VALUE, identifier); + case -892481550: /*status*/ return new Property("status", "code", "The current state of the ImagingStudy resource. This is not the status of any ServiceRequest or Task resources associated with the ImagingStudy.", 0, 1, status); + case -622722335: /*modality*/ return new Property("modality", "Coding", "A list of all the distinct values of series.modality. This may include both acquisition and non-acquisition modalities.", 0, java.lang.Integer.MAX_VALUE, modality); case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Device|Group)", "The subject, typically a patient, of the imaging study.", 0, 1, subject); case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "The healthcare event (e.g. a patient and healthcare provider interaction) during which this ImagingStudy is made.", 0, 1, encounter); case -1897185151: /*started*/ return new Property("started", "dateTime", "Date and time the study started.", 0, 1, started); @@ -3255,20 +3251,198 @@ public class ImagingStudy extends DomainResource { return ResourceType.ImagingStudy; } + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ImagingStudy:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("ImagingStudy:patient").toLocked(); + /** * Search parameter: basedon *

- * Description: The order for the image
+ * Description: The order for the image, such as Accession Number associated with a ServiceRequest
* Type: reference
* Path: ImagingStudy.basedOn
*

*/ - @SearchParamDefinition(name="basedon", path="ImagingStudy.basedOn", description="The order for the image", type="reference", target={Appointment.class, AppointmentResponse.class, CarePlan.class, ServiceRequest.class, Task.class } ) + @SearchParamDefinition(name="basedon", path="ImagingStudy.basedOn", description="The order for the image, such as Accession Number associated with a ServiceRequest", type="reference", target={Appointment.class, AppointmentResponse.class, CarePlan.class, ServiceRequest.class, Task.class } ) public static final String SP_BASEDON = "basedon"; /** * Fluent Client search parameter constant for basedon *

- * Description: The order for the image
+ * Description: The order for the image, such as Accession Number associated with a ServiceRequest
* Type: reference
* Path: ImagingStudy.basedOn
*

@@ -3597,184 +3771,6 @@ public class ImagingStudy extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("ImagingStudy:subject").toLocked(); - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ImagingStudy:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("ImagingStudy:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Immunization.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Immunization.java index 4e080beb7..ceaced03a 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Immunization.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Immunization.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -89,7 +89,6 @@ public class Immunization extends DomainResource { case COMPLETED: return "completed"; case ENTEREDINERROR: return "entered-in-error"; case NOTDONE: return "not-done"; - case NULL: return null; default: return "?"; } } @@ -98,7 +97,6 @@ public class Immunization extends DomainResource { case COMPLETED: return "http://hl7.org/fhir/event-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/event-status"; case NOTDONE: return "http://hl7.org/fhir/event-status"; - case NULL: return null; default: return "?"; } } @@ -107,7 +105,6 @@ public class Immunization extends DomainResource { case COMPLETED: return "The event has now concluded."; case ENTEREDINERROR: return "This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"stopped\" rather than \"entered-in-error\".)."; case NOTDONE: return "The event was terminated prior to any activity beyond preparation. I.e. The 'main' activity has not yet begun. The boundary between preparatory and the 'main' activity is context-specific."; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class Immunization extends DomainResource { case COMPLETED: return "Completed"; case ENTEREDINERROR: return "Entered in Error"; case NOTDONE: return "Not Done"; - case NULL: return null; default: return "?"; } } @@ -3653,6 +3649,242 @@ public class Immunization extends DomainResource { return ResourceType.Immunization; } + /** + * Search parameter: date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) + public static final String SP_DATE = "date"; + /** + * Fluent Client search parameter constant for date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Immunization:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Immunization:patient").toLocked(); + /** * Search parameter: location *

@@ -3751,26 +3983,6 @@ public class Immunization extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_PERFORMER = new ca.uhn.fhir.model.api.Include("Immunization:performer").toLocked(); - /** - * Search parameter: reaction-date - *

- * Description: When reaction started
- * Type: date
- * Path: Immunization.reaction.date
- *

- */ - @SearchParamDefinition(name="reaction-date", path="Immunization.reaction.date", description="When reaction started", type="date" ) - public static final String SP_REACTION_DATE = "reaction-date"; - /** - * Fluent Client search parameter constant for reaction-date - *

- * Description: When reaction started
- * Type: date
- * Path: Immunization.reaction.date
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam REACTION_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_REACTION_DATE); - /** * Search parameter: reaction *

@@ -3797,6 +4009,26 @@ public class Immunization extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_REACTION = new ca.uhn.fhir.model.api.Include("Immunization:reaction").toLocked(); + /** + * Search parameter: reaction-date + *

+ * Description: When reaction started
+ * Type: date
+ * Path: Immunization.reaction.date
+ *

+ */ + @SearchParamDefinition(name="reaction-date", path="Immunization.reaction.date", description="When reaction started", type="date" ) + public static final String SP_REACTION_DATE = "reaction-date"; + /** + * Fluent Client search parameter constant for reaction-date + *

+ * Description: When reaction started
+ * Type: date
+ * Path: Immunization.reaction.date
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam REACTION_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_REACTION_DATE); + /** * Search parameter: reason-code *

@@ -3863,26 +4095,6 @@ public class Immunization extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam SERIES = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_SERIES); - /** - * Search parameter: status-reason - *

- * Description: Reason why the vaccine was not administered
- * Type: token
- * Path: Immunization.statusReason
- *

- */ - @SearchParamDefinition(name="status-reason", path="Immunization.statusReason", description="Reason why the vaccine was not administered", type="token" ) - public static final String SP_STATUS_REASON = "status-reason"; - /** - * Fluent Client search parameter constant for status-reason - *

- * Description: Reason why the vaccine was not administered
- * Type: token
- * Path: Immunization.statusReason
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS_REASON = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS_REASON); - /** * Search parameter: status *

@@ -3903,6 +4115,26 @@ public class Immunization extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); + /** + * Search parameter: status-reason + *

+ * Description: Reason why the vaccine was not administered
+ * Type: token
+ * Path: Immunization.statusReason
+ *

+ */ + @SearchParamDefinition(name="status-reason", path="Immunization.statusReason", description="Reason why the vaccine was not administered", type="token" ) + public static final String SP_STATUS_REASON = "status-reason"; + /** + * Fluent Client search parameter constant for status-reason + *

+ * Description: Reason why the vaccine was not administered
+ * Type: token
+ * Path: Immunization.statusReason
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS_REASON = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS_REASON); + /** * Search parameter: target-disease *

@@ -3943,242 +4175,6 @@ public class Immunization extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VACCINE_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VACCINE_CODE); - /** - * Search parameter: date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) - public static final String SP_DATE = "date"; - /** - * Fluent Client search parameter constant for date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Immunization:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Immunization:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationEvaluation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationEvaluation.java index bd9a42b6d..fa36c9d50 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationEvaluation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationEvaluation.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -82,7 +82,6 @@ public class ImmunizationEvaluation extends DomainResource { switch (this) { case COMPLETED: return "completed"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -90,7 +89,6 @@ public class ImmunizationEvaluation extends DomainResource { switch (this) { case COMPLETED: return "http://hl7.org/fhir/CodeSystem/medication-admin-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/CodeSystem/medication-admin-status"; - case NULL: return null; default: return "?"; } } @@ -98,7 +96,6 @@ public class ImmunizationEvaluation extends DomainResource { switch (this) { case COMPLETED: return "All actions that are implied by the administration have occurred."; case ENTEREDINERROR: return "The administration was entered in error and therefore nullified."; - case NULL: return null; default: return "?"; } } @@ -106,7 +103,6 @@ public class ImmunizationEvaluation extends DomainResource { switch (this) { case COMPLETED: return "Completed"; case ENTEREDINERROR: return "Entered in Error"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationRecommendation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationRecommendation.java index 7f20c27f4..5dd709266 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationRecommendation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImmunizationRecommendation.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -1950,7 +1950,7 @@ public class ImmunizationRecommendation extends DomainResource { * Path: ImmunizationRecommendation.recommendation.supportingPatientInformation
*

*/ - @SearchParamDefinition(name="information", path="ImmunizationRecommendation.recommendation.supportingPatientInformation", description="Patient observations supporting recommendation", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="information", path="ImmunizationRecommendation.recommendation.supportingPatientInformation", description="Patient observations supporting recommendation", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_INFORMATION = "information"; /** * Fluent Client search parameter constant for information diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImplementationGuide.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImplementationGuide.java index 2191d5f15..b8d440f9f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImplementationGuide.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ImplementationGuide.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class ImplementationGuide extends CanonicalResource { case MARKDOWN: return "markdown"; case XML: return "xml"; case GENERATED: return "generated"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class ImplementationGuide extends CanonicalResource { case MARKDOWN: return "http://hl7.org/fhir/guide-page-generation"; case XML: return "http://hl7.org/fhir/guide-page-generation"; case GENERATED: return "http://hl7.org/fhir/guide-page-generation"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class ImplementationGuide extends CanonicalResource { case MARKDOWN: return "Page is markdown with templating. Will use the template to create a file that imports the markdown file prior to post-processing."; case XML: return "Page is xml with templating. Will use the template to create a file that imports the source file and run the nominated XSLT transform (see parameters) if present prior to post-processing."; case GENERATED: return "Page will be generated by the publication process - no source to bring across."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class ImplementationGuide extends CanonicalResource { case MARKDOWN: return "Markdown"; case XML: return "XML"; case GENERATED: return "Generated"; - case NULL: return null; default: return "?"; } } @@ -2618,7 +2614,6 @@ public class ImplementationGuide extends CanonicalResource { case ZPL1_1: return "ZPL-1.1"; case ZPL2_0: return "ZPL-2.0"; case ZPL2_1: return "ZPL-2.1"; - case NULL: return null; default: return "?"; } } @@ -2970,7 +2965,6 @@ public class ImplementationGuide extends CanonicalResource { case ZPL1_1: return "http://hl7.org/fhir/spdx-license"; case ZPL2_0: return "http://hl7.org/fhir/spdx-license"; case ZPL2_1: return "http://hl7.org/fhir/spdx-license"; - case NULL: return null; default: return "?"; } } @@ -3322,7 +3316,6 @@ public class ImplementationGuide extends CanonicalResource { case ZPL1_1: return "Zope Public License 1.1."; case ZPL2_0: return "Zope Public License 2.0."; case ZPL2_1: return "Zope Public License 2.1."; - case NULL: return null; default: return "?"; } } @@ -3674,7 +3667,6 @@ public class ImplementationGuide extends CanonicalResource { case ZPL1_1: return "Zope Public License 1.1"; case ZPL2_0: return "Zope Public License 2.0"; case ZPL2_1: return "Zope Public License 2.1"; - case NULL: return null; default: return "?"; } } @@ -9912,10 +9904,10 @@ public class ImplementationGuide extends CanonicalResource { protected Enumeration license; /** - * The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version. + * The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version. */ @Child(name = "fhirVersion", type = {CodeType.class}, order=15, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="FHIR Version(s) this Implementation Guide targets", formalDefinition="The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version." ) + @Description(shortDefinition="FHIR Version(s) this Implementation Guide targets", formalDefinition="The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/FHIR-version") protected List> fhirVersion; @@ -10696,7 +10688,7 @@ public class ImplementationGuide extends CanonicalResource { } /** - * @return {@link #fhirVersion} (The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version.) + * @return {@link #fhirVersion} (The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version.) */ public List> getFhirVersion() { if (this.fhirVersion == null) @@ -10722,7 +10714,7 @@ public class ImplementationGuide extends CanonicalResource { } /** - * @return {@link #fhirVersion} (The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version.) + * @return {@link #fhirVersion} (The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version.) */ public Enumeration addFhirVersionElement() {//2 Enumeration t = new Enumeration(new FHIRVersionEnumFactory()); @@ -10733,7 +10725,7 @@ public class ImplementationGuide extends CanonicalResource { } /** - * @param value {@link #fhirVersion} (The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version.) + * @param value {@link #fhirVersion} (The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version.) */ public ImplementationGuide addFhirVersion(FHIRVersion value) { //1 Enumeration t = new Enumeration(new FHIRVersionEnumFactory()); @@ -10745,7 +10737,7 @@ public class ImplementationGuide extends CanonicalResource { } /** - * @param value {@link #fhirVersion} (The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version.) + * @param value {@link #fhirVersion} (The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version.) */ public boolean hasFhirVersion(FHIRVersion value) { if (this.fhirVersion == null) @@ -10998,7 +10990,7 @@ public class ImplementationGuide extends CanonicalResource { children.add(new Property("copyright", "markdown", "A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the implementation guide.", 0, 1, copyright)); children.add(new Property("packageId", "id", "The NPM package name for this Implementation Guide, used in the NPM package distribution, which is the primary mechanism by which FHIR based tooling manages IG dependencies. This value must be globally unique, and should be assigned with care.", 0, 1, packageId)); children.add(new Property("license", "code", "The license that applies to this Implementation Guide, using an SPDX license code, or 'not-open-source'.", 0, 1, license)); - children.add(new Property("fhirVersion", "code", "The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version.", 0, java.lang.Integer.MAX_VALUE, fhirVersion)); + children.add(new Property("fhirVersion", "code", "The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version.", 0, java.lang.Integer.MAX_VALUE, fhirVersion)); children.add(new Property("dependsOn", "", "Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides.", 0, java.lang.Integer.MAX_VALUE, dependsOn)); children.add(new Property("global", "", "A set of profiles that all resources covered by this implementation guide must conform to.", 0, java.lang.Integer.MAX_VALUE, global)); children.add(new Property("definition", "", "The information needed by an IG publisher tool to publish the whole implementation guide.", 0, 1, definition)); @@ -11023,7 +11015,7 @@ public class ImplementationGuide extends CanonicalResource { case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the implementation guide.", 0, 1, copyright); case 1802060801: /*packageId*/ return new Property("packageId", "id", "The NPM package name for this Implementation Guide, used in the NPM package distribution, which is the primary mechanism by which FHIR based tooling manages IG dependencies. This value must be globally unique, and should be assigned with care.", 0, 1, packageId); case 166757441: /*license*/ return new Property("license", "code", "The license that applies to this Implementation Guide, using an SPDX license code, or 'not-open-source'.", 0, 1, license); - case 461006061: /*fhirVersion*/ return new Property("fhirVersion", "code", "The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version.", 0, java.lang.Integer.MAX_VALUE, fhirVersion); + case 461006061: /*fhirVersion*/ return new Property("fhirVersion", "code", "The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version.", 0, java.lang.Integer.MAX_VALUE, fhirVersion); case -1109214266: /*dependsOn*/ return new Property("dependsOn", "", "Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides.", 0, java.lang.Integer.MAX_VALUE, dependsOn); case -1243020381: /*global*/ return new Property("global", "", "A set of profiles that all resources covered by this implementation guide must conform to.", 0, java.lang.Integer.MAX_VALUE, global); case -1014418093: /*definition*/ return new Property("definition", "", "The information needed by an IG publisher tool to publish the whole implementation guide.", 0, 1, definition); @@ -11413,102 +11405,56 @@ public class ImplementationGuide extends CanonicalResource { } /** - * Search parameter: depends-on + * Search parameter: context *

- * Description: Identity of the IG that this depends on
- * Type: reference
- * Path: ImplementationGuide.dependsOn.uri
- *

- */ - @SearchParamDefinition(name="depends-on", path="ImplementationGuide.dependsOn.uri", description="Identity of the IG that this depends on", type="reference", target={ImplementationGuide.class } ) - public static final String SP_DEPENDS_ON = "depends-on"; - /** - * Fluent Client search parameter constant for depends-on - *

- * Description: Identity of the IG that this depends on
- * Type: reference
- * Path: ImplementationGuide.dependsOn.uri
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DEPENDS_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DEPENDS_ON); + * Description: Multiple Resources: -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ImplementationGuide:depends-on". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_DEPENDS_ON = new ca.uhn.fhir.model.api.Include("ImplementationGuide:depends-on").toLocked(); - - /** - * Search parameter: experimental - *

- * Description: For testing purposes, not real usage
+* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +

* Type: token
- * Path: ImplementationGuide.experimental
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="experimental", path="ImplementationGuide.experimental", description="For testing purposes, not real usage", type="token" ) - public static final String SP_EXPERIMENTAL = "experimental"; + @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) + public static final String SP_CONTEXT = "context"; /** - * Fluent Client search parameter constant for experimental + * Fluent Client search parameter constant for context *

- * Description: For testing purposes, not real usage
+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +
* Type: token
- * Path: ImplementationGuide.experimental
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam EXPERIMENTAL = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EXPERIMENTAL); - - /** - * Search parameter: global - *

- * Description: Profile that all resources must conform to
- * Type: reference
- * Path: ImplementationGuide.global.profile
- *

- */ - @SearchParamDefinition(name="global", path="ImplementationGuide.global.profile", description="Profile that all resources must conform to", type="reference", target={StructureDefinition.class } ) - public static final String SP_GLOBAL = "global"; - /** - * Fluent Client search parameter constant for global - *

- * Description: Profile that all resources must conform to
- * Type: reference
- * Path: ImplementationGuide.global.profile
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam GLOBAL = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_GLOBAL); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ImplementationGuide:global". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_GLOBAL = new ca.uhn.fhir.model.api.Include("ImplementationGuide:global").toLocked(); - - /** - * Search parameter: resource - *

- * Description: Location of the resource
- * Type: reference
- * Path: ImplementationGuide.definition.resource.reference
- *

- */ - @SearchParamDefinition(name="resource", path="ImplementationGuide.definition.resource.reference", description="Location of the resource", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) - public static final String SP_RESOURCE = "resource"; - /** - * Fluent Client search parameter constant for resource - *

- * Description: Location of the resource
- * Type: reference
- * Path: ImplementationGuide.definition.resource.reference
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RESOURCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RESOURCE); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ImplementationGuide:resource". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_RESOURCE = new ca.uhn.fhir.model.api.Include("ImplementationGuide:resource").toLocked(); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); /** * Search parameter: context-quantity @@ -11562,110 +11508,6 @@ public class ImplementationGuide extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -11718,58 +11560,6 @@ public class ImplementationGuide extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -12228,6 +12018,208 @@ public class ImplementationGuide extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + + /** + * Search parameter: depends-on + *

+ * Description: Identity of the IG that this depends on
+ * Type: reference
+ * Path: ImplementationGuide.dependsOn.uri
+ *

+ */ + @SearchParamDefinition(name="depends-on", path="ImplementationGuide.dependsOn.uri", description="Identity of the IG that this depends on", type="reference", target={ImplementationGuide.class } ) + public static final String SP_DEPENDS_ON = "depends-on"; + /** + * Fluent Client search parameter constant for depends-on + *

+ * Description: Identity of the IG that this depends on
+ * Type: reference
+ * Path: ImplementationGuide.dependsOn.uri
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DEPENDS_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DEPENDS_ON); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ImplementationGuide:depends-on". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_DEPENDS_ON = new ca.uhn.fhir.model.api.Include("ImplementationGuide:depends-on").toLocked(); + + /** + * Search parameter: experimental + *

+ * Description: For testing purposes, not real usage
+ * Type: token
+ * Path: ImplementationGuide.experimental
+ *

+ */ + @SearchParamDefinition(name="experimental", path="ImplementationGuide.experimental", description="For testing purposes, not real usage", type="token" ) + public static final String SP_EXPERIMENTAL = "experimental"; + /** + * Fluent Client search parameter constant for experimental + *

+ * Description: For testing purposes, not real usage
+ * Type: token
+ * Path: ImplementationGuide.experimental
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam EXPERIMENTAL = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EXPERIMENTAL); + + /** + * Search parameter: global + *

+ * Description: Profile that all resources must conform to
+ * Type: reference
+ * Path: ImplementationGuide.global.profile
+ *

+ */ + @SearchParamDefinition(name="global", path="ImplementationGuide.global.profile", description="Profile that all resources must conform to", type="reference", target={StructureDefinition.class } ) + public static final String SP_GLOBAL = "global"; + /** + * Fluent Client search parameter constant for global + *

+ * Description: Profile that all resources must conform to
+ * Type: reference
+ * Path: ImplementationGuide.global.profile
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam GLOBAL = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_GLOBAL); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ImplementationGuide:global". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_GLOBAL = new ca.uhn.fhir.model.api.Include("ImplementationGuide:global").toLocked(); + + /** + * Search parameter: resource + *

+ * Description: Location of the resource
+ * Type: reference
+ * Path: ImplementationGuide.definition.resource.reference
+ *

+ */ + @SearchParamDefinition(name="resource", path="ImplementationGuide.definition.resource.reference", description="Location of the resource", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_RESOURCE = "resource"; + /** + * Fluent Client search parameter constant for resource + *

+ * Description: Location of the resource
+ * Type: reference
+ * Path: ImplementationGuide.definition.resource.reference
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RESOURCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RESOURCE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ImplementationGuide:resource". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_RESOURCE = new ca.uhn.fhir.model.api.Include("ImplementationGuide:resource").toLocked(); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ingredient.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ingredient.java index b45520c1c..fdd8c64d4 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ingredient.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ingredient.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -58,18 +58,18 @@ public class Ingredient extends DomainResource { /** * A code or full resource that represents the ingredient substance. */ - @Child(name = "code", type = {CodeableConcept.class, SubstanceDefinition.class, Substance.class}, order=1, min=1, max=1, modifier=false, summary=true) + @Child(name = "code", type = {CodeableReference.class}, order=1, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="A code or full resource that represents the ingredient substance", formalDefinition="A code or full resource that represents the ingredient substance." ) - protected DataType code; + protected CodeableReference code; /** - * Quantity of the substance or specified substance present in the manufactured item or pharmaceutical product. + * The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item. When there is a range of strengths, this represents the lower limit. */ @Child(name = "strength", type = {}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Quantity of the substance or specified substance present in the manufactured item or pharmaceutical product", formalDefinition="Quantity of the substance or specified substance present in the manufactured item or pharmaceutical product." ) + @Description(shortDefinition="The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item. When there is a range of strengths, this represents the lower limit", formalDefinition="The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item. When there is a range of strengths, this represents the lower limit." ) protected List strength; - private static final long serialVersionUID = -70189331L; + private static final long serialVersionUID = 538347209L; /** * Constructor @@ -81,7 +81,7 @@ public class Ingredient extends DomainResource { /** * Constructor */ - public IngredientSubstanceComponent(DataType code) { + public IngredientSubstanceComponent(CodeableReference code) { super(); this.setCode(code); } @@ -89,40 +89,15 @@ public class Ingredient extends DomainResource { /** * @return {@link #code} (A code or full resource that represents the ingredient substance.) */ - public DataType getCode() { + public CodeableReference getCode() { + if (this.code == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create IngredientSubstanceComponent.code"); + else if (Configuration.doAutoCreate()) + this.code = new CodeableReference(); // cc return this.code; } - /** - * @return {@link #code} (A code or full resource that represents the ingredient substance.) - */ - public CodeableConcept getCodeCodeableConcept() throws FHIRException { - if (this.code == null) - this.code = new CodeableConcept(); - if (!(this.code instanceof CodeableConcept)) - throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.code.getClass().getName()+" was encountered"); - return (CodeableConcept) this.code; - } - - public boolean hasCodeCodeableConcept() { - return this != null && this.code instanceof CodeableConcept; - } - - /** - * @return {@link #code} (A code or full resource that represents the ingredient substance.) - */ - public Reference getCodeReference() throws FHIRException { - if (this.code == null) - this.code = new Reference(); - if (!(this.code instanceof Reference)) - throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.code.getClass().getName()+" was encountered"); - return (Reference) this.code; - } - - public boolean hasCodeReference() { - return this != null && this.code instanceof Reference; - } - public boolean hasCode() { return this.code != null && !this.code.isEmpty(); } @@ -130,15 +105,13 @@ public class Ingredient extends DomainResource { /** * @param value {@link #code} (A code or full resource that represents the ingredient substance.) */ - public IngredientSubstanceComponent setCode(DataType value) { - if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) - throw new Error("Not the right type for Ingredient.substance.code[x]: "+value.fhirType()); + public IngredientSubstanceComponent setCode(CodeableReference value) { this.code = value; return this; } /** - * @return {@link #strength} (Quantity of the substance or specified substance present in the manufactured item or pharmaceutical product.) + * @return {@link #strength} (The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item. When there is a range of strengths, this represents the lower limit.) */ public List getStrength() { if (this.strength == null) @@ -192,18 +165,15 @@ public class Ingredient extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("code[x]", "CodeableConcept|Reference(SubstanceDefinition|Substance)", "A code or full resource that represents the ingredient substance.", 0, 1, code)); - children.add(new Property("strength", "", "Quantity of the substance or specified substance present in the manufactured item or pharmaceutical product.", 0, java.lang.Integer.MAX_VALUE, strength)); + children.add(new Property("code", "CodeableReference(SubstanceDefinition|Substance)", "A code or full resource that represents the ingredient substance.", 0, 1, code)); + children.add(new Property("strength", "", "The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item. When there is a range of strengths, this represents the lower limit.", 0, java.lang.Integer.MAX_VALUE, strength)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 941839219: /*code[x]*/ return new Property("code[x]", "CodeableConcept|Reference(SubstanceDefinition|Substance)", "A code or full resource that represents the ingredient substance.", 0, 1, code); - case 3059181: /*code*/ return new Property("code[x]", "CodeableConcept|Reference(SubstanceDefinition|Substance)", "A code or full resource that represents the ingredient substance.", 0, 1, code); - case 4899316: /*codeCodeableConcept*/ return new Property("code[x]", "CodeableConcept", "A code or full resource that represents the ingredient substance.", 0, 1, code); - case 1565461470: /*codeReference*/ return new Property("code[x]", "Reference(SubstanceDefinition|Substance)", "A code or full resource that represents the ingredient substance.", 0, 1, code); - case 1791316033: /*strength*/ return new Property("strength", "", "Quantity of the substance or specified substance present in the manufactured item or pharmaceutical product.", 0, java.lang.Integer.MAX_VALUE, strength); + case 3059181: /*code*/ return new Property("code", "CodeableReference(SubstanceDefinition|Substance)", "A code or full resource that represents the ingredient substance.", 0, 1, code); + case 1791316033: /*strength*/ return new Property("strength", "", "The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item. When there is a range of strengths, this represents the lower limit.", 0, java.lang.Integer.MAX_VALUE, strength); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -212,7 +182,7 @@ public class Ingredient extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // DataType + case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableReference case 1791316033: /*strength*/ return this.strength == null ? new Base[0] : this.strength.toArray(new Base[this.strength.size()]); // IngredientSubstanceStrengthComponent default: return super.getProperty(hash, name, checkValid); } @@ -223,7 +193,7 @@ public class Ingredient extends DomainResource { public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3059181: // code - this.code = TypeConvertor.castToType(value); // DataType + this.code = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; case 1791316033: // strength this.getStrength().add((IngredientSubstanceStrengthComponent) value); // IngredientSubstanceStrengthComponent @@ -235,8 +205,8 @@ public class Ingredient extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("code[x]")) { - this.code = TypeConvertor.castToType(value); // DataType + if (name.equals("code")) { + this.code = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("strength")) { this.getStrength().add((IngredientSubstanceStrengthComponent) value); } else @@ -247,7 +217,6 @@ public class Ingredient extends DomainResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { - case 941839219: return getCode(); case 3059181: return getCode(); case 1791316033: return addStrength(); default: return super.makeProperty(hash, name); @@ -258,7 +227,7 @@ public class Ingredient extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case 3059181: /*code*/ return new String[] {"CodeableConcept", "Reference"}; + case 3059181: /*code*/ return new String[] {"CodeableReference"}; case 1791316033: /*strength*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -267,12 +236,8 @@ public class Ingredient extends DomainResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("codeCodeableConcept")) { - this.code = new CodeableConcept(); - return this.code; - } - else if (name.equals("codeReference")) { - this.code = new Reference(); + if (name.equals("code")) { + this.code = new CodeableReference(); return this.code; } else if (name.equals("strength")) { @@ -334,16 +299,16 @@ public class Ingredient extends DomainResource { /** * The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item. */ - @Child(name = "presentation", type = {Ratio.class}, order=1, min=0, max=1, modifier=false, summary=true) + @Child(name = "presentation", type = {Ratio.class, CodeableConcept.class, Quantity.class}, order=1, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item", formalDefinition="The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item." ) - protected Ratio presentation; + protected DataType presentation; /** - * An upper limit for the quantity of substance in the unit of presentation. For use when there is a range of strengths, this is the high limit, with the presentation attribute becoming the lower limit. + * An upper limit for the quantity of substance in the unit of presentation. When there is a range of strengths, this represents the upper limit. */ - @Child(name = "presentationHighLimit", type = {Ratio.class}, order=2, min=0, max=1, modifier=true, summary=true) - @Description(shortDefinition="An upper limit for the quantity of substance in the unit of presentation. For use when there is a range of strengths, this is the high limit, with the presentation attribute becoming the lower limit", formalDefinition="An upper limit for the quantity of substance in the unit of presentation. For use when there is a range of strengths, this is the high limit, with the presentation attribute becoming the lower limit." ) - protected Ratio presentationHighLimit; + @Child(name = "presentationHighLimit", type = {Ratio.class, Quantity.class}, order=2, min=0, max=1, modifier=true, summary=true) + @Description(shortDefinition="An upper limit for the quantity of substance in the unit of presentation. When there is a range of strengths, this represents the upper limit", formalDefinition="An upper limit for the quantity of substance in the unit of presentation. When there is a range of strengths, this represents the upper limit." ) + protected DataType presentationHighLimit; /** * A textual represention of either the whole of the presentation strength or a part of it - with the rest being in Strength.presentation as a ratio. @@ -355,16 +320,16 @@ public class Ingredient extends DomainResource { /** * The strength per unitary volume (or mass). */ - @Child(name = "concentration", type = {Ratio.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Child(name = "concentration", type = {Ratio.class, CodeableConcept.class, Quantity.class}, order=4, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="The strength per unitary volume (or mass)", formalDefinition="The strength per unitary volume (or mass)." ) - protected Ratio concentration; + protected DataType concentration; /** * An upper limit for the strength per unitary volume (or mass), for when there is a range. The concentration attribute then becomes the lower limit. */ - @Child(name = "concentrationHighLimit", type = {Ratio.class}, order=5, min=0, max=1, modifier=true, summary=true) + @Child(name = "concentrationHighLimit", type = {Ratio.class, Quantity.class}, order=5, min=0, max=1, modifier=true, summary=true) @Description(shortDefinition="An upper limit for the strength per unitary volume (or mass), for when there is a range. The concentration attribute then becomes the lower limit", formalDefinition="An upper limit for the strength per unitary volume (or mass), for when there is a range. The concentration attribute then becomes the lower limit." ) - protected Ratio concentrationHighLimit; + protected DataType concentrationHighLimit; /** * A textual represention of either the whole of the concentration strength or a part of it - with the rest being in Strength.concentration as a ratio. @@ -373,28 +338,35 @@ public class Ingredient extends DomainResource { @Description(shortDefinition="A textual represention of either the whole of the concentration strength or a part of it - with the rest being in Strength.concentration as a ratio", formalDefinition="A textual represention of either the whole of the concentration strength or a part of it - with the rest being in Strength.concentration as a ratio." ) protected StringType concentrationText; + /** + * A code that indicates if the strength is, for example, based on the ingredient substance as stated or on the substance base (when the ingredient is a salt). + */ + @Child(name = "basis", type = {CodeableConcept.class}, order=7, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="A code that indicates if the strength is, for example, based on the ingredient substance as stated or on the substance base (when the ingredient is a salt)", formalDefinition="A code that indicates if the strength is, for example, based on the ingredient substance as stated or on the substance base (when the ingredient is a salt)." ) + protected CodeableConcept basis; + /** * For when strength is measured at a particular point or distance. */ - @Child(name = "measurementPoint", type = {StringType.class}, order=7, min=0, max=1, modifier=false, summary=true) + @Child(name = "measurementPoint", type = {StringType.class}, order=8, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="For when strength is measured at a particular point or distance", formalDefinition="For when strength is measured at a particular point or distance." ) protected StringType measurementPoint; /** * The country or countries for which the strength range applies. */ - @Child(name = "country", type = {CodeableConcept.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "country", type = {CodeableConcept.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="The country or countries for which the strength range applies", formalDefinition="The country or countries for which the strength range applies." ) protected List country; /** * Strength expressed in terms of a reference substance. */ - @Child(name = "referenceStrength", type = {}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "referenceStrength", type = {}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Strength expressed in terms of a reference substance", formalDefinition="Strength expressed in terms of a reference substance." ) protected List referenceStrength; - private static final long serialVersionUID = 475292608L; + private static final long serialVersionUID = 1517811263L; /** * Constructor @@ -406,15 +378,55 @@ public class Ingredient extends DomainResource { /** * @return {@link #presentation} (The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item.) */ - public Ratio getPresentation() { - if (this.presentation == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create IngredientSubstanceStrengthComponent.presentation"); - else if (Configuration.doAutoCreate()) - this.presentation = new Ratio(); // cc + public DataType getPresentation() { return this.presentation; } + /** + * @return {@link #presentation} (The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item.) + */ + public Ratio getPresentationRatio() throws FHIRException { + if (this.presentation == null) + this.presentation = new Ratio(); + if (!(this.presentation instanceof Ratio)) + throw new FHIRException("Type mismatch: the type Ratio was expected, but "+this.presentation.getClass().getName()+" was encountered"); + return (Ratio) this.presentation; + } + + public boolean hasPresentationRatio() { + return this != null && this.presentation instanceof Ratio; + } + + /** + * @return {@link #presentation} (The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item.) + */ + public CodeableConcept getPresentationCodeableConcept() throws FHIRException { + if (this.presentation == null) + this.presentation = new CodeableConcept(); + if (!(this.presentation instanceof CodeableConcept)) + throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.presentation.getClass().getName()+" was encountered"); + return (CodeableConcept) this.presentation; + } + + public boolean hasPresentationCodeableConcept() { + return this != null && this.presentation instanceof CodeableConcept; + } + + /** + * @return {@link #presentation} (The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item.) + */ + public Quantity getPresentationQuantity() throws FHIRException { + if (this.presentation == null) + this.presentation = new Quantity(); + if (!(this.presentation instanceof Quantity)) + throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.presentation.getClass().getName()+" was encountered"); + return (Quantity) this.presentation; + } + + public boolean hasPresentationQuantity() { + return this != null && this.presentation instanceof Quantity; + } + public boolean hasPresentation() { return this.presentation != null && !this.presentation.isEmpty(); } @@ -422,31 +434,60 @@ public class Ingredient extends DomainResource { /** * @param value {@link #presentation} (The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item.) */ - public IngredientSubstanceStrengthComponent setPresentation(Ratio value) { + public IngredientSubstanceStrengthComponent setPresentation(DataType value) { + if (value != null && !(value instanceof Ratio || value instanceof CodeableConcept || value instanceof Quantity)) + throw new Error("Not the right type for Ingredient.substance.strength.presentation[x]: "+value.fhirType()); this.presentation = value; return this; } /** - * @return {@link #presentationHighLimit} (An upper limit for the quantity of substance in the unit of presentation. For use when there is a range of strengths, this is the high limit, with the presentation attribute becoming the lower limit.) + * @return {@link #presentationHighLimit} (An upper limit for the quantity of substance in the unit of presentation. When there is a range of strengths, this represents the upper limit.) */ - public Ratio getPresentationHighLimit() { - if (this.presentationHighLimit == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create IngredientSubstanceStrengthComponent.presentationHighLimit"); - else if (Configuration.doAutoCreate()) - this.presentationHighLimit = new Ratio(); // cc + public DataType getPresentationHighLimit() { return this.presentationHighLimit; } + /** + * @return {@link #presentationHighLimit} (An upper limit for the quantity of substance in the unit of presentation. When there is a range of strengths, this represents the upper limit.) + */ + public Ratio getPresentationHighLimitRatio() throws FHIRException { + if (this.presentationHighLimit == null) + this.presentationHighLimit = new Ratio(); + if (!(this.presentationHighLimit instanceof Ratio)) + throw new FHIRException("Type mismatch: the type Ratio was expected, but "+this.presentationHighLimit.getClass().getName()+" was encountered"); + return (Ratio) this.presentationHighLimit; + } + + public boolean hasPresentationHighLimitRatio() { + return this != null && this.presentationHighLimit instanceof Ratio; + } + + /** + * @return {@link #presentationHighLimit} (An upper limit for the quantity of substance in the unit of presentation. When there is a range of strengths, this represents the upper limit.) + */ + public Quantity getPresentationHighLimitQuantity() throws FHIRException { + if (this.presentationHighLimit == null) + this.presentationHighLimit = new Quantity(); + if (!(this.presentationHighLimit instanceof Quantity)) + throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.presentationHighLimit.getClass().getName()+" was encountered"); + return (Quantity) this.presentationHighLimit; + } + + public boolean hasPresentationHighLimitQuantity() { + return this != null && this.presentationHighLimit instanceof Quantity; + } + public boolean hasPresentationHighLimit() { return this.presentationHighLimit != null && !this.presentationHighLimit.isEmpty(); } /** - * @param value {@link #presentationHighLimit} (An upper limit for the quantity of substance in the unit of presentation. For use when there is a range of strengths, this is the high limit, with the presentation attribute becoming the lower limit.) + * @param value {@link #presentationHighLimit} (An upper limit for the quantity of substance in the unit of presentation. When there is a range of strengths, this represents the upper limit.) */ - public IngredientSubstanceStrengthComponent setPresentationHighLimit(Ratio value) { + public IngredientSubstanceStrengthComponent setPresentationHighLimit(DataType value) { + if (value != null && !(value instanceof Ratio || value instanceof Quantity)) + throw new Error("Not the right type for Ingredient.substance.strength.presentationHighLimit[x]: "+value.fhirType()); this.presentationHighLimit = value; return this; } @@ -503,15 +544,55 @@ public class Ingredient extends DomainResource { /** * @return {@link #concentration} (The strength per unitary volume (or mass).) */ - public Ratio getConcentration() { - if (this.concentration == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create IngredientSubstanceStrengthComponent.concentration"); - else if (Configuration.doAutoCreate()) - this.concentration = new Ratio(); // cc + public DataType getConcentration() { return this.concentration; } + /** + * @return {@link #concentration} (The strength per unitary volume (or mass).) + */ + public Ratio getConcentrationRatio() throws FHIRException { + if (this.concentration == null) + this.concentration = new Ratio(); + if (!(this.concentration instanceof Ratio)) + throw new FHIRException("Type mismatch: the type Ratio was expected, but "+this.concentration.getClass().getName()+" was encountered"); + return (Ratio) this.concentration; + } + + public boolean hasConcentrationRatio() { + return this != null && this.concentration instanceof Ratio; + } + + /** + * @return {@link #concentration} (The strength per unitary volume (or mass).) + */ + public CodeableConcept getConcentrationCodeableConcept() throws FHIRException { + if (this.concentration == null) + this.concentration = new CodeableConcept(); + if (!(this.concentration instanceof CodeableConcept)) + throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.concentration.getClass().getName()+" was encountered"); + return (CodeableConcept) this.concentration; + } + + public boolean hasConcentrationCodeableConcept() { + return this != null && this.concentration instanceof CodeableConcept; + } + + /** + * @return {@link #concentration} (The strength per unitary volume (or mass).) + */ + public Quantity getConcentrationQuantity() throws FHIRException { + if (this.concentration == null) + this.concentration = new Quantity(); + if (!(this.concentration instanceof Quantity)) + throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.concentration.getClass().getName()+" was encountered"); + return (Quantity) this.concentration; + } + + public boolean hasConcentrationQuantity() { + return this != null && this.concentration instanceof Quantity; + } + public boolean hasConcentration() { return this.concentration != null && !this.concentration.isEmpty(); } @@ -519,7 +600,9 @@ public class Ingredient extends DomainResource { /** * @param value {@link #concentration} (The strength per unitary volume (or mass).) */ - public IngredientSubstanceStrengthComponent setConcentration(Ratio value) { + public IngredientSubstanceStrengthComponent setConcentration(DataType value) { + if (value != null && !(value instanceof Ratio || value instanceof CodeableConcept || value instanceof Quantity)) + throw new Error("Not the right type for Ingredient.substance.strength.concentration[x]: "+value.fhirType()); this.concentration = value; return this; } @@ -527,15 +610,40 @@ public class Ingredient extends DomainResource { /** * @return {@link #concentrationHighLimit} (An upper limit for the strength per unitary volume (or mass), for when there is a range. The concentration attribute then becomes the lower limit.) */ - public Ratio getConcentrationHighLimit() { - if (this.concentrationHighLimit == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create IngredientSubstanceStrengthComponent.concentrationHighLimit"); - else if (Configuration.doAutoCreate()) - this.concentrationHighLimit = new Ratio(); // cc + public DataType getConcentrationHighLimit() { return this.concentrationHighLimit; } + /** + * @return {@link #concentrationHighLimit} (An upper limit for the strength per unitary volume (or mass), for when there is a range. The concentration attribute then becomes the lower limit.) + */ + public Ratio getConcentrationHighLimitRatio() throws FHIRException { + if (this.concentrationHighLimit == null) + this.concentrationHighLimit = new Ratio(); + if (!(this.concentrationHighLimit instanceof Ratio)) + throw new FHIRException("Type mismatch: the type Ratio was expected, but "+this.concentrationHighLimit.getClass().getName()+" was encountered"); + return (Ratio) this.concentrationHighLimit; + } + + public boolean hasConcentrationHighLimitRatio() { + return this != null && this.concentrationHighLimit instanceof Ratio; + } + + /** + * @return {@link #concentrationHighLimit} (An upper limit for the strength per unitary volume (or mass), for when there is a range. The concentration attribute then becomes the lower limit.) + */ + public Quantity getConcentrationHighLimitQuantity() throws FHIRException { + if (this.concentrationHighLimit == null) + this.concentrationHighLimit = new Quantity(); + if (!(this.concentrationHighLimit instanceof Quantity)) + throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.concentrationHighLimit.getClass().getName()+" was encountered"); + return (Quantity) this.concentrationHighLimit; + } + + public boolean hasConcentrationHighLimitQuantity() { + return this != null && this.concentrationHighLimit instanceof Quantity; + } + public boolean hasConcentrationHighLimit() { return this.concentrationHighLimit != null && !this.concentrationHighLimit.isEmpty(); } @@ -543,7 +651,9 @@ public class Ingredient extends DomainResource { /** * @param value {@link #concentrationHighLimit} (An upper limit for the strength per unitary volume (or mass), for when there is a range. The concentration attribute then becomes the lower limit.) */ - public IngredientSubstanceStrengthComponent setConcentrationHighLimit(Ratio value) { + public IngredientSubstanceStrengthComponent setConcentrationHighLimit(DataType value) { + if (value != null && !(value instanceof Ratio || value instanceof Quantity)) + throw new Error("Not the right type for Ingredient.substance.strength.concentrationHighLimit[x]: "+value.fhirType()); this.concentrationHighLimit = value; return this; } @@ -597,6 +707,30 @@ public class Ingredient extends DomainResource { return this; } + /** + * @return {@link #basis} (A code that indicates if the strength is, for example, based on the ingredient substance as stated or on the substance base (when the ingredient is a salt).) + */ + public CodeableConcept getBasis() { + if (this.basis == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create IngredientSubstanceStrengthComponent.basis"); + else if (Configuration.doAutoCreate()) + this.basis = new CodeableConcept(); // cc + return this.basis; + } + + public boolean hasBasis() { + return this.basis != null && !this.basis.isEmpty(); + } + + /** + * @param value {@link #basis} (A code that indicates if the strength is, for example, based on the ingredient substance as stated or on the substance base (when the ingredient is a salt).) + */ + public IngredientSubstanceStrengthComponent setBasis(CodeableConcept value) { + this.basis = value; + return this; + } + /** * @return {@link #measurementPoint} (For when strength is measured at a particular point or distance.). This is the underlying object with id, value and extensions. The accessor "getMeasurementPoint" gives direct access to the value */ @@ -754,12 +888,13 @@ public class Ingredient extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("presentation", "Ratio", "The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item.", 0, 1, presentation)); - children.add(new Property("presentationHighLimit", "Ratio", "An upper limit for the quantity of substance in the unit of presentation. For use when there is a range of strengths, this is the high limit, with the presentation attribute becoming the lower limit.", 0, 1, presentationHighLimit)); + children.add(new Property("presentation[x]", "Ratio|CodeableConcept|Quantity", "The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item.", 0, 1, presentation)); + children.add(new Property("presentationHighLimit[x]", "Ratio|Quantity", "An upper limit for the quantity of substance in the unit of presentation. When there is a range of strengths, this represents the upper limit.", 0, 1, presentationHighLimit)); children.add(new Property("presentationText", "string", "A textual represention of either the whole of the presentation strength or a part of it - with the rest being in Strength.presentation as a ratio.", 0, 1, presentationText)); - children.add(new Property("concentration", "Ratio", "The strength per unitary volume (or mass).", 0, 1, concentration)); - children.add(new Property("concentrationHighLimit", "Ratio", "An upper limit for the strength per unitary volume (or mass), for when there is a range. The concentration attribute then becomes the lower limit.", 0, 1, concentrationHighLimit)); + children.add(new Property("concentration[x]", "Ratio|CodeableConcept|Quantity", "The strength per unitary volume (or mass).", 0, 1, concentration)); + children.add(new Property("concentrationHighLimit[x]", "Ratio|Quantity", "An upper limit for the strength per unitary volume (or mass), for when there is a range. The concentration attribute then becomes the lower limit.", 0, 1, concentrationHighLimit)); children.add(new Property("concentrationText", "string", "A textual represention of either the whole of the concentration strength or a part of it - with the rest being in Strength.concentration as a ratio.", 0, 1, concentrationText)); + children.add(new Property("basis", "CodeableConcept", "A code that indicates if the strength is, for example, based on the ingredient substance as stated or on the substance base (when the ingredient is a salt).", 0, 1, basis)); children.add(new Property("measurementPoint", "string", "For when strength is measured at a particular point or distance.", 0, 1, measurementPoint)); children.add(new Property("country", "CodeableConcept", "The country or countries for which the strength range applies.", 0, java.lang.Integer.MAX_VALUE, country)); children.add(new Property("referenceStrength", "", "Strength expressed in terms of a reference substance.", 0, java.lang.Integer.MAX_VALUE, referenceStrength)); @@ -768,12 +903,27 @@ public class Ingredient extends DomainResource { @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 696975130: /*presentation*/ return new Property("presentation", "Ratio", "The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item.", 0, 1, presentation); - case 904802623: /*presentationHighLimit*/ return new Property("presentationHighLimit", "Ratio", "An upper limit for the quantity of substance in the unit of presentation. For use when there is a range of strengths, this is the high limit, with the presentation attribute becoming the lower limit.", 0, 1, presentationHighLimit); + case 1714280230: /*presentation[x]*/ return new Property("presentation[x]", "Ratio|CodeableConcept|Quantity", "The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item.", 0, 1, presentation); + case 696975130: /*presentation*/ return new Property("presentation[x]", "Ratio|CodeableConcept|Quantity", "The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item.", 0, 1, presentation); + case -1853112047: /*presentationRatio*/ return new Property("presentation[x]", "Ratio", "The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item.", 0, 1, presentation); + case 1095127335: /*presentationCodeableConcept*/ return new Property("presentation[x]", "CodeableConcept", "The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item.", 0, 1, presentation); + case -263057979: /*presentationQuantity*/ return new Property("presentation[x]", "Quantity", "The quantity of substance in the unit of presentation, or in the volume (or mass) of the single pharmaceutical product or manufactured item.", 0, 1, presentation); + case -239716639: /*presentationHighLimit[x]*/ return new Property("presentationHighLimit[x]", "Ratio|Quantity", "An upper limit for the quantity of substance in the unit of presentation. When there is a range of strengths, this represents the upper limit.", 0, 1, presentationHighLimit); + case 904802623: /*presentationHighLimit*/ return new Property("presentationHighLimit[x]", "Ratio|Quantity", "An upper limit for the quantity of substance in the unit of presentation. When there is a range of strengths, this represents the upper limit.", 0, 1, presentationHighLimit); + case 1551572492: /*presentationHighLimitRatio*/ return new Property("presentationHighLimit[x]", "Ratio", "An upper limit for the quantity of substance in the unit of presentation. When there is a range of strengths, this represents the upper limit.", 0, 1, presentationHighLimit); + case -1253618966: /*presentationHighLimitQuantity*/ return new Property("presentationHighLimit[x]", "Quantity", "An upper limit for the quantity of substance in the unit of presentation. When there is a range of strengths, this represents the upper limit.", 0, 1, presentationHighLimit); case 1602853735: /*presentationText*/ return new Property("presentationText", "string", "A textual represention of either the whole of the presentation strength or a part of it - with the rest being in Strength.presentation as a ratio.", 0, 1, presentationText); - case -410557331: /*concentration*/ return new Property("concentration", "Ratio", "The strength per unitary volume (or mass).", 0, 1, concentration); - case -1595729588: /*concentrationHighLimit*/ return new Property("concentrationHighLimit", "Ratio", "An upper limit for the strength per unitary volume (or mass), for when there is a range. The concentration attribute then becomes the lower limit.", 0, 1, concentrationHighLimit); + case 1153502451: /*concentration[x]*/ return new Property("concentration[x]", "Ratio|CodeableConcept|Quantity", "The strength per unitary volume (or mass).", 0, 1, concentration); + case -410557331: /*concentration*/ return new Property("concentration[x]", "Ratio|CodeableConcept|Quantity", "The strength per unitary volume (or mass).", 0, 1, concentration); + case 405321630: /*concentrationRatio*/ return new Property("concentration[x]", "Ratio", "The strength per unitary volume (or mass).", 0, 1, concentration); + case -90293388: /*concentrationCodeableConcept*/ return new Property("concentration[x]", "CodeableConcept", "The strength per unitary volume (or mass).", 0, 1, concentration); + case 71921688: /*concentrationQuantity*/ return new Property("concentration[x]", "Quantity", "The strength per unitary volume (or mass).", 0, 1, concentration); + case -1682032716: /*concentrationHighLimit[x]*/ return new Property("concentrationHighLimit[x]", "Ratio|Quantity", "An upper limit for the strength per unitary volume (or mass), for when there is a range. The concentration attribute then becomes the lower limit.", 0, 1, concentrationHighLimit); + case -1595729588: /*concentrationHighLimit*/ return new Property("concentrationHighLimit[x]", "Ratio|Quantity", "An upper limit for the strength per unitary volume (or mass), for when there is a range. The concentration attribute then becomes the lower limit.", 0, 1, concentrationHighLimit); + case -1534708193: /*concentrationHighLimitRatio*/ return new Property("concentrationHighLimit[x]", "Ratio", "An upper limit for the strength per unitary volume (or mass), for when there is a range. The concentration attribute then becomes the lower limit.", 0, 1, concentrationHighLimit); + case 2018366967: /*concentrationHighLimitQuantity*/ return new Property("concentrationHighLimit[x]", "Quantity", "An upper limit for the strength per unitary volume (or mass), for when there is a range. The concentration attribute then becomes the lower limit.", 0, 1, concentrationHighLimit); case 1398611770: /*concentrationText*/ return new Property("concentrationText", "string", "A textual represention of either the whole of the concentration strength or a part of it - with the rest being in Strength.concentration as a ratio.", 0, 1, concentrationText); + case 93508670: /*basis*/ return new Property("basis", "CodeableConcept", "A code that indicates if the strength is, for example, based on the ingredient substance as stated or on the substance base (when the ingredient is a salt).", 0, 1, basis); case 235437876: /*measurementPoint*/ return new Property("measurementPoint", "string", "For when strength is measured at a particular point or distance.", 0, 1, measurementPoint); case 957831062: /*country*/ return new Property("country", "CodeableConcept", "The country or countries for which the strength range applies.", 0, java.lang.Integer.MAX_VALUE, country); case 1943566508: /*referenceStrength*/ return new Property("referenceStrength", "", "Strength expressed in terms of a reference substance.", 0, java.lang.Integer.MAX_VALUE, referenceStrength); @@ -785,12 +935,13 @@ public class Ingredient extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case 696975130: /*presentation*/ return this.presentation == null ? new Base[0] : new Base[] {this.presentation}; // Ratio - case 904802623: /*presentationHighLimit*/ return this.presentationHighLimit == null ? new Base[0] : new Base[] {this.presentationHighLimit}; // Ratio + case 696975130: /*presentation*/ return this.presentation == null ? new Base[0] : new Base[] {this.presentation}; // DataType + case 904802623: /*presentationHighLimit*/ return this.presentationHighLimit == null ? new Base[0] : new Base[] {this.presentationHighLimit}; // DataType case 1602853735: /*presentationText*/ return this.presentationText == null ? new Base[0] : new Base[] {this.presentationText}; // StringType - case -410557331: /*concentration*/ return this.concentration == null ? new Base[0] : new Base[] {this.concentration}; // Ratio - case -1595729588: /*concentrationHighLimit*/ return this.concentrationHighLimit == null ? new Base[0] : new Base[] {this.concentrationHighLimit}; // Ratio + case -410557331: /*concentration*/ return this.concentration == null ? new Base[0] : new Base[] {this.concentration}; // DataType + case -1595729588: /*concentrationHighLimit*/ return this.concentrationHighLimit == null ? new Base[0] : new Base[] {this.concentrationHighLimit}; // DataType case 1398611770: /*concentrationText*/ return this.concentrationText == null ? new Base[0] : new Base[] {this.concentrationText}; // StringType + case 93508670: /*basis*/ return this.basis == null ? new Base[0] : new Base[] {this.basis}; // CodeableConcept case 235437876: /*measurementPoint*/ return this.measurementPoint == null ? new Base[0] : new Base[] {this.measurementPoint}; // StringType case 957831062: /*country*/ return this.country == null ? new Base[0] : this.country.toArray(new Base[this.country.size()]); // CodeableConcept case 1943566508: /*referenceStrength*/ return this.referenceStrength == null ? new Base[0] : this.referenceStrength.toArray(new Base[this.referenceStrength.size()]); // IngredientSubstanceStrengthReferenceStrengthComponent @@ -803,23 +954,26 @@ public class Ingredient extends DomainResource { public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 696975130: // presentation - this.presentation = TypeConvertor.castToRatio(value); // Ratio + this.presentation = TypeConvertor.castToType(value); // DataType return value; case 904802623: // presentationHighLimit - this.presentationHighLimit = TypeConvertor.castToRatio(value); // Ratio + this.presentationHighLimit = TypeConvertor.castToType(value); // DataType return value; case 1602853735: // presentationText this.presentationText = TypeConvertor.castToString(value); // StringType return value; case -410557331: // concentration - this.concentration = TypeConvertor.castToRatio(value); // Ratio + this.concentration = TypeConvertor.castToType(value); // DataType return value; case -1595729588: // concentrationHighLimit - this.concentrationHighLimit = TypeConvertor.castToRatio(value); // Ratio + this.concentrationHighLimit = TypeConvertor.castToType(value); // DataType return value; case 1398611770: // concentrationText this.concentrationText = TypeConvertor.castToString(value); // StringType return value; + case 93508670: // basis + this.basis = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; case 235437876: // measurementPoint this.measurementPoint = TypeConvertor.castToString(value); // StringType return value; @@ -836,18 +990,20 @@ public class Ingredient extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("presentation")) { - this.presentation = TypeConvertor.castToRatio(value); // Ratio - } else if (name.equals("presentationHighLimit")) { - this.presentationHighLimit = TypeConvertor.castToRatio(value); // Ratio + if (name.equals("presentation[x]")) { + this.presentation = TypeConvertor.castToType(value); // DataType + } else if (name.equals("presentationHighLimit[x]")) { + this.presentationHighLimit = TypeConvertor.castToType(value); // DataType } else if (name.equals("presentationText")) { this.presentationText = TypeConvertor.castToString(value); // StringType - } else if (name.equals("concentration")) { - this.concentration = TypeConvertor.castToRatio(value); // Ratio - } else if (name.equals("concentrationHighLimit")) { - this.concentrationHighLimit = TypeConvertor.castToRatio(value); // Ratio + } else if (name.equals("concentration[x]")) { + this.concentration = TypeConvertor.castToType(value); // DataType + } else if (name.equals("concentrationHighLimit[x]")) { + this.concentrationHighLimit = TypeConvertor.castToType(value); // DataType } else if (name.equals("concentrationText")) { this.concentrationText = TypeConvertor.castToString(value); // StringType + } else if (name.equals("basis")) { + this.basis = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("measurementPoint")) { this.measurementPoint = TypeConvertor.castToString(value); // StringType } else if (name.equals("country")) { @@ -862,12 +1018,17 @@ public class Ingredient extends DomainResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { + case 1714280230: return getPresentation(); case 696975130: return getPresentation(); + case -239716639: return getPresentationHighLimit(); case 904802623: return getPresentationHighLimit(); case 1602853735: return getPresentationTextElement(); + case 1153502451: return getConcentration(); case -410557331: return getConcentration(); + case -1682032716: return getConcentrationHighLimit(); case -1595729588: return getConcentrationHighLimit(); case 1398611770: return getConcentrationTextElement(); + case 93508670: return getBasis(); case 235437876: return getMeasurementPointElement(); case 957831062: return addCountry(); case 1943566508: return addReferenceStrength(); @@ -879,12 +1040,13 @@ public class Ingredient extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case 696975130: /*presentation*/ return new String[] {"Ratio"}; - case 904802623: /*presentationHighLimit*/ return new String[] {"Ratio"}; + case 696975130: /*presentation*/ return new String[] {"Ratio", "CodeableConcept", "Quantity"}; + case 904802623: /*presentationHighLimit*/ return new String[] {"Ratio", "Quantity"}; case 1602853735: /*presentationText*/ return new String[] {"string"}; - case -410557331: /*concentration*/ return new String[] {"Ratio"}; - case -1595729588: /*concentrationHighLimit*/ return new String[] {"Ratio"}; + case -410557331: /*concentration*/ return new String[] {"Ratio", "CodeableConcept", "Quantity"}; + case -1595729588: /*concentrationHighLimit*/ return new String[] {"Ratio", "Quantity"}; case 1398611770: /*concentrationText*/ return new String[] {"string"}; + case 93508670: /*basis*/ return new String[] {"CodeableConcept"}; case 235437876: /*measurementPoint*/ return new String[] {"string"}; case 957831062: /*country*/ return new String[] {"CodeableConcept"}; case 1943566508: /*referenceStrength*/ return new String[] {}; @@ -895,28 +1057,56 @@ public class Ingredient extends DomainResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("presentation")) { + if (name.equals("presentationRatio")) { this.presentation = new Ratio(); return this.presentation; } - else if (name.equals("presentationHighLimit")) { + else if (name.equals("presentationCodeableConcept")) { + this.presentation = new CodeableConcept(); + return this.presentation; + } + else if (name.equals("presentationQuantity")) { + this.presentation = new Quantity(); + return this.presentation; + } + else if (name.equals("presentationHighLimitRatio")) { this.presentationHighLimit = new Ratio(); return this.presentationHighLimit; } + else if (name.equals("presentationHighLimitQuantity")) { + this.presentationHighLimit = new Quantity(); + return this.presentationHighLimit; + } else if (name.equals("presentationText")) { throw new FHIRException("Cannot call addChild on a primitive type Ingredient.substance.strength.presentationText"); } - else if (name.equals("concentration")) { + else if (name.equals("concentrationRatio")) { this.concentration = new Ratio(); return this.concentration; } - else if (name.equals("concentrationHighLimit")) { + else if (name.equals("concentrationCodeableConcept")) { + this.concentration = new CodeableConcept(); + return this.concentration; + } + else if (name.equals("concentrationQuantity")) { + this.concentration = new Quantity(); + return this.concentration; + } + else if (name.equals("concentrationHighLimitRatio")) { this.concentrationHighLimit = new Ratio(); return this.concentrationHighLimit; } + else if (name.equals("concentrationHighLimitQuantity")) { + this.concentrationHighLimit = new Quantity(); + return this.concentrationHighLimit; + } else if (name.equals("concentrationText")) { throw new FHIRException("Cannot call addChild on a primitive type Ingredient.substance.strength.concentrationText"); } + else if (name.equals("basis")) { + this.basis = new CodeableConcept(); + return this.basis; + } else if (name.equals("measurementPoint")) { throw new FHIRException("Cannot call addChild on a primitive type Ingredient.substance.strength.measurementPoint"); } @@ -944,6 +1134,7 @@ public class Ingredient extends DomainResource { dst.concentration = concentration == null ? null : concentration.copy(); dst.concentrationHighLimit = concentrationHighLimit == null ? null : concentrationHighLimit.copy(); dst.concentrationText = concentrationText == null ? null : concentrationText.copy(); + dst.basis = basis == null ? null : basis.copy(); dst.measurementPoint = measurementPoint == null ? null : measurementPoint.copy(); if (country != null) { dst.country = new ArrayList(); @@ -967,8 +1158,9 @@ public class Ingredient extends DomainResource { return compareDeep(presentation, o.presentation, true) && compareDeep(presentationHighLimit, o.presentationHighLimit, true) && compareDeep(presentationText, o.presentationText, true) && compareDeep(concentration, o.concentration, true) && compareDeep(concentrationHighLimit, o.concentrationHighLimit, true) && compareDeep(concentrationText, o.concentrationText, true) - && compareDeep(measurementPoint, o.measurementPoint, true) && compareDeep(country, o.country, true) - && compareDeep(referenceStrength, o.referenceStrength, true); + && compareDeep(basis, o.basis, true) && compareDeep(measurementPoint, o.measurementPoint, true) + && compareDeep(country, o.country, true) && compareDeep(referenceStrength, o.referenceStrength, true) + ; } @Override @@ -984,8 +1176,8 @@ public class Ingredient extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(presentation, presentationHighLimit - , presentationText, concentration, concentrationHighLimit, concentrationText, measurementPoint - , country, referenceStrength); + , presentationText, concentration, concentrationHighLimit, concentrationText, basis + , measurementPoint, country, referenceStrength); } public String fhirType() { @@ -1000,23 +1192,23 @@ public class Ingredient extends DomainResource { /** * Relevant reference substance. */ - @Child(name = "substance", type = {CodeableConcept.class, SubstanceDefinition.class, Substance.class}, order=1, min=0, max=1, modifier=false, summary=true) + @Child(name = "substance", type = {CodeableReference.class}, order=1, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Relevant reference substance", formalDefinition="Relevant reference substance." ) - protected DataType substance; + protected CodeableReference substance; /** - * Strength expressed in terms of a reference substance. + * Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the lower limit. */ - @Child(name = "strength", type = {Ratio.class}, order=2, min=1, max=1, modifier=false, summary=true) - @Description(shortDefinition="Strength expressed in terms of a reference substance", formalDefinition="Strength expressed in terms of a reference substance." ) - protected Ratio strength; + @Child(name = "strength", type = {Ratio.class, Quantity.class}, order=2, min=1, max=1, modifier=false, summary=true) + @Description(shortDefinition="Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the lower limit", formalDefinition="Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the lower limit." ) + protected DataType strength; /** - * Strength expressed in terms of a reference substance, upper limit. + * Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the upper limit. */ - @Child(name = "strengthHighLimit", type = {Ratio.class}, order=3, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Strength expressed in terms of a reference substance, upper limit", formalDefinition="Strength expressed in terms of a reference substance, upper limit." ) - protected Ratio strengthHighLimit; + @Child(name = "strengthHighLimit", type = {Ratio.class, Quantity.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the upper limit", formalDefinition="Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the upper limit." ) + protected DataType strengthHighLimit; /** * For when strength is measured at a particular point or distance. @@ -1032,7 +1224,7 @@ public class Ingredient extends DomainResource { @Description(shortDefinition="The country or countries for which the strength range applies", formalDefinition="The country or countries for which the strength range applies." ) protected List country; - private static final long serialVersionUID = 1274073375L; + private static final long serialVersionUID = -1478675679L; /** * Constructor @@ -1044,7 +1236,7 @@ public class Ingredient extends DomainResource { /** * Constructor */ - public IngredientSubstanceStrengthReferenceStrengthComponent(Ratio strength) { + public IngredientSubstanceStrengthReferenceStrengthComponent(DataType strength) { super(); this.setStrength(strength); } @@ -1052,40 +1244,15 @@ public class Ingredient extends DomainResource { /** * @return {@link #substance} (Relevant reference substance.) */ - public DataType getSubstance() { + public CodeableReference getSubstance() { + if (this.substance == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create IngredientSubstanceStrengthReferenceStrengthComponent.substance"); + else if (Configuration.doAutoCreate()) + this.substance = new CodeableReference(); // cc return this.substance; } - /** - * @return {@link #substance} (Relevant reference substance.) - */ - public CodeableConcept getSubstanceCodeableConcept() throws FHIRException { - if (this.substance == null) - this.substance = new CodeableConcept(); - if (!(this.substance instanceof CodeableConcept)) - throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.substance.getClass().getName()+" was encountered"); - return (CodeableConcept) this.substance; - } - - public boolean hasSubstanceCodeableConcept() { - return this != null && this.substance instanceof CodeableConcept; - } - - /** - * @return {@link #substance} (Relevant reference substance.) - */ - public Reference getSubstanceReference() throws FHIRException { - if (this.substance == null) - this.substance = new Reference(); - if (!(this.substance instanceof Reference)) - throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.substance.getClass().getName()+" was encountered"); - return (Reference) this.substance; - } - - public boolean hasSubstanceReference() { - return this != null && this.substance instanceof Reference; - } - public boolean hasSubstance() { return this.substance != null && !this.substance.isEmpty(); } @@ -1093,57 +1260,109 @@ public class Ingredient extends DomainResource { /** * @param value {@link #substance} (Relevant reference substance.) */ - public IngredientSubstanceStrengthReferenceStrengthComponent setSubstance(DataType value) { - if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) - throw new Error("Not the right type for Ingredient.substance.strength.referenceStrength.substance[x]: "+value.fhirType()); + public IngredientSubstanceStrengthReferenceStrengthComponent setSubstance(CodeableReference value) { this.substance = value; return this; } /** - * @return {@link #strength} (Strength expressed in terms of a reference substance.) + * @return {@link #strength} (Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the lower limit.) */ - public Ratio getStrength() { - if (this.strength == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create IngredientSubstanceStrengthReferenceStrengthComponent.strength"); - else if (Configuration.doAutoCreate()) - this.strength = new Ratio(); // cc + public DataType getStrength() { return this.strength; } + /** + * @return {@link #strength} (Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the lower limit.) + */ + public Ratio getStrengthRatio() throws FHIRException { + if (this.strength == null) + this.strength = new Ratio(); + if (!(this.strength instanceof Ratio)) + throw new FHIRException("Type mismatch: the type Ratio was expected, but "+this.strength.getClass().getName()+" was encountered"); + return (Ratio) this.strength; + } + + public boolean hasStrengthRatio() { + return this != null && this.strength instanceof Ratio; + } + + /** + * @return {@link #strength} (Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the lower limit.) + */ + public Quantity getStrengthQuantity() throws FHIRException { + if (this.strength == null) + this.strength = new Quantity(); + if (!(this.strength instanceof Quantity)) + throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.strength.getClass().getName()+" was encountered"); + return (Quantity) this.strength; + } + + public boolean hasStrengthQuantity() { + return this != null && this.strength instanceof Quantity; + } + public boolean hasStrength() { return this.strength != null && !this.strength.isEmpty(); } /** - * @param value {@link #strength} (Strength expressed in terms of a reference substance.) + * @param value {@link #strength} (Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the lower limit.) */ - public IngredientSubstanceStrengthReferenceStrengthComponent setStrength(Ratio value) { + public IngredientSubstanceStrengthReferenceStrengthComponent setStrength(DataType value) { + if (value != null && !(value instanceof Ratio || value instanceof Quantity)) + throw new Error("Not the right type for Ingredient.substance.strength.referenceStrength.strength[x]: "+value.fhirType()); this.strength = value; return this; } /** - * @return {@link #strengthHighLimit} (Strength expressed in terms of a reference substance, upper limit.) + * @return {@link #strengthHighLimit} (Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the upper limit.) */ - public Ratio getStrengthHighLimit() { - if (this.strengthHighLimit == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create IngredientSubstanceStrengthReferenceStrengthComponent.strengthHighLimit"); - else if (Configuration.doAutoCreate()) - this.strengthHighLimit = new Ratio(); // cc + public DataType getStrengthHighLimit() { return this.strengthHighLimit; } + /** + * @return {@link #strengthHighLimit} (Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the upper limit.) + */ + public Ratio getStrengthHighLimitRatio() throws FHIRException { + if (this.strengthHighLimit == null) + this.strengthHighLimit = new Ratio(); + if (!(this.strengthHighLimit instanceof Ratio)) + throw new FHIRException("Type mismatch: the type Ratio was expected, but "+this.strengthHighLimit.getClass().getName()+" was encountered"); + return (Ratio) this.strengthHighLimit; + } + + public boolean hasStrengthHighLimitRatio() { + return this != null && this.strengthHighLimit instanceof Ratio; + } + + /** + * @return {@link #strengthHighLimit} (Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the upper limit.) + */ + public Quantity getStrengthHighLimitQuantity() throws FHIRException { + if (this.strengthHighLimit == null) + this.strengthHighLimit = new Quantity(); + if (!(this.strengthHighLimit instanceof Quantity)) + throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.strengthHighLimit.getClass().getName()+" was encountered"); + return (Quantity) this.strengthHighLimit; + } + + public boolean hasStrengthHighLimitQuantity() { + return this != null && this.strengthHighLimit instanceof Quantity; + } + public boolean hasStrengthHighLimit() { return this.strengthHighLimit != null && !this.strengthHighLimit.isEmpty(); } /** - * @param value {@link #strengthHighLimit} (Strength expressed in terms of a reference substance, upper limit.) + * @param value {@link #strengthHighLimit} (Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the upper limit.) */ - public IngredientSubstanceStrengthReferenceStrengthComponent setStrengthHighLimit(Ratio value) { + public IngredientSubstanceStrengthReferenceStrengthComponent setStrengthHighLimit(DataType value) { + if (value != null && !(value instanceof Ratio || value instanceof Quantity)) + throw new Error("Not the right type for Ingredient.substance.strength.referenceStrength.strengthHighLimit[x]: "+value.fhirType()); this.strengthHighLimit = value; return this; } @@ -1252,9 +1471,9 @@ public class Ingredient extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("substance[x]", "CodeableConcept|Reference(SubstanceDefinition|Substance)", "Relevant reference substance.", 0, 1, substance)); - children.add(new Property("strength", "Ratio", "Strength expressed in terms of a reference substance.", 0, 1, strength)); - children.add(new Property("strengthHighLimit", "Ratio", "Strength expressed in terms of a reference substance, upper limit.", 0, 1, strengthHighLimit)); + children.add(new Property("substance", "CodeableReference(SubstanceDefinition|Substance)", "Relevant reference substance.", 0, 1, substance)); + children.add(new Property("strength[x]", "Ratio|Quantity", "Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the lower limit.", 0, 1, strength)); + children.add(new Property("strengthHighLimit[x]", "Ratio|Quantity", "Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the upper limit.", 0, 1, strengthHighLimit)); children.add(new Property("measurementPoint", "string", "For when strength is measured at a particular point or distance.", 0, 1, measurementPoint)); children.add(new Property("country", "CodeableConcept", "The country or countries for which the strength range applies.", 0, java.lang.Integer.MAX_VALUE, country)); } @@ -1262,12 +1481,15 @@ public class Ingredient extends DomainResource { @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 2127194384: /*substance[x]*/ return new Property("substance[x]", "CodeableConcept|Reference(SubstanceDefinition|Substance)", "Relevant reference substance.", 0, 1, substance); - case 530040176: /*substance*/ return new Property("substance[x]", "CodeableConcept|Reference(SubstanceDefinition|Substance)", "Relevant reference substance.", 0, 1, substance); - case -1974119407: /*substanceCodeableConcept*/ return new Property("substance[x]", "CodeableConcept", "Relevant reference substance.", 0, 1, substance); - case 516208571: /*substanceReference*/ return new Property("substance[x]", "Reference(SubstanceDefinition|Substance)", "Relevant reference substance.", 0, 1, substance); - case 1791316033: /*strength*/ return new Property("strength", "Ratio", "Strength expressed in terms of a reference substance.", 0, 1, strength); - case 703544312: /*strengthHighLimit*/ return new Property("strengthHighLimit", "Ratio", "Strength expressed in terms of a reference substance, upper limit.", 0, 1, strengthHighLimit); + case 530040176: /*substance*/ return new Property("substance", "CodeableReference(SubstanceDefinition|Substance)", "Relevant reference substance.", 0, 1, substance); + case 127377567: /*strength[x]*/ return new Property("strength[x]", "Ratio|Quantity", "Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the lower limit.", 0, 1, strength); + case 1791316033: /*strength*/ return new Property("strength[x]", "Ratio|Quantity", "Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the lower limit.", 0, 1, strength); + case 2141786186: /*strengthRatio*/ return new Property("strength[x]", "Ratio", "Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the lower limit.", 0, 1, strength); + case -1793570836: /*strengthQuantity*/ return new Property("strength[x]", "Quantity", "Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the lower limit.", 0, 1, strength); + case -151714424: /*strengthHighLimit[x]*/ return new Property("strengthHighLimit[x]", "Ratio|Quantity", "Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the upper limit.", 0, 1, strengthHighLimit); + case 703544312: /*strengthHighLimit*/ return new Property("strengthHighLimit[x]", "Ratio|Quantity", "Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the upper limit.", 0, 1, strengthHighLimit); + case 222355187: /*strengthHighLimitRatio*/ return new Property("strengthHighLimit[x]", "Ratio", "Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the upper limit.", 0, 1, strengthHighLimit); + case -367883101: /*strengthHighLimitQuantity*/ return new Property("strengthHighLimit[x]", "Quantity", "Strength expressed in terms of a reference substance. When there is a range of strengths, this represents the upper limit.", 0, 1, strengthHighLimit); case 235437876: /*measurementPoint*/ return new Property("measurementPoint", "string", "For when strength is measured at a particular point or distance.", 0, 1, measurementPoint); case 957831062: /*country*/ return new Property("country", "CodeableConcept", "The country or countries for which the strength range applies.", 0, java.lang.Integer.MAX_VALUE, country); default: return super.getNamedProperty(_hash, _name, _checkValid); @@ -1278,9 +1500,9 @@ public class Ingredient extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case 530040176: /*substance*/ return this.substance == null ? new Base[0] : new Base[] {this.substance}; // DataType - case 1791316033: /*strength*/ return this.strength == null ? new Base[0] : new Base[] {this.strength}; // Ratio - case 703544312: /*strengthHighLimit*/ return this.strengthHighLimit == null ? new Base[0] : new Base[] {this.strengthHighLimit}; // Ratio + case 530040176: /*substance*/ return this.substance == null ? new Base[0] : new Base[] {this.substance}; // CodeableReference + case 1791316033: /*strength*/ return this.strength == null ? new Base[0] : new Base[] {this.strength}; // DataType + case 703544312: /*strengthHighLimit*/ return this.strengthHighLimit == null ? new Base[0] : new Base[] {this.strengthHighLimit}; // DataType case 235437876: /*measurementPoint*/ return this.measurementPoint == null ? new Base[0] : new Base[] {this.measurementPoint}; // StringType case 957831062: /*country*/ return this.country == null ? new Base[0] : this.country.toArray(new Base[this.country.size()]); // CodeableConcept default: return super.getProperty(hash, name, checkValid); @@ -1292,13 +1514,13 @@ public class Ingredient extends DomainResource { public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 530040176: // substance - this.substance = TypeConvertor.castToType(value); // DataType + this.substance = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; case 1791316033: // strength - this.strength = TypeConvertor.castToRatio(value); // Ratio + this.strength = TypeConvertor.castToType(value); // DataType return value; case 703544312: // strengthHighLimit - this.strengthHighLimit = TypeConvertor.castToRatio(value); // Ratio + this.strengthHighLimit = TypeConvertor.castToType(value); // DataType return value; case 235437876: // measurementPoint this.measurementPoint = TypeConvertor.castToString(value); // StringType @@ -1313,12 +1535,12 @@ public class Ingredient extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("substance[x]")) { - this.substance = TypeConvertor.castToType(value); // DataType - } else if (name.equals("strength")) { - this.strength = TypeConvertor.castToRatio(value); // Ratio - } else if (name.equals("strengthHighLimit")) { - this.strengthHighLimit = TypeConvertor.castToRatio(value); // Ratio + if (name.equals("substance")) { + this.substance = TypeConvertor.castToCodeableReference(value); // CodeableReference + } else if (name.equals("strength[x]")) { + this.strength = TypeConvertor.castToType(value); // DataType + } else if (name.equals("strengthHighLimit[x]")) { + this.strengthHighLimit = TypeConvertor.castToType(value); // DataType } else if (name.equals("measurementPoint")) { this.measurementPoint = TypeConvertor.castToString(value); // StringType } else if (name.equals("country")) { @@ -1331,9 +1553,10 @@ public class Ingredient extends DomainResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { - case 2127194384: return getSubstance(); case 530040176: return getSubstance(); + case 127377567: return getStrength(); case 1791316033: return getStrength(); + case -151714424: return getStrengthHighLimit(); case 703544312: return getStrengthHighLimit(); case 235437876: return getMeasurementPointElement(); case 957831062: return addCountry(); @@ -1345,9 +1568,9 @@ public class Ingredient extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case 530040176: /*substance*/ return new String[] {"CodeableConcept", "Reference"}; - case 1791316033: /*strength*/ return new String[] {"Ratio"}; - case 703544312: /*strengthHighLimit*/ return new String[] {"Ratio"}; + case 530040176: /*substance*/ return new String[] {"CodeableReference"}; + case 1791316033: /*strength*/ return new String[] {"Ratio", "Quantity"}; + case 703544312: /*strengthHighLimit*/ return new String[] {"Ratio", "Quantity"}; case 235437876: /*measurementPoint*/ return new String[] {"string"}; case 957831062: /*country*/ return new String[] {"CodeableConcept"}; default: return super.getTypesForProperty(hash, name); @@ -1357,22 +1580,26 @@ public class Ingredient extends DomainResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("substanceCodeableConcept")) { - this.substance = new CodeableConcept(); + if (name.equals("substance")) { + this.substance = new CodeableReference(); return this.substance; } - else if (name.equals("substanceReference")) { - this.substance = new Reference(); - return this.substance; - } - else if (name.equals("strength")) { + else if (name.equals("strengthRatio")) { this.strength = new Ratio(); return this.strength; } - else if (name.equals("strengthHighLimit")) { + else if (name.equals("strengthQuantity")) { + this.strength = new Quantity(); + return this.strength; + } + else if (name.equals("strengthHighLimitRatio")) { this.strengthHighLimit = new Ratio(); return this.strengthHighLimit; } + else if (name.equals("strengthHighLimitQuantity")) { + this.strengthHighLimit = new Quantity(); + return this.strengthHighLimit; + } else if (name.equals("measurementPoint")) { throw new FHIRException("Cannot call addChild on a primitive type Ingredient.substance.strength.referenceStrength.measurementPoint"); } @@ -1441,15 +1668,16 @@ public class Ingredient extends DomainResource { /** * Substance as a 'specified substance', implying extra substance related characteristics. */ - @Child(name = "code", type = {CodeableConcept.class, SubstanceDefinition.class, Substance.class}, order=1, min=1, max=1, modifier=false, summary=true) + @Child(name = "code", type = {CodeableReference.class}, order=1, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="Substance as a 'specified substance', implying extra substance related characteristics", formalDefinition="Substance as a 'specified substance', implying extra substance related characteristics." ) - protected DataType code; + protected CodeableReference code; /** - * The group of specified substance, e.g. group 1 to 4. + * The group of specified substance, e.g. group 1 to 4, where the group categorises the level of +description of the substance according to standardised sets of properties. */ @Child(name = "group", type = {CodeableConcept.class}, order=2, min=1, max=1, modifier=false, summary=true) - @Description(shortDefinition="The group of specified substance, e.g. group 1 to 4", formalDefinition="The group of specified substance, e.g. group 1 to 4." ) + @Description(shortDefinition="The group of specified substance, e.g. group 1 to 4, where the group categorises the level of \ndescription of the substance according to standardised sets of properties", formalDefinition="The group of specified substance, e.g. group 1 to 4, where the group categorises the level of \ndescription of the substance according to standardised sets of properties." ) protected CodeableConcept group; /** @@ -1466,7 +1694,7 @@ public class Ingredient extends DomainResource { @Description(shortDefinition="Quantity of the substance or specified substance present in the manufactured item or pharmaceutical product", formalDefinition="Quantity of the substance or specified substance present in the manufactured item or pharmaceutical product." ) protected List strength; - private static final long serialVersionUID = 99263290L; + private static final long serialVersionUID = 598811158L; /** * Constructor @@ -1478,7 +1706,7 @@ public class Ingredient extends DomainResource { /** * Constructor */ - public IngredientSpecifiedSubstanceComponent(DataType code, CodeableConcept group) { + public IngredientSpecifiedSubstanceComponent(CodeableReference code, CodeableConcept group) { super(); this.setCode(code); this.setGroup(group); @@ -1487,40 +1715,15 @@ public class Ingredient extends DomainResource { /** * @return {@link #code} (Substance as a 'specified substance', implying extra substance related characteristics.) */ - public DataType getCode() { + public CodeableReference getCode() { + if (this.code == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create IngredientSpecifiedSubstanceComponent.code"); + else if (Configuration.doAutoCreate()) + this.code = new CodeableReference(); // cc return this.code; } - /** - * @return {@link #code} (Substance as a 'specified substance', implying extra substance related characteristics.) - */ - public CodeableConcept getCodeCodeableConcept() throws FHIRException { - if (this.code == null) - this.code = new CodeableConcept(); - if (!(this.code instanceof CodeableConcept)) - throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.code.getClass().getName()+" was encountered"); - return (CodeableConcept) this.code; - } - - public boolean hasCodeCodeableConcept() { - return this != null && this.code instanceof CodeableConcept; - } - - /** - * @return {@link #code} (Substance as a 'specified substance', implying extra substance related characteristics.) - */ - public Reference getCodeReference() throws FHIRException { - if (this.code == null) - this.code = new Reference(); - if (!(this.code instanceof Reference)) - throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.code.getClass().getName()+" was encountered"); - return (Reference) this.code; - } - - public boolean hasCodeReference() { - return this != null && this.code instanceof Reference; - } - public boolean hasCode() { return this.code != null && !this.code.isEmpty(); } @@ -1528,15 +1731,14 @@ public class Ingredient extends DomainResource { /** * @param value {@link #code} (Substance as a 'specified substance', implying extra substance related characteristics.) */ - public IngredientSpecifiedSubstanceComponent setCode(DataType value) { - if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) - throw new Error("Not the right type for Ingredient.specifiedSubstance.code[x]: "+value.fhirType()); + public IngredientSpecifiedSubstanceComponent setCode(CodeableReference value) { this.code = value; return this; } /** - * @return {@link #group} (The group of specified substance, e.g. group 1 to 4.) + * @return {@link #group} (The group of specified substance, e.g. group 1 to 4, where the group categorises the level of +description of the substance according to standardised sets of properties.) */ public CodeableConcept getGroup() { if (this.group == null) @@ -1552,7 +1754,8 @@ public class Ingredient extends DomainResource { } /** - * @param value {@link #group} (The group of specified substance, e.g. group 1 to 4.) + * @param value {@link #group} (The group of specified substance, e.g. group 1 to 4, where the group categorises the level of +description of the substance according to standardised sets of properties.) */ public IngredientSpecifiedSubstanceComponent setGroup(CodeableConcept value) { this.group = value; @@ -1638,8 +1841,8 @@ public class Ingredient extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("code[x]", "CodeableConcept|Reference(SubstanceDefinition|Substance)", "Substance as a 'specified substance', implying extra substance related characteristics.", 0, 1, code)); - children.add(new Property("group", "CodeableConcept", "The group of specified substance, e.g. group 1 to 4.", 0, 1, group)); + children.add(new Property("code", "CodeableReference(SubstanceDefinition|Substance)", "Substance as a 'specified substance', implying extra substance related characteristics.", 0, 1, code)); + children.add(new Property("group", "CodeableConcept", "The group of specified substance, e.g. group 1 to 4, where the group categorises the level of \ndescription of the substance according to standardised sets of properties.", 0, 1, group)); children.add(new Property("confidentiality", "CodeableConcept", "Confidentiality level of the specified substance as the ingredient.", 0, 1, confidentiality)); children.add(new Property("strength", "@Ingredient.substance.strength", "Quantity of the substance or specified substance present in the manufactured item or pharmaceutical product.", 0, java.lang.Integer.MAX_VALUE, strength)); } @@ -1647,11 +1850,8 @@ public class Ingredient extends DomainResource { @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 941839219: /*code[x]*/ return new Property("code[x]", "CodeableConcept|Reference(SubstanceDefinition|Substance)", "Substance as a 'specified substance', implying extra substance related characteristics.", 0, 1, code); - case 3059181: /*code*/ return new Property("code[x]", "CodeableConcept|Reference(SubstanceDefinition|Substance)", "Substance as a 'specified substance', implying extra substance related characteristics.", 0, 1, code); - case 4899316: /*codeCodeableConcept*/ return new Property("code[x]", "CodeableConcept", "Substance as a 'specified substance', implying extra substance related characteristics.", 0, 1, code); - case 1565461470: /*codeReference*/ return new Property("code[x]", "Reference(SubstanceDefinition|Substance)", "Substance as a 'specified substance', implying extra substance related characteristics.", 0, 1, code); - case 98629247: /*group*/ return new Property("group", "CodeableConcept", "The group of specified substance, e.g. group 1 to 4.", 0, 1, group); + case 3059181: /*code*/ return new Property("code", "CodeableReference(SubstanceDefinition|Substance)", "Substance as a 'specified substance', implying extra substance related characteristics.", 0, 1, code); + case 98629247: /*group*/ return new Property("group", "CodeableConcept", "The group of specified substance, e.g. group 1 to 4, where the group categorises the level of \ndescription of the substance according to standardised sets of properties.", 0, 1, group); case -1923018202: /*confidentiality*/ return new Property("confidentiality", "CodeableConcept", "Confidentiality level of the specified substance as the ingredient.", 0, 1, confidentiality); case 1791316033: /*strength*/ return new Property("strength", "@Ingredient.substance.strength", "Quantity of the substance or specified substance present in the manufactured item or pharmaceutical product.", 0, java.lang.Integer.MAX_VALUE, strength); default: return super.getNamedProperty(_hash, _name, _checkValid); @@ -1662,7 +1862,7 @@ public class Ingredient extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // DataType + case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableReference case 98629247: /*group*/ return this.group == null ? new Base[0] : new Base[] {this.group}; // CodeableConcept case -1923018202: /*confidentiality*/ return this.confidentiality == null ? new Base[0] : new Base[] {this.confidentiality}; // CodeableConcept case 1791316033: /*strength*/ return this.strength == null ? new Base[0] : this.strength.toArray(new Base[this.strength.size()]); // IngredientSubstanceStrengthComponent @@ -1675,7 +1875,7 @@ public class Ingredient extends DomainResource { public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3059181: // code - this.code = TypeConvertor.castToType(value); // DataType + this.code = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; case 98629247: // group this.group = TypeConvertor.castToCodeableConcept(value); // CodeableConcept @@ -1693,8 +1893,8 @@ public class Ingredient extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("code[x]")) { - this.code = TypeConvertor.castToType(value); // DataType + if (name.equals("code")) { + this.code = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("group")) { this.group = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("confidentiality")) { @@ -1709,7 +1909,6 @@ public class Ingredient extends DomainResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { - case 941839219: return getCode(); case 3059181: return getCode(); case 98629247: return getGroup(); case -1923018202: return getConfidentiality(); @@ -1722,7 +1921,7 @@ public class Ingredient extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case 3059181: /*code*/ return new String[] {"CodeableConcept", "Reference"}; + case 3059181: /*code*/ return new String[] {"CodeableReference"}; case 98629247: /*group*/ return new String[] {"CodeableConcept"}; case -1923018202: /*confidentiality*/ return new String[] {"CodeableConcept"}; case 1791316033: /*strength*/ return new String[] {"@Ingredient.substance.strength"}; @@ -1733,12 +1932,8 @@ public class Ingredient extends DomainResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("codeCodeableConcept")) { - this.code = new CodeableConcept(); - return this.code; - } - else if (name.equals("codeReference")) { - this.code = new Reference(); + if (name.equals("code")) { + this.code = new CodeableReference(); return this.code; } else if (name.equals("group")) { @@ -1815,10 +2010,10 @@ public class Ingredient extends DomainResource { protected Identifier identifier; /** - * Ingredient role within a drug product e.g. Active ingredient, Excipient. + * A classification of the ingredient identifying its purpose within the product, e.g. active, inactive. */ @Child(name = "role", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=true) - @Description(shortDefinition="Ingredient role within a drug product e.g. Active ingredient, Excipient", formalDefinition="Ingredient role within a drug product e.g. Active ingredient, Excipient." ) + @Description(shortDefinition="A classification of the ingredient identifying its purpose within the product, e.g. active, inactive", formalDefinition="A classification of the ingredient identifying its purpose within the product, e.g. active, inactive." ) protected CodeableConcept role; /** @@ -1828,42 +2023,49 @@ public class Ingredient extends DomainResource { @Description(shortDefinition="A classification of the ingredient identifying its precise purpose(s) in the drug product. This extends the Ingredient.role to add more detail. Example: Antioxidant, Alkalizing Agent", formalDefinition="A classification of the ingredient identifying its precise purpose(s) in the drug product. This extends the Ingredient.role to add more detail. Example: Antioxidant, Alkalizing Agent." ) protected List function; + /** + * A classification of the ingredient according to where in the physical item it tends to be used, such the outer shell of a tablet, inner body or ink. + */ + @Child(name = "group", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="A classification of the ingredient according to where in the physical item it tends to be used, such the outer shell of a tablet, inner body or ink", formalDefinition="A classification of the ingredient according to where in the physical item it tends to be used, such the outer shell of a tablet, inner body or ink." ) + protected CodeableConcept group; + /** * A general description of the ingredient, or any supporting text. May be used for an unstructured list of excipients. */ - @Child(name = "description", type = {MarkdownType.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Child(name = "description", type = {MarkdownType.class}, order=4, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="A general description of the ingredient, or any supporting text. May be used for an unstructured list of excipients", formalDefinition="A general description of the ingredient, or any supporting text. May be used for an unstructured list of excipients." ) protected MarkdownType description; /** * If the ingredient is a known or suspected allergen. */ - @Child(name = "allergenicIndicator", type = {BooleanType.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Child(name = "allergenicIndicator", type = {BooleanType.class}, order=5, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="If the ingredient is a known or suspected allergen", formalDefinition="If the ingredient is a known or suspected allergen." ) protected BooleanType allergenicIndicator; /** * The organization that manufactures this ingredient. */ - @Child(name = "manufacturer", type = {Organization.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "manufacturer", type = {Organization.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="The organization that manufactures this ingredient", formalDefinition="The organization that manufactures this ingredient." ) protected List manufacturer; /** * The substance that comprises this ingredient. */ - @Child(name = "substance", type = {}, order=6, min=0, max=1, modifier=false, summary=true) + @Child(name = "substance", type = {}, order=7, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="The substance that comprises this ingredient", formalDefinition="The substance that comprises this ingredient." ) protected IngredientSubstanceComponent substance; /** * A specified substance that comprises this ingredient. */ - @Child(name = "specifiedSubstance", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "specifiedSubstance", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="A specified substance that comprises this ingredient", formalDefinition="A specified substance that comprises this ingredient." ) protected List specifiedSubstance; - private static final long serialVersionUID = -1831018128L; + private static final long serialVersionUID = -665064678L; /** * Constructor @@ -1905,7 +2107,7 @@ public class Ingredient extends DomainResource { } /** - * @return {@link #role} (Ingredient role within a drug product e.g. Active ingredient, Excipient.) + * @return {@link #role} (A classification of the ingredient identifying its purpose within the product, e.g. active, inactive.) */ public CodeableConcept getRole() { if (this.role == null) @@ -1921,7 +2123,7 @@ public class Ingredient extends DomainResource { } /** - * @param value {@link #role} (Ingredient role within a drug product e.g. Active ingredient, Excipient.) + * @param value {@link #role} (A classification of the ingredient identifying its purpose within the product, e.g. active, inactive.) */ public Ingredient setRole(CodeableConcept value) { this.role = value; @@ -1981,6 +2183,30 @@ public class Ingredient extends DomainResource { return getFunction().get(0); } + /** + * @return {@link #group} (A classification of the ingredient according to where in the physical item it tends to be used, such the outer shell of a tablet, inner body or ink.) + */ + public CodeableConcept getGroup() { + if (this.group == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Ingredient.group"); + else if (Configuration.doAutoCreate()) + this.group = new CodeableConcept(); // cc + return this.group; + } + + public boolean hasGroup() { + return this.group != null && !this.group.isEmpty(); + } + + /** + * @param value {@link #group} (A classification of the ingredient according to where in the physical item it tends to be used, such the outer shell of a tablet, inner body or ink.) + */ + public Ingredient setGroup(CodeableConcept value) { + this.group = value; + return this; + } + /** * @return {@link #description} (A general description of the ingredient, or any supporting text. May be used for an unstructured list of excipients.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value */ @@ -2208,8 +2434,9 @@ public class Ingredient extends DomainResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("identifier", "Identifier", "The identifier(s) of this Ingredient that are assigned by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate.", 0, 1, identifier)); - children.add(new Property("role", "CodeableConcept", "Ingredient role within a drug product e.g. Active ingredient, Excipient.", 0, 1, role)); + children.add(new Property("role", "CodeableConcept", "A classification of the ingredient identifying its purpose within the product, e.g. active, inactive.", 0, 1, role)); children.add(new Property("function", "CodeableConcept", "A classification of the ingredient identifying its precise purpose(s) in the drug product. This extends the Ingredient.role to add more detail. Example: Antioxidant, Alkalizing Agent.", 0, java.lang.Integer.MAX_VALUE, function)); + children.add(new Property("group", "CodeableConcept", "A classification of the ingredient according to where in the physical item it tends to be used, such the outer shell of a tablet, inner body or ink.", 0, 1, group)); children.add(new Property("description", "markdown", "A general description of the ingredient, or any supporting text. May be used for an unstructured list of excipients.", 0, 1, description)); children.add(new Property("allergenicIndicator", "boolean", "If the ingredient is a known or suspected allergen.", 0, 1, allergenicIndicator)); children.add(new Property("manufacturer", "Reference(Organization)", "The organization that manufactures this ingredient.", 0, java.lang.Integer.MAX_VALUE, manufacturer)); @@ -2221,8 +2448,9 @@ public class Ingredient extends DomainResource { public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "The identifier(s) of this Ingredient that are assigned by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate.", 0, 1, identifier); - case 3506294: /*role*/ return new Property("role", "CodeableConcept", "Ingredient role within a drug product e.g. Active ingredient, Excipient.", 0, 1, role); + case 3506294: /*role*/ return new Property("role", "CodeableConcept", "A classification of the ingredient identifying its purpose within the product, e.g. active, inactive.", 0, 1, role); case 1380938712: /*function*/ return new Property("function", "CodeableConcept", "A classification of the ingredient identifying its precise purpose(s) in the drug product. This extends the Ingredient.role to add more detail. Example: Antioxidant, Alkalizing Agent.", 0, java.lang.Integer.MAX_VALUE, function); + case 98629247: /*group*/ return new Property("group", "CodeableConcept", "A classification of the ingredient according to where in the physical item it tends to be used, such the outer shell of a tablet, inner body or ink.", 0, 1, group); case -1724546052: /*description*/ return new Property("description", "markdown", "A general description of the ingredient, or any supporting text. May be used for an unstructured list of excipients.", 0, 1, description); case 75406931: /*allergenicIndicator*/ return new Property("allergenicIndicator", "boolean", "If the ingredient is a known or suspected allergen.", 0, 1, allergenicIndicator); case -1969347631: /*manufacturer*/ return new Property("manufacturer", "Reference(Organization)", "The organization that manufactures this ingredient.", 0, java.lang.Integer.MAX_VALUE, manufacturer); @@ -2239,6 +2467,7 @@ public class Ingredient extends DomainResource { case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier case 3506294: /*role*/ return this.role == null ? new Base[0] : new Base[] {this.role}; // CodeableConcept case 1380938712: /*function*/ return this.function == null ? new Base[0] : this.function.toArray(new Base[this.function.size()]); // CodeableConcept + case 98629247: /*group*/ return this.group == null ? new Base[0] : new Base[] {this.group}; // CodeableConcept case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType case 75406931: /*allergenicIndicator*/ return this.allergenicIndicator == null ? new Base[0] : new Base[] {this.allergenicIndicator}; // BooleanType case -1969347631: /*manufacturer*/ return this.manufacturer == null ? new Base[0] : this.manufacturer.toArray(new Base[this.manufacturer.size()]); // Reference @@ -2261,6 +2490,9 @@ public class Ingredient extends DomainResource { case 1380938712: // function this.getFunction().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept return value; + case 98629247: // group + this.group = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; case -1724546052: // description this.description = TypeConvertor.castToMarkdown(value); // MarkdownType return value; @@ -2289,6 +2521,8 @@ public class Ingredient extends DomainResource { this.role = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("function")) { this.getFunction().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("group")) { + this.group = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("description")) { this.description = TypeConvertor.castToMarkdown(value); // MarkdownType } else if (name.equals("allergenicIndicator")) { @@ -2310,6 +2544,7 @@ public class Ingredient extends DomainResource { case -1618432855: return getIdentifier(); case 3506294: return getRole(); case 1380938712: return addFunction(); + case 98629247: return getGroup(); case -1724546052: return getDescriptionElement(); case 75406931: return getAllergenicIndicatorElement(); case -1969347631: return addManufacturer(); @@ -2326,6 +2561,7 @@ public class Ingredient extends DomainResource { case -1618432855: /*identifier*/ return new String[] {"Identifier"}; case 3506294: /*role*/ return new String[] {"CodeableConcept"}; case 1380938712: /*function*/ return new String[] {"CodeableConcept"}; + case 98629247: /*group*/ return new String[] {"CodeableConcept"}; case -1724546052: /*description*/ return new String[] {"markdown"}; case 75406931: /*allergenicIndicator*/ return new String[] {"boolean"}; case -1969347631: /*manufacturer*/ return new String[] {"Reference"}; @@ -2349,6 +2585,10 @@ public class Ingredient extends DomainResource { else if (name.equals("function")) { return addFunction(); } + else if (name.equals("group")) { + this.group = new CodeableConcept(); + return this.group; + } else if (name.equals("description")) { throw new FHIRException("Cannot call addChild on a primitive type Ingredient.description"); } @@ -2389,6 +2629,7 @@ public class Ingredient extends DomainResource { for (CodeableConcept i : function) dst.function.add(i.copy()); }; + dst.group = group == null ? null : group.copy(); dst.description = description == null ? null : description.copy(); dst.allergenicIndicator = allergenicIndicator == null ? null : allergenicIndicator.copy(); if (manufacturer != null) { @@ -2416,7 +2657,7 @@ public class Ingredient extends DomainResource { return false; Ingredient o = (Ingredient) other_; return compareDeep(identifier, o.identifier, true) && compareDeep(role, o.role, true) && compareDeep(function, o.function, true) - && compareDeep(description, o.description, true) && compareDeep(allergenicIndicator, o.allergenicIndicator, true) + && compareDeep(group, o.group, true) && compareDeep(description, o.description, true) && compareDeep(allergenicIndicator, o.allergenicIndicator, true) && compareDeep(manufacturer, o.manufacturer, true) && compareDeep(substance, o.substance, true) && compareDeep(specifiedSubstance, o.specifiedSubstance, true); } @@ -2434,7 +2675,8 @@ public class Ingredient extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, role, function - , description, allergenicIndicator, manufacturer, substance, specifiedSubstance); + , group, description, allergenicIndicator, manufacturer, substance, specifiedSubstance + ); } @Override @@ -2511,85 +2753,39 @@ public class Ingredient extends DomainResource { /** * Search parameter: role *

- * Description: Ingredient role within a drug product e.g. Active ingredient, Excipient
+ * Description: A classification of the ingredient identifying its purpose within the product, e.g. active, inactive
* Type: token
* Path: Ingredient.role
*

*/ - @SearchParamDefinition(name="role", path="Ingredient.role", description="Ingredient role within a drug product e.g. Active ingredient, Excipient", type="token" ) + @SearchParamDefinition(name="role", path="Ingredient.role", description="A classification of the ingredient identifying its purpose within the product, e.g. active, inactive", type="token" ) public static final String SP_ROLE = "role"; /** * Fluent Client search parameter constant for role *

- * Description: Ingredient role within a drug product e.g. Active ingredient, Excipient
+ * Description: A classification of the ingredient identifying its purpose within the product, e.g. active, inactive
* Type: token
* Path: Ingredient.role
*

*/ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ROLE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ROLE); - /** - * Search parameter: specified-substance-code - *

- * Description: Substance as a 'specified substance', implying extra substance related characteristics
- * Type: token
- * Path: Ingredient.specifiedSubstance.code
- *

- */ - @SearchParamDefinition(name="specified-substance-code", path="Ingredient.specifiedSubstance.code", description="Substance as a 'specified substance', implying extra substance related characteristics", type="token" ) - public static final String SP_SPECIFIED_SUBSTANCE_CODE = "specified-substance-code"; - /** - * Fluent Client search parameter constant for specified-substance-code - *

- * Description: Substance as a 'specified substance', implying extra substance related characteristics
- * Type: token
- * Path: Ingredient.specifiedSubstance.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam SPECIFIED_SUBSTANCE_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SPECIFIED_SUBSTANCE_CODE); - - /** - * Search parameter: specified-substance-definition - *

- * Description: Substance as a 'specified substance', implying extra substance related characteristics
- * Type: reference
- * Path: Ingredient.specifiedSubstance.code.where(resolve() is SubstanceDefinition)
- *

- */ - @SearchParamDefinition(name="specified-substance-definition", path="Ingredient.specifiedSubstance.code.where(resolve() is SubstanceDefinition)", description="Substance as a 'specified substance', implying extra substance related characteristics", type="reference", target={SubstanceDefinition.class } ) - public static final String SP_SPECIFIED_SUBSTANCE_DEFINITION = "specified-substance-definition"; - /** - * Fluent Client search parameter constant for specified-substance-definition - *

- * Description: Substance as a 'specified substance', implying extra substance related characteristics
- * Type: reference
- * Path: Ingredient.specifiedSubstance.code.where(resolve() is SubstanceDefinition)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SPECIFIED_SUBSTANCE_DEFINITION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SPECIFIED_SUBSTANCE_DEFINITION); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Ingredient:specified-substance-definition". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_SPECIFIED_SUBSTANCE_DEFINITION = new ca.uhn.fhir.model.api.Include("Ingredient:specified-substance-definition").toLocked(); - /** * Search parameter: specified-substance *

- * Description: Substance as a 'specified substance', implying extra substance related characteristics
+ * Description: Reference to a resource (by instance)
* Type: reference
- * Path: Ingredient.specifiedSubstance.code.where(resolve() is Substance)
+ * Path: Ingredient.specifiedSubstance.code.reference
*

*/ - @SearchParamDefinition(name="specified-substance", path="Ingredient.specifiedSubstance.code.where(resolve() is Substance)", description="Substance as a 'specified substance', implying extra substance related characteristics", type="reference", target={Substance.class } ) + @SearchParamDefinition(name="specified-substance", path="Ingredient.specifiedSubstance.code.reference", description="Reference to a resource (by instance)", type="reference" ) public static final String SP_SPECIFIED_SUBSTANCE = "specified-substance"; /** * Fluent Client search parameter constant for specified-substance *

- * Description: Substance as a 'specified substance', implying extra substance related characteristics
+ * Description: Reference to a resource (by instance)
* Type: reference
- * Path: Ingredient.specifiedSubstance.code.where(resolve() is Substance)
+ * Path: Ingredient.specifiedSubstance.code.reference
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SPECIFIED_SUBSTANCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SPECIFIED_SUBSTANCE); @@ -2601,67 +2797,67 @@ public class Ingredient extends DomainResource { public static final ca.uhn.fhir.model.api.Include INCLUDE_SPECIFIED_SUBSTANCE = new ca.uhn.fhir.model.api.Include("Ingredient:specified-substance").toLocked(); /** - * Search parameter: substance-code + * Search parameter: specified-substance-code *

- * Description: A code or full resource that represents the ingredient substance
+ * Description: Reference to a concept (by class)
* Type: token
- * Path: Ingredient.substance.code
+ * Path: Ingredient.specifiedSubstance.code.concept
*

*/ - @SearchParamDefinition(name="substance-code", path="Ingredient.substance.code", description="A code or full resource that represents the ingredient substance", type="token" ) - public static final String SP_SUBSTANCE_CODE = "substance-code"; + @SearchParamDefinition(name="specified-substance-code", path="Ingredient.specifiedSubstance.code.concept", description="Reference to a concept (by class)", type="token" ) + public static final String SP_SPECIFIED_SUBSTANCE_CODE = "specified-substance-code"; /** - * Fluent Client search parameter constant for substance-code + * Fluent Client search parameter constant for specified-substance-code *

- * Description: A code or full resource that represents the ingredient substance
+ * Description: Reference to a concept (by class)
* Type: token
- * Path: Ingredient.substance.code
+ * Path: Ingredient.specifiedSubstance.code.concept
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUBSTANCE_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SUBSTANCE_CODE); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam SPECIFIED_SUBSTANCE_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SPECIFIED_SUBSTANCE_CODE); /** - * Search parameter: substance-definition + * Search parameter: specified-substance-definition *

- * Description: A code or full resource that represents the ingredient substance
+ * Description: Reference to a resource (by instance)
* Type: reference
- * Path: Ingredient.substance.code.where(resolve() is SubstanceDefinition)
+ * Path: Ingredient.specifiedSubstance.code.reference
*

*/ - @SearchParamDefinition(name="substance-definition", path="Ingredient.substance.code.where(resolve() is SubstanceDefinition)", description="A code or full resource that represents the ingredient substance", type="reference", target={SubstanceDefinition.class } ) - public static final String SP_SUBSTANCE_DEFINITION = "substance-definition"; + @SearchParamDefinition(name="specified-substance-definition", path="Ingredient.specifiedSubstance.code.reference", description="Reference to a resource (by instance)", type="reference" ) + public static final String SP_SPECIFIED_SUBSTANCE_DEFINITION = "specified-substance-definition"; /** - * Fluent Client search parameter constant for substance-definition + * Fluent Client search parameter constant for specified-substance-definition *

- * Description: A code or full resource that represents the ingredient substance
+ * Description: Reference to a resource (by instance)
* Type: reference
- * Path: Ingredient.substance.code.where(resolve() is SubstanceDefinition)
+ * Path: Ingredient.specifiedSubstance.code.reference
*

*/ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBSTANCE_DEFINITION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBSTANCE_DEFINITION); + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SPECIFIED_SUBSTANCE_DEFINITION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SPECIFIED_SUBSTANCE_DEFINITION); /** * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Ingredient:substance-definition". + * the path value of "Ingredient:specified-substance-definition". */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBSTANCE_DEFINITION = new ca.uhn.fhir.model.api.Include("Ingredient:substance-definition").toLocked(); + public static final ca.uhn.fhir.model.api.Include INCLUDE_SPECIFIED_SUBSTANCE_DEFINITION = new ca.uhn.fhir.model.api.Include("Ingredient:specified-substance-definition").toLocked(); /** * Search parameter: substance *

- * Description: A code or full resource that represents the ingredient substance
+ * Description: Reference to a resource (by instance)
* Type: reference
- * Path: Ingredient.substance.code.where(resolve() is Substance)
+ * Path: Ingredient.substance.code.reference
*

*/ - @SearchParamDefinition(name="substance", path="Ingredient.substance.code.where(resolve() is Substance)", description="A code or full resource that represents the ingredient substance", type="reference", target={Substance.class } ) + @SearchParamDefinition(name="substance", path="Ingredient.substance.code.reference", description="Reference to a resource (by instance)", type="reference" ) public static final String SP_SUBSTANCE = "substance"; /** * Fluent Client search parameter constant for substance *

- * Description: A code or full resource that represents the ingredient substance
+ * Description: Reference to a resource (by instance)
* Type: reference
- * Path: Ingredient.substance.code.where(resolve() is Substance)
+ * Path: Ingredient.substance.code.reference
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBSTANCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBSTANCE); @@ -2672,6 +2868,52 @@ public class Ingredient extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBSTANCE = new ca.uhn.fhir.model.api.Include("Ingredient:substance").toLocked(); + /** + * Search parameter: substance-code + *

+ * Description: Reference to a concept (by class)
+ * Type: token
+ * Path: Ingredient.substance.code.concept
+ *

+ */ + @SearchParamDefinition(name="substance-code", path="Ingredient.substance.code.concept", description="Reference to a concept (by class)", type="token" ) + public static final String SP_SUBSTANCE_CODE = "substance-code"; + /** + * Fluent Client search parameter constant for substance-code + *

+ * Description: Reference to a concept (by class)
+ * Type: token
+ * Path: Ingredient.substance.code.concept
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUBSTANCE_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SUBSTANCE_CODE); + + /** + * Search parameter: substance-definition + *

+ * Description: Reference to a resource (by instance)
+ * Type: reference
+ * Path: Ingredient.substance.code.reference
+ *

+ */ + @SearchParamDefinition(name="substance-definition", path="Ingredient.substance.code.reference", description="Reference to a resource (by instance)", type="reference" ) + public static final String SP_SUBSTANCE_DEFINITION = "substance-definition"; + /** + * Fluent Client search parameter constant for substance-definition + *

+ * Description: Reference to a resource (by instance)
+ * Type: reference
+ * Path: Ingredient.substance.code.reference
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBSTANCE_DEFINITION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBSTANCE_DEFINITION); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Ingredient:substance-definition". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBSTANCE_DEFINITION = new ca.uhn.fhir.model.api.Include("Ingredient:substance-definition").toLocked(); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InsurancePlan.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InsurancePlan.java index 7a550b808..fc250c17b 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InsurancePlan.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InsurancePlan.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -4035,6 +4035,26 @@ public class InsurancePlan extends DomainResource { return ResourceType.InsurancePlan; } + /** + * Search parameter: address + *

+ * Description: A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
+ * Type: string
+ * Path: InsurancePlan.contact.address
+ *

+ */ + @SearchParamDefinition(name="address", path="InsurancePlan.contact.address", description="A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text", type="string" ) + public static final String SP_ADDRESS = "address"; + /** + * Fluent Client search parameter constant for address + *

+ * Description: A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
+ * Type: string
+ * Path: InsurancePlan.contact.address
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); + /** * Search parameter: address-city *

@@ -4135,26 +4155,6 @@ public class InsurancePlan extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ADDRESS_USE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ADDRESS_USE); - /** - * Search parameter: address - *

- * Description: A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
- * Type: string
- * Path: InsurancePlan.contact.address
- *

- */ - @SearchParamDefinition(name="address", path="InsurancePlan.contact.address", description="A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text", type="string" ) - public static final String SP_ADDRESS = "address"; - /** - * Fluent Client search parameter constant for address - *

- * Description: A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
- * Type: string
- * Path: InsurancePlan.contact.address
- *

- */ - public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); - /** * Search parameter: administered-by *

diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InventoryReport.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InventoryReport.java new file mode 100644 index 000000000..854499b1c --- /dev/null +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/InventoryReport.java @@ -0,0 +1,1886 @@ +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, \ + are permitted provided that the following conditions are met: + + * 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 \ + 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 \ + POSSIBILITY OF SUCH DAMAGE. + */ + +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import org.hl7.fhir.utilities.Utilities; +import org.hl7.fhir.r5.model.Enumerations.*; +import org.hl7.fhir.instance.model.api.IBaseBackboneElement; +import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.instance.model.api.ICompositeType; +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; +import org.hl7.fhir.instance.model.api.IBaseBackboneElement; +import ca.uhn.fhir.model.api.annotation.Child; +import ca.uhn.fhir.model.api.annotation.ChildOrder; +import ca.uhn.fhir.model.api.annotation.Description; +import ca.uhn.fhir.model.api.annotation.Block; + +/** + * A report of inventory or stock items. + */ +@ResourceDef(name="InventoryReport", profile="http://hl7.org/fhir/StructureDefinition/InventoryReport") +public class InventoryReport extends DomainResource { + + public enum InventoryCountType { + /** + * The inventory report is a current absolute snapshot, i.e. it represents the quantities at hand. + */ + SNAPSHOT, + /** + * The inventory report is about the difference between a previous count and a current count, i.e. it represents the items that have been added/subtracted from inventory. + */ + DIFFERENCE, + /** + * added to help the parsers with the generic types + */ + NULL; + public static InventoryCountType fromCode(String codeString) throws FHIRException { + if (codeString == null || "".equals(codeString)) + return null; + if ("snapshot".equals(codeString)) + return SNAPSHOT; + if ("difference".equals(codeString)) + return DIFFERENCE; + if (Configuration.isAcceptInvalidEnums()) + return null; + else + throw new FHIRException("Unknown InventoryCountType code '"+codeString+"'"); + } + public String toCode() { + switch (this) { + case SNAPSHOT: return "snapshot"; + case DIFFERENCE: return "difference"; + default: return "?"; + } + } + public String getSystem() { + switch (this) { + case SNAPSHOT: return "http://hl7.org/fhir/inventoryreport-counttype"; + case DIFFERENCE: return "http://hl7.org/fhir/inventoryreport-counttype"; + default: return "?"; + } + } + public String getDefinition() { + switch (this) { + case SNAPSHOT: return "The inventory report is a current absolute snapshot, i.e. it represents the quantities at hand."; + case DIFFERENCE: return "The inventory report is about the difference between a previous count and a current count, i.e. it represents the items that have been added/subtracted from inventory."; + default: return "?"; + } + } + public String getDisplay() { + switch (this) { + case SNAPSHOT: return "Snapshot"; + case DIFFERENCE: return "Difference"; + default: return "?"; + } + } + } + + public static class InventoryCountTypeEnumFactory implements EnumFactory { + public InventoryCountType fromCode(String codeString) throws IllegalArgumentException { + if (codeString == null || "".equals(codeString)) + if (codeString == null || "".equals(codeString)) + return null; + if ("snapshot".equals(codeString)) + return InventoryCountType.SNAPSHOT; + if ("difference".equals(codeString)) + return InventoryCountType.DIFFERENCE; + throw new IllegalArgumentException("Unknown InventoryCountType code '"+codeString+"'"); + } + public Enumeration fromType(Base code) throws FHIRException { + if (code == null) + return null; + if (code.isEmpty()) + return new Enumeration(this); + String codeString = ((PrimitiveType) code).asStringValue(); + if (codeString == null || "".equals(codeString)) + return null; + if ("snapshot".equals(codeString)) + return new Enumeration(this, InventoryCountType.SNAPSHOT); + if ("difference".equals(codeString)) + return new Enumeration(this, InventoryCountType.DIFFERENCE); + throw new FHIRException("Unknown InventoryCountType code '"+codeString+"'"); + } + public String toCode(InventoryCountType code) { + if (code == InventoryCountType.SNAPSHOT) + return "snapshot"; + if (code == InventoryCountType.DIFFERENCE) + return "difference"; + return "?"; + } + public String toSystem(InventoryCountType code) { + return code.getSystem(); + } + } + + public enum InventoryReportStatus { + /** + * The existence of the report is registered, but it is still without content or only some preliminary content. + */ + DRAFT, + /** + * The inventory report has been requested but there is no data available. + */ + REQUESTED, + /** + * This report is submitted as current. + */ + ACTIVE, + /** + * The report has been withdrawn following a previous final release. This electronic record should never have existed, though it is possible that real-world decisions were based on it. + */ + ENTEREDINERROR, + /** + * added to help the parsers with the generic types + */ + NULL; + public static InventoryReportStatus fromCode(String codeString) throws FHIRException { + if (codeString == null || "".equals(codeString)) + return null; + if ("draft".equals(codeString)) + return DRAFT; + if ("requested".equals(codeString)) + return REQUESTED; + if ("active".equals(codeString)) + return ACTIVE; + if ("entered-in-error".equals(codeString)) + return ENTEREDINERROR; + if (Configuration.isAcceptInvalidEnums()) + return null; + else + throw new FHIRException("Unknown InventoryReportStatus code '"+codeString+"'"); + } + public String toCode() { + switch (this) { + case DRAFT: return "draft"; + case REQUESTED: return "requested"; + case ACTIVE: return "active"; + case ENTEREDINERROR: return "entered-in-error"; + default: return "?"; + } + } + public String getSystem() { + switch (this) { + case DRAFT: return "http://hl7.org/fhir/inventoryreport-status"; + case REQUESTED: return "http://hl7.org/fhir/inventoryreport-status"; + case ACTIVE: return "http://hl7.org/fhir/inventoryreport-status"; + case ENTEREDINERROR: return "http://hl7.org/fhir/inventoryreport-status"; + default: return "?"; + } + } + public String getDefinition() { + switch (this) { + case DRAFT: return "The existence of the report is registered, but it is still without content or only some preliminary content."; + case REQUESTED: return "The inventory report has been requested but there is no data available."; + case ACTIVE: return "This report is submitted as current."; + case ENTEREDINERROR: return "The report has been withdrawn following a previous final release. This electronic record should never have existed, though it is possible that real-world decisions were based on it."; + default: return "?"; + } + } + public String getDisplay() { + switch (this) { + case DRAFT: return "Draft"; + case REQUESTED: return "Requested"; + case ACTIVE: return "Active"; + case ENTEREDINERROR: return "Entered in Error"; + default: return "?"; + } + } + } + + public static class InventoryReportStatusEnumFactory implements EnumFactory { + public InventoryReportStatus fromCode(String codeString) throws IllegalArgumentException { + if (codeString == null || "".equals(codeString)) + if (codeString == null || "".equals(codeString)) + return null; + if ("draft".equals(codeString)) + return InventoryReportStatus.DRAFT; + if ("requested".equals(codeString)) + return InventoryReportStatus.REQUESTED; + if ("active".equals(codeString)) + return InventoryReportStatus.ACTIVE; + if ("entered-in-error".equals(codeString)) + return InventoryReportStatus.ENTEREDINERROR; + throw new IllegalArgumentException("Unknown InventoryReportStatus code '"+codeString+"'"); + } + public Enumeration fromType(Base code) throws FHIRException { + if (code == null) + return null; + if (code.isEmpty()) + return new Enumeration(this); + String codeString = ((PrimitiveType) code).asStringValue(); + if (codeString == null || "".equals(codeString)) + return null; + if ("draft".equals(codeString)) + return new Enumeration(this, InventoryReportStatus.DRAFT); + if ("requested".equals(codeString)) + return new Enumeration(this, InventoryReportStatus.REQUESTED); + if ("active".equals(codeString)) + return new Enumeration(this, InventoryReportStatus.ACTIVE); + if ("entered-in-error".equals(codeString)) + return new Enumeration(this, InventoryReportStatus.ENTEREDINERROR); + throw new FHIRException("Unknown InventoryReportStatus code '"+codeString+"'"); + } + public String toCode(InventoryReportStatus code) { + if (code == InventoryReportStatus.DRAFT) + return "draft"; + if (code == InventoryReportStatus.REQUESTED) + return "requested"; + if (code == InventoryReportStatus.ACTIVE) + return "active"; + if (code == InventoryReportStatus.ENTEREDINERROR) + return "entered-in-error"; + return "?"; + } + public String toSystem(InventoryReportStatus code) { + return code.getSystem(); + } + } + + @Block() + public static class InventoryReportInventoryListingComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Location of the inventory items. + */ + @Child(name = "location", type = {Location.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Location of the inventory items", formalDefinition="Location of the inventory items." ) + protected Reference location; + + /** + * The status of the items. + */ + @Child(name = "itemStatus", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="The status of the items", formalDefinition="The status of the items." ) + protected CodeableConcept itemStatus; + + /** + * The date and time when the items were counted. + */ + @Child(name = "countingDateTime", type = {DateTimeType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The date and time when the items were counted", formalDefinition="The date and time when the items were counted." ) + protected DateTimeType countingDateTime; + + /** + * The item or items in this listing. + */ + @Child(name = "items", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="The item or items in this listing", formalDefinition="The item or items in this listing." ) + protected List items; + + private static final long serialVersionUID = -847152550L; + + /** + * Constructor + */ + public InventoryReportInventoryListingComponent() { + super(); + } + + /** + * @return {@link #location} (Location of the inventory items.) + */ + public Reference getLocation() { + if (this.location == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReportInventoryListingComponent.location"); + else if (Configuration.doAutoCreate()) + this.location = new Reference(); // cc + return this.location; + } + + public boolean hasLocation() { + return this.location != null && !this.location.isEmpty(); + } + + /** + * @param value {@link #location} (Location of the inventory items.) + */ + public InventoryReportInventoryListingComponent setLocation(Reference value) { + this.location = value; + return this; + } + + /** + * @return {@link #itemStatus} (The status of the items.) + */ + public CodeableConcept getItemStatus() { + if (this.itemStatus == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReportInventoryListingComponent.itemStatus"); + else if (Configuration.doAutoCreate()) + this.itemStatus = new CodeableConcept(); // cc + return this.itemStatus; + } + + public boolean hasItemStatus() { + return this.itemStatus != null && !this.itemStatus.isEmpty(); + } + + /** + * @param value {@link #itemStatus} (The status of the items.) + */ + public InventoryReportInventoryListingComponent setItemStatus(CodeableConcept value) { + this.itemStatus = value; + return this; + } + + /** + * @return {@link #countingDateTime} (The date and time when the items were counted.). This is the underlying object with id, value and extensions. The accessor "getCountingDateTime" gives direct access to the value + */ + public DateTimeType getCountingDateTimeElement() { + if (this.countingDateTime == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReportInventoryListingComponent.countingDateTime"); + else if (Configuration.doAutoCreate()) + this.countingDateTime = new DateTimeType(); // bb + return this.countingDateTime; + } + + public boolean hasCountingDateTimeElement() { + return this.countingDateTime != null && !this.countingDateTime.isEmpty(); + } + + public boolean hasCountingDateTime() { + return this.countingDateTime != null && !this.countingDateTime.isEmpty(); + } + + /** + * @param value {@link #countingDateTime} (The date and time when the items were counted.). This is the underlying object with id, value and extensions. The accessor "getCountingDateTime" gives direct access to the value + */ + public InventoryReportInventoryListingComponent setCountingDateTimeElement(DateTimeType value) { + this.countingDateTime = value; + return this; + } + + /** + * @return The date and time when the items were counted. + */ + public Date getCountingDateTime() { + return this.countingDateTime == null ? null : this.countingDateTime.getValue(); + } + + /** + * @param value The date and time when the items were counted. + */ + public InventoryReportInventoryListingComponent setCountingDateTime(Date value) { + if (value == null) + this.countingDateTime = null; + else { + if (this.countingDateTime == null) + this.countingDateTime = new DateTimeType(); + this.countingDateTime.setValue(value); + } + return this; + } + + /** + * @return {@link #items} (The item or items in this listing.) + */ + public List getItems() { + if (this.items == null) + this.items = new ArrayList(); + return this.items; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public InventoryReportInventoryListingComponent setItems(List theItems) { + this.items = theItems; + return this; + } + + public boolean hasItems() { + if (this.items == null) + return false; + for (InventoryReportInventoryListingItemsComponent item : this.items) + if (!item.isEmpty()) + return true; + return false; + } + + public InventoryReportInventoryListingItemsComponent addItems() { //3 + InventoryReportInventoryListingItemsComponent t = new InventoryReportInventoryListingItemsComponent(); + if (this.items == null) + this.items = new ArrayList(); + this.items.add(t); + return t; + } + + public InventoryReportInventoryListingComponent addItems(InventoryReportInventoryListingItemsComponent t) { //3 + if (t == null) + return this; + if (this.items == null) + this.items = new ArrayList(); + this.items.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #items}, creating it if it does not already exist {3} + */ + public InventoryReportInventoryListingItemsComponent getItemsFirstRep() { + if (getItems().isEmpty()) { + addItems(); + } + return getItems().get(0); + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("location", "Reference(Location)", "Location of the inventory items.", 0, 1, location)); + children.add(new Property("itemStatus", "CodeableConcept", "The status of the items.", 0, 1, itemStatus)); + children.add(new Property("countingDateTime", "dateTime", "The date and time when the items were counted.", 0, 1, countingDateTime)); + children.add(new Property("items", "", "The item or items in this listing.", 0, java.lang.Integer.MAX_VALUE, items)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 1901043637: /*location*/ return new Property("location", "Reference(Location)", "Location of the inventory items.", 0, 1, location); + case 1999789285: /*itemStatus*/ return new Property("itemStatus", "CodeableConcept", "The status of the items.", 0, 1, itemStatus); + case -2075203282: /*countingDateTime*/ return new Property("countingDateTime", "dateTime", "The date and time when the items were counted.", 0, 1, countingDateTime); + case 100526016: /*items*/ return new Property("items", "", "The item or items in this listing.", 0, java.lang.Integer.MAX_VALUE, items); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 1901043637: /*location*/ return this.location == null ? new Base[0] : new Base[] {this.location}; // Reference + case 1999789285: /*itemStatus*/ return this.itemStatus == null ? new Base[0] : new Base[] {this.itemStatus}; // CodeableConcept + case -2075203282: /*countingDateTime*/ return this.countingDateTime == null ? new Base[0] : new Base[] {this.countingDateTime}; // DateTimeType + case 100526016: /*items*/ return this.items == null ? new Base[0] : this.items.toArray(new Base[this.items.size()]); // InventoryReportInventoryListingItemsComponent + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 1901043637: // location + this.location = TypeConvertor.castToReference(value); // Reference + return value; + case 1999789285: // itemStatus + this.itemStatus = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -2075203282: // countingDateTime + this.countingDateTime = TypeConvertor.castToDateTime(value); // DateTimeType + return value; + case 100526016: // items + this.getItems().add((InventoryReportInventoryListingItemsComponent) value); // InventoryReportInventoryListingItemsComponent + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("location")) { + this.location = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("itemStatus")) { + this.itemStatus = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("countingDateTime")) { + this.countingDateTime = TypeConvertor.castToDateTime(value); // DateTimeType + } else if (name.equals("items")) { + this.getItems().add((InventoryReportInventoryListingItemsComponent) value); + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 1901043637: return getLocation(); + case 1999789285: return getItemStatus(); + case -2075203282: return getCountingDateTimeElement(); + case 100526016: return addItems(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 1901043637: /*location*/ return new String[] {"Reference"}; + case 1999789285: /*itemStatus*/ return new String[] {"CodeableConcept"}; + case -2075203282: /*countingDateTime*/ return new String[] {"dateTime"}; + case 100526016: /*items*/ return new String[] {}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("location")) { + this.location = new Reference(); + return this.location; + } + else if (name.equals("itemStatus")) { + this.itemStatus = new CodeableConcept(); + return this.itemStatus; + } + else if (name.equals("countingDateTime")) { + throw new FHIRException("Cannot call addChild on a primitive type InventoryReport.inventoryListing.countingDateTime"); + } + else if (name.equals("items")) { + return addItems(); + } + else + return super.addChild(name); + } + + public InventoryReportInventoryListingComponent copy() { + InventoryReportInventoryListingComponent dst = new InventoryReportInventoryListingComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(InventoryReportInventoryListingComponent dst) { + super.copyValues(dst); + dst.location = location == null ? null : location.copy(); + dst.itemStatus = itemStatus == null ? null : itemStatus.copy(); + dst.countingDateTime = countingDateTime == null ? null : countingDateTime.copy(); + if (items != null) { + dst.items = new ArrayList(); + for (InventoryReportInventoryListingItemsComponent i : items) + dst.items.add(i.copy()); + }; + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof InventoryReportInventoryListingComponent)) + return false; + InventoryReportInventoryListingComponent o = (InventoryReportInventoryListingComponent) other_; + return compareDeep(location, o.location, true) && compareDeep(itemStatus, o.itemStatus, true) && compareDeep(countingDateTime, o.countingDateTime, true) + && compareDeep(items, o.items, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof InventoryReportInventoryListingComponent)) + return false; + InventoryReportInventoryListingComponent o = (InventoryReportInventoryListingComponent) other_; + return compareValues(countingDateTime, o.countingDateTime, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(location, itemStatus, countingDateTime + , items); + } + + public String fhirType() { + return "InventoryReport.inventoryListing"; + + } + + } + + @Block() + public static class InventoryReportInventoryListingItemsComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The category of the item or items. + */ + @Child(name = "category", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="The category of the item or items", formalDefinition="The category of the item or items." ) + protected CodeableConcept category; + + /** + * The quantity of the item or items. + */ + @Child(name = "quantity", type = {Quantity.class}, order=2, min=1, max=1, modifier=false, summary=true) + @Description(shortDefinition="The quantity of the item or items", formalDefinition="The quantity of the item or items." ) + protected Quantity quantity; + + /** + * The code or reference to the item type. + */ + @Child(name = "item", type = {CodeableReference.class}, order=3, min=1, max=1, modifier=false, summary=true) + @Description(shortDefinition="The code or reference to the item type", formalDefinition="The code or reference to the item type." ) + protected CodeableReference item; + + /** + * The lot number of the item or items. + */ + @Child(name = "lot", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The lot number of the item or items", formalDefinition="The lot number of the item or items." ) + protected StringType lot; + + /** + * The serial number of the item. + */ + @Child(name = "serial", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The serial number of the item", formalDefinition="The serial number of the item." ) + protected StringType serial; + + /** + * The expiry date of the item or items. + */ + @Child(name = "expiry", type = {DateTimeType.class}, order=6, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The expiry date of the item or items", formalDefinition="The expiry date of the item or items." ) + protected DateTimeType expiry; + + /** + * The manufacturingDate of the item or items. + */ + @Child(name = "manufacturingDate", type = {DateTimeType.class}, order=7, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The manufacturingDate of the item or items", formalDefinition="The manufacturingDate of the item or items." ) + protected DateTimeType manufacturingDate; + + private static final long serialVersionUID = -848736270L; + + /** + * Constructor + */ + public InventoryReportInventoryListingItemsComponent() { + super(); + } + + /** + * Constructor + */ + public InventoryReportInventoryListingItemsComponent(Quantity quantity, CodeableReference item) { + super(); + this.setQuantity(quantity); + this.setItem(item); + } + + /** + * @return {@link #category} (The category of the item or items.) + */ + public CodeableConcept getCategory() { + if (this.category == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReportInventoryListingItemsComponent.category"); + else if (Configuration.doAutoCreate()) + this.category = new CodeableConcept(); // cc + return this.category; + } + + public boolean hasCategory() { + return this.category != null && !this.category.isEmpty(); + } + + /** + * @param value {@link #category} (The category of the item or items.) + */ + public InventoryReportInventoryListingItemsComponent setCategory(CodeableConcept value) { + this.category = value; + return this; + } + + /** + * @return {@link #quantity} (The quantity of the item or items.) + */ + public Quantity getQuantity() { + if (this.quantity == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReportInventoryListingItemsComponent.quantity"); + else if (Configuration.doAutoCreate()) + this.quantity = new Quantity(); // cc + return this.quantity; + } + + public boolean hasQuantity() { + return this.quantity != null && !this.quantity.isEmpty(); + } + + /** + * @param value {@link #quantity} (The quantity of the item or items.) + */ + public InventoryReportInventoryListingItemsComponent setQuantity(Quantity value) { + this.quantity = value; + return this; + } + + /** + * @return {@link #item} (The code or reference to the item type.) + */ + public CodeableReference getItem() { + if (this.item == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReportInventoryListingItemsComponent.item"); + else if (Configuration.doAutoCreate()) + this.item = new CodeableReference(); // cc + return this.item; + } + + public boolean hasItem() { + return this.item != null && !this.item.isEmpty(); + } + + /** + * @param value {@link #item} (The code or reference to the item type.) + */ + public InventoryReportInventoryListingItemsComponent setItem(CodeableReference value) { + this.item = value; + return this; + } + + /** + * @return {@link #lot} (The lot number of the item or items.). This is the underlying object with id, value and extensions. The accessor "getLot" gives direct access to the value + */ + public StringType getLotElement() { + if (this.lot == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReportInventoryListingItemsComponent.lot"); + else if (Configuration.doAutoCreate()) + this.lot = new StringType(); // bb + return this.lot; + } + + public boolean hasLotElement() { + return this.lot != null && !this.lot.isEmpty(); + } + + public boolean hasLot() { + return this.lot != null && !this.lot.isEmpty(); + } + + /** + * @param value {@link #lot} (The lot number of the item or items.). This is the underlying object with id, value and extensions. The accessor "getLot" gives direct access to the value + */ + public InventoryReportInventoryListingItemsComponent setLotElement(StringType value) { + this.lot = value; + return this; + } + + /** + * @return The lot number of the item or items. + */ + public String getLot() { + return this.lot == null ? null : this.lot.getValue(); + } + + /** + * @param value The lot number of the item or items. + */ + public InventoryReportInventoryListingItemsComponent setLot(String value) { + if (Utilities.noString(value)) + this.lot = null; + else { + if (this.lot == null) + this.lot = new StringType(); + this.lot.setValue(value); + } + return this; + } + + /** + * @return {@link #serial} (The serial number of the item.). This is the underlying object with id, value and extensions. The accessor "getSerial" gives direct access to the value + */ + public StringType getSerialElement() { + if (this.serial == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReportInventoryListingItemsComponent.serial"); + else if (Configuration.doAutoCreate()) + this.serial = new StringType(); // bb + return this.serial; + } + + public boolean hasSerialElement() { + return this.serial != null && !this.serial.isEmpty(); + } + + public boolean hasSerial() { + return this.serial != null && !this.serial.isEmpty(); + } + + /** + * @param value {@link #serial} (The serial number of the item.). This is the underlying object with id, value and extensions. The accessor "getSerial" gives direct access to the value + */ + public InventoryReportInventoryListingItemsComponent setSerialElement(StringType value) { + this.serial = value; + return this; + } + + /** + * @return The serial number of the item. + */ + public String getSerial() { + return this.serial == null ? null : this.serial.getValue(); + } + + /** + * @param value The serial number of the item. + */ + public InventoryReportInventoryListingItemsComponent setSerial(String value) { + if (Utilities.noString(value)) + this.serial = null; + else { + if (this.serial == null) + this.serial = new StringType(); + this.serial.setValue(value); + } + return this; + } + + /** + * @return {@link #expiry} (The expiry date of the item or items.). This is the underlying object with id, value and extensions. The accessor "getExpiry" gives direct access to the value + */ + public DateTimeType getExpiryElement() { + if (this.expiry == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReportInventoryListingItemsComponent.expiry"); + else if (Configuration.doAutoCreate()) + this.expiry = new DateTimeType(); // bb + return this.expiry; + } + + public boolean hasExpiryElement() { + return this.expiry != null && !this.expiry.isEmpty(); + } + + public boolean hasExpiry() { + return this.expiry != null && !this.expiry.isEmpty(); + } + + /** + * @param value {@link #expiry} (The expiry date of the item or items.). This is the underlying object with id, value and extensions. The accessor "getExpiry" gives direct access to the value + */ + public InventoryReportInventoryListingItemsComponent setExpiryElement(DateTimeType value) { + this.expiry = value; + return this; + } + + /** + * @return The expiry date of the item or items. + */ + public Date getExpiry() { + return this.expiry == null ? null : this.expiry.getValue(); + } + + /** + * @param value The expiry date of the item or items. + */ + public InventoryReportInventoryListingItemsComponent setExpiry(Date value) { + if (value == null) + this.expiry = null; + else { + if (this.expiry == null) + this.expiry = new DateTimeType(); + this.expiry.setValue(value); + } + return this; + } + + /** + * @return {@link #manufacturingDate} (The manufacturingDate of the item or items.). This is the underlying object with id, value and extensions. The accessor "getManufacturingDate" gives direct access to the value + */ + public DateTimeType getManufacturingDateElement() { + if (this.manufacturingDate == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReportInventoryListingItemsComponent.manufacturingDate"); + else if (Configuration.doAutoCreate()) + this.manufacturingDate = new DateTimeType(); // bb + return this.manufacturingDate; + } + + public boolean hasManufacturingDateElement() { + return this.manufacturingDate != null && !this.manufacturingDate.isEmpty(); + } + + public boolean hasManufacturingDate() { + return this.manufacturingDate != null && !this.manufacturingDate.isEmpty(); + } + + /** + * @param value {@link #manufacturingDate} (The manufacturingDate of the item or items.). This is the underlying object with id, value and extensions. The accessor "getManufacturingDate" gives direct access to the value + */ + public InventoryReportInventoryListingItemsComponent setManufacturingDateElement(DateTimeType value) { + this.manufacturingDate = value; + return this; + } + + /** + * @return The manufacturingDate of the item or items. + */ + public Date getManufacturingDate() { + return this.manufacturingDate == null ? null : this.manufacturingDate.getValue(); + } + + /** + * @param value The manufacturingDate of the item or items. + */ + public InventoryReportInventoryListingItemsComponent setManufacturingDate(Date value) { + if (value == null) + this.manufacturingDate = null; + else { + if (this.manufacturingDate == null) + this.manufacturingDate = new DateTimeType(); + this.manufacturingDate.setValue(value); + } + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("category", "CodeableConcept", "The category of the item or items.", 0, 1, category)); + children.add(new Property("quantity", "Quantity", "The quantity of the item or items.", 0, 1, quantity)); + children.add(new Property("item", "CodeableReference(Device|Medication)", "The code or reference to the item type.", 0, 1, item)); + children.add(new Property("lot", "string", "The lot number of the item or items.", 0, 1, lot)); + children.add(new Property("serial", "string", "The serial number of the item.", 0, 1, serial)); + children.add(new Property("expiry", "dateTime", "The expiry date of the item or items.", 0, 1, expiry)); + children.add(new Property("manufacturingDate", "dateTime", "The manufacturingDate of the item or items.", 0, 1, manufacturingDate)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 50511102: /*category*/ return new Property("category", "CodeableConcept", "The category of the item or items.", 0, 1, category); + case -1285004149: /*quantity*/ return new Property("quantity", "Quantity", "The quantity of the item or items.", 0, 1, quantity); + case 3242771: /*item*/ return new Property("item", "CodeableReference(Device|Medication)", "The code or reference to the item type.", 0, 1, item); + case 107345: /*lot*/ return new Property("lot", "string", "The lot number of the item or items.", 0, 1, lot); + case -905839116: /*serial*/ return new Property("serial", "string", "The serial number of the item.", 0, 1, serial); + case -1289159373: /*expiry*/ return new Property("expiry", "dateTime", "The expiry date of the item or items.", 0, 1, expiry); + case 1492515340: /*manufacturingDate*/ return new Property("manufacturingDate", "dateTime", "The manufacturingDate of the item or items.", 0, 1, manufacturingDate); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 50511102: /*category*/ return this.category == null ? new Base[0] : new Base[] {this.category}; // CodeableConcept + case -1285004149: /*quantity*/ return this.quantity == null ? new Base[0] : new Base[] {this.quantity}; // Quantity + case 3242771: /*item*/ return this.item == null ? new Base[0] : new Base[] {this.item}; // CodeableReference + case 107345: /*lot*/ return this.lot == null ? new Base[0] : new Base[] {this.lot}; // StringType + case -905839116: /*serial*/ return this.serial == null ? new Base[0] : new Base[] {this.serial}; // StringType + case -1289159373: /*expiry*/ return this.expiry == null ? new Base[0] : new Base[] {this.expiry}; // DateTimeType + case 1492515340: /*manufacturingDate*/ return this.manufacturingDate == null ? new Base[0] : new Base[] {this.manufacturingDate}; // DateTimeType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 50511102: // category + this.category = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -1285004149: // quantity + this.quantity = TypeConvertor.castToQuantity(value); // Quantity + return value; + case 3242771: // item + this.item = TypeConvertor.castToCodeableReference(value); // CodeableReference + return value; + case 107345: // lot + this.lot = TypeConvertor.castToString(value); // StringType + return value; + case -905839116: // serial + this.serial = TypeConvertor.castToString(value); // StringType + return value; + case -1289159373: // expiry + this.expiry = TypeConvertor.castToDateTime(value); // DateTimeType + return value; + case 1492515340: // manufacturingDate + this.manufacturingDate = TypeConvertor.castToDateTime(value); // DateTimeType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("category")) { + this.category = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("quantity")) { + this.quantity = TypeConvertor.castToQuantity(value); // Quantity + } else if (name.equals("item")) { + this.item = TypeConvertor.castToCodeableReference(value); // CodeableReference + } else if (name.equals("lot")) { + this.lot = TypeConvertor.castToString(value); // StringType + } else if (name.equals("serial")) { + this.serial = TypeConvertor.castToString(value); // StringType + } else if (name.equals("expiry")) { + this.expiry = TypeConvertor.castToDateTime(value); // DateTimeType + } else if (name.equals("manufacturingDate")) { + this.manufacturingDate = TypeConvertor.castToDateTime(value); // DateTimeType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 50511102: return getCategory(); + case -1285004149: return getQuantity(); + case 3242771: return getItem(); + case 107345: return getLotElement(); + case -905839116: return getSerialElement(); + case -1289159373: return getExpiryElement(); + case 1492515340: return getManufacturingDateElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 50511102: /*category*/ return new String[] {"CodeableConcept"}; + case -1285004149: /*quantity*/ return new String[] {"Quantity"}; + case 3242771: /*item*/ return new String[] {"CodeableReference"}; + case 107345: /*lot*/ return new String[] {"string"}; + case -905839116: /*serial*/ return new String[] {"string"}; + case -1289159373: /*expiry*/ return new String[] {"dateTime"}; + case 1492515340: /*manufacturingDate*/ return new String[] {"dateTime"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("category")) { + this.category = new CodeableConcept(); + return this.category; + } + else if (name.equals("quantity")) { + this.quantity = new Quantity(); + return this.quantity; + } + else if (name.equals("item")) { + this.item = new CodeableReference(); + return this.item; + } + else if (name.equals("lot")) { + throw new FHIRException("Cannot call addChild on a primitive type InventoryReport.inventoryListing.items.lot"); + } + else if (name.equals("serial")) { + throw new FHIRException("Cannot call addChild on a primitive type InventoryReport.inventoryListing.items.serial"); + } + else if (name.equals("expiry")) { + throw new FHIRException("Cannot call addChild on a primitive type InventoryReport.inventoryListing.items.expiry"); + } + else if (name.equals("manufacturingDate")) { + throw new FHIRException("Cannot call addChild on a primitive type InventoryReport.inventoryListing.items.manufacturingDate"); + } + else + return super.addChild(name); + } + + public InventoryReportInventoryListingItemsComponent copy() { + InventoryReportInventoryListingItemsComponent dst = new InventoryReportInventoryListingItemsComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(InventoryReportInventoryListingItemsComponent dst) { + super.copyValues(dst); + dst.category = category == null ? null : category.copy(); + dst.quantity = quantity == null ? null : quantity.copy(); + dst.item = item == null ? null : item.copy(); + dst.lot = lot == null ? null : lot.copy(); + dst.serial = serial == null ? null : serial.copy(); + dst.expiry = expiry == null ? null : expiry.copy(); + dst.manufacturingDate = manufacturingDate == null ? null : manufacturingDate.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof InventoryReportInventoryListingItemsComponent)) + return false; + InventoryReportInventoryListingItemsComponent o = (InventoryReportInventoryListingItemsComponent) other_; + return compareDeep(category, o.category, true) && compareDeep(quantity, o.quantity, true) && compareDeep(item, o.item, true) + && compareDeep(lot, o.lot, true) && compareDeep(serial, o.serial, true) && compareDeep(expiry, o.expiry, true) + && compareDeep(manufacturingDate, o.manufacturingDate, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof InventoryReportInventoryListingItemsComponent)) + return false; + InventoryReportInventoryListingItemsComponent o = (InventoryReportInventoryListingItemsComponent) other_; + return compareValues(lot, o.lot, true) && compareValues(serial, o.serial, true) && compareValues(expiry, o.expiry, true) + && compareValues(manufacturingDate, o.manufacturingDate, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(category, quantity, item + , lot, serial, expiry, manufacturingDate); + } + + public String fhirType() { + return "InventoryReport.inventoryListing.items"; + + } + + } + + /** + * Identifiers for the InventoryReport. + */ + @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Identifiers for the report", formalDefinition="Identifiers for the InventoryReport." ) + protected List identifier; + + /** + * The status of the inventory check or notification - whether this is draft (e.g. the report is still pending some updates) or active. + */ + @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) + @Description(shortDefinition="draft | requested | active | entered-in-error", formalDefinition="The status of the inventory check or notification - whether this is draft (e.g. the report is still pending some updates) or active." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/inventoryreport-status") + protected Enumeration status; + + /** + * Whether the report is about the current inventory count (snapshot) or a differential change in inventory (change). + */ + @Child(name = "countType", type = {CodeType.class}, order=2, min=1, max=1, modifier=true, summary=true) + @Description(shortDefinition="snapshot | difference", formalDefinition="Whether the report is about the current inventory count (snapshot) or a differential change in inventory (change)." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/inventoryreport-counttype") + protected Enumeration countType; + + /** + * What type of operation is being performed - addition or subtraction. + */ + @Child(name = "operationType", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="addition | subtraction", formalDefinition="What type of operation is being performed - addition or subtraction." ) + protected CodeableConcept operationType; + + /** + * The reason for this count - regular count, ad-hoc count, new arrivals, etc. + */ + @Child(name = "operationTypeReason", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="The reason for this count - regular count, ad-hoc count, new arrivals, etc.", formalDefinition="The reason for this count - regular count, ad-hoc count, new arrivals, etc." ) + protected CodeableConcept operationTypeReason; + + /** + * When the report has been submitted. + */ + @Child(name = "reportedDateTime", type = {DateTimeType.class}, order=5, min=1, max=1, modifier=false, summary=true) + @Description(shortDefinition="When the report has been submitted", formalDefinition="When the report has been submitted." ) + protected DateTimeType reportedDateTime; + + /** + * Who submits the report. + */ + @Child(name = "reporter", type = {Practitioner.class, Patient.class, RelatedPerson.class, Device.class}, order=6, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Who submits the report", formalDefinition="Who submits the report." ) + protected Reference reporter; + + /** + * The period the report refers to. + */ + @Child(name = "reportingPeriod", type = {Period.class}, order=7, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The period the report refers to", formalDefinition="The period the report refers to." ) + protected Period reportingPeriod; + + /** + * An inventory listing section (grouped by any of the attributes). + */ + @Child(name = "inventoryListing", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="An inventory listing section (grouped by any of the attributes)", formalDefinition="An inventory listing section (grouped by any of the attributes)." ) + protected List inventoryListing; + + /** + * A note associated with the InventoryReport. + */ + @Child(name = "note", type = {Annotation.class}, order=9, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="A note associated with the InventoryReport", formalDefinition="A note associated with the InventoryReport." ) + protected Annotation note; + + private static final long serialVersionUID = 1491752269L; + + /** + * Constructor + */ + public InventoryReport() { + super(); + } + + /** + * Constructor + */ + public InventoryReport(InventoryReportStatus status, InventoryCountType countType, Date reportedDateTime) { + super(); + this.setStatus(status); + this.setCountType(countType); + this.setReportedDateTime(reportedDateTime); + } + + /** + * @return {@link #identifier} (Identifiers for the InventoryReport.) + */ + public List getIdentifier() { + if (this.identifier == null) + this.identifier = new ArrayList(); + return this.identifier; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public InventoryReport setIdentifier(List theIdentifier) { + this.identifier = theIdentifier; + return this; + } + + public boolean hasIdentifier() { + if (this.identifier == null) + return false; + for (Identifier item : this.identifier) + if (!item.isEmpty()) + return true; + return false; + } + + public Identifier addIdentifier() { //3 + Identifier t = new Identifier(); + if (this.identifier == null) + this.identifier = new ArrayList(); + this.identifier.add(t); + return t; + } + + public InventoryReport addIdentifier(Identifier t) { //3 + if (t == null) + return this; + if (this.identifier == null) + this.identifier = new ArrayList(); + this.identifier.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} + */ + public Identifier getIdentifierFirstRep() { + if (getIdentifier().isEmpty()) { + addIdentifier(); + } + return getIdentifier().get(0); + } + + /** + * @return {@link #status} (The status of the inventory check or notification - whether this is draft (e.g. the report is still pending some updates) or active.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value + */ + public Enumeration getStatusElement() { + if (this.status == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReport.status"); + else if (Configuration.doAutoCreate()) + this.status = new Enumeration(new InventoryReportStatusEnumFactory()); // bb + return this.status; + } + + public boolean hasStatusElement() { + return this.status != null && !this.status.isEmpty(); + } + + public boolean hasStatus() { + return this.status != null && !this.status.isEmpty(); + } + + /** + * @param value {@link #status} (The status of the inventory check or notification - whether this is draft (e.g. the report is still pending some updates) or active.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value + */ + public InventoryReport setStatusElement(Enumeration value) { + this.status = value; + return this; + } + + /** + * @return The status of the inventory check or notification - whether this is draft (e.g. the report is still pending some updates) or active. + */ + public InventoryReportStatus getStatus() { + return this.status == null ? null : this.status.getValue(); + } + + /** + * @param value The status of the inventory check or notification - whether this is draft (e.g. the report is still pending some updates) or active. + */ + public InventoryReport setStatus(InventoryReportStatus value) { + if (this.status == null) + this.status = new Enumeration(new InventoryReportStatusEnumFactory()); + this.status.setValue(value); + return this; + } + + /** + * @return {@link #countType} (Whether the report is about the current inventory count (snapshot) or a differential change in inventory (change).). This is the underlying object with id, value and extensions. The accessor "getCountType" gives direct access to the value + */ + public Enumeration getCountTypeElement() { + if (this.countType == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReport.countType"); + else if (Configuration.doAutoCreate()) + this.countType = new Enumeration(new InventoryCountTypeEnumFactory()); // bb + return this.countType; + } + + public boolean hasCountTypeElement() { + return this.countType != null && !this.countType.isEmpty(); + } + + public boolean hasCountType() { + return this.countType != null && !this.countType.isEmpty(); + } + + /** + * @param value {@link #countType} (Whether the report is about the current inventory count (snapshot) or a differential change in inventory (change).). This is the underlying object with id, value and extensions. The accessor "getCountType" gives direct access to the value + */ + public InventoryReport setCountTypeElement(Enumeration value) { + this.countType = value; + return this; + } + + /** + * @return Whether the report is about the current inventory count (snapshot) or a differential change in inventory (change). + */ + public InventoryCountType getCountType() { + return this.countType == null ? null : this.countType.getValue(); + } + + /** + * @param value Whether the report is about the current inventory count (snapshot) or a differential change in inventory (change). + */ + public InventoryReport setCountType(InventoryCountType value) { + if (this.countType == null) + this.countType = new Enumeration(new InventoryCountTypeEnumFactory()); + this.countType.setValue(value); + return this; + } + + /** + * @return {@link #operationType} (What type of operation is being performed - addition or subtraction.) + */ + public CodeableConcept getOperationType() { + if (this.operationType == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReport.operationType"); + else if (Configuration.doAutoCreate()) + this.operationType = new CodeableConcept(); // cc + return this.operationType; + } + + public boolean hasOperationType() { + return this.operationType != null && !this.operationType.isEmpty(); + } + + /** + * @param value {@link #operationType} (What type of operation is being performed - addition or subtraction.) + */ + public InventoryReport setOperationType(CodeableConcept value) { + this.operationType = value; + return this; + } + + /** + * @return {@link #operationTypeReason} (The reason for this count - regular count, ad-hoc count, new arrivals, etc.) + */ + public CodeableConcept getOperationTypeReason() { + if (this.operationTypeReason == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReport.operationTypeReason"); + else if (Configuration.doAutoCreate()) + this.operationTypeReason = new CodeableConcept(); // cc + return this.operationTypeReason; + } + + public boolean hasOperationTypeReason() { + return this.operationTypeReason != null && !this.operationTypeReason.isEmpty(); + } + + /** + * @param value {@link #operationTypeReason} (The reason for this count - regular count, ad-hoc count, new arrivals, etc.) + */ + public InventoryReport setOperationTypeReason(CodeableConcept value) { + this.operationTypeReason = value; + return this; + } + + /** + * @return {@link #reportedDateTime} (When the report has been submitted.). This is the underlying object with id, value and extensions. The accessor "getReportedDateTime" gives direct access to the value + */ + public DateTimeType getReportedDateTimeElement() { + if (this.reportedDateTime == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReport.reportedDateTime"); + else if (Configuration.doAutoCreate()) + this.reportedDateTime = new DateTimeType(); // bb + return this.reportedDateTime; + } + + public boolean hasReportedDateTimeElement() { + return this.reportedDateTime != null && !this.reportedDateTime.isEmpty(); + } + + public boolean hasReportedDateTime() { + return this.reportedDateTime != null && !this.reportedDateTime.isEmpty(); + } + + /** + * @param value {@link #reportedDateTime} (When the report has been submitted.). This is the underlying object with id, value and extensions. The accessor "getReportedDateTime" gives direct access to the value + */ + public InventoryReport setReportedDateTimeElement(DateTimeType value) { + this.reportedDateTime = value; + return this; + } + + /** + * @return When the report has been submitted. + */ + public Date getReportedDateTime() { + return this.reportedDateTime == null ? null : this.reportedDateTime.getValue(); + } + + /** + * @param value When the report has been submitted. + */ + public InventoryReport setReportedDateTime(Date value) { + if (this.reportedDateTime == null) + this.reportedDateTime = new DateTimeType(); + this.reportedDateTime.setValue(value); + return this; + } + + /** + * @return {@link #reporter} (Who submits the report.) + */ + public Reference getReporter() { + if (this.reporter == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReport.reporter"); + else if (Configuration.doAutoCreate()) + this.reporter = new Reference(); // cc + return this.reporter; + } + + public boolean hasReporter() { + return this.reporter != null && !this.reporter.isEmpty(); + } + + /** + * @param value {@link #reporter} (Who submits the report.) + */ + public InventoryReport setReporter(Reference value) { + this.reporter = value; + return this; + } + + /** + * @return {@link #reportingPeriod} (The period the report refers to.) + */ + public Period getReportingPeriod() { + if (this.reportingPeriod == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReport.reportingPeriod"); + else if (Configuration.doAutoCreate()) + this.reportingPeriod = new Period(); // cc + return this.reportingPeriod; + } + + public boolean hasReportingPeriod() { + return this.reportingPeriod != null && !this.reportingPeriod.isEmpty(); + } + + /** + * @param value {@link #reportingPeriod} (The period the report refers to.) + */ + public InventoryReport setReportingPeriod(Period value) { + this.reportingPeriod = value; + return this; + } + + /** + * @return {@link #inventoryListing} (An inventory listing section (grouped by any of the attributes).) + */ + public List getInventoryListing() { + if (this.inventoryListing == null) + this.inventoryListing = new ArrayList(); + return this.inventoryListing; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public InventoryReport setInventoryListing(List theInventoryListing) { + this.inventoryListing = theInventoryListing; + return this; + } + + public boolean hasInventoryListing() { + if (this.inventoryListing == null) + return false; + for (InventoryReportInventoryListingComponent item : this.inventoryListing) + if (!item.isEmpty()) + return true; + return false; + } + + public InventoryReportInventoryListingComponent addInventoryListing() { //3 + InventoryReportInventoryListingComponent t = new InventoryReportInventoryListingComponent(); + if (this.inventoryListing == null) + this.inventoryListing = new ArrayList(); + this.inventoryListing.add(t); + return t; + } + + public InventoryReport addInventoryListing(InventoryReportInventoryListingComponent t) { //3 + if (t == null) + return this; + if (this.inventoryListing == null) + this.inventoryListing = new ArrayList(); + this.inventoryListing.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #inventoryListing}, creating it if it does not already exist {3} + */ + public InventoryReportInventoryListingComponent getInventoryListingFirstRep() { + if (getInventoryListing().isEmpty()) { + addInventoryListing(); + } + return getInventoryListing().get(0); + } + + /** + * @return {@link #note} (A note associated with the InventoryReport.) + */ + public Annotation getNote() { + if (this.note == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create InventoryReport.note"); + else if (Configuration.doAutoCreate()) + this.note = new Annotation(); // cc + return this.note; + } + + public boolean hasNote() { + return this.note != null && !this.note.isEmpty(); + } + + /** + * @param value {@link #note} (A note associated with the InventoryReport.) + */ + public InventoryReport setNote(Annotation value) { + this.note = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("identifier", "Identifier", "Identifiers for the InventoryReport.", 0, java.lang.Integer.MAX_VALUE, identifier)); + children.add(new Property("status", "code", "The status of the inventory check or notification - whether this is draft (e.g. the report is still pending some updates) or active.", 0, 1, status)); + children.add(new Property("countType", "code", "Whether the report is about the current inventory count (snapshot) or a differential change in inventory (change).", 0, 1, countType)); + children.add(new Property("operationType", "CodeableConcept", "What type of operation is being performed - addition or subtraction.", 0, 1, operationType)); + children.add(new Property("operationTypeReason", "CodeableConcept", "The reason for this count - regular count, ad-hoc count, new arrivals, etc.", 0, 1, operationTypeReason)); + children.add(new Property("reportedDateTime", "dateTime", "When the report has been submitted.", 0, 1, reportedDateTime)); + children.add(new Property("reporter", "Reference(Practitioner|Patient|RelatedPerson|Device)", "Who submits the report.", 0, 1, reporter)); + children.add(new Property("reportingPeriod", "Period", "The period the report refers to.", 0, 1, reportingPeriod)); + children.add(new Property("inventoryListing", "", "An inventory listing section (grouped by any of the attributes).", 0, java.lang.Integer.MAX_VALUE, inventoryListing)); + children.add(new Property("note", "Annotation", "A note associated with the InventoryReport.", 0, 1, note)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifiers for the InventoryReport.", 0, java.lang.Integer.MAX_VALUE, identifier); + case -892481550: /*status*/ return new Property("status", "code", "The status of the inventory check or notification - whether this is draft (e.g. the report is still pending some updates) or active.", 0, 1, status); + case 1351759081: /*countType*/ return new Property("countType", "code", "Whether the report is about the current inventory count (snapshot) or a differential change in inventory (change).", 0, 1, countType); + case 91999553: /*operationType*/ return new Property("operationType", "CodeableConcept", "What type of operation is being performed - addition or subtraction.", 0, 1, operationType); + case 449681125: /*operationTypeReason*/ return new Property("operationTypeReason", "CodeableConcept", "The reason for this count - regular count, ad-hoc count, new arrivals, etc.", 0, 1, operationTypeReason); + case -1048250994: /*reportedDateTime*/ return new Property("reportedDateTime", "dateTime", "When the report has been submitted.", 0, 1, reportedDateTime); + case -427039519: /*reporter*/ return new Property("reporter", "Reference(Practitioner|Patient|RelatedPerson|Device)", "Who submits the report.", 0, 1, reporter); + case 409685391: /*reportingPeriod*/ return new Property("reportingPeriod", "Period", "The period the report refers to.", 0, 1, reportingPeriod); + case -1764804216: /*inventoryListing*/ return new Property("inventoryListing", "", "An inventory listing section (grouped by any of the attributes).", 0, java.lang.Integer.MAX_VALUE, inventoryListing); + case 3387378: /*note*/ return new Property("note", "Annotation", "A note associated with the InventoryReport.", 0, 1, note); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier + case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration + case 1351759081: /*countType*/ return this.countType == null ? new Base[0] : new Base[] {this.countType}; // Enumeration + case 91999553: /*operationType*/ return this.operationType == null ? new Base[0] : new Base[] {this.operationType}; // CodeableConcept + case 449681125: /*operationTypeReason*/ return this.operationTypeReason == null ? new Base[0] : new Base[] {this.operationTypeReason}; // CodeableConcept + case -1048250994: /*reportedDateTime*/ return this.reportedDateTime == null ? new Base[0] : new Base[] {this.reportedDateTime}; // DateTimeType + case -427039519: /*reporter*/ return this.reporter == null ? new Base[0] : new Base[] {this.reporter}; // Reference + case 409685391: /*reportingPeriod*/ return this.reportingPeriod == null ? new Base[0] : new Base[] {this.reportingPeriod}; // Period + case -1764804216: /*inventoryListing*/ return this.inventoryListing == null ? new Base[0] : this.inventoryListing.toArray(new Base[this.inventoryListing.size()]); // InventoryReportInventoryListingComponent + case 3387378: /*note*/ return this.note == null ? new Base[0] : new Base[] {this.note}; // Annotation + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -1618432855: // identifier + this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier + return value; + case -892481550: // status + value = new InventoryReportStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + return value; + case 1351759081: // countType + value = new InventoryCountTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.countType = (Enumeration) value; // Enumeration + return value; + case 91999553: // operationType + this.operationType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 449681125: // operationTypeReason + this.operationTypeReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -1048250994: // reportedDateTime + this.reportedDateTime = TypeConvertor.castToDateTime(value); // DateTimeType + return value; + case -427039519: // reporter + this.reporter = TypeConvertor.castToReference(value); // Reference + return value; + case 409685391: // reportingPeriod + this.reportingPeriod = TypeConvertor.castToPeriod(value); // Period + return value; + case -1764804216: // inventoryListing + this.getInventoryListing().add((InventoryReportInventoryListingComponent) value); // InventoryReportInventoryListingComponent + return value; + case 3387378: // note + this.note = TypeConvertor.castToAnnotation(value); // Annotation + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("identifier")) { + this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); + } else if (name.equals("status")) { + value = new InventoryReportStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("countType")) { + value = new InventoryCountTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.countType = (Enumeration) value; // Enumeration + } else if (name.equals("operationType")) { + this.operationType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("operationTypeReason")) { + this.operationTypeReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("reportedDateTime")) { + this.reportedDateTime = TypeConvertor.castToDateTime(value); // DateTimeType + } else if (name.equals("reporter")) { + this.reporter = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("reportingPeriod")) { + this.reportingPeriod = TypeConvertor.castToPeriod(value); // Period + } else if (name.equals("inventoryListing")) { + this.getInventoryListing().add((InventoryReportInventoryListingComponent) value); + } else if (name.equals("note")) { + this.note = TypeConvertor.castToAnnotation(value); // Annotation + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1618432855: return addIdentifier(); + case -892481550: return getStatusElement(); + case 1351759081: return getCountTypeElement(); + case 91999553: return getOperationType(); + case 449681125: return getOperationTypeReason(); + case -1048250994: return getReportedDateTimeElement(); + case -427039519: return getReporter(); + case 409685391: return getReportingPeriod(); + case -1764804216: return addInventoryListing(); + case 3387378: return getNote(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1618432855: /*identifier*/ return new String[] {"Identifier"}; + case -892481550: /*status*/ return new String[] {"code"}; + case 1351759081: /*countType*/ return new String[] {"code"}; + case 91999553: /*operationType*/ return new String[] {"CodeableConcept"}; + case 449681125: /*operationTypeReason*/ return new String[] {"CodeableConcept"}; + case -1048250994: /*reportedDateTime*/ return new String[] {"dateTime"}; + case -427039519: /*reporter*/ return new String[] {"Reference"}; + case 409685391: /*reportingPeriod*/ return new String[] {"Period"}; + case -1764804216: /*inventoryListing*/ return new String[] {}; + case 3387378: /*note*/ return new String[] {"Annotation"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("identifier")) { + return addIdentifier(); + } + else if (name.equals("status")) { + throw new FHIRException("Cannot call addChild on a primitive type InventoryReport.status"); + } + else if (name.equals("countType")) { + throw new FHIRException("Cannot call addChild on a primitive type InventoryReport.countType"); + } + else if (name.equals("operationType")) { + this.operationType = new CodeableConcept(); + return this.operationType; + } + else if (name.equals("operationTypeReason")) { + this.operationTypeReason = new CodeableConcept(); + return this.operationTypeReason; + } + else if (name.equals("reportedDateTime")) { + throw new FHIRException("Cannot call addChild on a primitive type InventoryReport.reportedDateTime"); + } + else if (name.equals("reporter")) { + this.reporter = new Reference(); + return this.reporter; + } + else if (name.equals("reportingPeriod")) { + this.reportingPeriod = new Period(); + return this.reportingPeriod; + } + else if (name.equals("inventoryListing")) { + return addInventoryListing(); + } + else if (name.equals("note")) { + this.note = new Annotation(); + return this.note; + } + else + return super.addChild(name); + } + + public String fhirType() { + return "InventoryReport"; + + } + + public InventoryReport copy() { + InventoryReport dst = new InventoryReport(); + copyValues(dst); + return dst; + } + + public void copyValues(InventoryReport dst) { + super.copyValues(dst); + if (identifier != null) { + dst.identifier = new ArrayList(); + for (Identifier i : identifier) + dst.identifier.add(i.copy()); + }; + dst.status = status == null ? null : status.copy(); + dst.countType = countType == null ? null : countType.copy(); + dst.operationType = operationType == null ? null : operationType.copy(); + dst.operationTypeReason = operationTypeReason == null ? null : operationTypeReason.copy(); + dst.reportedDateTime = reportedDateTime == null ? null : reportedDateTime.copy(); + dst.reporter = reporter == null ? null : reporter.copy(); + dst.reportingPeriod = reportingPeriod == null ? null : reportingPeriod.copy(); + if (inventoryListing != null) { + dst.inventoryListing = new ArrayList(); + for (InventoryReportInventoryListingComponent i : inventoryListing) + dst.inventoryListing.add(i.copy()); + }; + dst.note = note == null ? null : note.copy(); + } + + protected InventoryReport typedCopy() { + return copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof InventoryReport)) + return false; + InventoryReport o = (InventoryReport) other_; + return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(countType, o.countType, true) + && compareDeep(operationType, o.operationType, true) && compareDeep(operationTypeReason, o.operationTypeReason, true) + && compareDeep(reportedDateTime, o.reportedDateTime, true) && compareDeep(reporter, o.reporter, true) + && compareDeep(reportingPeriod, o.reportingPeriod, true) && compareDeep(inventoryListing, o.inventoryListing, true) + && compareDeep(note, o.note, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof InventoryReport)) + return false; + InventoryReport o = (InventoryReport) other_; + return compareValues(status, o.status, true) && compareValues(countType, o.countType, true) && compareValues(reportedDateTime, o.reportedDateTime, true) + ; + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, countType + , operationType, operationTypeReason, reportedDateTime, reporter, reportingPeriod + , inventoryListing, note); + } + + @Override + public ResourceType getResourceType() { + return ResourceType.InventoryReport; + } + + +} + diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Invoice.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Invoice.java index df1badbfb..1a3a3d1f3 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Invoice.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Invoice.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -104,7 +104,6 @@ public class Invoice extends DomainResource { case BALANCED: return "balanced"; case CANCELLED: return "cancelled"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -115,7 +114,6 @@ public class Invoice extends DomainResource { case BALANCED: return "http://hl7.org/fhir/invoice-status"; case CANCELLED: return "http://hl7.org/fhir/invoice-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/invoice-status"; - case NULL: return null; default: return "?"; } } @@ -126,7 +124,6 @@ public class Invoice extends DomainResource { case BALANCED: return "the invoice has been balaced / completely paid."; case CANCELLED: return "the invoice was cancelled."; case ENTEREDINERROR: return "the invoice was determined as entered in error before it was issued."; - case NULL: return null; default: return "?"; } } @@ -137,7 +134,6 @@ public class Invoice extends DomainResource { case BALANCED: return "balanced"; case CANCELLED: return "cancelled"; case ENTEREDINERROR: return "entered in error"; - case NULL: return null; default: return "?"; } } @@ -2332,26 +2328,6 @@ public class Invoice extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_ISSUER = new ca.uhn.fhir.model.api.Include("Invoice:issuer").toLocked(); - /** - * Search parameter: participant-role - *

- * Description: Type of involvement in creation of this Invoice
- * Type: token
- * Path: Invoice.participant.role
- *

- */ - @SearchParamDefinition(name="participant-role", path="Invoice.participant.role", description="Type of involvement in creation of this Invoice", type="token" ) - public static final String SP_PARTICIPANT_ROLE = "participant-role"; - /** - * Fluent Client search parameter constant for participant-role - *

- * Description: Type of involvement in creation of this Invoice
- * Type: token
- * Path: Invoice.participant.role
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam PARTICIPANT_ROLE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PARTICIPANT_ROLE); - /** * Search parameter: participant *

@@ -2378,6 +2354,26 @@ public class Invoice extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_PARTICIPANT = new ca.uhn.fhir.model.api.Include("Invoice:participant").toLocked(); + /** + * Search parameter: participant-role + *

+ * Description: Type of involvement in creation of this Invoice
+ * Type: token
+ * Path: Invoice.participant.role
+ *

+ */ + @SearchParamDefinition(name="participant-role", path="Invoice.participant.role", description="Type of involvement in creation of this Invoice", type="token" ) + public static final String SP_PARTICIPANT_ROLE = "participant-role"; + /** + * Fluent Client search parameter constant for participant-role + *

+ * Description: Type of involvement in creation of this Invoice
+ * Type: token
+ * Path: Invoice.participant.role
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam PARTICIPANT_ROLE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PARTICIPANT_ROLE); + /** * Search parameter: patient *

@@ -2386,7 +2382,7 @@ public class Invoice extends DomainResource { * Path: Invoice.subject.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="Invoice.subject.where(resolve() is Patient)", description="Recipient(s) of goods and services", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } ) + @SearchParamDefinition(name="patient", path="Invoice.subject.where(resolve() is Patient)", description="Recipient(s) of goods and services", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Library.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Library.java index dddba7285..a98dd3a0a 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Library.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Library.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -2440,7 +2440,7 @@ public class Library extends MetadataResource { * Path: Library.relatedArtifact.where(type='composed-of').resource
*

*/ - @SearchParamDefinition(name="composed-of", path="Library.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="composed-of", path="Library.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_COMPOSED_OF = "composed-of"; /** * Fluent Client search parameter constant for composed-of @@ -2478,6 +2478,26 @@ public class Library extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTENT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTENT_TYPE); + /** + * Search parameter: context + *

+ * Description: A use context assigned to the library
+ * Type: token
+ * Path: (Library.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(Library.useContext.value as CodeableConcept)", description="A use context assigned to the library", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: A use context assigned to the library
+ * Type: token
+ * Path: (Library.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -2498,46 +2518,6 @@ public class Library extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the library
- * Type: composite
- * Path: Library.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="Library.useContext", description="A use context type and quantity- or range-based value assigned to the library", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the library
- * Type: composite
- * Path: Library.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: A use context type and value assigned to the library
- * Type: composite
- * Path: Library.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="Library.useContext", description="A use context type and value assigned to the library", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: A use context type and value assigned to the library
- * Type: composite
- * Path: Library.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -2558,26 +2538,6 @@ public class Library extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: A use context assigned to the library
- * Type: token
- * Path: (Library.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(Library.useContext.value as CodeableConcept)", description="A use context assigned to the library", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: A use context assigned to the library
- * Type: token
- * Path: (Library.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -2606,7 +2566,7 @@ public class Library extends MetadataResource { * Path: Library.relatedArtifact.where(type='depends-on').resource
*

*/ - @SearchParamDefinition(name="depends-on", path="Library.relatedArtifact.where(type='depends-on').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="depends-on", path="Library.relatedArtifact.where(type='depends-on').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_DEPENDS_ON = "depends-on"; /** * Fluent Client search parameter constant for depends-on @@ -2632,7 +2592,7 @@ public class Library extends MetadataResource { * Path: Library.relatedArtifact.where(type='derived-from').resource
*

*/ - @SearchParamDefinition(name="derived-from", path="Library.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="derived-from", path="Library.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_DERIVED_FROM = "derived-from"; /** * Fluent Client search parameter constant for derived-from @@ -2758,7 +2718,7 @@ public class Library extends MetadataResource { * Path: Library.relatedArtifact.where(type='predecessor').resource
*

*/ - @SearchParamDefinition(name="predecessor", path="Library.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="predecessor", path="Library.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PREDECESSOR = "predecessor"; /** * Fluent Client search parameter constant for predecessor @@ -2824,7 +2784,7 @@ public class Library extends MetadataResource { * Path: Library.relatedArtifact.where(type='successor').resource
*

*/ - @SearchParamDefinition(name="successor", path="Library.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="successor", path="Library.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_SUCCESSOR = "successor"; /** * Fluent Client search parameter constant for successor @@ -2942,6 +2902,46 @@ public class Library extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the library
+ * Type: composite
+ * Path: Library.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="Library.useContext", description="A use context type and quantity- or range-based value assigned to the library", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the library
+ * Type: composite
+ * Path: Library.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: A use context type and value assigned to the library
+ * Type: composite
+ * Path: Library.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="Library.useContext", description="A use context type and value assigned to the library", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: A use context type and value assigned to the library
+ * Type: composite
+ * Path: Library.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Linkage.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Linkage.java index cbaf399d3..a715b9df7 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Linkage.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Linkage.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -89,7 +89,6 @@ public class Linkage extends DomainResource { case SOURCE: return "source"; case ALTERNATE: return "alternate"; case HISTORICAL: return "historical"; - case NULL: return null; default: return "?"; } } @@ -98,7 +97,6 @@ public class Linkage extends DomainResource { case SOURCE: return "http://hl7.org/fhir/linkage-type"; case ALTERNATE: return "http://hl7.org/fhir/linkage-type"; case HISTORICAL: return "http://hl7.org/fhir/linkage-type"; - case NULL: return null; default: return "?"; } } @@ -107,7 +105,6 @@ public class Linkage extends DomainResource { case SOURCE: return "The resource represents the \"source of truth\" (from the perspective of this Linkage resource) for the underlying event/condition/etc."; case ALTERNATE: return "The resource represents an alternative view of the underlying event/condition/etc. The resource may still be actively maintained, even though it is not considered to be the source of truth."; case HISTORICAL: return "The resource represents an obsolete record of the underlying event/condition/etc. It is not expected to be actively maintained."; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class Linkage extends DomainResource { case SOURCE: return "Source of Truth"; case ALTERNATE: return "Alternate Record"; case HISTORICAL: return "Historical/Obsolete Record"; - case NULL: return null; default: return "?"; } } @@ -745,7 +741,7 @@ public class Linkage extends DomainResource { * Path: Linkage.item.resource
*

*/ - @SearchParamDefinition(name="item", path="Linkage.item.resource", description="Matches on any item in the Linkage", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="item", path="Linkage.item.resource", description="Matches on any item in the Linkage", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_ITEM = "item"; /** * Fluent Client search parameter constant for item @@ -771,7 +767,7 @@ public class Linkage extends DomainResource { * Path: Linkage.item.resource
*

*/ - @SearchParamDefinition(name="source", path="Linkage.item.resource", description="Matches on any item in the Linkage with a type of 'source'", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="source", path="Linkage.item.resource", description="Matches on any item in the Linkage with a type of 'source'", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_SOURCE = "source"; /** * Fluent Client search parameter constant for source diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ListResource.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ListResource.java index e21916b68..f0ebabd1e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ListResource.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ListResource.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -89,7 +89,6 @@ public class ListResource extends DomainResource { case CURRENT: return "current"; case RETIRED: return "retired"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -98,7 +97,6 @@ public class ListResource extends DomainResource { case CURRENT: return "http://hl7.org/fhir/list-status"; case RETIRED: return "http://hl7.org/fhir/list-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/list-status"; - case NULL: return null; default: return "?"; } } @@ -107,7 +105,6 @@ public class ListResource extends DomainResource { case CURRENT: return "The list is considered to be an active part of the patient's record."; case RETIRED: return "The list is \"old\" and should no longer be considered accurate or relevant."; case ENTEREDINERROR: return "The list was never accurate. It is retained for medico-legal purposes only."; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class ListResource extends DomainResource { case CURRENT: return "Current"; case RETIRED: return "Retired"; case ENTEREDINERROR: return "Entered In Error"; - case NULL: return null; default: return "?"; } } @@ -1434,6 +1430,348 @@ public class ListResource extends DomainResource { return ResourceType.List; } + /** + * Search parameter: code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + + /** + * Search parameter: date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) + public static final String SP_DATE = "date"; + /** + * Fluent Client search parameter constant for date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "List:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("List:patient").toLocked(); + + /** + * Search parameter: encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", target={Encounter.class } ) + public static final String SP_ENCOUNTER = "encounter"; + /** + * Fluent Client search parameter constant for encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "List:encounter". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("List:encounter").toLocked(); + /** * Search parameter: empty-reason *

@@ -1462,7 +1800,7 @@ public class ListResource extends DomainResource { * Path: List.entry.item
*

*/ - @SearchParamDefinition(name="item", path="List.entry.item", description="Actual entry", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="item", path="List.entry.item", description="Actual entry", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_ITEM = "item"; /** * Fluent Client search parameter constant for item @@ -1592,348 +1930,6 @@ public class ListResource extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE); - /** - * Search parameter: code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) - public static final String SP_CODE = "code"; - /** - * Fluent Client search parameter constant for code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); - - /** - * Search parameter: date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) - public static final String SP_DATE = "date"; - /** - * Fluent Client search parameter constant for date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); - - /** - * Search parameter: encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", target={Encounter.class } ) - public static final String SP_ENCOUNTER = "encounter"; - /** - * Fluent Client search parameter constant for encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "List:encounter". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("List:encounter").toLocked(); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "List:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("List:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Location.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Location.java index b86ee1a9f..84adac5e7 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Location.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Location.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -83,7 +83,6 @@ public class Location extends DomainResource { switch (this) { case INSTANCE: return "instance"; case KIND: return "kind"; - case NULL: return null; default: return "?"; } } @@ -91,7 +90,6 @@ public class Location extends DomainResource { switch (this) { case INSTANCE: return "http://hl7.org/fhir/location-mode"; case KIND: return "http://hl7.org/fhir/location-mode"; - case NULL: return null; default: return "?"; } } @@ -99,7 +97,6 @@ public class Location extends DomainResource { switch (this) { case INSTANCE: return "The Location resource represents a specific instance of a location (e.g. Operating Theatre 1A)."; case KIND: return "The Location represents a class of locations (e.g. Any Operating Theatre) although this class of locations could be constrained within a specific boundary (such as organization, or parent location, address etc.)."; - case NULL: return null; default: return "?"; } } @@ -107,7 +104,6 @@ public class Location extends DomainResource { switch (this) { case INSTANCE: return "Instance"; case KIND: return "Kind"; - case NULL: return null; default: return "?"; } } @@ -186,7 +182,6 @@ public class Location extends DomainResource { case ACTIVE: return "active"; case SUSPENDED: return "suspended"; case INACTIVE: return "inactive"; - case NULL: return null; default: return "?"; } } @@ -195,7 +190,6 @@ public class Location extends DomainResource { case ACTIVE: return "http://hl7.org/fhir/location-status"; case SUSPENDED: return "http://hl7.org/fhir/location-status"; case INACTIVE: return "http://hl7.org/fhir/location-status"; - case NULL: return null; default: return "?"; } } @@ -204,7 +198,6 @@ public class Location extends DomainResource { case ACTIVE: return "The location is operational."; case SUSPENDED: return "The location is temporarily closed."; case INACTIVE: return "The location is no longer used."; - case NULL: return null; default: return "?"; } } @@ -213,7 +206,6 @@ public class Location extends DomainResource { case ACTIVE: return "Active"; case SUSPENDED: return "Suspended"; case INACTIVE: return "Inactive"; - case NULL: return null; default: return "?"; } } @@ -2282,6 +2274,26 @@ public class Location extends DomainResource { return ResourceType.Location; } + /** + * Search parameter: address + *

+ * Description: A (part of the) address of the location
+ * Type: string
+ * Path: Location.address
+ *

+ */ + @SearchParamDefinition(name="address", path="Location.address", description="A (part of the) address of the location", type="string" ) + public static final String SP_ADDRESS = "address"; + /** + * Fluent Client search parameter constant for address + *

+ * Description: A (part of the) address of the location
+ * Type: string
+ * Path: Location.address
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); + /** * Search parameter: address-city *

@@ -2382,26 +2394,6 @@ public class Location extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ADDRESS_USE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ADDRESS_USE); - /** - * Search parameter: address - *

- * Description: A (part of the) address of the location
- * Type: string
- * Path: Location.address
- *

- */ - @SearchParamDefinition(name="address", path="Location.address", description="A (part of the) address of the location", type="string" ) - public static final String SP_ADDRESS = "address"; - /** - * Fluent Client search parameter constant for address - *

- * Description: A (part of the) address of the location
- * Type: string
- * Path: Location.address
- *

- */ - public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); - /** * Search parameter: endpoint *

diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ManufacturedItemDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ManufacturedItemDefinition.java index 5c0a03762..e1781149f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ManufacturedItemDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ManufacturedItemDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -387,9 +387,9 @@ public class ManufacturedItemDefinition extends DomainResource { /** * The ingredients that make up this manufactured item. */ - @Child(name = "ingredient", type = {Ingredient.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "ingredient", type = {CodeableReference.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="The ingredients that make up this manufactured item", formalDefinition="The ingredients that make up this manufactured item." ) - protected List ingredient; + protected List ingredient; /** * General characteristics of this item. @@ -398,7 +398,7 @@ public class ManufacturedItemDefinition extends DomainResource { @Description(shortDefinition="General characteristics of this item", formalDefinition="General characteristics of this item." ) protected List property; - private static final long serialVersionUID = 604232519L; + private static final long serialVersionUID = -863803904L; /** * Constructor @@ -572,16 +572,16 @@ public class ManufacturedItemDefinition extends DomainResource { /** * @return {@link #ingredient} (The ingredients that make up this manufactured item.) */ - public List getIngredient() { + public List getIngredient() { if (this.ingredient == null) - this.ingredient = new ArrayList(); + this.ingredient = new ArrayList(); return this.ingredient; } /** * @return Returns a reference to this for easy method chaining */ - public ManufacturedItemDefinition setIngredient(List theIngredient) { + public ManufacturedItemDefinition setIngredient(List theIngredient) { this.ingredient = theIngredient; return this; } @@ -589,25 +589,25 @@ public class ManufacturedItemDefinition extends DomainResource { public boolean hasIngredient() { if (this.ingredient == null) return false; - for (Reference item : this.ingredient) + for (CodeableReference item : this.ingredient) if (!item.isEmpty()) return true; return false; } - public Reference addIngredient() { //3 - Reference t = new Reference(); + public CodeableReference addIngredient() { //3 + CodeableReference t = new CodeableReference(); if (this.ingredient == null) - this.ingredient = new ArrayList(); + this.ingredient = new ArrayList(); this.ingredient.add(t); return t; } - public ManufacturedItemDefinition addIngredient(Reference t) { //3 + public ManufacturedItemDefinition addIngredient(CodeableReference t) { //3 if (t == null) return this; if (this.ingredient == null) - this.ingredient = new ArrayList(); + this.ingredient = new ArrayList(); this.ingredient.add(t); return this; } @@ -615,7 +615,7 @@ public class ManufacturedItemDefinition extends DomainResource { /** * @return The first repetition of repeating field {@link #ingredient}, creating it if it does not already exist {3} */ - public Reference getIngredientFirstRep() { + public CodeableReference getIngredientFirstRep() { if (getIngredient().isEmpty()) { addIngredient(); } @@ -681,7 +681,7 @@ public class ManufacturedItemDefinition extends DomainResource { children.add(new Property("manufacturedDoseForm", "CodeableConcept", "Dose form as manufactured and before any transformation into the pharmaceutical product.", 0, 1, manufacturedDoseForm)); children.add(new Property("unitOfPresentation", "CodeableConcept", "The “real world” units in which the quantity of the manufactured item is described.", 0, 1, unitOfPresentation)); children.add(new Property("manufacturer", "Reference(Organization)", "Manufacturer of the item (Note that this should be named \"manufacturer\" but it currently causes technical issues).", 0, java.lang.Integer.MAX_VALUE, manufacturer)); - children.add(new Property("ingredient", "Reference(Ingredient)", "The ingredients that make up this manufactured item.", 0, java.lang.Integer.MAX_VALUE, ingredient)); + children.add(new Property("ingredient", "CodeableReference(Ingredient)", "The ingredients that make up this manufactured item.", 0, java.lang.Integer.MAX_VALUE, ingredient)); children.add(new Property("property", "", "General characteristics of this item.", 0, java.lang.Integer.MAX_VALUE, property)); } @@ -692,7 +692,7 @@ public class ManufacturedItemDefinition extends DomainResource { case -1451400348: /*manufacturedDoseForm*/ return new Property("manufacturedDoseForm", "CodeableConcept", "Dose form as manufactured and before any transformation into the pharmaceutical product.", 0, 1, manufacturedDoseForm); case -1427765963: /*unitOfPresentation*/ return new Property("unitOfPresentation", "CodeableConcept", "The “real world” units in which the quantity of the manufactured item is described.", 0, 1, unitOfPresentation); case -1969347631: /*manufacturer*/ return new Property("manufacturer", "Reference(Organization)", "Manufacturer of the item (Note that this should be named \"manufacturer\" but it currently causes technical issues).", 0, java.lang.Integer.MAX_VALUE, manufacturer); - case -206409263: /*ingredient*/ return new Property("ingredient", "Reference(Ingredient)", "The ingredients that make up this manufactured item.", 0, java.lang.Integer.MAX_VALUE, ingredient); + case -206409263: /*ingredient*/ return new Property("ingredient", "CodeableReference(Ingredient)", "The ingredients that make up this manufactured item.", 0, java.lang.Integer.MAX_VALUE, ingredient); case -993141291: /*property*/ return new Property("property", "", "General characteristics of this item.", 0, java.lang.Integer.MAX_VALUE, property); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -706,7 +706,7 @@ public class ManufacturedItemDefinition extends DomainResource { case -1451400348: /*manufacturedDoseForm*/ return this.manufacturedDoseForm == null ? new Base[0] : new Base[] {this.manufacturedDoseForm}; // CodeableConcept case -1427765963: /*unitOfPresentation*/ return this.unitOfPresentation == null ? new Base[0] : new Base[] {this.unitOfPresentation}; // CodeableConcept case -1969347631: /*manufacturer*/ return this.manufacturer == null ? new Base[0] : this.manufacturer.toArray(new Base[this.manufacturer.size()]); // Reference - case -206409263: /*ingredient*/ return this.ingredient == null ? new Base[0] : this.ingredient.toArray(new Base[this.ingredient.size()]); // Reference + case -206409263: /*ingredient*/ return this.ingredient == null ? new Base[0] : this.ingredient.toArray(new Base[this.ingredient.size()]); // CodeableReference case -993141291: /*property*/ return this.property == null ? new Base[0] : this.property.toArray(new Base[this.property.size()]); // ManufacturedItemDefinitionPropertyComponent default: return super.getProperty(hash, name, checkValid); } @@ -729,7 +729,7 @@ public class ManufacturedItemDefinition extends DomainResource { this.getManufacturer().add(TypeConvertor.castToReference(value)); // Reference return value; case -206409263: // ingredient - this.getIngredient().add(TypeConvertor.castToReference(value)); // Reference + this.getIngredient().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference return value; case -993141291: // property this.getProperty().add((ManufacturedItemDefinitionPropertyComponent) value); // ManufacturedItemDefinitionPropertyComponent @@ -750,7 +750,7 @@ public class ManufacturedItemDefinition extends DomainResource { } else if (name.equals("manufacturer")) { this.getManufacturer().add(TypeConvertor.castToReference(value)); } else if (name.equals("ingredient")) { - this.getIngredient().add(TypeConvertor.castToReference(value)); + this.getIngredient().add(TypeConvertor.castToCodeableReference(value)); } else if (name.equals("property")) { this.getProperty().add((ManufacturedItemDefinitionPropertyComponent) value); } else @@ -779,7 +779,7 @@ public class ManufacturedItemDefinition extends DomainResource { case -1451400348: /*manufacturedDoseForm*/ return new String[] {"CodeableConcept"}; case -1427765963: /*unitOfPresentation*/ return new String[] {"CodeableConcept"}; case -1969347631: /*manufacturer*/ return new String[] {"Reference"}; - case -206409263: /*ingredient*/ return new String[] {"Reference"}; + case -206409263: /*ingredient*/ return new String[] {"CodeableReference"}; case -993141291: /*property*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -838,8 +838,8 @@ public class ManufacturedItemDefinition extends DomainResource { dst.manufacturer.add(i.copy()); }; if (ingredient != null) { - dst.ingredient = new ArrayList(); - for (Reference i : ingredient) + dst.ingredient = new ArrayList(); + for (CodeableReference i : ingredient) dst.ingredient.add(i.copy()); }; if (property != null) { @@ -928,19 +928,19 @@ public class ManufacturedItemDefinition extends DomainResource { /** * Search parameter: ingredient *

- * Description: The ingredients that make up this manufactured item
+ * Description: Reference to a resource (by instance)
* Type: reference
- * Path: ManufacturedItemDefinition.ingredient
+ * Path: ManufacturedItemDefinition.ingredient.reference
*

*/ - @SearchParamDefinition(name="ingredient", path="ManufacturedItemDefinition.ingredient", description="The ingredients that make up this manufactured item", type="reference", target={Ingredient.class } ) + @SearchParamDefinition(name="ingredient", path="ManufacturedItemDefinition.ingredient.reference", description="Reference to a resource (by instance)", type="reference" ) public static final String SP_INGREDIENT = "ingredient"; /** * Fluent Client search parameter constant for ingredient *

- * Description: The ingredients that make up this manufactured item
+ * Description: Reference to a resource (by instance)
* Type: reference
- * Path: ManufacturedItemDefinition.ingredient
+ * Path: ManufacturedItemDefinition.ingredient.reference
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INGREDIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INGREDIENT); @@ -951,6 +951,26 @@ public class ManufacturedItemDefinition extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_INGREDIENT = new ca.uhn.fhir.model.api.Include("ManufacturedItemDefinition:ingredient").toLocked(); + /** + * Search parameter: ingredient-code + *

+ * Description: Reference to a concept (by class)
+ * Type: token
+ * Path: ManufacturedItemDefinition.ingredient.concept
+ *

+ */ + @SearchParamDefinition(name="ingredient-code", path="ManufacturedItemDefinition.ingredient.concept", description="Reference to a concept (by class)", type="token" ) + public static final String SP_INGREDIENT_CODE = "ingredient-code"; + /** + * Fluent Client search parameter constant for ingredient-code + *

+ * Description: Reference to a concept (by class)
+ * Type: token
+ * Path: ManufacturedItemDefinition.ingredient.concept
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam INGREDIENT_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_INGREDIENT_CODE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MarketingStatus.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MarketingStatus.java index 267bacbfa..80e9ed95e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MarketingStatus.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MarketingStatus.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Measure.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Measure.java index 4de7fcc4b..a6771a9d4 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Measure.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Measure.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -60,6 +60,7 @@ public class Measure extends MetadataResource { */ @Child(name = "code", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Meaning of the group", formalDefinition="Indicates a meaning for the group. This can be as simple as a unique identifier, or it can establish meaning in a broader context by drawing from a terminology, allowing groups to be correlated across measures." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-group-example") protected CodeableConcept code; /** @@ -69,21 +70,61 @@ public class Measure extends MetadataResource { @Description(shortDefinition="Summary description", formalDefinition="The human readable description of this population group." ) protected StringType description; + /** + * Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization. + */ + @Child(name = "type", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="process | outcome | structure | patient-reported-outcome | composite", formalDefinition="Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-type") + protected List type; + + /** + * The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters. + */ + @Child(name = "basis", type = {CodeType.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Population basis", formalDefinition="The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/all-types") + protected Enumeration basis; + + /** + * Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented. + */ + @Child(name = "scoring", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="proportion | ratio | continuous-variable | cohort", formalDefinition="Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-scoring") + protected CodeableConcept scoring; + + /** + * Defines the expected units of measure for the measure score. This element SHOULD be specified as a UCUM unit. + */ + @Child(name = "scoringUnit", type = {CodeableConcept.class}, order=6, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="What units?", formalDefinition="Defines the expected units of measure for the measure score. This element SHOULD be specified as a UCUM unit." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-scoring-unit") + protected CodeableConcept scoringUnit; + + /** + * Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is within a range). + */ + @Child(name = "improvementNotation", type = {CodeableConcept.class}, order=7, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="increase | decrease", formalDefinition="Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is within a range)." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-improvement-notation") + protected CodeableConcept improvementNotation; + /** * A population criteria for the measure. */ - @Child(name = "population", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "population", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Population criteria", formalDefinition="A population criteria for the measure." ) protected List population; /** * The stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library or a valid FHIR Resource Path. */ - @Child(name = "stratifier", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "stratifier", type = {}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Stratifier criteria for the measure", formalDefinition="The stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library or a valid FHIR Resource Path." ) protected List stratifier; - private static final long serialVersionUID = -1797567579L; + private static final long serialVersionUID = 693617289L; /** * Constructor @@ -165,6 +206,180 @@ public class Measure extends MetadataResource { return this; } + /** + * @return {@link #type} (Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization.) + */ + public List getType() { + if (this.type == null) + this.type = new ArrayList(); + return this.type; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public MeasureGroupComponent setType(List theType) { + this.type = theType; + return this; + } + + public boolean hasType() { + if (this.type == null) + return false; + for (CodeableConcept item : this.type) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addType() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.type == null) + this.type = new ArrayList(); + this.type.add(t); + return t; + } + + public MeasureGroupComponent addType(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.type == null) + this.type = new ArrayList(); + this.type.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #type}, creating it if it does not already exist {3} + */ + public CodeableConcept getTypeFirstRep() { + if (getType().isEmpty()) { + addType(); + } + return getType().get(0); + } + + /** + * @return {@link #basis} (The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters.). This is the underlying object with id, value and extensions. The accessor "getBasis" gives direct access to the value + */ + public Enumeration getBasisElement() { + if (this.basis == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create MeasureGroupComponent.basis"); + else if (Configuration.doAutoCreate()) + this.basis = new Enumeration(new FHIRAllTypesEnumFactory()); // bb + return this.basis; + } + + public boolean hasBasisElement() { + return this.basis != null && !this.basis.isEmpty(); + } + + public boolean hasBasis() { + return this.basis != null && !this.basis.isEmpty(); + } + + /** + * @param value {@link #basis} (The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters.). This is the underlying object with id, value and extensions. The accessor "getBasis" gives direct access to the value + */ + public MeasureGroupComponent setBasisElement(Enumeration value) { + this.basis = value; + return this; + } + + /** + * @return The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters. + */ + public FHIRAllTypes getBasis() { + return this.basis == null ? null : this.basis.getValue(); + } + + /** + * @param value The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters. + */ + public MeasureGroupComponent setBasis(FHIRAllTypes value) { + if (value == null) + this.basis = null; + else { + if (this.basis == null) + this.basis = new Enumeration(new FHIRAllTypesEnumFactory()); + this.basis.setValue(value); + } + return this; + } + + /** + * @return {@link #scoring} (Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented.) + */ + public CodeableConcept getScoring() { + if (this.scoring == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create MeasureGroupComponent.scoring"); + else if (Configuration.doAutoCreate()) + this.scoring = new CodeableConcept(); // cc + return this.scoring; + } + + public boolean hasScoring() { + return this.scoring != null && !this.scoring.isEmpty(); + } + + /** + * @param value {@link #scoring} (Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented.) + */ + public MeasureGroupComponent setScoring(CodeableConcept value) { + this.scoring = value; + return this; + } + + /** + * @return {@link #scoringUnit} (Defines the expected units of measure for the measure score. This element SHOULD be specified as a UCUM unit.) + */ + public CodeableConcept getScoringUnit() { + if (this.scoringUnit == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create MeasureGroupComponent.scoringUnit"); + else if (Configuration.doAutoCreate()) + this.scoringUnit = new CodeableConcept(); // cc + return this.scoringUnit; + } + + public boolean hasScoringUnit() { + return this.scoringUnit != null && !this.scoringUnit.isEmpty(); + } + + /** + * @param value {@link #scoringUnit} (Defines the expected units of measure for the measure score. This element SHOULD be specified as a UCUM unit.) + */ + public MeasureGroupComponent setScoringUnit(CodeableConcept value) { + this.scoringUnit = value; + return this; + } + + /** + * @return {@link #improvementNotation} (Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is within a range).) + */ + public CodeableConcept getImprovementNotation() { + if (this.improvementNotation == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create MeasureGroupComponent.improvementNotation"); + else if (Configuration.doAutoCreate()) + this.improvementNotation = new CodeableConcept(); // cc + return this.improvementNotation; + } + + public boolean hasImprovementNotation() { + return this.improvementNotation != null && !this.improvementNotation.isEmpty(); + } + + /** + * @param value {@link #improvementNotation} (Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is within a range).) + */ + public MeasureGroupComponent setImprovementNotation(CodeableConcept value) { + this.improvementNotation = value; + return this; + } + /** * @return {@link #population} (A population criteria for the measure.) */ @@ -275,6 +490,11 @@ public class Measure extends MetadataResource { super.listChildren(children); children.add(new Property("code", "CodeableConcept", "Indicates a meaning for the group. This can be as simple as a unique identifier, or it can establish meaning in a broader context by drawing from a terminology, allowing groups to be correlated across measures.", 0, 1, code)); children.add(new Property("description", "string", "The human readable description of this population group.", 0, 1, description)); + children.add(new Property("type", "CodeableConcept", "Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization.", 0, java.lang.Integer.MAX_VALUE, type)); + children.add(new Property("basis", "code", "The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters.", 0, 1, basis)); + children.add(new Property("scoring", "CodeableConcept", "Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented.", 0, 1, scoring)); + children.add(new Property("scoringUnit", "CodeableConcept", "Defines the expected units of measure for the measure score. This element SHOULD be specified as a UCUM unit.", 0, 1, scoringUnit)); + children.add(new Property("improvementNotation", "CodeableConcept", "Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is within a range).", 0, 1, improvementNotation)); children.add(new Property("population", "", "A population criteria for the measure.", 0, java.lang.Integer.MAX_VALUE, population)); children.add(new Property("stratifier", "", "The stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library or a valid FHIR Resource Path.", 0, java.lang.Integer.MAX_VALUE, stratifier)); } @@ -284,6 +504,11 @@ public class Measure extends MetadataResource { switch (_hash) { case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Indicates a meaning for the group. This can be as simple as a unique identifier, or it can establish meaning in a broader context by drawing from a terminology, allowing groups to be correlated across measures.", 0, 1, code); case -1724546052: /*description*/ return new Property("description", "string", "The human readable description of this population group.", 0, 1, description); + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization.", 0, java.lang.Integer.MAX_VALUE, type); + case 93508670: /*basis*/ return new Property("basis", "code", "The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters.", 0, 1, basis); + case 1924005583: /*scoring*/ return new Property("scoring", "CodeableConcept", "Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented.", 0, 1, scoring); + case 1527532787: /*scoringUnit*/ return new Property("scoringUnit", "CodeableConcept", "Defines the expected units of measure for the measure score. This element SHOULD be specified as a UCUM unit.", 0, 1, scoringUnit); + case -2085456136: /*improvementNotation*/ return new Property("improvementNotation", "CodeableConcept", "Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is within a range).", 0, 1, improvementNotation); case -2023558323: /*population*/ return new Property("population", "", "A population criteria for the measure.", 0, java.lang.Integer.MAX_VALUE, population); case 90983669: /*stratifier*/ return new Property("stratifier", "", "The stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library or a valid FHIR Resource Path.", 0, java.lang.Integer.MAX_VALUE, stratifier); default: return super.getNamedProperty(_hash, _name, _checkValid); @@ -296,6 +521,11 @@ public class Measure extends MetadataResource { switch (hash) { case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType + case 3575610: /*type*/ return this.type == null ? new Base[0] : this.type.toArray(new Base[this.type.size()]); // CodeableConcept + case 93508670: /*basis*/ return this.basis == null ? new Base[0] : new Base[] {this.basis}; // Enumeration + case 1924005583: /*scoring*/ return this.scoring == null ? new Base[0] : new Base[] {this.scoring}; // CodeableConcept + case 1527532787: /*scoringUnit*/ return this.scoringUnit == null ? new Base[0] : new Base[] {this.scoringUnit}; // CodeableConcept + case -2085456136: /*improvementNotation*/ return this.improvementNotation == null ? new Base[0] : new Base[] {this.improvementNotation}; // CodeableConcept case -2023558323: /*population*/ return this.population == null ? new Base[0] : this.population.toArray(new Base[this.population.size()]); // MeasureGroupPopulationComponent case 90983669: /*stratifier*/ return this.stratifier == null ? new Base[0] : this.stratifier.toArray(new Base[this.stratifier.size()]); // MeasureGroupStratifierComponent default: return super.getProperty(hash, name, checkValid); @@ -312,6 +542,22 @@ public class Measure extends MetadataResource { case -1724546052: // description this.description = TypeConvertor.castToString(value); // StringType return value; + case 3575610: // type + this.getType().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + case 93508670: // basis + value = new FHIRAllTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.basis = (Enumeration) value; // Enumeration + return value; + case 1924005583: // scoring + this.scoring = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 1527532787: // scoringUnit + this.scoringUnit = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -2085456136: // improvementNotation + this.improvementNotation = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; case -2023558323: // population this.getPopulation().add((MeasureGroupPopulationComponent) value); // MeasureGroupPopulationComponent return value; @@ -329,6 +575,17 @@ public class Measure extends MetadataResource { this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("description")) { this.description = TypeConvertor.castToString(value); // StringType + } else if (name.equals("type")) { + this.getType().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("basis")) { + value = new FHIRAllTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.basis = (Enumeration) value; // Enumeration + } else if (name.equals("scoring")) { + this.scoring = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("scoringUnit")) { + this.scoringUnit = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("improvementNotation")) { + this.improvementNotation = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("population")) { this.getPopulation().add((MeasureGroupPopulationComponent) value); } else if (name.equals("stratifier")) { @@ -343,6 +600,11 @@ public class Measure extends MetadataResource { switch (hash) { case 3059181: return getCode(); case -1724546052: return getDescriptionElement(); + case 3575610: return addType(); + case 93508670: return getBasisElement(); + case 1924005583: return getScoring(); + case 1527532787: return getScoringUnit(); + case -2085456136: return getImprovementNotation(); case -2023558323: return addPopulation(); case 90983669: return addStratifier(); default: return super.makeProperty(hash, name); @@ -355,6 +617,11 @@ public class Measure extends MetadataResource { switch (hash) { case 3059181: /*code*/ return new String[] {"CodeableConcept"}; case -1724546052: /*description*/ return new String[] {"string"}; + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case 93508670: /*basis*/ return new String[] {"code"}; + case 1924005583: /*scoring*/ return new String[] {"CodeableConcept"}; + case 1527532787: /*scoringUnit*/ return new String[] {"CodeableConcept"}; + case -2085456136: /*improvementNotation*/ return new String[] {"CodeableConcept"}; case -2023558323: /*population*/ return new String[] {}; case 90983669: /*stratifier*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); @@ -371,6 +638,24 @@ public class Measure extends MetadataResource { else if (name.equals("description")) { throw new FHIRException("Cannot call addChild on a primitive type Measure.group.description"); } + else if (name.equals("type")) { + return addType(); + } + else if (name.equals("basis")) { + throw new FHIRException("Cannot call addChild on a primitive type Measure.group.basis"); + } + else if (name.equals("scoring")) { + this.scoring = new CodeableConcept(); + return this.scoring; + } + else if (name.equals("scoringUnit")) { + this.scoringUnit = new CodeableConcept(); + return this.scoringUnit; + } + else if (name.equals("improvementNotation")) { + this.improvementNotation = new CodeableConcept(); + return this.improvementNotation; + } else if (name.equals("population")) { return addPopulation(); } @@ -391,6 +676,15 @@ public class Measure extends MetadataResource { super.copyValues(dst); dst.code = code == null ? null : code.copy(); dst.description = description == null ? null : description.copy(); + if (type != null) { + dst.type = new ArrayList(); + for (CodeableConcept i : type) + dst.type.add(i.copy()); + }; + dst.basis = basis == null ? null : basis.copy(); + dst.scoring = scoring == null ? null : scoring.copy(); + dst.scoringUnit = scoringUnit == null ? null : scoringUnit.copy(); + dst.improvementNotation = improvementNotation == null ? null : improvementNotation.copy(); if (population != null) { dst.population = new ArrayList(); for (MeasureGroupPopulationComponent i : population) @@ -410,7 +704,9 @@ public class Measure extends MetadataResource { if (!(other_ instanceof MeasureGroupComponent)) return false; MeasureGroupComponent o = (MeasureGroupComponent) other_; - return compareDeep(code, o.code, true) && compareDeep(description, o.description, true) && compareDeep(population, o.population, true) + return compareDeep(code, o.code, true) && compareDeep(description, o.description, true) && compareDeep(type, o.type, true) + && compareDeep(basis, o.basis, true) && compareDeep(scoring, o.scoring, true) && compareDeep(scoringUnit, o.scoringUnit, true) + && compareDeep(improvementNotation, o.improvementNotation, true) && compareDeep(population, o.population, true) && compareDeep(stratifier, o.stratifier, true); } @@ -421,12 +717,12 @@ public class Measure extends MetadataResource { if (!(other_ instanceof MeasureGroupComponent)) return false; MeasureGroupComponent o = (MeasureGroupComponent) other_; - return compareValues(description, o.description, true); + return compareValues(description, o.description, true) && compareValues(basis, o.basis, true); } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, description, population - , stratifier); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, description, type + , basis, scoring, scoringUnit, improvementNotation, population, stratifier); } public String fhirType() { @@ -460,7 +756,22 @@ public class Measure extends MetadataResource { @Description(shortDefinition="The criteria that defines this population", formalDefinition="An expression that specifies the criteria for the population, typically the name of an expression in a library." ) protected Expression criteria; - private static final long serialVersionUID = 2107514056L; + /** + * The id of a population element in this measure that provides the input for this population criteria. In most cases, the scoring structure of the measure implies specific relationships (e.g. the Numerator uses the Denominator as the source in a proportion scoring). In some cases, however, multiple possible choices exist and must be resolved explicitly. For example in a ratio measure with multiple initial populations, the denominator must specify which population should be used as the starting point. + */ + @Child(name = "inputPopulationId", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Which population", formalDefinition="The id of a population element in this measure that provides the input for this population criteria. In most cases, the scoring structure of the measure implies specific relationships (e.g. the Numerator uses the Denominator as the source in a proportion scoring). In some cases, however, multiple possible choices exist and must be resolved explicitly. For example in a ratio measure with multiple initial populations, the denominator must specify which population should be used as the starting point." ) + protected StringType inputPopulationId; + + /** + * Specifies which method should be used to aggregate measure observation values. For most scoring types, this is implied by scoring (e.g. a proportion measure counts members of the populations). For continuous variables, however, this information must be specified to ensure correct calculation. + */ + @Child(name = "aggregateMethod", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Aggregation method for a measure score (e.g. sum, average, median, minimum, maximum, count)", formalDefinition="Specifies which method should be used to aggregate measure observation values. For most scoring types, this is implied by scoring (e.g. a proportion measure counts members of the populations). For continuous variables, however, this information must be specified to ensure correct calculation." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-aggregate-method") + protected CodeableConcept aggregateMethod; + + private static final long serialVersionUID = 119326506L; /** * Constructor @@ -574,11 +885,86 @@ public class Measure extends MetadataResource { return this; } + /** + * @return {@link #inputPopulationId} (The id of a population element in this measure that provides the input for this population criteria. In most cases, the scoring structure of the measure implies specific relationships (e.g. the Numerator uses the Denominator as the source in a proportion scoring). In some cases, however, multiple possible choices exist and must be resolved explicitly. For example in a ratio measure with multiple initial populations, the denominator must specify which population should be used as the starting point.). This is the underlying object with id, value and extensions. The accessor "getInputPopulationId" gives direct access to the value + */ + public StringType getInputPopulationIdElement() { + if (this.inputPopulationId == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create MeasureGroupPopulationComponent.inputPopulationId"); + else if (Configuration.doAutoCreate()) + this.inputPopulationId = new StringType(); // bb + return this.inputPopulationId; + } + + public boolean hasInputPopulationIdElement() { + return this.inputPopulationId != null && !this.inputPopulationId.isEmpty(); + } + + public boolean hasInputPopulationId() { + return this.inputPopulationId != null && !this.inputPopulationId.isEmpty(); + } + + /** + * @param value {@link #inputPopulationId} (The id of a population element in this measure that provides the input for this population criteria. In most cases, the scoring structure of the measure implies specific relationships (e.g. the Numerator uses the Denominator as the source in a proportion scoring). In some cases, however, multiple possible choices exist and must be resolved explicitly. For example in a ratio measure with multiple initial populations, the denominator must specify which population should be used as the starting point.). This is the underlying object with id, value and extensions. The accessor "getInputPopulationId" gives direct access to the value + */ + public MeasureGroupPopulationComponent setInputPopulationIdElement(StringType value) { + this.inputPopulationId = value; + return this; + } + + /** + * @return The id of a population element in this measure that provides the input for this population criteria. In most cases, the scoring structure of the measure implies specific relationships (e.g. the Numerator uses the Denominator as the source in a proportion scoring). In some cases, however, multiple possible choices exist and must be resolved explicitly. For example in a ratio measure with multiple initial populations, the denominator must specify which population should be used as the starting point. + */ + public String getInputPopulationId() { + return this.inputPopulationId == null ? null : this.inputPopulationId.getValue(); + } + + /** + * @param value The id of a population element in this measure that provides the input for this population criteria. In most cases, the scoring structure of the measure implies specific relationships (e.g. the Numerator uses the Denominator as the source in a proportion scoring). In some cases, however, multiple possible choices exist and must be resolved explicitly. For example in a ratio measure with multiple initial populations, the denominator must specify which population should be used as the starting point. + */ + public MeasureGroupPopulationComponent setInputPopulationId(String value) { + if (Utilities.noString(value)) + this.inputPopulationId = null; + else { + if (this.inputPopulationId == null) + this.inputPopulationId = new StringType(); + this.inputPopulationId.setValue(value); + } + return this; + } + + /** + * @return {@link #aggregateMethod} (Specifies which method should be used to aggregate measure observation values. For most scoring types, this is implied by scoring (e.g. a proportion measure counts members of the populations). For continuous variables, however, this information must be specified to ensure correct calculation.) + */ + public CodeableConcept getAggregateMethod() { + if (this.aggregateMethod == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create MeasureGroupPopulationComponent.aggregateMethod"); + else if (Configuration.doAutoCreate()) + this.aggregateMethod = new CodeableConcept(); // cc + return this.aggregateMethod; + } + + public boolean hasAggregateMethod() { + return this.aggregateMethod != null && !this.aggregateMethod.isEmpty(); + } + + /** + * @param value {@link #aggregateMethod} (Specifies which method should be used to aggregate measure observation values. For most scoring types, this is implied by scoring (e.g. a proportion measure counts members of the populations). For continuous variables, however, this information must be specified to ensure correct calculation.) + */ + public MeasureGroupPopulationComponent setAggregateMethod(CodeableConcept value) { + this.aggregateMethod = value; + return this; + } + protected void listChildren(List children) { super.listChildren(children); children.add(new Property("code", "CodeableConcept", "The type of population criteria.", 0, 1, code)); children.add(new Property("description", "string", "The human readable description of this population criteria.", 0, 1, description)); children.add(new Property("criteria", "Expression", "An expression that specifies the criteria for the population, typically the name of an expression in a library.", 0, 1, criteria)); + children.add(new Property("inputPopulationId", "string", "The id of a population element in this measure that provides the input for this population criteria. In most cases, the scoring structure of the measure implies specific relationships (e.g. the Numerator uses the Denominator as the source in a proportion scoring). In some cases, however, multiple possible choices exist and must be resolved explicitly. For example in a ratio measure with multiple initial populations, the denominator must specify which population should be used as the starting point.", 0, 1, inputPopulationId)); + children.add(new Property("aggregateMethod", "CodeableConcept", "Specifies which method should be used to aggregate measure observation values. For most scoring types, this is implied by scoring (e.g. a proportion measure counts members of the populations). For continuous variables, however, this information must be specified to ensure correct calculation.", 0, 1, aggregateMethod)); } @Override @@ -587,6 +973,8 @@ public class Measure extends MetadataResource { case 3059181: /*code*/ return new Property("code", "CodeableConcept", "The type of population criteria.", 0, 1, code); case -1724546052: /*description*/ return new Property("description", "string", "The human readable description of this population criteria.", 0, 1, description); case 1952046943: /*criteria*/ return new Property("criteria", "Expression", "An expression that specifies the criteria for the population, typically the name of an expression in a library.", 0, 1, criteria); + case -464344526: /*inputPopulationId*/ return new Property("inputPopulationId", "string", "The id of a population element in this measure that provides the input for this population criteria. In most cases, the scoring structure of the measure implies specific relationships (e.g. the Numerator uses the Denominator as the source in a proportion scoring). In some cases, however, multiple possible choices exist and must be resolved explicitly. For example in a ratio measure with multiple initial populations, the denominator must specify which population should be used as the starting point.", 0, 1, inputPopulationId); + case -1036416: /*aggregateMethod*/ return new Property("aggregateMethod", "CodeableConcept", "Specifies which method should be used to aggregate measure observation values. For most scoring types, this is implied by scoring (e.g. a proportion measure counts members of the populations). For continuous variables, however, this information must be specified to ensure correct calculation.", 0, 1, aggregateMethod); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -598,6 +986,8 @@ public class Measure extends MetadataResource { case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType case 1952046943: /*criteria*/ return this.criteria == null ? new Base[0] : new Base[] {this.criteria}; // Expression + case -464344526: /*inputPopulationId*/ return this.inputPopulationId == null ? new Base[0] : new Base[] {this.inputPopulationId}; // StringType + case -1036416: /*aggregateMethod*/ return this.aggregateMethod == null ? new Base[0] : new Base[] {this.aggregateMethod}; // CodeableConcept default: return super.getProperty(hash, name, checkValid); } @@ -615,6 +1005,12 @@ public class Measure extends MetadataResource { case 1952046943: // criteria this.criteria = TypeConvertor.castToExpression(value); // Expression return value; + case -464344526: // inputPopulationId + this.inputPopulationId = TypeConvertor.castToString(value); // StringType + return value; + case -1036416: // aggregateMethod + this.aggregateMethod = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; default: return super.setProperty(hash, name, value); } @@ -628,6 +1024,10 @@ public class Measure extends MetadataResource { this.description = TypeConvertor.castToString(value); // StringType } else if (name.equals("criteria")) { this.criteria = TypeConvertor.castToExpression(value); // Expression + } else if (name.equals("inputPopulationId")) { + this.inputPopulationId = TypeConvertor.castToString(value); // StringType + } else if (name.equals("aggregateMethod")) { + this.aggregateMethod = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else return super.setProperty(name, value); return value; @@ -639,6 +1039,8 @@ public class Measure extends MetadataResource { case 3059181: return getCode(); case -1724546052: return getDescriptionElement(); case 1952046943: return getCriteria(); + case -464344526: return getInputPopulationIdElement(); + case -1036416: return getAggregateMethod(); default: return super.makeProperty(hash, name); } @@ -650,6 +1052,8 @@ public class Measure extends MetadataResource { case 3059181: /*code*/ return new String[] {"CodeableConcept"}; case -1724546052: /*description*/ return new String[] {"string"}; case 1952046943: /*criteria*/ return new String[] {"Expression"}; + case -464344526: /*inputPopulationId*/ return new String[] {"string"}; + case -1036416: /*aggregateMethod*/ return new String[] {"CodeableConcept"}; default: return super.getTypesForProperty(hash, name); } @@ -668,6 +1072,13 @@ public class Measure extends MetadataResource { this.criteria = new Expression(); return this.criteria; } + else if (name.equals("inputPopulationId")) { + throw new FHIRException("Cannot call addChild on a primitive type Measure.group.population.inputPopulationId"); + } + else if (name.equals("aggregateMethod")) { + this.aggregateMethod = new CodeableConcept(); + return this.aggregateMethod; + } else return super.addChild(name); } @@ -683,6 +1094,8 @@ public class Measure extends MetadataResource { dst.code = code == null ? null : code.copy(); dst.description = description == null ? null : description.copy(); dst.criteria = criteria == null ? null : criteria.copy(); + dst.inputPopulationId = inputPopulationId == null ? null : inputPopulationId.copy(); + dst.aggregateMethod = aggregateMethod == null ? null : aggregateMethod.copy(); } @Override @@ -693,6 +1106,7 @@ public class Measure extends MetadataResource { return false; MeasureGroupPopulationComponent o = (MeasureGroupPopulationComponent) other_; return compareDeep(code, o.code, true) && compareDeep(description, o.description, true) && compareDeep(criteria, o.criteria, true) + && compareDeep(inputPopulationId, o.inputPopulationId, true) && compareDeep(aggregateMethod, o.aggregateMethod, true) ; } @@ -703,12 +1117,13 @@ public class Measure extends MetadataResource { if (!(other_ instanceof MeasureGroupPopulationComponent)) return false; MeasureGroupPopulationComponent o = (MeasureGroupPopulationComponent) other_; - return compareValues(description, o.description, true); + return compareValues(description, o.description, true) && compareValues(inputPopulationId, o.inputPopulationId, true) + ; } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, description, criteria - ); + , inputPopulationId, aggregateMethod); } public String fhirType() { @@ -725,6 +1140,7 @@ public class Measure extends MetadataResource { */ @Child(name = "code", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Meaning of the stratifier", formalDefinition="Indicates a meaning for the stratifier. This can be as simple as a unique identifier, or it can establish meaning in a broader context by drawing from a terminology, allowing stratifiers to be correlated across measures." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-stratifier-example") protected CodeableConcept code; /** @@ -1076,6 +1492,7 @@ public class Measure extends MetadataResource { */ @Child(name = "code", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Meaning of the stratifier component", formalDefinition="Indicates a meaning for the stratifier component. This can be as simple as a unique identifier, or it can establish meaning in a broader context by drawing from a terminology, allowing stratifiers to be correlated across measures." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-stratifier-example") protected CodeableConcept code; /** @@ -1357,6 +1774,7 @@ public class Measure extends MetadataResource { */ @Child(name = "code", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Meaning of the supplemental data", formalDefinition="Indicates a meaning for the supplemental data. This can be as simple as a unique identifier, or it can establish meaning in a broader context by drawing from a terminology, allowing supplemental data to be correlated across measures." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-supplemental-data-example") protected CodeableConcept code; /** @@ -1775,45 +2193,53 @@ public class Measure extends MetadataResource { @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subject-type") protected DataType subject; + /** + * The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters. + */ + @Child(name = "basis", type = {CodeType.class}, order=9, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Population basis", formalDefinition="The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/all-types") + protected Enumeration basis; + /** * The date (and optionally time) when the measure was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the measure changes. */ - @Child(name = "date", type = {DateTimeType.class}, order=9, min=0, max=1, modifier=false, summary=true) + @Child(name = "date", type = {DateTimeType.class}, order=10, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Date last changed", formalDefinition="The date (and optionally time) when the measure was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the measure changes." ) protected DateTimeType date; /** * The name of the organization or individual that published the measure. */ - @Child(name = "publisher", type = {StringType.class}, order=10, min=0, max=1, modifier=false, summary=true) + @Child(name = "publisher", type = {StringType.class}, order=11, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Name of the publisher (organization or individual)", formalDefinition="The name of the organization or individual that published the measure." ) protected StringType publisher; /** * Contact details to assist a user in finding and communicating with the publisher. */ - @Child(name = "contact", type = {ContactDetail.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "contact", type = {ContactDetail.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Contact details for the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." ) protected List contact; /** * A free text natural language description of the measure from a consumer's perspective. */ - @Child(name = "description", type = {MarkdownType.class}, order=12, min=0, max=1, modifier=false, summary=true) + @Child(name = "description", type = {MarkdownType.class}, order=13, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Natural language description of the measure", formalDefinition="A free text natural language description of the measure from a consumer's perspective." ) protected MarkdownType description; /** * The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate measure instances. */ - @Child(name = "useContext", type = {UsageContext.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "useContext", type = {UsageContext.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="The context that the content is intended to support", formalDefinition="The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate measure instances." ) protected List useContext; /** * A legal or geographic region in which the measure is intended to be used. */ - @Child(name = "jurisdiction", type = {CodeableConcept.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "jurisdiction", type = {CodeableConcept.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Intended jurisdiction for measure (if applicable)", formalDefinition="A legal or geographic region in which the measure is intended to be used." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/jurisdiction") protected List jurisdiction; @@ -1821,49 +2247,49 @@ public class Measure extends MetadataResource { /** * Explanation of why this measure is needed and why it has been designed as it has. */ - @Child(name = "purpose", type = {MarkdownType.class}, order=15, min=0, max=1, modifier=false, summary=false) + @Child(name = "purpose", type = {MarkdownType.class}, order=16, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Why this measure is defined", formalDefinition="Explanation of why this measure is needed and why it has been designed as it has." ) protected MarkdownType purpose; /** * A detailed description, from a clinical perspective, of how the measure is used. */ - @Child(name = "usage", type = {StringType.class}, order=16, min=0, max=1, modifier=false, summary=false) + @Child(name = "usage", type = {StringType.class}, order=17, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Describes the clinical usage of the measure", formalDefinition="A detailed description, from a clinical perspective, of how the measure is used." ) protected StringType usage; /** * A copyright statement relating to the measure and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the measure. */ - @Child(name = "copyright", type = {MarkdownType.class}, order=17, min=0, max=1, modifier=false, summary=false) + @Child(name = "copyright", type = {MarkdownType.class}, order=18, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the measure and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the measure." ) protected MarkdownType copyright; /** * The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage. */ - @Child(name = "approvalDate", type = {DateType.class}, order=18, min=0, max=1, modifier=false, summary=false) + @Child(name = "approvalDate", type = {DateType.class}, order=19, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="When the measure was approved by publisher", formalDefinition="The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage." ) protected DateType approvalDate; /** * The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date. */ - @Child(name = "lastReviewDate", type = {DateType.class}, order=19, min=0, max=1, modifier=false, summary=false) + @Child(name = "lastReviewDate", type = {DateType.class}, order=20, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="When the measure was last reviewed", formalDefinition="The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date." ) protected DateType lastReviewDate; /** * The period during which the measure content was or is planned to be in active use. */ - @Child(name = "effectivePeriod", type = {Period.class}, order=20, min=0, max=1, modifier=false, summary=true) + @Child(name = "effectivePeriod", type = {Period.class}, order=21, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="When the measure is expected to be used", formalDefinition="The period during which the measure content was or is planned to be in active use." ) protected Period effectivePeriod; /** * Descriptive topics related to the content of the measure. Topics provide a high-level categorization grouping types of measures that can be useful for filtering and searching. */ - @Child(name = "topic", type = {CodeableConcept.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "topic", type = {CodeableConcept.class}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="The category of the measure, such as Education, Treatment, Assessment, etc.", formalDefinition="Descriptive topics related to the content of the measure. Topics provide a high-level categorization grouping types of measures that can be useful for filtering and searching." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/definition-topic") protected List topic; @@ -1871,64 +2297,72 @@ public class Measure extends MetadataResource { /** * An individiual or organization primarily involved in the creation and maintenance of the content. */ - @Child(name = "author", type = {ContactDetail.class}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "author", type = {ContactDetail.class}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Who authored the content", formalDefinition="An individiual or organization primarily involved in the creation and maintenance of the content." ) protected List author; /** * An individual or organization primarily responsible for internal coherence of the content. */ - @Child(name = "editor", type = {ContactDetail.class}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "editor", type = {ContactDetail.class}, order=24, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Who edited the content", formalDefinition="An individual or organization primarily responsible for internal coherence of the content." ) protected List editor; /** * An individual or organization primarily responsible for review of some aspect of the content. */ - @Child(name = "reviewer", type = {ContactDetail.class}, order=24, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "reviewer", type = {ContactDetail.class}, order=25, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Who reviewed the content", formalDefinition="An individual or organization primarily responsible for review of some aspect of the content." ) protected List reviewer; /** * An individual or organization responsible for officially endorsing the content for use in some setting. */ - @Child(name = "endorser", type = {ContactDetail.class}, order=25, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "endorser", type = {ContactDetail.class}, order=26, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Who endorsed the content", formalDefinition="An individual or organization responsible for officially endorsing the content for use in some setting." ) protected List endorser; /** * Related artifacts such as additional documentation, justification, or bibliographic references. */ - @Child(name = "relatedArtifact", type = {RelatedArtifact.class}, order=26, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "relatedArtifact", type = {RelatedArtifact.class}, order=27, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Additional documentation, citations, etc.", formalDefinition="Related artifacts such as additional documentation, justification, or bibliographic references." ) protected List relatedArtifact; /** * A reference to a Library resource containing the formal logic used by the measure. */ - @Child(name = "library", type = {CanonicalType.class}, order=27, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "library", type = {CanonicalType.class}, order=28, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Logic used by the measure", formalDefinition="A reference to a Library resource containing the formal logic used by the measure." ) protected List library; /** * Notices and disclaimers regarding the use of the measure or related to intellectual property (such as code systems) referenced by the measure. */ - @Child(name = "disclaimer", type = {MarkdownType.class}, order=28, min=0, max=1, modifier=false, summary=true) + @Child(name = "disclaimer", type = {MarkdownType.class}, order=29, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Disclaimer for use of the measure or its referenced content", formalDefinition="Notices and disclaimers regarding the use of the measure or related to intellectual property (such as code systems) referenced by the measure." ) protected MarkdownType disclaimer; /** * Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented. */ - @Child(name = "scoring", type = {CodeableConcept.class}, order=29, min=0, max=1, modifier=false, summary=true) + @Child(name = "scoring", type = {CodeableConcept.class}, order=30, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="proportion | ratio | continuous-variable | cohort", formalDefinition="Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-scoring") protected CodeableConcept scoring; + /** + * Defines the expected units of measure for the measure score. This element SHOULD be specified as a UCUM unit. + */ + @Child(name = "scoringUnit", type = {CodeableConcept.class}, order=31, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="What units?", formalDefinition="Defines the expected units of measure for the measure score. This element SHOULD be specified as a UCUM unit." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-scoring-unit") + protected CodeableConcept scoringUnit; + /** * If this is a composite measure, the scoring method used to combine the component measures to determine the composite score. */ - @Child(name = "compositeScoring", type = {CodeableConcept.class}, order=30, min=0, max=1, modifier=false, summary=true) + @Child(name = "compositeScoring", type = {CodeableConcept.class}, order=32, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="opportunity | all-or-nothing | linear | weighted", formalDefinition="If this is a composite measure, the scoring method used to combine the component measures to determine the composite score." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/composite-measure-scoring") protected CodeableConcept compositeScoring; @@ -1936,7 +2370,7 @@ public class Measure extends MetadataResource { /** * Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization. */ - @Child(name = "type", type = {CodeableConcept.class}, order=31, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "type", type = {CodeableConcept.class}, order=33, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="process | outcome | structure | patient-reported-outcome | composite", formalDefinition="Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-type") protected List type; @@ -1944,35 +2378,35 @@ public class Measure extends MetadataResource { /** * A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results. */ - @Child(name = "riskAdjustment", type = {StringType.class}, order=32, min=0, max=1, modifier=false, summary=true) + @Child(name = "riskAdjustment", type = {StringType.class}, order=34, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="How risk adjustment is applied for this measure", formalDefinition="A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results." ) protected StringType riskAdjustment; /** * Describes how to combine the information calculated, based on logic in each of several populations, into one summarized result. */ - @Child(name = "rateAggregation", type = {StringType.class}, order=33, min=0, max=1, modifier=false, summary=true) + @Child(name = "rateAggregation", type = {StringType.class}, order=35, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="How is rate aggregation performed for this measure", formalDefinition="Describes how to combine the information calculated, based on logic in each of several populations, into one summarized result." ) protected StringType rateAggregation; /** * Provides a succinct statement of the need for the measure. Usually includes statements pertaining to importance criterion: impact, gap in care, and evidence. */ - @Child(name = "rationale", type = {MarkdownType.class}, order=34, min=0, max=1, modifier=false, summary=true) + @Child(name = "rationale", type = {MarkdownType.class}, order=36, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Detailed description of why the measure exists", formalDefinition="Provides a succinct statement of the need for the measure. Usually includes statements pertaining to importance criterion: impact, gap in care, and evidence." ) protected MarkdownType rationale; /** * Provides a summary of relevant clinical guidelines or other clinical recommendations supporting the measure. */ - @Child(name = "clinicalRecommendationStatement", type = {MarkdownType.class}, order=35, min=0, max=1, modifier=false, summary=true) + @Child(name = "clinicalRecommendationStatement", type = {MarkdownType.class}, order=37, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Summary of clinical guidelines", formalDefinition="Provides a summary of relevant clinical guidelines or other clinical recommendations supporting the measure." ) protected MarkdownType clinicalRecommendationStatement; /** * Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is within a range). */ - @Child(name = "improvementNotation", type = {CodeableConcept.class}, order=36, min=0, max=1, modifier=false, summary=true) + @Child(name = "improvementNotation", type = {CodeableConcept.class}, order=38, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="increase | decrease", formalDefinition="Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is within a range)." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-improvement-notation") protected CodeableConcept improvementNotation; @@ -1980,32 +2414,32 @@ public class Measure extends MetadataResource { /** * Provides a description of an individual term used within the measure. */ - @Child(name = "definition", type = {MarkdownType.class}, order=37, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "definition", type = {MarkdownType.class}, order=39, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Defined terms used in the measure documentation", formalDefinition="Provides a description of an individual term used within the measure." ) protected List definition; /** * Additional guidance for the measure including how it can be used in a clinical context, and the intent of the measure. */ - @Child(name = "guidance", type = {MarkdownType.class}, order=38, min=0, max=1, modifier=false, summary=true) + @Child(name = "guidance", type = {MarkdownType.class}, order=40, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Additional guidance for implementers", formalDefinition="Additional guidance for the measure including how it can be used in a clinical context, and the intent of the measure." ) protected MarkdownType guidance; /** * A group of population criteria for the measure. */ - @Child(name = "group", type = {}, order=39, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "group", type = {}, order=41, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Population criteria group", formalDefinition="A group of population criteria for the measure." ) protected List group; /** * The supplemental data criteria for the measure report, specified as either the name of a valid CQL expression within a referenced library, or a valid FHIR Resource Path. */ - @Child(name = "supplementalData", type = {}, order=40, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "supplementalData", type = {}, order=42, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="What other data should be reported with the measure", formalDefinition="The supplemental data criteria for the measure report, specified as either the name of a valid CQL expression within a referenced library, or a valid FHIR Resource Path." ) protected List supplementalData; - private static final long serialVersionUID = -994119782L; + private static final long serialVersionUID = -345540054L; /** * Constructor @@ -2461,6 +2895,55 @@ public class Measure extends MetadataResource { return this; } + /** + * @return {@link #basis} (The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters.). This is the underlying object with id, value and extensions. The accessor "getBasis" gives direct access to the value + */ + public Enumeration getBasisElement() { + if (this.basis == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Measure.basis"); + else if (Configuration.doAutoCreate()) + this.basis = new Enumeration(new FHIRAllTypesEnumFactory()); // bb + return this.basis; + } + + public boolean hasBasisElement() { + return this.basis != null && !this.basis.isEmpty(); + } + + public boolean hasBasis() { + return this.basis != null && !this.basis.isEmpty(); + } + + /** + * @param value {@link #basis} (The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters.). This is the underlying object with id, value and extensions. The accessor "getBasis" gives direct access to the value + */ + public Measure setBasisElement(Enumeration value) { + this.basis = value; + return this; + } + + /** + * @return The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters. + */ + public FHIRAllTypes getBasis() { + return this.basis == null ? null : this.basis.getValue(); + } + + /** + * @param value The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters. + */ + public Measure setBasis(FHIRAllTypes value) { + if (value == null) + this.basis = null; + else { + if (this.basis == null) + this.basis = new Enumeration(new FHIRAllTypesEnumFactory()); + this.basis.setValue(value); + } + return this; + } + /** * @return {@link #date} (The date (and optionally time) when the measure was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the measure changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value */ @@ -3488,6 +3971,30 @@ public class Measure extends MetadataResource { return this; } + /** + * @return {@link #scoringUnit} (Defines the expected units of measure for the measure score. This element SHOULD be specified as a UCUM unit.) + */ + public CodeableConcept getScoringUnit() { + if (this.scoringUnit == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Measure.scoringUnit"); + else if (Configuration.doAutoCreate()) + this.scoringUnit = new CodeableConcept(); // cc + return this.scoringUnit; + } + + public boolean hasScoringUnit() { + return this.scoringUnit != null && !this.scoringUnit.isEmpty(); + } + + /** + * @param value {@link #scoringUnit} (Defines the expected units of measure for the measure score. This element SHOULD be specified as a UCUM unit.) + */ + public Measure setScoringUnit(CodeableConcept value) { + this.scoringUnit = value; + return this; + } + /** * @return {@link #compositeScoring} (If this is a composite measure, the scoring method used to combine the component measures to determine the composite score.) */ @@ -4012,6 +4519,7 @@ public class Measure extends MetadataResource { children.add(new Property("status", "code", "The status of this measure. Enables tracking the life-cycle of the content.", 0, 1, status)); children.add(new Property("experimental", "boolean", "A Boolean value to indicate that this measure is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental)); children.add(new Property("subject[x]", "CodeableConcept|Reference(Group)", "The intended subjects for the measure. If this element is not provided, a Patient subject is assumed, but the subject of the measure can be anything.", 0, 1, subject)); + children.add(new Property("basis", "code", "The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters.", 0, 1, basis)); children.add(new Property("date", "dateTime", "The date (and optionally time) when the measure was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the measure changes.", 0, 1, date)); children.add(new Property("publisher", "string", "The name of the organization or individual that published the measure.", 0, 1, publisher)); children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact)); @@ -4033,6 +4541,7 @@ public class Measure extends MetadataResource { children.add(new Property("library", "canonical(Library)", "A reference to a Library resource containing the formal logic used by the measure.", 0, java.lang.Integer.MAX_VALUE, library)); children.add(new Property("disclaimer", "markdown", "Notices and disclaimers regarding the use of the measure or related to intellectual property (such as code systems) referenced by the measure.", 0, 1, disclaimer)); children.add(new Property("scoring", "CodeableConcept", "Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented.", 0, 1, scoring)); + children.add(new Property("scoringUnit", "CodeableConcept", "Defines the expected units of measure for the measure score. This element SHOULD be specified as a UCUM unit.", 0, 1, scoringUnit)); children.add(new Property("compositeScoring", "CodeableConcept", "If this is a composite measure, the scoring method used to combine the component measures to determine the composite score.", 0, 1, compositeScoring)); children.add(new Property("type", "CodeableConcept", "Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization.", 0, java.lang.Integer.MAX_VALUE, type)); children.add(new Property("riskAdjustment", "string", "A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results.", 0, 1, riskAdjustment)); @@ -4061,6 +4570,7 @@ public class Measure extends MetadataResource { case -1867885268: /*subject*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)", "The intended subjects for the measure. If this element is not provided, a Patient subject is assumed, but the subject of the measure can be anything.", 0, 1, subject); case -1257122603: /*subjectCodeableConcept*/ return new Property("subject[x]", "CodeableConcept", "The intended subjects for the measure. If this element is not provided, a Patient subject is assumed, but the subject of the measure can be anything.", 0, 1, subject); case 772938623: /*subjectReference*/ return new Property("subject[x]", "Reference(Group)", "The intended subjects for the measure. If this element is not provided, a Patient subject is assumed, but the subject of the measure can be anything.", 0, 1, subject); + case 93508670: /*basis*/ return new Property("basis", "code", "The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters.", 0, 1, basis); case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the measure was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the measure changes.", 0, 1, date); case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the organization or individual that published the measure.", 0, 1, publisher); case 951526432: /*contact*/ return new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact); @@ -4082,6 +4592,7 @@ public class Measure extends MetadataResource { case 166208699: /*library*/ return new Property("library", "canonical(Library)", "A reference to a Library resource containing the formal logic used by the measure.", 0, java.lang.Integer.MAX_VALUE, library); case 432371099: /*disclaimer*/ return new Property("disclaimer", "markdown", "Notices and disclaimers regarding the use of the measure or related to intellectual property (such as code systems) referenced by the measure.", 0, 1, disclaimer); case 1924005583: /*scoring*/ return new Property("scoring", "CodeableConcept", "Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented.", 0, 1, scoring); + case 1527532787: /*scoringUnit*/ return new Property("scoringUnit", "CodeableConcept", "Defines the expected units of measure for the measure score. This element SHOULD be specified as a UCUM unit.", 0, 1, scoringUnit); case 569347656: /*compositeScoring*/ return new Property("compositeScoring", "CodeableConcept", "If this is a composite measure, the scoring method used to combine the component measures to determine the composite score.", 0, 1, compositeScoring); case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization.", 0, java.lang.Integer.MAX_VALUE, type); case 93273500: /*riskAdjustment*/ return new Property("riskAdjustment", "string", "A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results.", 0, 1, riskAdjustment); @@ -4110,6 +4621,7 @@ public class Measure extends MetadataResource { case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // DataType + case 93508670: /*basis*/ return this.basis == null ? new Base[0] : new Base[] {this.basis}; // Enumeration case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail @@ -4131,6 +4643,7 @@ public class Measure extends MetadataResource { case 166208699: /*library*/ return this.library == null ? new Base[0] : this.library.toArray(new Base[this.library.size()]); // CanonicalType case 432371099: /*disclaimer*/ return this.disclaimer == null ? new Base[0] : new Base[] {this.disclaimer}; // MarkdownType case 1924005583: /*scoring*/ return this.scoring == null ? new Base[0] : new Base[] {this.scoring}; // CodeableConcept + case 1527532787: /*scoringUnit*/ return this.scoringUnit == null ? new Base[0] : new Base[] {this.scoringUnit}; // CodeableConcept case 569347656: /*compositeScoring*/ return this.compositeScoring == null ? new Base[0] : new Base[] {this.compositeScoring}; // CodeableConcept case 3575610: /*type*/ return this.type == null ? new Base[0] : this.type.toArray(new Base[this.type.size()]); // CodeableConcept case 93273500: /*riskAdjustment*/ return this.riskAdjustment == null ? new Base[0] : new Base[] {this.riskAdjustment}; // StringType @@ -4178,6 +4691,10 @@ public class Measure extends MetadataResource { case -1867885268: // subject this.subject = TypeConvertor.castToType(value); // DataType return value; + case 93508670: // basis + value = new FHIRAllTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.basis = (Enumeration) value; // Enumeration + return value; case 3076014: // date this.date = TypeConvertor.castToDateTime(value); // DateTimeType return value; @@ -4241,6 +4758,9 @@ public class Measure extends MetadataResource { case 1924005583: // scoring this.scoring = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; + case 1527532787: // scoringUnit + this.scoringUnit = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; case 569347656: // compositeScoring this.compositeScoring = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; @@ -4300,6 +4820,9 @@ public class Measure extends MetadataResource { this.experimental = TypeConvertor.castToBoolean(value); // BooleanType } else if (name.equals("subject[x]")) { this.subject = TypeConvertor.castToType(value); // DataType + } else if (name.equals("basis")) { + value = new FHIRAllTypesEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.basis = (Enumeration) value; // Enumeration } else if (name.equals("date")) { this.date = TypeConvertor.castToDateTime(value); // DateTimeType } else if (name.equals("publisher")) { @@ -4342,6 +4865,8 @@ public class Measure extends MetadataResource { this.disclaimer = TypeConvertor.castToMarkdown(value); // MarkdownType } else if (name.equals("scoring")) { this.scoring = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("scoringUnit")) { + this.scoringUnit = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("compositeScoring")) { this.compositeScoring = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("type")) { @@ -4382,6 +4907,7 @@ public class Measure extends MetadataResource { case -404562712: return getExperimentalElement(); case -573640748: return getSubject(); case -1867885268: return getSubject(); + case 93508670: return getBasisElement(); case 3076014: return getDateElement(); case 1447404028: return getPublisherElement(); case 951526432: return addContact(); @@ -4403,6 +4929,7 @@ public class Measure extends MetadataResource { case 166208699: return addLibraryElement(); case 432371099: return getDisclaimerElement(); case 1924005583: return getScoring(); + case 1527532787: return getScoringUnit(); case 569347656: return getCompositeScoring(); case 3575610: return addType(); case 93273500: return getRiskAdjustmentElement(); @@ -4431,6 +4958,7 @@ public class Measure extends MetadataResource { case -892481550: /*status*/ return new String[] {"code"}; case -404562712: /*experimental*/ return new String[] {"boolean"}; case -1867885268: /*subject*/ return new String[] {"CodeableConcept", "Reference"}; + case 93508670: /*basis*/ return new String[] {"code"}; case 3076014: /*date*/ return new String[] {"dateTime"}; case 1447404028: /*publisher*/ return new String[] {"string"}; case 951526432: /*contact*/ return new String[] {"ContactDetail"}; @@ -4452,6 +4980,7 @@ public class Measure extends MetadataResource { case 166208699: /*library*/ return new String[] {"canonical"}; case 432371099: /*disclaimer*/ return new String[] {"markdown"}; case 1924005583: /*scoring*/ return new String[] {"CodeableConcept"}; + case 1527532787: /*scoringUnit*/ return new String[] {"CodeableConcept"}; case 569347656: /*compositeScoring*/ return new String[] {"CodeableConcept"}; case 3575610: /*type*/ return new String[] {"CodeableConcept"}; case 93273500: /*riskAdjustment*/ return new String[] {"string"}; @@ -4502,6 +5031,9 @@ public class Measure extends MetadataResource { this.subject = new Reference(); return this.subject; } + else if (name.equals("basis")) { + throw new FHIRException("Cannot call addChild on a primitive type Measure.basis"); + } else if (name.equals("date")) { throw new FHIRException("Cannot call addChild on a primitive type Measure.date"); } @@ -4567,6 +5099,10 @@ public class Measure extends MetadataResource { this.scoring = new CodeableConcept(); return this.scoring; } + else if (name.equals("scoringUnit")) { + this.scoringUnit = new CodeableConcept(); + return this.scoringUnit; + } else if (name.equals("compositeScoring")) { this.compositeScoring = new CodeableConcept(); return this.compositeScoring; @@ -4632,6 +5168,7 @@ public class Measure extends MetadataResource { dst.status = status == null ? null : status.copy(); dst.experimental = experimental == null ? null : experimental.copy(); dst.subject = subject == null ? null : subject.copy(); + dst.basis = basis == null ? null : basis.copy(); dst.date = date == null ? null : date.copy(); dst.publisher = publisher == null ? null : publisher.copy(); if (contact != null) { @@ -4693,6 +5230,7 @@ public class Measure extends MetadataResource { }; dst.disclaimer = disclaimer == null ? null : disclaimer.copy(); dst.scoring = scoring == null ? null : scoring.copy(); + dst.scoringUnit = scoringUnit == null ? null : scoringUnit.copy(); dst.compositeScoring = compositeScoring == null ? null : compositeScoring.copy(); if (type != null) { dst.type = new ArrayList(); @@ -4736,19 +5274,20 @@ public class Measure extends MetadataResource { return compareDeep(url, o.url, true) && compareDeep(identifier, o.identifier, true) && compareDeep(version, o.version, true) && compareDeep(name, o.name, true) && compareDeep(title, o.title, true) && compareDeep(subtitle, o.subtitle, true) && compareDeep(status, o.status, true) && compareDeep(experimental, o.experimental, true) && compareDeep(subject, o.subject, true) - && compareDeep(date, o.date, true) && compareDeep(publisher, o.publisher, true) && compareDeep(contact, o.contact, true) - && compareDeep(description, o.description, true) && compareDeep(useContext, o.useContext, true) + && compareDeep(basis, o.basis, true) && compareDeep(date, o.date, true) && compareDeep(publisher, o.publisher, true) + && compareDeep(contact, o.contact, true) && compareDeep(description, o.description, true) && compareDeep(useContext, o.useContext, true) && compareDeep(jurisdiction, o.jurisdiction, true) && compareDeep(purpose, o.purpose, true) && compareDeep(usage, o.usage, true) && compareDeep(copyright, o.copyright, true) && compareDeep(approvalDate, o.approvalDate, true) && compareDeep(lastReviewDate, o.lastReviewDate, true) && compareDeep(effectivePeriod, o.effectivePeriod, true) && compareDeep(topic, o.topic, true) && compareDeep(author, o.author, true) && compareDeep(editor, o.editor, true) && compareDeep(reviewer, o.reviewer, true) && compareDeep(endorser, o.endorser, true) && compareDeep(relatedArtifact, o.relatedArtifact, true) && compareDeep(library, o.library, true) && compareDeep(disclaimer, o.disclaimer, true) && compareDeep(scoring, o.scoring, true) - && compareDeep(compositeScoring, o.compositeScoring, true) && compareDeep(type, o.type, true) && compareDeep(riskAdjustment, o.riskAdjustment, true) - && compareDeep(rateAggregation, o.rateAggregation, true) && compareDeep(rationale, o.rationale, true) - && compareDeep(clinicalRecommendationStatement, o.clinicalRecommendationStatement, true) && compareDeep(improvementNotation, o.improvementNotation, true) - && compareDeep(definition, o.definition, true) && compareDeep(guidance, o.guidance, true) && compareDeep(group, o.group, true) - && compareDeep(supplementalData, o.supplementalData, true); + && compareDeep(scoringUnit, o.scoringUnit, true) && compareDeep(compositeScoring, o.compositeScoring, true) + && compareDeep(type, o.type, true) && compareDeep(riskAdjustment, o.riskAdjustment, true) && compareDeep(rateAggregation, o.rateAggregation, true) + && compareDeep(rationale, o.rationale, true) && compareDeep(clinicalRecommendationStatement, o.clinicalRecommendationStatement, true) + && compareDeep(improvementNotation, o.improvementNotation, true) && compareDeep(definition, o.definition, true) + && compareDeep(guidance, o.guidance, true) && compareDeep(group, o.group, true) && compareDeep(supplementalData, o.supplementalData, true) + ; } @Override @@ -4760,9 +5299,9 @@ public class Measure extends MetadataResource { Measure o = (Measure) other_; return compareValues(url, o.url, true) && compareValues(version, o.version, true) && compareValues(name, o.name, true) && compareValues(title, o.title, true) && compareValues(subtitle, o.subtitle, true) && compareValues(status, o.status, true) - && compareValues(experimental, o.experimental, true) && compareValues(date, o.date, true) && compareValues(publisher, o.publisher, true) - && compareValues(description, o.description, true) && compareValues(purpose, o.purpose, true) && compareValues(usage, o.usage, true) - && compareValues(copyright, o.copyright, true) && compareValues(approvalDate, o.approvalDate, true) + && compareValues(experimental, o.experimental, true) && compareValues(basis, o.basis, true) && compareValues(date, o.date, true) + && compareValues(publisher, o.publisher, true) && compareValues(description, o.description, true) && compareValues(purpose, o.purpose, true) + && compareValues(usage, o.usage, true) && compareValues(copyright, o.copyright, true) && compareValues(approvalDate, o.approvalDate, true) && compareValues(lastReviewDate, o.lastReviewDate, true) && compareValues(library, o.library, true) && compareValues(disclaimer, o.disclaimer, true) && compareValues(riskAdjustment, o.riskAdjustment, true) && compareValues(rateAggregation, o.rateAggregation, true) && compareValues(rationale, o.rationale, true) @@ -4772,12 +5311,12 @@ public class Measure extends MetadataResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, identifier, version - , name, title, subtitle, status, experimental, subject, date, publisher, contact - , description, useContext, jurisdiction, purpose, usage, copyright, approvalDate + , name, title, subtitle, status, experimental, subject, basis, date, publisher + , contact, description, useContext, jurisdiction, purpose, usage, copyright, approvalDate , lastReviewDate, effectivePeriod, topic, author, editor, reviewer, endorser, relatedArtifact - , library, disclaimer, scoring, compositeScoring, type, riskAdjustment, rateAggregation - , rationale, clinicalRecommendationStatement, improvementNotation, definition, guidance - , group, supplementalData); + , library, disclaimer, scoring, scoringUnit, compositeScoring, type, riskAdjustment + , rateAggregation, rationale, clinicalRecommendationStatement, improvementNotation, definition + , guidance, group, supplementalData); } @Override @@ -4793,7 +5332,7 @@ public class Measure extends MetadataResource { * Path: Measure.relatedArtifact.where(type='composed-of').resource
*

*/ - @SearchParamDefinition(name="composed-of", path="Measure.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="composed-of", path="Measure.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_COMPOSED_OF = "composed-of"; /** * Fluent Client search parameter constant for composed-of @@ -4811,6 +5350,26 @@ public class Measure extends MetadataResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_COMPOSED_OF = new ca.uhn.fhir.model.api.Include("Measure:composed-of").toLocked(); + /** + * Search parameter: context + *

+ * Description: A use context assigned to the measure
+ * Type: token
+ * Path: (Measure.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(Measure.useContext.value as CodeableConcept)", description="A use context assigned to the measure", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: A use context assigned to the measure
+ * Type: token
+ * Path: (Measure.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -4831,46 +5390,6 @@ public class Measure extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the measure
- * Type: composite
- * Path: Measure.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="Measure.useContext", description="A use context type and quantity- or range-based value assigned to the measure", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the measure
- * Type: composite
- * Path: Measure.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: A use context type and value assigned to the measure
- * Type: composite
- * Path: Measure.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="Measure.useContext", description="A use context type and value assigned to the measure", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: A use context type and value assigned to the measure
- * Type: composite
- * Path: Measure.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -4891,26 +5410,6 @@ public class Measure extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: A use context assigned to the measure
- * Type: token
- * Path: (Measure.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(Measure.useContext.value as CodeableConcept)", description="A use context assigned to the measure", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: A use context assigned to the measure
- * Type: token
- * Path: (Measure.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -4939,7 +5438,7 @@ public class Measure extends MetadataResource { * Path: Measure.relatedArtifact.where(type='depends-on').resource | Measure.library
*

*/ - @SearchParamDefinition(name="depends-on", path="Measure.relatedArtifact.where(type='depends-on').resource | Measure.library", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="depends-on", path="Measure.relatedArtifact.where(type='depends-on').resource | Measure.library", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_DEPENDS_ON = "depends-on"; /** * Fluent Client search parameter constant for depends-on @@ -4965,7 +5464,7 @@ public class Measure extends MetadataResource { * Path: Measure.relatedArtifact.where(type='derived-from').resource
*

*/ - @SearchParamDefinition(name="derived-from", path="Measure.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="derived-from", path="Measure.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_DERIVED_FROM = "derived-from"; /** * Fluent Client search parameter constant for derived-from @@ -5091,7 +5590,7 @@ public class Measure extends MetadataResource { * Path: Measure.relatedArtifact.where(type='predecessor').resource
*

*/ - @SearchParamDefinition(name="predecessor", path="Measure.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="predecessor", path="Measure.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PREDECESSOR = "predecessor"; /** * Fluent Client search parameter constant for predecessor @@ -5157,7 +5656,7 @@ public class Measure extends MetadataResource { * Path: Measure.relatedArtifact.where(type='successor').resource
*

*/ - @SearchParamDefinition(name="successor", path="Measure.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="successor", path="Measure.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_SUCCESSOR = "successor"; /** * Fluent Client search parameter constant for successor @@ -5255,6 +5754,46 @@ public class Measure extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the measure
+ * Type: composite
+ * Path: Measure.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="Measure.useContext", description="A use context type and quantity- or range-based value assigned to the measure", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the measure
+ * Type: composite
+ * Path: Measure.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: A use context type and value assigned to the measure
+ * Type: composite
+ * Path: Measure.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="Measure.useContext", description="A use context type and value assigned to the measure", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: A use context type and value assigned to the measure
+ * Type: composite
+ * Path: Measure.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MeasureReport.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MeasureReport.java index 79f6d19be..96b6efa07 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MeasureReport.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MeasureReport.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -89,7 +89,6 @@ public class MeasureReport extends DomainResource { case COMPLETE: return "complete"; case PENDING: return "pending"; case ERROR: return "error"; - case NULL: return null; default: return "?"; } } @@ -98,7 +97,6 @@ public class MeasureReport extends DomainResource { case COMPLETE: return "http://hl7.org/fhir/measure-report-status"; case PENDING: return "http://hl7.org/fhir/measure-report-status"; case ERROR: return "http://hl7.org/fhir/measure-report-status"; - case NULL: return null; default: return "?"; } } @@ -107,7 +105,6 @@ public class MeasureReport extends DomainResource { case COMPLETE: return "The report is complete and ready for use."; case PENDING: return "The report is currently being generated."; case ERROR: return "An error occurred attempting to generate the report."; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class MeasureReport extends DomainResource { case COMPLETE: return "Complete"; case PENDING: return "Pending"; case ERROR: return "Error"; - case NULL: return null; default: return "?"; } } @@ -208,7 +204,6 @@ public class MeasureReport extends DomainResource { case SUBJECTLIST: return "subject-list"; case SUMMARY: return "summary"; case DATACOLLECTION: return "data-collection"; - case NULL: return null; default: return "?"; } } @@ -218,7 +213,6 @@ public class MeasureReport extends DomainResource { case SUBJECTLIST: return "http://hl7.org/fhir/measure-report-type"; case SUMMARY: return "http://hl7.org/fhir/measure-report-type"; case DATACOLLECTION: return "http://hl7.org/fhir/measure-report-type"; - case NULL: return null; default: return "?"; } } @@ -228,7 +222,6 @@ public class MeasureReport extends DomainResource { case SUBJECTLIST: return "A subject list report that includes a listing of subjects that satisfied each population criteria in the measure."; case SUMMARY: return "A summary report that returns the number of members in each population criteria for the measure."; case DATACOLLECTION: return "A data collection report that contains data-of-interest for the measure."; - case NULL: return null; default: return "?"; } } @@ -238,7 +231,6 @@ public class MeasureReport extends DomainResource { case SUBJECTLIST: return "Subject List"; case SUMMARY: return "Summary"; case DATACOLLECTION: return "Data Collection"; - case NULL: return null; default: return "?"; } } @@ -293,6 +285,98 @@ public class MeasureReport extends DomainResource { } } + public enum SubmitDataUpdateType { + /** + * In contrast to the Snapshot Update, the FHIR Parameters resource used in a Submit Data or the Collect Data scenario contains only the new and updated DEQM and QI Core Profiles since the last transaction. If the Consumer supports incremental updates, the contents of the updated payload updates the previous payload data. + */ + INCREMENTAL, + /** + * In contrast to the Incremental Update, the FHIR Parameters resource used in a Submit Data or the Collect Data scenario contains all the DEQM and QI Core Profiles for each transaction. If the Consumer supports snapshot updates, the contents of the updated payload entirely replaces the previous payload + */ + SNAPSHOT, + /** + * added to help the parsers with the generic types + */ + NULL; + public static SubmitDataUpdateType fromCode(String codeString) throws FHIRException { + if (codeString == null || "".equals(codeString)) + return null; + if ("incremental".equals(codeString)) + return INCREMENTAL; + if ("snapshot".equals(codeString)) + return SNAPSHOT; + if (Configuration.isAcceptInvalidEnums()) + return null; + else + throw new FHIRException("Unknown SubmitDataUpdateType code '"+codeString+"'"); + } + public String toCode() { + switch (this) { + case INCREMENTAL: return "incremental"; + case SNAPSHOT: return "snapshot"; + default: return "?"; + } + } + public String getSystem() { + switch (this) { + case INCREMENTAL: return "http://hl7.org/fhir/CodeSystem/submit-data-update-type"; + case SNAPSHOT: return "http://hl7.org/fhir/CodeSystem/submit-data-update-type"; + default: return "?"; + } + } + public String getDefinition() { + switch (this) { + case INCREMENTAL: return "In contrast to the Snapshot Update, the FHIR Parameters resource used in a Submit Data or the Collect Data scenario contains only the new and updated DEQM and QI Core Profiles since the last transaction. If the Consumer supports incremental updates, the contents of the updated payload updates the previous payload data."; + case SNAPSHOT: return "In contrast to the Incremental Update, the FHIR Parameters resource used in a Submit Data or the Collect Data scenario contains all the DEQM and QI Core Profiles for each transaction. If the Consumer supports snapshot updates, the contents of the updated payload entirely replaces the previous payload"; + default: return "?"; + } + } + public String getDisplay() { + switch (this) { + case INCREMENTAL: return "Incremental"; + case SNAPSHOT: return "Snapshot"; + default: return "?"; + } + } + } + + public static class SubmitDataUpdateTypeEnumFactory implements EnumFactory { + public SubmitDataUpdateType fromCode(String codeString) throws IllegalArgumentException { + if (codeString == null || "".equals(codeString)) + if (codeString == null || "".equals(codeString)) + return null; + if ("incremental".equals(codeString)) + return SubmitDataUpdateType.INCREMENTAL; + if ("snapshot".equals(codeString)) + return SubmitDataUpdateType.SNAPSHOT; + throw new IllegalArgumentException("Unknown SubmitDataUpdateType code '"+codeString+"'"); + } + public Enumeration fromType(Base code) throws FHIRException { + if (code == null) + return null; + if (code.isEmpty()) + return new Enumeration(this); + String codeString = ((PrimitiveType) code).asStringValue(); + if (codeString == null || "".equals(codeString)) + return null; + if ("incremental".equals(codeString)) + return new Enumeration(this, SubmitDataUpdateType.INCREMENTAL); + if ("snapshot".equals(codeString)) + return new Enumeration(this, SubmitDataUpdateType.SNAPSHOT); + throw new FHIRException("Unknown SubmitDataUpdateType code '"+codeString+"'"); + } + public String toCode(SubmitDataUpdateType code) { + if (code == SubmitDataUpdateType.INCREMENTAL) + return "incremental"; + if (code == SubmitDataUpdateType.SNAPSHOT) + return "snapshot"; + return "?"; + } + public String toSystem(SubmitDataUpdateType code) { + return code.getSystem(); + } + } + @Block() public static class MeasureReportGroupComponent extends BackboneElement implements IBaseBackboneElement { /** @@ -300,6 +384,7 @@ public class MeasureReport extends DomainResource { */ @Child(name = "code", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Meaning of the group", formalDefinition="The meaning of the population group as defined in the measure definition." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-group-example") protected CodeableConcept code; /** @@ -312,9 +397,9 @@ public class MeasureReport extends DomainResource { /** * The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group. */ - @Child(name = "measureScore", type = {Quantity.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Child(name = "measureScore", type = {Quantity.class, DateTimeType.class, CodeableConcept.class, Period.class, Range.class, Duration.class}, order=3, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="What score this group achieved", formalDefinition="The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group." ) - protected Quantity measureScore; + protected DataType measureScore; /** * When a measure includes multiple stratifiers, there will be a stratifier group for each stratifier defined by the measure. @@ -323,7 +408,7 @@ public class MeasureReport extends DomainResource { @Description(shortDefinition="Stratification results", formalDefinition="When a measure includes multiple stratifiers, there will be a stratifier group for each stratifier defined by the measure." ) protected List stratifier; - private static final long serialVersionUID = 1744426009L; + private static final long serialVersionUID = -631288064L; /** * Constructor @@ -412,15 +497,100 @@ public class MeasureReport extends DomainResource { /** * @return {@link #measureScore} (The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.) */ - public Quantity getMeasureScore() { - if (this.measureScore == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create MeasureReportGroupComponent.measureScore"); - else if (Configuration.doAutoCreate()) - this.measureScore = new Quantity(); // cc + public DataType getMeasureScore() { return this.measureScore; } + /** + * @return {@link #measureScore} (The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.) + */ + public Quantity getMeasureScoreQuantity() throws FHIRException { + if (this.measureScore == null) + this.measureScore = new Quantity(); + if (!(this.measureScore instanceof Quantity)) + throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.measureScore.getClass().getName()+" was encountered"); + return (Quantity) this.measureScore; + } + + public boolean hasMeasureScoreQuantity() { + return this != null && this.measureScore instanceof Quantity; + } + + /** + * @return {@link #measureScore} (The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.) + */ + public DateTimeType getMeasureScoreDateTimeType() throws FHIRException { + if (this.measureScore == null) + this.measureScore = new DateTimeType(); + if (!(this.measureScore instanceof DateTimeType)) + throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.measureScore.getClass().getName()+" was encountered"); + return (DateTimeType) this.measureScore; + } + + public boolean hasMeasureScoreDateTimeType() { + return this != null && this.measureScore instanceof DateTimeType; + } + + /** + * @return {@link #measureScore} (The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.) + */ + public CodeableConcept getMeasureScoreCodeableConcept() throws FHIRException { + if (this.measureScore == null) + this.measureScore = new CodeableConcept(); + if (!(this.measureScore instanceof CodeableConcept)) + throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.measureScore.getClass().getName()+" was encountered"); + return (CodeableConcept) this.measureScore; + } + + public boolean hasMeasureScoreCodeableConcept() { + return this != null && this.measureScore instanceof CodeableConcept; + } + + /** + * @return {@link #measureScore} (The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.) + */ + public Period getMeasureScorePeriod() throws FHIRException { + if (this.measureScore == null) + this.measureScore = new Period(); + if (!(this.measureScore instanceof Period)) + throw new FHIRException("Type mismatch: the type Period was expected, but "+this.measureScore.getClass().getName()+" was encountered"); + return (Period) this.measureScore; + } + + public boolean hasMeasureScorePeriod() { + return this != null && this.measureScore instanceof Period; + } + + /** + * @return {@link #measureScore} (The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.) + */ + public Range getMeasureScoreRange() throws FHIRException { + if (this.measureScore == null) + this.measureScore = new Range(); + if (!(this.measureScore instanceof Range)) + throw new FHIRException("Type mismatch: the type Range was expected, but "+this.measureScore.getClass().getName()+" was encountered"); + return (Range) this.measureScore; + } + + public boolean hasMeasureScoreRange() { + return this != null && this.measureScore instanceof Range; + } + + /** + * @return {@link #measureScore} (The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.) + */ + public Duration getMeasureScoreDuration() throws FHIRException { + if (this.measureScore == null) + this.measureScore = new Duration(); + if (!(this.measureScore instanceof Duration)) + throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.measureScore.getClass().getName()+" was encountered"); + return (Duration) this.measureScore; + } + + public boolean hasMeasureScoreDuration() { + return this != null && this.measureScore instanceof Duration; + } + public boolean hasMeasureScore() { return this.measureScore != null && !this.measureScore.isEmpty(); } @@ -428,7 +598,9 @@ public class MeasureReport extends DomainResource { /** * @param value {@link #measureScore} (The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.) */ - public MeasureReportGroupComponent setMeasureScore(Quantity value) { + public MeasureReportGroupComponent setMeasureScore(DataType value) { + if (value != null && !(value instanceof Quantity || value instanceof DateTimeType || value instanceof CodeableConcept || value instanceof Period || value instanceof Range || value instanceof Duration)) + throw new Error("Not the right type for MeasureReport.group.measureScore[x]: "+value.fhirType()); this.measureScore = value; return this; } @@ -490,7 +662,7 @@ public class MeasureReport extends DomainResource { super.listChildren(children); children.add(new Property("code", "CodeableConcept", "The meaning of the population group as defined in the measure definition.", 0, 1, code)); children.add(new Property("population", "", "The populations that make up the population group, one for each type of population appropriate for the measure.", 0, java.lang.Integer.MAX_VALUE, population)); - children.add(new Property("measureScore", "Quantity", "The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.", 0, 1, measureScore)); + children.add(new Property("measureScore[x]", "Quantity|dateTime|CodeableConcept|Period|Range|Duration", "The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.", 0, 1, measureScore)); children.add(new Property("stratifier", "", "When a measure includes multiple stratifiers, there will be a stratifier group for each stratifier defined by the measure.", 0, java.lang.Integer.MAX_VALUE, stratifier)); } @@ -499,7 +671,14 @@ public class MeasureReport extends DomainResource { switch (_hash) { case 3059181: /*code*/ return new Property("code", "CodeableConcept", "The meaning of the population group as defined in the measure definition.", 0, 1, code); case -2023558323: /*population*/ return new Property("population", "", "The populations that make up the population group, one for each type of population appropriate for the measure.", 0, java.lang.Integer.MAX_VALUE, population); - case -386313260: /*measureScore*/ return new Property("measureScore", "Quantity", "The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.", 0, 1, measureScore); + case 1854115884: /*measureScore[x]*/ return new Property("measureScore[x]", "Quantity|dateTime|CodeableConcept|Period|Range|Duration", "The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.", 0, 1, measureScore); + case -386313260: /*measureScore*/ return new Property("measureScore[x]", "Quantity|dateTime|CodeableConcept|Period|Range|Duration", "The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.", 0, 1, measureScore); + case -1880815489: /*measureScoreQuantity*/ return new Property("measureScore[x]", "Quantity", "The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.", 0, 1, measureScore); + case 1196938127: /*measureScoreDateTime*/ return new Property("measureScore[x]", "dateTime", "The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.", 0, 1, measureScore); + case -1193234131: /*measureScoreCodeableConcept*/ return new Property("measureScore[x]", "CodeableConcept", "The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.", 0, 1, measureScore); + case -1939831115: /*measureScorePeriod*/ return new Property("measureScore[x]", "Period", "The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.", 0, 1, measureScore); + case -615040567: /*measureScoreRange*/ return new Property("measureScore[x]", "Range", "The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.", 0, 1, measureScore); + case 1707143560: /*measureScoreDuration*/ return new Property("measureScore[x]", "Duration", "The measure score for this population group, calculated as appropriate for the measure type and scoring method, and based on the contents of the populations defined in the group.", 0, 1, measureScore); case 90983669: /*stratifier*/ return new Property("stratifier", "", "When a measure includes multiple stratifiers, there will be a stratifier group for each stratifier defined by the measure.", 0, java.lang.Integer.MAX_VALUE, stratifier); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -511,7 +690,7 @@ public class MeasureReport extends DomainResource { switch (hash) { case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept case -2023558323: /*population*/ return this.population == null ? new Base[0] : this.population.toArray(new Base[this.population.size()]); // MeasureReportGroupPopulationComponent - case -386313260: /*measureScore*/ return this.measureScore == null ? new Base[0] : new Base[] {this.measureScore}; // Quantity + case -386313260: /*measureScore*/ return this.measureScore == null ? new Base[0] : new Base[] {this.measureScore}; // DataType case 90983669: /*stratifier*/ return this.stratifier == null ? new Base[0] : this.stratifier.toArray(new Base[this.stratifier.size()]); // MeasureReportGroupStratifierComponent default: return super.getProperty(hash, name, checkValid); } @@ -528,7 +707,7 @@ public class MeasureReport extends DomainResource { this.getPopulation().add((MeasureReportGroupPopulationComponent) value); // MeasureReportGroupPopulationComponent return value; case -386313260: // measureScore - this.measureScore = TypeConvertor.castToQuantity(value); // Quantity + this.measureScore = TypeConvertor.castToType(value); // DataType return value; case 90983669: // stratifier this.getStratifier().add((MeasureReportGroupStratifierComponent) value); // MeasureReportGroupStratifierComponent @@ -544,8 +723,8 @@ public class MeasureReport extends DomainResource { this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("population")) { this.getPopulation().add((MeasureReportGroupPopulationComponent) value); - } else if (name.equals("measureScore")) { - this.measureScore = TypeConvertor.castToQuantity(value); // Quantity + } else if (name.equals("measureScore[x]")) { + this.measureScore = TypeConvertor.castToType(value); // DataType } else if (name.equals("stratifier")) { this.getStratifier().add((MeasureReportGroupStratifierComponent) value); } else @@ -558,6 +737,7 @@ public class MeasureReport extends DomainResource { switch (hash) { case 3059181: return getCode(); case -2023558323: return addPopulation(); + case 1854115884: return getMeasureScore(); case -386313260: return getMeasureScore(); case 90983669: return addStratifier(); default: return super.makeProperty(hash, name); @@ -570,7 +750,7 @@ public class MeasureReport extends DomainResource { switch (hash) { case 3059181: /*code*/ return new String[] {"CodeableConcept"}; case -2023558323: /*population*/ return new String[] {}; - case -386313260: /*measureScore*/ return new String[] {"Quantity"}; + case -386313260: /*measureScore*/ return new String[] {"Quantity", "dateTime", "CodeableConcept", "Period", "Range", "Duration"}; case 90983669: /*stratifier*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -586,10 +766,30 @@ public class MeasureReport extends DomainResource { else if (name.equals("population")) { return addPopulation(); } - else if (name.equals("measureScore")) { + else if (name.equals("measureScoreQuantity")) { this.measureScore = new Quantity(); return this.measureScore; } + else if (name.equals("measureScoreDateTime")) { + this.measureScore = new DateTimeType(); + return this.measureScore; + } + else if (name.equals("measureScoreCodeableConcept")) { + this.measureScore = new CodeableConcept(); + return this.measureScore; + } + else if (name.equals("measureScorePeriod")) { + this.measureScore = new Period(); + return this.measureScore; + } + else if (name.equals("measureScoreRange")) { + this.measureScore = new Range(); + return this.measureScore; + } + else if (name.equals("measureScoreDuration")) { + this.measureScore = new Duration(); + return this.measureScore; + } else if (name.equals("stratifier")) { return addStratifier(); } @@ -929,6 +1129,7 @@ public class MeasureReport extends DomainResource { */ @Child(name = "code", type = {CodeableConcept.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="What stratifier of the group", formalDefinition="The meaning of this stratifier, as defined in the measure definition." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-stratifier-example") protected List code; /** @@ -1192,9 +1393,10 @@ public class MeasureReport extends DomainResource { /** * The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique. */ - @Child(name = "value", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Child(name = "value", type = {CodeableConcept.class, BooleanType.class, Quantity.class, Range.class, Reference.class}, order=1, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="The stratum value, e.g. male", formalDefinition="The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique." ) - protected CodeableConcept value; + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measurereport-stratifier-value-example") + protected DataType value; /** * A stratifier component value. @@ -1213,11 +1415,11 @@ public class MeasureReport extends DomainResource { /** * The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum. */ - @Child(name = "measureScore", type = {Quantity.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Child(name = "measureScore", type = {Quantity.class, DateTimeType.class, CodeableConcept.class, Period.class, Range.class, Duration.class}, order=4, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="What score this stratum achieved", formalDefinition="The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum." ) - protected Quantity measureScore; + protected DataType measureScore; - private static final long serialVersionUID = 892251179L; + private static final long serialVersionUID = -1713783491L; /** * Constructor @@ -1229,15 +1431,85 @@ public class MeasureReport extends DomainResource { /** * @return {@link #value} (The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.) */ - public CodeableConcept getValue() { - if (this.value == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create StratifierGroupComponent.value"); - else if (Configuration.doAutoCreate()) - this.value = new CodeableConcept(); // cc + public DataType getValue() { return this.value; } + /** + * @return {@link #value} (The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.) + */ + public CodeableConcept getValueCodeableConcept() throws FHIRException { + if (this.value == null) + this.value = new CodeableConcept(); + if (!(this.value instanceof CodeableConcept)) + throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.value.getClass().getName()+" was encountered"); + return (CodeableConcept) this.value; + } + + public boolean hasValueCodeableConcept() { + return this != null && this.value instanceof CodeableConcept; + } + + /** + * @return {@link #value} (The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.) + */ + public BooleanType getValueBooleanType() throws FHIRException { + if (this.value == null) + this.value = new BooleanType(); + if (!(this.value instanceof BooleanType)) + throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.value.getClass().getName()+" was encountered"); + return (BooleanType) this.value; + } + + public boolean hasValueBooleanType() { + return this != null && this.value instanceof BooleanType; + } + + /** + * @return {@link #value} (The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.) + */ + public Quantity getValueQuantity() throws FHIRException { + if (this.value == null) + this.value = new Quantity(); + if (!(this.value instanceof Quantity)) + throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.value.getClass().getName()+" was encountered"); + return (Quantity) this.value; + } + + public boolean hasValueQuantity() { + return this != null && this.value instanceof Quantity; + } + + /** + * @return {@link #value} (The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.) + */ + public Range getValueRange() throws FHIRException { + if (this.value == null) + this.value = new Range(); + if (!(this.value instanceof Range)) + throw new FHIRException("Type mismatch: the type Range was expected, but "+this.value.getClass().getName()+" was encountered"); + return (Range) this.value; + } + + public boolean hasValueRange() { + return this != null && this.value instanceof Range; + } + + /** + * @return {@link #value} (The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.) + */ + public Reference getValueReference() throws FHIRException { + if (this.value == null) + this.value = new Reference(); + if (!(this.value instanceof Reference)) + throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.value.getClass().getName()+" was encountered"); + return (Reference) this.value; + } + + public boolean hasValueReference() { + return this != null && this.value instanceof Reference; + } + public boolean hasValue() { return this.value != null && !this.value.isEmpty(); } @@ -1245,7 +1517,9 @@ public class MeasureReport extends DomainResource { /** * @param value {@link #value} (The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.) */ - public StratifierGroupComponent setValue(CodeableConcept value) { + public StratifierGroupComponent setValue(DataType value) { + if (value != null && !(value instanceof CodeableConcept || value instanceof BooleanType || value instanceof Quantity || value instanceof Range || value instanceof Reference)) + throw new Error("Not the right type for MeasureReport.group.stratifier.stratum.value[x]: "+value.fhirType()); this.value = value; return this; } @@ -1359,15 +1633,100 @@ public class MeasureReport extends DomainResource { /** * @return {@link #measureScore} (The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.) */ - public Quantity getMeasureScore() { - if (this.measureScore == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create StratifierGroupComponent.measureScore"); - else if (Configuration.doAutoCreate()) - this.measureScore = new Quantity(); // cc + public DataType getMeasureScore() { return this.measureScore; } + /** + * @return {@link #measureScore} (The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.) + */ + public Quantity getMeasureScoreQuantity() throws FHIRException { + if (this.measureScore == null) + this.measureScore = new Quantity(); + if (!(this.measureScore instanceof Quantity)) + throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.measureScore.getClass().getName()+" was encountered"); + return (Quantity) this.measureScore; + } + + public boolean hasMeasureScoreQuantity() { + return this != null && this.measureScore instanceof Quantity; + } + + /** + * @return {@link #measureScore} (The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.) + */ + public DateTimeType getMeasureScoreDateTimeType() throws FHIRException { + if (this.measureScore == null) + this.measureScore = new DateTimeType(); + if (!(this.measureScore instanceof DateTimeType)) + throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.measureScore.getClass().getName()+" was encountered"); + return (DateTimeType) this.measureScore; + } + + public boolean hasMeasureScoreDateTimeType() { + return this != null && this.measureScore instanceof DateTimeType; + } + + /** + * @return {@link #measureScore} (The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.) + */ + public CodeableConcept getMeasureScoreCodeableConcept() throws FHIRException { + if (this.measureScore == null) + this.measureScore = new CodeableConcept(); + if (!(this.measureScore instanceof CodeableConcept)) + throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.measureScore.getClass().getName()+" was encountered"); + return (CodeableConcept) this.measureScore; + } + + public boolean hasMeasureScoreCodeableConcept() { + return this != null && this.measureScore instanceof CodeableConcept; + } + + /** + * @return {@link #measureScore} (The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.) + */ + public Period getMeasureScorePeriod() throws FHIRException { + if (this.measureScore == null) + this.measureScore = new Period(); + if (!(this.measureScore instanceof Period)) + throw new FHIRException("Type mismatch: the type Period was expected, but "+this.measureScore.getClass().getName()+" was encountered"); + return (Period) this.measureScore; + } + + public boolean hasMeasureScorePeriod() { + return this != null && this.measureScore instanceof Period; + } + + /** + * @return {@link #measureScore} (The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.) + */ + public Range getMeasureScoreRange() throws FHIRException { + if (this.measureScore == null) + this.measureScore = new Range(); + if (!(this.measureScore instanceof Range)) + throw new FHIRException("Type mismatch: the type Range was expected, but "+this.measureScore.getClass().getName()+" was encountered"); + return (Range) this.measureScore; + } + + public boolean hasMeasureScoreRange() { + return this != null && this.measureScore instanceof Range; + } + + /** + * @return {@link #measureScore} (The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.) + */ + public Duration getMeasureScoreDuration() throws FHIRException { + if (this.measureScore == null) + this.measureScore = new Duration(); + if (!(this.measureScore instanceof Duration)) + throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.measureScore.getClass().getName()+" was encountered"); + return (Duration) this.measureScore; + } + + public boolean hasMeasureScoreDuration() { + return this != null && this.measureScore instanceof Duration; + } + public boolean hasMeasureScore() { return this.measureScore != null && !this.measureScore.isEmpty(); } @@ -1375,26 +1734,41 @@ public class MeasureReport extends DomainResource { /** * @param value {@link #measureScore} (The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.) */ - public StratifierGroupComponent setMeasureScore(Quantity value) { + public StratifierGroupComponent setMeasureScore(DataType value) { + if (value != null && !(value instanceof Quantity || value instanceof DateTimeType || value instanceof CodeableConcept || value instanceof Period || value instanceof Range || value instanceof Duration)) + throw new Error("Not the right type for MeasureReport.group.stratifier.stratum.measureScore[x]: "+value.fhirType()); this.measureScore = value; return this; } protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("value", "CodeableConcept", "The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.", 0, 1, value)); + children.add(new Property("value[x]", "CodeableConcept|boolean|Quantity|Range|Reference", "The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.", 0, 1, value)); children.add(new Property("component", "", "A stratifier component value.", 0, java.lang.Integer.MAX_VALUE, component)); children.add(new Property("population", "", "The populations that make up the stratum, one for each type of population appropriate to the measure.", 0, java.lang.Integer.MAX_VALUE, population)); - children.add(new Property("measureScore", "Quantity", "The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.", 0, 1, measureScore)); + children.add(new Property("measureScore[x]", "Quantity|dateTime|CodeableConcept|Period|Range|Duration", "The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.", 0, 1, measureScore)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 111972721: /*value*/ return new Property("value", "CodeableConcept", "The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.", 0, 1, value); + case -1410166417: /*value[x]*/ return new Property("value[x]", "CodeableConcept|boolean|Quantity|Range|Reference", "The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.", 0, 1, value); + case 111972721: /*value*/ return new Property("value[x]", "CodeableConcept|boolean|Quantity|Range|Reference", "The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.", 0, 1, value); + case 924902896: /*valueCodeableConcept*/ return new Property("value[x]", "CodeableConcept", "The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.", 0, 1, value); + case 733421943: /*valueBoolean*/ return new Property("value[x]", "boolean", "The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.", 0, 1, value); + case -2029823716: /*valueQuantity*/ return new Property("value[x]", "Quantity", "The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.", 0, 1, value); + case 2030761548: /*valueRange*/ return new Property("value[x]", "Range", "The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.", 0, 1, value); + case 1755241690: /*valueReference*/ return new Property("value[x]", "Reference", "The value for this stratum, expressed as a CodeableConcept. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.", 0, 1, value); case -1399907075: /*component*/ return new Property("component", "", "A stratifier component value.", 0, java.lang.Integer.MAX_VALUE, component); case -2023558323: /*population*/ return new Property("population", "", "The populations that make up the stratum, one for each type of population appropriate to the measure.", 0, java.lang.Integer.MAX_VALUE, population); - case -386313260: /*measureScore*/ return new Property("measureScore", "Quantity", "The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.", 0, 1, measureScore); + case 1854115884: /*measureScore[x]*/ return new Property("measureScore[x]", "Quantity|dateTime|CodeableConcept|Period|Range|Duration", "The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.", 0, 1, measureScore); + case -386313260: /*measureScore*/ return new Property("measureScore[x]", "Quantity|dateTime|CodeableConcept|Period|Range|Duration", "The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.", 0, 1, measureScore); + case -1880815489: /*measureScoreQuantity*/ return new Property("measureScore[x]", "Quantity", "The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.", 0, 1, measureScore); + case 1196938127: /*measureScoreDateTime*/ return new Property("measureScore[x]", "dateTime", "The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.", 0, 1, measureScore); + case -1193234131: /*measureScoreCodeableConcept*/ return new Property("measureScore[x]", "CodeableConcept", "The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.", 0, 1, measureScore); + case -1939831115: /*measureScorePeriod*/ return new Property("measureScore[x]", "Period", "The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.", 0, 1, measureScore); + case -615040567: /*measureScoreRange*/ return new Property("measureScore[x]", "Range", "The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.", 0, 1, measureScore); + case 1707143560: /*measureScoreDuration*/ return new Property("measureScore[x]", "Duration", "The measure score for this stratum, calculated as appropriate for the measure type and scoring method, and based on only the members of this stratum.", 0, 1, measureScore); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -1403,10 +1777,10 @@ public class MeasureReport extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // CodeableConcept + case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // DataType case -1399907075: /*component*/ return this.component == null ? new Base[0] : this.component.toArray(new Base[this.component.size()]); // StratifierGroupComponentComponent case -2023558323: /*population*/ return this.population == null ? new Base[0] : this.population.toArray(new Base[this.population.size()]); // StratifierGroupPopulationComponent - case -386313260: /*measureScore*/ return this.measureScore == null ? new Base[0] : new Base[] {this.measureScore}; // Quantity + case -386313260: /*measureScore*/ return this.measureScore == null ? new Base[0] : new Base[] {this.measureScore}; // DataType default: return super.getProperty(hash, name, checkValid); } @@ -1416,7 +1790,7 @@ public class MeasureReport extends DomainResource { public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 111972721: // value - this.value = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.value = TypeConvertor.castToType(value); // DataType return value; case -1399907075: // component this.getComponent().add((StratifierGroupComponentComponent) value); // StratifierGroupComponentComponent @@ -1425,7 +1799,7 @@ public class MeasureReport extends DomainResource { this.getPopulation().add((StratifierGroupPopulationComponent) value); // StratifierGroupPopulationComponent return value; case -386313260: // measureScore - this.measureScore = TypeConvertor.castToQuantity(value); // Quantity + this.measureScore = TypeConvertor.castToType(value); // DataType return value; default: return super.setProperty(hash, name, value); } @@ -1434,14 +1808,14 @@ public class MeasureReport extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("value")) { - this.value = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + if (name.equals("value[x]")) { + this.value = TypeConvertor.castToType(value); // DataType } else if (name.equals("component")) { this.getComponent().add((StratifierGroupComponentComponent) value); } else if (name.equals("population")) { this.getPopulation().add((StratifierGroupPopulationComponent) value); - } else if (name.equals("measureScore")) { - this.measureScore = TypeConvertor.castToQuantity(value); // Quantity + } else if (name.equals("measureScore[x]")) { + this.measureScore = TypeConvertor.castToType(value); // DataType } else return super.setProperty(name, value); return value; @@ -1450,9 +1824,11 @@ public class MeasureReport extends DomainResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { + case -1410166417: return getValue(); case 111972721: return getValue(); case -1399907075: return addComponent(); case -2023558323: return addPopulation(); + case 1854115884: return getMeasureScore(); case -386313260: return getMeasureScore(); default: return super.makeProperty(hash, name); } @@ -1462,10 +1838,10 @@ public class MeasureReport extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case 111972721: /*value*/ return new String[] {"CodeableConcept"}; + case 111972721: /*value*/ return new String[] {"CodeableConcept", "boolean", "Quantity", "Range", "Reference"}; case -1399907075: /*component*/ return new String[] {}; case -2023558323: /*population*/ return new String[] {}; - case -386313260: /*measureScore*/ return new String[] {"Quantity"}; + case -386313260: /*measureScore*/ return new String[] {"Quantity", "dateTime", "CodeableConcept", "Period", "Range", "Duration"}; default: return super.getTypesForProperty(hash, name); } @@ -1473,20 +1849,56 @@ public class MeasureReport extends DomainResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("value")) { + if (name.equals("valueCodeableConcept")) { this.value = new CodeableConcept(); return this.value; } + else if (name.equals("valueBoolean")) { + this.value = new BooleanType(); + return this.value; + } + else if (name.equals("valueQuantity")) { + this.value = new Quantity(); + return this.value; + } + else if (name.equals("valueRange")) { + this.value = new Range(); + return this.value; + } + else if (name.equals("valueReference")) { + this.value = new Reference(); + return this.value; + } else if (name.equals("component")) { return addComponent(); } else if (name.equals("population")) { return addPopulation(); } - else if (name.equals("measureScore")) { + else if (name.equals("measureScoreQuantity")) { this.measureScore = new Quantity(); return this.measureScore; } + else if (name.equals("measureScoreDateTime")) { + this.measureScore = new DateTimeType(); + return this.measureScore; + } + else if (name.equals("measureScoreCodeableConcept")) { + this.measureScore = new CodeableConcept(); + return this.measureScore; + } + else if (name.equals("measureScorePeriod")) { + this.measureScore = new Period(); + return this.measureScore; + } + else if (name.equals("measureScoreRange")) { + this.measureScore = new Range(); + return this.measureScore; + } + else if (name.equals("measureScoreDuration")) { + this.measureScore = new Duration(); + return this.measureScore; + } else return super.addChild(name); } @@ -1553,16 +1965,18 @@ public class MeasureReport extends DomainResource { */ @Child(name = "code", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=false) @Description(shortDefinition="What stratifier component of the group", formalDefinition="The code for the stratum component value." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-stratifier-example") protected CodeableConcept code; /** * The stratum component value. */ - @Child(name = "value", type = {CodeableConcept.class}, order=2, min=1, max=1, modifier=false, summary=false) + @Child(name = "value", type = {CodeableConcept.class, BooleanType.class, Quantity.class, Range.class, Reference.class}, order=2, min=1, max=1, modifier=false, summary=false) @Description(shortDefinition="The stratum component value, e.g. male", formalDefinition="The stratum component value." ) - protected CodeableConcept value; + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measurereport-stratifier-value-example") + protected DataType value; - private static final long serialVersionUID = 1750253426L; + private static final long serialVersionUID = -1950789033L; /** * Constructor @@ -1574,7 +1988,7 @@ public class MeasureReport extends DomainResource { /** * Constructor */ - public StratifierGroupComponentComponent(CodeableConcept code, CodeableConcept value) { + public StratifierGroupComponentComponent(CodeableConcept code, DataType value) { super(); this.setCode(code); this.setValue(value); @@ -1607,15 +2021,85 @@ public class MeasureReport extends DomainResource { /** * @return {@link #value} (The stratum component value.) */ - public CodeableConcept getValue() { - if (this.value == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create StratifierGroupComponentComponent.value"); - else if (Configuration.doAutoCreate()) - this.value = new CodeableConcept(); // cc + public DataType getValue() { return this.value; } + /** + * @return {@link #value} (The stratum component value.) + */ + public CodeableConcept getValueCodeableConcept() throws FHIRException { + if (this.value == null) + this.value = new CodeableConcept(); + if (!(this.value instanceof CodeableConcept)) + throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.value.getClass().getName()+" was encountered"); + return (CodeableConcept) this.value; + } + + public boolean hasValueCodeableConcept() { + return this != null && this.value instanceof CodeableConcept; + } + + /** + * @return {@link #value} (The stratum component value.) + */ + public BooleanType getValueBooleanType() throws FHIRException { + if (this.value == null) + this.value = new BooleanType(); + if (!(this.value instanceof BooleanType)) + throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.value.getClass().getName()+" was encountered"); + return (BooleanType) this.value; + } + + public boolean hasValueBooleanType() { + return this != null && this.value instanceof BooleanType; + } + + /** + * @return {@link #value} (The stratum component value.) + */ + public Quantity getValueQuantity() throws FHIRException { + if (this.value == null) + this.value = new Quantity(); + if (!(this.value instanceof Quantity)) + throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.value.getClass().getName()+" was encountered"); + return (Quantity) this.value; + } + + public boolean hasValueQuantity() { + return this != null && this.value instanceof Quantity; + } + + /** + * @return {@link #value} (The stratum component value.) + */ + public Range getValueRange() throws FHIRException { + if (this.value == null) + this.value = new Range(); + if (!(this.value instanceof Range)) + throw new FHIRException("Type mismatch: the type Range was expected, but "+this.value.getClass().getName()+" was encountered"); + return (Range) this.value; + } + + public boolean hasValueRange() { + return this != null && this.value instanceof Range; + } + + /** + * @return {@link #value} (The stratum component value.) + */ + public Reference getValueReference() throws FHIRException { + if (this.value == null) + this.value = new Reference(); + if (!(this.value instanceof Reference)) + throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.value.getClass().getName()+" was encountered"); + return (Reference) this.value; + } + + public boolean hasValueReference() { + return this != null && this.value instanceof Reference; + } + public boolean hasValue() { return this.value != null && !this.value.isEmpty(); } @@ -1623,7 +2107,9 @@ public class MeasureReport extends DomainResource { /** * @param value {@link #value} (The stratum component value.) */ - public StratifierGroupComponentComponent setValue(CodeableConcept value) { + public StratifierGroupComponentComponent setValue(DataType value) { + if (value != null && !(value instanceof CodeableConcept || value instanceof BooleanType || value instanceof Quantity || value instanceof Range || value instanceof Reference)) + throw new Error("Not the right type for MeasureReport.group.stratifier.stratum.component.value[x]: "+value.fhirType()); this.value = value; return this; } @@ -1631,14 +2117,20 @@ public class MeasureReport extends DomainResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("code", "CodeableConcept", "The code for the stratum component value.", 0, 1, code)); - children.add(new Property("value", "CodeableConcept", "The stratum component value.", 0, 1, value)); + children.add(new Property("value[x]", "CodeableConcept|boolean|Quantity|Range|Reference", "The stratum component value.", 0, 1, value)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case 3059181: /*code*/ return new Property("code", "CodeableConcept", "The code for the stratum component value.", 0, 1, code); - case 111972721: /*value*/ return new Property("value", "CodeableConcept", "The stratum component value.", 0, 1, value); + case -1410166417: /*value[x]*/ return new Property("value[x]", "CodeableConcept|boolean|Quantity|Range|Reference", "The stratum component value.", 0, 1, value); + case 111972721: /*value*/ return new Property("value[x]", "CodeableConcept|boolean|Quantity|Range|Reference", "The stratum component value.", 0, 1, value); + case 924902896: /*valueCodeableConcept*/ return new Property("value[x]", "CodeableConcept", "The stratum component value.", 0, 1, value); + case 733421943: /*valueBoolean*/ return new Property("value[x]", "boolean", "The stratum component value.", 0, 1, value); + case -2029823716: /*valueQuantity*/ return new Property("value[x]", "Quantity", "The stratum component value.", 0, 1, value); + case 2030761548: /*valueRange*/ return new Property("value[x]", "Range", "The stratum component value.", 0, 1, value); + case 1755241690: /*valueReference*/ return new Property("value[x]", "Reference", "The stratum component value.", 0, 1, value); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -1648,7 +2140,7 @@ public class MeasureReport extends DomainResource { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept - case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // CodeableConcept + case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // DataType default: return super.getProperty(hash, name, checkValid); } @@ -1661,7 +2153,7 @@ public class MeasureReport extends DomainResource { this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; case 111972721: // value - this.value = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.value = TypeConvertor.castToType(value); // DataType return value; default: return super.setProperty(hash, name, value); } @@ -1672,8 +2164,8 @@ public class MeasureReport extends DomainResource { public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("code")) { this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("value")) { - this.value = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("value[x]")) { + this.value = TypeConvertor.castToType(value); // DataType } else return super.setProperty(name, value); return value; @@ -1683,6 +2175,7 @@ public class MeasureReport extends DomainResource { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: return getCode(); + case -1410166417: return getValue(); case 111972721: return getValue(); default: return super.makeProperty(hash, name); } @@ -1693,7 +2186,7 @@ public class MeasureReport extends DomainResource { public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: /*code*/ return new String[] {"CodeableConcept"}; - case 111972721: /*value*/ return new String[] {"CodeableConcept"}; + case 111972721: /*value*/ return new String[] {"CodeableConcept", "boolean", "Quantity", "Range", "Reference"}; default: return super.getTypesForProperty(hash, name); } @@ -1705,10 +2198,26 @@ public class MeasureReport extends DomainResource { this.code = new CodeableConcept(); return this.code; } - else if (name.equals("value")) { + else if (name.equals("valueCodeableConcept")) { this.value = new CodeableConcept(); return this.value; } + else if (name.equals("valueBoolean")) { + this.value = new BooleanType(); + return this.value; + } + else if (name.equals("valueQuantity")) { + this.value = new Quantity(); + return this.value; + } + else if (name.equals("valueRange")) { + this.value = new Range(); + return this.value; + } + else if (name.equals("valueReference")) { + this.value = new Reference(); + return this.value; + } else return super.addChild(name); } @@ -2049,45 +2558,68 @@ public class MeasureReport extends DomainResource { @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-report-type") protected Enumeration type; + /** + * Indicates whether the data submitted in an data-exchange report represents a snapshot or incremental update. A snapshot update replaces all previously submitted data for the receiver, whereas an incremental update represents only updated and/or changed data and should be applied as a differential update to the existing submitted data for the receiver. + */ + @Child(name = "dataUpdateType", type = {CodeType.class}, order=3, min=0, max=1, modifier=true, summary=true) + @Description(shortDefinition="incremental | snapshot", formalDefinition="Indicates whether the data submitted in an data-exchange report represents a snapshot or incremental update. A snapshot update replaces all previously submitted data for the receiver, whereas an incremental update represents only updated and/or changed data and should be applied as a differential update to the existing submitted data for the receiver." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/submit-data-update-type") + protected Enumeration dataUpdateType; + /** * A reference to the Measure that was calculated to produce this report. */ - @Child(name = "measure", type = {CanonicalType.class}, order=3, min=1, max=1, modifier=false, summary=true) + @Child(name = "measure", type = {CanonicalType.class}, order=4, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="What measure was calculated", formalDefinition="A reference to the Measure that was calculated to produce this report." ) protected CanonicalType measure; /** * Optional subject identifying the individual or individuals the report is for. */ - @Child(name = "subject", type = {Patient.class, Practitioner.class, PractitionerRole.class, Location.class, Device.class, RelatedPerson.class, Group.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Child(name = "subject", type = {Patient.class, Practitioner.class, PractitionerRole.class, Location.class, Device.class, RelatedPerson.class, Group.class}, order=5, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="What individual(s) the report is for", formalDefinition="Optional subject identifying the individual or individuals the report is for." ) protected Reference subject; /** * The date this measure report was generated. */ - @Child(name = "date", type = {DateTimeType.class}, order=5, min=0, max=1, modifier=false, summary=true) + @Child(name = "date", type = {DateTimeType.class}, order=6, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="When the report was generated", formalDefinition="The date this measure report was generated." ) protected DateTimeType date; /** * The individual, location, or organization that is reporting the data. */ - @Child(name = "reporter", type = {Practitioner.class, PractitionerRole.class, Location.class, Organization.class}, order=6, min=0, max=1, modifier=false, summary=true) + @Child(name = "reporter", type = {Practitioner.class, PractitionerRole.class, Location.class, Organization.class, Group.class}, order=7, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Who is reporting the data", formalDefinition="The individual, location, or organization that is reporting the data." ) protected Reference reporter; + /** + * A reference to the vendor who queried the data, calculated results and/or generated the report. The ‘reporting vendor’ is intended to represent the submitting entity when it is not the same as the reporting entity. This extension is used when the Receiver is interested in getting vendor information in the report. + */ + @Child(name = "reportingVendor", type = {Organization.class}, order=8, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="What vendor prepared the data", formalDefinition="A reference to the vendor who queried the data, calculated results and/or generated the report. The ‘reporting vendor’ is intended to represent the submitting entity when it is not the same as the reporting entity. This extension is used when the Receiver is interested in getting vendor information in the report." ) + protected Reference reportingVendor; + /** * The reporting period for which the report was calculated. */ - @Child(name = "period", type = {Period.class}, order=7, min=1, max=1, modifier=false, summary=true) + @Child(name = "period", type = {Period.class}, order=9, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="What period the report covers", formalDefinition="The reporting period for which the report was calculated." ) protected Period period; + /** + * Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented. It is expected to be the same as the scoring element on the referenced Measure. + */ + @Child(name = "scoring", type = {CodeableConcept.class}, order=10, min=0, max=1, modifier=true, summary=true) + @Description(shortDefinition="What scoring method (e.g. proportion, ratio, continuous-variable)", formalDefinition="Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented. It is expected to be the same as the scoring element on the referenced Measure." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-scoring") + protected CodeableConcept scoring; + /** * Whether improvement in the measure is noted by an increase or decrease in the measure score. */ - @Child(name = "improvementNotation", type = {CodeableConcept.class}, order=8, min=0, max=1, modifier=true, summary=true) + @Child(name = "improvementNotation", type = {CodeableConcept.class}, order=11, min=0, max=1, modifier=true, summary=true) @Description(shortDefinition="increase | decrease", formalDefinition="Whether improvement in the measure is noted by an increase or decrease in the measure score." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/measure-improvement-notation") protected CodeableConcept improvementNotation; @@ -2095,18 +2627,18 @@ public class MeasureReport extends DomainResource { /** * The results of the calculation, one for each population group in the measure. */ - @Child(name = "group", type = {}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "group", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Measure results for each group", formalDefinition="The results of the calculation, one for each population group in the measure." ) protected List group; /** * A reference to a Bundle containing the Resources that were used in the calculation of this measure. */ - @Child(name = "evaluatedResource", type = {Reference.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "evaluatedResource", type = {Reference.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="What data was used to calculate the measure score", formalDefinition="A reference to a Bundle containing the Resources that were used in the calculation of this measure." ) protected List evaluatedResource; - private static final long serialVersionUID = 1801518514L; + private static final long serialVersionUID = 1493960612L; /** * Constructor @@ -2269,6 +2801,55 @@ public class MeasureReport extends DomainResource { return this; } + /** + * @return {@link #dataUpdateType} (Indicates whether the data submitted in an data-exchange report represents a snapshot or incremental update. A snapshot update replaces all previously submitted data for the receiver, whereas an incremental update represents only updated and/or changed data and should be applied as a differential update to the existing submitted data for the receiver.). This is the underlying object with id, value and extensions. The accessor "getDataUpdateType" gives direct access to the value + */ + public Enumeration getDataUpdateTypeElement() { + if (this.dataUpdateType == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create MeasureReport.dataUpdateType"); + else if (Configuration.doAutoCreate()) + this.dataUpdateType = new Enumeration(new SubmitDataUpdateTypeEnumFactory()); // bb + return this.dataUpdateType; + } + + public boolean hasDataUpdateTypeElement() { + return this.dataUpdateType != null && !this.dataUpdateType.isEmpty(); + } + + public boolean hasDataUpdateType() { + return this.dataUpdateType != null && !this.dataUpdateType.isEmpty(); + } + + /** + * @param value {@link #dataUpdateType} (Indicates whether the data submitted in an data-exchange report represents a snapshot or incremental update. A snapshot update replaces all previously submitted data for the receiver, whereas an incremental update represents only updated and/or changed data and should be applied as a differential update to the existing submitted data for the receiver.). This is the underlying object with id, value and extensions. The accessor "getDataUpdateType" gives direct access to the value + */ + public MeasureReport setDataUpdateTypeElement(Enumeration value) { + this.dataUpdateType = value; + return this; + } + + /** + * @return Indicates whether the data submitted in an data-exchange report represents a snapshot or incremental update. A snapshot update replaces all previously submitted data for the receiver, whereas an incremental update represents only updated and/or changed data and should be applied as a differential update to the existing submitted data for the receiver. + */ + public SubmitDataUpdateType getDataUpdateType() { + return this.dataUpdateType == null ? null : this.dataUpdateType.getValue(); + } + + /** + * @param value Indicates whether the data submitted in an data-exchange report represents a snapshot or incremental update. A snapshot update replaces all previously submitted data for the receiver, whereas an incremental update represents only updated and/or changed data and should be applied as a differential update to the existing submitted data for the receiver. + */ + public MeasureReport setDataUpdateType(SubmitDataUpdateType value) { + if (value == null) + this.dataUpdateType = null; + else { + if (this.dataUpdateType == null) + this.dataUpdateType = new Enumeration(new SubmitDataUpdateTypeEnumFactory()); + this.dataUpdateType.setValue(value); + } + return this; + } + /** * @return {@link #measure} (A reference to the Measure that was calculated to produce this report.). This is the underlying object with id, value and extensions. The accessor "getMeasure" gives direct access to the value */ @@ -2411,6 +2992,30 @@ public class MeasureReport extends DomainResource { return this; } + /** + * @return {@link #reportingVendor} (A reference to the vendor who queried the data, calculated results and/or generated the report. The ‘reporting vendor’ is intended to represent the submitting entity when it is not the same as the reporting entity. This extension is used when the Receiver is interested in getting vendor information in the report.) + */ + public Reference getReportingVendor() { + if (this.reportingVendor == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create MeasureReport.reportingVendor"); + else if (Configuration.doAutoCreate()) + this.reportingVendor = new Reference(); // cc + return this.reportingVendor; + } + + public boolean hasReportingVendor() { + return this.reportingVendor != null && !this.reportingVendor.isEmpty(); + } + + /** + * @param value {@link #reportingVendor} (A reference to the vendor who queried the data, calculated results and/or generated the report. The ‘reporting vendor’ is intended to represent the submitting entity when it is not the same as the reporting entity. This extension is used when the Receiver is interested in getting vendor information in the report.) + */ + public MeasureReport setReportingVendor(Reference value) { + this.reportingVendor = value; + return this; + } + /** * @return {@link #period} (The reporting period for which the report was calculated.) */ @@ -2435,6 +3040,30 @@ public class MeasureReport extends DomainResource { return this; } + /** + * @return {@link #scoring} (Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented. It is expected to be the same as the scoring element on the referenced Measure.) + */ + public CodeableConcept getScoring() { + if (this.scoring == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create MeasureReport.scoring"); + else if (Configuration.doAutoCreate()) + this.scoring = new CodeableConcept(); // cc + return this.scoring; + } + + public boolean hasScoring() { + return this.scoring != null && !this.scoring.isEmpty(); + } + + /** + * @param value {@link #scoring} (Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented. It is expected to be the same as the scoring element on the referenced Measure.) + */ + public MeasureReport setScoring(CodeableConcept value) { + this.scoring = value; + return this; + } + /** * @return {@link #improvementNotation} (Whether improvement in the measure is noted by an increase or decrease in the measure score.) */ @@ -2570,11 +3199,14 @@ public class MeasureReport extends DomainResource { children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this MeasureReport when it is represented in other formats or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier)); children.add(new Property("status", "code", "The MeasureReport status. No data will be available until the MeasureReport status is complete.", 0, 1, status)); children.add(new Property("type", "code", "The type of measure report. This may be an individual report, which provides the score for the measure for an individual member of the population; a subject-listing, which returns the list of members that meet the various criteria in the measure; a summary report, which returns a population count for each of the criteria in the measure; or a data-collection, which enables the MeasureReport to be used to exchange the data-of-interest for a quality measure.", 0, 1, type)); + children.add(new Property("dataUpdateType", "code", "Indicates whether the data submitted in an data-exchange report represents a snapshot or incremental update. A snapshot update replaces all previously submitted data for the receiver, whereas an incremental update represents only updated and/or changed data and should be applied as a differential update to the existing submitted data for the receiver.", 0, 1, dataUpdateType)); children.add(new Property("measure", "canonical(Measure)", "A reference to the Measure that was calculated to produce this report.", 0, 1, measure)); children.add(new Property("subject", "Reference(Patient|Practitioner|PractitionerRole|Location|Device|RelatedPerson|Group)", "Optional subject identifying the individual or individuals the report is for.", 0, 1, subject)); children.add(new Property("date", "dateTime", "The date this measure report was generated.", 0, 1, date)); - children.add(new Property("reporter", "Reference(Practitioner|PractitionerRole|Location|Organization)", "The individual, location, or organization that is reporting the data.", 0, 1, reporter)); + children.add(new Property("reporter", "Reference(Practitioner|PractitionerRole|Location|Organization|Group)", "The individual, location, or organization that is reporting the data.", 0, 1, reporter)); + children.add(new Property("reportingVendor", "Reference(Organization)", "A reference to the vendor who queried the data, calculated results and/or generated the report. The ‘reporting vendor’ is intended to represent the submitting entity when it is not the same as the reporting entity. This extension is used when the Receiver is interested in getting vendor information in the report.", 0, 1, reportingVendor)); children.add(new Property("period", "Period", "The reporting period for which the report was calculated.", 0, 1, period)); + children.add(new Property("scoring", "CodeableConcept", "Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented. It is expected to be the same as the scoring element on the referenced Measure.", 0, 1, scoring)); children.add(new Property("improvementNotation", "CodeableConcept", "Whether improvement in the measure is noted by an increase or decrease in the measure score.", 0, 1, improvementNotation)); children.add(new Property("group", "", "The results of the calculation, one for each population group in the measure.", 0, java.lang.Integer.MAX_VALUE, group)); children.add(new Property("evaluatedResource", "Reference(Any)", "A reference to a Bundle containing the Resources that were used in the calculation of this measure.", 0, java.lang.Integer.MAX_VALUE, evaluatedResource)); @@ -2586,11 +3218,14 @@ public class MeasureReport extends DomainResource { case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this MeasureReport when it is represented in other formats or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier); case -892481550: /*status*/ return new Property("status", "code", "The MeasureReport status. No data will be available until the MeasureReport status is complete.", 0, 1, status); case 3575610: /*type*/ return new Property("type", "code", "The type of measure report. This may be an individual report, which provides the score for the measure for an individual member of the population; a subject-listing, which returns the list of members that meet the various criteria in the measure; a summary report, which returns a population count for each of the criteria in the measure; or a data-collection, which enables the MeasureReport to be used to exchange the data-of-interest for a quality measure.", 0, 1, type); + case -425890067: /*dataUpdateType*/ return new Property("dataUpdateType", "code", "Indicates whether the data submitted in an data-exchange report represents a snapshot or incremental update. A snapshot update replaces all previously submitted data for the receiver, whereas an incremental update represents only updated and/or changed data and should be applied as a differential update to the existing submitted data for the receiver.", 0, 1, dataUpdateType); case 938321246: /*measure*/ return new Property("measure", "canonical(Measure)", "A reference to the Measure that was calculated to produce this report.", 0, 1, measure); case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Practitioner|PractitionerRole|Location|Device|RelatedPerson|Group)", "Optional subject identifying the individual or individuals the report is for.", 0, 1, subject); case 3076014: /*date*/ return new Property("date", "dateTime", "The date this measure report was generated.", 0, 1, date); - case -427039519: /*reporter*/ return new Property("reporter", "Reference(Practitioner|PractitionerRole|Location|Organization)", "The individual, location, or organization that is reporting the data.", 0, 1, reporter); + case -427039519: /*reporter*/ return new Property("reporter", "Reference(Practitioner|PractitionerRole|Location|Organization|Group)", "The individual, location, or organization that is reporting the data.", 0, 1, reporter); + case 581336342: /*reportingVendor*/ return new Property("reportingVendor", "Reference(Organization)", "A reference to the vendor who queried the data, calculated results and/or generated the report. The ‘reporting vendor’ is intended to represent the submitting entity when it is not the same as the reporting entity. This extension is used when the Receiver is interested in getting vendor information in the report.", 0, 1, reportingVendor); case -991726143: /*period*/ return new Property("period", "Period", "The reporting period for which the report was calculated.", 0, 1, period); + case 1924005583: /*scoring*/ return new Property("scoring", "CodeableConcept", "Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented. It is expected to be the same as the scoring element on the referenced Measure.", 0, 1, scoring); case -2085456136: /*improvementNotation*/ return new Property("improvementNotation", "CodeableConcept", "Whether improvement in the measure is noted by an increase or decrease in the measure score.", 0, 1, improvementNotation); case 98629247: /*group*/ return new Property("group", "", "The results of the calculation, one for each population group in the measure.", 0, java.lang.Integer.MAX_VALUE, group); case -1056771047: /*evaluatedResource*/ return new Property("evaluatedResource", "Reference(Any)", "A reference to a Bundle containing the Resources that were used in the calculation of this measure.", 0, java.lang.Integer.MAX_VALUE, evaluatedResource); @@ -2605,11 +3240,14 @@ public class MeasureReport extends DomainResource { case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration + case -425890067: /*dataUpdateType*/ return this.dataUpdateType == null ? new Base[0] : new Base[] {this.dataUpdateType}; // Enumeration case 938321246: /*measure*/ return this.measure == null ? new Base[0] : new Base[] {this.measure}; // CanonicalType case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType case -427039519: /*reporter*/ return this.reporter == null ? new Base[0] : new Base[] {this.reporter}; // Reference + case 581336342: /*reportingVendor*/ return this.reportingVendor == null ? new Base[0] : new Base[] {this.reportingVendor}; // Reference case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period + case 1924005583: /*scoring*/ return this.scoring == null ? new Base[0] : new Base[] {this.scoring}; // CodeableConcept case -2085456136: /*improvementNotation*/ return this.improvementNotation == null ? new Base[0] : new Base[] {this.improvementNotation}; // CodeableConcept case 98629247: /*group*/ return this.group == null ? new Base[0] : this.group.toArray(new Base[this.group.size()]); // MeasureReportGroupComponent case -1056771047: /*evaluatedResource*/ return this.evaluatedResource == null ? new Base[0] : this.evaluatedResource.toArray(new Base[this.evaluatedResource.size()]); // Reference @@ -2632,6 +3270,10 @@ public class MeasureReport extends DomainResource { value = new MeasureReportTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); this.type = (Enumeration) value; // Enumeration return value; + case -425890067: // dataUpdateType + value = new SubmitDataUpdateTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.dataUpdateType = (Enumeration) value; // Enumeration + return value; case 938321246: // measure this.measure = TypeConvertor.castToCanonical(value); // CanonicalType return value; @@ -2644,9 +3286,15 @@ public class MeasureReport extends DomainResource { case -427039519: // reporter this.reporter = TypeConvertor.castToReference(value); // Reference return value; + case 581336342: // reportingVendor + this.reportingVendor = TypeConvertor.castToReference(value); // Reference + return value; case -991726143: // period this.period = TypeConvertor.castToPeriod(value); // Period return value; + case 1924005583: // scoring + this.scoring = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; case -2085456136: // improvementNotation this.improvementNotation = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; @@ -2671,6 +3319,9 @@ public class MeasureReport extends DomainResource { } else if (name.equals("type")) { value = new MeasureReportTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); this.type = (Enumeration) value; // Enumeration + } else if (name.equals("dataUpdateType")) { + value = new SubmitDataUpdateTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.dataUpdateType = (Enumeration) value; // Enumeration } else if (name.equals("measure")) { this.measure = TypeConvertor.castToCanonical(value); // CanonicalType } else if (name.equals("subject")) { @@ -2679,8 +3330,12 @@ public class MeasureReport extends DomainResource { this.date = TypeConvertor.castToDateTime(value); // DateTimeType } else if (name.equals("reporter")) { this.reporter = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("reportingVendor")) { + this.reportingVendor = TypeConvertor.castToReference(value); // Reference } else if (name.equals("period")) { this.period = TypeConvertor.castToPeriod(value); // Period + } else if (name.equals("scoring")) { + this.scoring = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("improvementNotation")) { this.improvementNotation = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("group")) { @@ -2698,11 +3353,14 @@ public class MeasureReport extends DomainResource { case -1618432855: return addIdentifier(); case -892481550: return getStatusElement(); case 3575610: return getTypeElement(); + case -425890067: return getDataUpdateTypeElement(); case 938321246: return getMeasureElement(); case -1867885268: return getSubject(); case 3076014: return getDateElement(); case -427039519: return getReporter(); + case 581336342: return getReportingVendor(); case -991726143: return getPeriod(); + case 1924005583: return getScoring(); case -2085456136: return getImprovementNotation(); case 98629247: return addGroup(); case -1056771047: return addEvaluatedResource(); @@ -2717,11 +3375,14 @@ public class MeasureReport extends DomainResource { case -1618432855: /*identifier*/ return new String[] {"Identifier"}; case -892481550: /*status*/ return new String[] {"code"}; case 3575610: /*type*/ return new String[] {"code"}; + case -425890067: /*dataUpdateType*/ return new String[] {"code"}; case 938321246: /*measure*/ return new String[] {"canonical"}; case -1867885268: /*subject*/ return new String[] {"Reference"}; case 3076014: /*date*/ return new String[] {"dateTime"}; case -427039519: /*reporter*/ return new String[] {"Reference"}; + case 581336342: /*reportingVendor*/ return new String[] {"Reference"}; case -991726143: /*period*/ return new String[] {"Period"}; + case 1924005583: /*scoring*/ return new String[] {"CodeableConcept"}; case -2085456136: /*improvementNotation*/ return new String[] {"CodeableConcept"}; case 98629247: /*group*/ return new String[] {}; case -1056771047: /*evaluatedResource*/ return new String[] {"Reference"}; @@ -2741,6 +3402,9 @@ public class MeasureReport extends DomainResource { else if (name.equals("type")) { throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.type"); } + else if (name.equals("dataUpdateType")) { + throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.dataUpdateType"); + } else if (name.equals("measure")) { throw new FHIRException("Cannot call addChild on a primitive type MeasureReport.measure"); } @@ -2755,10 +3419,18 @@ public class MeasureReport extends DomainResource { this.reporter = new Reference(); return this.reporter; } + else if (name.equals("reportingVendor")) { + this.reportingVendor = new Reference(); + return this.reportingVendor; + } else if (name.equals("period")) { this.period = new Period(); return this.period; } + else if (name.equals("scoring")) { + this.scoring = new CodeableConcept(); + return this.scoring; + } else if (name.equals("improvementNotation")) { this.improvementNotation = new CodeableConcept(); return this.improvementNotation; @@ -2793,11 +3465,14 @@ public class MeasureReport extends DomainResource { }; dst.status = status == null ? null : status.copy(); dst.type = type == null ? null : type.copy(); + dst.dataUpdateType = dataUpdateType == null ? null : dataUpdateType.copy(); dst.measure = measure == null ? null : measure.copy(); dst.subject = subject == null ? null : subject.copy(); dst.date = date == null ? null : date.copy(); dst.reporter = reporter == null ? null : reporter.copy(); + dst.reportingVendor = reportingVendor == null ? null : reportingVendor.copy(); dst.period = period == null ? null : period.copy(); + dst.scoring = scoring == null ? null : scoring.copy(); dst.improvementNotation = improvementNotation == null ? null : improvementNotation.copy(); if (group != null) { dst.group = new ArrayList(); @@ -2823,8 +3498,10 @@ public class MeasureReport extends DomainResource { return false; MeasureReport o = (MeasureReport) other_; return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(type, o.type, true) - && compareDeep(measure, o.measure, true) && compareDeep(subject, o.subject, true) && compareDeep(date, o.date, true) - && compareDeep(reporter, o.reporter, true) && compareDeep(period, o.period, true) && compareDeep(improvementNotation, o.improvementNotation, true) + && compareDeep(dataUpdateType, o.dataUpdateType, true) && compareDeep(measure, o.measure, true) + && compareDeep(subject, o.subject, true) && compareDeep(date, o.date, true) && compareDeep(reporter, o.reporter, true) + && compareDeep(reportingVendor, o.reportingVendor, true) && compareDeep(period, o.period, true) + && compareDeep(scoring, o.scoring, true) && compareDeep(improvementNotation, o.improvementNotation, true) && compareDeep(group, o.group, true) && compareDeep(evaluatedResource, o.evaluatedResource, true) ; } @@ -2836,14 +3513,14 @@ public class MeasureReport extends DomainResource { if (!(other_ instanceof MeasureReport)) return false; MeasureReport o = (MeasureReport) other_; - return compareValues(status, o.status, true) && compareValues(type, o.type, true) && compareValues(measure, o.measure, true) - && compareValues(date, o.date, true); + return compareValues(status, o.status, true) && compareValues(type, o.type, true) && compareValues(dataUpdateType, o.dataUpdateType, true) + && compareValues(measure, o.measure, true) && compareValues(date, o.date, true); } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, type - , measure, subject, date, reporter, period, improvementNotation, group, evaluatedResource - ); + , dataUpdateType, measure, subject, date, reporter, reportingVendor, period, scoring + , improvementNotation, group, evaluatedResource); } @Override @@ -2879,7 +3556,7 @@ public class MeasureReport extends DomainResource { * Path: MeasureReport.evaluatedResource
*

*/ - @SearchParamDefinition(name="evaluated-resource", path="MeasureReport.evaluatedResource", description="An evaluated resource referenced by the measure report", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="evaluated-resource", path="MeasureReport.evaluatedResource", description="An evaluated resource referenced by the measure report", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_EVALUATED_RESOURCE = "evaluated-resource"; /** * Fluent Client search parameter constant for evaluated-resource @@ -2951,7 +3628,7 @@ public class MeasureReport extends DomainResource { * Path: MeasureReport.subject.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="MeasureReport.subject.where(resolve() is Patient)", description="The identity of a patient to search for individual measure report results for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } ) + @SearchParamDefinition(name="patient", path="MeasureReport.subject.where(resolve() is Patient)", description="The identity of a patient to search for individual measure report results for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Device.class, Group.class, Location.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -2997,7 +3674,7 @@ public class MeasureReport extends DomainResource { * Path: MeasureReport.reporter
*

*/ - @SearchParamDefinition(name="reporter", path="MeasureReport.reporter", description="The reporter to return measure report results for", type="reference", target={Location.class, Organization.class, Practitioner.class, PractitionerRole.class } ) + @SearchParamDefinition(name="reporter", path="MeasureReport.reporter", description="The reporter to return measure report results for", type="reference", target={Group.class, Location.class, Organization.class, Practitioner.class, PractitionerRole.class } ) public static final String SP_REPORTER = "reporter"; /** * Fluent Client search parameter constant for reporter diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Medication.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Medication.java index 792f99dfb..056a8abdb 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Medication.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Medication.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -89,7 +89,6 @@ public class Medication extends DomainResource { case ACTIVE: return "active"; case INACTIVE: return "inactive"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -98,7 +97,6 @@ public class Medication extends DomainResource { case ACTIVE: return "http://hl7.org/fhir/CodeSystem/medication-status"; case INACTIVE: return "http://hl7.org/fhir/CodeSystem/medication-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/CodeSystem/medication-status"; - case NULL: return null; default: return "?"; } } @@ -107,7 +105,6 @@ public class Medication extends DomainResource { case ACTIVE: return "The medication is available for use."; case INACTIVE: return "The medication is not available for use."; case ENTEREDINERROR: return "The medication was entered in error."; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class Medication extends DomainResource { case ACTIVE: return "Active"; case INACTIVE: return "Inactive"; case ENTEREDINERROR: return "Entered in Error"; - case NULL: return null; default: return "?"; } } @@ -774,11 +770,11 @@ public class Medication extends DomainResource { protected Enumeration status; /** - * Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product. + * Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.  Describes the organization that is responsible for the manufacturing of the item and holds the registration to market the product in a jurisdiction.. This might not be the company that physically manufactures the product.  May be known as Market Authorization Holder. */ - @Child(name = "manufacturer", type = {Organization.class}, order=3, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Manufacturer of the item", formalDefinition="Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product." ) - protected Reference manufacturer; + @Child(name = "sponsor", type = {Organization.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Organization responsible for manufacturing the item", formalDefinition="Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.  Describes the organization that is responsible for the manufacturing of the item and holds the registration to market the product in a jurisdiction.. This might not be the company that physically manufactures the product.  May be known as Market Authorization Holder." ) + protected Reference sponsor; /** * Describes the form of the item. Powder; tablets; capsule. @@ -809,7 +805,7 @@ public class Medication extends DomainResource { @Description(shortDefinition="Details about packaged medications", formalDefinition="Information that only applies to packages (not products)." ) protected MedicationBatchComponent batch; - private static final long serialVersionUID = 1712967281L; + private static final long serialVersionUID = -730564602L; /** * Constructor @@ -945,26 +941,26 @@ public class Medication extends DomainResource { } /** - * @return {@link #manufacturer} (Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.) + * @return {@link #sponsor} (Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.  Describes the organization that is responsible for the manufacturing of the item and holds the registration to market the product in a jurisdiction.. This might not be the company that physically manufactures the product.  May be known as Market Authorization Holder.) */ - public Reference getManufacturer() { - if (this.manufacturer == null) + public Reference getSponsor() { + if (this.sponsor == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create Medication.manufacturer"); + throw new Error("Attempt to auto-create Medication.sponsor"); else if (Configuration.doAutoCreate()) - this.manufacturer = new Reference(); // cc - return this.manufacturer; + this.sponsor = new Reference(); // cc + return this.sponsor; } - public boolean hasManufacturer() { - return this.manufacturer != null && !this.manufacturer.isEmpty(); + public boolean hasSponsor() { + return this.sponsor != null && !this.sponsor.isEmpty(); } /** - * @param value {@link #manufacturer} (Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.) + * @param value {@link #sponsor} (Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.  Describes the organization that is responsible for the manufacturing of the item and holds the registration to market the product in a jurisdiction.. This might not be the company that physically manufactures the product.  May be known as Market Authorization Holder.) */ - public Medication setManufacturer(Reference value) { - this.manufacturer = value; + public Medication setSponsor(Reference value) { + this.sponsor = value; return this; } @@ -1098,7 +1094,7 @@ public class Medication extends DomainResource { children.add(new Property("identifier", "Identifier", "Business identifier for this medication.", 0, java.lang.Integer.MAX_VALUE, identifier)); children.add(new Property("code", "CodeableConcept", "A code (or set of codes) that specify this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems.", 0, 1, code)); children.add(new Property("status", "code", "A code to indicate if the medication is in active use.", 0, 1, status)); - children.add(new Property("manufacturer", "Reference(Organization)", "Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.", 0, 1, manufacturer)); + children.add(new Property("sponsor", "Reference(Organization)", "Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.  Describes the organization that is responsible for the manufacturing of the item and holds the registration to market the product in a jurisdiction.. This might not be the company that physically manufactures the product.  May be known as Market Authorization Holder.", 0, 1, sponsor)); children.add(new Property("doseForm", "CodeableConcept", "Describes the form of the item. Powder; tablets; capsule.", 0, 1, doseForm)); children.add(new Property("amount", "Ratio", "Specific amount of the drug in the packaged product. For example, when specifying a product that has the same strength (For example, Insulin glargine 100 unit per mL solution for injection), this attribute provides additional clarification of the package amount (For example, 3 mL, 10mL, etc.).", 0, 1, amount)); children.add(new Property("ingredient", "", "Identifies a particular constituent of interest in the product.", 0, java.lang.Integer.MAX_VALUE, ingredient)); @@ -1111,7 +1107,7 @@ public class Medication extends DomainResource { case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifier for this medication.", 0, java.lang.Integer.MAX_VALUE, identifier); case 3059181: /*code*/ return new Property("code", "CodeableConcept", "A code (or set of codes) that specify this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems.", 0, 1, code); case -892481550: /*status*/ return new Property("status", "code", "A code to indicate if the medication is in active use.", 0, 1, status); - case -1969347631: /*manufacturer*/ return new Property("manufacturer", "Reference(Organization)", "Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.", 0, 1, manufacturer); + case -1998892262: /*sponsor*/ return new Property("sponsor", "Reference(Organization)", "Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.  Describes the organization that is responsible for the manufacturing of the item and holds the registration to market the product in a jurisdiction.. This might not be the company that physically manufactures the product.  May be known as Market Authorization Holder.", 0, 1, sponsor); case 1303858817: /*doseForm*/ return new Property("doseForm", "CodeableConcept", "Describes the form of the item. Powder; tablets; capsule.", 0, 1, doseForm); case -1413853096: /*amount*/ return new Property("amount", "Ratio", "Specific amount of the drug in the packaged product. For example, when specifying a product that has the same strength (For example, Insulin glargine 100 unit per mL solution for injection), this attribute provides additional clarification of the package amount (For example, 3 mL, 10mL, etc.).", 0, 1, amount); case -206409263: /*ingredient*/ return new Property("ingredient", "", "Identifies a particular constituent of interest in the product.", 0, java.lang.Integer.MAX_VALUE, ingredient); @@ -1127,7 +1123,7 @@ public class Medication extends DomainResource { case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration - case -1969347631: /*manufacturer*/ return this.manufacturer == null ? new Base[0] : new Base[] {this.manufacturer}; // Reference + case -1998892262: /*sponsor*/ return this.sponsor == null ? new Base[0] : new Base[] {this.sponsor}; // Reference case 1303858817: /*doseForm*/ return this.doseForm == null ? new Base[0] : new Base[] {this.doseForm}; // CodeableConcept case -1413853096: /*amount*/ return this.amount == null ? new Base[0] : new Base[] {this.amount}; // Ratio case -206409263: /*ingredient*/ return this.ingredient == null ? new Base[0] : this.ingredient.toArray(new Base[this.ingredient.size()]); // MedicationIngredientComponent @@ -1150,8 +1146,8 @@ public class Medication extends DomainResource { value = new MedicationStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); this.status = (Enumeration) value; // Enumeration return value; - case -1969347631: // manufacturer - this.manufacturer = TypeConvertor.castToReference(value); // Reference + case -1998892262: // sponsor + this.sponsor = TypeConvertor.castToReference(value); // Reference return value; case 1303858817: // doseForm this.doseForm = TypeConvertor.castToCodeableConcept(value); // CodeableConcept @@ -1179,8 +1175,8 @@ public class Medication extends DomainResource { } else if (name.equals("status")) { value = new MedicationStatusCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); this.status = (Enumeration) value; // Enumeration - } else if (name.equals("manufacturer")) { - this.manufacturer = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("sponsor")) { + this.sponsor = TypeConvertor.castToReference(value); // Reference } else if (name.equals("doseForm")) { this.doseForm = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("amount")) { @@ -1200,7 +1196,7 @@ public class Medication extends DomainResource { case -1618432855: return addIdentifier(); case 3059181: return getCode(); case -892481550: return getStatusElement(); - case -1969347631: return getManufacturer(); + case -1998892262: return getSponsor(); case 1303858817: return getDoseForm(); case -1413853096: return getAmount(); case -206409263: return addIngredient(); @@ -1216,7 +1212,7 @@ public class Medication extends DomainResource { case -1618432855: /*identifier*/ return new String[] {"Identifier"}; case 3059181: /*code*/ return new String[] {"CodeableConcept"}; case -892481550: /*status*/ return new String[] {"code"}; - case -1969347631: /*manufacturer*/ return new String[] {"Reference"}; + case -1998892262: /*sponsor*/ return new String[] {"Reference"}; case 1303858817: /*doseForm*/ return new String[] {"CodeableConcept"}; case -1413853096: /*amount*/ return new String[] {"Ratio"}; case -206409263: /*ingredient*/ return new String[] {}; @@ -1238,9 +1234,9 @@ public class Medication extends DomainResource { else if (name.equals("status")) { throw new FHIRException("Cannot call addChild on a primitive type Medication.status"); } - else if (name.equals("manufacturer")) { - this.manufacturer = new Reference(); - return this.manufacturer; + else if (name.equals("sponsor")) { + this.sponsor = new Reference(); + return this.sponsor; } else if (name.equals("doseForm")) { this.doseForm = new CodeableConcept(); @@ -1281,7 +1277,7 @@ public class Medication extends DomainResource { }; dst.code = code == null ? null : code.copy(); dst.status = status == null ? null : status.copy(); - dst.manufacturer = manufacturer == null ? null : manufacturer.copy(); + dst.sponsor = sponsor == null ? null : sponsor.copy(); dst.doseForm = doseForm == null ? null : doseForm.copy(); dst.amount = amount == null ? null : amount.copy(); if (ingredient != null) { @@ -1304,7 +1300,7 @@ public class Medication extends DomainResource { return false; Medication o = (Medication) other_; return compareDeep(identifier, o.identifier, true) && compareDeep(code, o.code, true) && compareDeep(status, o.status, true) - && compareDeep(manufacturer, o.manufacturer, true) && compareDeep(doseForm, o.doseForm, true) && compareDeep(amount, o.amount, true) + && compareDeep(sponsor, o.sponsor, true) && compareDeep(doseForm, o.doseForm, true) && compareDeep(amount, o.amount, true) && compareDeep(ingredient, o.ingredient, true) && compareDeep(batch, o.batch, true); } @@ -1320,7 +1316,7 @@ public class Medication extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, code, status - , manufacturer, doseForm, amount, ingredient, batch); + , sponsor, doseForm, amount, ingredient, batch); } @Override @@ -1328,6 +1324,58 @@ public class Medication extends DomainResource { return ResourceType.Medication; } + /** + * Search parameter: code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + /** * Search parameter: expiration-date *

@@ -1388,26 +1436,6 @@ public class Medication extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - /** - * Search parameter: ingredient-code - *

- * Description: Returns medications for this ingredient code
- * Type: token
- * Path: Medication.ingredient.item.concept
- *

- */ - @SearchParamDefinition(name="ingredient-code", path="Medication.ingredient.item.concept", description="Returns medications for this ingredient code", type="token" ) - public static final String SP_INGREDIENT_CODE = "ingredient-code"; - /** - * Fluent Client search parameter constant for ingredient-code - *

- * Description: Returns medications for this ingredient code
- * Type: token
- * Path: Medication.ingredient.item.concept
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam INGREDIENT_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_INGREDIENT_CODE); - /** * Search parameter: ingredient *

@@ -1434,6 +1462,26 @@ public class Medication extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_INGREDIENT = new ca.uhn.fhir.model.api.Include("Medication:ingredient").toLocked(); + /** + * Search parameter: ingredient-code + *

+ * Description: Returns medications for this ingredient code
+ * Type: token
+ * Path: Medication.ingredient.item.concept
+ *

+ */ + @SearchParamDefinition(name="ingredient-code", path="Medication.ingredient.item.concept", description="Returns medications for this ingredient code", type="token" ) + public static final String SP_INGREDIENT_CODE = "ingredient-code"; + /** + * Fluent Client search parameter constant for ingredient-code + *

+ * Description: Returns medications for this ingredient code
+ * Type: token
+ * Path: Medication.ingredient.item.concept
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam INGREDIENT_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_INGREDIENT_CODE); + /** * Search parameter: lot-number *

@@ -1455,30 +1503,30 @@ public class Medication extends DomainResource { public static final ca.uhn.fhir.rest.gclient.TokenClientParam LOT_NUMBER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_LOT_NUMBER); /** - * Search parameter: manufacturer + * Search parameter: sponsor *

* Description: Returns medications made or sold for this manufacturer
* Type: reference
- * Path: Medication.manufacturer
+ * Path: Medication.sponsor
*

*/ - @SearchParamDefinition(name="manufacturer", path="Medication.manufacturer", description="Returns medications made or sold for this manufacturer", type="reference", target={Organization.class } ) - public static final String SP_MANUFACTURER = "manufacturer"; + @SearchParamDefinition(name="sponsor", path="Medication.sponsor", description="Returns medications made or sold for this manufacturer", type="reference", target={Organization.class } ) + public static final String SP_SPONSOR = "sponsor"; /** - * Fluent Client search parameter constant for manufacturer + * Fluent Client search parameter constant for sponsor *

* Description: Returns medications made or sold for this manufacturer
* Type: reference
- * Path: Medication.manufacturer
+ * Path: Medication.sponsor
*

*/ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MANUFACTURER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_MANUFACTURER); + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SPONSOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SPONSOR); /** * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Medication:manufacturer". + * the path value of "Medication:sponsor". */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_MANUFACTURER = new ca.uhn.fhir.model.api.Include("Medication:manufacturer").toLocked(); + public static final ca.uhn.fhir.model.api.Include INCLUDE_SPONSOR = new ca.uhn.fhir.model.api.Include("Medication:sponsor").toLocked(); /** * Search parameter: status @@ -1500,58 +1548,6 @@ public class Medication extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); - /** - * Search parameter: code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) - public static final String SP_CODE = "code"; - /** - * Fluent Client search parameter constant for code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationAdministration.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationAdministration.java index 902a98588..bb55533e7 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationAdministration.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationAdministration.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -117,7 +117,6 @@ public class MedicationAdministration extends DomainResource { case ENTEREDINERROR: return "entered-in-error"; case STOPPED: return "stopped"; case UNKNOWN: return "unknown"; - case NULL: return null; default: return "?"; } } @@ -130,7 +129,6 @@ public class MedicationAdministration extends DomainResource { case ENTEREDINERROR: return "http://hl7.org/fhir/CodeSystem/medication-admin-status"; case STOPPED: return "http://hl7.org/fhir/CodeSystem/medication-admin-status"; case UNKNOWN: return "http://hl7.org/fhir/CodeSystem/medication-admin-status"; - case NULL: return null; default: return "?"; } } @@ -143,7 +141,6 @@ public class MedicationAdministration extends DomainResource { case ENTEREDINERROR: return "The administration was entered in error and therefore nullified."; case STOPPED: return "Actions implied by the administration have been permanently halted, before all of them occurred."; case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this request. Note: This concept is not to be used for 'other' - one of the listed statuses is presumed to apply, it's just not known which one."; - case NULL: return null; default: return "?"; } } @@ -156,7 +153,6 @@ public class MedicationAdministration extends DomainResource { case ENTEREDINERROR: return "Entered in Error"; case STOPPED: return "Stopped"; case UNKNOWN: return "Unknown"; - case NULL: return null; default: return "?"; } } @@ -2510,176 +2506,6 @@ public class MedicationAdministration extends DomainResource { return ResourceType.MedicationAdministration; } - /** - * Search parameter: device - *

- * Description: Return administrations with this administration device identity
- * Type: reference
- * Path: MedicationAdministration.device
- *

- */ - @SearchParamDefinition(name="device", path="MedicationAdministration.device", description="Return administrations with this administration device identity", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device") }, target={Device.class } ) - public static final String SP_DEVICE = "device"; - /** - * Fluent Client search parameter constant for device - *

- * Description: Return administrations with this administration device identity
- * Type: reference
- * Path: MedicationAdministration.device
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DEVICE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DEVICE); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationAdministration:device". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_DEVICE = new ca.uhn.fhir.model.api.Include("MedicationAdministration:device").toLocked(); - - /** - * Search parameter: performer - *

- * Description: The identity of the individual who administered the medication
- * Type: reference
- * Path: MedicationAdministration.performer.actor
- *

- */ - @SearchParamDefinition(name="performer", path="MedicationAdministration.performer.actor", description="The identity of the individual who administered the medication", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Device.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) - public static final String SP_PERFORMER = "performer"; - /** - * Fluent Client search parameter constant for performer - *

- * Description: The identity of the individual who administered the medication
- * Type: reference
- * Path: MedicationAdministration.performer.actor
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PERFORMER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PERFORMER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationAdministration:performer". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PERFORMER = new ca.uhn.fhir.model.api.Include("MedicationAdministration:performer").toLocked(); - - /** - * Search parameter: reason-given-code - *

- * Description: Reasons for administering the medication
- * Type: token
- * Path: MedicationAdministration.reason.concept
- *

- */ - @SearchParamDefinition(name="reason-given-code", path="MedicationAdministration.reason.concept", description="Reasons for administering the medication", type="token" ) - public static final String SP_REASON_GIVEN_CODE = "reason-given-code"; - /** - * Fluent Client search parameter constant for reason-given-code - *

- * Description: Reasons for administering the medication
- * Type: token
- * Path: MedicationAdministration.reason.concept
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam REASON_GIVEN_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REASON_GIVEN_CODE); - - /** - * Search parameter: reason-given - *

- * Description: Reference to a resource (by instance)
- * Type: reference
- * Path: MedicationAdministration.reason.reference
- *

- */ - @SearchParamDefinition(name="reason-given", path="MedicationAdministration.reason.reference", description="Reference to a resource (by instance)", type="reference" ) - public static final String SP_REASON_GIVEN = "reason-given"; - /** - * Fluent Client search parameter constant for reason-given - *

- * Description: Reference to a resource (by instance)
- * Type: reference
- * Path: MedicationAdministration.reason.reference
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REASON_GIVEN = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REASON_GIVEN); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationAdministration:reason-given". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_REASON_GIVEN = new ca.uhn.fhir.model.api.Include("MedicationAdministration:reason-given").toLocked(); - - /** - * Search parameter: reason-not-given - *

- * Description: Reasons for not administering the medication
- * Type: token
- * Path: MedicationAdministration.statusReason
- *

- */ - @SearchParamDefinition(name="reason-not-given", path="MedicationAdministration.statusReason", description="Reasons for not administering the medication", type="token" ) - public static final String SP_REASON_NOT_GIVEN = "reason-not-given"; - /** - * Fluent Client search parameter constant for reason-not-given - *

- * Description: Reasons for not administering the medication
- * Type: token
- * Path: MedicationAdministration.statusReason
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam REASON_NOT_GIVEN = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REASON_NOT_GIVEN); - - /** - * Search parameter: request - *

- * Description: The identity of a request to list administrations from
- * Type: reference
- * Path: MedicationAdministration.request
- *

- */ - @SearchParamDefinition(name="request", path="MedicationAdministration.request", description="The identity of a request to list administrations from", type="reference", target={MedicationRequest.class } ) - public static final String SP_REQUEST = "request"; - /** - * Fluent Client search parameter constant for request - *

- * Description: The identity of a request to list administrations from
- * Type: reference
- * Path: MedicationAdministration.request
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUEST = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUEST); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationAdministration:request". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUEST = new ca.uhn.fhir.model.api.Include("MedicationAdministration:request").toLocked(); - - /** - * Search parameter: subject - *

- * Description: The identity of the individual or group to list administrations for
- * Type: reference
- * Path: MedicationAdministration.subject
- *

- */ - @SearchParamDefinition(name="subject", path="MedicationAdministration.subject", description="The identity of the individual or group to list administrations for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_SUBJECT = "subject"; - /** - * Fluent Client search parameter constant for subject - *

- * Description: The identity of the individual or group to list administrations for
- * Type: reference
- * Path: MedicationAdministration.subject
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationAdministration:subject". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("MedicationAdministration:subject").toLocked(); - /** * Search parameter: code *

@@ -2752,7 +2578,7 @@ public class MedicationAdministration extends DomainResource { * [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare * [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier * [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID * [Immunization](immunization.html): Business identifier * [List](list.html): Business identifier * [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier @@ -2772,7 +2598,7 @@ public class MedicationAdministration extends DomainResource { * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
*

*/ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) public static final String SP_IDENTIFIER = "identifier"; /** * Fluent Client search parameter constant for identifier @@ -2794,7 +2620,7 @@ public class MedicationAdministration extends DomainResource { * [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare * [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier * [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID * [Immunization](immunization.html): Business identifier * [List](list.html): Business identifier * [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier @@ -2830,7 +2656,7 @@ public class MedicationAdministration extends DomainResource { * [Consent](consent.html): Who the consent applies to * [DetectedIssue](detectedissue.html): Associated patient * [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient +* [DeviceUsage](deviceusage.html): Search by subject - a patient * [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient * [DocumentManifest](documentmanifest.html): The subject of the set of documents * [DocumentReference](documentreference.html): Who/what is the subject of the document @@ -2855,10 +2681,10 @@ public class MedicationAdministration extends DomainResource { * [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
* Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
*

*/ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -2874,7 +2700,7 @@ public class MedicationAdministration extends DomainResource { * [Consent](consent.html): Who the consent applies to * [DetectedIssue](detectedissue.html): Associated patient * [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient +* [DeviceUsage](deviceusage.html): Search by subject - a patient * [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient * [DocumentManifest](documentmanifest.html): The subject of the set of documents * [DocumentReference](documentreference.html): Who/what is the subject of the document @@ -2899,7 +2725,7 @@ public class MedicationAdministration extends DomainResource { * [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for
* Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); @@ -2936,6 +2762,32 @@ public class MedicationAdministration extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + /** + * Search parameter: device + *

+ * Description: Return administrations with this administration device identity
+ * Type: reference
+ * Path: MedicationAdministration.device
+ *

+ */ + @SearchParamDefinition(name="device", path="MedicationAdministration.device", description="Return administrations with this administration device identity", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device") }, target={Device.class } ) + public static final String SP_DEVICE = "device"; + /** + * Fluent Client search parameter constant for device + *

+ * Description: Return administrations with this administration device identity
+ * Type: reference
+ * Path: MedicationAdministration.device
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DEVICE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DEVICE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "MedicationAdministration:device". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_DEVICE = new ca.uhn.fhir.model.api.Include("MedicationAdministration:device").toLocked(); + /** * Search parameter: encounter *

@@ -3008,6 +2860,124 @@ public class MedicationAdministration extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_MEDICATION = new ca.uhn.fhir.model.api.Include("MedicationAdministration:medication").toLocked(); + /** + * Search parameter: performer + *

+ * Description: The identity of the individual who administered the medication
+ * Type: reference
+ * Path: MedicationAdministration.performer.actor
+ *

+ */ + @SearchParamDefinition(name="performer", path="MedicationAdministration.performer.actor", description="The identity of the individual who administered the medication", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Device.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) + public static final String SP_PERFORMER = "performer"; + /** + * Fluent Client search parameter constant for performer + *

+ * Description: The identity of the individual who administered the medication
+ * Type: reference
+ * Path: MedicationAdministration.performer.actor
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PERFORMER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PERFORMER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "MedicationAdministration:performer". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PERFORMER = new ca.uhn.fhir.model.api.Include("MedicationAdministration:performer").toLocked(); + + /** + * Search parameter: reason-given + *

+ * Description: Reference to a resource (by instance)
+ * Type: reference
+ * Path: MedicationAdministration.reason.reference
+ *

+ */ + @SearchParamDefinition(name="reason-given", path="MedicationAdministration.reason.reference", description="Reference to a resource (by instance)", type="reference" ) + public static final String SP_REASON_GIVEN = "reason-given"; + /** + * Fluent Client search parameter constant for reason-given + *

+ * Description: Reference to a resource (by instance)
+ * Type: reference
+ * Path: MedicationAdministration.reason.reference
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REASON_GIVEN = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REASON_GIVEN); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "MedicationAdministration:reason-given". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_REASON_GIVEN = new ca.uhn.fhir.model.api.Include("MedicationAdministration:reason-given").toLocked(); + + /** + * Search parameter: reason-given-code + *

+ * Description: Reasons for administering the medication
+ * Type: token
+ * Path: MedicationAdministration.reason.concept
+ *

+ */ + @SearchParamDefinition(name="reason-given-code", path="MedicationAdministration.reason.concept", description="Reasons for administering the medication", type="token" ) + public static final String SP_REASON_GIVEN_CODE = "reason-given-code"; + /** + * Fluent Client search parameter constant for reason-given-code + *

+ * Description: Reasons for administering the medication
+ * Type: token
+ * Path: MedicationAdministration.reason.concept
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam REASON_GIVEN_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REASON_GIVEN_CODE); + + /** + * Search parameter: reason-not-given + *

+ * Description: Reasons for not administering the medication
+ * Type: token
+ * Path: MedicationAdministration.statusReason
+ *

+ */ + @SearchParamDefinition(name="reason-not-given", path="MedicationAdministration.statusReason", description="Reasons for not administering the medication", type="token" ) + public static final String SP_REASON_NOT_GIVEN = "reason-not-given"; + /** + * Fluent Client search parameter constant for reason-not-given + *

+ * Description: Reasons for not administering the medication
+ * Type: token
+ * Path: MedicationAdministration.statusReason
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam REASON_NOT_GIVEN = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REASON_NOT_GIVEN); + + /** + * Search parameter: request + *

+ * Description: The identity of a request to list administrations from
+ * Type: reference
+ * Path: MedicationAdministration.request
+ *

+ */ + @SearchParamDefinition(name="request", path="MedicationAdministration.request", description="The identity of a request to list administrations from", type="reference", target={MedicationRequest.class } ) + public static final String SP_REQUEST = "request"; + /** + * Fluent Client search parameter constant for request + *

+ * Description: The identity of a request to list administrations from
+ * Type: reference
+ * Path: MedicationAdministration.request
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUEST = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUEST); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "MedicationAdministration:request". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUEST = new ca.uhn.fhir.model.api.Include("MedicationAdministration:request").toLocked(); + /** * Search parameter: status *

@@ -3040,6 +3010,32 @@ public class MedicationAdministration extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); + /** + * Search parameter: subject + *

+ * Description: The identity of the individual or group to list administrations for
+ * Type: reference
+ * Path: MedicationAdministration.subject
+ *

+ */ + @SearchParamDefinition(name="subject", path="MedicationAdministration.subject", description="The identity of the individual or group to list administrations for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) + public static final String SP_SUBJECT = "subject"; + /** + * Fluent Client search parameter constant for subject + *

+ * Description: The identity of the individual or group to list administrations for
+ * Type: reference
+ * Path: MedicationAdministration.subject
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "MedicationAdministration:subject". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("MedicationAdministration:subject").toLocked(); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationDispense.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationDispense.java index d5e17493f..320deea0c 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationDispense.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationDispense.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -131,7 +131,6 @@ public class MedicationDispense extends DomainResource { case STOPPED: return "stopped"; case DECLINED: return "declined"; case UNKNOWN: return "unknown"; - case NULL: return null; default: return "?"; } } @@ -146,7 +145,6 @@ public class MedicationDispense extends DomainResource { case STOPPED: return "http://hl7.org/fhir/CodeSystem/medicationdispense-status"; case DECLINED: return "http://hl7.org/fhir/CodeSystem/medicationdispense-status"; case UNKNOWN: return "http://hl7.org/fhir/CodeSystem/medicationdispense-status"; - case NULL: return null; default: return "?"; } } @@ -161,7 +159,6 @@ public class MedicationDispense extends DomainResource { case STOPPED: return "Actions implied by the dispense have been permanently halted, before all of them occurred."; case DECLINED: return "The dispense was declined and not performed."; case UNKNOWN: return "The authoring system does not know which of the status values applies for this medication dispense. Note: this concept is not to be used for other - one of the listed statuses is presumed to apply, it's just now known which one."; - case NULL: return null; default: return "?"; } } @@ -176,7 +173,6 @@ public class MedicationDispense extends DomainResource { case STOPPED: return "Stopped"; case DECLINED: return "Declined"; case UNKNOWN: return "Unknown"; - case NULL: return null; default: return "?"; } } @@ -2646,6 +2642,306 @@ public class MedicationDispense extends DomainResource { return ResourceType.MedicationDispense; } + /** + * Search parameter: code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "MedicationDispense:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("MedicationDispense:patient").toLocked(); + + /** + * Search parameter: medication + *

+ * Description: Multiple Resources: + +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource +* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference +* [MedicationUsage](medicationusage.html): Return statements of this medication reference +
+ * Type: reference
+ * Path: MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference
+ *

+ */ + @SearchParamDefinition(name="medication", path="MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference", description="Multiple Resources: \r\n\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication reference\r\n", type="reference" ) + public static final String SP_MEDICATION = "medication"; + /** + * Fluent Client search parameter constant for medication + *

+ * Description: Multiple Resources: + +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource +* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference +* [MedicationUsage](medicationusage.html): Return statements of this medication reference +
+ * Type: reference
+ * Path: MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MEDICATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_MEDICATION); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "MedicationDispense:medication". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_MEDICATION = new ca.uhn.fhir.model.api.Include("MedicationDispense:medication").toLocked(); + + /** + * Search parameter: status + *

+ * Description: Multiple Resources: + +* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified) +* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status +* [MedicationRequest](medicationrequest.html): Status of the prescription +* [MedicationUsage](medicationusage.html): Return statements that match the given status +
+ * Type: token
+ * Path: MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status
+ *

+ */ + @SearchParamDefinition(name="status", path="MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status", description="Multiple Resources: \r\n\r\n* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified)\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status\r\n* [MedicationRequest](medicationrequest.html): Status of the prescription\r\n* [MedicationUsage](medicationusage.html): Return statements that match the given status\r\n", type="token" ) + public static final String SP_STATUS = "status"; + /** + * Fluent Client search parameter constant for status + *

+ * Description: Multiple Resources: + +* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified) +* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status +* [MedicationRequest](medicationrequest.html): Status of the prescription +* [MedicationUsage](medicationusage.html): Return statements that match the given status +
+ * Type: token
+ * Path: MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); + /** * Search parameter: destination *

@@ -2724,6 +3020,38 @@ public class MedicationDispense extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_PERFORMER = new ca.uhn.fhir.model.api.Include("MedicationDispense:performer").toLocked(); + /** + * Search parameter: prescription + *

+ * Description: Multiple Resources: + +* [MedicationDispense](medicationdispense.html): The identity of a prescription to list dispenses from +
+ * Type: reference
+ * Path: MedicationDispense.authorizingPrescription
+ *

+ */ + @SearchParamDefinition(name="prescription", path="MedicationDispense.authorizingPrescription", description="Multiple Resources: \r\n\r\n* [MedicationDispense](medicationdispense.html): The identity of a prescription to list dispenses from\r\n", type="reference", target={MedicationRequest.class } ) + public static final String SP_PRESCRIPTION = "prescription"; + /** + * Fluent Client search parameter constant for prescription + *

+ * Description: Multiple Resources: + +* [MedicationDispense](medicationdispense.html): The identity of a prescription to list dispenses from +
+ * Type: reference
+ * Path: MedicationDispense.authorizingPrescription
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRESCRIPTION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PRESCRIPTION); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "MedicationDispense:prescription". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PRESCRIPTION = new ca.uhn.fhir.model.api.Include("MedicationDispense:prescription").toLocked(); + /** * Search parameter: receiver *

@@ -2862,338 +3190,6 @@ public class MedicationDispense extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.DateClientParam WHENPREPARED = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_WHENPREPARED); - /** - * Search parameter: code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) - public static final String SP_CODE = "code"; - /** - * Fluent Client search parameter constant for code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationDispense:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("MedicationDispense:patient").toLocked(); - - /** - * Search parameter: medication - *

- * Description: Multiple Resources: - -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource -* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference -* [MedicationUsage](medicationusage.html): Return statements of this medication reference -
- * Type: reference
- * Path: MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference
- *

- */ - @SearchParamDefinition(name="medication", path="MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference", description="Multiple Resources: \r\n\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication reference\r\n", type="reference" ) - public static final String SP_MEDICATION = "medication"; - /** - * Fluent Client search parameter constant for medication - *

- * Description: Multiple Resources: - -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource -* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference -* [MedicationUsage](medicationusage.html): Return statements of this medication reference -
- * Type: reference
- * Path: MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MEDICATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_MEDICATION); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationDispense:medication". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_MEDICATION = new ca.uhn.fhir.model.api.Include("MedicationDispense:medication").toLocked(); - - /** - * Search parameter: prescription - *

- * Description: Multiple Resources: - -* [MedicationDispense](medicationdispense.html): The identity of a prescription to list dispenses from -
- * Type: reference
- * Path: MedicationDispense.authorizingPrescription
- *

- */ - @SearchParamDefinition(name="prescription", path="MedicationDispense.authorizingPrescription", description="Multiple Resources: \r\n\r\n* [MedicationDispense](medicationdispense.html): The identity of a prescription to list dispenses from\r\n", type="reference", target={MedicationRequest.class } ) - public static final String SP_PRESCRIPTION = "prescription"; - /** - * Fluent Client search parameter constant for prescription - *

- * Description: Multiple Resources: - -* [MedicationDispense](medicationdispense.html): The identity of a prescription to list dispenses from -
- * Type: reference
- * Path: MedicationDispense.authorizingPrescription
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRESCRIPTION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PRESCRIPTION); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationDispense:prescription". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PRESCRIPTION = new ca.uhn.fhir.model.api.Include("MedicationDispense:prescription").toLocked(); - - /** - * Search parameter: status - *

- * Description: Multiple Resources: - -* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified) -* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status -* [MedicationRequest](medicationrequest.html): Status of the prescription -* [MedicationUsage](medicationusage.html): Return statements that match the given status -
- * Type: token
- * Path: MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status
- *

- */ - @SearchParamDefinition(name="status", path="MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status", description="Multiple Resources: \r\n\r\n* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified)\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status\r\n* [MedicationRequest](medicationrequest.html): Status of the prescription\r\n* [MedicationUsage](medicationusage.html): Return statements that match the given status\r\n", type="token" ) - public static final String SP_STATUS = "status"; - /** - * Fluent Client search parameter constant for status - *

- * Description: Multiple Resources: - -* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified) -* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status -* [MedicationRequest](medicationrequest.html): Status of the prescription -* [MedicationUsage](medicationusage.html): Return statements that match the given status -
- * Type: token
- * Path: MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationKnowledge.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationKnowledge.java index 20b483a44..bd3202d85 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationKnowledge.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationKnowledge.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -89,7 +89,6 @@ public class MedicationKnowledge extends DomainResource { case ACTIVE: return "active"; case INACTIVE: return "inactive"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -98,7 +97,6 @@ public class MedicationKnowledge extends DomainResource { case ACTIVE: return "http://terminology.hl7.org/CodeSystem/medicationknowledge-status"; case INACTIVE: return "http://terminology.hl7.org/CodeSystem/medicationknowledge-status"; case ENTEREDINERROR: return "http://terminology.hl7.org/CodeSystem/medicationknowledge-status"; - case NULL: return null; default: return "?"; } } @@ -107,7 +105,6 @@ public class MedicationKnowledge extends DomainResource { case ACTIVE: return ""; case INACTIVE: return ""; case ENTEREDINERROR: return ""; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class MedicationKnowledge extends DomainResource { case ACTIVE: return "Active"; case INACTIVE: return "Inactive"; case ENTEREDINERROR: return "Entered in Error"; - case NULL: return null; default: return "?"; } } @@ -620,9 +616,10 @@ public class MedicationKnowledge extends DomainResource { /** * Indication of whether this ingredient affects the therapeutic action of the drug. */ - @Child(name = "isActive", type = {BooleanType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Child(name = "isActive", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Active ingredient indicator", formalDefinition="Indication of whether this ingredient affects the therapeutic action of the drug." ) - protected BooleanType isActive; + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/v3-RoleClassIngredientEntity") + protected CodeableConcept isActive; /** * Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet. This is expressed as a ratio where the numerator is 250mg and the denominator is 1 tablet but can also be expressed a quantity when the denominator is assumed to be 1 tablet. @@ -632,7 +629,7 @@ public class MedicationKnowledge extends DomainResource { @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/medication-ingredientstrength") protected DataType strength; - private static final long serialVersionUID = -979760018L; + private static final long serialVersionUID = 1717122893L; /** * Constructor @@ -674,50 +671,29 @@ public class MedicationKnowledge extends DomainResource { } /** - * @return {@link #isActive} (Indication of whether this ingredient affects the therapeutic action of the drug.). This is the underlying object with id, value and extensions. The accessor "getIsActive" gives direct access to the value + * @return {@link #isActive} (Indication of whether this ingredient affects the therapeutic action of the drug.) */ - public BooleanType getIsActiveElement() { + public CodeableConcept getIsActive() { if (this.isActive == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationKnowledgeIngredientComponent.isActive"); else if (Configuration.doAutoCreate()) - this.isActive = new BooleanType(); // bb + this.isActive = new CodeableConcept(); // cc return this.isActive; } - public boolean hasIsActiveElement() { - return this.isActive != null && !this.isActive.isEmpty(); - } - public boolean hasIsActive() { return this.isActive != null && !this.isActive.isEmpty(); } /** - * @param value {@link #isActive} (Indication of whether this ingredient affects the therapeutic action of the drug.). This is the underlying object with id, value and extensions. The accessor "getIsActive" gives direct access to the value + * @param value {@link #isActive} (Indication of whether this ingredient affects the therapeutic action of the drug.) */ - public MedicationKnowledgeIngredientComponent setIsActiveElement(BooleanType value) { + public MedicationKnowledgeIngredientComponent setIsActive(CodeableConcept value) { this.isActive = value; return this; } - /** - * @return Indication of whether this ingredient affects the therapeutic action of the drug. - */ - public boolean getIsActive() { - return this.isActive == null || this.isActive.isEmpty() ? false : this.isActive.getValue(); - } - - /** - * @param value Indication of whether this ingredient affects the therapeutic action of the drug. - */ - public MedicationKnowledgeIngredientComponent setIsActive(boolean value) { - if (this.isActive == null) - this.isActive = new BooleanType(); - this.isActive.setValue(value); - return this; - } - /** * @return {@link #strength} (Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet. This is expressed as a ratio where the numerator is 250mg and the denominator is 1 tablet but can also be expressed a quantity when the denominator is assumed to be 1 tablet.) */ @@ -787,7 +763,7 @@ public class MedicationKnowledge extends DomainResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("item", "CodeableReference(Ingredient)", "The actual ingredient - either a substance (simple ingredient) or another medication.", 0, 1, item)); - children.add(new Property("isActive", "boolean", "Indication of whether this ingredient affects the therapeutic action of the drug.", 0, 1, isActive)); + children.add(new Property("isActive", "CodeableConcept", "Indication of whether this ingredient affects the therapeutic action of the drug.", 0, 1, isActive)); children.add(new Property("strength[x]", "Ratio|CodeableConcept|Quantity", "Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet. This is expressed as a ratio where the numerator is 250mg and the denominator is 1 tablet but can also be expressed a quantity when the denominator is assumed to be 1 tablet.", 0, 1, strength)); } @@ -795,7 +771,7 @@ public class MedicationKnowledge extends DomainResource { public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case 3242771: /*item*/ return new Property("item", "CodeableReference(Ingredient)", "The actual ingredient - either a substance (simple ingredient) or another medication.", 0, 1, item); - case -748916528: /*isActive*/ return new Property("isActive", "boolean", "Indication of whether this ingredient affects the therapeutic action of the drug.", 0, 1, isActive); + case -748916528: /*isActive*/ return new Property("isActive", "CodeableConcept", "Indication of whether this ingredient affects the therapeutic action of the drug.", 0, 1, isActive); case 127377567: /*strength[x]*/ return new Property("strength[x]", "Ratio|CodeableConcept|Quantity", "Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet. This is expressed as a ratio where the numerator is 250mg and the denominator is 1 tablet but can also be expressed a quantity when the denominator is assumed to be 1 tablet.", 0, 1, strength); case 1791316033: /*strength*/ return new Property("strength[x]", "Ratio|CodeableConcept|Quantity", "Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet. This is expressed as a ratio where the numerator is 250mg and the denominator is 1 tablet but can also be expressed a quantity when the denominator is assumed to be 1 tablet.", 0, 1, strength); case 2141786186: /*strengthRatio*/ return new Property("strength[x]", "Ratio", "Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet. This is expressed as a ratio where the numerator is 250mg and the denominator is 1 tablet but can also be expressed a quantity when the denominator is assumed to be 1 tablet.", 0, 1, strength); @@ -810,7 +786,7 @@ public class MedicationKnowledge extends DomainResource { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 3242771: /*item*/ return this.item == null ? new Base[0] : new Base[] {this.item}; // CodeableReference - case -748916528: /*isActive*/ return this.isActive == null ? new Base[0] : new Base[] {this.isActive}; // BooleanType + case -748916528: /*isActive*/ return this.isActive == null ? new Base[0] : new Base[] {this.isActive}; // CodeableConcept case 1791316033: /*strength*/ return this.strength == null ? new Base[0] : new Base[] {this.strength}; // DataType default: return super.getProperty(hash, name, checkValid); } @@ -824,7 +800,7 @@ public class MedicationKnowledge extends DomainResource { this.item = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; case -748916528: // isActive - this.isActive = TypeConvertor.castToBoolean(value); // BooleanType + this.isActive = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; case 1791316033: // strength this.strength = TypeConvertor.castToType(value); // DataType @@ -839,7 +815,7 @@ public class MedicationKnowledge extends DomainResource { if (name.equals("item")) { this.item = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("isActive")) { - this.isActive = TypeConvertor.castToBoolean(value); // BooleanType + this.isActive = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("strength[x]")) { this.strength = TypeConvertor.castToType(value); // DataType } else @@ -851,7 +827,7 @@ public class MedicationKnowledge extends DomainResource { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3242771: return getItem(); - case -748916528: return getIsActiveElement(); + case -748916528: return getIsActive(); case 127377567: return getStrength(); case 1791316033: return getStrength(); default: return super.makeProperty(hash, name); @@ -863,7 +839,7 @@ public class MedicationKnowledge extends DomainResource { public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 3242771: /*item*/ return new String[] {"CodeableReference"}; - case -748916528: /*isActive*/ return new String[] {"boolean"}; + case -748916528: /*isActive*/ return new String[] {"CodeableConcept"}; case 1791316033: /*strength*/ return new String[] {"Ratio", "CodeableConcept", "Quantity"}; default: return super.getTypesForProperty(hash, name); } @@ -877,7 +853,8 @@ public class MedicationKnowledge extends DomainResource { return this.item; } else if (name.equals("isActive")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationKnowledge.ingredient.isActive"); + this.isActive = new CodeableConcept(); + return this.isActive; } else if (name.equals("strengthRatio")) { this.strength = new Ratio(); @@ -926,7 +903,7 @@ public class MedicationKnowledge extends DomainResource { if (!(other_ instanceof MedicationKnowledgeIngredientComponent)) return false; MedicationKnowledgeIngredientComponent o = (MedicationKnowledgeIngredientComponent) other_; - return compareValues(isActive, o.isActive, true); + return true; } public boolean isEmpty() { @@ -1563,50 +1540,348 @@ public class MedicationKnowledge extends DomainResource { } @Block() - public static class MedicationKnowledgeAdministrationGuidelineComponent extends BackboneElement implements IBaseBackboneElement { + public static class MedicationKnowledgeIndicationGuidelineComponent extends BackboneElement implements IBaseBackboneElement { /** - * Dosage for the medication for the specific guidelines. + * Indication or reason for use of the medication that applies to the specific administration guideline. */ - @Child(name = "dosage", type = {}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Dosage for the medication for the specific guidelines", formalDefinition="Dosage for the medication for the specific guidelines." ) - protected List dosage; + @Child(name = "indication", type = {CodeableReference.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Indication for use that applies to the specific administration guideline", formalDefinition="Indication or reason for use of the medication that applies to the specific administration guideline." ) + protected List indication; /** - * Indication or reason for use of the medication that applies to the specific administration guidelines. + * The guidelines for the dosage of the medication for the indication. */ - @Child(name = "indication", type = {CodeableReference.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Indication for use that apply to the specific administration guidelines", formalDefinition="Indication or reason for use of the medication that applies to the specific administration guidelines." ) - protected CodeableReference indication; + @Child(name = "dosingGuideline", type = {}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Guidelines for dosage of the medication", formalDefinition="The guidelines for the dosage of the medication for the indication." ) + protected List dosingGuideline; - /** - * Characteristics of the patient that are relevant to the administration guidelines (for example, height, weight, gender, etc.). - */ - @Child(name = "patientCharacteristic", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Characteristics of the patient that are relevant to the administration guidelines", formalDefinition="Characteristics of the patient that are relevant to the administration guidelines (for example, height, weight, gender, etc.)." ) - protected List patientCharacteristic; - - private static final long serialVersionUID = 1786736896L; + private static final long serialVersionUID = 256409722L; /** * Constructor */ - public MedicationKnowledgeAdministrationGuidelineComponent() { + public MedicationKnowledgeIndicationGuidelineComponent() { super(); } + /** + * @return {@link #indication} (Indication or reason for use of the medication that applies to the specific administration guideline.) + */ + public List getIndication() { + if (this.indication == null) + this.indication = new ArrayList(); + return this.indication; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public MedicationKnowledgeIndicationGuidelineComponent setIndication(List theIndication) { + this.indication = theIndication; + return this; + } + + public boolean hasIndication() { + if (this.indication == null) + return false; + for (CodeableReference item : this.indication) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableReference addIndication() { //3 + CodeableReference t = new CodeableReference(); + if (this.indication == null) + this.indication = new ArrayList(); + this.indication.add(t); + return t; + } + + public MedicationKnowledgeIndicationGuidelineComponent addIndication(CodeableReference t) { //3 + if (t == null) + return this; + if (this.indication == null) + this.indication = new ArrayList(); + this.indication.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #indication}, creating it if it does not already exist {3} + */ + public CodeableReference getIndicationFirstRep() { + if (getIndication().isEmpty()) { + addIndication(); + } + return getIndication().get(0); + } + + /** + * @return {@link #dosingGuideline} (The guidelines for the dosage of the medication for the indication.) + */ + public List getDosingGuideline() { + if (this.dosingGuideline == null) + this.dosingGuideline = new ArrayList(); + return this.dosingGuideline; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public MedicationKnowledgeIndicationGuidelineComponent setDosingGuideline(List theDosingGuideline) { + this.dosingGuideline = theDosingGuideline; + return this; + } + + public boolean hasDosingGuideline() { + if (this.dosingGuideline == null) + return false; + for (MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent item : this.dosingGuideline) + if (!item.isEmpty()) + return true; + return false; + } + + public MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent addDosingGuideline() { //3 + MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent t = new MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent(); + if (this.dosingGuideline == null) + this.dosingGuideline = new ArrayList(); + this.dosingGuideline.add(t); + return t; + } + + public MedicationKnowledgeIndicationGuidelineComponent addDosingGuideline(MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent t) { //3 + if (t == null) + return this; + if (this.dosingGuideline == null) + this.dosingGuideline = new ArrayList(); + this.dosingGuideline.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #dosingGuideline}, creating it if it does not already exist {3} + */ + public MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent getDosingGuidelineFirstRep() { + if (getDosingGuideline().isEmpty()) { + addDosingGuideline(); + } + return getDosingGuideline().get(0); + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("indication", "CodeableReference(ClinicalUseIssue)", "Indication or reason for use of the medication that applies to the specific administration guideline.", 0, java.lang.Integer.MAX_VALUE, indication)); + children.add(new Property("dosingGuideline", "", "The guidelines for the dosage of the medication for the indication.", 0, java.lang.Integer.MAX_VALUE, dosingGuideline)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -597168804: /*indication*/ return new Property("indication", "CodeableReference(ClinicalUseIssue)", "Indication or reason for use of the medication that applies to the specific administration guideline.", 0, java.lang.Integer.MAX_VALUE, indication); + case -1792856970: /*dosingGuideline*/ return new Property("dosingGuideline", "", "The guidelines for the dosage of the medication for the indication.", 0, java.lang.Integer.MAX_VALUE, dosingGuideline); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -597168804: /*indication*/ return this.indication == null ? new Base[0] : this.indication.toArray(new Base[this.indication.size()]); // CodeableReference + case -1792856970: /*dosingGuideline*/ return this.dosingGuideline == null ? new Base[0] : this.dosingGuideline.toArray(new Base[this.dosingGuideline.size()]); // MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -597168804: // indication + this.getIndication().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference + return value; + case -1792856970: // dosingGuideline + this.getDosingGuideline().add((MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent) value); // MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("indication")) { + this.getIndication().add(TypeConvertor.castToCodeableReference(value)); + } else if (name.equals("dosingGuideline")) { + this.getDosingGuideline().add((MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent) value); + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -597168804: return addIndication(); + case -1792856970: return addDosingGuideline(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -597168804: /*indication*/ return new String[] {"CodeableReference"}; + case -1792856970: /*dosingGuideline*/ return new String[] {}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("indication")) { + return addIndication(); + } + else if (name.equals("dosingGuideline")) { + return addDosingGuideline(); + } + else + return super.addChild(name); + } + + public MedicationKnowledgeIndicationGuidelineComponent copy() { + MedicationKnowledgeIndicationGuidelineComponent dst = new MedicationKnowledgeIndicationGuidelineComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(MedicationKnowledgeIndicationGuidelineComponent dst) { + super.copyValues(dst); + if (indication != null) { + dst.indication = new ArrayList(); + for (CodeableReference i : indication) + dst.indication.add(i.copy()); + }; + if (dosingGuideline != null) { + dst.dosingGuideline = new ArrayList(); + for (MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent i : dosingGuideline) + dst.dosingGuideline.add(i.copy()); + }; + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof MedicationKnowledgeIndicationGuidelineComponent)) + return false; + MedicationKnowledgeIndicationGuidelineComponent o = (MedicationKnowledgeIndicationGuidelineComponent) other_; + return compareDeep(indication, o.indication, true) && compareDeep(dosingGuideline, o.dosingGuideline, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof MedicationKnowledgeIndicationGuidelineComponent)) + return false; + MedicationKnowledgeIndicationGuidelineComponent o = (MedicationKnowledgeIndicationGuidelineComponent) other_; + return true; + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(indication, dosingGuideline + ); + } + + public String fhirType() { + return "MedicationKnowledge.indicationGuideline"; + + } + + } + + @Block() + public static class MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The overall intention of the treatment, for example, prophylactic, supporative, curative, etc. + */ + @Child(name = "treatmentIntent", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Intention of the treatment", formalDefinition="The overall intention of the treatment, for example, prophylactic, supporative, curative, etc." ) + protected CodeableConcept treatmentIntent; + + /** + * Dosage for the medication for the specific guidelines. + */ + @Child(name = "dosage", type = {}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Dosage for the medication for the specific guidelines", formalDefinition="Dosage for the medication for the specific guidelines." ) + protected List dosage; + + /** + * The type of the treatment that the guideline applies to, for example, long term therapy, first line treatment, etc. + */ + @Child(name = "administrationTreatment", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Type of treatment the guideline applies to", formalDefinition="The type of the treatment that the guideline applies to, for example, long term therapy, first line treatment, etc." ) + protected CodeableConcept administrationTreatment; + + /** + * Characteristics of the patient that are relevant to the administration guidelines (for example, height, weight, gender, etc.). + */ + @Child(name = "patientCharacteristic", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Characteristics of the patient that are relevant to the administration guidelines", formalDefinition="Characteristics of the patient that are relevant to the administration guidelines (for example, height, weight, gender, etc.)." ) + protected List patientCharacteristic; + + private static final long serialVersionUID = 882198366L; + + /** + * Constructor + */ + public MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent() { + super(); + } + + /** + * @return {@link #treatmentIntent} (The overall intention of the treatment, for example, prophylactic, supporative, curative, etc.) + */ + public CodeableConcept getTreatmentIntent() { + if (this.treatmentIntent == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent.treatmentIntent"); + else if (Configuration.doAutoCreate()) + this.treatmentIntent = new CodeableConcept(); // cc + return this.treatmentIntent; + } + + public boolean hasTreatmentIntent() { + return this.treatmentIntent != null && !this.treatmentIntent.isEmpty(); + } + + /** + * @param value {@link #treatmentIntent} (The overall intention of the treatment, for example, prophylactic, supporative, curative, etc.) + */ + public MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent setTreatmentIntent(CodeableConcept value) { + this.treatmentIntent = value; + return this; + } + /** * @return {@link #dosage} (Dosage for the medication for the specific guidelines.) */ - public List getDosage() { + public List getDosage() { if (this.dosage == null) - this.dosage = new ArrayList(); + this.dosage = new ArrayList(); return this.dosage; } /** * @return Returns a reference to this for easy method chaining */ - public MedicationKnowledgeAdministrationGuidelineComponent setDosage(List theDosage) { + public MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent setDosage(List theDosage) { this.dosage = theDosage; return this; } @@ -1614,25 +1889,25 @@ public class MedicationKnowledge extends DomainResource { public boolean hasDosage() { if (this.dosage == null) return false; - for (MedicationKnowledgeAdministrationGuidelineDosageComponent item : this.dosage) + for (MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent item : this.dosage) if (!item.isEmpty()) return true; return false; } - public MedicationKnowledgeAdministrationGuidelineDosageComponent addDosage() { //3 - MedicationKnowledgeAdministrationGuidelineDosageComponent t = new MedicationKnowledgeAdministrationGuidelineDosageComponent(); + public MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent addDosage() { //3 + MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent t = new MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent(); if (this.dosage == null) - this.dosage = new ArrayList(); + this.dosage = new ArrayList(); this.dosage.add(t); return t; } - public MedicationKnowledgeAdministrationGuidelineComponent addDosage(MedicationKnowledgeAdministrationGuidelineDosageComponent t) { //3 + public MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent addDosage(MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent t) { //3 if (t == null) return this; if (this.dosage == null) - this.dosage = new ArrayList(); + this.dosage = new ArrayList(); this.dosage.add(t); return this; } @@ -1640,7 +1915,7 @@ public class MedicationKnowledge extends DomainResource { /** * @return The first repetition of repeating field {@link #dosage}, creating it if it does not already exist {3} */ - public MedicationKnowledgeAdministrationGuidelineDosageComponent getDosageFirstRep() { + public MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent getDosageFirstRep() { if (getDosage().isEmpty()) { addDosage(); } @@ -1648,42 +1923,42 @@ public class MedicationKnowledge extends DomainResource { } /** - * @return {@link #indication} (Indication or reason for use of the medication that applies to the specific administration guidelines.) + * @return {@link #administrationTreatment} (The type of the treatment that the guideline applies to, for example, long term therapy, first line treatment, etc.) */ - public CodeableReference getIndication() { - if (this.indication == null) + public CodeableConcept getAdministrationTreatment() { + if (this.administrationTreatment == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create MedicationKnowledgeAdministrationGuidelineComponent.indication"); + throw new Error("Attempt to auto-create MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent.administrationTreatment"); else if (Configuration.doAutoCreate()) - this.indication = new CodeableReference(); // cc - return this.indication; + this.administrationTreatment = new CodeableConcept(); // cc + return this.administrationTreatment; } - public boolean hasIndication() { - return this.indication != null && !this.indication.isEmpty(); + public boolean hasAdministrationTreatment() { + return this.administrationTreatment != null && !this.administrationTreatment.isEmpty(); } /** - * @param value {@link #indication} (Indication or reason for use of the medication that applies to the specific administration guidelines.) + * @param value {@link #administrationTreatment} (The type of the treatment that the guideline applies to, for example, long term therapy, first line treatment, etc.) */ - public MedicationKnowledgeAdministrationGuidelineComponent setIndication(CodeableReference value) { - this.indication = value; + public MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent setAdministrationTreatment(CodeableConcept value) { + this.administrationTreatment = value; return this; } /** * @return {@link #patientCharacteristic} (Characteristics of the patient that are relevant to the administration guidelines (for example, height, weight, gender, etc.).) */ - public List getPatientCharacteristic() { + public List getPatientCharacteristic() { if (this.patientCharacteristic == null) - this.patientCharacteristic = new ArrayList(); + this.patientCharacteristic = new ArrayList(); return this.patientCharacteristic; } /** * @return Returns a reference to this for easy method chaining */ - public MedicationKnowledgeAdministrationGuidelineComponent setPatientCharacteristic(List thePatientCharacteristic) { + public MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent setPatientCharacteristic(List thePatientCharacteristic) { this.patientCharacteristic = thePatientCharacteristic; return this; } @@ -1691,25 +1966,25 @@ public class MedicationKnowledge extends DomainResource { public boolean hasPatientCharacteristic() { if (this.patientCharacteristic == null) return false; - for (MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent item : this.patientCharacteristic) + for (MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent item : this.patientCharacteristic) if (!item.isEmpty()) return true; return false; } - public MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent addPatientCharacteristic() { //3 - MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent t = new MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent(); + public MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent addPatientCharacteristic() { //3 + MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent t = new MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent(); if (this.patientCharacteristic == null) - this.patientCharacteristic = new ArrayList(); + this.patientCharacteristic = new ArrayList(); this.patientCharacteristic.add(t); return t; } - public MedicationKnowledgeAdministrationGuidelineComponent addPatientCharacteristic(MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent t) { //3 + public MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent addPatientCharacteristic(MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent t) { //3 if (t == null) return this; if (this.patientCharacteristic == null) - this.patientCharacteristic = new ArrayList(); + this.patientCharacteristic = new ArrayList(); this.patientCharacteristic.add(t); return this; } @@ -1717,7 +1992,7 @@ public class MedicationKnowledge extends DomainResource { /** * @return The first repetition of repeating field {@link #patientCharacteristic}, creating it if it does not already exist {3} */ - public MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent getPatientCharacteristicFirstRep() { + public MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent getPatientCharacteristicFirstRep() { if (getPatientCharacteristic().isEmpty()) { addPatientCharacteristic(); } @@ -1726,16 +2001,18 @@ public class MedicationKnowledge extends DomainResource { protected void listChildren(List children) { super.listChildren(children); + children.add(new Property("treatmentIntent", "CodeableConcept", "The overall intention of the treatment, for example, prophylactic, supporative, curative, etc.", 0, 1, treatmentIntent)); children.add(new Property("dosage", "", "Dosage for the medication for the specific guidelines.", 0, java.lang.Integer.MAX_VALUE, dosage)); - children.add(new Property("indication", "CodeableReference(ClinicalUseIssue)", "Indication or reason for use of the medication that applies to the specific administration guidelines.", 0, 1, indication)); + children.add(new Property("administrationTreatment", "CodeableConcept", "The type of the treatment that the guideline applies to, for example, long term therapy, first line treatment, etc.", 0, 1, administrationTreatment)); children.add(new Property("patientCharacteristic", "", "Characteristics of the patient that are relevant to the administration guidelines (for example, height, weight, gender, etc.).", 0, java.lang.Integer.MAX_VALUE, patientCharacteristic)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { + case 1744920884: /*treatmentIntent*/ return new Property("treatmentIntent", "CodeableConcept", "The overall intention of the treatment, for example, prophylactic, supporative, curative, etc.", 0, 1, treatmentIntent); case -1326018889: /*dosage*/ return new Property("dosage", "", "Dosage for the medication for the specific guidelines.", 0, java.lang.Integer.MAX_VALUE, dosage); - case -597168804: /*indication*/ return new Property("indication", "CodeableReference(ClinicalUseIssue)", "Indication or reason for use of the medication that applies to the specific administration guidelines.", 0, 1, indication); + case 1197121978: /*administrationTreatment*/ return new Property("administrationTreatment", "CodeableConcept", "The type of the treatment that the guideline applies to, for example, long term therapy, first line treatment, etc.", 0, 1, administrationTreatment); case 1770130432: /*patientCharacteristic*/ return new Property("patientCharacteristic", "", "Characteristics of the patient that are relevant to the administration guidelines (for example, height, weight, gender, etc.).", 0, java.lang.Integer.MAX_VALUE, patientCharacteristic); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -1745,9 +2022,10 @@ public class MedicationKnowledge extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case -1326018889: /*dosage*/ return this.dosage == null ? new Base[0] : this.dosage.toArray(new Base[this.dosage.size()]); // MedicationKnowledgeAdministrationGuidelineDosageComponent - case -597168804: /*indication*/ return this.indication == null ? new Base[0] : new Base[] {this.indication}; // CodeableReference - case 1770130432: /*patientCharacteristic*/ return this.patientCharacteristic == null ? new Base[0] : this.patientCharacteristic.toArray(new Base[this.patientCharacteristic.size()]); // MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent + case 1744920884: /*treatmentIntent*/ return this.treatmentIntent == null ? new Base[0] : new Base[] {this.treatmentIntent}; // CodeableConcept + case -1326018889: /*dosage*/ return this.dosage == null ? new Base[0] : this.dosage.toArray(new Base[this.dosage.size()]); // MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent + case 1197121978: /*administrationTreatment*/ return this.administrationTreatment == null ? new Base[0] : new Base[] {this.administrationTreatment}; // CodeableConcept + case 1770130432: /*patientCharacteristic*/ return this.patientCharacteristic == null ? new Base[0] : this.patientCharacteristic.toArray(new Base[this.patientCharacteristic.size()]); // MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent default: return super.getProperty(hash, name, checkValid); } @@ -1756,14 +2034,17 @@ public class MedicationKnowledge extends DomainResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { - case -1326018889: // dosage - this.getDosage().add((MedicationKnowledgeAdministrationGuidelineDosageComponent) value); // MedicationKnowledgeAdministrationGuidelineDosageComponent + case 1744920884: // treatmentIntent + this.treatmentIntent = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; - case -597168804: // indication - this.indication = TypeConvertor.castToCodeableReference(value); // CodeableReference + case -1326018889: // dosage + this.getDosage().add((MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent) value); // MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent + return value; + case 1197121978: // administrationTreatment + this.administrationTreatment = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; case 1770130432: // patientCharacteristic - this.getPatientCharacteristic().add((MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent) value); // MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent + this.getPatientCharacteristic().add((MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent) value); // MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent return value; default: return super.setProperty(hash, name, value); } @@ -1772,12 +2053,14 @@ public class MedicationKnowledge extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("dosage")) { - this.getDosage().add((MedicationKnowledgeAdministrationGuidelineDosageComponent) value); - } else if (name.equals("indication")) { - this.indication = TypeConvertor.castToCodeableReference(value); // CodeableReference + if (name.equals("treatmentIntent")) { + this.treatmentIntent = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("dosage")) { + this.getDosage().add((MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent) value); + } else if (name.equals("administrationTreatment")) { + this.administrationTreatment = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("patientCharacteristic")) { - this.getPatientCharacteristic().add((MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent) value); + this.getPatientCharacteristic().add((MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent) value); } else return super.setProperty(name, value); return value; @@ -1786,8 +2069,9 @@ public class MedicationKnowledge extends DomainResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { + case 1744920884: return getTreatmentIntent(); case -1326018889: return addDosage(); - case -597168804: return getIndication(); + case 1197121978: return getAdministrationTreatment(); case 1770130432: return addPatientCharacteristic(); default: return super.makeProperty(hash, name); } @@ -1797,8 +2081,9 @@ public class MedicationKnowledge extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { + case 1744920884: /*treatmentIntent*/ return new String[] {"CodeableConcept"}; case -1326018889: /*dosage*/ return new String[] {}; - case -597168804: /*indication*/ return new String[] {"CodeableReference"}; + case 1197121978: /*administrationTreatment*/ return new String[] {"CodeableConcept"}; case 1770130432: /*patientCharacteristic*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -1807,12 +2092,16 @@ public class MedicationKnowledge extends DomainResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("dosage")) { + if (name.equals("treatmentIntent")) { + this.treatmentIntent = new CodeableConcept(); + return this.treatmentIntent; + } + else if (name.equals("dosage")) { return addDosage(); } - else if (name.equals("indication")) { - this.indication = new CodeableReference(); - return this.indication; + else if (name.equals("administrationTreatment")) { + this.administrationTreatment = new CodeableConcept(); + return this.administrationTreatment; } else if (name.equals("patientCharacteristic")) { return addPatientCharacteristic(); @@ -1821,23 +2110,24 @@ public class MedicationKnowledge extends DomainResource { return super.addChild(name); } - public MedicationKnowledgeAdministrationGuidelineComponent copy() { - MedicationKnowledgeAdministrationGuidelineComponent dst = new MedicationKnowledgeAdministrationGuidelineComponent(); + public MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent copy() { + MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent dst = new MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent(); copyValues(dst); return dst; } - public void copyValues(MedicationKnowledgeAdministrationGuidelineComponent dst) { + public void copyValues(MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent dst) { super.copyValues(dst); + dst.treatmentIntent = treatmentIntent == null ? null : treatmentIntent.copy(); if (dosage != null) { - dst.dosage = new ArrayList(); - for (MedicationKnowledgeAdministrationGuidelineDosageComponent i : dosage) + dst.dosage = new ArrayList(); + for (MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent i : dosage) dst.dosage.add(i.copy()); }; - dst.indication = indication == null ? null : indication.copy(); + dst.administrationTreatment = administrationTreatment == null ? null : administrationTreatment.copy(); if (patientCharacteristic != null) { - dst.patientCharacteristic = new ArrayList(); - for (MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent i : patientCharacteristic) + dst.patientCharacteristic = new ArrayList(); + for (MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent i : patientCharacteristic) dst.patientCharacteristic.add(i.copy()); }; } @@ -1846,10 +2136,11 @@ public class MedicationKnowledge extends DomainResource { public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof MedicationKnowledgeAdministrationGuidelineComponent)) + if (!(other_ instanceof MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent)) return false; - MedicationKnowledgeAdministrationGuidelineComponent o = (MedicationKnowledgeAdministrationGuidelineComponent) other_; - return compareDeep(dosage, o.dosage, true) && compareDeep(indication, o.indication, true) && compareDeep(patientCharacteristic, o.patientCharacteristic, true) + MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent o = (MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent) other_; + return compareDeep(treatmentIntent, o.treatmentIntent, true) && compareDeep(dosage, o.dosage, true) + && compareDeep(administrationTreatment, o.administrationTreatment, true) && compareDeep(patientCharacteristic, o.patientCharacteristic, true) ; } @@ -1857,26 +2148,26 @@ public class MedicationKnowledge extends DomainResource { public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof MedicationKnowledgeAdministrationGuidelineComponent)) + if (!(other_ instanceof MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent)) return false; - MedicationKnowledgeAdministrationGuidelineComponent o = (MedicationKnowledgeAdministrationGuidelineComponent) other_; + MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent o = (MedicationKnowledgeIndicationGuidelineDosingGuidelineComponent) other_; return true; } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(dosage, indication, patientCharacteristic - ); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(treatmentIntent, dosage, administrationTreatment + , patientCharacteristic); } public String fhirType() { - return "MedicationKnowledge.administrationGuideline"; + return "MedicationKnowledge.indicationGuideline.dosingGuideline"; } } @Block() - public static class MedicationKnowledgeAdministrationGuidelineDosageComponent extends BackboneElement implements IBaseBackboneElement { + public static class MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent extends BackboneElement implements IBaseBackboneElement { /** * The type or category of dosage for a given medication (for example, prophylaxis, maintenance, therapeutic, etc.). */ @@ -1896,14 +2187,14 @@ public class MedicationKnowledge extends DomainResource { /** * Constructor */ - public MedicationKnowledgeAdministrationGuidelineDosageComponent() { + public MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent() { super(); } /** * Constructor */ - public MedicationKnowledgeAdministrationGuidelineDosageComponent(CodeableConcept type, Dosage dosage) { + public MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent(CodeableConcept type, Dosage dosage) { super(); this.setType(type); this.addDosage(dosage); @@ -1915,7 +2206,7 @@ public class MedicationKnowledge extends DomainResource { public CodeableConcept getType() { if (this.type == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create MedicationKnowledgeAdministrationGuidelineDosageComponent.type"); + throw new Error("Attempt to auto-create MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent.type"); else if (Configuration.doAutoCreate()) this.type = new CodeableConcept(); // cc return this.type; @@ -1928,7 +2219,7 @@ public class MedicationKnowledge extends DomainResource { /** * @param value {@link #type} (The type or category of dosage for a given medication (for example, prophylaxis, maintenance, therapeutic, etc.).) */ - public MedicationKnowledgeAdministrationGuidelineDosageComponent setType(CodeableConcept value) { + public MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent setType(CodeableConcept value) { this.type = value; return this; } @@ -1945,7 +2236,7 @@ public class MedicationKnowledge extends DomainResource { /** * @return Returns a reference to this for easy method chaining */ - public MedicationKnowledgeAdministrationGuidelineDosageComponent setDosage(List theDosage) { + public MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent setDosage(List theDosage) { this.dosage = theDosage; return this; } @@ -1967,7 +2258,7 @@ public class MedicationKnowledge extends DomainResource { return t; } - public MedicationKnowledgeAdministrationGuidelineDosageComponent addDosage(Dosage t) { //3 + public MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent addDosage(Dosage t) { //3 if (t == null) return this; if (this.dosage == null) @@ -2070,13 +2361,13 @@ public class MedicationKnowledge extends DomainResource { return super.addChild(name); } - public MedicationKnowledgeAdministrationGuidelineDosageComponent copy() { - MedicationKnowledgeAdministrationGuidelineDosageComponent dst = new MedicationKnowledgeAdministrationGuidelineDosageComponent(); + public MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent copy() { + MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent dst = new MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent(); copyValues(dst); return dst; } - public void copyValues(MedicationKnowledgeAdministrationGuidelineDosageComponent dst) { + public void copyValues(MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent dst) { super.copyValues(dst); dst.type = type == null ? null : type.copy(); if (dosage != null) { @@ -2090,9 +2381,9 @@ public class MedicationKnowledge extends DomainResource { public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof MedicationKnowledgeAdministrationGuidelineDosageComponent)) + if (!(other_ instanceof MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent)) return false; - MedicationKnowledgeAdministrationGuidelineDosageComponent o = (MedicationKnowledgeAdministrationGuidelineDosageComponent) other_; + MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent o = (MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent) other_; return compareDeep(type, o.type, true) && compareDeep(dosage, o.dosage, true); } @@ -2100,9 +2391,9 @@ public class MedicationKnowledge extends DomainResource { public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof MedicationKnowledgeAdministrationGuidelineDosageComponent)) + if (!(other_ instanceof MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent)) return false; - MedicationKnowledgeAdministrationGuidelineDosageComponent o = (MedicationKnowledgeAdministrationGuidelineDosageComponent) other_; + MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent o = (MedicationKnowledgeIndicationGuidelineDosingGuidelineDosageComponent) other_; return true; } @@ -2111,14 +2402,14 @@ public class MedicationKnowledge extends DomainResource { } public String fhirType() { - return "MedicationKnowledge.administrationGuideline.dosage"; + return "MedicationKnowledge.indicationGuideline.dosingGuideline.dosage"; } } @Block() - public static class MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent extends BackboneElement implements IBaseBackboneElement { + public static class MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent extends BackboneElement implements IBaseBackboneElement { /** * The categorization of the specific characteristic that is relevant to the administration guideline (e.g. height, weight, gender). */ @@ -2129,7 +2420,7 @@ public class MedicationKnowledge extends DomainResource { /** * The specific characteristic (e.g. height, weight, gender, etc.). */ - @Child(name = "value", type = {CodeableConcept.class, Quantity.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Child(name = "value", type = {CodeableConcept.class, Quantity.class, Range.class}, order=2, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="The specific characteristic", formalDefinition="The specific characteristic (e.g. height, weight, gender, etc.)." ) protected DataType value; @@ -2138,14 +2429,14 @@ public class MedicationKnowledge extends DomainResource { /** * Constructor */ - public MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent() { + public MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent() { super(); } /** * Constructor */ - public MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent(CodeableConcept type) { + public MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent(CodeableConcept type) { super(); this.setType(type); } @@ -2156,7 +2447,7 @@ public class MedicationKnowledge extends DomainResource { public CodeableConcept getType() { if (this.type == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent.type"); + throw new Error("Attempt to auto-create MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent.type"); else if (Configuration.doAutoCreate()) this.type = new CodeableConcept(); // cc return this.type; @@ -2169,7 +2460,7 @@ public class MedicationKnowledge extends DomainResource { /** * @param value {@link #type} (The categorization of the specific characteristic that is relevant to the administration guideline (e.g. height, weight, gender).) */ - public MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent setType(CodeableConcept value) { + public MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent setType(CodeableConcept value) { this.type = value; return this; } @@ -2211,6 +2502,21 @@ public class MedicationKnowledge extends DomainResource { return this != null && this.value instanceof Quantity; } + /** + * @return {@link #value} (The specific characteristic (e.g. height, weight, gender, etc.).) + */ + public Range getValueRange() throws FHIRException { + if (this.value == null) + this.value = new Range(); + if (!(this.value instanceof Range)) + throw new FHIRException("Type mismatch: the type Range was expected, but "+this.value.getClass().getName()+" was encountered"); + return (Range) this.value; + } + + public boolean hasValueRange() { + return this != null && this.value instanceof Range; + } + public boolean hasValue() { return this.value != null && !this.value.isEmpty(); } @@ -2218,9 +2524,9 @@ public class MedicationKnowledge extends DomainResource { /** * @param value {@link #value} (The specific characteristic (e.g. height, weight, gender, etc.).) */ - public MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent setValue(DataType value) { - if (value != null && !(value instanceof CodeableConcept || value instanceof Quantity)) - throw new Error("Not the right type for MedicationKnowledge.administrationGuideline.patientCharacteristic.value[x]: "+value.fhirType()); + public MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent setValue(DataType value) { + if (value != null && !(value instanceof CodeableConcept || value instanceof Quantity || value instanceof Range)) + throw new Error("Not the right type for MedicationKnowledge.indicationGuideline.dosingGuideline.patientCharacteristic.value[x]: "+value.fhirType()); this.value = value; return this; } @@ -2228,17 +2534,18 @@ public class MedicationKnowledge extends DomainResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("type", "CodeableConcept", "The categorization of the specific characteristic that is relevant to the administration guideline (e.g. height, weight, gender).", 0, 1, type)); - children.add(new Property("value[x]", "CodeableConcept|Quantity", "The specific characteristic (e.g. height, weight, gender, etc.).", 0, 1, value)); + children.add(new Property("value[x]", "CodeableConcept|Quantity|Range", "The specific characteristic (e.g. height, weight, gender, etc.).", 0, 1, value)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The categorization of the specific characteristic that is relevant to the administration guideline (e.g. height, weight, gender).", 0, 1, type); - case -1410166417: /*value[x]*/ return new Property("value[x]", "CodeableConcept|Quantity", "The specific characteristic (e.g. height, weight, gender, etc.).", 0, 1, value); - case 111972721: /*value*/ return new Property("value[x]", "CodeableConcept|Quantity", "The specific characteristic (e.g. height, weight, gender, etc.).", 0, 1, value); + case -1410166417: /*value[x]*/ return new Property("value[x]", "CodeableConcept|Quantity|Range", "The specific characteristic (e.g. height, weight, gender, etc.).", 0, 1, value); + case 111972721: /*value*/ return new Property("value[x]", "CodeableConcept|Quantity|Range", "The specific characteristic (e.g. height, weight, gender, etc.).", 0, 1, value); case 924902896: /*valueCodeableConcept*/ return new Property("value[x]", "CodeableConcept", "The specific characteristic (e.g. height, weight, gender, etc.).", 0, 1, value); case -2029823716: /*valueQuantity*/ return new Property("value[x]", "Quantity", "The specific characteristic (e.g. height, weight, gender, etc.).", 0, 1, value); + case 2030761548: /*valueRange*/ return new Property("value[x]", "Range", "The specific characteristic (e.g. height, weight, gender, etc.).", 0, 1, value); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -2294,7 +2601,7 @@ public class MedicationKnowledge extends DomainResource { public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: /*type*/ return new String[] {"CodeableConcept"}; - case 111972721: /*value*/ return new String[] {"CodeableConcept", "Quantity"}; + case 111972721: /*value*/ return new String[] {"CodeableConcept", "Quantity", "Range"}; default: return super.getTypesForProperty(hash, name); } @@ -2314,17 +2621,21 @@ public class MedicationKnowledge extends DomainResource { this.value = new Quantity(); return this.value; } + else if (name.equals("valueRange")) { + this.value = new Range(); + return this.value; + } else return super.addChild(name); } - public MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent copy() { - MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent dst = new MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent(); + public MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent copy() { + MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent dst = new MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent(); copyValues(dst); return dst; } - public void copyValues(MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent dst) { + public void copyValues(MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent dst) { super.copyValues(dst); dst.type = type == null ? null : type.copy(); dst.value = value == null ? null : value.copy(); @@ -2334,9 +2645,9 @@ public class MedicationKnowledge extends DomainResource { public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent)) + if (!(other_ instanceof MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent)) return false; - MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent o = (MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent) other_; + MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent o = (MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent) other_; return compareDeep(type, o.type, true) && compareDeep(value, o.value, true); } @@ -2344,9 +2655,9 @@ public class MedicationKnowledge extends DomainResource { public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent)) + if (!(other_ instanceof MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent)) return false; - MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent o = (MedicationKnowledgeAdministrationGuidelinePatientCharacteristicComponent) other_; + MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent o = (MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent) other_; return true; } @@ -2355,7 +2666,7 @@ public class MedicationKnowledge extends DomainResource { } public String fhirType() { - return "MedicationKnowledge.administrationGuideline.patientCharacteristic"; + return "MedicationKnowledge.indicationGuideline.dosingGuideline.patientCharacteristic"; } @@ -4439,11 +4750,11 @@ public class MedicationKnowledge extends DomainResource { protected Reference author; /** - * Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product. + * Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.  Describes the organization that is responsible for the manufacturing of the item and holds the registration to market the product in a jurisdiction. This might not be the company that physically manufactures the product.  May be known as Market Authorization Holder. */ - @Child(name = "manufacturer", type = {Organization.class}, order=4, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Manufacturer of the item", formalDefinition="Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product." ) - protected Reference manufacturer; + @Child(name = "sponsor", type = {Organization.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Organization responsible for manufacturing of the item", formalDefinition="Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.  Describes the organization that is responsible for the manufacturing of the item and holds the registration to market the product in a jurisdiction. This might not be the company that physically manufactures the product.  May be known as Market Authorization Holder." ) + protected Reference sponsor; /** * Describes the form of the item. Powder; tablets; capsule. @@ -4546,11 +4857,11 @@ public class MedicationKnowledge extends DomainResource { protected List monitoringProgram; /** - * Guidelines or protocols that are applicable for the administration of the medication. + * Guidelines or protocols that are applicable for the administration of the medication based on indication. */ - @Child(name = "administrationGuideline", type = {}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Guidelines or protocols for administration of the medication", formalDefinition="Guidelines or protocols that are applicable for the administration of the medication." ) - protected List administrationGuideline; + @Child(name = "indicationGuideline", type = {}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Guidelines or protocols for administration of the medication for an indication", formalDefinition="Guidelines or protocols that are applicable for the administration of the medication based on indication." ) + protected List indicationGuideline; /** * Categorization of the medication within a formulary or classification system. @@ -4594,7 +4905,7 @@ public class MedicationKnowledge extends DomainResource { @Description(shortDefinition="The time course of drug absorption, distribution, metabolism and excretion of a medication from the body", formalDefinition="The time course of drug absorption, distribution, metabolism and excretion of a medication from the body." ) protected List kineticCharacteristic; - private static final long serialVersionUID = 2074985965L; + private static final long serialVersionUID = 1072516438L; /** * Constructor @@ -4754,26 +5065,26 @@ public class MedicationKnowledge extends DomainResource { } /** - * @return {@link #manufacturer} (Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.) + * @return {@link #sponsor} (Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.  Describes the organization that is responsible for the manufacturing of the item and holds the registration to market the product in a jurisdiction. This might not be the company that physically manufactures the product.  May be known as Market Authorization Holder.) */ - public Reference getManufacturer() { - if (this.manufacturer == null) + public Reference getSponsor() { + if (this.sponsor == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create MedicationKnowledge.manufacturer"); + throw new Error("Attempt to auto-create MedicationKnowledge.sponsor"); else if (Configuration.doAutoCreate()) - this.manufacturer = new Reference(); // cc - return this.manufacturer; + this.sponsor = new Reference(); // cc + return this.sponsor; } - public boolean hasManufacturer() { - return this.manufacturer != null && !this.manufacturer.isEmpty(); + public boolean hasSponsor() { + return this.sponsor != null && !this.sponsor.isEmpty(); } /** - * @param value {@link #manufacturer} (Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.) + * @param value {@link #sponsor} (Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.  Describes the organization that is responsible for the manufacturing of the item and holds the registration to market the product in a jurisdiction. This might not be the company that physically manufactures the product.  May be known as Market Authorization Holder.) */ - public MedicationKnowledge setManufacturer(Reference value) { - this.manufacturer = value; + public MedicationKnowledge setSponsor(Reference value) { + this.sponsor = value; return this; } @@ -5437,56 +5748,56 @@ public class MedicationKnowledge extends DomainResource { } /** - * @return {@link #administrationGuideline} (Guidelines or protocols that are applicable for the administration of the medication.) + * @return {@link #indicationGuideline} (Guidelines or protocols that are applicable for the administration of the medication based on indication.) */ - public List getAdministrationGuideline() { - if (this.administrationGuideline == null) - this.administrationGuideline = new ArrayList(); - return this.administrationGuideline; + public List getIndicationGuideline() { + if (this.indicationGuideline == null) + this.indicationGuideline = new ArrayList(); + return this.indicationGuideline; } /** * @return Returns a reference to this for easy method chaining */ - public MedicationKnowledge setAdministrationGuideline(List theAdministrationGuideline) { - this.administrationGuideline = theAdministrationGuideline; + public MedicationKnowledge setIndicationGuideline(List theIndicationGuideline) { + this.indicationGuideline = theIndicationGuideline; return this; } - public boolean hasAdministrationGuideline() { - if (this.administrationGuideline == null) + public boolean hasIndicationGuideline() { + if (this.indicationGuideline == null) return false; - for (MedicationKnowledgeAdministrationGuidelineComponent item : this.administrationGuideline) + for (MedicationKnowledgeIndicationGuidelineComponent item : this.indicationGuideline) if (!item.isEmpty()) return true; return false; } - public MedicationKnowledgeAdministrationGuidelineComponent addAdministrationGuideline() { //3 - MedicationKnowledgeAdministrationGuidelineComponent t = new MedicationKnowledgeAdministrationGuidelineComponent(); - if (this.administrationGuideline == null) - this.administrationGuideline = new ArrayList(); - this.administrationGuideline.add(t); + public MedicationKnowledgeIndicationGuidelineComponent addIndicationGuideline() { //3 + MedicationKnowledgeIndicationGuidelineComponent t = new MedicationKnowledgeIndicationGuidelineComponent(); + if (this.indicationGuideline == null) + this.indicationGuideline = new ArrayList(); + this.indicationGuideline.add(t); return t; } - public MedicationKnowledge addAdministrationGuideline(MedicationKnowledgeAdministrationGuidelineComponent t) { //3 + public MedicationKnowledge addIndicationGuideline(MedicationKnowledgeIndicationGuidelineComponent t) { //3 if (t == null) return this; - if (this.administrationGuideline == null) - this.administrationGuideline = new ArrayList(); - this.administrationGuideline.add(t); + if (this.indicationGuideline == null) + this.indicationGuideline = new ArrayList(); + this.indicationGuideline.add(t); return this; } /** - * @return The first repetition of repeating field {@link #administrationGuideline}, creating it if it does not already exist {3} + * @return The first repetition of repeating field {@link #indicationGuideline}, creating it if it does not already exist {3} */ - public MedicationKnowledgeAdministrationGuidelineComponent getAdministrationGuidelineFirstRep() { - if (getAdministrationGuideline().isEmpty()) { - addAdministrationGuideline(); + public MedicationKnowledgeIndicationGuidelineComponent getIndicationGuidelineFirstRep() { + if (getIndicationGuideline().isEmpty()) { + addIndicationGuideline(); } - return getAdministrationGuideline().get(0); + return getIndicationGuideline().get(0); } /** @@ -5813,7 +6124,7 @@ public class MedicationKnowledge extends DomainResource { children.add(new Property("code", "CodeableConcept", "A code that specifies this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems.", 0, 1, code)); children.add(new Property("status", "code", "A code to indicate if the medication is in active use. The status refers to the validity about the information of the medication and not to its medicinal properties.", 0, 1, status)); children.add(new Property("author", "Reference(Organization)", "The creator or owner of the knowledge or information about the medication.", 0, 1, author)); - children.add(new Property("manufacturer", "Reference(Organization)", "Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.", 0, 1, manufacturer)); + children.add(new Property("sponsor", "Reference(Organization)", "Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.  Describes the organization that is responsible for the manufacturing of the item and holds the registration to market the product in a jurisdiction. This might not be the company that physically manufactures the product.  May be known as Market Authorization Holder.", 0, 1, sponsor)); children.add(new Property("doseForm", "CodeableConcept", "Describes the form of the item. Powder; tablets; capsule.", 0, 1, doseForm)); children.add(new Property("amount", "Quantity", "Specific amount of the drug in the packaged product. For example, when specifying a product that has the same strength (For example, Insulin glargine 100 unit per mL solution for injection), this attribute provides additional clarification of the package amount (For example, 3 mL, 10mL, etc.).", 0, 1, amount)); children.add(new Property("synonym", "string", "Additional names for a medication, for example, the name(s) given to a medication in different countries. For example, acetaminophen and paracetamol or salbutamol and albuterol.", 0, java.lang.Integer.MAX_VALUE, synonym)); @@ -5828,7 +6139,7 @@ public class MedicationKnowledge extends DomainResource { children.add(new Property("intendedRoute", "CodeableConcept", "The intended or approved route of administration.", 0, java.lang.Integer.MAX_VALUE, intendedRoute)); children.add(new Property("cost", "", "The price of the medication.", 0, java.lang.Integer.MAX_VALUE, cost)); children.add(new Property("monitoringProgram", "", "The program under which the medication is reviewed.", 0, java.lang.Integer.MAX_VALUE, monitoringProgram)); - children.add(new Property("administrationGuideline", "", "Guidelines or protocols that are applicable for the administration of the medication.", 0, java.lang.Integer.MAX_VALUE, administrationGuideline)); + children.add(new Property("indicationGuideline", "", "Guidelines or protocols that are applicable for the administration of the medication based on indication.", 0, java.lang.Integer.MAX_VALUE, indicationGuideline)); children.add(new Property("medicineClassification", "", "Categorization of the medication within a formulary or classification system.", 0, java.lang.Integer.MAX_VALUE, medicineClassification)); children.add(new Property("packaging", "", "Information that only applies to packages (not products).", 0, java.lang.Integer.MAX_VALUE, packaging)); children.add(new Property("drugCharacteristic", "", "Specifies descriptive properties of the medicine, such as color, shape, imprints, etc.", 0, java.lang.Integer.MAX_VALUE, drugCharacteristic)); @@ -5844,7 +6155,7 @@ public class MedicationKnowledge extends DomainResource { case 3059181: /*code*/ return new Property("code", "CodeableConcept", "A code that specifies this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems.", 0, 1, code); case -892481550: /*status*/ return new Property("status", "code", "A code to indicate if the medication is in active use. The status refers to the validity about the information of the medication and not to its medicinal properties.", 0, 1, status); case -1406328437: /*author*/ return new Property("author", "Reference(Organization)", "The creator or owner of the knowledge or information about the medication.", 0, 1, author); - case -1969347631: /*manufacturer*/ return new Property("manufacturer", "Reference(Organization)", "Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.", 0, 1, manufacturer); + case -1998892262: /*sponsor*/ return new Property("sponsor", "Reference(Organization)", "Describes the details of the manufacturer of the medication product. This is not intended to represent the distributor of a medication product.  Describes the organization that is responsible for the manufacturing of the item and holds the registration to market the product in a jurisdiction. This might not be the company that physically manufactures the product.  May be known as Market Authorization Holder.", 0, 1, sponsor); case 1303858817: /*doseForm*/ return new Property("doseForm", "CodeableConcept", "Describes the form of the item. Powder; tablets; capsule.", 0, 1, doseForm); case -1413853096: /*amount*/ return new Property("amount", "Quantity", "Specific amount of the drug in the packaged product. For example, when specifying a product that has the same strength (For example, Insulin glargine 100 unit per mL solution for injection), this attribute provides additional clarification of the package amount (For example, 3 mL, 10mL, etc.).", 0, 1, amount); case -1742128133: /*synonym*/ return new Property("synonym", "string", "Additional names for a medication, for example, the name(s) given to a medication in different countries. For example, acetaminophen and paracetamol or salbutamol and albuterol.", 0, java.lang.Integer.MAX_VALUE, synonym); @@ -5859,7 +6170,7 @@ public class MedicationKnowledge extends DomainResource { case -767798050: /*intendedRoute*/ return new Property("intendedRoute", "CodeableConcept", "The intended or approved route of administration.", 0, java.lang.Integer.MAX_VALUE, intendedRoute); case 3059661: /*cost*/ return new Property("cost", "", "The price of the medication.", 0, java.lang.Integer.MAX_VALUE, cost); case 569848092: /*monitoringProgram*/ return new Property("monitoringProgram", "", "The program under which the medication is reviewed.", 0, java.lang.Integer.MAX_VALUE, monitoringProgram); - case -815253966: /*administrationGuideline*/ return new Property("administrationGuideline", "", "Guidelines or protocols that are applicable for the administration of the medication.", 0, java.lang.Integer.MAX_VALUE, administrationGuideline); + case -347044108: /*indicationGuideline*/ return new Property("indicationGuideline", "", "Guidelines or protocols that are applicable for the administration of the medication based on indication.", 0, java.lang.Integer.MAX_VALUE, indicationGuideline); case 1791551680: /*medicineClassification*/ return new Property("medicineClassification", "", "Categorization of the medication within a formulary or classification system.", 0, java.lang.Integer.MAX_VALUE, medicineClassification); case 1802065795: /*packaging*/ return new Property("packaging", "", "Information that only applies to packages (not products).", 0, java.lang.Integer.MAX_VALUE, packaging); case -844126885: /*drugCharacteristic*/ return new Property("drugCharacteristic", "", "Specifies descriptive properties of the medicine, such as color, shape, imprints, etc.", 0, java.lang.Integer.MAX_VALUE, drugCharacteristic); @@ -5878,7 +6189,7 @@ public class MedicationKnowledge extends DomainResource { case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration case -1406328437: /*author*/ return this.author == null ? new Base[0] : new Base[] {this.author}; // Reference - case -1969347631: /*manufacturer*/ return this.manufacturer == null ? new Base[0] : new Base[] {this.manufacturer}; // Reference + case -1998892262: /*sponsor*/ return this.sponsor == null ? new Base[0] : new Base[] {this.sponsor}; // Reference case 1303858817: /*doseForm*/ return this.doseForm == null ? new Base[0] : new Base[] {this.doseForm}; // CodeableConcept case -1413853096: /*amount*/ return this.amount == null ? new Base[0] : new Base[] {this.amount}; // Quantity case -1742128133: /*synonym*/ return this.synonym == null ? new Base[0] : this.synonym.toArray(new Base[this.synonym.size()]); // StringType @@ -5893,7 +6204,7 @@ public class MedicationKnowledge extends DomainResource { case -767798050: /*intendedRoute*/ return this.intendedRoute == null ? new Base[0] : this.intendedRoute.toArray(new Base[this.intendedRoute.size()]); // CodeableConcept case 3059661: /*cost*/ return this.cost == null ? new Base[0] : this.cost.toArray(new Base[this.cost.size()]); // MedicationKnowledgeCostComponent case 569848092: /*monitoringProgram*/ return this.monitoringProgram == null ? new Base[0] : this.monitoringProgram.toArray(new Base[this.monitoringProgram.size()]); // MedicationKnowledgeMonitoringProgramComponent - case -815253966: /*administrationGuideline*/ return this.administrationGuideline == null ? new Base[0] : this.administrationGuideline.toArray(new Base[this.administrationGuideline.size()]); // MedicationKnowledgeAdministrationGuidelineComponent + case -347044108: /*indicationGuideline*/ return this.indicationGuideline == null ? new Base[0] : this.indicationGuideline.toArray(new Base[this.indicationGuideline.size()]); // MedicationKnowledgeIndicationGuidelineComponent case 1791551680: /*medicineClassification*/ return this.medicineClassification == null ? new Base[0] : this.medicineClassification.toArray(new Base[this.medicineClassification.size()]); // MedicationKnowledgeMedicineClassificationComponent case 1802065795: /*packaging*/ return this.packaging == null ? new Base[0] : this.packaging.toArray(new Base[this.packaging.size()]); // MedicationKnowledgePackagingComponent case -844126885: /*drugCharacteristic*/ return this.drugCharacteristic == null ? new Base[0] : this.drugCharacteristic.toArray(new Base[this.drugCharacteristic.size()]); // MedicationKnowledgeDrugCharacteristicComponent @@ -5921,8 +6232,8 @@ public class MedicationKnowledge extends DomainResource { case -1406328437: // author this.author = TypeConvertor.castToReference(value); // Reference return value; - case -1969347631: // manufacturer - this.manufacturer = TypeConvertor.castToReference(value); // Reference + case -1998892262: // sponsor + this.sponsor = TypeConvertor.castToReference(value); // Reference return value; case 1303858817: // doseForm this.doseForm = TypeConvertor.castToCodeableConcept(value); // CodeableConcept @@ -5966,8 +6277,8 @@ public class MedicationKnowledge extends DomainResource { case 569848092: // monitoringProgram this.getMonitoringProgram().add((MedicationKnowledgeMonitoringProgramComponent) value); // MedicationKnowledgeMonitoringProgramComponent return value; - case -815253966: // administrationGuideline - this.getAdministrationGuideline().add((MedicationKnowledgeAdministrationGuidelineComponent) value); // MedicationKnowledgeAdministrationGuidelineComponent + case -347044108: // indicationGuideline + this.getIndicationGuideline().add((MedicationKnowledgeIndicationGuidelineComponent) value); // MedicationKnowledgeIndicationGuidelineComponent return value; case 1791551680: // medicineClassification this.getMedicineClassification().add((MedicationKnowledgeMedicineClassificationComponent) value); // MedicationKnowledgeMedicineClassificationComponent @@ -6003,8 +6314,8 @@ public class MedicationKnowledge extends DomainResource { this.status = (Enumeration) value; // Enumeration } else if (name.equals("author")) { this.author = TypeConvertor.castToReference(value); // Reference - } else if (name.equals("manufacturer")) { - this.manufacturer = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("sponsor")) { + this.sponsor = TypeConvertor.castToReference(value); // Reference } else if (name.equals("doseForm")) { this.doseForm = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("amount")) { @@ -6033,8 +6344,8 @@ public class MedicationKnowledge extends DomainResource { this.getCost().add((MedicationKnowledgeCostComponent) value); } else if (name.equals("monitoringProgram")) { this.getMonitoringProgram().add((MedicationKnowledgeMonitoringProgramComponent) value); - } else if (name.equals("administrationGuideline")) { - this.getAdministrationGuideline().add((MedicationKnowledgeAdministrationGuidelineComponent) value); + } else if (name.equals("indicationGuideline")) { + this.getIndicationGuideline().add((MedicationKnowledgeIndicationGuidelineComponent) value); } else if (name.equals("medicineClassification")) { this.getMedicineClassification().add((MedicationKnowledgeMedicineClassificationComponent) value); } else if (name.equals("packaging")) { @@ -6059,7 +6370,7 @@ public class MedicationKnowledge extends DomainResource { case 3059181: return getCode(); case -892481550: return getStatusElement(); case -1406328437: return getAuthor(); - case -1969347631: return getManufacturer(); + case -1998892262: return getSponsor(); case 1303858817: return getDoseForm(); case -1413853096: return getAmount(); case -1742128133: return addSynonymElement(); @@ -6074,7 +6385,7 @@ public class MedicationKnowledge extends DomainResource { case -767798050: return addIntendedRoute(); case 3059661: return addCost(); case 569848092: return addMonitoringProgram(); - case -815253966: return addAdministrationGuideline(); + case -347044108: return addIndicationGuideline(); case 1791551680: return addMedicineClassification(); case 1802065795: return addPackaging(); case -844126885: return addDrugCharacteristic(); @@ -6093,7 +6404,7 @@ public class MedicationKnowledge extends DomainResource { case 3059181: /*code*/ return new String[] {"CodeableConcept"}; case -892481550: /*status*/ return new String[] {"code"}; case -1406328437: /*author*/ return new String[] {"Reference"}; - case -1969347631: /*manufacturer*/ return new String[] {"Reference"}; + case -1998892262: /*sponsor*/ return new String[] {"Reference"}; case 1303858817: /*doseForm*/ return new String[] {"CodeableConcept"}; case -1413853096: /*amount*/ return new String[] {"Quantity"}; case -1742128133: /*synonym*/ return new String[] {"string"}; @@ -6108,7 +6419,7 @@ public class MedicationKnowledge extends DomainResource { case -767798050: /*intendedRoute*/ return new String[] {"CodeableConcept"}; case 3059661: /*cost*/ return new String[] {}; case 569848092: /*monitoringProgram*/ return new String[] {}; - case -815253966: /*administrationGuideline*/ return new String[] {}; + case -347044108: /*indicationGuideline*/ return new String[] {}; case 1791551680: /*medicineClassification*/ return new String[] {}; case 1802065795: /*packaging*/ return new String[] {}; case -844126885: /*drugCharacteristic*/ return new String[] {}; @@ -6136,9 +6447,9 @@ public class MedicationKnowledge extends DomainResource { this.author = new Reference(); return this.author; } - else if (name.equals("manufacturer")) { - this.manufacturer = new Reference(); - return this.manufacturer; + else if (name.equals("sponsor")) { + this.sponsor = new Reference(); + return this.sponsor; } else if (name.equals("doseForm")) { this.doseForm = new CodeableConcept(); @@ -6185,8 +6496,8 @@ public class MedicationKnowledge extends DomainResource { else if (name.equals("monitoringProgram")) { return addMonitoringProgram(); } - else if (name.equals("administrationGuideline")) { - return addAdministrationGuideline(); + else if (name.equals("indicationGuideline")) { + return addIndicationGuideline(); } else if (name.equals("medicineClassification")) { return addMedicineClassification(); @@ -6231,7 +6542,7 @@ public class MedicationKnowledge extends DomainResource { dst.code = code == null ? null : code.copy(); dst.status = status == null ? null : status.copy(); dst.author = author == null ? null : author.copy(); - dst.manufacturer = manufacturer == null ? null : manufacturer.copy(); + dst.sponsor = sponsor == null ? null : sponsor.copy(); dst.doseForm = doseForm == null ? null : doseForm.copy(); dst.amount = amount == null ? null : amount.copy(); if (synonym != null) { @@ -6286,10 +6597,10 @@ public class MedicationKnowledge extends DomainResource { for (MedicationKnowledgeMonitoringProgramComponent i : monitoringProgram) dst.monitoringProgram.add(i.copy()); }; - if (administrationGuideline != null) { - dst.administrationGuideline = new ArrayList(); - for (MedicationKnowledgeAdministrationGuidelineComponent i : administrationGuideline) - dst.administrationGuideline.add(i.copy()); + if (indicationGuideline != null) { + dst.indicationGuideline = new ArrayList(); + for (MedicationKnowledgeIndicationGuidelineComponent i : indicationGuideline) + dst.indicationGuideline.add(i.copy()); }; if (medicineClassification != null) { dst.medicineClassification = new ArrayList(); @@ -6335,13 +6646,13 @@ public class MedicationKnowledge extends DomainResource { return false; MedicationKnowledge o = (MedicationKnowledge) other_; return compareDeep(identifier, o.identifier, true) && compareDeep(code, o.code, true) && compareDeep(status, o.status, true) - && compareDeep(author, o.author, true) && compareDeep(manufacturer, o.manufacturer, true) && compareDeep(doseForm, o.doseForm, true) + && compareDeep(author, o.author, true) && compareDeep(sponsor, o.sponsor, true) && compareDeep(doseForm, o.doseForm, true) && compareDeep(amount, o.amount, true) && compareDeep(synonym, o.synonym, true) && compareDeep(relatedMedicationKnowledge, o.relatedMedicationKnowledge, true) && compareDeep(associatedMedication, o.associatedMedication, true) && compareDeep(associatedDefinition, o.associatedDefinition, true) && compareDeep(productType, o.productType, true) && compareDeep(monograph, o.monograph, true) && compareDeep(ingredient, o.ingredient, true) && compareDeep(device, o.device, true) && compareDeep(preparationInstruction, o.preparationInstruction, true) && compareDeep(intendedRoute, o.intendedRoute, true) && compareDeep(cost, o.cost, true) && compareDeep(monitoringProgram, o.monitoringProgram, true) - && compareDeep(administrationGuideline, o.administrationGuideline, true) && compareDeep(medicineClassification, o.medicineClassification, true) + && compareDeep(indicationGuideline, o.indicationGuideline, true) && compareDeep(medicineClassification, o.medicineClassification, true) && compareDeep(packaging, o.packaging, true) && compareDeep(drugCharacteristic, o.drugCharacteristic, true) && compareDeep(clinicalUseIssue, o.clinicalUseIssue, true) && compareDeep(regulatory, o.regulatory, true) && compareDeep(kineticCharacteristic, o.kineticCharacteristic, true); @@ -6360,9 +6671,9 @@ public class MedicationKnowledge extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, code, status - , author, manufacturer, doseForm, amount, synonym, relatedMedicationKnowledge, associatedMedication + , author, sponsor, doseForm, amount, synonym, relatedMedicationKnowledge, associatedMedication , associatedDefinition, productType, monograph, ingredient, device, preparationInstruction - , intendedRoute, cost, monitoringProgram, administrationGuideline, medicineClassification + , intendedRoute, cost, monitoringProgram, indicationGuideline, medicineClassification , packaging, drugCharacteristic, clinicalUseIssue, regulatory, kineticCharacteristic ); } @@ -6372,26 +6683,6 @@ public class MedicationKnowledge extends DomainResource { return ResourceType.MedicationKnowledge; } - /** - * Search parameter: classification-type - *

- * Description: The type of category for the medication (for example, therapeutic classification, therapeutic sub-classification)
- * Type: token
- * Path: MedicationKnowledge.medicineClassification.type
- *

- */ - @SearchParamDefinition(name="classification-type", path="MedicationKnowledge.medicineClassification.type", description="The type of category for the medication (for example, therapeutic classification, therapeutic sub-classification)", type="token" ) - public static final String SP_CLASSIFICATION_TYPE = "classification-type"; - /** - * Fluent Client search parameter constant for classification-type - *

- * Description: The type of category for the medication (for example, therapeutic classification, therapeutic sub-classification)
- * Type: token
- * Path: MedicationKnowledge.medicineClassification.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CLASSIFICATION_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CLASSIFICATION_TYPE); - /** * Search parameter: classification *

@@ -6412,6 +6703,26 @@ public class MedicationKnowledge extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CLASSIFICATION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CLASSIFICATION); + /** + * Search parameter: classification-type + *

+ * Description: The type of category for the medication (for example, therapeutic classification, therapeutic sub-classification)
+ * Type: token
+ * Path: MedicationKnowledge.medicineClassification.type
+ *

+ */ + @SearchParamDefinition(name="classification-type", path="MedicationKnowledge.medicineClassification.type", description="The type of category for the medication (for example, therapeutic classification, therapeutic sub-classification)", type="token" ) + public static final String SP_CLASSIFICATION_TYPE = "classification-type"; + /** + * Fluent Client search parameter constant for classification-type + *

+ * Description: The type of category for the medication (for example, therapeutic classification, therapeutic sub-classification)
+ * Type: token
+ * Path: MedicationKnowledge.medicineClassification.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CLASSIFICATION_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CLASSIFICATION_TYPE); + /** * Search parameter: code *

@@ -6472,26 +6783,6 @@ public class MedicationKnowledge extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - /** - * Search parameter: ingredient-code - *

- * Description: Reference to a concept (by class)
- * Type: token
- * Path: MedicationKnowledge.ingredient.item.concept
- *

- */ - @SearchParamDefinition(name="ingredient-code", path="MedicationKnowledge.ingredient.item.concept", description="Reference to a concept (by class)", type="token" ) - public static final String SP_INGREDIENT_CODE = "ingredient-code"; - /** - * Fluent Client search parameter constant for ingredient-code - *

- * Description: Reference to a concept (by class)
- * Type: token
- * Path: MedicationKnowledge.ingredient.item.concept
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam INGREDIENT_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_INGREDIENT_CODE); - /** * Search parameter: ingredient *

@@ -6519,30 +6810,24 @@ public class MedicationKnowledge extends DomainResource { public static final ca.uhn.fhir.model.api.Include INCLUDE_INGREDIENT = new ca.uhn.fhir.model.api.Include("MedicationKnowledge:ingredient").toLocked(); /** - * Search parameter: manufacturer + * Search parameter: ingredient-code *

- * Description: Manufacturer of the item
- * Type: reference
- * Path: MedicationKnowledge.manufacturer
+ * Description: Reference to a concept (by class)
+ * Type: token
+ * Path: MedicationKnowledge.ingredient.item.concept
*

*/ - @SearchParamDefinition(name="manufacturer", path="MedicationKnowledge.manufacturer", description="Manufacturer of the item", type="reference", target={Organization.class } ) - public static final String SP_MANUFACTURER = "manufacturer"; + @SearchParamDefinition(name="ingredient-code", path="MedicationKnowledge.ingredient.item.concept", description="Reference to a concept (by class)", type="token" ) + public static final String SP_INGREDIENT_CODE = "ingredient-code"; /** - * Fluent Client search parameter constant for manufacturer + * Fluent Client search parameter constant for ingredient-code *

- * Description: Manufacturer of the item
- * Type: reference
- * Path: MedicationKnowledge.manufacturer
+ * Description: Reference to a concept (by class)
+ * Type: token
+ * Path: MedicationKnowledge.ingredient.item.concept
*

*/ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MANUFACTURER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_MANUFACTURER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationKnowledge:manufacturer". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_MANUFACTURER = new ca.uhn.fhir.model.api.Include("MedicationKnowledge:manufacturer").toLocked(); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam INGREDIENT_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_INGREDIENT_CODE); /** * Search parameter: monitoring-program-name @@ -6584,26 +6869,6 @@ public class MedicationKnowledge extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam MONITORING_PROGRAM_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_MONITORING_PROGRAM_TYPE); - /** - * Search parameter: monograph-type - *

- * Description: The category of medication document
- * Type: token
- * Path: MedicationKnowledge.monograph.type
- *

- */ - @SearchParamDefinition(name="monograph-type", path="MedicationKnowledge.monograph.type", description="The category of medication document", type="token" ) - public static final String SP_MONOGRAPH_TYPE = "monograph-type"; - /** - * Fluent Client search parameter constant for monograph-type - *

- * Description: The category of medication document
- * Type: token
- * Path: MedicationKnowledge.monograph.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam MONOGRAPH_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_MONOGRAPH_TYPE); - /** * Search parameter: monograph *

@@ -6631,24 +6896,24 @@ public class MedicationKnowledge extends DomainResource { public static final ca.uhn.fhir.model.api.Include INCLUDE_MONOGRAPH = new ca.uhn.fhir.model.api.Include("MedicationKnowledge:monograph").toLocked(); /** - * Search parameter: packaging-cost-concept + * Search parameter: monograph-type *

- * Description: The cost of the packaged medication, if the cost is a CodeableConcept
+ * Description: The category of medication document
* Type: token
- * Path: null
+ * Path: MedicationKnowledge.monograph.type
*

*/ - @SearchParamDefinition(name="packaging-cost-concept", path="", description="The cost of the packaged medication, if the cost is a CodeableConcept", type="token" ) - public static final String SP_PACKAGING_COST_CONCEPT = "packaging-cost-concept"; + @SearchParamDefinition(name="monograph-type", path="MedicationKnowledge.monograph.type", description="The category of medication document", type="token" ) + public static final String SP_MONOGRAPH_TYPE = "monograph-type"; /** - * Fluent Client search parameter constant for packaging-cost-concept + * Fluent Client search parameter constant for monograph-type *

- * Description: The cost of the packaged medication, if the cost is a CodeableConcept
+ * Description: The category of medication document
* Type: token
- * Path: null
+ * Path: MedicationKnowledge.monograph.type
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam PACKAGING_COST_CONCEPT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PACKAGING_COST_CONCEPT); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam MONOGRAPH_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_MONOGRAPH_TYPE); /** * Search parameter: packaging-cost @@ -6670,6 +6935,26 @@ public class MedicationKnowledge extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam PACKAGING_COST = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_PACKAGING_COST); + /** + * Search parameter: packaging-cost-concept + *

+ * Description: The cost of the packaged medication, if the cost is a CodeableConcept
+ * Type: token
+ * Path: null
+ *

+ */ + @SearchParamDefinition(name="packaging-cost-concept", path="", description="The cost of the packaged medication, if the cost is a CodeableConcept", type="token" ) + public static final String SP_PACKAGING_COST_CONCEPT = "packaging-cost-concept"; + /** + * Fluent Client search parameter constant for packaging-cost-concept + *

+ * Description: The cost of the packaged medication, if the cost is a CodeableConcept
+ * Type: token
+ * Path: null
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam PACKAGING_COST_CONCEPT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PACKAGING_COST_CONCEPT); + /** * Search parameter: product-type *

@@ -6710,6 +6995,32 @@ public class MedicationKnowledge extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam SOURCE_COST = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SOURCE_COST); + /** + * Search parameter: sponsor + *

+ * Description: Organization responsible for manufacturing of the item
+ * Type: reference
+ * Path: MedicationKnowledge.sponsor
+ *

+ */ + @SearchParamDefinition(name="sponsor", path="MedicationKnowledge.sponsor", description="Organization responsible for manufacturing of the item", type="reference", target={Organization.class } ) + public static final String SP_SPONSOR = "sponsor"; + /** + * Fluent Client search parameter constant for sponsor + *

+ * Description: Organization responsible for manufacturing of the item
+ * Type: reference
+ * Path: MedicationKnowledge.sponsor
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SPONSOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SPONSOR); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "MedicationKnowledge:sponsor". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_SPONSOR = new ca.uhn.fhir.model.api.Include("MedicationKnowledge:sponsor").toLocked(); + /** * Search parameter: status *

diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationRequest.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationRequest.java index 88018b406..774e2f8cb 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationRequest.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationRequest.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -124,7 +124,6 @@ public class MedicationRequest extends DomainResource { case FILLERORDER: return "filler-order"; case INSTANCEORDER: return "instance-order"; case OPTION: return "option"; - case NULL: return null; default: return "?"; } } @@ -138,7 +137,6 @@ public class MedicationRequest extends DomainResource { case FILLERORDER: return "http://hl7.org/fhir/CodeSystem/medicationrequest-intent"; case INSTANCEORDER: return "http://hl7.org/fhir/CodeSystem/medicationrequest-intent"; case OPTION: return "http://hl7.org/fhir/CodeSystem/medicationrequest-intent"; - case NULL: return null; default: return "?"; } } @@ -152,7 +150,6 @@ public class MedicationRequest extends DomainResource { case FILLERORDER: return "The request represents the view of an authorization instantiated by a fulfilling system representing the details of the fulfiller's intention to act upon a submitted order."; case INSTANCEORDER: return "The request represents an instance for the particular order, for example a medication administration record."; case OPTION: return "The request represents a component or option for a RequestGroup that establishes timing, conditionality and/or other constraints among a set of requests."; - case NULL: return null; default: return "?"; } } @@ -166,7 +163,6 @@ public class MedicationRequest extends DomainResource { case FILLERORDER: return "Filler Order"; case INSTANCEORDER: return "Instance Order"; case OPTION: return "Option"; - case NULL: return null; default: return "?"; } } @@ -316,7 +312,6 @@ public class MedicationRequest extends DomainResource { case STOPPED: return "stopped"; case DRAFT: return "draft"; case UNKNOWN: return "unknown"; - case NULL: return null; default: return "?"; } } @@ -330,7 +325,6 @@ public class MedicationRequest extends DomainResource { case STOPPED: return "http://hl7.org/fhir/CodeSystem/medicationrequest-status"; case DRAFT: return "http://hl7.org/fhir/CodeSystem/medicationrequest-status"; case UNKNOWN: return "http://hl7.org/fhir/CodeSystem/medicationrequest-status"; - case NULL: return null; default: return "?"; } } @@ -344,7 +338,6 @@ public class MedicationRequest extends DomainResource { case STOPPED: return "Actions implied by the prescription are to be permanently halted, before all of the administrations occurred. This should not be used if the original order was entered in error"; case DRAFT: return "The prescription is not yet 'actionable', e.g. it is a work in progress, requires sign-off, verification or needs to be run through decision support process."; case UNKNOWN: return "The authoring/source system does not know which of the status values currently applies for this observation. Note: This concept is not to be used for 'other' - one of the listed statuses is presumed to apply, but the authoring/source system does not know which."; - case NULL: return null; default: return "?"; } } @@ -358,7 +351,6 @@ public class MedicationRequest extends DomainResource { case STOPPED: return "Stopped"; case DRAFT: return "Draft"; case UNKNOWN: return "Unknown"; - case NULL: return null; default: return "?"; } } @@ -488,7 +480,22 @@ public class MedicationRequest extends DomainResource { @Description(shortDefinition="Intended performer of dispense", formalDefinition="Indicates the intended performing Organization that will dispense the medication as specified by the prescriber." ) protected Reference dispenser; - private static final long serialVersionUID = 1118791702L; + /** + * Provides additional information to the dispenser, for example, counselling to be provided to the patient. + */ + @Child(name = "dispenserInstruction", type = {Annotation.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Additional information for the dispenser", formalDefinition="Provides additional information to the dispenser, for example, counselling to be provided to the patient." ) + protected List dispenserInstruction; + + /** + * Provides information about the type of adherence packaging to be supplied for the medication dispense. + */ + @Child(name = "doseAdministrationAid", type = {CodeableConcept.class}, order=9, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Type of adherence packaging to use for the dispense", formalDefinition="Provides information about the type of adherence packaging to be supplied for the medication dispense." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/medication-dose-aid") + protected CodeableConcept doseAdministrationAid; + + private static final long serialVersionUID = -916083616L; /** * Constructor @@ -686,6 +693,83 @@ public class MedicationRequest extends DomainResource { return this; } + /** + * @return {@link #dispenserInstruction} (Provides additional information to the dispenser, for example, counselling to be provided to the patient.) + */ + public List getDispenserInstruction() { + if (this.dispenserInstruction == null) + this.dispenserInstruction = new ArrayList(); + return this.dispenserInstruction; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public MedicationRequestDispenseRequestComponent setDispenserInstruction(List theDispenserInstruction) { + this.dispenserInstruction = theDispenserInstruction; + return this; + } + + public boolean hasDispenserInstruction() { + if (this.dispenserInstruction == null) + return false; + for (Annotation item : this.dispenserInstruction) + if (!item.isEmpty()) + return true; + return false; + } + + public Annotation addDispenserInstruction() { //3 + Annotation t = new Annotation(); + if (this.dispenserInstruction == null) + this.dispenserInstruction = new ArrayList(); + this.dispenserInstruction.add(t); + return t; + } + + public MedicationRequestDispenseRequestComponent addDispenserInstruction(Annotation t) { //3 + if (t == null) + return this; + if (this.dispenserInstruction == null) + this.dispenserInstruction = new ArrayList(); + this.dispenserInstruction.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #dispenserInstruction}, creating it if it does not already exist {3} + */ + public Annotation getDispenserInstructionFirstRep() { + if (getDispenserInstruction().isEmpty()) { + addDispenserInstruction(); + } + return getDispenserInstruction().get(0); + } + + /** + * @return {@link #doseAdministrationAid} (Provides information about the type of adherence packaging to be supplied for the medication dispense.) + */ + public CodeableConcept getDoseAdministrationAid() { + if (this.doseAdministrationAid == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create MedicationRequestDispenseRequestComponent.doseAdministrationAid"); + else if (Configuration.doAutoCreate()) + this.doseAdministrationAid = new CodeableConcept(); // cc + return this.doseAdministrationAid; + } + + public boolean hasDoseAdministrationAid() { + return this.doseAdministrationAid != null && !this.doseAdministrationAid.isEmpty(); + } + + /** + * @param value {@link #doseAdministrationAid} (Provides information about the type of adherence packaging to be supplied for the medication dispense.) + */ + public MedicationRequestDispenseRequestComponent setDoseAdministrationAid(CodeableConcept value) { + this.doseAdministrationAid = value; + return this; + } + protected void listChildren(List children) { super.listChildren(children); children.add(new Property("initialFill", "", "Indicates the quantity or duration for the first dispense of the medication.", 0, 1, initialFill)); @@ -695,6 +779,8 @@ public class MedicationRequest extends DomainResource { children.add(new Property("quantity", "Quantity", "The amount that is to be dispensed for one fill.", 0, 1, quantity)); children.add(new Property("expectedSupplyDuration", "Duration", "Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last.", 0, 1, expectedSupplyDuration)); children.add(new Property("dispenser", "Reference(Organization)", "Indicates the intended performing Organization that will dispense the medication as specified by the prescriber.", 0, 1, dispenser)); + children.add(new Property("dispenserInstruction", "Annotation", "Provides additional information to the dispenser, for example, counselling to be provided to the patient.", 0, java.lang.Integer.MAX_VALUE, dispenserInstruction)); + children.add(new Property("doseAdministrationAid", "CodeableConcept", "Provides information about the type of adherence packaging to be supplied for the medication dispense.", 0, 1, doseAdministrationAid)); } @Override @@ -707,6 +793,8 @@ public class MedicationRequest extends DomainResource { case -1285004149: /*quantity*/ return new Property("quantity", "Quantity", "The amount that is to be dispensed for one fill.", 0, 1, quantity); case -1910182789: /*expectedSupplyDuration*/ return new Property("expectedSupplyDuration", "Duration", "Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last.", 0, 1, expectedSupplyDuration); case 241511093: /*dispenser*/ return new Property("dispenser", "Reference(Organization)", "Indicates the intended performing Organization that will dispense the medication as specified by the prescriber.", 0, 1, dispenser); + case 2073630361: /*dispenserInstruction*/ return new Property("dispenserInstruction", "Annotation", "Provides additional information to the dispenser, for example, counselling to be provided to the patient.", 0, java.lang.Integer.MAX_VALUE, dispenserInstruction); + case 390821217: /*doseAdministrationAid*/ return new Property("doseAdministrationAid", "CodeableConcept", "Provides information about the type of adherence packaging to be supplied for the medication dispense.", 0, 1, doseAdministrationAid); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -722,6 +810,8 @@ public class MedicationRequest extends DomainResource { case -1285004149: /*quantity*/ return this.quantity == null ? new Base[0] : new Base[] {this.quantity}; // Quantity case -1910182789: /*expectedSupplyDuration*/ return this.expectedSupplyDuration == null ? new Base[0] : new Base[] {this.expectedSupplyDuration}; // Duration case 241511093: /*dispenser*/ return this.dispenser == null ? new Base[0] : new Base[] {this.dispenser}; // Reference + case 2073630361: /*dispenserInstruction*/ return this.dispenserInstruction == null ? new Base[0] : this.dispenserInstruction.toArray(new Base[this.dispenserInstruction.size()]); // Annotation + case 390821217: /*doseAdministrationAid*/ return this.doseAdministrationAid == null ? new Base[0] : new Base[] {this.doseAdministrationAid}; // CodeableConcept default: return super.getProperty(hash, name, checkValid); } @@ -751,6 +841,12 @@ public class MedicationRequest extends DomainResource { case 241511093: // dispenser this.dispenser = TypeConvertor.castToReference(value); // Reference return value; + case 2073630361: // dispenserInstruction + this.getDispenserInstruction().add(TypeConvertor.castToAnnotation(value)); // Annotation + return value; + case 390821217: // doseAdministrationAid + this.doseAdministrationAid = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; default: return super.setProperty(hash, name, value); } @@ -772,6 +868,10 @@ public class MedicationRequest extends DomainResource { this.expectedSupplyDuration = TypeConvertor.castToDuration(value); // Duration } else if (name.equals("dispenser")) { this.dispenser = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("dispenserInstruction")) { + this.getDispenserInstruction().add(TypeConvertor.castToAnnotation(value)); + } else if (name.equals("doseAdministrationAid")) { + this.doseAdministrationAid = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else return super.setProperty(name, value); return value; @@ -787,6 +887,8 @@ public class MedicationRequest extends DomainResource { case -1285004149: return getQuantity(); case -1910182789: return getExpectedSupplyDuration(); case 241511093: return getDispenser(); + case 2073630361: return addDispenserInstruction(); + case 390821217: return getDoseAdministrationAid(); default: return super.makeProperty(hash, name); } @@ -802,6 +904,8 @@ public class MedicationRequest extends DomainResource { case -1285004149: /*quantity*/ return new String[] {"Quantity"}; case -1910182789: /*expectedSupplyDuration*/ return new String[] {"Duration"}; case 241511093: /*dispenser*/ return new String[] {"Reference"}; + case 2073630361: /*dispenserInstruction*/ return new String[] {"Annotation"}; + case 390821217: /*doseAdministrationAid*/ return new String[] {"CodeableConcept"}; default: return super.getTypesForProperty(hash, name); } @@ -836,6 +940,13 @@ public class MedicationRequest extends DomainResource { this.dispenser = new Reference(); return this.dispenser; } + else if (name.equals("dispenserInstruction")) { + return addDispenserInstruction(); + } + else if (name.equals("doseAdministrationAid")) { + this.doseAdministrationAid = new CodeableConcept(); + return this.doseAdministrationAid; + } else return super.addChild(name); } @@ -855,6 +966,12 @@ public class MedicationRequest extends DomainResource { dst.quantity = quantity == null ? null : quantity.copy(); dst.expectedSupplyDuration = expectedSupplyDuration == null ? null : expectedSupplyDuration.copy(); dst.dispenser = dispenser == null ? null : dispenser.copy(); + if (dispenserInstruction != null) { + dst.dispenserInstruction = new ArrayList(); + for (Annotation i : dispenserInstruction) + dst.dispenserInstruction.add(i.copy()); + }; + dst.doseAdministrationAid = doseAdministrationAid == null ? null : doseAdministrationAid.copy(); } @Override @@ -867,7 +984,8 @@ public class MedicationRequest extends DomainResource { return compareDeep(initialFill, o.initialFill, true) && compareDeep(dispenseInterval, o.dispenseInterval, true) && compareDeep(validityPeriod, o.validityPeriod, true) && compareDeep(numberOfRepeatsAllowed, o.numberOfRepeatsAllowed, true) && compareDeep(quantity, o.quantity, true) && compareDeep(expectedSupplyDuration, o.expectedSupplyDuration, true) - && compareDeep(dispenser, o.dispenser, true); + && compareDeep(dispenser, o.dispenser, true) && compareDeep(dispenserInstruction, o.dispenserInstruction, true) + && compareDeep(doseAdministrationAid, o.doseAdministrationAid, true); } @Override @@ -883,7 +1001,7 @@ public class MedicationRequest extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(initialFill, dispenseInterval , validityPeriod, numberOfRepeatsAllowed, quantity, expectedSupplyDuration, dispenser - ); + , dispenserInstruction, doseAdministrationAid); } public String fhirType() { @@ -3571,6 +3689,340 @@ public class MedicationRequest extends DomainResource { return ResourceType.MedicationRequest; } + /** + * Search parameter: code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "MedicationRequest:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("MedicationRequest:patient").toLocked(); + + /** + * Search parameter: encounter + *

+ * Description: Multiple Resources: + +* [MedicationAdministration](medicationadministration.html): Return administrations that share this encounter +* [MedicationRequest](medicationrequest.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: MedicationAdministration.encounter | MedicationRequest.encounter
+ *

+ */ + @SearchParamDefinition(name="encounter", path="MedicationAdministration.encounter | MedicationRequest.encounter", description="Multiple Resources: \r\n\r\n* [MedicationAdministration](medicationadministration.html): Return administrations that share this encounter\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) + public static final String SP_ENCOUNTER = "encounter"; + /** + * Fluent Client search parameter constant for encounter + *

+ * Description: Multiple Resources: + +* [MedicationAdministration](medicationadministration.html): Return administrations that share this encounter +* [MedicationRequest](medicationrequest.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: MedicationAdministration.encounter | MedicationRequest.encounter
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "MedicationRequest:encounter". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("MedicationRequest:encounter").toLocked(); + + /** + * Search parameter: medication + *

+ * Description: Multiple Resources: + +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource +* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference +* [MedicationUsage](medicationusage.html): Return statements of this medication reference +
+ * Type: reference
+ * Path: MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference
+ *

+ */ + @SearchParamDefinition(name="medication", path="MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference", description="Multiple Resources: \r\n\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication reference\r\n", type="reference" ) + public static final String SP_MEDICATION = "medication"; + /** + * Fluent Client search parameter constant for medication + *

+ * Description: Multiple Resources: + +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource +* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference +* [MedicationUsage](medicationusage.html): Return statements of this medication reference +
+ * Type: reference
+ * Path: MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MEDICATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_MEDICATION); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "MedicationRequest:medication". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_MEDICATION = new ca.uhn.fhir.model.api.Include("MedicationRequest:medication").toLocked(); + + /** + * Search parameter: status + *

+ * Description: Multiple Resources: + +* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified) +* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status +* [MedicationRequest](medicationrequest.html): Status of the prescription +* [MedicationUsage](medicationusage.html): Return statements that match the given status +
+ * Type: token
+ * Path: MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status
+ *

+ */ + @SearchParamDefinition(name="status", path="MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status", description="Multiple Resources: \r\n\r\n* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified)\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status\r\n* [MedicationRequest](medicationrequest.html): Status of the prescription\r\n* [MedicationUsage](medicationusage.html): Return statements that match the given status\r\n", type="token" ) + public static final String SP_STATUS = "status"; + /** + * Fluent Client search parameter constant for status + *

+ * Description: Multiple Resources: + +* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified) +* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status +* [MedicationRequest](medicationrequest.html): Status of the prescription +* [MedicationUsage](medicationusage.html): Return statements that match the given status +
+ * Type: token
+ * Path: MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); + /** * Search parameter: authoredon *

@@ -3795,340 +4247,6 @@ public class MedicationRequest extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("MedicationRequest:subject").toLocked(); - /** - * Search parameter: code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) - public static final String SP_CODE = "code"; - /** - * Fluent Client search parameter constant for code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationRequest:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("MedicationRequest:patient").toLocked(); - - /** - * Search parameter: encounter - *

- * Description: Multiple Resources: - -* [MedicationAdministration](medicationadministration.html): Return administrations that share this encounter -* [MedicationRequest](medicationrequest.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: MedicationAdministration.encounter | MedicationRequest.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="MedicationAdministration.encounter | MedicationRequest.encounter", description="Multiple Resources: \r\n\r\n* [MedicationAdministration](medicationadministration.html): Return administrations that share this encounter\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) - public static final String SP_ENCOUNTER = "encounter"; - /** - * Fluent Client search parameter constant for encounter - *

- * Description: Multiple Resources: - -* [MedicationAdministration](medicationadministration.html): Return administrations that share this encounter -* [MedicationRequest](medicationrequest.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: MedicationAdministration.encounter | MedicationRequest.encounter
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationRequest:encounter". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("MedicationRequest:encounter").toLocked(); - - /** - * Search parameter: medication - *

- * Description: Multiple Resources: - -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource -* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference -* [MedicationUsage](medicationusage.html): Return statements of this medication reference -
- * Type: reference
- * Path: MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference
- *

- */ - @SearchParamDefinition(name="medication", path="MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference", description="Multiple Resources: \r\n\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication reference\r\n", type="reference" ) - public static final String SP_MEDICATION = "medication"; - /** - * Fluent Client search parameter constant for medication - *

- * Description: Multiple Resources: - -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource -* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference -* [MedicationUsage](medicationusage.html): Return statements of this medication reference -
- * Type: reference
- * Path: MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MEDICATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_MEDICATION); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationRequest:medication". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_MEDICATION = new ca.uhn.fhir.model.api.Include("MedicationRequest:medication").toLocked(); - - /** - * Search parameter: status - *

- * Description: Multiple Resources: - -* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified) -* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status -* [MedicationRequest](medicationrequest.html): Status of the prescription -* [MedicationUsage](medicationusage.html): Return statements that match the given status -
- * Type: token
- * Path: MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status
- *

- */ - @SearchParamDefinition(name="status", path="MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status", description="Multiple Resources: \r\n\r\n* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified)\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status\r\n* [MedicationRequest](medicationrequest.html): Status of the prescription\r\n* [MedicationUsage](medicationusage.html): Return statements that match the given status\r\n", type="token" ) - public static final String SP_STATUS = "status"; - /** - * Fluent Client search parameter constant for status - *

- * Description: Multiple Resources: - -* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified) -* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status -* [MedicationRequest](medicationrequest.html): Status of the prescription -* [MedicationUsage](medicationusage.html): Return statements that match the given status -
- * Type: token
- * Path: MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationUsage.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationUsage.java index 244784465..a7c060ae2 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationUsage.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicationUsage.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -57,11 +57,7 @@ public class MedicationUsage extends DomainResource { public enum MedicationUsageStatusCodes { /** - * The medication is still being taken. - */ - ACTIVE, - /** - * The medication is no longer being taken. + * The action of recording the medication statement is finished. */ COMPLETED, /** @@ -69,25 +65,9 @@ public class MedicationUsage extends DomainResource { */ ENTEREDINERROR, /** - * The medication may be taken at some time in the future. - */ - INTENDED, - /** - * Actions implied by the usage have been permanently halted, before all of them occurred. This should not be used if the statement was entered in error. - */ - STOPPED, - /** - * Actions implied by the usage have been temporarily halted, but are expected to continue later. May also be called 'suspended'. - */ - ONHOLD, - /** - * The state of the medication use is not currently known. + * The state of the medication usage is not currently known. */ UNKNOWN, - /** - * The medication was not consumed by the patient - */ - NOTTAKEN, /** * added to help the parsers with the generic types */ @@ -95,22 +75,12 @@ public class MedicationUsage extends DomainResource { public static MedicationUsageStatusCodes fromCode(String codeString) throws FHIRException { if (codeString == null || "".equals(codeString)) return null; - if ("active".equals(codeString)) - return ACTIVE; if ("completed".equals(codeString)) return COMPLETED; if ("entered-in-error".equals(codeString)) return ENTEREDINERROR; - if ("intended".equals(codeString)) - return INTENDED; - if ("stopped".equals(codeString)) - return STOPPED; - if ("on-hold".equals(codeString)) - return ONHOLD; if ("unknown".equals(codeString)) return UNKNOWN; - if ("not-taken".equals(codeString)) - return NOTTAKEN; if (Configuration.isAcceptInvalidEnums()) return null; else @@ -118,57 +88,33 @@ public class MedicationUsage extends DomainResource { } public String toCode() { switch (this) { - case ACTIVE: return "active"; case COMPLETED: return "completed"; case ENTEREDINERROR: return "entered-in-error"; - case INTENDED: return "intended"; - case STOPPED: return "stopped"; - case ONHOLD: return "on-hold"; case UNKNOWN: return "unknown"; - case NOTTAKEN: return "not-taken"; - case NULL: return null; default: return "?"; } } public String getSystem() { switch (this) { - case ACTIVE: return "http://hl7.org/fhir/CodeSystem/medication-usage-status"; case COMPLETED: return "http://hl7.org/fhir/CodeSystem/medication-usage-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/CodeSystem/medication-usage-status"; - case INTENDED: return "http://hl7.org/fhir/CodeSystem/medication-usage-status"; - case STOPPED: return "http://hl7.org/fhir/CodeSystem/medication-usage-status"; - case ONHOLD: return "http://hl7.org/fhir/CodeSystem/medication-usage-status"; case UNKNOWN: return "http://hl7.org/fhir/CodeSystem/medication-usage-status"; - case NOTTAKEN: return "http://hl7.org/fhir/CodeSystem/medication-usage-status"; - case NULL: return null; default: return "?"; } } public String getDefinition() { switch (this) { - case ACTIVE: return "The medication is still being taken."; - case COMPLETED: return "The medication is no longer being taken."; + case COMPLETED: return "The action of recording the medication statement is finished."; case ENTEREDINERROR: return "Some of the actions that are implied by the medication usage may have occurred. For example, the patient may have taken some of the medication. Clinical decision support systems should take this status into account."; - case INTENDED: return "The medication may be taken at some time in the future."; - case STOPPED: return "Actions implied by the usage have been permanently halted, before all of them occurred. This should not be used if the statement was entered in error."; - case ONHOLD: return "Actions implied by the usage have been temporarily halted, but are expected to continue later. May also be called 'suspended'."; - case UNKNOWN: return "The state of the medication use is not currently known."; - case NOTTAKEN: return "The medication was not consumed by the patient"; - case NULL: return null; + case UNKNOWN: return "The state of the medication usage is not currently known."; default: return "?"; } } public String getDisplay() { switch (this) { - case ACTIVE: return "Active"; case COMPLETED: return "Completed"; case ENTEREDINERROR: return "Entered in Error"; - case INTENDED: return "Intended"; - case STOPPED: return "Stopped"; - case ONHOLD: return "On Hold"; case UNKNOWN: return "Unknown"; - case NOTTAKEN: return "Not Taken"; - case NULL: return null; default: return "?"; } } @@ -179,22 +125,12 @@ public class MedicationUsage extends DomainResource { if (codeString == null || "".equals(codeString)) if (codeString == null || "".equals(codeString)) return null; - if ("active".equals(codeString)) - return MedicationUsageStatusCodes.ACTIVE; if ("completed".equals(codeString)) return MedicationUsageStatusCodes.COMPLETED; if ("entered-in-error".equals(codeString)) return MedicationUsageStatusCodes.ENTEREDINERROR; - if ("intended".equals(codeString)) - return MedicationUsageStatusCodes.INTENDED; - if ("stopped".equals(codeString)) - return MedicationUsageStatusCodes.STOPPED; - if ("on-hold".equals(codeString)) - return MedicationUsageStatusCodes.ONHOLD; if ("unknown".equals(codeString)) return MedicationUsageStatusCodes.UNKNOWN; - if ("not-taken".equals(codeString)) - return MedicationUsageStatusCodes.NOTTAKEN; throw new IllegalArgumentException("Unknown MedicationUsageStatusCodes code '"+codeString+"'"); } public Enumeration fromType(Base code) throws FHIRException { @@ -205,41 +141,21 @@ public class MedicationUsage extends DomainResource { String codeString = ((PrimitiveType) code).asStringValue(); if (codeString == null || "".equals(codeString)) return null; - if ("active".equals(codeString)) - return new Enumeration(this, MedicationUsageStatusCodes.ACTIVE); if ("completed".equals(codeString)) return new Enumeration(this, MedicationUsageStatusCodes.COMPLETED); if ("entered-in-error".equals(codeString)) return new Enumeration(this, MedicationUsageStatusCodes.ENTEREDINERROR); - if ("intended".equals(codeString)) - return new Enumeration(this, MedicationUsageStatusCodes.INTENDED); - if ("stopped".equals(codeString)) - return new Enumeration(this, MedicationUsageStatusCodes.STOPPED); - if ("on-hold".equals(codeString)) - return new Enumeration(this, MedicationUsageStatusCodes.ONHOLD); if ("unknown".equals(codeString)) return new Enumeration(this, MedicationUsageStatusCodes.UNKNOWN); - if ("not-taken".equals(codeString)) - return new Enumeration(this, MedicationUsageStatusCodes.NOTTAKEN); throw new FHIRException("Unknown MedicationUsageStatusCodes code '"+codeString+"'"); } public String toCode(MedicationUsageStatusCodes code) { - if (code == MedicationUsageStatusCodes.ACTIVE) - return "active"; if (code == MedicationUsageStatusCodes.COMPLETED) return "completed"; if (code == MedicationUsageStatusCodes.ENTEREDINERROR) return "entered-in-error"; - if (code == MedicationUsageStatusCodes.INTENDED) - return "intended"; - if (code == MedicationUsageStatusCodes.STOPPED) - return "stopped"; - if (code == MedicationUsageStatusCodes.ONHOLD) - return "on-hold"; if (code == MedicationUsageStatusCodes.UNKNOWN) return "unknown"; - if (code == MedicationUsageStatusCodes.NOTTAKEN) - return "not-taken"; return "?"; } public String toSystem(MedicationUsageStatusCodes code) { @@ -269,10 +185,10 @@ public class MedicationUsage extends DomainResource { protected List partOf; /** - * A code representing the patient or other source's judgment about the state of the medication used that this usage is about. Generally, this will be active or completed. + * A code representing the status of recording the medication usage. */ @Child(name = "status", type = {CodeType.class}, order=3, min=1, max=1, modifier=true, summary=true) - @Description(shortDefinition="active | completed | entered-in-error | intended | stopped | on-hold | unknown | not-taken", formalDefinition="A code representing the patient or other source's judgment about the state of the medication used that this usage is about. Generally, this will be active or completed." ) + @Description(shortDefinition="completed | entered-in-error | unknown", formalDefinition="A code representing the status of recording the medication usage." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/medication-usage-status") protected Enumeration status; @@ -372,13 +288,14 @@ public class MedicationUsage extends DomainResource { protected List dosage; /** - * Indicates if the medication is being consumed or administered as prescribed. + * Indicates if the medication is being consumed or administered as instructed. */ - @Child(name = "takenAsOrdered", type = {BooleanType.class}, order=17, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Indicates if the medication is being consumed or administered as prescribed", formalDefinition="Indicates if the medication is being consumed or administered as prescribed." ) - protected BooleanType takenAsOrdered; + @Child(name = "adherence", type = {CodeableConcept.class}, order=17, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Indicates if the medication is being consumed or administered as instructed", formalDefinition="Indicates if the medication is being consumed or administered as instructed." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/medication-usage-adherence") + protected CodeableConcept adherence; - private static final long serialVersionUID = 1177242918L; + private static final long serialVersionUID = -2108505158L; /** * Constructor @@ -557,7 +474,7 @@ public class MedicationUsage extends DomainResource { } /** - * @return {@link #status} (A code representing the patient or other source's judgment about the state of the medication used that this usage is about. Generally, this will be active or completed.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value + * @return {@link #status} (A code representing the status of recording the medication usage.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ public Enumeration getStatusElement() { if (this.status == null) @@ -577,7 +494,7 @@ public class MedicationUsage extends DomainResource { } /** - * @param value {@link #status} (A code representing the patient or other source's judgment about the state of the medication used that this usage is about. Generally, this will be active or completed.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value + * @param value {@link #status} (A code representing the status of recording the medication usage.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ public MedicationUsage setStatusElement(Enumeration value) { this.status = value; @@ -585,14 +502,14 @@ public class MedicationUsage extends DomainResource { } /** - * @return A code representing the patient or other source's judgment about the state of the medication used that this usage is about. Generally, this will be active or completed. + * @return A code representing the status of recording the medication usage. */ public MedicationUsageStatusCodes getStatus() { return this.status == null ? null : this.status.getValue(); } /** - * @param value A code representing the patient or other source's judgment about the state of the medication used that this usage is about. Generally, this will be active or completed. + * @param value A code representing the status of recording the medication usage. */ public MedicationUsage setStatus(MedicationUsageStatusCodes value) { if (this.status == null) @@ -1165,47 +1082,26 @@ public class MedicationUsage extends DomainResource { } /** - * @return {@link #takenAsOrdered} (Indicates if the medication is being consumed or administered as prescribed.). This is the underlying object with id, value and extensions. The accessor "getTakenAsOrdered" gives direct access to the value + * @return {@link #adherence} (Indicates if the medication is being consumed or administered as instructed.) */ - public BooleanType getTakenAsOrderedElement() { - if (this.takenAsOrdered == null) + public CodeableConcept getAdherence() { + if (this.adherence == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create MedicationUsage.takenAsOrdered"); + throw new Error("Attempt to auto-create MedicationUsage.adherence"); else if (Configuration.doAutoCreate()) - this.takenAsOrdered = new BooleanType(); // bb - return this.takenAsOrdered; + this.adherence = new CodeableConcept(); // cc + return this.adherence; } - public boolean hasTakenAsOrderedElement() { - return this.takenAsOrdered != null && !this.takenAsOrdered.isEmpty(); - } - - public boolean hasTakenAsOrdered() { - return this.takenAsOrdered != null && !this.takenAsOrdered.isEmpty(); + public boolean hasAdherence() { + return this.adherence != null && !this.adherence.isEmpty(); } /** - * @param value {@link #takenAsOrdered} (Indicates if the medication is being consumed or administered as prescribed.). This is the underlying object with id, value and extensions. The accessor "getTakenAsOrdered" gives direct access to the value + * @param value {@link #adherence} (Indicates if the medication is being consumed or administered as instructed.) */ - public MedicationUsage setTakenAsOrderedElement(BooleanType value) { - this.takenAsOrdered = value; - return this; - } - - /** - * @return Indicates if the medication is being consumed or administered as prescribed. - */ - public boolean getTakenAsOrdered() { - return this.takenAsOrdered == null || this.takenAsOrdered.isEmpty() ? false : this.takenAsOrdered.getValue(); - } - - /** - * @param value Indicates if the medication is being consumed or administered as prescribed. - */ - public MedicationUsage setTakenAsOrdered(boolean value) { - if (this.takenAsOrdered == null) - this.takenAsOrdered = new BooleanType(); - this.takenAsOrdered.setValue(value); + public MedicationUsage setAdherence(CodeableConcept value) { + this.adherence = value; return this; } @@ -1214,7 +1110,7 @@ public class MedicationUsage extends DomainResource { children.add(new Property("identifier", "Identifier", "Identifiers associated with this Medication Usage that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier)); children.add(new Property("basedOn", "Reference(MedicationRequest|CarePlan|ServiceRequest)", "A plan, proposal or order that is fulfilled in whole or in part by this event.", 0, java.lang.Integer.MAX_VALUE, basedOn)); children.add(new Property("partOf", "Reference(MedicationAdministration|MedicationDispense|MedicationUsage|Procedure|Observation)", "A larger event of which this particular event is a component or step.", 0, java.lang.Integer.MAX_VALUE, partOf)); - children.add(new Property("status", "code", "A code representing the patient or other source's judgment about the state of the medication used that this usage is about. Generally, this will be active or completed.", 0, 1, status)); + children.add(new Property("status", "code", "A code representing the status of recording the medication usage.", 0, 1, status)); children.add(new Property("statusReason", "CodeableConcept", "Captures the reason for the current state of the MedicationUsage.", 0, java.lang.Integer.MAX_VALUE, statusReason)); children.add(new Property("category", "CodeableConcept", "Type of medication usage (for example, drug classification like ATC, where meds would be administered, legal category of the medication.).", 0, java.lang.Integer.MAX_VALUE, category)); children.add(new Property("medication", "CodeableReference(Medication)", "Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.", 0, 1, medication)); @@ -1228,7 +1124,7 @@ public class MedicationUsage extends DomainResource { children.add(new Property("note", "Annotation", "Provides extra information about the Medication Usage that is not conveyed by the other attributes.", 0, java.lang.Integer.MAX_VALUE, note)); children.add(new Property("renderedDosageInstruction", "string", "The full representation of the dose of the medication included in all dosage instructions. To be used when multiple dosage instructions are included to represent complex dosing such as increasing or tapering doses.", 0, 1, renderedDosageInstruction)); children.add(new Property("dosage", "Dosage", "Indicates how the medication is/was or should be taken by the patient.", 0, java.lang.Integer.MAX_VALUE, dosage)); - children.add(new Property("takenAsOrdered", "boolean", "Indicates if the medication is being consumed or administered as prescribed.", 0, 1, takenAsOrdered)); + children.add(new Property("adherence", "CodeableConcept", "Indicates if the medication is being consumed or administered as instructed.", 0, 1, adherence)); } @Override @@ -1237,7 +1133,7 @@ public class MedicationUsage extends DomainResource { case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifiers associated with this Medication Usage that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier); case -332612366: /*basedOn*/ return new Property("basedOn", "Reference(MedicationRequest|CarePlan|ServiceRequest)", "A plan, proposal or order that is fulfilled in whole or in part by this event.", 0, java.lang.Integer.MAX_VALUE, basedOn); case -995410646: /*partOf*/ return new Property("partOf", "Reference(MedicationAdministration|MedicationDispense|MedicationUsage|Procedure|Observation)", "A larger event of which this particular event is a component or step.", 0, java.lang.Integer.MAX_VALUE, partOf); - case -892481550: /*status*/ return new Property("status", "code", "A code representing the patient or other source's judgment about the state of the medication used that this usage is about. Generally, this will be active or completed.", 0, 1, status); + case -892481550: /*status*/ return new Property("status", "code", "A code representing the status of recording the medication usage.", 0, 1, status); case 2051346646: /*statusReason*/ return new Property("statusReason", "CodeableConcept", "Captures the reason for the current state of the MedicationUsage.", 0, java.lang.Integer.MAX_VALUE, statusReason); case 50511102: /*category*/ return new Property("category", "CodeableConcept", "Type of medication usage (for example, drug classification like ATC, where meds would be administered, legal category of the medication.).", 0, java.lang.Integer.MAX_VALUE, category); case 1998965455: /*medication*/ return new Property("medication", "CodeableReference(Medication)", "Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.", 0, 1, medication); @@ -1254,7 +1150,7 @@ public class MedicationUsage extends DomainResource { case 3387378: /*note*/ return new Property("note", "Annotation", "Provides extra information about the Medication Usage that is not conveyed by the other attributes.", 0, java.lang.Integer.MAX_VALUE, note); case 1718902050: /*renderedDosageInstruction*/ return new Property("renderedDosageInstruction", "string", "The full representation of the dose of the medication included in all dosage instructions. To be used when multiple dosage instructions are included to represent complex dosing such as increasing or tapering doses.", 0, 1, renderedDosageInstruction); case -1326018889: /*dosage*/ return new Property("dosage", "Dosage", "Indicates how the medication is/was or should be taken by the patient.", 0, java.lang.Integer.MAX_VALUE, dosage); - case 268106452: /*takenAsOrdered*/ return new Property("takenAsOrdered", "boolean", "Indicates if the medication is being consumed or administered as prescribed.", 0, 1, takenAsOrdered); + case -231003683: /*adherence*/ return new Property("adherence", "CodeableConcept", "Indicates if the medication is being consumed or administered as instructed.", 0, 1, adherence); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -1280,7 +1176,7 @@ public class MedicationUsage extends DomainResource { case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation case 1718902050: /*renderedDosageInstruction*/ return this.renderedDosageInstruction == null ? new Base[0] : new Base[] {this.renderedDosageInstruction}; // StringType case -1326018889: /*dosage*/ return this.dosage == null ? new Base[0] : this.dosage.toArray(new Base[this.dosage.size()]); // Dosage - case 268106452: /*takenAsOrdered*/ return this.takenAsOrdered == null ? new Base[0] : new Base[] {this.takenAsOrdered}; // BooleanType + case -231003683: /*adherence*/ return this.adherence == null ? new Base[0] : new Base[] {this.adherence}; // CodeableConcept default: return super.getProperty(hash, name, checkValid); } @@ -1341,8 +1237,8 @@ public class MedicationUsage extends DomainResource { case -1326018889: // dosage this.getDosage().add(TypeConvertor.castToDosage(value)); // Dosage return value; - case 268106452: // takenAsOrdered - this.takenAsOrdered = TypeConvertor.castToBoolean(value); // BooleanType + case -231003683: // adherence + this.adherence = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; default: return super.setProperty(hash, name, value); } @@ -1386,8 +1282,8 @@ public class MedicationUsage extends DomainResource { this.renderedDosageInstruction = TypeConvertor.castToString(value); // StringType } else if (name.equals("dosage")) { this.getDosage().add(TypeConvertor.castToDosage(value)); - } else if (name.equals("takenAsOrdered")) { - this.takenAsOrdered = TypeConvertor.castToBoolean(value); // BooleanType + } else if (name.equals("adherence")) { + this.adherence = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else return super.setProperty(name, value); return value; @@ -1414,7 +1310,7 @@ public class MedicationUsage extends DomainResource { case 3387378: return addNote(); case 1718902050: return getRenderedDosageInstructionElement(); case -1326018889: return addDosage(); - case 268106452: return getTakenAsOrderedElement(); + case -231003683: return getAdherence(); default: return super.makeProperty(hash, name); } @@ -1440,7 +1336,7 @@ public class MedicationUsage extends DomainResource { case 3387378: /*note*/ return new String[] {"Annotation"}; case 1718902050: /*renderedDosageInstruction*/ return new String[] {"string"}; case -1326018889: /*dosage*/ return new String[] {"Dosage"}; - case 268106452: /*takenAsOrdered*/ return new String[] {"boolean"}; + case -231003683: /*adherence*/ return new String[] {"CodeableConcept"}; default: return super.getTypesForProperty(hash, name); } @@ -1508,8 +1404,9 @@ public class MedicationUsage extends DomainResource { else if (name.equals("dosage")) { return addDosage(); } - else if (name.equals("takenAsOrdered")) { - throw new FHIRException("Cannot call addChild on a primitive type MedicationUsage.takenAsOrdered"); + else if (name.equals("adherence")) { + this.adherence = new CodeableConcept(); + return this.adherence; } else return super.addChild(name); @@ -1581,7 +1478,7 @@ public class MedicationUsage extends DomainResource { for (Dosage i : dosage) dst.dosage.add(i.copy()); }; - dst.takenAsOrdered = takenAsOrdered == null ? null : takenAsOrdered.copy(); + dst.adherence = adherence == null ? null : adherence.copy(); } protected MedicationUsage typedCopy() { @@ -1601,7 +1498,7 @@ public class MedicationUsage extends DomainResource { && compareDeep(effective, o.effective, true) && compareDeep(dateAsserted, o.dateAsserted, true) && compareDeep(informationSource, o.informationSource, true) && compareDeep(derivedFrom, o.derivedFrom, true) && compareDeep(reason, o.reason, true) && compareDeep(note, o.note, true) && compareDeep(renderedDosageInstruction, o.renderedDosageInstruction, true) - && compareDeep(dosage, o.dosage, true) && compareDeep(takenAsOrdered, o.takenAsOrdered, true); + && compareDeep(dosage, o.dosage, true) && compareDeep(adherence, o.adherence, true); } @Override @@ -1612,14 +1509,14 @@ public class MedicationUsage extends DomainResource { return false; MedicationUsage o = (MedicationUsage) other_; return compareValues(status, o.status, true) && compareValues(dateAsserted, o.dateAsserted, true) && compareValues(renderedDosageInstruction, o.renderedDosageInstruction, true) - && compareValues(takenAsOrdered, o.takenAsOrdered, true); + ; } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, basedOn, partOf , status, statusReason, category, medication, subject, encounter, effective, dateAsserted , informationSource, derivedFrom, reason, note, renderedDosageInstruction, dosage - , takenAsOrdered); + , adherence); } @Override @@ -1627,22 +1524,322 @@ public class MedicationUsage extends DomainResource { return ResourceType.MedicationUsage; } + /** + * Search parameter: code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "MedicationUsage:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("MedicationUsage:patient").toLocked(); + + /** + * Search parameter: medication + *

+ * Description: Multiple Resources: + +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource +* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference +* [MedicationUsage](medicationusage.html): Return statements of this medication reference +
+ * Type: reference
+ * Path: MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference
+ *

+ */ + @SearchParamDefinition(name="medication", path="MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference", description="Multiple Resources: \r\n\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication reference\r\n", type="reference" ) + public static final String SP_MEDICATION = "medication"; + /** + * Fluent Client search parameter constant for medication + *

+ * Description: Multiple Resources: + +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource +* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference +* [MedicationUsage](medicationusage.html): Return statements of this medication reference +
+ * Type: reference
+ * Path: MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MEDICATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_MEDICATION); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "MedicationUsage:medication". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_MEDICATION = new ca.uhn.fhir.model.api.Include("MedicationUsage:medication").toLocked(); + + /** + * Search parameter: status + *

+ * Description: Multiple Resources: + +* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified) +* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status +* [MedicationRequest](medicationrequest.html): Status of the prescription +* [MedicationUsage](medicationusage.html): Return statements that match the given status +
+ * Type: token
+ * Path: MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status
+ *

+ */ + @SearchParamDefinition(name="status", path="MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status", description="Multiple Resources: \r\n\r\n* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified)\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status\r\n* [MedicationRequest](medicationrequest.html): Status of the prescription\r\n* [MedicationUsage](medicationusage.html): Return statements that match the given status\r\n", type="token" ) + public static final String SP_STATUS = "status"; + /** + * Fluent Client search parameter constant for status + *

+ * Description: Multiple Resources: + +* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified) +* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status +* [MedicationRequest](medicationrequest.html): Status of the prescription +* [MedicationUsage](medicationusage.html): Return statements that match the given status +
+ * Type: token
+ * Path: MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); + /** * Search parameter: adherence *

* Description: Returns statements based on adherence or compliance
* Type: token
- * Path: MedicationUsage.takenAsOrdered
+ * Path: MedicationUsage.adherence
*

*/ - @SearchParamDefinition(name="adherence", path="MedicationUsage.takenAsOrdered", description="Returns statements based on adherence or compliance", type="token" ) + @SearchParamDefinition(name="adherence", path="MedicationUsage.adherence", description="Returns statements based on adherence or compliance", type="token" ) public static final String SP_ADHERENCE = "adherence"; /** * Fluent Client search parameter constant for adherence *

* Description: Returns statements based on adherence or compliance
* Type: token
- * Path: MedicationUsage.takenAsOrdered
+ * Path: MedicationUsage.adherence
*

*/ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ADHERENCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ADHERENCE); @@ -1791,306 +1988,6 @@ public class MedicationUsage extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("MedicationUsage:subject").toLocked(); - /** - * Search parameter: code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) - public static final String SP_CODE = "code"; - /** - * Fluent Client search parameter constant for code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationUsage:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("MedicationUsage:patient").toLocked(); - - /** - * Search parameter: medication - *

- * Description: Multiple Resources: - -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource -* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference -* [MedicationUsage](medicationusage.html): Return statements of this medication reference -
- * Type: reference
- * Path: MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference
- *

- */ - @SearchParamDefinition(name="medication", path="MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference", description="Multiple Resources: \r\n\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication reference\r\n", type="reference" ) - public static final String SP_MEDICATION = "medication"; - /** - * Fluent Client search parameter constant for medication - *

- * Description: Multiple Resources: - -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication reference -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine resource -* [MedicationRequest](medicationrequest.html): Return prescriptions for this medication reference -* [MedicationUsage](medicationusage.html): Return statements of this medication reference -
- * Type: reference
- * Path: MedicationAdministration.medication.reference | MedicationDispense.medication.reference | MedicationRequest.medication.reference | MedicationUsage.medication.reference
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MEDICATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_MEDICATION); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MedicationUsage:medication". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_MEDICATION = new ca.uhn.fhir.model.api.Include("MedicationUsage:medication").toLocked(); - - /** - * Search parameter: status - *

- * Description: Multiple Resources: - -* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified) -* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status -* [MedicationRequest](medicationrequest.html): Status of the prescription -* [MedicationUsage](medicationusage.html): Return statements that match the given status -
- * Type: token
- * Path: MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status
- *

- */ - @SearchParamDefinition(name="status", path="MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status", description="Multiple Resources: \r\n\r\n* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified)\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status\r\n* [MedicationRequest](medicationrequest.html): Status of the prescription\r\n* [MedicationUsage](medicationusage.html): Return statements that match the given status\r\n", type="token" ) - public static final String SP_STATUS = "status"; - /** - * Fluent Client search parameter constant for status - *

- * Description: Multiple Resources: - -* [MedicationAdministration](medicationadministration.html): MedicationAdministration event status (for example one of active/paused/completed/nullified) -* [MedicationDispense](medicationdispense.html): Returns dispenses with a specified dispense status -* [MedicationRequest](medicationrequest.html): Status of the prescription -* [MedicationUsage](medicationusage.html): Return statements that match the given status -
- * Type: token
- * Path: MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationUsage.status
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicinalProductDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicinalProductDefinition.java index 0e723c4a9..67a6493eb 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicinalProductDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MedicinalProductDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -48,7 +48,7 @@ import ca.uhn.fhir.model.api.annotation.Description; import ca.uhn.fhir.model.api.annotation.Block; /** - * Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use). + * Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use, drug catalogs). */ @ResourceDef(name="MedicinalProductDefinition", profile="http://hl7.org/fhir/StructureDefinition/MedicinalProductDefinition") public class MedicinalProductDefinition extends DomainResource { @@ -56,10 +56,10 @@ public class MedicinalProductDefinition extends DomainResource { @Block() public static class MedicinalProductDefinitionContactComponent extends BackboneElement implements IBaseBackboneElement { /** - * Allows the contact to be classified, for example QPPV, Pharmacovigilence Enquiry Information. + * Allows the contact to be classified, for example QPPV, Pharmacovigilance Enquiry Information. */ @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Allows the contact to be classified, for example QPPV, Pharmacovigilence Enquiry Information", formalDefinition="Allows the contact to be classified, for example QPPV, Pharmacovigilence Enquiry Information." ) + @Description(shortDefinition="Allows the contact to be classified, for example QPPV, Pharmacovigilance Enquiry Information", formalDefinition="Allows the contact to be classified, for example QPPV, Pharmacovigilance Enquiry Information." ) protected CodeableConcept type; /** @@ -87,7 +87,7 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @return {@link #type} (Allows the contact to be classified, for example QPPV, Pharmacovigilence Enquiry Information.) + * @return {@link #type} (Allows the contact to be classified, for example QPPV, Pharmacovigilance Enquiry Information.) */ public CodeableConcept getType() { if (this.type == null) @@ -103,7 +103,7 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @param value {@link #type} (Allows the contact to be classified, for example QPPV, Pharmacovigilence Enquiry Information.) + * @param value {@link #type} (Allows the contact to be classified, for example QPPV, Pharmacovigilance Enquiry Information.) */ public MedicinalProductDefinitionContactComponent setType(CodeableConcept value) { this.type = value; @@ -136,14 +136,14 @@ public class MedicinalProductDefinition extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("type", "CodeableConcept", "Allows the contact to be classified, for example QPPV, Pharmacovigilence Enquiry Information.", 0, 1, type)); + children.add(new Property("type", "CodeableConcept", "Allows the contact to be classified, for example QPPV, Pharmacovigilance Enquiry Information.", 0, 1, type)); children.add(new Property("contact", "Reference(Organization|PractitionerRole)", "A product specific contact, person (in a role), or an organization.", 0, 1, contact)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Allows the contact to be classified, for example QPPV, Pharmacovigilence Enquiry Information.", 0, 1, type); + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Allows the contact to be classified, for example QPPV, Pharmacovigilance Enquiry Information.", 0, 1, type); case 951526432: /*contact*/ return new Property("contact", "Reference(Organization|PractitionerRole)", "A product specific contact, person (in a role), or an organization.", 0, 1, contact); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -659,10 +659,10 @@ public class MedicinalProductDefinition extends DomainResource { protected StringType part; /** - * Idenifying type for this part of the name (e.g. strength part). + * Identifying type for this part of the name (e.g. strength part). */ @Child(name = "type", type = {CodeableConcept.class}, order=2, min=1, max=1, modifier=false, summary=true) - @Description(shortDefinition="Idenifying type for this part of the name (e.g. strength part)", formalDefinition="Idenifying type for this part of the name (e.g. strength part)." ) + @Description(shortDefinition="Identifying type for this part of the name (e.g. strength part)", formalDefinition="Identifying type for this part of the name (e.g. strength part)." ) protected CodeableConcept type; private static final long serialVersionUID = -1359126549L; @@ -729,7 +729,7 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @return {@link #type} (Idenifying type for this part of the name (e.g. strength part).) + * @return {@link #type} (Identifying type for this part of the name (e.g. strength part).) */ public CodeableConcept getType() { if (this.type == null) @@ -745,7 +745,7 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @param value {@link #type} (Idenifying type for this part of the name (e.g. strength part).) + * @param value {@link #type} (Identifying type for this part of the name (e.g. strength part).) */ public MedicinalProductDefinitionNameNamePartComponent setType(CodeableConcept value) { this.type = value; @@ -755,14 +755,14 @@ public class MedicinalProductDefinition extends DomainResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("part", "string", "A fragment of a product name.", 0, 1, part)); - children.add(new Property("type", "CodeableConcept", "Idenifying type for this part of the name (e.g. strength part).", 0, 1, type)); + children.add(new Property("type", "CodeableConcept", "Identifying type for this part of the name (e.g. strength part).", 0, 1, type)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case 3433459: /*part*/ return new Property("part", "string", "A fragment of a product name.", 0, 1, part); - case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Idenifying type for this part of the name (e.g. strength part).", 0, 1, type); + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Identifying type for this part of the name (e.g. strength part).", 0, 1, type); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -1347,7 +1347,7 @@ public class MedicinalProductDefinition extends DomainResource { } @Block() - public static class MedicinalProductDefinitionManufacturingBusinessOperationComponent extends BackboneElement implements IBaseBackboneElement { + public static class MedicinalProductDefinitionOperationComponent extends BackboneElement implements IBaseBackboneElement { /** * The type of manufacturing operation e.g. manufacturing itself, re-packaging. This may be a subtype of some other wider scope of authorized operation, referenced by the authorization attribute. */ @@ -1363,32 +1363,32 @@ public class MedicinalProductDefinition extends DomainResource { protected Period effectiveDate; /** - * The manufacturer or establishment associated with the process. + * The organization or establishment responsible for (or associated with) the particular process or step, examples include the manufacturer, importer, agent. */ - @Child(name = "manufacturer", type = {Organization.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="The manufacturer or establishment associated with the process", formalDefinition="The manufacturer or establishment associated with the process." ) - protected List manufacturer; + @Child(name = "organization", type = {Organization.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="The organization or establishment responsible for (or associated with) the particular process or step, examples include the manufacturer, importer, agent", formalDefinition="The organization or establishment responsible for (or associated with) the particular process or step, examples include the manufacturer, importer, agent." ) + protected List organization; /** - * An authorization for this process, either as a logical reference, holding just an identifier, or a full refererence to a resource that captures the details. The authorization mayu possibly apply to several products or a wider scope of process of which this is a part. + * An authorization for this process, either as a logical reference, holding just an identifier, or a full reference to a resource that captures the details. The authorization may possibly apply to several products or a wider scope of process of which this is a part. */ @Child(name = "authorization", type = {RegulatedAuthorization.class}, order=4, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="An authorization for this process, either as a logical reference, holding just an identifier, or a full refererence to a resource that captures the details. The authorization mayu possibly apply to several products or a wider scope of process of which this is a part", formalDefinition="An authorization for this process, either as a logical reference, holding just an identifier, or a full refererence to a resource that captures the details. The authorization mayu possibly apply to several products or a wider scope of process of which this is a part." ) + @Description(shortDefinition="An authorization for this process, either as a logical reference, holding just an identifier, or a full reference to a resource that captures the details. The authorization may possibly apply to several products or a wider scope of process of which this is a part", formalDefinition="An authorization for this process, either as a logical reference, holding just an identifier, or a full reference to a resource that captures the details. The authorization may possibly apply to several products or a wider scope of process of which this is a part." ) protected Reference authorization; /** - * To indicate if this proces is commercially confidential. + * Specifies whether this particular business or manufacturing process is considered proprietary or confidential. */ @Child(name = "confidentialityIndicator", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="To indicate if this proces is commercially confidential", formalDefinition="To indicate if this proces is commercially confidential." ) + @Description(shortDefinition="Specifies whether this particular business or manufacturing process is considered proprietary or confidential", formalDefinition="Specifies whether this particular business or manufacturing process is considered proprietary or confidential." ) protected CodeableConcept confidentialityIndicator; - private static final long serialVersionUID = 1855392466L; + private static final long serialVersionUID = 1507506484L; /** * Constructor */ - public MedicinalProductDefinitionManufacturingBusinessOperationComponent() { + public MedicinalProductDefinitionOperationComponent() { super(); } @@ -1398,7 +1398,7 @@ public class MedicinalProductDefinition extends DomainResource { public CodeableReference getType() { if (this.type == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create MedicinalProductDefinitionManufacturingBusinessOperationComponent.type"); + throw new Error("Attempt to auto-create MedicinalProductDefinitionOperationComponent.type"); else if (Configuration.doAutoCreate()) this.type = new CodeableReference(); // cc return this.type; @@ -1411,7 +1411,7 @@ public class MedicinalProductDefinition extends DomainResource { /** * @param value {@link #type} (The type of manufacturing operation e.g. manufacturing itself, re-packaging. This may be a subtype of some other wider scope of authorized operation, referenced by the authorization attribute.) */ - public MedicinalProductDefinitionManufacturingBusinessOperationComponent setType(CodeableReference value) { + public MedicinalProductDefinitionOperationComponent setType(CodeableReference value) { this.type = value; return this; } @@ -1422,7 +1422,7 @@ public class MedicinalProductDefinition extends DomainResource { public Period getEffectiveDate() { if (this.effectiveDate == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create MedicinalProductDefinitionManufacturingBusinessOperationComponent.effectiveDate"); + throw new Error("Attempt to auto-create MedicinalProductDefinitionOperationComponent.effectiveDate"); else if (Configuration.doAutoCreate()) this.effectiveDate = new Period(); // cc return this.effectiveDate; @@ -1435,71 +1435,71 @@ public class MedicinalProductDefinition extends DomainResource { /** * @param value {@link #effectiveDate} (Date range of applicability.) */ - public MedicinalProductDefinitionManufacturingBusinessOperationComponent setEffectiveDate(Period value) { + public MedicinalProductDefinitionOperationComponent setEffectiveDate(Period value) { this.effectiveDate = value; return this; } /** - * @return {@link #manufacturer} (The manufacturer or establishment associated with the process.) + * @return {@link #organization} (The organization or establishment responsible for (or associated with) the particular process or step, examples include the manufacturer, importer, agent.) */ - public List getManufacturer() { - if (this.manufacturer == null) - this.manufacturer = new ArrayList(); - return this.manufacturer; + public List getOrganization() { + if (this.organization == null) + this.organization = new ArrayList(); + return this.organization; } /** * @return Returns a reference to this for easy method chaining */ - public MedicinalProductDefinitionManufacturingBusinessOperationComponent setManufacturer(List theManufacturer) { - this.manufacturer = theManufacturer; + public MedicinalProductDefinitionOperationComponent setOrganization(List theOrganization) { + this.organization = theOrganization; return this; } - public boolean hasManufacturer() { - if (this.manufacturer == null) + public boolean hasOrganization() { + if (this.organization == null) return false; - for (Reference item : this.manufacturer) + for (Reference item : this.organization) if (!item.isEmpty()) return true; return false; } - public Reference addManufacturer() { //3 + public Reference addOrganization() { //3 Reference t = new Reference(); - if (this.manufacturer == null) - this.manufacturer = new ArrayList(); - this.manufacturer.add(t); + if (this.organization == null) + this.organization = new ArrayList(); + this.organization.add(t); return t; } - public MedicinalProductDefinitionManufacturingBusinessOperationComponent addManufacturer(Reference t) { //3 + public MedicinalProductDefinitionOperationComponent addOrganization(Reference t) { //3 if (t == null) return this; - if (this.manufacturer == null) - this.manufacturer = new ArrayList(); - this.manufacturer.add(t); + if (this.organization == null) + this.organization = new ArrayList(); + this.organization.add(t); return this; } /** - * @return The first repetition of repeating field {@link #manufacturer}, creating it if it does not already exist {3} + * @return The first repetition of repeating field {@link #organization}, creating it if it does not already exist {3} */ - public Reference getManufacturerFirstRep() { - if (getManufacturer().isEmpty()) { - addManufacturer(); + public Reference getOrganizationFirstRep() { + if (getOrganization().isEmpty()) { + addOrganization(); } - return getManufacturer().get(0); + return getOrganization().get(0); } /** - * @return {@link #authorization} (An authorization for this process, either as a logical reference, holding just an identifier, or a full refererence to a resource that captures the details. The authorization mayu possibly apply to several products or a wider scope of process of which this is a part.) + * @return {@link #authorization} (An authorization for this process, either as a logical reference, holding just an identifier, or a full reference to a resource that captures the details. The authorization may possibly apply to several products or a wider scope of process of which this is a part.) */ public Reference getAuthorization() { if (this.authorization == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create MedicinalProductDefinitionManufacturingBusinessOperationComponent.authorization"); + throw new Error("Attempt to auto-create MedicinalProductDefinitionOperationComponent.authorization"); else if (Configuration.doAutoCreate()) this.authorization = new Reference(); // cc return this.authorization; @@ -1510,20 +1510,20 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @param value {@link #authorization} (An authorization for this process, either as a logical reference, holding just an identifier, or a full refererence to a resource that captures the details. The authorization mayu possibly apply to several products or a wider scope of process of which this is a part.) + * @param value {@link #authorization} (An authorization for this process, either as a logical reference, holding just an identifier, or a full reference to a resource that captures the details. The authorization may possibly apply to several products or a wider scope of process of which this is a part.) */ - public MedicinalProductDefinitionManufacturingBusinessOperationComponent setAuthorization(Reference value) { + public MedicinalProductDefinitionOperationComponent setAuthorization(Reference value) { this.authorization = value; return this; } /** - * @return {@link #confidentialityIndicator} (To indicate if this proces is commercially confidential.) + * @return {@link #confidentialityIndicator} (Specifies whether this particular business or manufacturing process is considered proprietary or confidential.) */ public CodeableConcept getConfidentialityIndicator() { if (this.confidentialityIndicator == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create MedicinalProductDefinitionManufacturingBusinessOperationComponent.confidentialityIndicator"); + throw new Error("Attempt to auto-create MedicinalProductDefinitionOperationComponent.confidentialityIndicator"); else if (Configuration.doAutoCreate()) this.confidentialityIndicator = new CodeableConcept(); // cc return this.confidentialityIndicator; @@ -1534,9 +1534,9 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @param value {@link #confidentialityIndicator} (To indicate if this proces is commercially confidential.) + * @param value {@link #confidentialityIndicator} (Specifies whether this particular business or manufacturing process is considered proprietary or confidential.) */ - public MedicinalProductDefinitionManufacturingBusinessOperationComponent setConfidentialityIndicator(CodeableConcept value) { + public MedicinalProductDefinitionOperationComponent setConfidentialityIndicator(CodeableConcept value) { this.confidentialityIndicator = value; return this; } @@ -1545,9 +1545,9 @@ public class MedicinalProductDefinition extends DomainResource { super.listChildren(children); children.add(new Property("type", "CodeableReference(ActivityDefinition)", "The type of manufacturing operation e.g. manufacturing itself, re-packaging. This may be a subtype of some other wider scope of authorized operation, referenced by the authorization attribute.", 0, 1, type)); children.add(new Property("effectiveDate", "Period", "Date range of applicability.", 0, 1, effectiveDate)); - children.add(new Property("manufacturer", "Reference(Organization)", "The manufacturer or establishment associated with the process.", 0, java.lang.Integer.MAX_VALUE, manufacturer)); - children.add(new Property("authorization", "Reference(RegulatedAuthorization)", "An authorization for this process, either as a logical reference, holding just an identifier, or a full refererence to a resource that captures the details. The authorization mayu possibly apply to several products or a wider scope of process of which this is a part.", 0, 1, authorization)); - children.add(new Property("confidentialityIndicator", "CodeableConcept", "To indicate if this proces is commercially confidential.", 0, 1, confidentialityIndicator)); + children.add(new Property("organization", "Reference(Organization)", "The organization or establishment responsible for (or associated with) the particular process or step, examples include the manufacturer, importer, agent.", 0, java.lang.Integer.MAX_VALUE, organization)); + children.add(new Property("authorization", "Reference(RegulatedAuthorization)", "An authorization for this process, either as a logical reference, holding just an identifier, or a full reference to a resource that captures the details. The authorization may possibly apply to several products or a wider scope of process of which this is a part.", 0, 1, authorization)); + children.add(new Property("confidentialityIndicator", "CodeableConcept", "Specifies whether this particular business or manufacturing process is considered proprietary or confidential.", 0, 1, confidentialityIndicator)); } @Override @@ -1555,9 +1555,9 @@ public class MedicinalProductDefinition extends DomainResource { switch (_hash) { case 3575610: /*type*/ return new Property("type", "CodeableReference(ActivityDefinition)", "The type of manufacturing operation e.g. manufacturing itself, re-packaging. This may be a subtype of some other wider scope of authorized operation, referenced by the authorization attribute.", 0, 1, type); case -930389515: /*effectiveDate*/ return new Property("effectiveDate", "Period", "Date range of applicability.", 0, 1, effectiveDate); - case -1969347631: /*manufacturer*/ return new Property("manufacturer", "Reference(Organization)", "The manufacturer or establishment associated with the process.", 0, java.lang.Integer.MAX_VALUE, manufacturer); - case -1385570183: /*authorization*/ return new Property("authorization", "Reference(RegulatedAuthorization)", "An authorization for this process, either as a logical reference, holding just an identifier, or a full refererence to a resource that captures the details. The authorization mayu possibly apply to several products or a wider scope of process of which this is a part.", 0, 1, authorization); - case -1449404791: /*confidentialityIndicator*/ return new Property("confidentialityIndicator", "CodeableConcept", "To indicate if this proces is commercially confidential.", 0, 1, confidentialityIndicator); + case 1178922291: /*organization*/ return new Property("organization", "Reference(Organization)", "The organization or establishment responsible for (or associated with) the particular process or step, examples include the manufacturer, importer, agent.", 0, java.lang.Integer.MAX_VALUE, organization); + case -1385570183: /*authorization*/ return new Property("authorization", "Reference(RegulatedAuthorization)", "An authorization for this process, either as a logical reference, holding just an identifier, or a full reference to a resource that captures the details. The authorization may possibly apply to several products or a wider scope of process of which this is a part.", 0, 1, authorization); + case -1449404791: /*confidentialityIndicator*/ return new Property("confidentialityIndicator", "CodeableConcept", "Specifies whether this particular business or manufacturing process is considered proprietary or confidential.", 0, 1, confidentialityIndicator); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -1568,7 +1568,7 @@ public class MedicinalProductDefinition extends DomainResource { switch (hash) { case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableReference case -930389515: /*effectiveDate*/ return this.effectiveDate == null ? new Base[0] : new Base[] {this.effectiveDate}; // Period - case -1969347631: /*manufacturer*/ return this.manufacturer == null ? new Base[0] : this.manufacturer.toArray(new Base[this.manufacturer.size()]); // Reference + case 1178922291: /*organization*/ return this.organization == null ? new Base[0] : this.organization.toArray(new Base[this.organization.size()]); // Reference case -1385570183: /*authorization*/ return this.authorization == null ? new Base[0] : new Base[] {this.authorization}; // Reference case -1449404791: /*confidentialityIndicator*/ return this.confidentialityIndicator == null ? new Base[0] : new Base[] {this.confidentialityIndicator}; // CodeableConcept default: return super.getProperty(hash, name, checkValid); @@ -1585,8 +1585,8 @@ public class MedicinalProductDefinition extends DomainResource { case -930389515: // effectiveDate this.effectiveDate = TypeConvertor.castToPeriod(value); // Period return value; - case -1969347631: // manufacturer - this.getManufacturer().add(TypeConvertor.castToReference(value)); // Reference + case 1178922291: // organization + this.getOrganization().add(TypeConvertor.castToReference(value)); // Reference return value; case -1385570183: // authorization this.authorization = TypeConvertor.castToReference(value); // Reference @@ -1605,8 +1605,8 @@ public class MedicinalProductDefinition extends DomainResource { this.type = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("effectiveDate")) { this.effectiveDate = TypeConvertor.castToPeriod(value); // Period - } else if (name.equals("manufacturer")) { - this.getManufacturer().add(TypeConvertor.castToReference(value)); + } else if (name.equals("organization")) { + this.getOrganization().add(TypeConvertor.castToReference(value)); } else if (name.equals("authorization")) { this.authorization = TypeConvertor.castToReference(value); // Reference } else if (name.equals("confidentialityIndicator")) { @@ -1621,7 +1621,7 @@ public class MedicinalProductDefinition extends DomainResource { switch (hash) { case 3575610: return getType(); case -930389515: return getEffectiveDate(); - case -1969347631: return addManufacturer(); + case 1178922291: return addOrganization(); case -1385570183: return getAuthorization(); case -1449404791: return getConfidentialityIndicator(); default: return super.makeProperty(hash, name); @@ -1634,7 +1634,7 @@ public class MedicinalProductDefinition extends DomainResource { switch (hash) { case 3575610: /*type*/ return new String[] {"CodeableReference"}; case -930389515: /*effectiveDate*/ return new String[] {"Period"}; - case -1969347631: /*manufacturer*/ return new String[] {"Reference"}; + case 1178922291: /*organization*/ return new String[] {"Reference"}; case -1385570183: /*authorization*/ return new String[] {"Reference"}; case -1449404791: /*confidentialityIndicator*/ return new String[] {"CodeableConcept"}; default: return super.getTypesForProperty(hash, name); @@ -1652,8 +1652,8 @@ public class MedicinalProductDefinition extends DomainResource { this.effectiveDate = new Period(); return this.effectiveDate; } - else if (name.equals("manufacturer")) { - return addManufacturer(); + else if (name.equals("organization")) { + return addOrganization(); } else if (name.equals("authorization")) { this.authorization = new Reference(); @@ -1667,20 +1667,20 @@ public class MedicinalProductDefinition extends DomainResource { return super.addChild(name); } - public MedicinalProductDefinitionManufacturingBusinessOperationComponent copy() { - MedicinalProductDefinitionManufacturingBusinessOperationComponent dst = new MedicinalProductDefinitionManufacturingBusinessOperationComponent(); + public MedicinalProductDefinitionOperationComponent copy() { + MedicinalProductDefinitionOperationComponent dst = new MedicinalProductDefinitionOperationComponent(); copyValues(dst); return dst; } - public void copyValues(MedicinalProductDefinitionManufacturingBusinessOperationComponent dst) { + public void copyValues(MedicinalProductDefinitionOperationComponent dst) { super.copyValues(dst); dst.type = type == null ? null : type.copy(); dst.effectiveDate = effectiveDate == null ? null : effectiveDate.copy(); - if (manufacturer != null) { - dst.manufacturer = new ArrayList(); - for (Reference i : manufacturer) - dst.manufacturer.add(i.copy()); + if (organization != null) { + dst.organization = new ArrayList(); + for (Reference i : organization) + dst.organization.add(i.copy()); }; dst.authorization = authorization == null ? null : authorization.copy(); dst.confidentialityIndicator = confidentialityIndicator == null ? null : confidentialityIndicator.copy(); @@ -1690,10 +1690,10 @@ public class MedicinalProductDefinition extends DomainResource { public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof MedicinalProductDefinitionManufacturingBusinessOperationComponent)) + if (!(other_ instanceof MedicinalProductDefinitionOperationComponent)) return false; - MedicinalProductDefinitionManufacturingBusinessOperationComponent o = (MedicinalProductDefinitionManufacturingBusinessOperationComponent) other_; - return compareDeep(type, o.type, true) && compareDeep(effectiveDate, o.effectiveDate, true) && compareDeep(manufacturer, o.manufacturer, true) + MedicinalProductDefinitionOperationComponent o = (MedicinalProductDefinitionOperationComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(effectiveDate, o.effectiveDate, true) && compareDeep(organization, o.organization, true) && compareDeep(authorization, o.authorization, true) && compareDeep(confidentialityIndicator, o.confidentialityIndicator, true) ; } @@ -1702,19 +1702,535 @@ public class MedicinalProductDefinition extends DomainResource { public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof MedicinalProductDefinitionManufacturingBusinessOperationComponent)) + if (!(other_ instanceof MedicinalProductDefinitionOperationComponent)) return false; - MedicinalProductDefinitionManufacturingBusinessOperationComponent o = (MedicinalProductDefinitionManufacturingBusinessOperationComponent) other_; + MedicinalProductDefinitionOperationComponent o = (MedicinalProductDefinitionOperationComponent) other_; return true; } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, effectiveDate, manufacturer + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, effectiveDate, organization , authorization, confidentialityIndicator); } public String fhirType() { - return "MedicinalProductDefinition.manufacturingBusinessOperation"; + return "MedicinalProductDefinition.operation"; + + } + + } + + @Block() + public static class MedicinalProductDefinitionPackageComponent extends BackboneElement implements IBaseBackboneElement { + /** + * A descriptive type for this package, such as box, carton or bottle. + */ + @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="A descriptive type for this package, such as box, carton or bottle", formalDefinition="A descriptive type for this package, such as box, carton or bottle." ) + protected CodeableConcept type; + + /** + * The amount of items, or of substance, in the package. + */ + @Child(name = "size", type = {Quantity.class, IntegerType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The amount of items, or of substance, in the package", formalDefinition="The amount of items, or of substance, in the package." ) + protected DataType size; + + /** + * Full package representation for the product. + */ + @Child(name = "package", type = {PackagedProductDefinition.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Full package representation for the product", formalDefinition="Full package representation for the product." ) + protected Reference package_; + + private static final long serialVersionUID = -256145410L; + + /** + * Constructor + */ + public MedicinalProductDefinitionPackageComponent() { + super(); + } + + /** + * @return {@link #type} (A descriptive type for this package, such as box, carton or bottle.) + */ + public CodeableConcept getType() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create MedicinalProductDefinitionPackageComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new CodeableConcept(); // cc + return this.type; + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (A descriptive type for this package, such as box, carton or bottle.) + */ + public MedicinalProductDefinitionPackageComponent setType(CodeableConcept value) { + this.type = value; + return this; + } + + /** + * @return {@link #size} (The amount of items, or of substance, in the package.) + */ + public DataType getSize() { + return this.size; + } + + /** + * @return {@link #size} (The amount of items, or of substance, in the package.) + */ + public Quantity getSizeQuantity() throws FHIRException { + if (this.size == null) + this.size = new Quantity(); + if (!(this.size instanceof Quantity)) + throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.size.getClass().getName()+" was encountered"); + return (Quantity) this.size; + } + + public boolean hasSizeQuantity() { + return this != null && this.size instanceof Quantity; + } + + /** + * @return {@link #size} (The amount of items, or of substance, in the package.) + */ + public IntegerType getSizeIntegerType() throws FHIRException { + if (this.size == null) + this.size = new IntegerType(); + if (!(this.size instanceof IntegerType)) + throw new FHIRException("Type mismatch: the type IntegerType was expected, but "+this.size.getClass().getName()+" was encountered"); + return (IntegerType) this.size; + } + + public boolean hasSizeIntegerType() { + return this != null && this.size instanceof IntegerType; + } + + public boolean hasSize() { + return this.size != null && !this.size.isEmpty(); + } + + /** + * @param value {@link #size} (The amount of items, or of substance, in the package.) + */ + public MedicinalProductDefinitionPackageComponent setSize(DataType value) { + if (value != null && !(value instanceof Quantity || value instanceof IntegerType)) + throw new Error("Not the right type for MedicinalProductDefinition.package.size[x]: "+value.fhirType()); + this.size = value; + return this; + } + + /** + * @return {@link #package_} (Full package representation for the product.) + */ + public Reference getPackage() { + if (this.package_ == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create MedicinalProductDefinitionPackageComponent.package_"); + else if (Configuration.doAutoCreate()) + this.package_ = new Reference(); // cc + return this.package_; + } + + public boolean hasPackage() { + return this.package_ != null && !this.package_.isEmpty(); + } + + /** + * @param value {@link #package_} (Full package representation for the product.) + */ + public MedicinalProductDefinitionPackageComponent setPackage(Reference value) { + this.package_ = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("type", "CodeableConcept", "A descriptive type for this package, such as box, carton or bottle.", 0, 1, type)); + children.add(new Property("size[x]", "Quantity|integer", "The amount of items, or of substance, in the package.", 0, 1, size)); + children.add(new Property("package", "Reference(PackagedProductDefinition)", "Full package representation for the product.", 0, 1, package_)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "A descriptive type for this package, such as box, carton or bottle.", 0, 1, type); + case 2105538783: /*size[x]*/ return new Property("size[x]", "Quantity|integer", "The amount of items, or of substance, in the package.", 0, 1, size); + case 3530753: /*size*/ return new Property("size[x]", "Quantity|integer", "The amount of items, or of substance, in the package.", 0, 1, size); + case 668800940: /*sizeQuantity*/ return new Property("size[x]", "Quantity", "The amount of items, or of substance, in the package.", 0, 1, size); + case -1858247171: /*sizeInteger*/ return new Property("size[x]", "integer", "The amount of items, or of substance, in the package.", 0, 1, size); + case -807062458: /*package*/ return new Property("package", "Reference(PackagedProductDefinition)", "Full package representation for the product.", 0, 1, package_); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case 3530753: /*size*/ return this.size == null ? new Base[0] : new Base[] {this.size}; // DataType + case -807062458: /*package*/ return this.package_ == null ? new Base[0] : new Base[] {this.package_}; // Reference + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3575610: // type + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 3530753: // size + this.size = TypeConvertor.castToType(value); // DataType + return value; + case -807062458: // package + this.package_ = TypeConvertor.castToReference(value); // Reference + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("size[x]")) { + this.size = TypeConvertor.castToType(value); // DataType + } else if (name.equals("package")) { + this.package_ = TypeConvertor.castToReference(value); // Reference + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: return getType(); + case 2105538783: return getSize(); + case 3530753: return getSize(); + case -807062458: return getPackage(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case 3530753: /*size*/ return new String[] {"Quantity", "integer"}; + case -807062458: /*package*/ return new String[] {"Reference"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("type")) { + this.type = new CodeableConcept(); + return this.type; + } + else if (name.equals("sizeQuantity")) { + this.size = new Quantity(); + return this.size; + } + else if (name.equals("sizeInteger")) { + this.size = new IntegerType(); + return this.size; + } + else if (name.equals("package")) { + this.package_ = new Reference(); + return this.package_; + } + else + return super.addChild(name); + } + + public MedicinalProductDefinitionPackageComponent copy() { + MedicinalProductDefinitionPackageComponent dst = new MedicinalProductDefinitionPackageComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(MedicinalProductDefinitionPackageComponent dst) { + super.copyValues(dst); + dst.type = type == null ? null : type.copy(); + dst.size = size == null ? null : size.copy(); + dst.package_ = package_ == null ? null : package_.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof MedicinalProductDefinitionPackageComponent)) + return false; + MedicinalProductDefinitionPackageComponent o = (MedicinalProductDefinitionPackageComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(size, o.size, true) && compareDeep(package_, o.package_, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof MedicinalProductDefinitionPackageComponent)) + return false; + MedicinalProductDefinitionPackageComponent o = (MedicinalProductDefinitionPackageComponent) other_; + return true; + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, size, package_); + } + + public String fhirType() { + return "MedicinalProductDefinition.package"; + + } + + } + + @Block() + public static class MedicinalProductDefinitionAdministrableProductComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route. + */ + @Child(name = "route", type = {CodeableConcept.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route", formalDefinition="The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route." ) + protected List route; + + /** + * Full description of the administrable product. + */ + @Child(name = "product", type = {AdministrableProductDefinition.class}, order=2, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Full description of the administrable product", formalDefinition="Full description of the administrable product." ) + protected Reference product; + + private static final long serialVersionUID = -777608746L; + + /** + * Constructor + */ + public MedicinalProductDefinitionAdministrableProductComponent() { + super(); + } + + /** + * @return {@link #route} (The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route.) + */ + public List getRoute() { + if (this.route == null) + this.route = new ArrayList(); + return this.route; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public MedicinalProductDefinitionAdministrableProductComponent setRoute(List theRoute) { + this.route = theRoute; + return this; + } + + public boolean hasRoute() { + if (this.route == null) + return false; + for (CodeableConcept item : this.route) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addRoute() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.route == null) + this.route = new ArrayList(); + this.route.add(t); + return t; + } + + public MedicinalProductDefinitionAdministrableProductComponent addRoute(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.route == null) + this.route = new ArrayList(); + this.route.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #route}, creating it if it does not already exist {3} + */ + public CodeableConcept getRouteFirstRep() { + if (getRoute().isEmpty()) { + addRoute(); + } + return getRoute().get(0); + } + + /** + * @return {@link #product} (Full description of the administrable product.) + */ + public Reference getProduct() { + if (this.product == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create MedicinalProductDefinitionAdministrableProductComponent.product"); + else if (Configuration.doAutoCreate()) + this.product = new Reference(); // cc + return this.product; + } + + public boolean hasProduct() { + return this.product != null && !this.product.isEmpty(); + } + + /** + * @param value {@link #product} (Full description of the administrable product.) + */ + public MedicinalProductDefinitionAdministrableProductComponent setProduct(Reference value) { + this.product = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("route", "CodeableConcept", "The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route.", 0, java.lang.Integer.MAX_VALUE, route)); + children.add(new Property("product", "Reference(AdministrableProductDefinition)", "Full description of the administrable product.", 0, 1, product)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 108704329: /*route*/ return new Property("route", "CodeableConcept", "The path by which the product is taken into or makes contact with the body. In some regions this is referred to as the licenced or approved route.", 0, java.lang.Integer.MAX_VALUE, route); + case -309474065: /*product*/ return new Property("product", "Reference(AdministrableProductDefinition)", "Full description of the administrable product.", 0, 1, product); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 108704329: /*route*/ return this.route == null ? new Base[0] : this.route.toArray(new Base[this.route.size()]); // CodeableConcept + case -309474065: /*product*/ return this.product == null ? new Base[0] : new Base[] {this.product}; // Reference + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 108704329: // route + this.getRoute().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + case -309474065: // product + this.product = TypeConvertor.castToReference(value); // Reference + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("route")) { + this.getRoute().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("product")) { + this.product = TypeConvertor.castToReference(value); // Reference + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 108704329: return addRoute(); + case -309474065: return getProduct(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 108704329: /*route*/ return new String[] {"CodeableConcept"}; + case -309474065: /*product*/ return new String[] {"Reference"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("route")) { + return addRoute(); + } + else if (name.equals("product")) { + this.product = new Reference(); + return this.product; + } + else + return super.addChild(name); + } + + public MedicinalProductDefinitionAdministrableProductComponent copy() { + MedicinalProductDefinitionAdministrableProductComponent dst = new MedicinalProductDefinitionAdministrableProductComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(MedicinalProductDefinitionAdministrableProductComponent dst) { + super.copyValues(dst); + if (route != null) { + dst.route = new ArrayList(); + for (CodeableConcept i : route) + dst.route.add(i.copy()); + }; + dst.product = product == null ? null : product.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof MedicinalProductDefinitionAdministrableProductComponent)) + return false; + MedicinalProductDefinitionAdministrableProductComponent o = (MedicinalProductDefinitionAdministrableProductComponent) other_; + return compareDeep(route, o.route, true) && compareDeep(product, o.product, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof MedicinalProductDefinitionAdministrableProductComponent)) + return false; + MedicinalProductDefinitionAdministrableProductComponent o = (MedicinalProductDefinitionAdministrableProductComponent) other_; + return true; + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(route, product); + } + + public String fhirType() { + return "MedicinalProductDefinition.administrableProduct"; } @@ -1742,17 +2258,17 @@ public class MedicinalProductDefinition extends DomainResource { protected CodeableConcept domain; /** - * A business level identifier of the product. + * A business identifier relating to a specific version of the product, this is commonly used to support revisions to an existing product. */ @Child(name = "version", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="A business level identifier of the product", formalDefinition="A business level identifier of the product." ) + @Description(shortDefinition="A business identifier relating to a specific version of the product, this is commonly used to support revisions to an existing product", formalDefinition="A business identifier relating to a specific version of the product, this is commonly used to support revisions to an existing product." ) protected StringType version; /** - * The status within the lifecycle of this product. A high level status, this is not intended to duplicate details carried elswhere such as legal status, or authorization status. + * The status within the lifecycle of this product record. A high-level status, this is not intended to duplicate details carried elsewhere such as legal status, or authorization status. */ @Child(name = "status", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="The status within the lifecycle of this product. A high level status, this is not intended to duplicate details carried elswhere such as legal status, or authorization status", formalDefinition="The status within the lifecycle of this product. A high level status, this is not intended to duplicate details carried elswhere such as legal status, or authorization status." ) + @Description(shortDefinition="The status within the lifecycle of this product record. A high-level status, this is not intended to duplicate details carried elsewhere such as legal status, or authorization status", formalDefinition="The status within the lifecycle of this product record. A high-level status, this is not intended to duplicate details carried elsewhere such as legal status, or authorization status." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/publication-status") protected CodeableConcept status; @@ -1778,10 +2294,10 @@ public class MedicinalProductDefinition extends DomainResource { protected CodeableConcept combinedPharmaceuticalDoseForm; /** - * General combined description of indication(s) for this product, for use when a structured set is not available. See also the ClinicalUseIssue resource, which can be used for more structured indications, and can be made to reference to this resource. + * Description of indication(s) for this product, used when structured indications are not required. In cases where structured indications are required, they are captured using the ClinicalUseIssue resource. An indication is a medical situation for which using the product is appropriate. */ @Child(name = "indication", type = {MarkdownType.class}, order=8, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="General combined description of indication(s) for this product, for use when a structured set is not available. See also the ClinicalUseIssue resource, which can be used for more structured indications, and can be made to reference to this resource", formalDefinition="General combined description of indication(s) for this product, for use when a structured set is not available. See also the ClinicalUseIssue resource, which can be used for more structured indications, and can be made to reference to this resource." ) + @Description(shortDefinition="Description of indication(s) for this product, used when structured indications are not required. In cases where structured indications are required, they are captured using the ClinicalUseIssue resource. An indication is a medical situation for which using the product is appropriate", formalDefinition="Description of indication(s) for this product, used when structured indications are not required. In cases where structured indications are required, they are captured using the ClinicalUseIssue resource. An indication is a medical situation for which using the product is appropriate." ) protected MarkdownType indication; /** @@ -1820,97 +2336,97 @@ public class MedicinalProductDefinition extends DomainResource { protected List classification; /** - * Allows the key product features to be recorded, such as "suger free", "modified release", "parallel import". + * Allows the key product features to be recorded, such as "sugar free", "modified release", "parallel import". */ @Child(name = "characteristic", type = {CodeableConcept.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Allows the key product features to be recorded, such as \"suger free\", \"modified release\", \"parallel import\"", formalDefinition="Allows the key product features to be recorded, such as \"suger free\", \"modified release\", \"parallel import\"." ) + @Description(shortDefinition="Allows the key product features to be recorded, such as \"sugar free\", \"modified release\", \"parallel import\"", formalDefinition="Allows the key product features to be recorded, such as \"sugar free\", \"modified release\", \"parallel import\"." ) protected List characteristic; /** - * Marketing status of the medicinal product, in contrast to marketing authorizaton. + * Marketing status of the medicinal product, in contrast to marketing authorization. */ @Child(name = "marketingStatus", type = {MarketingStatus.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Marketing status of the medicinal product, in contrast to marketing authorizaton", formalDefinition="Marketing status of the medicinal product, in contrast to marketing authorizaton." ) + @Description(shortDefinition="Marketing status of the medicinal product, in contrast to marketing authorization", formalDefinition="Marketing status of the medicinal product, in contrast to marketing authorization." ) protected List marketingStatus; /** - * Pharmaceutical aspects of product. + * The ingredients of this medicinal product - when not detailed in other resources. This is only needed if the ingredients are not specified by the AdministrableProductDefinition or via the PackagedProductDefinition references above. In cases where those levels of detail are not used, the ingredients may be specified directly here. */ - @Child(name = "pharmaceuticalProduct", type = {AdministrableProductDefinition.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Pharmaceutical aspects of product", formalDefinition="Pharmaceutical aspects of product." ) - protected List pharmaceuticalProduct; - - /** - * Package representation for the product. - */ - @Child(name = "packagedMedicinalProduct", type = {PackagedProductDefinition.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Package representation for the product", formalDefinition="Package representation for the product." ) - protected List packagedMedicinalProduct; - - /** - * The ingredients of this medicinal product - when not specified elsewhere. This is only needed if the ingredients are not specified by the pharmaceuticalProduct or packagedMedicinalProduct references above. In cases where those levels of detail are not used, the ingredients may be specified directly here. - */ - @Child(name = "ingredient", type = {Ingredient.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="The ingredients of this medicinal product - when not specified elsewhere. This is only needed if the ingredients are not specified by the pharmaceuticalProduct or packagedMedicinalProduct references above. In cases where those levels of detail are not used, the ingredients may be specified directly here", formalDefinition="The ingredients of this medicinal product - when not specified elsewhere. This is only needed if the ingredients are not specified by the pharmaceuticalProduct or packagedMedicinalProduct references above. In cases where those levels of detail are not used, the ingredients may be specified directly here." ) - protected List ingredient; + @Child(name = "ingredient", type = {CodeableReference.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="The ingredients of this medicinal product - when not detailed in other resources. This is only needed if the ingredients are not specified by the AdministrableProductDefinition or via the PackagedProductDefinition references above. In cases where those levels of detail are not used, the ingredients may be specified directly here", formalDefinition="The ingredients of this medicinal product - when not detailed in other resources. This is only needed if the ingredients are not specified by the AdministrableProductDefinition or via the PackagedProductDefinition references above. In cases where those levels of detail are not used, the ingredients may be specified directly here." ) + protected List ingredient; /** * Any component of the drug product which is not the chemical entity defined as the drug substance or an excipient in the drug product. This includes process-related impurities and contaminants, product-related impurities including degradation products. */ - @Child(name = "impurity", type = {SubstanceDefinition.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "impurity", type = {SubstanceDefinition.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Any component of the drug product which is not the chemical entity defined as the drug substance or an excipient in the drug product. This includes process-related impurities and contaminants, product-related impurities including degradation products", formalDefinition="Any component of the drug product which is not the chemical entity defined as the drug substance or an excipient in the drug product. This includes process-related impurities and contaminants, product-related impurities including degradation products." ) protected List impurity; /** - * Supporting documentation, typically for regulatory submission. + * Additional information or supporting documentation about the medicinal product. */ - @Child(name = "attachedDocument", type = {DocumentReference.class}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Supporting documentation, typically for regulatory submission", formalDefinition="Supporting documentation, typically for regulatory submission." ) + @Child(name = "attachedDocument", type = {DocumentReference.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Additional information or supporting documentation about the medicinal product", formalDefinition="Additional information or supporting documentation about the medicinal product." ) protected List attachedDocument; /** * A master file for to the medicinal product (e.g. Pharmacovigilance System Master File). */ - @Child(name = "masterFile", type = {DocumentReference.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "masterFile", type = {DocumentReference.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="A master file for to the medicinal product (e.g. Pharmacovigilance System Master File)", formalDefinition="A master file for to the medicinal product (e.g. Pharmacovigilance System Master File)." ) protected List masterFile; /** * A product specific contact, person (in a role), or an organization. */ - @Child(name = "contact", type = {}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "contact", type = {}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="A product specific contact, person (in a role), or an organization", formalDefinition="A product specific contact, person (in a role), or an organization." ) protected List contact; /** * Clinical trials or studies that this product is involved in. */ - @Child(name = "clinicalTrial", type = {ResearchStudy.class}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "clinicalTrial", type = {ResearchStudy.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Clinical trials or studies that this product is involved in", formalDefinition="Clinical trials or studies that this product is involved in." ) protected List clinicalTrial; /** * The product's name, including full name and possibly coded parts. */ - @Child(name = "name", type = {}, order=24, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "name", type = {}, order=22, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="The product's name, including full name and possibly coded parts", formalDefinition="The product's name, including full name and possibly coded parts." ) protected List name; /** * Reference to another product, e.g. for linking authorised to investigational product. */ - @Child(name = "crossReference", type = {}, order=25, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "crossReference", type = {}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Reference to another product, e.g. for linking authorised to investigational product", formalDefinition="Reference to another product, e.g. for linking authorised to investigational product." ) protected List crossReference; /** - * An operation applied to the product, for manufacturing or adminsitrative purpose. + * A manufacturing or administrative process or step associated with (or performed on) the medicinal product. */ - @Child(name = "manufacturingBusinessOperation", type = {}, order=26, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="An operation applied to the product, for manufacturing or adminsitrative purpose", formalDefinition="An operation applied to the product, for manufacturing or adminsitrative purpose." ) - protected List manufacturingBusinessOperation; + @Child(name = "operation", type = {}, order=24, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="A manufacturing or administrative process or step associated with (or performed on) the medicinal product", formalDefinition="A manufacturing or administrative process or step associated with (or performed on) the medicinal product." ) + protected List operation; - private static final long serialVersionUID = -1167088375L; + /** + * Package representation for the product. + */ + @Child(name = "package", type = {}, order=25, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Package representation for the product", formalDefinition="Package representation for the product." ) + protected List package_; + + /** + * The product in its final form, mixed from its components if necessary, and ready to be administered to the patient. Also known as the 'Pharmaceutical Product'. Can repeat, for cases where the product has components that result in more than one administrable item. + */ + @Child(name = "administrableProduct", type = {}, order=26, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="The product in its final form, mixed from its components if necessary, and ready to be administered to the patient. Also known as the 'Pharmaceutical Product'. Can repeat, for cases where the product has components that result in more than one administrable item", formalDefinition="The product in its final form, mixed from its components if necessary, and ready to be administered to the patient. Also known as the 'Pharmaceutical Product'. Can repeat, for cases where the product has components that result in more than one administrable item." ) + protected List administrableProduct; + + private static final long serialVersionUID = 1923507998L; /** * Constructor @@ -2029,7 +2545,7 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @return {@link #version} (A business level identifier of the product.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value + * @return {@link #version} (A business identifier relating to a specific version of the product, this is commonly used to support revisions to an existing product.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value */ public StringType getVersionElement() { if (this.version == null) @@ -2049,7 +2565,7 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @param value {@link #version} (A business level identifier of the product.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value + * @param value {@link #version} (A business identifier relating to a specific version of the product, this is commonly used to support revisions to an existing product.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value */ public MedicinalProductDefinition setVersionElement(StringType value) { this.version = value; @@ -2057,14 +2573,14 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @return A business level identifier of the product. + * @return A business identifier relating to a specific version of the product, this is commonly used to support revisions to an existing product. */ public String getVersion() { return this.version == null ? null : this.version.getValue(); } /** - * @param value A business level identifier of the product. + * @param value A business identifier relating to a specific version of the product, this is commonly used to support revisions to an existing product. */ public MedicinalProductDefinition setVersion(String value) { if (Utilities.noString(value)) @@ -2078,7 +2594,7 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @return {@link #status} (The status within the lifecycle of this product. A high level status, this is not intended to duplicate details carried elswhere such as legal status, or authorization status.) + * @return {@link #status} (The status within the lifecycle of this product record. A high-level status, this is not intended to duplicate details carried elsewhere such as legal status, or authorization status.) */ public CodeableConcept getStatus() { if (this.status == null) @@ -2094,7 +2610,7 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @param value {@link #status} (The status within the lifecycle of this product. A high level status, this is not intended to duplicate details carried elswhere such as legal status, or authorization status.) + * @param value {@link #status} (The status within the lifecycle of this product record. A high-level status, this is not intended to duplicate details carried elsewhere such as legal status, or authorization status.) */ public MedicinalProductDefinition setStatus(CodeableConcept value) { this.status = value; @@ -2224,7 +2740,7 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @return {@link #indication} (General combined description of indication(s) for this product, for use when a structured set is not available. See also the ClinicalUseIssue resource, which can be used for more structured indications, and can be made to reference to this resource.). This is the underlying object with id, value and extensions. The accessor "getIndication" gives direct access to the value + * @return {@link #indication} (Description of indication(s) for this product, used when structured indications are not required. In cases where structured indications are required, they are captured using the ClinicalUseIssue resource. An indication is a medical situation for which using the product is appropriate.). This is the underlying object with id, value and extensions. The accessor "getIndication" gives direct access to the value */ public MarkdownType getIndicationElement() { if (this.indication == null) @@ -2244,7 +2760,7 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @param value {@link #indication} (General combined description of indication(s) for this product, for use when a structured set is not available. See also the ClinicalUseIssue resource, which can be used for more structured indications, and can be made to reference to this resource.). This is the underlying object with id, value and extensions. The accessor "getIndication" gives direct access to the value + * @param value {@link #indication} (Description of indication(s) for this product, used when structured indications are not required. In cases where structured indications are required, they are captured using the ClinicalUseIssue resource. An indication is a medical situation for which using the product is appropriate.). This is the underlying object with id, value and extensions. The accessor "getIndication" gives direct access to the value */ public MedicinalProductDefinition setIndicationElement(MarkdownType value) { this.indication = value; @@ -2252,14 +2768,14 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @return General combined description of indication(s) for this product, for use when a structured set is not available. See also the ClinicalUseIssue resource, which can be used for more structured indications, and can be made to reference to this resource. + * @return Description of indication(s) for this product, used when structured indications are not required. In cases where structured indications are required, they are captured using the ClinicalUseIssue resource. An indication is a medical situation for which using the product is appropriate. */ public String getIndication() { return this.indication == null ? null : this.indication.getValue(); } /** - * @param value General combined description of indication(s) for this product, for use when a structured set is not available. See also the ClinicalUseIssue resource, which can be used for more structured indications, and can be made to reference to this resource. + * @param value Description of indication(s) for this product, used when structured indications are not required. In cases where structured indications are required, they are captured using the ClinicalUseIssue resource. An indication is a medical situation for which using the product is appropriate. */ public MedicinalProductDefinition setIndication(String value) { if (value == null) @@ -2451,7 +2967,7 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @return {@link #characteristic} (Allows the key product features to be recorded, such as "suger free", "modified release", "parallel import".) + * @return {@link #characteristic} (Allows the key product features to be recorded, such as "sugar free", "modified release", "parallel import".) */ public List getCharacteristic() { if (this.characteristic == null) @@ -2504,7 +3020,7 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @return {@link #marketingStatus} (Marketing status of the medicinal product, in contrast to marketing authorizaton.) + * @return {@link #marketingStatus} (Marketing status of the medicinal product, in contrast to marketing authorization.) */ public List getMarketingStatus() { if (this.marketingStatus == null) @@ -2557,124 +3073,18 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @return {@link #pharmaceuticalProduct} (Pharmaceutical aspects of product.) + * @return {@link #ingredient} (The ingredients of this medicinal product - when not detailed in other resources. This is only needed if the ingredients are not specified by the AdministrableProductDefinition or via the PackagedProductDefinition references above. In cases where those levels of detail are not used, the ingredients may be specified directly here.) */ - public List getPharmaceuticalProduct() { - if (this.pharmaceuticalProduct == null) - this.pharmaceuticalProduct = new ArrayList(); - return this.pharmaceuticalProduct; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public MedicinalProductDefinition setPharmaceuticalProduct(List thePharmaceuticalProduct) { - this.pharmaceuticalProduct = thePharmaceuticalProduct; - return this; - } - - public boolean hasPharmaceuticalProduct() { - if (this.pharmaceuticalProduct == null) - return false; - for (Reference item : this.pharmaceuticalProduct) - if (!item.isEmpty()) - return true; - return false; - } - - public Reference addPharmaceuticalProduct() { //3 - Reference t = new Reference(); - if (this.pharmaceuticalProduct == null) - this.pharmaceuticalProduct = new ArrayList(); - this.pharmaceuticalProduct.add(t); - return t; - } - - public MedicinalProductDefinition addPharmaceuticalProduct(Reference t) { //3 - if (t == null) - return this; - if (this.pharmaceuticalProduct == null) - this.pharmaceuticalProduct = new ArrayList(); - this.pharmaceuticalProduct.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #pharmaceuticalProduct}, creating it if it does not already exist {3} - */ - public Reference getPharmaceuticalProductFirstRep() { - if (getPharmaceuticalProduct().isEmpty()) { - addPharmaceuticalProduct(); - } - return getPharmaceuticalProduct().get(0); - } - - /** - * @return {@link #packagedMedicinalProduct} (Package representation for the product.) - */ - public List getPackagedMedicinalProduct() { - if (this.packagedMedicinalProduct == null) - this.packagedMedicinalProduct = new ArrayList(); - return this.packagedMedicinalProduct; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public MedicinalProductDefinition setPackagedMedicinalProduct(List thePackagedMedicinalProduct) { - this.packagedMedicinalProduct = thePackagedMedicinalProduct; - return this; - } - - public boolean hasPackagedMedicinalProduct() { - if (this.packagedMedicinalProduct == null) - return false; - for (Reference item : this.packagedMedicinalProduct) - if (!item.isEmpty()) - return true; - return false; - } - - public Reference addPackagedMedicinalProduct() { //3 - Reference t = new Reference(); - if (this.packagedMedicinalProduct == null) - this.packagedMedicinalProduct = new ArrayList(); - this.packagedMedicinalProduct.add(t); - return t; - } - - public MedicinalProductDefinition addPackagedMedicinalProduct(Reference t) { //3 - if (t == null) - return this; - if (this.packagedMedicinalProduct == null) - this.packagedMedicinalProduct = new ArrayList(); - this.packagedMedicinalProduct.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #packagedMedicinalProduct}, creating it if it does not already exist {3} - */ - public Reference getPackagedMedicinalProductFirstRep() { - if (getPackagedMedicinalProduct().isEmpty()) { - addPackagedMedicinalProduct(); - } - return getPackagedMedicinalProduct().get(0); - } - - /** - * @return {@link #ingredient} (The ingredients of this medicinal product - when not specified elsewhere. This is only needed if the ingredients are not specified by the pharmaceuticalProduct or packagedMedicinalProduct references above. In cases where those levels of detail are not used, the ingredients may be specified directly here.) - */ - public List getIngredient() { + public List getIngredient() { if (this.ingredient == null) - this.ingredient = new ArrayList(); + this.ingredient = new ArrayList(); return this.ingredient; } /** * @return Returns a reference to this for easy method chaining */ - public MedicinalProductDefinition setIngredient(List theIngredient) { + public MedicinalProductDefinition setIngredient(List theIngredient) { this.ingredient = theIngredient; return this; } @@ -2682,25 +3092,25 @@ public class MedicinalProductDefinition extends DomainResource { public boolean hasIngredient() { if (this.ingredient == null) return false; - for (Reference item : this.ingredient) + for (CodeableReference item : this.ingredient) if (!item.isEmpty()) return true; return false; } - public Reference addIngredient() { //3 - Reference t = new Reference(); + public CodeableReference addIngredient() { //3 + CodeableReference t = new CodeableReference(); if (this.ingredient == null) - this.ingredient = new ArrayList(); + this.ingredient = new ArrayList(); this.ingredient.add(t); return t; } - public MedicinalProductDefinition addIngredient(Reference t) { //3 + public MedicinalProductDefinition addIngredient(CodeableReference t) { //3 if (t == null) return this; if (this.ingredient == null) - this.ingredient = new ArrayList(); + this.ingredient = new ArrayList(); this.ingredient.add(t); return this; } @@ -2708,7 +3118,7 @@ public class MedicinalProductDefinition extends DomainResource { /** * @return The first repetition of repeating field {@link #ingredient}, creating it if it does not already exist {3} */ - public Reference getIngredientFirstRep() { + public CodeableReference getIngredientFirstRep() { if (getIngredient().isEmpty()) { addIngredient(); } @@ -2769,7 +3179,7 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @return {@link #attachedDocument} (Supporting documentation, typically for regulatory submission.) + * @return {@link #attachedDocument} (Additional information or supporting documentation about the medicinal product.) */ public List getAttachedDocument() { if (this.attachedDocument == null) @@ -3087,56 +3497,162 @@ public class MedicinalProductDefinition extends DomainResource { } /** - * @return {@link #manufacturingBusinessOperation} (An operation applied to the product, for manufacturing or adminsitrative purpose.) + * @return {@link #operation} (A manufacturing or administrative process or step associated with (or performed on) the medicinal product.) */ - public List getManufacturingBusinessOperation() { - if (this.manufacturingBusinessOperation == null) - this.manufacturingBusinessOperation = new ArrayList(); - return this.manufacturingBusinessOperation; + public List getOperation() { + if (this.operation == null) + this.operation = new ArrayList(); + return this.operation; } /** * @return Returns a reference to this for easy method chaining */ - public MedicinalProductDefinition setManufacturingBusinessOperation(List theManufacturingBusinessOperation) { - this.manufacturingBusinessOperation = theManufacturingBusinessOperation; + public MedicinalProductDefinition setOperation(List theOperation) { + this.operation = theOperation; return this; } - public boolean hasManufacturingBusinessOperation() { - if (this.manufacturingBusinessOperation == null) + public boolean hasOperation() { + if (this.operation == null) return false; - for (MedicinalProductDefinitionManufacturingBusinessOperationComponent item : this.manufacturingBusinessOperation) + for (MedicinalProductDefinitionOperationComponent item : this.operation) if (!item.isEmpty()) return true; return false; } - public MedicinalProductDefinitionManufacturingBusinessOperationComponent addManufacturingBusinessOperation() { //3 - MedicinalProductDefinitionManufacturingBusinessOperationComponent t = new MedicinalProductDefinitionManufacturingBusinessOperationComponent(); - if (this.manufacturingBusinessOperation == null) - this.manufacturingBusinessOperation = new ArrayList(); - this.manufacturingBusinessOperation.add(t); + public MedicinalProductDefinitionOperationComponent addOperation() { //3 + MedicinalProductDefinitionOperationComponent t = new MedicinalProductDefinitionOperationComponent(); + if (this.operation == null) + this.operation = new ArrayList(); + this.operation.add(t); return t; } - public MedicinalProductDefinition addManufacturingBusinessOperation(MedicinalProductDefinitionManufacturingBusinessOperationComponent t) { //3 + public MedicinalProductDefinition addOperation(MedicinalProductDefinitionOperationComponent t) { //3 if (t == null) return this; - if (this.manufacturingBusinessOperation == null) - this.manufacturingBusinessOperation = new ArrayList(); - this.manufacturingBusinessOperation.add(t); + if (this.operation == null) + this.operation = new ArrayList(); + this.operation.add(t); return this; } /** - * @return The first repetition of repeating field {@link #manufacturingBusinessOperation}, creating it if it does not already exist {3} + * @return The first repetition of repeating field {@link #operation}, creating it if it does not already exist {3} */ - public MedicinalProductDefinitionManufacturingBusinessOperationComponent getManufacturingBusinessOperationFirstRep() { - if (getManufacturingBusinessOperation().isEmpty()) { - addManufacturingBusinessOperation(); + public MedicinalProductDefinitionOperationComponent getOperationFirstRep() { + if (getOperation().isEmpty()) { + addOperation(); } - return getManufacturingBusinessOperation().get(0); + return getOperation().get(0); + } + + /** + * @return {@link #package_} (Package representation for the product.) + */ + public List getPackage() { + if (this.package_ == null) + this.package_ = new ArrayList(); + return this.package_; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public MedicinalProductDefinition setPackage(List thePackage) { + this.package_ = thePackage; + return this; + } + + public boolean hasPackage() { + if (this.package_ == null) + return false; + for (MedicinalProductDefinitionPackageComponent item : this.package_) + if (!item.isEmpty()) + return true; + return false; + } + + public MedicinalProductDefinitionPackageComponent addPackage() { //3 + MedicinalProductDefinitionPackageComponent t = new MedicinalProductDefinitionPackageComponent(); + if (this.package_ == null) + this.package_ = new ArrayList(); + this.package_.add(t); + return t; + } + + public MedicinalProductDefinition addPackage(MedicinalProductDefinitionPackageComponent t) { //3 + if (t == null) + return this; + if (this.package_ == null) + this.package_ = new ArrayList(); + this.package_.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #package_}, creating it if it does not already exist {3} + */ + public MedicinalProductDefinitionPackageComponent getPackageFirstRep() { + if (getPackage().isEmpty()) { + addPackage(); + } + return getPackage().get(0); + } + + /** + * @return {@link #administrableProduct} (The product in its final form, mixed from its components if necessary, and ready to be administered to the patient. Also known as the 'Pharmaceutical Product'. Can repeat, for cases where the product has components that result in more than one administrable item.) + */ + public List getAdministrableProduct() { + if (this.administrableProduct == null) + this.administrableProduct = new ArrayList(); + return this.administrableProduct; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public MedicinalProductDefinition setAdministrableProduct(List theAdministrableProduct) { + this.administrableProduct = theAdministrableProduct; + return this; + } + + public boolean hasAdministrableProduct() { + if (this.administrableProduct == null) + return false; + for (MedicinalProductDefinitionAdministrableProductComponent item : this.administrableProduct) + if (!item.isEmpty()) + return true; + return false; + } + + public MedicinalProductDefinitionAdministrableProductComponent addAdministrableProduct() { //3 + MedicinalProductDefinitionAdministrableProductComponent t = new MedicinalProductDefinitionAdministrableProductComponent(); + if (this.administrableProduct == null) + this.administrableProduct = new ArrayList(); + this.administrableProduct.add(t); + return t; + } + + public MedicinalProductDefinition addAdministrableProduct(MedicinalProductDefinitionAdministrableProductComponent t) { //3 + if (t == null) + return this; + if (this.administrableProduct == null) + this.administrableProduct = new ArrayList(); + this.administrableProduct.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #administrableProduct}, creating it if it does not already exist {3} + */ + public MedicinalProductDefinitionAdministrableProductComponent getAdministrableProductFirstRep() { + if (getAdministrableProduct().isEmpty()) { + addAdministrableProduct(); + } + return getAdministrableProduct().get(0); } protected void listChildren(List children) { @@ -3144,30 +3660,30 @@ public class MedicinalProductDefinition extends DomainResource { children.add(new Property("identifier", "Identifier", "Business identifier for this product. Could be an MPID.", 0, java.lang.Integer.MAX_VALUE, identifier)); children.add(new Property("type", "CodeableConcept", "Regulatory type, e.g. Investigational or Authorized.", 0, 1, type)); children.add(new Property("domain", "CodeableConcept", "If this medicine applies to human or veterinary uses.", 0, 1, domain)); - children.add(new Property("version", "string", "A business level identifier of the product.", 0, 1, version)); - children.add(new Property("status", "CodeableConcept", "The status within the lifecycle of this product. A high level status, this is not intended to duplicate details carried elswhere such as legal status, or authorization status.", 0, 1, status)); + children.add(new Property("version", "string", "A business identifier relating to a specific version of the product, this is commonly used to support revisions to an existing product.", 0, 1, version)); + children.add(new Property("status", "CodeableConcept", "The status within the lifecycle of this product record. A high-level status, this is not intended to duplicate details carried elsewhere such as legal status, or authorization status.", 0, 1, status)); children.add(new Property("statusDate", "dateTime", "The date at which the given status became applicable.", 0, 1, statusDate)); children.add(new Property("description", "markdown", "General description of this product.", 0, 1, description)); children.add(new Property("combinedPharmaceuticalDoseForm", "CodeableConcept", "The dose form for a single part product, or combined form of a multiple part product.", 0, 1, combinedPharmaceuticalDoseForm)); - children.add(new Property("indication", "markdown", "General combined description of indication(s) for this product, for use when a structured set is not available. See also the ClinicalUseIssue resource, which can be used for more structured indications, and can be made to reference to this resource.", 0, 1, indication)); + children.add(new Property("indication", "markdown", "Description of indication(s) for this product, used when structured indications are not required. In cases where structured indications are required, they are captured using the ClinicalUseIssue resource. An indication is a medical situation for which using the product is appropriate.", 0, 1, indication)); children.add(new Property("legalStatusOfSupply", "CodeableConcept", "The legal status of supply of the medicinal product as classified by the regulator.", 0, 1, legalStatusOfSupply)); children.add(new Property("additionalMonitoringIndicator", "CodeableConcept", "Whether the Medicinal Product is subject to additional monitoring for regulatory reasons.", 0, 1, additionalMonitoringIndicator)); children.add(new Property("specialMeasures", "CodeableConcept", "Whether the Medicinal Product is subject to special measures for regulatory reasons.", 0, java.lang.Integer.MAX_VALUE, specialMeasures)); children.add(new Property("paediatricUseIndicator", "CodeableConcept", "If authorised for use in children.", 0, 1, paediatricUseIndicator)); children.add(new Property("classification", "CodeableConcept", "Allows the product to be classified by various systems.", 0, java.lang.Integer.MAX_VALUE, classification)); - children.add(new Property("characteristic", "CodeableConcept", "Allows the key product features to be recorded, such as \"suger free\", \"modified release\", \"parallel import\".", 0, java.lang.Integer.MAX_VALUE, characteristic)); - children.add(new Property("marketingStatus", "MarketingStatus", "Marketing status of the medicinal product, in contrast to marketing authorizaton.", 0, java.lang.Integer.MAX_VALUE, marketingStatus)); - children.add(new Property("pharmaceuticalProduct", "Reference(AdministrableProductDefinition)", "Pharmaceutical aspects of product.", 0, java.lang.Integer.MAX_VALUE, pharmaceuticalProduct)); - children.add(new Property("packagedMedicinalProduct", "Reference(PackagedProductDefinition)", "Package representation for the product.", 0, java.lang.Integer.MAX_VALUE, packagedMedicinalProduct)); - children.add(new Property("ingredient", "Reference(Ingredient)", "The ingredients of this medicinal product - when not specified elsewhere. This is only needed if the ingredients are not specified by the pharmaceuticalProduct or packagedMedicinalProduct references above. In cases where those levels of detail are not used, the ingredients may be specified directly here.", 0, java.lang.Integer.MAX_VALUE, ingredient)); + children.add(new Property("characteristic", "CodeableConcept", "Allows the key product features to be recorded, such as \"sugar free\", \"modified release\", \"parallel import\".", 0, java.lang.Integer.MAX_VALUE, characteristic)); + children.add(new Property("marketingStatus", "MarketingStatus", "Marketing status of the medicinal product, in contrast to marketing authorization.", 0, java.lang.Integer.MAX_VALUE, marketingStatus)); + children.add(new Property("ingredient", "CodeableReference(Ingredient)", "The ingredients of this medicinal product - when not detailed in other resources. This is only needed if the ingredients are not specified by the AdministrableProductDefinition or via the PackagedProductDefinition references above. In cases where those levels of detail are not used, the ingredients may be specified directly here.", 0, java.lang.Integer.MAX_VALUE, ingredient)); children.add(new Property("impurity", "Reference(SubstanceDefinition)", "Any component of the drug product which is not the chemical entity defined as the drug substance or an excipient in the drug product. This includes process-related impurities and contaminants, product-related impurities including degradation products.", 0, java.lang.Integer.MAX_VALUE, impurity)); - children.add(new Property("attachedDocument", "Reference(DocumentReference)", "Supporting documentation, typically for regulatory submission.", 0, java.lang.Integer.MAX_VALUE, attachedDocument)); + children.add(new Property("attachedDocument", "Reference(DocumentReference)", "Additional information or supporting documentation about the medicinal product.", 0, java.lang.Integer.MAX_VALUE, attachedDocument)); children.add(new Property("masterFile", "Reference(DocumentReference)", "A master file for to the medicinal product (e.g. Pharmacovigilance System Master File).", 0, java.lang.Integer.MAX_VALUE, masterFile)); children.add(new Property("contact", "", "A product specific contact, person (in a role), or an organization.", 0, java.lang.Integer.MAX_VALUE, contact)); children.add(new Property("clinicalTrial", "Reference(ResearchStudy)", "Clinical trials or studies that this product is involved in.", 0, java.lang.Integer.MAX_VALUE, clinicalTrial)); children.add(new Property("name", "", "The product's name, including full name and possibly coded parts.", 0, java.lang.Integer.MAX_VALUE, name)); children.add(new Property("crossReference", "", "Reference to another product, e.g. for linking authorised to investigational product.", 0, java.lang.Integer.MAX_VALUE, crossReference)); - children.add(new Property("manufacturingBusinessOperation", "", "An operation applied to the product, for manufacturing or adminsitrative purpose.", 0, java.lang.Integer.MAX_VALUE, manufacturingBusinessOperation)); + children.add(new Property("operation", "", "A manufacturing or administrative process or step associated with (or performed on) the medicinal product.", 0, java.lang.Integer.MAX_VALUE, operation)); + children.add(new Property("package", "", "Package representation for the product.", 0, java.lang.Integer.MAX_VALUE, package_)); + children.add(new Property("administrableProduct", "", "The product in its final form, mixed from its components if necessary, and ready to be administered to the patient. Also known as the 'Pharmaceutical Product'. Can repeat, for cases where the product has components that result in more than one administrable item.", 0, java.lang.Integer.MAX_VALUE, administrableProduct)); } @Override @@ -3176,30 +3692,30 @@ public class MedicinalProductDefinition extends DomainResource { case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifier for this product. Could be an MPID.", 0, java.lang.Integer.MAX_VALUE, identifier); case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Regulatory type, e.g. Investigational or Authorized.", 0, 1, type); case -1326197564: /*domain*/ return new Property("domain", "CodeableConcept", "If this medicine applies to human or veterinary uses.", 0, 1, domain); - case 351608024: /*version*/ return new Property("version", "string", "A business level identifier of the product.", 0, 1, version); - case -892481550: /*status*/ return new Property("status", "CodeableConcept", "The status within the lifecycle of this product. A high level status, this is not intended to duplicate details carried elswhere such as legal status, or authorization status.", 0, 1, status); + case 351608024: /*version*/ return new Property("version", "string", "A business identifier relating to a specific version of the product, this is commonly used to support revisions to an existing product.", 0, 1, version); + case -892481550: /*status*/ return new Property("status", "CodeableConcept", "The status within the lifecycle of this product record. A high-level status, this is not intended to duplicate details carried elsewhere such as legal status, or authorization status.", 0, 1, status); case 247524032: /*statusDate*/ return new Property("statusDate", "dateTime", "The date at which the given status became applicable.", 0, 1, statusDate); case -1724546052: /*description*/ return new Property("description", "markdown", "General description of this product.", 0, 1, description); case -1992898487: /*combinedPharmaceuticalDoseForm*/ return new Property("combinedPharmaceuticalDoseForm", "CodeableConcept", "The dose form for a single part product, or combined form of a multiple part product.", 0, 1, combinedPharmaceuticalDoseForm); - case -597168804: /*indication*/ return new Property("indication", "markdown", "General combined description of indication(s) for this product, for use when a structured set is not available. See also the ClinicalUseIssue resource, which can be used for more structured indications, and can be made to reference to this resource.", 0, 1, indication); + case -597168804: /*indication*/ return new Property("indication", "markdown", "Description of indication(s) for this product, used when structured indications are not required. In cases where structured indications are required, they are captured using the ClinicalUseIssue resource. An indication is a medical situation for which using the product is appropriate.", 0, 1, indication); case -844874031: /*legalStatusOfSupply*/ return new Property("legalStatusOfSupply", "CodeableConcept", "The legal status of supply of the medicinal product as classified by the regulator.", 0, 1, legalStatusOfSupply); case 1935999744: /*additionalMonitoringIndicator*/ return new Property("additionalMonitoringIndicator", "CodeableConcept", "Whether the Medicinal Product is subject to additional monitoring for regulatory reasons.", 0, 1, additionalMonitoringIndicator); case 975102638: /*specialMeasures*/ return new Property("specialMeasures", "CodeableConcept", "Whether the Medicinal Product is subject to special measures for regulatory reasons.", 0, java.lang.Integer.MAX_VALUE, specialMeasures); case -1019867160: /*paediatricUseIndicator*/ return new Property("paediatricUseIndicator", "CodeableConcept", "If authorised for use in children.", 0, 1, paediatricUseIndicator); case 382350310: /*classification*/ return new Property("classification", "CodeableConcept", "Allows the product to be classified by various systems.", 0, java.lang.Integer.MAX_VALUE, classification); - case 366313883: /*characteristic*/ return new Property("characteristic", "CodeableConcept", "Allows the key product features to be recorded, such as \"suger free\", \"modified release\", \"parallel import\".", 0, java.lang.Integer.MAX_VALUE, characteristic); - case 70767032: /*marketingStatus*/ return new Property("marketingStatus", "MarketingStatus", "Marketing status of the medicinal product, in contrast to marketing authorizaton.", 0, java.lang.Integer.MAX_VALUE, marketingStatus); - case 443273260: /*pharmaceuticalProduct*/ return new Property("pharmaceuticalProduct", "Reference(AdministrableProductDefinition)", "Pharmaceutical aspects of product.", 0, java.lang.Integer.MAX_VALUE, pharmaceuticalProduct); - case -361025513: /*packagedMedicinalProduct*/ return new Property("packagedMedicinalProduct", "Reference(PackagedProductDefinition)", "Package representation for the product.", 0, java.lang.Integer.MAX_VALUE, packagedMedicinalProduct); - case -206409263: /*ingredient*/ return new Property("ingredient", "Reference(Ingredient)", "The ingredients of this medicinal product - when not specified elsewhere. This is only needed if the ingredients are not specified by the pharmaceuticalProduct or packagedMedicinalProduct references above. In cases where those levels of detail are not used, the ingredients may be specified directly here.", 0, java.lang.Integer.MAX_VALUE, ingredient); + case 366313883: /*characteristic*/ return new Property("characteristic", "CodeableConcept", "Allows the key product features to be recorded, such as \"sugar free\", \"modified release\", \"parallel import\".", 0, java.lang.Integer.MAX_VALUE, characteristic); + case 70767032: /*marketingStatus*/ return new Property("marketingStatus", "MarketingStatus", "Marketing status of the medicinal product, in contrast to marketing authorization.", 0, java.lang.Integer.MAX_VALUE, marketingStatus); + case -206409263: /*ingredient*/ return new Property("ingredient", "CodeableReference(Ingredient)", "The ingredients of this medicinal product - when not detailed in other resources. This is only needed if the ingredients are not specified by the AdministrableProductDefinition or via the PackagedProductDefinition references above. In cases where those levels of detail are not used, the ingredients may be specified directly here.", 0, java.lang.Integer.MAX_VALUE, ingredient); case -416837467: /*impurity*/ return new Property("impurity", "Reference(SubstanceDefinition)", "Any component of the drug product which is not the chemical entity defined as the drug substance or an excipient in the drug product. This includes process-related impurities and contaminants, product-related impurities including degradation products.", 0, java.lang.Integer.MAX_VALUE, impurity); - case -513945889: /*attachedDocument*/ return new Property("attachedDocument", "Reference(DocumentReference)", "Supporting documentation, typically for regulatory submission.", 0, java.lang.Integer.MAX_VALUE, attachedDocument); + case -513945889: /*attachedDocument*/ return new Property("attachedDocument", "Reference(DocumentReference)", "Additional information or supporting documentation about the medicinal product.", 0, java.lang.Integer.MAX_VALUE, attachedDocument); case -2039573762: /*masterFile*/ return new Property("masterFile", "Reference(DocumentReference)", "A master file for to the medicinal product (e.g. Pharmacovigilance System Master File).", 0, java.lang.Integer.MAX_VALUE, masterFile); case 951526432: /*contact*/ return new Property("contact", "", "A product specific contact, person (in a role), or an organization.", 0, java.lang.Integer.MAX_VALUE, contact); case 1232866243: /*clinicalTrial*/ return new Property("clinicalTrial", "Reference(ResearchStudy)", "Clinical trials or studies that this product is involved in.", 0, java.lang.Integer.MAX_VALUE, clinicalTrial); case 3373707: /*name*/ return new Property("name", "", "The product's name, including full name and possibly coded parts.", 0, java.lang.Integer.MAX_VALUE, name); case -986968341: /*crossReference*/ return new Property("crossReference", "", "Reference to another product, e.g. for linking authorised to investigational product.", 0, java.lang.Integer.MAX_VALUE, crossReference); - case -171103255: /*manufacturingBusinessOperation*/ return new Property("manufacturingBusinessOperation", "", "An operation applied to the product, for manufacturing or adminsitrative purpose.", 0, java.lang.Integer.MAX_VALUE, manufacturingBusinessOperation); + case 1662702951: /*operation*/ return new Property("operation", "", "A manufacturing or administrative process or step associated with (or performed on) the medicinal product.", 0, java.lang.Integer.MAX_VALUE, operation); + case -807062458: /*package*/ return new Property("package", "", "Package representation for the product.", 0, java.lang.Integer.MAX_VALUE, package_); + case 1773324510: /*administrableProduct*/ return new Property("administrableProduct", "", "The product in its final form, mixed from its components if necessary, and ready to be administered to the patient. Also known as the 'Pharmaceutical Product'. Can repeat, for cases where the product has components that result in more than one administrable item.", 0, java.lang.Integer.MAX_VALUE, administrableProduct); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -3224,9 +3740,7 @@ public class MedicinalProductDefinition extends DomainResource { case 382350310: /*classification*/ return this.classification == null ? new Base[0] : this.classification.toArray(new Base[this.classification.size()]); // CodeableConcept case 366313883: /*characteristic*/ return this.characteristic == null ? new Base[0] : this.characteristic.toArray(new Base[this.characteristic.size()]); // CodeableConcept case 70767032: /*marketingStatus*/ return this.marketingStatus == null ? new Base[0] : this.marketingStatus.toArray(new Base[this.marketingStatus.size()]); // MarketingStatus - case 443273260: /*pharmaceuticalProduct*/ return this.pharmaceuticalProduct == null ? new Base[0] : this.pharmaceuticalProduct.toArray(new Base[this.pharmaceuticalProduct.size()]); // Reference - case -361025513: /*packagedMedicinalProduct*/ return this.packagedMedicinalProduct == null ? new Base[0] : this.packagedMedicinalProduct.toArray(new Base[this.packagedMedicinalProduct.size()]); // Reference - case -206409263: /*ingredient*/ return this.ingredient == null ? new Base[0] : this.ingredient.toArray(new Base[this.ingredient.size()]); // Reference + case -206409263: /*ingredient*/ return this.ingredient == null ? new Base[0] : this.ingredient.toArray(new Base[this.ingredient.size()]); // CodeableReference case -416837467: /*impurity*/ return this.impurity == null ? new Base[0] : this.impurity.toArray(new Base[this.impurity.size()]); // Reference case -513945889: /*attachedDocument*/ return this.attachedDocument == null ? new Base[0] : this.attachedDocument.toArray(new Base[this.attachedDocument.size()]); // Reference case -2039573762: /*masterFile*/ return this.masterFile == null ? new Base[0] : this.masterFile.toArray(new Base[this.masterFile.size()]); // Reference @@ -3234,7 +3748,9 @@ public class MedicinalProductDefinition extends DomainResource { case 1232866243: /*clinicalTrial*/ return this.clinicalTrial == null ? new Base[0] : this.clinicalTrial.toArray(new Base[this.clinicalTrial.size()]); // Reference case 3373707: /*name*/ return this.name == null ? new Base[0] : this.name.toArray(new Base[this.name.size()]); // MedicinalProductDefinitionNameComponent case -986968341: /*crossReference*/ return this.crossReference == null ? new Base[0] : this.crossReference.toArray(new Base[this.crossReference.size()]); // MedicinalProductDefinitionCrossReferenceComponent - case -171103255: /*manufacturingBusinessOperation*/ return this.manufacturingBusinessOperation == null ? new Base[0] : this.manufacturingBusinessOperation.toArray(new Base[this.manufacturingBusinessOperation.size()]); // MedicinalProductDefinitionManufacturingBusinessOperationComponent + case 1662702951: /*operation*/ return this.operation == null ? new Base[0] : this.operation.toArray(new Base[this.operation.size()]); // MedicinalProductDefinitionOperationComponent + case -807062458: /*package*/ return this.package_ == null ? new Base[0] : this.package_.toArray(new Base[this.package_.size()]); // MedicinalProductDefinitionPackageComponent + case 1773324510: /*administrableProduct*/ return this.administrableProduct == null ? new Base[0] : this.administrableProduct.toArray(new Base[this.administrableProduct.size()]); // MedicinalProductDefinitionAdministrableProductComponent default: return super.getProperty(hash, name, checkValid); } @@ -3291,14 +3807,8 @@ public class MedicinalProductDefinition extends DomainResource { case 70767032: // marketingStatus this.getMarketingStatus().add(TypeConvertor.castToMarketingStatus(value)); // MarketingStatus return value; - case 443273260: // pharmaceuticalProduct - this.getPharmaceuticalProduct().add(TypeConvertor.castToReference(value)); // Reference - return value; - case -361025513: // packagedMedicinalProduct - this.getPackagedMedicinalProduct().add(TypeConvertor.castToReference(value)); // Reference - return value; case -206409263: // ingredient - this.getIngredient().add(TypeConvertor.castToReference(value)); // Reference + this.getIngredient().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference return value; case -416837467: // impurity this.getImpurity().add(TypeConvertor.castToReference(value)); // Reference @@ -3321,8 +3831,14 @@ public class MedicinalProductDefinition extends DomainResource { case -986968341: // crossReference this.getCrossReference().add((MedicinalProductDefinitionCrossReferenceComponent) value); // MedicinalProductDefinitionCrossReferenceComponent return value; - case -171103255: // manufacturingBusinessOperation - this.getManufacturingBusinessOperation().add((MedicinalProductDefinitionManufacturingBusinessOperationComponent) value); // MedicinalProductDefinitionManufacturingBusinessOperationComponent + case 1662702951: // operation + this.getOperation().add((MedicinalProductDefinitionOperationComponent) value); // MedicinalProductDefinitionOperationComponent + return value; + case -807062458: // package + this.getPackage().add((MedicinalProductDefinitionPackageComponent) value); // MedicinalProductDefinitionPackageComponent + return value; + case 1773324510: // administrableProduct + this.getAdministrableProduct().add((MedicinalProductDefinitionAdministrableProductComponent) value); // MedicinalProductDefinitionAdministrableProductComponent return value; default: return super.setProperty(hash, name, value); } @@ -3363,12 +3879,8 @@ public class MedicinalProductDefinition extends DomainResource { this.getCharacteristic().add(TypeConvertor.castToCodeableConcept(value)); } else if (name.equals("marketingStatus")) { this.getMarketingStatus().add(TypeConvertor.castToMarketingStatus(value)); - } else if (name.equals("pharmaceuticalProduct")) { - this.getPharmaceuticalProduct().add(TypeConvertor.castToReference(value)); - } else if (name.equals("packagedMedicinalProduct")) { - this.getPackagedMedicinalProduct().add(TypeConvertor.castToReference(value)); } else if (name.equals("ingredient")) { - this.getIngredient().add(TypeConvertor.castToReference(value)); + this.getIngredient().add(TypeConvertor.castToCodeableReference(value)); } else if (name.equals("impurity")) { this.getImpurity().add(TypeConvertor.castToReference(value)); } else if (name.equals("attachedDocument")) { @@ -3383,8 +3895,12 @@ public class MedicinalProductDefinition extends DomainResource { this.getName().add((MedicinalProductDefinitionNameComponent) value); } else if (name.equals("crossReference")) { this.getCrossReference().add((MedicinalProductDefinitionCrossReferenceComponent) value); - } else if (name.equals("manufacturingBusinessOperation")) { - this.getManufacturingBusinessOperation().add((MedicinalProductDefinitionManufacturingBusinessOperationComponent) value); + } else if (name.equals("operation")) { + this.getOperation().add((MedicinalProductDefinitionOperationComponent) value); + } else if (name.equals("package")) { + this.getPackage().add((MedicinalProductDefinitionPackageComponent) value); + } else if (name.equals("administrableProduct")) { + this.getAdministrableProduct().add((MedicinalProductDefinitionAdministrableProductComponent) value); } else return super.setProperty(name, value); return value; @@ -3409,8 +3925,6 @@ public class MedicinalProductDefinition extends DomainResource { case 382350310: return addClassification(); case 366313883: return addCharacteristic(); case 70767032: return addMarketingStatus(); - case 443273260: return addPharmaceuticalProduct(); - case -361025513: return addPackagedMedicinalProduct(); case -206409263: return addIngredient(); case -416837467: return addImpurity(); case -513945889: return addAttachedDocument(); @@ -3419,7 +3933,9 @@ public class MedicinalProductDefinition extends DomainResource { case 1232866243: return addClinicalTrial(); case 3373707: return addName(); case -986968341: return addCrossReference(); - case -171103255: return addManufacturingBusinessOperation(); + case 1662702951: return addOperation(); + case -807062458: return addPackage(); + case 1773324510: return addAdministrableProduct(); default: return super.makeProperty(hash, name); } @@ -3444,9 +3960,7 @@ public class MedicinalProductDefinition extends DomainResource { case 382350310: /*classification*/ return new String[] {"CodeableConcept"}; case 366313883: /*characteristic*/ return new String[] {"CodeableConcept"}; case 70767032: /*marketingStatus*/ return new String[] {"MarketingStatus"}; - case 443273260: /*pharmaceuticalProduct*/ return new String[] {"Reference"}; - case -361025513: /*packagedMedicinalProduct*/ return new String[] {"Reference"}; - case -206409263: /*ingredient*/ return new String[] {"Reference"}; + case -206409263: /*ingredient*/ return new String[] {"CodeableReference"}; case -416837467: /*impurity*/ return new String[] {"Reference"}; case -513945889: /*attachedDocument*/ return new String[] {"Reference"}; case -2039573762: /*masterFile*/ return new String[] {"Reference"}; @@ -3454,7 +3968,9 @@ public class MedicinalProductDefinition extends DomainResource { case 1232866243: /*clinicalTrial*/ return new String[] {"Reference"}; case 3373707: /*name*/ return new String[] {}; case -986968341: /*crossReference*/ return new String[] {}; - case -171103255: /*manufacturingBusinessOperation*/ return new String[] {}; + case 1662702951: /*operation*/ return new String[] {}; + case -807062458: /*package*/ return new String[] {}; + case 1773324510: /*administrableProduct*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -3517,12 +4033,6 @@ public class MedicinalProductDefinition extends DomainResource { else if (name.equals("marketingStatus")) { return addMarketingStatus(); } - else if (name.equals("pharmaceuticalProduct")) { - return addPharmaceuticalProduct(); - } - else if (name.equals("packagedMedicinalProduct")) { - return addPackagedMedicinalProduct(); - } else if (name.equals("ingredient")) { return addIngredient(); } @@ -3547,8 +4057,14 @@ public class MedicinalProductDefinition extends DomainResource { else if (name.equals("crossReference")) { return addCrossReference(); } - else if (name.equals("manufacturingBusinessOperation")) { - return addManufacturingBusinessOperation(); + else if (name.equals("operation")) { + return addOperation(); + } + else if (name.equals("package")) { + return addPackage(); + } + else if (name.equals("administrableProduct")) { + return addAdministrableProduct(); } else return super.addChild(name); @@ -3603,19 +4119,9 @@ public class MedicinalProductDefinition extends DomainResource { for (MarketingStatus i : marketingStatus) dst.marketingStatus.add(i.copy()); }; - if (pharmaceuticalProduct != null) { - dst.pharmaceuticalProduct = new ArrayList(); - for (Reference i : pharmaceuticalProduct) - dst.pharmaceuticalProduct.add(i.copy()); - }; - if (packagedMedicinalProduct != null) { - dst.packagedMedicinalProduct = new ArrayList(); - for (Reference i : packagedMedicinalProduct) - dst.packagedMedicinalProduct.add(i.copy()); - }; if (ingredient != null) { - dst.ingredient = new ArrayList(); - for (Reference i : ingredient) + dst.ingredient = new ArrayList(); + for (CodeableReference i : ingredient) dst.ingredient.add(i.copy()); }; if (impurity != null) { @@ -3653,10 +4159,20 @@ public class MedicinalProductDefinition extends DomainResource { for (MedicinalProductDefinitionCrossReferenceComponent i : crossReference) dst.crossReference.add(i.copy()); }; - if (manufacturingBusinessOperation != null) { - dst.manufacturingBusinessOperation = new ArrayList(); - for (MedicinalProductDefinitionManufacturingBusinessOperationComponent i : manufacturingBusinessOperation) - dst.manufacturingBusinessOperation.add(i.copy()); + if (operation != null) { + dst.operation = new ArrayList(); + for (MedicinalProductDefinitionOperationComponent i : operation) + dst.operation.add(i.copy()); + }; + if (package_ != null) { + dst.package_ = new ArrayList(); + for (MedicinalProductDefinitionPackageComponent i : package_) + dst.package_.add(i.copy()); + }; + if (administrableProduct != null) { + dst.administrableProduct = new ArrayList(); + for (MedicinalProductDefinitionAdministrableProductComponent i : administrableProduct) + dst.administrableProduct.add(i.copy()); }; } @@ -3678,10 +4194,10 @@ public class MedicinalProductDefinition extends DomainResource { && compareDeep(additionalMonitoringIndicator, o.additionalMonitoringIndicator, true) && compareDeep(specialMeasures, o.specialMeasures, true) && compareDeep(paediatricUseIndicator, o.paediatricUseIndicator, true) && compareDeep(classification, o.classification, true) && compareDeep(characteristic, o.characteristic, true) && compareDeep(marketingStatus, o.marketingStatus, true) - && compareDeep(pharmaceuticalProduct, o.pharmaceuticalProduct, true) && compareDeep(packagedMedicinalProduct, o.packagedMedicinalProduct, true) && compareDeep(ingredient, o.ingredient, true) && compareDeep(impurity, o.impurity, true) && compareDeep(attachedDocument, o.attachedDocument, true) && compareDeep(masterFile, o.masterFile, true) && compareDeep(contact, o.contact, true) && compareDeep(clinicalTrial, o.clinicalTrial, true) - && compareDeep(name, o.name, true) && compareDeep(crossReference, o.crossReference, true) && compareDeep(manufacturingBusinessOperation, o.manufacturingBusinessOperation, true) + && compareDeep(name, o.name, true) && compareDeep(crossReference, o.crossReference, true) && compareDeep(operation, o.operation, true) + && compareDeep(package_, o.package_, true) && compareDeep(administrableProduct, o.administrableProduct, true) ; } @@ -3700,9 +4216,9 @@ public class MedicinalProductDefinition extends DomainResource { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, type, domain , version, status, statusDate, description, combinedPharmaceuticalDoseForm, indication , legalStatusOfSupply, additionalMonitoringIndicator, specialMeasures, paediatricUseIndicator - , classification, characteristic, marketingStatus, pharmaceuticalProduct, packagedMedicinalProduct - , ingredient, impurity, attachedDocument, masterFile, contact, clinicalTrial, name - , crossReference, manufacturingBusinessOperation); + , classification, characteristic, marketingStatus, ingredient, impurity, attachedDocument + , masterFile, contact, clinicalTrial, name, crossReference, operation, package_ + , administrableProduct); } @Override @@ -3713,17 +4229,17 @@ public class MedicinalProductDefinition extends DomainResource { /** * Search parameter: characteristic *

- * Description: Allows the key product features to be recorded, such as "suger free", "modified release", "parallel import"
+ * Description: Allows the key product features to be recorded, such as "sugar free", "modified release", "parallel import"
* Type: token
* Path: MedicinalProductDefinition.characteristic
*

*/ - @SearchParamDefinition(name="characteristic", path="MedicinalProductDefinition.characteristic", description="Allows the key product features to be recorded, such as \"suger free\", \"modified release\", \"parallel import\"", type="token" ) + @SearchParamDefinition(name="characteristic", path="MedicinalProductDefinition.characteristic", description="Allows the key product features to be recorded, such as \"sugar free\", \"modified release\", \"parallel import\"", type="token" ) public static final String SP_CHARACTERISTIC = "characteristic"; /** * Fluent Client search parameter constant for characteristic *

- * Description: Allows the key product features to be recorded, such as "suger free", "modified release", "parallel import"
+ * Description: Allows the key product features to be recorded, such as "sugar free", "modified release", "parallel import"
* Type: token
* Path: MedicinalProductDefinition.characteristic
*

@@ -3799,19 +4315,19 @@ public class MedicinalProductDefinition extends DomainResource { /** * Search parameter: ingredient *

- * Description: The ingredients of this medicinal product - when not specified elsewhere. This is only needed if the ingredients are not specified by the pharmaceuticalProduct or packagedMedicinalProduct references above. In cases where those levels of detail are not used, the ingredients may be specified directly here
+ * Description: Reference to a resource (by instance)
* Type: reference
- * Path: MedicinalProductDefinition.ingredient
+ * Path: MedicinalProductDefinition.ingredient.reference
*

*/ - @SearchParamDefinition(name="ingredient", path="MedicinalProductDefinition.ingredient", description="The ingredients of this medicinal product - when not specified elsewhere. This is only needed if the ingredients are not specified by the pharmaceuticalProduct or packagedMedicinalProduct references above. In cases where those levels of detail are not used, the ingredients may be specified directly here", type="reference", target={Ingredient.class } ) + @SearchParamDefinition(name="ingredient", path="MedicinalProductDefinition.ingredient.reference", description="Reference to a resource (by instance)", type="reference" ) public static final String SP_INGREDIENT = "ingredient"; /** * Fluent Client search parameter constant for ingredient *

- * Description: The ingredients of this medicinal product - when not specified elsewhere. This is only needed if the ingredients are not specified by the pharmaceuticalProduct or packagedMedicinalProduct references above. In cases where those levels of detail are not used, the ingredients may be specified directly here
+ * Description: Reference to a resource (by instance)
* Type: reference
- * Path: MedicinalProductDefinition.ingredient
+ * Path: MedicinalProductDefinition.ingredient.reference
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INGREDIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INGREDIENT); @@ -3822,6 +4338,26 @@ public class MedicinalProductDefinition extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_INGREDIENT = new ca.uhn.fhir.model.api.Include("MedicinalProductDefinition:ingredient").toLocked(); + /** + * Search parameter: ingredient-code + *

+ * Description: Reference to a concept (by class)
+ * Type: token
+ * Path: MedicinalProductDefinition.ingredient.concept
+ *

+ */ + @SearchParamDefinition(name="ingredient-code", path="MedicinalProductDefinition.ingredient.concept", description="Reference to a concept (by class)", type="token" ) + public static final String SP_INGREDIENT_CODE = "ingredient-code"; + /** + * Fluent Client search parameter constant for ingredient-code + *

+ * Description: Reference to a concept (by class)
+ * Type: token
+ * Path: MedicinalProductDefinition.ingredient.concept
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam INGREDIENT_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_INGREDIENT_CODE); + /** * Search parameter: master-file *

@@ -3848,26 +4384,6 @@ public class MedicinalProductDefinition extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_MASTER_FILE = new ca.uhn.fhir.model.api.Include("MedicinalProductDefinition:master-file").toLocked(); - /** - * Search parameter: name-language - *

- * Description: Language code for this name
- * Type: token
- * Path: MedicinalProductDefinition.name.countryLanguage.language
- *

- */ - @SearchParamDefinition(name="name-language", path="MedicinalProductDefinition.name.countryLanguage.language", description="Language code for this name", type="token" ) - public static final String SP_NAME_LANGUAGE = "name-language"; - /** - * Fluent Client search parameter constant for name-language - *

- * Description: Language code for this name
- * Type: token
- * Path: MedicinalProductDefinition.name.countryLanguage.language
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam NAME_LANGUAGE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_NAME_LANGUAGE); - /** * Search parameter: name *

@@ -3888,6 +4404,26 @@ public class MedicinalProductDefinition extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); + /** + * Search parameter: name-language + *

+ * Description: Language code for this name
+ * Type: token
+ * Path: MedicinalProductDefinition.name.countryLanguage.language
+ *

+ */ + @SearchParamDefinition(name="name-language", path="MedicinalProductDefinition.name.countryLanguage.language", description="Language code for this name", type="token" ) + public static final String SP_NAME_LANGUAGE = "name-language"; + /** + * Fluent Client search parameter constant for name-language + *

+ * Description: Language code for this name
+ * Type: token
+ * Path: MedicinalProductDefinition.name.countryLanguage.language
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam NAME_LANGUAGE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_NAME_LANGUAGE); + /** * Search parameter: product-classification *

@@ -3911,17 +4447,17 @@ public class MedicinalProductDefinition extends DomainResource { /** * Search parameter: status *

- * Description: The status within the lifecycle of this product. A high level status, this is not intended to duplicate details carried elswhere such as legal status, or authorization status
+ * Description: The status within the lifecycle of this product record. A high-level status, this is not intended to duplicate details carried elsewhere such as legal status, or authorization status
* Type: token
* Path: MedicinalProductDefinition.status
*

*/ - @SearchParamDefinition(name="status", path="MedicinalProductDefinition.status", description="The status within the lifecycle of this product. A high level status, this is not intended to duplicate details carried elswhere such as legal status, or authorization status", type="token" ) + @SearchParamDefinition(name="status", path="MedicinalProductDefinition.status", description="The status within the lifecycle of this product record. A high-level status, this is not intended to duplicate details carried elsewhere such as legal status, or authorization status", type="token" ) public static final String SP_STATUS = "status"; /** * Fluent Client search parameter constant for status *

- * Description: The status within the lifecycle of this product. A high level status, this is not intended to duplicate details carried elswhere such as legal status, or authorization status
+ * Description: The status within the lifecycle of this product record. A high-level status, this is not intended to duplicate details carried elsewhere such as legal status, or authorization status
* Type: token
* Path: MedicinalProductDefinition.status
*

diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageDefinition.java index 4edef9588..6561e2e92 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -89,7 +89,6 @@ public class MessageDefinition extends CanonicalResource { case CONSEQUENCE: return "consequence"; case CURRENCY: return "currency"; case NOTIFICATION: return "notification"; - case NULL: return null; default: return "?"; } } @@ -98,7 +97,6 @@ public class MessageDefinition extends CanonicalResource { case CONSEQUENCE: return "http://hl7.org/fhir/message-significance-category"; case CURRENCY: return "http://hl7.org/fhir/message-significance-category"; case NOTIFICATION: return "http://hl7.org/fhir/message-significance-category"; - case NULL: return null; default: return "?"; } } @@ -107,7 +105,6 @@ public class MessageDefinition extends CanonicalResource { case CONSEQUENCE: return "The message represents/requests a change that should not be processed more than once; e.g., making a booking for an appointment."; case CURRENCY: return "The message represents a response to query for current information. Retrospective processing is wrong and/or wasteful."; case NOTIFICATION: return "The content is not necessarily intended to be current, and it can be reprocessed, though there may be version issues created by processing old notifications."; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class MessageDefinition extends CanonicalResource { case CONSEQUENCE: return "Consequence"; case CURRENCY: return "Currency"; case NOTIFICATION: return "Notification"; - case NULL: return null; default: return "?"; } } @@ -208,7 +204,6 @@ public class MessageDefinition extends CanonicalResource { case ONERROR: return "on-error"; case NEVER: return "never"; case ONSUCCESS: return "on-success"; - case NULL: return null; default: return "?"; } } @@ -218,7 +213,6 @@ public class MessageDefinition extends CanonicalResource { case ONERROR: return "http://hl7.org/fhir/messageheader-response-request"; case NEVER: return "http://hl7.org/fhir/messageheader-response-request"; case ONSUCCESS: return "http://hl7.org/fhir/messageheader-response-request"; - case NULL: return null; default: return "?"; } } @@ -228,7 +222,6 @@ public class MessageDefinition extends CanonicalResource { case ONERROR: return "initiator expects a response only if in error."; case NEVER: return "initiator does not expect a response."; case ONSUCCESS: return "initiator expects a response only if successful."; - case NULL: return null; default: return "?"; } } @@ -238,7 +231,6 @@ public class MessageDefinition extends CanonicalResource { case ONERROR: return "Error/reject conditions only"; case NEVER: return "Never"; case ONSUCCESS: return "Successful completion only"; - case NULL: return null; default: return "?"; } } @@ -2868,90 +2860,56 @@ public class MessageDefinition extends CanonicalResource { } /** - * Search parameter: category + * Search parameter: context *

- * Description: The behavior associated with the message
- * Type: token
- * Path: MessageDefinition.category
- *

- */ - @SearchParamDefinition(name="category", path="MessageDefinition.category", description="The behavior associated with the message", type="token" ) - public static final String SP_CATEGORY = "category"; - /** - * Fluent Client search parameter constant for category - *

- * Description: The behavior associated with the message
- * Type: token
- * Path: MessageDefinition.category
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CATEGORY); + * Description: Multiple Resources: - /** - * Search parameter: event - *

- * Description: The event that triggers the message or link to the event definition.
+* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +

* Type: token
- * Path: MessageDefinition.event
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="event", path="MessageDefinition.event", description="The event that triggers the message or link to the event definition.", type="token" ) - public static final String SP_EVENT = "event"; + @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) + public static final String SP_CONTEXT = "context"; /** - * Fluent Client search parameter constant for event + * Fluent Client search parameter constant for context *

- * Description: The event that triggers the message or link to the event definition.
- * Type: token
- * Path: MessageDefinition.event
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam EVENT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EVENT); + * Description: Multiple Resources: - /** - * Search parameter: focus - *

- * Description: A resource that is a permitted focus of the message
+* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +

* Type: token
- * Path: MessageDefinition.focus.code
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="focus", path="MessageDefinition.focus.code", description="A resource that is a permitted focus of the message", type="token" ) - public static final String SP_FOCUS = "focus"; - /** - * Fluent Client search parameter constant for focus - *

- * Description: A resource that is a permitted focus of the message
- * Type: token
- * Path: MessageDefinition.focus.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam FOCUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FOCUS); - - /** - * Search parameter: parent - *

- * Description: A resource that is the parent of the definition
- * Type: reference
- * Path: MessageDefinition.parent
- *

- */ - @SearchParamDefinition(name="parent", path="MessageDefinition.parent", description="A resource that is the parent of the definition", type="reference", target={ActivityDefinition.class, PlanDefinition.class } ) - public static final String SP_PARENT = "parent"; - /** - * Fluent Client search parameter constant for parent - *

- * Description: A resource that is the parent of the definition
- * Type: reference
- * Path: MessageDefinition.parent
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PARENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "MessageDefinition:parent". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PARENT = new ca.uhn.fhir.model.api.Include("MessageDefinition:parent").toLocked(); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); /** * Search parameter: context-quantity @@ -3005,110 +2963,6 @@ public class MessageDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -3161,58 +3015,6 @@ public class MessageDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -3317,44 +3119,6 @@ public class MessageDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [CodeSystem](codesystem.html): External identifier for the code system -* [ConceptMap](conceptmap.html): External identifier for the concept map -* [MessageDefinition](messagedefinition.html): External identifier for the message definition -* [StructureDefinition](structuredefinition.html): External identifier for the structure definition -* [StructureMap](structuremap.html): External identifier for the structure map -* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities -* [ValueSet](valueset.html): External identifier for the value set -
- * Type: token
- * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier", description="Multiple Resources: \r\n\r\n* [CodeSystem](codesystem.html): External identifier for the code system\r\n* [ConceptMap](conceptmap.html): External identifier for the concept map\r\n* [MessageDefinition](messagedefinition.html): External identifier for the message definition\r\n* [StructureDefinition](structuredefinition.html): External identifier for the structure definition\r\n* [StructureMap](structuremap.html): External identifier for the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities\r\n* [ValueSet](valueset.html): External identifier for the value set\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [CodeSystem](codesystem.html): External identifier for the code system -* [ConceptMap](conceptmap.html): External identifier for the concept map -* [MessageDefinition](messagedefinition.html): External identifier for the message definition -* [StructureDefinition](structuredefinition.html): External identifier for the structure definition -* [StructureMap](structuremap.html): External identifier for the structure map -* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities -* [ValueSet](valueset.html): External identifier for the value set -
- * Type: token
- * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - /** * Search parameter: jurisdiction *

@@ -3709,6 +3473,234 @@ public class MessageDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [CodeSystem](codesystem.html): External identifier for the code system +* [ConceptMap](conceptmap.html): External identifier for the concept map +* [MessageDefinition](messagedefinition.html): External identifier for the message definition +* [StructureDefinition](structuredefinition.html): External identifier for the structure definition +* [StructureMap](structuremap.html): External identifier for the structure map +* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities +* [ValueSet](valueset.html): External identifier for the value set +
+ * Type: token
+ * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier", description="Multiple Resources: \r\n\r\n* [CodeSystem](codesystem.html): External identifier for the code system\r\n* [ConceptMap](conceptmap.html): External identifier for the concept map\r\n* [MessageDefinition](messagedefinition.html): External identifier for the message definition\r\n* [StructureDefinition](structuredefinition.html): External identifier for the structure definition\r\n* [StructureMap](structuremap.html): External identifier for the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities\r\n* [ValueSet](valueset.html): External identifier for the value set\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [CodeSystem](codesystem.html): External identifier for the code system +* [ConceptMap](conceptmap.html): External identifier for the concept map +* [MessageDefinition](messagedefinition.html): External identifier for the message definition +* [StructureDefinition](structuredefinition.html): External identifier for the structure definition +* [StructureMap](structuremap.html): External identifier for the structure map +* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities +* [ValueSet](valueset.html): External identifier for the value set +
+ * Type: token
+ * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: category + *

+ * Description: The behavior associated with the message
+ * Type: token
+ * Path: MessageDefinition.category
+ *

+ */ + @SearchParamDefinition(name="category", path="MessageDefinition.category", description="The behavior associated with the message", type="token" ) + public static final String SP_CATEGORY = "category"; + /** + * Fluent Client search parameter constant for category + *

+ * Description: The behavior associated with the message
+ * Type: token
+ * Path: MessageDefinition.category
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CATEGORY); + + /** + * Search parameter: event + *

+ * Description: The event that triggers the message or link to the event definition.
+ * Type: token
+ * Path: MessageDefinition.event
+ *

+ */ + @SearchParamDefinition(name="event", path="MessageDefinition.event", description="The event that triggers the message or link to the event definition.", type="token" ) + public static final String SP_EVENT = "event"; + /** + * Fluent Client search parameter constant for event + *

+ * Description: The event that triggers the message or link to the event definition.
+ * Type: token
+ * Path: MessageDefinition.event
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam EVENT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EVENT); + + /** + * Search parameter: focus + *

+ * Description: A resource that is a permitted focus of the message
+ * Type: token
+ * Path: MessageDefinition.focus.code
+ *

+ */ + @SearchParamDefinition(name="focus", path="MessageDefinition.focus.code", description="A resource that is a permitted focus of the message", type="token" ) + public static final String SP_FOCUS = "focus"; + /** + * Fluent Client search parameter constant for focus + *

+ * Description: A resource that is a permitted focus of the message
+ * Type: token
+ * Path: MessageDefinition.focus.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam FOCUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FOCUS); + + /** + * Search parameter: parent + *

+ * Description: A resource that is the parent of the definition
+ * Type: reference
+ * Path: MessageDefinition.parent
+ *

+ */ + @SearchParamDefinition(name="parent", path="MessageDefinition.parent", description="A resource that is the parent of the definition", type="reference", target={ActivityDefinition.class, PlanDefinition.class } ) + public static final String SP_PARENT = "parent"; + /** + * Fluent Client search parameter constant for parent + *

+ * Description: A resource that is the parent of the definition
+ * Type: reference
+ * Path: MessageDefinition.parent
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PARENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "MessageDefinition:parent". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PARENT = new ca.uhn.fhir.model.api.Include("MessageDefinition:parent").toLocked(); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageHeader.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageHeader.java index c096744fa..8538ef40f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageHeader.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MessageHeader.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -89,7 +89,6 @@ public class MessageHeader extends DomainResource { case OK: return "ok"; case TRANSIENTERROR: return "transient-error"; case FATALERROR: return "fatal-error"; - case NULL: return null; default: return "?"; } } @@ -98,7 +97,6 @@ public class MessageHeader extends DomainResource { case OK: return "http://hl7.org/fhir/response-code"; case TRANSIENTERROR: return "http://hl7.org/fhir/response-code"; case FATALERROR: return "http://hl7.org/fhir/response-code"; - case NULL: return null; default: return "?"; } } @@ -107,7 +105,6 @@ public class MessageHeader extends DomainResource { case OK: return "The message was accepted and processed without error."; case TRANSIENTERROR: return "Some internal unexpected error occurred - wait and try again. Note - this is usually used for things like database unavailable, which may be expected to resolve, though human intervention may be required."; case FATALERROR: return "The message was rejected because of a problem with the content. There is no point in re-sending without change. The response narrative SHALL describe the issue."; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class MessageHeader extends DomainResource { case OK: return "OK"; case TRANSIENTERROR: return "Transient Error"; case FATALERROR: return "Fatal Error"; - case NULL: return null; default: return "?"; } } @@ -2060,26 +2056,6 @@ public class MessageHeader extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); - /** - * Search parameter: destination-uri - *

- * Description: Actual destination address or id
- * Type: uri
- * Path: MessageHeader.destination.endpoint
- *

- */ - @SearchParamDefinition(name="destination-uri", path="MessageHeader.destination.endpoint", description="Actual destination address or id", type="uri" ) - public static final String SP_DESTINATION_URI = "destination-uri"; - /** - * Fluent Client search parameter constant for destination-uri - *

- * Description: Actual destination address or id
- * Type: uri
- * Path: MessageHeader.destination.endpoint
- *

- */ - public static final ca.uhn.fhir.rest.gclient.UriClientParam DESTINATION_URI = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_DESTINATION_URI); - /** * Search parameter: destination *

@@ -2100,6 +2076,26 @@ public class MessageHeader extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam DESTINATION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESTINATION); + /** + * Search parameter: destination-uri + *

+ * Description: Actual destination address or id
+ * Type: uri
+ * Path: MessageHeader.destination.endpoint
+ *

+ */ + @SearchParamDefinition(name="destination-uri", path="MessageHeader.destination.endpoint", description="Actual destination address or id", type="uri" ) + public static final String SP_DESTINATION_URI = "destination-uri"; + /** + * Fluent Client search parameter constant for destination-uri + *

+ * Description: Actual destination address or id
+ * Type: uri
+ * Path: MessageHeader.destination.endpoint
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.UriClientParam DESTINATION_URI = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_DESTINATION_URI); + /** * Search parameter: enterer *

@@ -2154,7 +2150,7 @@ public class MessageHeader extends DomainResource { * Path: MessageHeader.focus
*

*/ - @SearchParamDefinition(name="focus", path="MessageHeader.focus", description="The actual content of the message", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="focus", path="MessageHeader.focus", description="The actual content of the message", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_FOCUS = "focus"; /** * Fluent Client search parameter constant for focus @@ -2270,26 +2266,6 @@ public class MessageHeader extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SENDER = new ca.uhn.fhir.model.api.Include("MessageHeader:sender").toLocked(); - /** - * Search parameter: source-uri - *

- * Description: Actual message source address or id
- * Type: uri
- * Path: MessageHeader.source.endpoint
- *

- */ - @SearchParamDefinition(name="source-uri", path="MessageHeader.source.endpoint", description="Actual message source address or id", type="uri" ) - public static final String SP_SOURCE_URI = "source-uri"; - /** - * Fluent Client search parameter constant for source-uri - *

- * Description: Actual message source address or id
- * Type: uri
- * Path: MessageHeader.source.endpoint
- *

- */ - public static final ca.uhn.fhir.rest.gclient.UriClientParam SOURCE_URI = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_SOURCE_URI); - /** * Search parameter: source *

@@ -2310,6 +2286,26 @@ public class MessageHeader extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam SOURCE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_SOURCE); + /** + * Search parameter: source-uri + *

+ * Description: Actual message source address or id
+ * Type: uri
+ * Path: MessageHeader.source.endpoint
+ *

+ */ + @SearchParamDefinition(name="source-uri", path="MessageHeader.source.endpoint", description="Actual message source address or id", type="uri" ) + public static final String SP_SOURCE_URI = "source-uri"; + /** + * Fluent Client search parameter constant for source-uri + *

+ * Description: Actual message source address or id
+ * Type: uri
+ * Path: MessageHeader.source.endpoint
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.UriClientParam SOURCE_URI = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_SOURCE_URI); + /** * Search parameter: target *

diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Meta.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Meta.java index f575c20e4..bc5607408 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Meta.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Meta.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -619,7 +619,7 @@ public class Meta extends DataType implements IBaseMetaType { , profile, security, tag); } -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): /** * Convenience method which adds a tag * diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MetadataResource.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MetadataResource.java index c1b59ddb3..1bf982f34 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MetadataResource.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MetadataResource.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -128,6 +128,138 @@ public abstract class MetadataResource extends CanonicalResource { */ public abstract MetadataResource setEffectivePeriod(Period value); + /** + * How many allowed for this property by the implementation + */ + public int getTopicMax() { + return Integer.MAX_VALUE; + } + /** + * @return {@link #topic} (Descriptive topics related to the content of the library. Topics provide a high-level categorization of the library that can be useful for filtering and searching.) + */ + public abstract List getTopic(); + /** + * @return Returns a reference to this for easy method chaining + */ + public abstract MetadataResource setTopic(List theTopic); + public abstract boolean hasTopic(); + + public abstract CodeableConcept addTopic(); //3 + public abstract MetadataResource addTopic(CodeableConcept t); //3 + /** + * @return The first repetition of repeating field {@link #topic}, creating it if it does not already exist {1} + */ + public abstract CodeableConcept getTopicFirstRep(); + /** + * How many allowed for this property by the implementation + */ + public int getAuthorMax() { + return Integer.MAX_VALUE; + } + /** + * @return {@link #author} (An individiual or organization primarily involved in the creation and maintenance of the metadata resource.) + */ + public abstract List getAuthor(); + /** + * @return Returns a reference to this for easy method chaining + */ + public abstract MetadataResource setAuthor(List theAuthor); + public abstract boolean hasAuthor(); + + public abstract ContactDetail addAuthor(); //3 + public abstract MetadataResource addAuthor(ContactDetail t); //3 + /** + * @return The first repetition of repeating field {@link #author}, creating it if it does not already exist {1} + */ + public abstract ContactDetail getAuthorFirstRep(); + /** + * How many allowed for this property by the implementation + */ + public int getEditorMax() { + return Integer.MAX_VALUE; + } + /** + * @return {@link #editor} (An individual or organization primarily responsible for internal coherence of the metadata resource.) + */ + public abstract List getEditor(); + /** + * @return Returns a reference to this for easy method chaining + */ + public abstract MetadataResource setEditor(List theEditor); + public abstract boolean hasEditor(); + + public abstract ContactDetail addEditor(); //3 + public abstract MetadataResource addEditor(ContactDetail t); //3 + /** + * @return The first repetition of repeating field {@link #editor}, creating it if it does not already exist {1} + */ + public abstract ContactDetail getEditorFirstRep(); + /** + * How many allowed for this property by the implementation + */ + public int getReviewerMax() { + return Integer.MAX_VALUE; + } + /** + * @return {@link #reviewer} (An individual or organization primarily responsible for review of some aspect of the metadata resource.) + */ + public abstract List getReviewer(); + /** + * @return Returns a reference to this for easy method chaining + */ + public abstract MetadataResource setReviewer(List theReviewer); + public abstract boolean hasReviewer(); + + public abstract ContactDetail addReviewer(); //3 + public abstract MetadataResource addReviewer(ContactDetail t); //3 + /** + * @return The first repetition of repeating field {@link #reviewer}, creating it if it does not already exist {1} + */ + public abstract ContactDetail getReviewerFirstRep(); + /** + * How many allowed for this property by the implementation + */ + public int getEndorserMax() { + return Integer.MAX_VALUE; + } + /** + * @return {@link #endorser} (An individual or organization responsible for officially endorsing the metadata resource for use in some setting.) + */ + public abstract List getEndorser(); + /** + * @return Returns a reference to this for easy method chaining + */ + public abstract MetadataResource setEndorser(List theEndorser); + public abstract boolean hasEndorser(); + + public abstract ContactDetail addEndorser(); //3 + public abstract MetadataResource addEndorser(ContactDetail t); //3 + /** + * @return The first repetition of repeating field {@link #endorser}, creating it if it does not already exist {1} + */ + public abstract ContactDetail getEndorserFirstRep(); + /** + * How many allowed for this property by the implementation + */ + public int getRelatedArtifactMax() { + return Integer.MAX_VALUE; + } + /** + * @return {@link #relatedArtifact} (Related artifacts such as additional documentation, justification, dependencies, bibliographic references, and predecessor and successor artifacts.) + */ + public abstract List getRelatedArtifact(); + /** + * @return Returns a reference to this for easy method chaining + */ + public abstract MetadataResource setRelatedArtifact(List theRelatedArtifact); + public abstract boolean hasRelatedArtifact(); + + public abstract RelatedArtifact addRelatedArtifact(); //3 + public abstract MetadataResource addRelatedArtifact(RelatedArtifact t); //3 + /** + * @return The first repetition of repeating field {@link #relatedArtifact}, creating it if it does not already exist {1} + */ + public abstract RelatedArtifact getRelatedArtifactFirstRep(); protected void listChildren(List children) { super.listChildren(children); } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MolecularSequence.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MolecularSequence.java index 2ae55093a..9b912aabc 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MolecularSequence.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/MolecularSequence.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -83,7 +83,6 @@ public class MolecularSequence extends DomainResource { switch (this) { case SENSE: return "sense"; case ANTISENSE: return "antisense"; - case NULL: return null; default: return "?"; } } @@ -91,7 +90,6 @@ public class MolecularSequence extends DomainResource { switch (this) { case SENSE: return "http://hl7.org/fhir/orientation-type"; case ANTISENSE: return "http://hl7.org/fhir/orientation-type"; - case NULL: return null; default: return "?"; } } @@ -99,7 +97,6 @@ public class MolecularSequence extends DomainResource { switch (this) { case SENSE: return "Sense orientation of reference sequence."; case ANTISENSE: return "Antisense orientation of reference sequence."; - case NULL: return null; default: return "?"; } } @@ -107,7 +104,6 @@ public class MolecularSequence extends DomainResource { switch (this) { case SENSE: return "Sense orientation of referenceSeq"; case ANTISENSE: return "Antisense orientation of referenceSeq"; - case NULL: return null; default: return "?"; } } @@ -186,7 +182,6 @@ public class MolecularSequence extends DomainResource { case INDEL: return "indel"; case SNP: return "snp"; case UNKNOWN: return "unknown"; - case NULL: return null; default: return "?"; } } @@ -195,7 +190,6 @@ public class MolecularSequence extends DomainResource { case INDEL: return "http://hl7.org/fhir/quality-type"; case SNP: return "http://hl7.org/fhir/quality-type"; case UNKNOWN: return "http://hl7.org/fhir/quality-type"; - case NULL: return null; default: return "?"; } } @@ -204,7 +198,6 @@ public class MolecularSequence extends DomainResource { case INDEL: return "INDEL Comparison."; case SNP: return "SNP Comparison."; case UNKNOWN: return "UNKNOWN Comparison."; - case NULL: return null; default: return "?"; } } @@ -213,7 +206,6 @@ public class MolecularSequence extends DomainResource { case INDEL: return "INDEL Comparison"; case SNP: return "SNP Comparison"; case UNKNOWN: return "UNKNOWN Comparison"; - case NULL: return null; default: return "?"; } } @@ -312,7 +304,6 @@ public class MolecularSequence extends DomainResource { case LOGIN: return "login"; case OAUTH: return "oauth"; case OTHER: return "other"; - case NULL: return null; default: return "?"; } } @@ -323,7 +314,6 @@ public class MolecularSequence extends DomainResource { case LOGIN: return "http://hl7.org/fhir/repository-type"; case OAUTH: return "http://hl7.org/fhir/repository-type"; case OTHER: return "http://hl7.org/fhir/repository-type"; - case NULL: return null; default: return "?"; } } @@ -334,7 +324,6 @@ public class MolecularSequence extends DomainResource { case LOGIN: return "When logged into the website, the resource can be seen."; case OAUTH: return "When logged in and follow the API in the website related with URL, the resource can be seen."; case OTHER: return "Some other complicated or particular way to get resource from URL."; - case NULL: return null; default: return "?"; } } @@ -345,7 +334,6 @@ public class MolecularSequence extends DomainResource { case LOGIN: return "Result cannot be access unless an account is logged in"; case OAUTH: return "Result need to be fetched with API and need LOGIN( or cookies are required when visiting the link of resource)"; case OTHER: return "Some other complicated or particular way to get resource from URL."; - case NULL: return null; default: return "?"; } } @@ -442,7 +430,6 @@ public class MolecularSequence extends DomainResource { case AA: return "aa"; case DNA: return "dna"; case RNA: return "rna"; - case NULL: return null; default: return "?"; } } @@ -451,7 +438,6 @@ public class MolecularSequence extends DomainResource { case AA: return "http://hl7.org/fhir/sequence-type"; case DNA: return "http://hl7.org/fhir/sequence-type"; case RNA: return "http://hl7.org/fhir/sequence-type"; - case NULL: return null; default: return "?"; } } @@ -460,7 +446,6 @@ public class MolecularSequence extends DomainResource { case AA: return "Amino acid sequence."; case DNA: return "DNA Sequence."; case RNA: return "RNA Sequence."; - case NULL: return null; default: return "?"; } } @@ -469,7 +454,6 @@ public class MolecularSequence extends DomainResource { case AA: return "AA Sequence"; case DNA: return "DNA Sequence"; case RNA: return "RNA Sequence"; - case NULL: return null; default: return "?"; } } @@ -547,7 +531,6 @@ public class MolecularSequence extends DomainResource { switch (this) { case WATSON: return "watson"; case CRICK: return "crick"; - case NULL: return null; default: return "?"; } } @@ -555,7 +538,6 @@ public class MolecularSequence extends DomainResource { switch (this) { case WATSON: return "http://hl7.org/fhir/strand-type"; case CRICK: return "http://hl7.org/fhir/strand-type"; - case NULL: return null; default: return "?"; } } @@ -563,7 +545,6 @@ public class MolecularSequence extends DomainResource { switch (this) { case WATSON: return "Watson strand of reference sequence."; case CRICK: return "Crick strand of reference sequence."; - case NULL: return null; default: return "?"; } } @@ -571,7 +552,6 @@ public class MolecularSequence extends DomainResource { switch (this) { case WATSON: return "Watson strand of referenceSeq"; case CRICK: return "Crick strand of referenceSeq"; - case NULL: return null; default: return "?"; } } @@ -6280,46 +6260,6 @@ public class MolecularSequence extends DomainResource { return ResourceType.MolecularSequence; } - /** - * Search parameter: chromosome-variant-coordinate - *

- * Description: Search parameter by chromosome and variant coordinate. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `chromosome-variant-coordinate=1$lt345$gt123`, this means it will search for the MolecularSequence resource with variants on chromosome 1 and with position >123 and <345, where in 1-based system resource, all strings within region 1:124-344 will be revealed, while in 0-based system resource, all strings within region 1:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
- * Type: composite
- * Path: MolecularSequence.variant
- *

- */ - @SearchParamDefinition(name="chromosome-variant-coordinate", path="MolecularSequence.variant", description="Search parameter by chromosome and variant coordinate. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `chromosome-variant-coordinate=1$lt345$gt123`, this means it will search for the MolecularSequence resource with variants on chromosome 1 and with position >123 and <345, where in 1-based system resource, all strings within region 1:124-344 will be revealed, while in 0-based system resource, all strings within region 1:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.", type="composite", compositeOf={"chromosome", "variant-start"} ) - public static final String SP_CHROMOSOME_VARIANT_COORDINATE = "chromosome-variant-coordinate"; - /** - * Fluent Client search parameter constant for chromosome-variant-coordinate - *

- * Description: Search parameter by chromosome and variant coordinate. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `chromosome-variant-coordinate=1$lt345$gt123`, this means it will search for the MolecularSequence resource with variants on chromosome 1 and with position >123 and <345, where in 1-based system resource, all strings within region 1:124-344 will be revealed, while in 0-based system resource, all strings within region 1:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
- * Type: composite
- * Path: MolecularSequence.variant
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CHROMOSOME_VARIANT_COORDINATE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CHROMOSOME_VARIANT_COORDINATE); - - /** - * Search parameter: chromosome-window-coordinate - *

- * Description: Search parameter by chromosome and window. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `chromosome-window-coordinate=1$lt345$gt123`, this means it will search for the MolecularSequence resource with a window on chromosome 1 and with position >123 and <345, where in 1-based system resource, all strings within region 1:124-344 will be revealed, while in 0-based system resource, all strings within region 1:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
- * Type: composite
- * Path: MolecularSequence.referenceSeq
- *

- */ - @SearchParamDefinition(name="chromosome-window-coordinate", path="MolecularSequence.referenceSeq", description="Search parameter by chromosome and window. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `chromosome-window-coordinate=1$lt345$gt123`, this means it will search for the MolecularSequence resource with a window on chromosome 1 and with position >123 and <345, where in 1-based system resource, all strings within region 1:124-344 will be revealed, while in 0-based system resource, all strings within region 1:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.", type="composite", compositeOf={"chromosome", "window-start"} ) - public static final String SP_CHROMOSOME_WINDOW_COORDINATE = "chromosome-window-coordinate"; - /** - * Fluent Client search parameter constant for chromosome-window-coordinate - *

- * Description: Search parameter by chromosome and window. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `chromosome-window-coordinate=1$lt345$gt123`, this means it will search for the MolecularSequence resource with a window on chromosome 1 and with position >123 and <345, where in 1-based system resource, all strings within region 1:124-344 will be revealed, while in 0-based system resource, all strings within region 1:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
- * Type: composite
- * Path: MolecularSequence.referenceSeq
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CHROMOSOME_WINDOW_COORDINATE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CHROMOSOME_WINDOW_COORDINATE); - /** * Search parameter: chromosome *

@@ -6386,46 +6326,6 @@ public class MolecularSequence extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("MolecularSequence:patient").toLocked(); - /** - * Search parameter: referenceseqid-variant-coordinate - *

- * Description: Search parameter by reference sequence and variant coordinate. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `referenceSeqId-variant-coordinate=NC_000001.11$lt345$gt123`, this means it will search for the MolecularSequence resource with variants on NC_000001.11 and with position >123 and <345, where in 1-based system resource, all strings within region NC_000001.11:124-344 will be revealed, while in 0-based system resource, all strings within region NC_000001.11:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
- * Type: composite
- * Path: MolecularSequence.variant
- *

- */ - @SearchParamDefinition(name="referenceseqid-variant-coordinate", path="MolecularSequence.variant", description="Search parameter by reference sequence and variant coordinate. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `referenceSeqId-variant-coordinate=NC_000001.11$lt345$gt123`, this means it will search for the MolecularSequence resource with variants on NC_000001.11 and with position >123 and <345, where in 1-based system resource, all strings within region NC_000001.11:124-344 will be revealed, while in 0-based system resource, all strings within region NC_000001.11:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.", type="composite", compositeOf={"referenceseqid", "variant-start"} ) - public static final String SP_REFERENCESEQID_VARIANT_COORDINATE = "referenceseqid-variant-coordinate"; - /** - * Fluent Client search parameter constant for referenceseqid-variant-coordinate - *

- * Description: Search parameter by reference sequence and variant coordinate. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `referenceSeqId-variant-coordinate=NC_000001.11$lt345$gt123`, this means it will search for the MolecularSequence resource with variants on NC_000001.11 and with position >123 and <345, where in 1-based system resource, all strings within region NC_000001.11:124-344 will be revealed, while in 0-based system resource, all strings within region NC_000001.11:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
- * Type: composite
- * Path: MolecularSequence.variant
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam REFERENCESEQID_VARIANT_COORDINATE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_REFERENCESEQID_VARIANT_COORDINATE); - - /** - * Search parameter: referenceseqid-window-coordinate - *

- * Description: Search parameter by reference sequence and window. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `referenceSeqId-window-coordinate=NC_000001.11$lt345$gt123`, this means it will search for the MolecularSequence resource with a window on NC_000001.11 and with position >123 and <345, where in 1-based system resource, all strings within region NC_000001.11:124-344 will be revealed, while in 0-based system resource, all strings within region NC_000001.11:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
- * Type: composite
- * Path: MolecularSequence.referenceSeq
- *

- */ - @SearchParamDefinition(name="referenceseqid-window-coordinate", path="MolecularSequence.referenceSeq", description="Search parameter by reference sequence and window. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `referenceSeqId-window-coordinate=NC_000001.11$lt345$gt123`, this means it will search for the MolecularSequence resource with a window on NC_000001.11 and with position >123 and <345, where in 1-based system resource, all strings within region NC_000001.11:124-344 will be revealed, while in 0-based system resource, all strings within region NC_000001.11:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.", type="composite", compositeOf={"referenceseqid", "window-start"} ) - public static final String SP_REFERENCESEQID_WINDOW_COORDINATE = "referenceseqid-window-coordinate"; - /** - * Fluent Client search parameter constant for referenceseqid-window-coordinate - *

- * Description: Search parameter by reference sequence and window. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `referenceSeqId-window-coordinate=NC_000001.11$lt345$gt123`, this means it will search for the MolecularSequence resource with a window on NC_000001.11 and with position >123 and <345, where in 1-based system resource, all strings within region NC_000001.11:124-344 will be revealed, while in 0-based system resource, all strings within region NC_000001.11:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
- * Type: composite
- * Path: MolecularSequence.referenceSeq
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam REFERENCESEQID_WINDOW_COORDINATE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_REFERENCESEQID_WINDOW_COORDINATE); - /** * Search parameter: referenceseqid *

@@ -6546,6 +6446,86 @@ public class MolecularSequence extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.NumberClientParam WINDOW_START = new ca.uhn.fhir.rest.gclient.NumberClientParam(SP_WINDOW_START); + /** + * Search parameter: chromosome-variant-coordinate + *

+ * Description: Search parameter by chromosome and variant coordinate. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `chromosome-variant-coordinate=1$lt345$gt123`, this means it will search for the MolecularSequence resource with variants on chromosome 1 and with position >123 and <345, where in 1-based system resource, all strings within region 1:124-344 will be revealed, while in 0-based system resource, all strings within region 1:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
+ * Type: composite
+ * Path: MolecularSequence.variant
+ *

+ */ + @SearchParamDefinition(name="chromosome-variant-coordinate", path="MolecularSequence.variant", description="Search parameter by chromosome and variant coordinate. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `chromosome-variant-coordinate=1$lt345$gt123`, this means it will search for the MolecularSequence resource with variants on chromosome 1 and with position >123 and <345, where in 1-based system resource, all strings within region 1:124-344 will be revealed, while in 0-based system resource, all strings within region 1:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.", type="composite", compositeOf={"chromosome", "variant-start"} ) + public static final String SP_CHROMOSOME_VARIANT_COORDINATE = "chromosome-variant-coordinate"; + /** + * Fluent Client search parameter constant for chromosome-variant-coordinate + *

+ * Description: Search parameter by chromosome and variant coordinate. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `chromosome-variant-coordinate=1$lt345$gt123`, this means it will search for the MolecularSequence resource with variants on chromosome 1 and with position >123 and <345, where in 1-based system resource, all strings within region 1:124-344 will be revealed, while in 0-based system resource, all strings within region 1:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
+ * Type: composite
+ * Path: MolecularSequence.variant
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CHROMOSOME_VARIANT_COORDINATE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CHROMOSOME_VARIANT_COORDINATE); + + /** + * Search parameter: chromosome-window-coordinate + *

+ * Description: Search parameter by chromosome and window. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `chromosome-window-coordinate=1$lt345$gt123`, this means it will search for the MolecularSequence resource with a window on chromosome 1 and with position >123 and <345, where in 1-based system resource, all strings within region 1:124-344 will be revealed, while in 0-based system resource, all strings within region 1:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
+ * Type: composite
+ * Path: MolecularSequence.referenceSeq
+ *

+ */ + @SearchParamDefinition(name="chromosome-window-coordinate", path="MolecularSequence.referenceSeq", description="Search parameter by chromosome and window. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `chromosome-window-coordinate=1$lt345$gt123`, this means it will search for the MolecularSequence resource with a window on chromosome 1 and with position >123 and <345, where in 1-based system resource, all strings within region 1:124-344 will be revealed, while in 0-based system resource, all strings within region 1:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.", type="composite", compositeOf={"chromosome", "window-start"} ) + public static final String SP_CHROMOSOME_WINDOW_COORDINATE = "chromosome-window-coordinate"; + /** + * Fluent Client search parameter constant for chromosome-window-coordinate + *

+ * Description: Search parameter by chromosome and window. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `chromosome-window-coordinate=1$lt345$gt123`, this means it will search for the MolecularSequence resource with a window on chromosome 1 and with position >123 and <345, where in 1-based system resource, all strings within region 1:124-344 will be revealed, while in 0-based system resource, all strings within region 1:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
+ * Type: composite
+ * Path: MolecularSequence.referenceSeq
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CHROMOSOME_WINDOW_COORDINATE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CHROMOSOME_WINDOW_COORDINATE); + + /** + * Search parameter: referenceseqid-variant-coordinate + *

+ * Description: Search parameter by reference sequence and variant coordinate. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `referenceSeqId-variant-coordinate=NC_000001.11$lt345$gt123`, this means it will search for the MolecularSequence resource with variants on NC_000001.11 and with position >123 and <345, where in 1-based system resource, all strings within region NC_000001.11:124-344 will be revealed, while in 0-based system resource, all strings within region NC_000001.11:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
+ * Type: composite
+ * Path: MolecularSequence.variant
+ *

+ */ + @SearchParamDefinition(name="referenceseqid-variant-coordinate", path="MolecularSequence.variant", description="Search parameter by reference sequence and variant coordinate. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `referenceSeqId-variant-coordinate=NC_000001.11$lt345$gt123`, this means it will search for the MolecularSequence resource with variants on NC_000001.11 and with position >123 and <345, where in 1-based system resource, all strings within region NC_000001.11:124-344 will be revealed, while in 0-based system resource, all strings within region NC_000001.11:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.", type="composite", compositeOf={"referenceseqid", "variant-start"} ) + public static final String SP_REFERENCESEQID_VARIANT_COORDINATE = "referenceseqid-variant-coordinate"; + /** + * Fluent Client search parameter constant for referenceseqid-variant-coordinate + *

+ * Description: Search parameter by reference sequence and variant coordinate. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `referenceSeqId-variant-coordinate=NC_000001.11$lt345$gt123`, this means it will search for the MolecularSequence resource with variants on NC_000001.11 and with position >123 and <345, where in 1-based system resource, all strings within region NC_000001.11:124-344 will be revealed, while in 0-based system resource, all strings within region NC_000001.11:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
+ * Type: composite
+ * Path: MolecularSequence.variant
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam REFERENCESEQID_VARIANT_COORDINATE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_REFERENCESEQID_VARIANT_COORDINATE); + + /** + * Search parameter: referenceseqid-window-coordinate + *

+ * Description: Search parameter by reference sequence and window. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `referenceSeqId-window-coordinate=NC_000001.11$lt345$gt123`, this means it will search for the MolecularSequence resource with a window on NC_000001.11 and with position >123 and <345, where in 1-based system resource, all strings within region NC_000001.11:124-344 will be revealed, while in 0-based system resource, all strings within region NC_000001.11:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
+ * Type: composite
+ * Path: MolecularSequence.referenceSeq
+ *

+ */ + @SearchParamDefinition(name="referenceseqid-window-coordinate", path="MolecularSequence.referenceSeq", description="Search parameter by reference sequence and window. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `referenceSeqId-window-coordinate=NC_000001.11$lt345$gt123`, this means it will search for the MolecularSequence resource with a window on NC_000001.11 and with position >123 and <345, where in 1-based system resource, all strings within region NC_000001.11:124-344 will be revealed, while in 0-based system resource, all strings within region NC_000001.11:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.", type="composite", compositeOf={"referenceseqid", "window-start"} ) + public static final String SP_REFERENCESEQID_WINDOW_COORDINATE = "referenceseqid-window-coordinate"; + /** + * Fluent Client search parameter constant for referenceseqid-window-coordinate + *

+ * Description: Search parameter by reference sequence and window. This will refer to part of a locus or part of a gene where search region will be represented in 1-based system. Since the coordinateSystem can either be 0-based or 1-based, this search query will include the result of both coordinateSystem that contains the equivalent segment of the gene or whole genome sequence. For example, a search for sequence can be represented as `referenceSeqId-window-coordinate=NC_000001.11$lt345$gt123`, this means it will search for the MolecularSequence resource with a window on NC_000001.11 and with position >123 and <345, where in 1-based system resource, all strings within region NC_000001.11:124-344 will be revealed, while in 0-based system resource, all strings within region NC_000001.11:123-344 will be revealed. You may want to check detail about 0-based v.s. 1-based above.
+ * Type: composite
+ * Path: MolecularSequence.referenceSeq
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam REFERENCESEQID_WINDOW_COORDINATE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_REFERENCESEQID_WINDOW_COORDINATE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Money.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Money.java index eac2a78a1..051fcfd25 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Money.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Money.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NamingSystem.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NamingSystem.java index b5f93d9fc..6b0d14e5d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NamingSystem.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NamingSystem.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -66,6 +66,10 @@ public class NamingSystem extends CanonicalResource { * A uniform resource identifier (ideally a URL - uniform resource locator); e.g. http://unitsofmeasure.org. */ URI, + /** + * A short string published by HL7 for use in the V2 family of standsrds to idenfify a code system in the V12 coded data types CWE, CNE, and CF. The code values are also published by HL7 at http://www.hl7.org/Special/committees/vocab/table_0396/index.cfm + */ + V2CSMNEMONIC, /** * Some other type of unique identifier; e.g. HL7-assigned reserved string such as LN for LOINC. */ @@ -83,6 +87,8 @@ public class NamingSystem extends CanonicalResource { return UUID; if ("uri".equals(codeString)) return URI; + if ("v2csmnemonic".equals(codeString)) + return V2CSMNEMONIC; if ("other".equals(codeString)) return OTHER; if (Configuration.isAcceptInvalidEnums()) @@ -95,8 +101,8 @@ public class NamingSystem extends CanonicalResource { case OID: return "oid"; case UUID: return "uuid"; case URI: return "uri"; + case V2CSMNEMONIC: return "v2csmnemonic"; case OTHER: return "other"; - case NULL: return null; default: return "?"; } } @@ -105,8 +111,8 @@ public class NamingSystem extends CanonicalResource { case OID: return "http://hl7.org/fhir/namingsystem-identifier-type"; case UUID: return "http://hl7.org/fhir/namingsystem-identifier-type"; case URI: return "http://hl7.org/fhir/namingsystem-identifier-type"; + case V2CSMNEMONIC: return "http://hl7.org/fhir/namingsystem-identifier-type"; case OTHER: return "http://hl7.org/fhir/namingsystem-identifier-type"; - case NULL: return null; default: return "?"; } } @@ -115,8 +121,8 @@ public class NamingSystem extends CanonicalResource { case OID: return "An ISO object identifier; e.g. 1.2.3.4.5."; case UUID: return "A universally unique identifier of the form a5afddf4-e880-459b-876e-e4591b0acc11."; case URI: return "A uniform resource identifier (ideally a URL - uniform resource locator); e.g. http://unitsofmeasure.org."; + case V2CSMNEMONIC: return "A short string published by HL7 for use in the V2 family of standsrds to idenfify a code system in the V12 coded data types CWE, CNE, and CF. The code values are also published by HL7 at http://www.hl7.org/Special/committees/vocab/table_0396/index.cfm"; case OTHER: return "Some other type of unique identifier; e.g. HL7-assigned reserved string such as LN for LOINC."; - case NULL: return null; default: return "?"; } } @@ -125,8 +131,8 @@ public class NamingSystem extends CanonicalResource { case OID: return "OID"; case UUID: return "UUID"; case URI: return "URI"; + case V2CSMNEMONIC: return "V2CSMNemonic"; case OTHER: return "Other"; - case NULL: return null; default: return "?"; } } @@ -143,6 +149,8 @@ public class NamingSystem extends CanonicalResource { return NamingSystemIdentifierType.UUID; if ("uri".equals(codeString)) return NamingSystemIdentifierType.URI; + if ("v2csmnemonic".equals(codeString)) + return NamingSystemIdentifierType.V2CSMNEMONIC; if ("other".equals(codeString)) return NamingSystemIdentifierType.OTHER; throw new IllegalArgumentException("Unknown NamingSystemIdentifierType code '"+codeString+"'"); @@ -161,6 +169,8 @@ public class NamingSystem extends CanonicalResource { return new Enumeration(this, NamingSystemIdentifierType.UUID); if ("uri".equals(codeString)) return new Enumeration(this, NamingSystemIdentifierType.URI); + if ("v2csmnemonic".equals(codeString)) + return new Enumeration(this, NamingSystemIdentifierType.V2CSMNEMONIC); if ("other".equals(codeString)) return new Enumeration(this, NamingSystemIdentifierType.OTHER); throw new FHIRException("Unknown NamingSystemIdentifierType code '"+codeString+"'"); @@ -172,6 +182,8 @@ public class NamingSystem extends CanonicalResource { return "uuid"; if (code == NamingSystemIdentifierType.URI) return "uri"; + if (code == NamingSystemIdentifierType.V2CSMNEMONIC) + return "v2csmnemonic"; if (code == NamingSystemIdentifierType.OTHER) return "other"; return "?"; @@ -217,7 +229,6 @@ public class NamingSystem extends CanonicalResource { case CODESYSTEM: return "codesystem"; case IDENTIFIER: return "identifier"; case ROOT: return "root"; - case NULL: return null; default: return "?"; } } @@ -226,7 +237,6 @@ public class NamingSystem extends CanonicalResource { case CODESYSTEM: return "http://hl7.org/fhir/namingsystem-type"; case IDENTIFIER: return "http://hl7.org/fhir/namingsystem-type"; case ROOT: return "http://hl7.org/fhir/namingsystem-type"; - case NULL: return null; default: return "?"; } } @@ -235,7 +245,6 @@ public class NamingSystem extends CanonicalResource { case CODESYSTEM: return "The naming system is used to define concepts and symbols to represent those concepts; e.g. UCUM, LOINC, NDC code, local lab codes, etc."; case IDENTIFIER: return "The naming system is used to manage identifiers (e.g. license numbers, order numbers, etc.)."; case ROOT: return "The naming system is used as the root for other identifiers and naming systems."; - case NULL: return null; default: return "?"; } } @@ -244,7 +253,6 @@ public class NamingSystem extends CanonicalResource { case CODESYSTEM: return "Code System"; case IDENTIFIER: return "Identifier"; case ROOT: return "Root"; - case NULL: return null; default: return "?"; } } @@ -299,7 +307,7 @@ public class NamingSystem extends CanonicalResource { * Identifies the unique identifier scheme used for this particular identifier. */ @Child(name = "type", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=true) - @Description(shortDefinition="oid | uuid | uri | other", formalDefinition="Identifies the unique identifier scheme used for this particular identifier." ) + @Description(shortDefinition="oid | uuid | uri | v2csmnemonic | other", formalDefinition="Identifies the unique identifier scheme used for this particular identifier." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/namingsystem-identifier-type") protected Enumeration type; @@ -331,7 +339,14 @@ public class NamingSystem extends CanonicalResource { @Description(shortDefinition="When is identifier valid?", formalDefinition="Identifies the period of time over which this identifier is considered appropriate to refer to the naming system. Outside of this window, the identifier might be non-deterministic." ) protected Period period; - private static final long serialVersionUID = -1458889328L; + /** + * Indicates whether this identifier ie endorsed by the official owner of the associated naming system. + */ + @Child(name = "authoritative", type = {BooleanType.class}, order=6, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Whether the identifier is authoritative", formalDefinition="Indicates whether this identifier ie endorsed by the official owner of the associated naming system." ) + protected BooleanType authoritative; + + private static final long serialVersionUID = -166953751L; /** * Constructor @@ -557,6 +572,51 @@ public class NamingSystem extends CanonicalResource { return this; } + /** + * @return {@link #authoritative} (Indicates whether this identifier ie endorsed by the official owner of the associated naming system.). This is the underlying object with id, value and extensions. The accessor "getAuthoritative" gives direct access to the value + */ + public BooleanType getAuthoritativeElement() { + if (this.authoritative == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create NamingSystemUniqueIdComponent.authoritative"); + else if (Configuration.doAutoCreate()) + this.authoritative = new BooleanType(); // bb + return this.authoritative; + } + + public boolean hasAuthoritativeElement() { + return this.authoritative != null && !this.authoritative.isEmpty(); + } + + public boolean hasAuthoritative() { + return this.authoritative != null && !this.authoritative.isEmpty(); + } + + /** + * @param value {@link #authoritative} (Indicates whether this identifier ie endorsed by the official owner of the associated naming system.). This is the underlying object with id, value and extensions. The accessor "getAuthoritative" gives direct access to the value + */ + public NamingSystemUniqueIdComponent setAuthoritativeElement(BooleanType value) { + this.authoritative = value; + return this; + } + + /** + * @return Indicates whether this identifier ie endorsed by the official owner of the associated naming system. + */ + public boolean getAuthoritative() { + return this.authoritative == null || this.authoritative.isEmpty() ? false : this.authoritative.getValue(); + } + + /** + * @param value Indicates whether this identifier ie endorsed by the official owner of the associated naming system. + */ + public NamingSystemUniqueIdComponent setAuthoritative(boolean value) { + if (this.authoritative == null) + this.authoritative = new BooleanType(); + this.authoritative.setValue(value); + return this; + } + protected void listChildren(List children) { super.listChildren(children); children.add(new Property("type", "code", "Identifies the unique identifier scheme used for this particular identifier.", 0, 1, type)); @@ -564,6 +624,7 @@ public class NamingSystem extends CanonicalResource { children.add(new Property("preferred", "boolean", "Indicates whether this identifier is the \"preferred\" identifier of this type.", 0, 1, preferred)); children.add(new Property("comment", "string", "Notes about the past or intended usage of this identifier.", 0, 1, comment)); children.add(new Property("period", "Period", "Identifies the period of time over which this identifier is considered appropriate to refer to the naming system. Outside of this window, the identifier might be non-deterministic.", 0, 1, period)); + children.add(new Property("authoritative", "boolean", "Indicates whether this identifier ie endorsed by the official owner of the associated naming system.", 0, 1, authoritative)); } @Override @@ -574,6 +635,7 @@ public class NamingSystem extends CanonicalResource { case -1294005119: /*preferred*/ return new Property("preferred", "boolean", "Indicates whether this identifier is the \"preferred\" identifier of this type.", 0, 1, preferred); case 950398559: /*comment*/ return new Property("comment", "string", "Notes about the past or intended usage of this identifier.", 0, 1, comment); case -991726143: /*period*/ return new Property("period", "Period", "Identifies the period of time over which this identifier is considered appropriate to refer to the naming system. Outside of this window, the identifier might be non-deterministic.", 0, 1, period); + case -1557344881: /*authoritative*/ return new Property("authoritative", "boolean", "Indicates whether this identifier ie endorsed by the official owner of the associated naming system.", 0, 1, authoritative); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -587,6 +649,7 @@ public class NamingSystem extends CanonicalResource { case -1294005119: /*preferred*/ return this.preferred == null ? new Base[0] : new Base[] {this.preferred}; // BooleanType case 950398559: /*comment*/ return this.comment == null ? new Base[0] : new Base[] {this.comment}; // StringType case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period + case -1557344881: /*authoritative*/ return this.authoritative == null ? new Base[0] : new Base[] {this.authoritative}; // BooleanType default: return super.getProperty(hash, name, checkValid); } @@ -611,6 +674,9 @@ public class NamingSystem extends CanonicalResource { case -991726143: // period this.period = TypeConvertor.castToPeriod(value); // Period return value; + case -1557344881: // authoritative + this.authoritative = TypeConvertor.castToBoolean(value); // BooleanType + return value; default: return super.setProperty(hash, name, value); } @@ -629,6 +695,8 @@ public class NamingSystem extends CanonicalResource { this.comment = TypeConvertor.castToString(value); // StringType } else if (name.equals("period")) { this.period = TypeConvertor.castToPeriod(value); // Period + } else if (name.equals("authoritative")) { + this.authoritative = TypeConvertor.castToBoolean(value); // BooleanType } else return super.setProperty(name, value); return value; @@ -642,6 +710,7 @@ public class NamingSystem extends CanonicalResource { case -1294005119: return getPreferredElement(); case 950398559: return getCommentElement(); case -991726143: return getPeriod(); + case -1557344881: return getAuthoritativeElement(); default: return super.makeProperty(hash, name); } @@ -655,6 +724,7 @@ public class NamingSystem extends CanonicalResource { case -1294005119: /*preferred*/ return new String[] {"boolean"}; case 950398559: /*comment*/ return new String[] {"string"}; case -991726143: /*period*/ return new String[] {"Period"}; + case -1557344881: /*authoritative*/ return new String[] {"boolean"}; default: return super.getTypesForProperty(hash, name); } @@ -678,6 +748,9 @@ public class NamingSystem extends CanonicalResource { this.period = new Period(); return this.period; } + else if (name.equals("authoritative")) { + throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.uniqueId.authoritative"); + } else return super.addChild(name); } @@ -695,6 +768,7 @@ public class NamingSystem extends CanonicalResource { dst.preferred = preferred == null ? null : preferred.copy(); dst.comment = comment == null ? null : comment.copy(); dst.period = period == null ? null : period.copy(); + dst.authoritative = authoritative == null ? null : authoritative.copy(); } @Override @@ -705,7 +779,8 @@ public class NamingSystem extends CanonicalResource { return false; NamingSystemUniqueIdComponent o = (NamingSystemUniqueIdComponent) other_; return compareDeep(type, o.type, true) && compareDeep(value, o.value, true) && compareDeep(preferred, o.preferred, true) - && compareDeep(comment, o.comment, true) && compareDeep(period, o.period, true); + && compareDeep(comment, o.comment, true) && compareDeep(period, o.period, true) && compareDeep(authoritative, o.authoritative, true) + ; } @Override @@ -716,12 +791,12 @@ public class NamingSystem extends CanonicalResource { return false; NamingSystemUniqueIdComponent o = (NamingSystemUniqueIdComponent) other_; return compareValues(type, o.type, true) && compareValues(value, o.value, true) && compareValues(preferred, o.preferred, true) - && compareValues(comment, o.comment, true); + && compareValues(comment, o.comment, true) && compareValues(authoritative, o.authoritative, true); } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, value, preferred, comment - , period); + , period, authoritative); } public String fhirType() { @@ -752,10 +827,17 @@ public class NamingSystem extends CanonicalResource { @Description(shortDefinition="Name for this naming system (computer friendly)", formalDefinition="A natural language name identifying the naming system. This name should be usable as an identifier for the module by machine processing applications such as code generation." ) protected StringType name; + /** + * A short, descriptive, user-friendly title for the naming system. + */ + @Child(name = "title", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Title for this naming system (human friendly)", formalDefinition="A short, descriptive, user-friendly title for the naming system." ) + protected StringType title; + /** * The status of this naming system. Enables tracking the life-cycle of the content. */ - @Child(name = "status", type = {CodeType.class}, order=3, min=1, max=1, modifier=true, summary=true) + @Child(name = "status", type = {CodeType.class}, order=4, min=1, max=1, modifier=true, summary=true) @Description(shortDefinition="draft | active | retired | unknown", formalDefinition="The status of this naming system. Enables tracking the life-cycle of the content." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/publication-status") protected Enumeration status; @@ -763,7 +845,7 @@ public class NamingSystem extends CanonicalResource { /** * Indicates the purpose for the naming system - what kinds of things does it make unique? */ - @Child(name = "kind", type = {CodeType.class}, order=4, min=1, max=1, modifier=false, summary=true) + @Child(name = "kind", type = {CodeType.class}, order=5, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="codesystem | identifier | root", formalDefinition="Indicates the purpose for the naming system - what kinds of things does it make unique?" ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/namingsystem-type") protected Enumeration kind; @@ -771,35 +853,35 @@ public class NamingSystem extends CanonicalResource { /** * The date (and optionally time) when the naming system was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the naming system changes. */ - @Child(name = "date", type = {DateTimeType.class}, order=5, min=1, max=1, modifier=false, summary=true) + @Child(name = "date", type = {DateTimeType.class}, order=6, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="Date last changed", formalDefinition="The date (and optionally time) when the naming system was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the naming system changes." ) protected DateTimeType date; /** * The name of the organization or individual that published the naming system. */ - @Child(name = "publisher", type = {StringType.class}, order=6, min=0, max=1, modifier=false, summary=true) + @Child(name = "publisher", type = {StringType.class}, order=7, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Name of the publisher (organization or individual)", formalDefinition="The name of the organization or individual that published the naming system." ) protected StringType publisher; /** * Contact details to assist a user in finding and communicating with the publisher. */ - @Child(name = "contact", type = {ContactDetail.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "contact", type = {ContactDetail.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Contact details for the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." ) protected List contact; /** * The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision. */ - @Child(name = "responsible", type = {StringType.class}, order=8, min=0, max=1, modifier=false, summary=false) + @Child(name = "responsible", type = {StringType.class}, order=9, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Who maintains system namespace?", formalDefinition="The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision." ) protected StringType responsible; /** * Categorizes a naming system for easier search by grouping related naming systems. */ - @Child(name = "type", type = {CodeableConcept.class}, order=9, min=0, max=1, modifier=false, summary=false) + @Child(name = "type", type = {CodeableConcept.class}, order=10, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="e.g. driver, provider, patient, bank etc.", formalDefinition="Categorizes a naming system for easier search by grouping related naming systems." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/identifier-type") protected CodeableConcept type; @@ -807,21 +889,21 @@ public class NamingSystem extends CanonicalResource { /** * A free text natural language description of the naming system from a consumer's perspective. Details about what the namespace identifies including scope, granularity, version labeling, etc. */ - @Child(name = "description", type = {MarkdownType.class}, order=10, min=0, max=1, modifier=false, summary=false) + @Child(name = "description", type = {MarkdownType.class}, order=11, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Natural language description of the naming system", formalDefinition="A free text natural language description of the naming system from a consumer's perspective. Details about what the namespace identifies including scope, granularity, version labeling, etc." ) protected MarkdownType description; /** * The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate naming system instances. */ - @Child(name = "useContext", type = {UsageContext.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "useContext", type = {UsageContext.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="The context that the content is intended to support", formalDefinition="The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate naming system instances." ) protected List useContext; /** * A legal or geographic region in which the naming system is intended to be used. */ - @Child(name = "jurisdiction", type = {CodeableConcept.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "jurisdiction", type = {CodeableConcept.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Intended jurisdiction for naming system (if applicable)", formalDefinition="A legal or geographic region in which the naming system is intended to be used." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/jurisdiction") protected List jurisdiction; @@ -829,18 +911,18 @@ public class NamingSystem extends CanonicalResource { /** * Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc. */ - @Child(name = "usage", type = {StringType.class}, order=13, min=0, max=1, modifier=false, summary=false) + @Child(name = "usage", type = {StringType.class}, order=14, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="How/where is it used", formalDefinition="Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc." ) protected StringType usage; /** * Indicates how the system may be identified when referenced in electronic exchange. */ - @Child(name = "uniqueId", type = {}, order=14, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "uniqueId", type = {}, order=15, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Unique identifiers used for system", formalDefinition="Indicates how the system may be identified when referenced in electronic exchange." ) protected List uniqueId; - private static final long serialVersionUID = -277112355L; + private static final long serialVersionUID = 329180848L; /** * Constructor @@ -1004,6 +1086,55 @@ public class NamingSystem extends CanonicalResource { return this; } + /** + * @return {@link #title} (A short, descriptive, user-friendly title for the naming system.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + */ + public StringType getTitleElement() { + if (this.title == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create NamingSystem.title"); + else if (Configuration.doAutoCreate()) + this.title = new StringType(); // bb + return this.title; + } + + public boolean hasTitleElement() { + return this.title != null && !this.title.isEmpty(); + } + + public boolean hasTitle() { + return this.title != null && !this.title.isEmpty(); + } + + /** + * @param value {@link #title} (A short, descriptive, user-friendly title for the naming system.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + */ + public NamingSystem setTitleElement(StringType value) { + this.title = value; + return this; + } + + /** + * @return A short, descriptive, user-friendly title for the naming system. + */ + public String getTitle() { + return this.title == null ? null : this.title.getValue(); + } + + /** + * @param value A short, descriptive, user-friendly title for the naming system. + */ + public NamingSystem setTitle(String value) { + if (Utilities.noString(value)) + this.title = null; + else { + if (this.title == null) + this.title = new StringType(); + this.title.setValue(value); + } + return this; + } + /** * @return {@link #status} (The status of this naming system. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ @@ -1610,42 +1741,6 @@ public class NamingSystem extends CanonicalResource { * not supported on this implementation */ @Override - public int getTitleMax() { - return 0; - } - /** - * @return {@link #title} (A short, descriptive, user-friendly title for the naming system.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value - */ - public StringType getTitleElement() { - throw new Error("The resource type \"NamingSystem\" does not implement the property \"title\""); - } - - public boolean hasTitleElement() { - return false; - } - public boolean hasTitle() { - return false; - } - - /** - * @param value {@link #title} (A short, descriptive, user-friendly title for the naming system.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value - */ - public NamingSystem setTitleElement(StringType value) { - throw new Error("The resource type \"NamingSystem\" does not implement the property \"title\""); - } - public String getTitle() { - throw new Error("The resource type \"NamingSystem\" does not implement the property \"title\""); - } - /** - * @param value A short, descriptive, user-friendly title for the naming system. - */ - public NamingSystem setTitle(String value) { - throw new Error("The resource type \"NamingSystem\" does not implement the property \"title\""); - } - /** - * not supported on this implementation - */ - @Override public int getExperimentalMax() { return 0; } @@ -1755,6 +1850,7 @@ public class NamingSystem extends CanonicalResource { children.add(new Property("url", "uri", "An absolute URI that is used to identify this naming system when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this naming system is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the naming system is stored on different servers.", 0, 1, url)); children.add(new Property("version", "string", "The identifier that is used to identify this version of the naming system when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the naming system author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version)); children.add(new Property("name", "string", "A natural language name identifying the naming system. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); + children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the naming system.", 0, 1, title)); children.add(new Property("status", "code", "The status of this naming system. Enables tracking the life-cycle of the content.", 0, 1, status)); children.add(new Property("kind", "code", "Indicates the purpose for the naming system - what kinds of things does it make unique?", 0, 1, kind)); children.add(new Property("date", "dateTime", "The date (and optionally time) when the naming system was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the naming system changes.", 0, 1, date)); @@ -1775,6 +1871,7 @@ public class NamingSystem extends CanonicalResource { case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this naming system when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this naming system is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the naming system is stored on different servers.", 0, 1, url); case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the naming system when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the naming system author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version); case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the naming system. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); + case 110371416: /*title*/ return new Property("title", "string", "A short, descriptive, user-friendly title for the naming system.", 0, 1, title); case -892481550: /*status*/ return new Property("status", "code", "The status of this naming system. Enables tracking the life-cycle of the content.", 0, 1, status); case 3292052: /*kind*/ return new Property("kind", "code", "Indicates the purpose for the naming system - what kinds of things does it make unique?", 0, 1, kind); case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the naming system was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the naming system changes.", 0, 1, date); @@ -1798,6 +1895,7 @@ public class NamingSystem extends CanonicalResource { case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType + case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration case 3292052: /*kind*/ return this.kind == null ? new Base[0] : new Base[] {this.kind}; // Enumeration case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType @@ -1827,6 +1925,9 @@ public class NamingSystem extends CanonicalResource { case 3373707: // name this.name = TypeConvertor.castToString(value); // StringType return value; + case 110371416: // title + this.title = TypeConvertor.castToString(value); // StringType + return value; case -892481550: // status value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); this.status = (Enumeration) value; // Enumeration @@ -1878,6 +1979,8 @@ public class NamingSystem extends CanonicalResource { this.version = TypeConvertor.castToString(value); // StringType } else if (name.equals("name")) { this.name = TypeConvertor.castToString(value); // StringType + } else if (name.equals("title")) { + this.title = TypeConvertor.castToString(value); // StringType } else if (name.equals("status")) { value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); this.status = (Enumeration) value; // Enumeration @@ -1915,6 +2018,7 @@ public class NamingSystem extends CanonicalResource { case 116079: return getUrlElement(); case 351608024: return getVersionElement(); case 3373707: return getNameElement(); + case 110371416: return getTitleElement(); case -892481550: return getStatusElement(); case 3292052: return getKindElement(); case 3076014: return getDateElement(); @@ -1938,6 +2042,7 @@ public class NamingSystem extends CanonicalResource { case 116079: /*url*/ return new String[] {"uri"}; case 351608024: /*version*/ return new String[] {"string"}; case 3373707: /*name*/ return new String[] {"string"}; + case 110371416: /*title*/ return new String[] {"string"}; case -892481550: /*status*/ return new String[] {"code"}; case 3292052: /*kind*/ return new String[] {"code"}; case 3076014: /*date*/ return new String[] {"dateTime"}; @@ -1966,6 +2071,9 @@ public class NamingSystem extends CanonicalResource { else if (name.equals("name")) { throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.name"); } + else if (name.equals("title")) { + throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.title"); + } else if (name.equals("status")) { throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.status"); } @@ -2023,6 +2131,7 @@ public class NamingSystem extends CanonicalResource { dst.url = url == null ? null : url.copy(); dst.version = version == null ? null : version.copy(); dst.name = name == null ? null : name.copy(); + dst.title = title == null ? null : title.copy(); dst.status = status == null ? null : status.copy(); dst.kind = kind == null ? null : kind.copy(); dst.date = date == null ? null : date.copy(); @@ -2065,11 +2174,11 @@ public class NamingSystem extends CanonicalResource { return false; NamingSystem o = (NamingSystem) other_; return compareDeep(url, o.url, true) && compareDeep(version, o.version, true) && compareDeep(name, o.name, true) - && compareDeep(status, o.status, true) && compareDeep(kind, o.kind, true) && compareDeep(date, o.date, true) - && compareDeep(publisher, o.publisher, true) && compareDeep(contact, o.contact, true) && compareDeep(responsible, o.responsible, true) - && compareDeep(type, o.type, true) && compareDeep(description, o.description, true) && compareDeep(useContext, o.useContext, true) - && compareDeep(jurisdiction, o.jurisdiction, true) && compareDeep(usage, o.usage, true) && compareDeep(uniqueId, o.uniqueId, true) - ; + && compareDeep(title, o.title, true) && compareDeep(status, o.status, true) && compareDeep(kind, o.kind, true) + && compareDeep(date, o.date, true) && compareDeep(publisher, o.publisher, true) && compareDeep(contact, o.contact, true) + && compareDeep(responsible, o.responsible, true) && compareDeep(type, o.type, true) && compareDeep(description, o.description, true) + && compareDeep(useContext, o.useContext, true) && compareDeep(jurisdiction, o.jurisdiction, true) + && compareDeep(usage, o.usage, true) && compareDeep(uniqueId, o.uniqueId, true); } @Override @@ -2080,14 +2189,14 @@ public class NamingSystem extends CanonicalResource { return false; NamingSystem o = (NamingSystem) other_; return compareValues(url, o.url, true) && compareValues(version, o.version, true) && compareValues(name, o.name, true) - && compareValues(status, o.status, true) && compareValues(kind, o.kind, true) && compareValues(date, o.date, true) - && compareValues(publisher, o.publisher, true) && compareValues(responsible, o.responsible, true) && compareValues(description, o.description, true) - && compareValues(usage, o.usage, true); + && compareValues(title, o.title, true) && compareValues(status, o.status, true) && compareValues(kind, o.kind, true) + && compareValues(date, o.date, true) && compareValues(publisher, o.publisher, true) && compareValues(responsible, o.responsible, true) + && compareValues(description, o.description, true) && compareValues(usage, o.usage, true); } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, version, name, status - , kind, date, publisher, contact, responsible, type, description, useContext + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, version, name, title + , status, kind, date, publisher, contact, responsible, type, description, useContext , jurisdiction, usage, uniqueId); } @@ -2097,164 +2206,56 @@ public class NamingSystem extends CanonicalResource { } /** - * Search parameter: contact + * Search parameter: context *

- * Description: Name of an individual to contact
- * Type: string
- * Path: NamingSystem.contact.name
- *

- */ - @SearchParamDefinition(name="contact", path="NamingSystem.contact.name", description="Name of an individual to contact", type="string" ) - public static final String SP_CONTACT = "contact"; - /** - * Fluent Client search parameter constant for contact - *

- * Description: Name of an individual to contact
- * Type: string
- * Path: NamingSystem.contact.name
- *

- */ - public static final ca.uhn.fhir.rest.gclient.StringClientParam CONTACT = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_CONTACT); + * Description: Multiple Resources: - /** - * Search parameter: id-type - *

- * Description: oid | uuid | uri | other
+* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +

* Type: token
- * Path: NamingSystem.uniqueId.type
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="id-type", path="NamingSystem.uniqueId.type", description="oid | uuid | uri | other", type="token" ) - public static final String SP_ID_TYPE = "id-type"; + @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) + public static final String SP_CONTEXT = "context"; /** - * Fluent Client search parameter constant for id-type + * Fluent Client search parameter constant for context *

- * Description: oid | uuid | uri | other
- * Type: token
- * Path: NamingSystem.uniqueId.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam ID_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ID_TYPE); + * Description: Multiple Resources: - /** - * Search parameter: kind - *

- * Description: codesystem | identifier | root
+* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +

* Type: token
- * Path: NamingSystem.kind
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="kind", path="NamingSystem.kind", description="codesystem | identifier | root", type="token" ) - public static final String SP_KIND = "kind"; - /** - * Fluent Client search parameter constant for kind - *

- * Description: codesystem | identifier | root
- * Type: token
- * Path: NamingSystem.kind
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam KIND = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_KIND); - - /** - * Search parameter: period - *

- * Description: When is identifier valid?
- * Type: date
- * Path: NamingSystem.uniqueId.period
- *

- */ - @SearchParamDefinition(name="period", path="NamingSystem.uniqueId.period", description="When is identifier valid?", type="date" ) - public static final String SP_PERIOD = "period"; - /** - * Fluent Client search parameter constant for period - *

- * Description: When is identifier valid?
- * Type: date
- * Path: NamingSystem.uniqueId.period
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam PERIOD = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_PERIOD); - - /** - * Search parameter: responsible - *

- * Description: Who maintains system namespace?
- * Type: string
- * Path: NamingSystem.responsible
- *

- */ - @SearchParamDefinition(name="responsible", path="NamingSystem.responsible", description="Who maintains system namespace?", type="string" ) - public static final String SP_RESPONSIBLE = "responsible"; - /** - * Fluent Client search parameter constant for responsible - *

- * Description: Who maintains system namespace?
- * Type: string
- * Path: NamingSystem.responsible
- *

- */ - public static final ca.uhn.fhir.rest.gclient.StringClientParam RESPONSIBLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_RESPONSIBLE); - - /** - * Search parameter: telecom - *

- * Description: Contact details for individual or organization
- * Type: token
- * Path: NamingSystem.contact.telecom
- *

- */ - @SearchParamDefinition(name="telecom", path="NamingSystem.contact.telecom", description="Contact details for individual or organization", type="token" ) - public static final String SP_TELECOM = "telecom"; - /** - * Fluent Client search parameter constant for telecom - *

- * Description: Contact details for individual or organization
- * Type: token
- * Path: NamingSystem.contact.telecom
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam TELECOM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TELECOM); - - /** - * Search parameter: type - *

- * Description: e.g. driver, provider, patient, bank etc.
- * Type: token
- * Path: NamingSystem.type
- *

- */ - @SearchParamDefinition(name="type", path="NamingSystem.type", description="e.g. driver, provider, patient, bank etc.", type="token" ) - public static final String SP_TYPE = "type"; - /** - * Fluent Client search parameter constant for type - *

- * Description: e.g. driver, provider, patient, bank etc.
- * Type: token
- * Path: NamingSystem.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); - - /** - * Search parameter: value - *

- * Description: The unique identifier
- * Type: string
- * Path: NamingSystem.uniqueId.value
- *

- */ - @SearchParamDefinition(name="value", path="NamingSystem.uniqueId.value", description="The unique identifier", type="string" ) - public static final String SP_VALUE = "value"; - /** - * Fluent Client search parameter constant for value - *

- * Description: The unique identifier
- * Type: string
- * Path: NamingSystem.uniqueId.value
- *

- */ - public static final ca.uhn.fhir.rest.gclient.StringClientParam VALUE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_VALUE); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); /** * Search parameter: context-quantity @@ -2308,110 +2309,6 @@ public class NamingSystem extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -2464,58 +2361,6 @@ public class NamingSystem extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -2930,9 +2775,276 @@ public class NamingSystem extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + + /** + * Search parameter: contact + *

+ * Description: Name of an individual to contact
+ * Type: string
+ * Path: NamingSystem.contact.name
+ *

+ */ + @SearchParamDefinition(name="contact", path="NamingSystem.contact.name", description="Name of an individual to contact", type="string" ) + public static final String SP_CONTACT = "contact"; + /** + * Fluent Client search parameter constant for contact + *

+ * Description: Name of an individual to contact
+ * Type: string
+ * Path: NamingSystem.contact.name
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam CONTACT = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_CONTACT); + + /** + * Search parameter: id-type + *

+ * Description: oid | uuid | uri | other
+ * Type: token
+ * Path: NamingSystem.uniqueId.type
+ *

+ */ + @SearchParamDefinition(name="id-type", path="NamingSystem.uniqueId.type", description="oid | uuid | uri | other", type="token" ) + public static final String SP_ID_TYPE = "id-type"; + /** + * Fluent Client search parameter constant for id-type + *

+ * Description: oid | uuid | uri | other
+ * Type: token
+ * Path: NamingSystem.uniqueId.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam ID_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ID_TYPE); + + /** + * Search parameter: kind + *

+ * Description: codesystem | identifier | root
+ * Type: token
+ * Path: NamingSystem.kind
+ *

+ */ + @SearchParamDefinition(name="kind", path="NamingSystem.kind", description="codesystem | identifier | root", type="token" ) + public static final String SP_KIND = "kind"; + /** + * Fluent Client search parameter constant for kind + *

+ * Description: codesystem | identifier | root
+ * Type: token
+ * Path: NamingSystem.kind
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam KIND = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_KIND); + + /** + * Search parameter: period + *

+ * Description: When is identifier valid?
+ * Type: date
+ * Path: NamingSystem.uniqueId.period
+ *

+ */ + @SearchParamDefinition(name="period", path="NamingSystem.uniqueId.period", description="When is identifier valid?", type="date" ) + public static final String SP_PERIOD = "period"; + /** + * Fluent Client search parameter constant for period + *

+ * Description: When is identifier valid?
+ * Type: date
+ * Path: NamingSystem.uniqueId.period
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam PERIOD = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_PERIOD); + + /** + * Search parameter: responsible + *

+ * Description: Who maintains system namespace?
+ * Type: string
+ * Path: NamingSystem.responsible
+ *

+ */ + @SearchParamDefinition(name="responsible", path="NamingSystem.responsible", description="Who maintains system namespace?", type="string" ) + public static final String SP_RESPONSIBLE = "responsible"; + /** + * Fluent Client search parameter constant for responsible + *

+ * Description: Who maintains system namespace?
+ * Type: string
+ * Path: NamingSystem.responsible
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam RESPONSIBLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_RESPONSIBLE); + + /** + * Search parameter: telecom + *

+ * Description: Contact details for individual or organization
+ * Type: token
+ * Path: NamingSystem.contact.telecom
+ *

+ */ + @SearchParamDefinition(name="telecom", path="NamingSystem.contact.telecom", description="Contact details for individual or organization", type="token" ) + public static final String SP_TELECOM = "telecom"; + /** + * Fluent Client search parameter constant for telecom + *

+ * Description: Contact details for individual or organization
+ * Type: token
+ * Path: NamingSystem.contact.telecom
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam TELECOM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TELECOM); + + /** + * Search parameter: type + *

+ * Description: e.g. driver, provider, patient, bank etc.
+ * Type: token
+ * Path: NamingSystem.type
+ *

+ */ + @SearchParamDefinition(name="type", path="NamingSystem.type", description="e.g. driver, provider, patient, bank etc.", type="token" ) + public static final String SP_TYPE = "type"; + /** + * Fluent Client search parameter constant for type + *

+ * Description: e.g. driver, provider, patient, bank etc.
+ * Type: token
+ * Path: NamingSystem.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); + + /** + * Search parameter: value + *

+ * Description: The unique identifier
+ * Type: string
+ * Path: NamingSystem.uniqueId.value
+ *

+ */ + @SearchParamDefinition(name="value", path="NamingSystem.uniqueId.value", description="The unique identifier", type="string" ) + public static final String SP_VALUE = "value"; + /** + * Fluent Client search parameter constant for value + *

+ * Description: The unique identifier
+ * Type: string
+ * Path: NamingSystem.uniqueId.value
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam VALUE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_VALUE); + +// Manual code (from Configuration.txt): public boolean supportsCopyright() { return false; } +// end addition + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Narrative.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Narrative.java index 6b9a779f4..fdbf67f44 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Narrative.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Narrative.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -97,7 +97,6 @@ public class Narrative extends BaseNarrative implements INarrative { case EXTENSIONS: return "extensions"; case ADDITIONAL: return "additional"; case EMPTY: return "empty"; - case NULL: return null; default: return "?"; } } @@ -107,7 +106,6 @@ public class Narrative extends BaseNarrative implements INarrative { case EXTENSIONS: return "http://hl7.org/fhir/narrative-status"; case ADDITIONAL: return "http://hl7.org/fhir/narrative-status"; case EMPTY: return "http://hl7.org/fhir/narrative-status"; - case NULL: return null; default: return "?"; } } @@ -117,7 +115,6 @@ public class Narrative extends BaseNarrative implements INarrative { case EXTENSIONS: return "The contents of the narrative are entirely generated from the core elements in the content and some of the content is generated from extensions. The narrative SHALL reflect the impact of all modifier extensions."; case ADDITIONAL: return "The contents of the narrative may contain additional information not found in the structured data. Note that there is no computable way to determine what the extra information is, other than by human inspection."; case EMPTY: return "The contents of the narrative are some equivalent of \"No human-readable text provided in this case\"."; - case NULL: return null; default: return "?"; } } @@ -127,7 +124,6 @@ public class Narrative extends BaseNarrative implements INarrative { case EXTENSIONS: return "Extensions"; case ADDITIONAL: return "Additional"; case EMPTY: return "Empty"; - case NULL: return null; default: return "?"; } } @@ -193,7 +189,7 @@ public class Narrative extends BaseNarrative implements INarrative { /** * The actual narrative content, a stripped down version of XHTML. */ - @Child(name = "div", type = {XhtmlNode.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Child(name = "div", type = {XhtmlType.class}, order=1, min=1, max=1, modifier=false, summary=false) @Description(shortDefinition="Limited xhtml content", formalDefinition="The actual narrative content, a stripped down version of XHTML." ) protected XhtmlNode div; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionIntake.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionIntake.java index 7bb3e8b32..b33c18e12 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionIntake.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionIntake.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -2656,7 +2656,7 @@ public class NutritionIntake extends DomainResource { * Path: NutritionIntake.subject.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="NutritionIntake.subject.where(resolve() is Patient)", description="Returns statements for a specific patient.", type="reference", target={Patient.class } ) + @SearchParamDefinition(name="patient", path="NutritionIntake.subject.where(resolve() is Patient)", description="Returns statements for a specific patient.", type="reference", target={Group.class, Patient.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionOrder.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionOrder.java index b6a27f3e9..1deb7c2c1 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionOrder.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionOrder.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -3675,6 +3675,238 @@ public class NutritionOrder extends DomainResource { return ResourceType.NutritionOrder; } + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "NutritionOrder:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("NutritionOrder:patient").toLocked(); + + /** + * Search parameter: encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) + public static final String SP_ENCOUNTER = "encounter"; + /** + * Fluent Client search parameter constant for encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "NutritionOrder:encounter". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("NutritionOrder:encounter").toLocked(); + /** * Search parameter: additive *

@@ -3867,238 +4099,6 @@ public class NutritionOrder extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUPPLEMENT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SUPPLEMENT); - /** - * Search parameter: encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) - public static final String SP_ENCOUNTER = "encounter"; - /** - * Fluent Client search parameter constant for encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "NutritionOrder:encounter". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("NutritionOrder:encounter").toLocked(); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "NutritionOrder:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("NutritionOrder:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionProduct.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionProduct.java index ae85734f5..d0552b39a 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionProduct.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/NutritionProduct.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -89,7 +89,6 @@ public class NutritionProduct extends DomainResource { case ACTIVE: return "active"; case INACTIVE: return "inactive"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -98,7 +97,6 @@ public class NutritionProduct extends DomainResource { case ACTIVE: return "http://hl7.org/fhir/nutritionproduct-status"; case INACTIVE: return "http://hl7.org/fhir/nutritionproduct-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/nutritionproduct-status"; - case NULL: return null; default: return "?"; } } @@ -107,7 +105,6 @@ public class NutritionProduct extends DomainResource { case ACTIVE: return "The product can be used."; case INACTIVE: return "The product is not expected or allowed to be used."; case ENTEREDINERROR: return "This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)."; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class NutritionProduct extends DomainResource { case ACTIVE: return "Active"; case INACTIVE: return "Inactive"; case ENTEREDINERROR: return "Entered in Error"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Observation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Observation.java index 93ae28fca..564c4d3c0 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Observation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Observation.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -1158,24 +1158,31 @@ public class Observation extends DomainResource { @Description(shortDefinition="Business Identifier for observation", formalDefinition="A unique identifier assigned to this observation." ) protected List identifier; + /** + * The reference to a FHIR ObservationDefinition resource that provides the definition that is adhered to in whole or in part by this Observation instance. + */ + @Child(name = "instantiates", type = {CanonicalType.class, ObservationDefinition.class}, order=1, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Instantiates FHIR ObservationDefinition", formalDefinition="The reference to a FHIR ObservationDefinition resource that provides the definition that is adhered to in whole or in part by this Observation instance." ) + protected DataType instantiates; + /** * A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed. */ - @Child(name = "basedOn", type = {CarePlan.class, DeviceRequest.class, ImmunizationRecommendation.class, MedicationRequest.class, NutritionOrder.class, ServiceRequest.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "basedOn", type = {CarePlan.class, DeviceRequest.class, ImmunizationRecommendation.class, MedicationRequest.class, NutritionOrder.class, ServiceRequest.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Fulfills plan, proposal or order", formalDefinition="A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed." ) protected List basedOn; /** * A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure. */ - @Child(name = "partOf", type = {MedicationAdministration.class, MedicationDispense.class, MedicationUsage.class, Procedure.class, Immunization.class, ImagingStudy.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "partOf", type = {MedicationAdministration.class, MedicationDispense.class, MedicationUsage.class, Procedure.class, Immunization.class, ImagingStudy.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Part of referenced event", formalDefinition="A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure." ) protected List partOf; /** * The status of the result value. */ - @Child(name = "status", type = {CodeType.class}, order=3, min=1, max=1, modifier=true, summary=true) + @Child(name = "status", type = {CodeType.class}, order=4, min=1, max=1, modifier=true, summary=true) @Description(shortDefinition="registered | preliminary | final | amended +", formalDefinition="The status of the result value." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-status") protected Enumeration status; @@ -1183,7 +1190,7 @@ public class Observation extends DomainResource { /** * A code that classifies the general type of observation being made. */ - @Child(name = "category", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "category", type = {CodeableConcept.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Classification of type of observation", formalDefinition="A code that classifies the general type of observation being made." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-category") protected List category; @@ -1191,64 +1198,64 @@ public class Observation extends DomainResource { /** * Describes what was observed. Sometimes this is called the observation "name". */ - @Child(name = "code", type = {CodeableConcept.class}, order=5, min=1, max=1, modifier=false, summary=true) + @Child(name = "code", type = {CodeableConcept.class}, order=6, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="Type of observation (code / type)", formalDefinition="Describes what was observed. Sometimes this is called the observation \"name\"." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-codes") protected CodeableConcept code; /** - * The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation. + * The patient, or group of patients, location, device, organization, procedure or practitioner this observation is about and into whose or what record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation. */ - @Child(name = "subject", type = {Patient.class, Group.class, Device.class, Location.class}, order=6, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Who and/or what the observation is about", formalDefinition="The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation." ) + @Child(name = "subject", type = {Patient.class, Group.class, Device.class, Location.class, Organization.class, Procedure.class, Practitioner.class, Medication.class, Substance.class}, order=7, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Who and/or what the observation is about", formalDefinition="The patient, or group of patients, location, device, organization, procedure or practitioner this observation is about and into whose or what record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation." ) protected Reference subject; /** * The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus. */ - @Child(name = "focus", type = {Reference.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "focus", type = {Reference.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="What the observation is about, when it is not about the subject of record", formalDefinition="The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus." ) protected List focus; /** * The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made. */ - @Child(name = "encounter", type = {Encounter.class}, order=8, min=0, max=1, modifier=false, summary=true) + @Child(name = "encounter", type = {Encounter.class}, order=9, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Healthcare event during which this observation is made", formalDefinition="The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made." ) protected Reference encounter; /** * The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the "physiologically relevant time". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself. */ - @Child(name = "effective", type = {DateTimeType.class, Period.class, Timing.class, InstantType.class}, order=9, min=0, max=1, modifier=false, summary=true) + @Child(name = "effective", type = {DateTimeType.class, Period.class, Timing.class, InstantType.class}, order=10, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Clinically relevant time/time-period for observation", formalDefinition="The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself." ) protected DataType effective; /** * The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified. */ - @Child(name = "issued", type = {InstantType.class}, order=10, min=0, max=1, modifier=false, summary=true) + @Child(name = "issued", type = {InstantType.class}, order=11, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Date/Time this version was made available", formalDefinition="The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified." ) protected InstantType issued; /** * Who was responsible for asserting the observed value as "true". */ - @Child(name = "performer", type = {Practitioner.class, PractitionerRole.class, Organization.class, CareTeam.class, Patient.class, RelatedPerson.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "performer", type = {Practitioner.class, PractitionerRole.class, Organization.class, CareTeam.class, Patient.class, RelatedPerson.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Who is responsible for the observation", formalDefinition="Who was responsible for asserting the observed value as \"true\"." ) protected List performer; /** * The information determined as a result of making the observation, if the information has a simple value. */ - @Child(name = "value", type = {Quantity.class, CodeableConcept.class, StringType.class, BooleanType.class, IntegerType.class, Range.class, Ratio.class, SampledData.class, TimeType.class, DateTimeType.class, Period.class, Attachment.class}, order=12, min=0, max=1, modifier=false, summary=true) + @Child(name = "value", type = {Quantity.class, CodeableConcept.class, StringType.class, BooleanType.class, IntegerType.class, Range.class, Ratio.class, SampledData.class, TimeType.class, DateTimeType.class, Period.class, Attachment.class}, order=13, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Actual result", formalDefinition="The information determined as a result of making the observation, if the information has a simple value." ) protected DataType value; /** * Provides a reason why the expected value in the element Observation.value[x] is missing. */ - @Child(name = "dataAbsentReason", type = {CodeableConcept.class}, order=13, min=0, max=1, modifier=false, summary=false) + @Child(name = "dataAbsentReason", type = {CodeableConcept.class}, order=14, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Why the result is missing", formalDefinition="Provides a reason why the expected value in the element Observation.value[x] is missing." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/data-absent-reason") protected CodeableConcept dataAbsentReason; @@ -1256,7 +1263,7 @@ public class Observation extends DomainResource { /** * A categorical assessment of an observation value. For example, high, low, normal. */ - @Child(name = "interpretation", type = {CodeableConcept.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "interpretation", type = {CodeableConcept.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="High, low, normal, etc.", formalDefinition="A categorical assessment of an observation value. For example, high, low, normal." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-interpretation") protected List interpretation; @@ -1264,14 +1271,14 @@ public class Observation extends DomainResource { /** * Comments about the observation or the results. */ - @Child(name = "note", type = {Annotation.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "note", type = {Annotation.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Comments about the observation", formalDefinition="Comments about the observation or the results." ) protected List note; /** * Indicates the site on the subject's body where the observation was made (i.e. the target site). */ - @Child(name = "bodySite", type = {CodeableConcept.class}, order=16, min=0, max=1, modifier=false, summary=false) + @Child(name = "bodySite", type = {CodeableConcept.class}, order=17, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Observed body part", formalDefinition="Indicates the site on the subject's body where the observation was made (i.e. the target site)." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/body-site") protected CodeableConcept bodySite; @@ -1279,7 +1286,7 @@ public class Observation extends DomainResource { /** * Indicates the mechanism used to perform the observation. */ - @Child(name = "method", type = {CodeableConcept.class}, order=17, min=0, max=1, modifier=false, summary=false) + @Child(name = "method", type = {CodeableConcept.class}, order=18, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="How it was done", formalDefinition="Indicates the mechanism used to perform the observation." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-methods") protected CodeableConcept method; @@ -1287,46 +1294,46 @@ public class Observation extends DomainResource { /** * The specimen that was used when this observation was made. */ - @Child(name = "specimen", type = {Specimen.class}, order=18, min=0, max=1, modifier=false, summary=false) + @Child(name = "specimen", type = {Specimen.class}, order=19, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Specimen used for this observation", formalDefinition="The specimen that was used when this observation was made." ) protected Reference specimen; /** * The device used to generate the observation data. */ - @Child(name = "device", type = {Device.class, DeviceMetric.class}, order=19, min=0, max=1, modifier=false, summary=false) + @Child(name = "device", type = {Device.class, DeviceMetric.class}, order=20, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="(Measurement) Device", formalDefinition="The device used to generate the observation data." ) protected Reference device; /** * Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an "OR". In other words, to represent two distinct target populations, two `referenceRange` elements would be used. */ - @Child(name = "referenceRange", type = {}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "referenceRange", type = {}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Provides guide for interpretation", formalDefinition="Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used." ) protected List referenceRange; /** * This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group. */ - @Child(name = "hasMember", type = {Observation.class, QuestionnaireResponse.class, MolecularSequence.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "hasMember", type = {Observation.class, QuestionnaireResponse.class, MolecularSequence.class}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Related resource that belongs to the Observation group", formalDefinition="This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group." ) protected List hasMember; /** * The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image. */ - @Child(name = "derivedFrom", type = {DocumentReference.class, ImagingStudy.class, QuestionnaireResponse.class, Observation.class, MolecularSequence.class}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "derivedFrom", type = {DocumentReference.class, ImagingStudy.class, QuestionnaireResponse.class, Observation.class, MolecularSequence.class}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Related measurements the observation is made from", formalDefinition="The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image." ) protected List derivedFrom; /** * Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations. */ - @Child(name = "component", type = {}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "component", type = {}, order=24, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Component results", formalDefinition="Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations." ) protected List component; - private static final long serialVersionUID = 141411618L; + private static final long serialVersionUID = 1002725127L; /** * Constructor @@ -1397,6 +1404,57 @@ public class Observation extends DomainResource { return getIdentifier().get(0); } + /** + * @return {@link #instantiates} (The reference to a FHIR ObservationDefinition resource that provides the definition that is adhered to in whole or in part by this Observation instance.) + */ + public DataType getInstantiates() { + return this.instantiates; + } + + /** + * @return {@link #instantiates} (The reference to a FHIR ObservationDefinition resource that provides the definition that is adhered to in whole or in part by this Observation instance.) + */ + public CanonicalType getInstantiatesCanonicalType() throws FHIRException { + if (this.instantiates == null) + this.instantiates = new CanonicalType(); + if (!(this.instantiates instanceof CanonicalType)) + throw new FHIRException("Type mismatch: the type CanonicalType was expected, but "+this.instantiates.getClass().getName()+" was encountered"); + return (CanonicalType) this.instantiates; + } + + public boolean hasInstantiatesCanonicalType() { + return this != null && this.instantiates instanceof CanonicalType; + } + + /** + * @return {@link #instantiates} (The reference to a FHIR ObservationDefinition resource that provides the definition that is adhered to in whole or in part by this Observation instance.) + */ + public Reference getInstantiatesReference() throws FHIRException { + if (this.instantiates == null) + this.instantiates = new Reference(); + if (!(this.instantiates instanceof Reference)) + throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.instantiates.getClass().getName()+" was encountered"); + return (Reference) this.instantiates; + } + + public boolean hasInstantiatesReference() { + return this != null && this.instantiates instanceof Reference; + } + + public boolean hasInstantiates() { + return this.instantiates != null && !this.instantiates.isEmpty(); + } + + /** + * @param value {@link #instantiates} (The reference to a FHIR ObservationDefinition resource that provides the definition that is adhered to in whole or in part by this Observation instance.) + */ + public Observation setInstantiates(DataType value) { + if (value != null && !(value instanceof CanonicalType || value instanceof Reference)) + throw new Error("Not the right type for Observation.instantiates[x]: "+value.fhirType()); + this.instantiates = value; + return this; + } + /** * @return {@link #basedOn} (A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.) */ @@ -1626,7 +1684,7 @@ public class Observation extends DomainResource { } /** - * @return {@link #subject} (The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.) + * @return {@link #subject} (The patient, or group of patients, location, device, organization, procedure or practitioner this observation is about and into whose or what record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.) */ public Reference getSubject() { if (this.subject == null) @@ -1642,7 +1700,7 @@ public class Observation extends DomainResource { } /** - * @param value {@link #subject} (The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.) + * @param value {@link #subject} (The patient, or group of patients, location, device, organization, procedure or practitioner this observation is about and into whose or what record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.) */ public Observation setSubject(Reference value) { this.subject = value; @@ -2551,12 +2609,13 @@ public class Observation extends DomainResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("identifier", "Identifier", "A unique identifier assigned to this observation.", 0, java.lang.Integer.MAX_VALUE, identifier)); + children.add(new Property("instantiates[x]", "canonical(ObservationDefinition)|Reference(ObservationDefinition)", "The reference to a FHIR ObservationDefinition resource that provides the definition that is adhered to in whole or in part by this Observation instance.", 0, 1, instantiates)); children.add(new Property("basedOn", "Reference(CarePlan|DeviceRequest|ImmunizationRecommendation|MedicationRequest|NutritionOrder|ServiceRequest)", "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.", 0, java.lang.Integer.MAX_VALUE, basedOn)); children.add(new Property("partOf", "Reference(MedicationAdministration|MedicationDispense|MedicationUsage|Procedure|Immunization|ImagingStudy)", "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.", 0, java.lang.Integer.MAX_VALUE, partOf)); children.add(new Property("status", "code", "The status of the result value.", 0, 1, status)); children.add(new Property("category", "CodeableConcept", "A code that classifies the general type of observation being made.", 0, java.lang.Integer.MAX_VALUE, category)); children.add(new Property("code", "CodeableConcept", "Describes what was observed. Sometimes this is called the observation \"name\".", 0, 1, code)); - children.add(new Property("subject", "Reference(Patient|Group|Device|Location)", "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.", 0, 1, subject)); + children.add(new Property("subject", "Reference(Patient|Group|Device|Location|Organization|Procedure|Practitioner|Medication|Substance)", "The patient, or group of patients, location, device, organization, procedure or practitioner this observation is about and into whose or what record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.", 0, 1, subject)); children.add(new Property("focus", "Reference(Any)", "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.", 0, java.lang.Integer.MAX_VALUE, focus)); children.add(new Property("encounter", "Reference(Encounter)", "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.", 0, 1, encounter)); children.add(new Property("effective[x]", "dateTime|Period|Timing|instant", "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.", 0, 1, effective)); @@ -2580,12 +2639,16 @@ public class Observation extends DomainResource { public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A unique identifier assigned to this observation.", 0, java.lang.Integer.MAX_VALUE, identifier); + case -1926387433: /*instantiates[x]*/ return new Property("instantiates[x]", "canonical(ObservationDefinition)|Reference(ObservationDefinition)", "The reference to a FHIR ObservationDefinition resource that provides the definition that is adhered to in whole or in part by this Observation instance.", 0, 1, instantiates); + case -246883639: /*instantiates*/ return new Property("instantiates[x]", "canonical(ObservationDefinition)|Reference(ObservationDefinition)", "The reference to a FHIR ObservationDefinition resource that provides the definition that is adhered to in whole or in part by this Observation instance.", 0, 1, instantiates); + case 8911915: /*instantiatesCanonical*/ return new Property("instantiates[x]", "canonical(ObservationDefinition)", "The reference to a FHIR ObservationDefinition resource that provides the definition that is adhered to in whole or in part by this Observation instance.", 0, 1, instantiates); + case -1744595326: /*instantiatesReference*/ return new Property("instantiates[x]", "Reference(ObservationDefinition)", "The reference to a FHIR ObservationDefinition resource that provides the definition that is adhered to in whole or in part by this Observation instance.", 0, 1, instantiates); case -332612366: /*basedOn*/ return new Property("basedOn", "Reference(CarePlan|DeviceRequest|ImmunizationRecommendation|MedicationRequest|NutritionOrder|ServiceRequest)", "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.", 0, java.lang.Integer.MAX_VALUE, basedOn); case -995410646: /*partOf*/ return new Property("partOf", "Reference(MedicationAdministration|MedicationDispense|MedicationUsage|Procedure|Immunization|ImagingStudy)", "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.", 0, java.lang.Integer.MAX_VALUE, partOf); case -892481550: /*status*/ return new Property("status", "code", "The status of the result value.", 0, 1, status); case 50511102: /*category*/ return new Property("category", "CodeableConcept", "A code that classifies the general type of observation being made.", 0, java.lang.Integer.MAX_VALUE, category); case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Describes what was observed. Sometimes this is called the observation \"name\".", 0, 1, code); - case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group|Device|Location)", "The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.", 0, 1, subject); + case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group|Device|Location|Organization|Procedure|Practitioner|Medication|Substance)", "The patient, or group of patients, location, device, organization, procedure or practitioner this observation is about and into whose or what record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.", 0, 1, subject); case 97604824: /*focus*/ return new Property("focus", "Reference(Any)", "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.", 0, java.lang.Integer.MAX_VALUE, focus); case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.", 0, 1, encounter); case 247104889: /*effective[x]*/ return new Property("effective[x]", "dateTime|Period|Timing|instant", "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.", 0, 1, effective); @@ -2630,6 +2693,7 @@ public class Observation extends DomainResource { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier + case -246883639: /*instantiates*/ return this.instantiates == null ? new Base[0] : new Base[] {this.instantiates}; // DataType case -332612366: /*basedOn*/ return this.basedOn == null ? new Base[0] : this.basedOn.toArray(new Base[this.basedOn.size()]); // Reference case -995410646: /*partOf*/ return this.partOf == null ? new Base[0] : this.partOf.toArray(new Base[this.partOf.size()]); // Reference case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration @@ -2664,6 +2728,9 @@ public class Observation extends DomainResource { case -1618432855: // identifier this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier return value; + case -246883639: // instantiates + this.instantiates = TypeConvertor.castToType(value); // DataType + return value; case -332612366: // basedOn this.getBasedOn().add(TypeConvertor.castToReference(value)); // Reference return value; @@ -2743,6 +2810,8 @@ public class Observation extends DomainResource { public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("identifier")) { this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); + } else if (name.equals("instantiates[x]")) { + this.instantiates = TypeConvertor.castToType(value); // DataType } else if (name.equals("basedOn")) { this.getBasedOn().add(TypeConvertor.castToReference(value)); } else if (name.equals("partOf")) { @@ -2799,6 +2868,8 @@ public class Observation extends DomainResource { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1618432855: return addIdentifier(); + case -1926387433: return getInstantiates(); + case -246883639: return getInstantiates(); case -332612366: return addBasedOn(); case -995410646: return addPartOf(); case -892481550: return getStatusElement(); @@ -2833,6 +2904,7 @@ public class Observation extends DomainResource { public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case -1618432855: /*identifier*/ return new String[] {"Identifier"}; + case -246883639: /*instantiates*/ return new String[] {"canonical", "Reference"}; case -332612366: /*basedOn*/ return new String[] {"Reference"}; case -995410646: /*partOf*/ return new String[] {"Reference"}; case -892481550: /*status*/ return new String[] {"code"}; @@ -2866,6 +2938,14 @@ public class Observation extends DomainResource { if (name.equals("identifier")) { return addIdentifier(); } + else if (name.equals("instantiatesCanonical")) { + this.instantiates = new CanonicalType(); + return this.instantiates; + } + else if (name.equals("instantiatesReference")) { + this.instantiates = new Reference(); + return this.instantiates; + } else if (name.equals("basedOn")) { return addBasedOn(); } @@ -3023,6 +3103,7 @@ public class Observation extends DomainResource { for (Identifier i : identifier) dst.identifier.add(i.copy()); }; + dst.instantiates = instantiates == null ? null : instantiates.copy(); if (basedOn != null) { dst.basedOn = new ArrayList(); for (Reference i : basedOn) @@ -3103,15 +3184,16 @@ public class Observation extends DomainResource { if (!(other_ instanceof Observation)) return false; Observation o = (Observation) other_; - return compareDeep(identifier, o.identifier, true) && compareDeep(basedOn, o.basedOn, true) && compareDeep(partOf, o.partOf, true) - && compareDeep(status, o.status, true) && compareDeep(category, o.category, true) && compareDeep(code, o.code, true) - && compareDeep(subject, o.subject, true) && compareDeep(focus, o.focus, true) && compareDeep(encounter, o.encounter, true) - && compareDeep(effective, o.effective, true) && compareDeep(issued, o.issued, true) && compareDeep(performer, o.performer, true) - && compareDeep(value, o.value, true) && compareDeep(dataAbsentReason, o.dataAbsentReason, true) - && compareDeep(interpretation, o.interpretation, true) && compareDeep(note, o.note, true) && compareDeep(bodySite, o.bodySite, true) - && compareDeep(method, o.method, true) && compareDeep(specimen, o.specimen, true) && compareDeep(device, o.device, true) - && compareDeep(referenceRange, o.referenceRange, true) && compareDeep(hasMember, o.hasMember, true) - && compareDeep(derivedFrom, o.derivedFrom, true) && compareDeep(component, o.component, true); + return compareDeep(identifier, o.identifier, true) && compareDeep(instantiates, o.instantiates, true) + && compareDeep(basedOn, o.basedOn, true) && compareDeep(partOf, o.partOf, true) && compareDeep(status, o.status, true) + && compareDeep(category, o.category, true) && compareDeep(code, o.code, true) && compareDeep(subject, o.subject, true) + && compareDeep(focus, o.focus, true) && compareDeep(encounter, o.encounter, true) && compareDeep(effective, o.effective, true) + && compareDeep(issued, o.issued, true) && compareDeep(performer, o.performer, true) && compareDeep(value, o.value, true) + && compareDeep(dataAbsentReason, o.dataAbsentReason, true) && compareDeep(interpretation, o.interpretation, true) + && compareDeep(note, o.note, true) && compareDeep(bodySite, o.bodySite, true) && compareDeep(method, o.method, true) + && compareDeep(specimen, o.specimen, true) && compareDeep(device, o.device, true) && compareDeep(referenceRange, o.referenceRange, true) + && compareDeep(hasMember, o.hasMember, true) && compareDeep(derivedFrom, o.derivedFrom, true) && compareDeep(component, o.component, true) + ; } @Override @@ -3125,10 +3207,10 @@ public class Observation extends DomainResource { } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, basedOn, partOf - , status, category, code, subject, focus, encounter, effective, issued, performer - , value, dataAbsentReason, interpretation, note, bodySite, method, specimen, device - , referenceRange, hasMember, derivedFrom, component); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, instantiates, basedOn + , partOf, status, category, code, subject, focus, encounter, effective, issued + , performer, value, dataAbsentReason, interpretation, note, bodySite, method, specimen + , device, referenceRange, hasMember, derivedFrom, component); } @Override @@ -3136,6 +3218,348 @@ public class Observation extends DomainResource { return ResourceType.Observation; } + /** + * Search parameter: code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + + /** + * Search parameter: date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) + public static final String SP_DATE = "date"; + /** + * Fluent Client search parameter constant for date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Observation:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Observation:patient").toLocked(); + + /** + * Search parameter: encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) + public static final String SP_ENCOUNTER = "encounter"; + /** + * Fluent Client search parameter constant for encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Observation:encounter". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("Observation:encounter").toLocked(); + /** * Search parameter: based-on *

@@ -3182,126 +3606,6 @@ public class Observation extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CATEGORY); - /** - * Search parameter: code-value-concept - *

- * Description: Code and coded value parameter pair
- * Type: composite
- * Path: Observation
- *

- */ - @SearchParamDefinition(name="code-value-concept", path="Observation", description="Code and coded value parameter pair", type="composite", compositeOf={"code", "value-concept"} ) - public static final String SP_CODE_VALUE_CONCEPT = "code-value-concept"; - /** - * Fluent Client search parameter constant for code-value-concept - *

- * Description: Code and coded value parameter pair
- * Type: composite
- * Path: Observation
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CODE_VALUE_CONCEPT = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CODE_VALUE_CONCEPT); - - /** - * Search parameter: code-value-date - *

- * Description: Code and date/time value parameter pair
- * Type: composite
- * Path: Observation
- *

- */ - @SearchParamDefinition(name="code-value-date", path="Observation", description="Code and date/time value parameter pair", type="composite", compositeOf={"code", "value-date"} ) - public static final String SP_CODE_VALUE_DATE = "code-value-date"; - /** - * Fluent Client search parameter constant for code-value-date - *

- * Description: Code and date/time value parameter pair
- * Type: composite
- * Path: Observation
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CODE_VALUE_DATE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CODE_VALUE_DATE); - - /** - * Search parameter: code-value-quantity - *

- * Description: Code and quantity value parameter pair
- * Type: composite
- * Path: Observation
- *

- */ - @SearchParamDefinition(name="code-value-quantity", path="Observation", description="Code and quantity value parameter pair", type="composite", compositeOf={"code", "value-quantity"} ) - public static final String SP_CODE_VALUE_QUANTITY = "code-value-quantity"; - /** - * Fluent Client search parameter constant for code-value-quantity - *

- * Description: Code and quantity value parameter pair
- * Type: composite
- * Path: Observation
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CODE_VALUE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CODE_VALUE_QUANTITY); - - /** - * Search parameter: code-value-string - *

- * Description: Code and string value parameter pair
- * Type: composite
- * Path: Observation
- *

- */ - @SearchParamDefinition(name="code-value-string", path="Observation", description="Code and string value parameter pair", type="composite", compositeOf={"code", "value-string"} ) - public static final String SP_CODE_VALUE_STRING = "code-value-string"; - /** - * Fluent Client search parameter constant for code-value-string - *

- * Description: Code and string value parameter pair
- * Type: composite
- * Path: Observation
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CODE_VALUE_STRING = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CODE_VALUE_STRING); - - /** - * Search parameter: combo-code-value-concept - *

- * Description: Code and coded value parameter pair, including in components
- * Type: composite
- * Path: Observation | Observation.component
- *

- */ - @SearchParamDefinition(name="combo-code-value-concept", path="Observation | Observation.component", description="Code and coded value parameter pair, including in components", type="composite", compositeOf={"combo-code", "combo-value-concept"} ) - public static final String SP_COMBO_CODE_VALUE_CONCEPT = "combo-code-value-concept"; - /** - * Fluent Client search parameter constant for combo-code-value-concept - *

- * Description: Code and coded value parameter pair, including in components
- * Type: composite
- * Path: Observation | Observation.component
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam COMBO_CODE_VALUE_CONCEPT = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_COMBO_CODE_VALUE_CONCEPT); - - /** - * Search parameter: combo-code-value-quantity - *

- * Description: Code and quantity value parameter pair, including in components
- * Type: composite
- * Path: Observation | Observation.component
- *

- */ - @SearchParamDefinition(name="combo-code-value-quantity", path="Observation | Observation.component", description="Code and quantity value parameter pair, including in components", type="composite", compositeOf={"combo-code", "combo-value-quantity"} ) - public static final String SP_COMBO_CODE_VALUE_QUANTITY = "combo-code-value-quantity"; - /** - * Fluent Client search parameter constant for combo-code-value-quantity - *

- * Description: Code and quantity value parameter pair, including in components
- * Type: composite
- * Path: Observation | Observation.component
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam COMBO_CODE_VALUE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_COMBO_CODE_VALUE_QUANTITY); - /** * Search parameter: combo-code *

@@ -3382,46 +3686,6 @@ public class Observation extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam COMBO_VALUE_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_COMBO_VALUE_QUANTITY); - /** - * Search parameter: component-code-value-concept - *

- * Description: Component code and component coded value parameter pair
- * Type: composite
- * Path: Observation.component
- *

- */ - @SearchParamDefinition(name="component-code-value-concept", path="Observation.component", description="Component code and component coded value parameter pair", type="composite", compositeOf={"component-code", "component-value-concept"} ) - public static final String SP_COMPONENT_CODE_VALUE_CONCEPT = "component-code-value-concept"; - /** - * Fluent Client search parameter constant for component-code-value-concept - *

- * Description: Component code and component coded value parameter pair
- * Type: composite
- * Path: Observation.component
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam COMPONENT_CODE_VALUE_CONCEPT = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_COMPONENT_CODE_VALUE_CONCEPT); - - /** - * Search parameter: component-code-value-quantity - *

- * Description: Component code and component quantity value parameter pair
- * Type: composite
- * Path: Observation.component
- *

- */ - @SearchParamDefinition(name="component-code-value-quantity", path="Observation.component", description="Component code and component quantity value parameter pair", type="composite", compositeOf={"component-code", "component-value-quantity"} ) - public static final String SP_COMPONENT_CODE_VALUE_QUANTITY = "component-code-value-quantity"; - /** - * Fluent Client search parameter constant for component-code-value-quantity - *

- * Description: Component code and component quantity value parameter pair
- * Type: composite
- * Path: Observation.component
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam COMPONENT_CODE_VALUE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_COMPONENT_CODE_VALUE_QUANTITY); - /** * Search parameter: component-code *

@@ -3582,7 +3846,7 @@ public class Observation extends DomainResource { * Path: Observation.focus
*

*/ - @SearchParamDefinition(name="focus", path="Observation.focus", description="The focus of an observation when the focus is not the patient of record.", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="focus", path="Observation.focus", description="The focus of an observation when the focus is not the patient of record.", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_FOCUS = "focus"; /** * Fluent Client search parameter constant for focus @@ -3752,7 +4016,7 @@ public class Observation extends DomainResource { * Path: Observation.subject
*

*/ - @SearchParamDefinition(name="subject", path="Observation.subject", description="The subject that the observation is about", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Device.class, Group.class, Location.class, Patient.class } ) + @SearchParamDefinition(name="subject", path="Observation.subject", description="The subject that the observation is about", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Device.class, Group.class, Location.class, Medication.class, Organization.class, Patient.class, Practitioner.class, Procedure.class, Substance.class } ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject @@ -3851,346 +4115,164 @@ public class Observation extends DomainResource { public static final ca.uhn.fhir.rest.gclient.StringClientParam VALUE_STRING = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_VALUE_STRING); /** - * Search parameter: code + * Search parameter: code-value-concept *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ * Description: Code and coded value parameter pair
+ * Type: composite
+ * Path: Observation
*

*/ - @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) - public static final String SP_CODE = "code"; + @SearchParamDefinition(name="code-value-concept", path="Observation", description="Code and coded value parameter pair", type="composite", compositeOf={"code", "value-concept"} ) + public static final String SP_CODE_VALUE_CONCEPT = "code-value-concept"; /** - * Fluent Client search parameter constant for code + * Fluent Client search parameter constant for code-value-concept *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ * Description: Code and coded value parameter pair
+ * Type: composite
+ * Path: Observation
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CODE_VALUE_CONCEPT = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CODE_VALUE_CONCEPT); /** - * Search parameter: date + * Search parameter: code-value-date *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ * Description: Code and date/time value parameter pair
+ * Type: composite
+ * Path: Observation
*

*/ - @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) - public static final String SP_DATE = "date"; + @SearchParamDefinition(name="code-value-date", path="Observation", description="Code and date/time value parameter pair", type="composite", compositeOf={"code", "value-date"} ) + public static final String SP_CODE_VALUE_DATE = "code-value-date"; /** - * Fluent Client search parameter constant for date + * Fluent Client search parameter constant for code-value-date *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ * Description: Code and date/time value parameter pair
+ * Type: composite
+ * Path: Observation
*

*/ - public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CODE_VALUE_DATE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CODE_VALUE_DATE); /** - * Search parameter: encounter + * Search parameter: code-value-quantity *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ * Description: Code and quantity value parameter pair
+ * Type: composite
+ * Path: Observation
*

*/ - @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) - public static final String SP_ENCOUNTER = "encounter"; + @SearchParamDefinition(name="code-value-quantity", path="Observation", description="Code and quantity value parameter pair", type="composite", compositeOf={"code", "value-quantity"} ) + public static final String SP_CODE_VALUE_QUANTITY = "code-value-quantity"; /** - * Fluent Client search parameter constant for encounter + * Fluent Client search parameter constant for code-value-quantity *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ * Description: Code and quantity value parameter pair
+ * Type: composite
+ * Path: Observation
*

*/ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Observation:encounter". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("Observation:encounter").toLocked(); + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CODE_VALUE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CODE_VALUE_QUANTITY); /** - * Search parameter: identifier + * Search parameter: code-value-string *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ * Description: Code and string value parameter pair
+ * Type: composite
+ * Path: Observation
*

*/ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name="code-value-string", path="Observation", description="Code and string value parameter pair", type="composite", compositeOf={"code", "value-string"} ) + public static final String SP_CODE_VALUE_STRING = "code-value-string"; /** - * Fluent Client search parameter constant for identifier + * Fluent Client search parameter constant for code-value-string *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ * Description: Code and string value parameter pair
+ * Type: composite
+ * Path: Observation
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CODE_VALUE_STRING = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CODE_VALUE_STRING); /** - * Search parameter: patient + * Search parameter: combo-code-value-concept *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ * Description: Code and coded value parameter pair, including in components
+ * Type: composite
+ * Path: Observation | Observation.component
*

*/ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name="combo-code-value-concept", path="Observation | Observation.component", description="Code and coded value parameter pair, including in components", type="composite", compositeOf={"combo-code", "combo-value-concept"} ) + public static final String SP_COMBO_CODE_VALUE_CONCEPT = "combo-code-value-concept"; /** - * Fluent Client search parameter constant for patient + * Fluent Client search parameter constant for combo-code-value-concept *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ * Description: Code and coded value parameter pair, including in components
+ * Type: composite
+ * Path: Observation | Observation.component
*

*/ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam COMBO_CODE_VALUE_CONCEPT = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_COMBO_CODE_VALUE_CONCEPT); -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Observation:patient". + /** + * Search parameter: combo-code-value-quantity + *

+ * Description: Code and quantity value parameter pair, including in components
+ * Type: composite
+ * Path: Observation | Observation.component
+ *

*/ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Observation:patient").toLocked(); + @SearchParamDefinition(name="combo-code-value-quantity", path="Observation | Observation.component", description="Code and quantity value parameter pair, including in components", type="composite", compositeOf={"combo-code", "combo-value-quantity"} ) + public static final String SP_COMBO_CODE_VALUE_QUANTITY = "combo-code-value-quantity"; + /** + * Fluent Client search parameter constant for combo-code-value-quantity + *

+ * Description: Code and quantity value parameter pair, including in components
+ * Type: composite
+ * Path: Observation | Observation.component
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam COMBO_CODE_VALUE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_COMBO_CODE_VALUE_QUANTITY); + + /** + * Search parameter: component-code-value-concept + *

+ * Description: Component code and component coded value parameter pair
+ * Type: composite
+ * Path: Observation.component
+ *

+ */ + @SearchParamDefinition(name="component-code-value-concept", path="Observation.component", description="Component code and component coded value parameter pair", type="composite", compositeOf={"component-code", "component-value-concept"} ) + public static final String SP_COMPONENT_CODE_VALUE_CONCEPT = "component-code-value-concept"; + /** + * Fluent Client search parameter constant for component-code-value-concept + *

+ * Description: Component code and component coded value parameter pair
+ * Type: composite
+ * Path: Observation.component
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam COMPONENT_CODE_VALUE_CONCEPT = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_COMPONENT_CODE_VALUE_CONCEPT); + + /** + * Search parameter: component-code-value-quantity + *

+ * Description: Component code and component quantity value parameter pair
+ * Type: composite
+ * Path: Observation.component
+ *

+ */ + @SearchParamDefinition(name="component-code-value-quantity", path="Observation.component", description="Component code and component quantity value parameter pair", type="composite", compositeOf={"component-code", "component-value-quantity"} ) + public static final String SP_COMPONENT_CODE_VALUE_QUANTITY = "component-code-value-quantity"; + /** + * Fluent Client search parameter constant for component-code-value-quantity + *

+ * Description: Component code and component quantity value parameter pair
+ * Type: composite
+ * Path: Observation.component
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam COMPONENT_CODE_VALUE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_COMPONENT_CODE_VALUE_QUANTITY); } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ObservationDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ObservationDefinition.java index 5b4d4ab9a..741d7730e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ObservationDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ObservationDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -146,7 +146,6 @@ public class ObservationDefinition extends DomainResource { case TIME: return "time"; case DATETIME: return "dateTime"; case PERIOD: return "Period"; - case NULL: return null; default: return "?"; } } @@ -163,7 +162,6 @@ public class ObservationDefinition extends DomainResource { case TIME: return "http://hl7.org/fhir/permitted-data-type"; case DATETIME: return "http://hl7.org/fhir/permitted-data-type"; case PERIOD: return "http://hl7.org/fhir/permitted-data-type"; - case NULL: return null; default: return "?"; } } @@ -180,7 +178,6 @@ public class ObservationDefinition extends DomainResource { case TIME: return "A time during the day, in the format hh:mm:ss."; case DATETIME: return "A date, date-time or partial date (e.g. just year or year + month) as used in human communication."; case PERIOD: return "A time range defined by start and end date/time."; - case NULL: return null; default: return "?"; } } @@ -197,7 +194,6 @@ public class ObservationDefinition extends DomainResource { case TIME: return "time"; case DATETIME: return "dateTime"; case PERIOD: return "Period"; - case NULL: return null; default: return "?"; } } @@ -330,7 +326,6 @@ public class ObservationDefinition extends DomainResource { case REFERENCE: return "reference"; case CRITICAL: return "critical"; case ABSOLUTE: return "absolute"; - case NULL: return null; default: return "?"; } } @@ -339,7 +334,6 @@ public class ObservationDefinition extends DomainResource { case REFERENCE: return "http://hl7.org/fhir/observation-range-category"; case CRITICAL: return "http://hl7.org/fhir/observation-range-category"; case ABSOLUTE: return "http://hl7.org/fhir/observation-range-category"; - case NULL: return null; default: return "?"; } } @@ -348,7 +342,6 @@ public class ObservationDefinition extends DomainResource { case REFERENCE: return "Reference (Normal) Range for Ordinal and Continuous Observations."; case CRITICAL: return "Critical Range for Ordinal and Continuous Observations. Results outside this range are critical."; case ABSOLUTE: return "Absolute Range for Ordinal and Continuous Observations. Results outside this range are not possible."; - case NULL: return null; default: return "?"; } } @@ -357,7 +350,6 @@ public class ObservationDefinition extends DomainResource { case REFERENCE: return "reference range"; case CRITICAL: return "critical range"; case ABSOLUTE: return "absolute range"; - case NULL: return null; default: return "?"; } } @@ -409,26 +401,26 @@ public class ObservationDefinition extends DomainResource { @Block() public static class ObservationDefinitionQuantitativeDetailsComponent extends BackboneElement implements IBaseBackboneElement { /** - * Customary unit used to report quantitative results of observations conforming to this ObservationDefinition. + * Primary unit used to report quantitative results of observations conforming to this ObservationDefinition. */ - @Child(name = "customaryUnit", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Customary unit for quantitative results", formalDefinition="Customary unit used to report quantitative results of observations conforming to this ObservationDefinition." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/ucum-units") - protected CodeableConcept customaryUnit; - - /** - * SI unit used to report quantitative results of observations conforming to this ObservationDefinition. - */ - @Child(name = "unit", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="SI unit for quantitative results", formalDefinition="SI unit used to report quantitative results of observations conforming to this ObservationDefinition." ) + @Child(name = "unit", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Primary unit for quantitative results", formalDefinition="Primary unit used to report quantitative results of observations conforming to this ObservationDefinition." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/ucum-units") protected CodeableConcept unit; /** - * Factor for converting value expressed with SI unit to value expressed with customary unit. + * Secondary unit used to report quantitative results of observations conforming to this ObservationDefinition. + */ + @Child(name = "customaryUnit", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Customary (secondary) unit for quantitative results", formalDefinition="Secondary unit used to report quantitative results of observations conforming to this ObservationDefinition." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/ucum-units") + protected CodeableConcept customaryUnit; + + /** + * Factor for converting value expressed with primary unit to value expressed with secondary unit. */ @Child(name = "conversionFactor", type = {DecimalType.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="SI to Customary unit conversion factor", formalDefinition="Factor for converting value expressed with SI unit to value expressed with customary unit." ) + @Description(shortDefinition="Primary to secondary unit conversion factor", formalDefinition="Factor for converting value expressed with primary unit to value expressed with secondary unit." ) protected DecimalType conversionFactor; /** @@ -438,7 +430,7 @@ public class ObservationDefinition extends DomainResource { @Description(shortDefinition="Decimal precision of observation quantitative results", formalDefinition="Number of digits after decimal separator when the results of such observations are of type Quantity." ) protected IntegerType decimalPrecision; - private static final long serialVersionUID = 1790019610L; + private static final long serialVersionUID = -1745187850L; /** * Constructor @@ -448,31 +440,7 @@ public class ObservationDefinition extends DomainResource { } /** - * @return {@link #customaryUnit} (Customary unit used to report quantitative results of observations conforming to this ObservationDefinition.) - */ - public CodeableConcept getCustomaryUnit() { - if (this.customaryUnit == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ObservationDefinitionQuantitativeDetailsComponent.customaryUnit"); - else if (Configuration.doAutoCreate()) - this.customaryUnit = new CodeableConcept(); // cc - return this.customaryUnit; - } - - public boolean hasCustomaryUnit() { - return this.customaryUnit != null && !this.customaryUnit.isEmpty(); - } - - /** - * @param value {@link #customaryUnit} (Customary unit used to report quantitative results of observations conforming to this ObservationDefinition.) - */ - public ObservationDefinitionQuantitativeDetailsComponent setCustomaryUnit(CodeableConcept value) { - this.customaryUnit = value; - return this; - } - - /** - * @return {@link #unit} (SI unit used to report quantitative results of observations conforming to this ObservationDefinition.) + * @return {@link #unit} (Primary unit used to report quantitative results of observations conforming to this ObservationDefinition.) */ public CodeableConcept getUnit() { if (this.unit == null) @@ -488,7 +456,7 @@ public class ObservationDefinition extends DomainResource { } /** - * @param value {@link #unit} (SI unit used to report quantitative results of observations conforming to this ObservationDefinition.) + * @param value {@link #unit} (Primary unit used to report quantitative results of observations conforming to this ObservationDefinition.) */ public ObservationDefinitionQuantitativeDetailsComponent setUnit(CodeableConcept value) { this.unit = value; @@ -496,7 +464,31 @@ public class ObservationDefinition extends DomainResource { } /** - * @return {@link #conversionFactor} (Factor for converting value expressed with SI unit to value expressed with customary unit.). This is the underlying object with id, value and extensions. The accessor "getConversionFactor" gives direct access to the value + * @return {@link #customaryUnit} (Secondary unit used to report quantitative results of observations conforming to this ObservationDefinition.) + */ + public CodeableConcept getCustomaryUnit() { + if (this.customaryUnit == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ObservationDefinitionQuantitativeDetailsComponent.customaryUnit"); + else if (Configuration.doAutoCreate()) + this.customaryUnit = new CodeableConcept(); // cc + return this.customaryUnit; + } + + public boolean hasCustomaryUnit() { + return this.customaryUnit != null && !this.customaryUnit.isEmpty(); + } + + /** + * @param value {@link #customaryUnit} (Secondary unit used to report quantitative results of observations conforming to this ObservationDefinition.) + */ + public ObservationDefinitionQuantitativeDetailsComponent setCustomaryUnit(CodeableConcept value) { + this.customaryUnit = value; + return this; + } + + /** + * @return {@link #conversionFactor} (Factor for converting value expressed with primary unit to value expressed with secondary unit.). This is the underlying object with id, value and extensions. The accessor "getConversionFactor" gives direct access to the value */ public DecimalType getConversionFactorElement() { if (this.conversionFactor == null) @@ -516,7 +508,7 @@ public class ObservationDefinition extends DomainResource { } /** - * @param value {@link #conversionFactor} (Factor for converting value expressed with SI unit to value expressed with customary unit.). This is the underlying object with id, value and extensions. The accessor "getConversionFactor" gives direct access to the value + * @param value {@link #conversionFactor} (Factor for converting value expressed with primary unit to value expressed with secondary unit.). This is the underlying object with id, value and extensions. The accessor "getConversionFactor" gives direct access to the value */ public ObservationDefinitionQuantitativeDetailsComponent setConversionFactorElement(DecimalType value) { this.conversionFactor = value; @@ -524,14 +516,14 @@ public class ObservationDefinition extends DomainResource { } /** - * @return Factor for converting value expressed with SI unit to value expressed with customary unit. + * @return Factor for converting value expressed with primary unit to value expressed with secondary unit. */ public BigDecimal getConversionFactor() { return this.conversionFactor == null ? null : this.conversionFactor.getValue(); } /** - * @param value Factor for converting value expressed with SI unit to value expressed with customary unit. + * @param value Factor for converting value expressed with primary unit to value expressed with secondary unit. */ public ObservationDefinitionQuantitativeDetailsComponent setConversionFactor(BigDecimal value) { if (value == null) @@ -545,7 +537,7 @@ public class ObservationDefinition extends DomainResource { } /** - * @param value Factor for converting value expressed with SI unit to value expressed with customary unit. + * @param value Factor for converting value expressed with primary unit to value expressed with secondary unit. */ public ObservationDefinitionQuantitativeDetailsComponent setConversionFactor(long value) { this.conversionFactor = new DecimalType(); @@ -554,7 +546,7 @@ public class ObservationDefinition extends DomainResource { } /** - * @param value Factor for converting value expressed with SI unit to value expressed with customary unit. + * @param value Factor for converting value expressed with primary unit to value expressed with secondary unit. */ public ObservationDefinitionQuantitativeDetailsComponent setConversionFactor(double value) { this.conversionFactor = new DecimalType(); @@ -609,18 +601,18 @@ public class ObservationDefinition extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("customaryUnit", "CodeableConcept", "Customary unit used to report quantitative results of observations conforming to this ObservationDefinition.", 0, 1, customaryUnit)); - children.add(new Property("unit", "CodeableConcept", "SI unit used to report quantitative results of observations conforming to this ObservationDefinition.", 0, 1, unit)); - children.add(new Property("conversionFactor", "decimal", "Factor for converting value expressed with SI unit to value expressed with customary unit.", 0, 1, conversionFactor)); + children.add(new Property("unit", "CodeableConcept", "Primary unit used to report quantitative results of observations conforming to this ObservationDefinition.", 0, 1, unit)); + children.add(new Property("customaryUnit", "CodeableConcept", "Secondary unit used to report quantitative results of observations conforming to this ObservationDefinition.", 0, 1, customaryUnit)); + children.add(new Property("conversionFactor", "decimal", "Factor for converting value expressed with primary unit to value expressed with secondary unit.", 0, 1, conversionFactor)); children.add(new Property("decimalPrecision", "integer", "Number of digits after decimal separator when the results of such observations are of type Quantity.", 0, 1, decimalPrecision)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -1375586437: /*customaryUnit*/ return new Property("customaryUnit", "CodeableConcept", "Customary unit used to report quantitative results of observations conforming to this ObservationDefinition.", 0, 1, customaryUnit); - case 3594628: /*unit*/ return new Property("unit", "CodeableConcept", "SI unit used to report quantitative results of observations conforming to this ObservationDefinition.", 0, 1, unit); - case 1438876165: /*conversionFactor*/ return new Property("conversionFactor", "decimal", "Factor for converting value expressed with SI unit to value expressed with customary unit.", 0, 1, conversionFactor); + case 3594628: /*unit*/ return new Property("unit", "CodeableConcept", "Primary unit used to report quantitative results of observations conforming to this ObservationDefinition.", 0, 1, unit); + case -1375586437: /*customaryUnit*/ return new Property("customaryUnit", "CodeableConcept", "Secondary unit used to report quantitative results of observations conforming to this ObservationDefinition.", 0, 1, customaryUnit); + case 1438876165: /*conversionFactor*/ return new Property("conversionFactor", "decimal", "Factor for converting value expressed with primary unit to value expressed with secondary unit.", 0, 1, conversionFactor); case -1564447699: /*decimalPrecision*/ return new Property("decimalPrecision", "integer", "Number of digits after decimal separator when the results of such observations are of type Quantity.", 0, 1, decimalPrecision); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -630,8 +622,8 @@ public class ObservationDefinition extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case -1375586437: /*customaryUnit*/ return this.customaryUnit == null ? new Base[0] : new Base[] {this.customaryUnit}; // CodeableConcept case 3594628: /*unit*/ return this.unit == null ? new Base[0] : new Base[] {this.unit}; // CodeableConcept + case -1375586437: /*customaryUnit*/ return this.customaryUnit == null ? new Base[0] : new Base[] {this.customaryUnit}; // CodeableConcept case 1438876165: /*conversionFactor*/ return this.conversionFactor == null ? new Base[0] : new Base[] {this.conversionFactor}; // DecimalType case -1564447699: /*decimalPrecision*/ return this.decimalPrecision == null ? new Base[0] : new Base[] {this.decimalPrecision}; // IntegerType default: return super.getProperty(hash, name, checkValid); @@ -642,12 +634,12 @@ public class ObservationDefinition extends DomainResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { - case -1375586437: // customaryUnit - this.customaryUnit = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; case 3594628: // unit this.unit = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; + case -1375586437: // customaryUnit + this.customaryUnit = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; case 1438876165: // conversionFactor this.conversionFactor = TypeConvertor.castToDecimal(value); // DecimalType return value; @@ -661,10 +653,10 @@ public class ObservationDefinition extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("customaryUnit")) { - this.customaryUnit = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("unit")) { + if (name.equals("unit")) { this.unit = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("customaryUnit")) { + this.customaryUnit = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("conversionFactor")) { this.conversionFactor = TypeConvertor.castToDecimal(value); // DecimalType } else if (name.equals("decimalPrecision")) { @@ -677,8 +669,8 @@ public class ObservationDefinition extends DomainResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { - case -1375586437: return getCustomaryUnit(); case 3594628: return getUnit(); + case -1375586437: return getCustomaryUnit(); case 1438876165: return getConversionFactorElement(); case -1564447699: return getDecimalPrecisionElement(); default: return super.makeProperty(hash, name); @@ -689,8 +681,8 @@ public class ObservationDefinition extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case -1375586437: /*customaryUnit*/ return new String[] {"CodeableConcept"}; case 3594628: /*unit*/ return new String[] {"CodeableConcept"}; + case -1375586437: /*customaryUnit*/ return new String[] {"CodeableConcept"}; case 1438876165: /*conversionFactor*/ return new String[] {"decimal"}; case -1564447699: /*decimalPrecision*/ return new String[] {"integer"}; default: return super.getTypesForProperty(hash, name); @@ -700,14 +692,14 @@ public class ObservationDefinition extends DomainResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("customaryUnit")) { - this.customaryUnit = new CodeableConcept(); - return this.customaryUnit; - } - else if (name.equals("unit")) { + if (name.equals("unit")) { this.unit = new CodeableConcept(); return this.unit; } + else if (name.equals("customaryUnit")) { + this.customaryUnit = new CodeableConcept(); + return this.customaryUnit; + } else if (name.equals("conversionFactor")) { throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.quantitativeDetails.conversionFactor"); } @@ -726,8 +718,8 @@ public class ObservationDefinition extends DomainResource { public void copyValues(ObservationDefinitionQuantitativeDetailsComponent dst) { super.copyValues(dst); - dst.customaryUnit = customaryUnit == null ? null : customaryUnit.copy(); dst.unit = unit == null ? null : unit.copy(); + dst.customaryUnit = customaryUnit == null ? null : customaryUnit.copy(); dst.conversionFactor = conversionFactor == null ? null : conversionFactor.copy(); dst.decimalPrecision = decimalPrecision == null ? null : decimalPrecision.copy(); } @@ -739,7 +731,7 @@ public class ObservationDefinition extends DomainResource { if (!(other_ instanceof ObservationDefinitionQuantitativeDetailsComponent)) return false; ObservationDefinitionQuantitativeDetailsComponent o = (ObservationDefinitionQuantitativeDetailsComponent) other_; - return compareDeep(customaryUnit, o.customaryUnit, true) && compareDeep(unit, o.unit, true) && compareDeep(conversionFactor, o.conversionFactor, true) + return compareDeep(unit, o.unit, true) && compareDeep(customaryUnit, o.customaryUnit, true) && compareDeep(conversionFactor, o.conversionFactor, true) && compareDeep(decimalPrecision, o.decimalPrecision, true); } @@ -755,7 +747,7 @@ public class ObservationDefinition extends DomainResource { } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(customaryUnit, unit, conversionFactor + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(unit, customaryUnit, conversionFactor , decimalPrecision); } @@ -767,156 +759,111 @@ public class ObservationDefinition extends DomainResource { } @Block() - public static class ObservationDefinitionQualifiedIntervalComponent extends BackboneElement implements IBaseBackboneElement { + public static class ObservationDefinitionQualifiedValueComponent extends BackboneElement implements IBaseBackboneElement { /** - * The category of interval of values for continuous or ordinal observations conforming to this ObservationDefinition. + * A concept defining the context for this set of qualified values. */ - @Child(name = "category", type = {CodeType.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="reference | critical | absolute", formalDefinition="The category of interval of values for continuous or ordinal observations conforming to this ObservationDefinition." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-range-category") - protected Enumeration category; - - /** - * The low and high values determining the interval. There may be only one of the two. - */ - @Child(name = "range", type = {Range.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The interval itself, for continuous or ordinal observations", formalDefinition="The low and high values determining the interval. There may be only one of the two." ) - protected Range range; - - /** - * Codes to indicate the health context the range applies to. For example, the normal or therapeutic range. - */ - @Child(name = "context", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Range context qualifier", formalDefinition="Codes to indicate the health context the range applies to. For example, the normal or therapeutic range." ) + @Child(name = "context", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Context qualifier for the set of qualified values", formalDefinition="A concept defining the context for this set of qualified values." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/referencerange-meaning") protected CodeableConcept context; /** - * Codes to indicate the target population this reference range applies to. + * The target population this set of qualified values applies to. */ - @Child(name = "appliesTo", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Targetted population of the range", formalDefinition="Codes to indicate the target population this reference range applies to." ) + @Child(name = "appliesTo", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Targetted population for the set of qualified values", formalDefinition="The target population this set of qualified values applies to." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/referencerange-appliesto") protected List appliesTo; /** - * Sex of the population the range applies to. + * The gender this set of qualified values applies to. */ - @Child(name = "gender", type = {CodeType.class}, order=5, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="male | female | other | unknown", formalDefinition="Sex of the population the range applies to." ) + @Child(name = "gender", type = {CodeType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="male | female | other | unknown", formalDefinition="The gender this set of qualified values applies to." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/administrative-gender") protected Enumeration gender; /** - * The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so. + * The age range this set of qualified values applies to. */ - @Child(name = "age", type = {Range.class}, order=6, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Applicable age range, if relevant", formalDefinition="The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so." ) + @Child(name = "age", type = {Range.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Applicable age range for the set of qualified values", formalDefinition="The age range this set of qualified values applies to." ) protected Range age; /** - * The gestational age to which this reference range is applicable, in the context of pregnancy. + * The gestational age this set of qualified values applies to. */ - @Child(name = "gestationalAge", type = {Range.class}, order=7, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Applicable gestational age range, if relevant", formalDefinition="The gestational age to which this reference range is applicable, in the context of pregnancy." ) + @Child(name = "gestationalAge", type = {Range.class}, order=5, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Applicable gestational age range for the set of qualified values", formalDefinition="The gestational age this set of qualified values applies to." ) protected Range gestationalAge; /** - * Text based condition for which the reference range is valid. + * Text based condition for which the the set of qualified values is valid. */ - @Child(name = "condition", type = {StringType.class}, order=8, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Condition associated with the reference range", formalDefinition="Text based condition for which the reference range is valid." ) + @Child(name = "condition", type = {StringType.class}, order=6, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Condition associated with the set of qualified values", formalDefinition="Text based condition for which the the set of qualified values is valid." ) protected StringType condition; - private static final long serialVersionUID = -416423468L; + /** + * The category of range of values for continuous or ordinal observations that match the criteria of this set of qualified values. + */ + @Child(name = "rangeCategory", type = {CodeType.class}, order=7, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="reference | critical | absolute", formalDefinition="The category of range of values for continuous or ordinal observations that match the criteria of this set of qualified values." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-range-category") + protected Enumeration rangeCategory; + + /** + * The range of values defined for continuous or ordinal observations that match the criteria of this set of qualified values. + */ + @Child(name = "range", type = {Range.class}, order=8, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The range for continuous or ordinal observations", formalDefinition="The range of values defined for continuous or ordinal observations that match the criteria of this set of qualified values." ) + protected Range range; + + /** + * The set of valid coded results for qualitative observations that match the criteria of this set of qualified values. + */ + @Child(name = "validCodedValueSet", type = {CanonicalType.class}, order=9, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Value set of valid coded values as part of this set of qualified values", formalDefinition="The set of valid coded results for qualitative observations that match the criteria of this set of qualified values." ) + protected CanonicalType validCodedValueSet; + + /** + * The set of normal coded results for qualitative observations that match the criteria of this set of qualified values. + */ + @Child(name = "normalCodedValueSet", type = {CanonicalType.class}, order=10, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Value set of normal coded values as part of this set of qualified values", formalDefinition="The set of normal coded results for qualitative observations that match the criteria of this set of qualified values." ) + protected CanonicalType normalCodedValueSet; + + /** + * The set of abnormal coded results for qualitative observations that match the criteria of this set of qualified values. + */ + @Child(name = "abnormalCodedValueSet", type = {CanonicalType.class}, order=11, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Value set of abnormal coded values as part of this set of qualified values", formalDefinition="The set of abnormal coded results for qualitative observations that match the criteria of this set of qualified values." ) + protected CanonicalType abnormalCodedValueSet; + + /** + * The set of critical coded results for qualitative observations that match the criteria of this set of qualified values. + */ + @Child(name = "criticalCodedValueSet", type = {CanonicalType.class}, order=12, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Value set of critical coded values as part of this set of qualified values", formalDefinition="The set of critical coded results for qualitative observations that match the criteria of this set of qualified values." ) + protected CanonicalType criticalCodedValueSet; + + private static final long serialVersionUID = -538666361L; /** * Constructor */ - public ObservationDefinitionQualifiedIntervalComponent() { + public ObservationDefinitionQualifiedValueComponent() { super(); } /** - * @return {@link #category} (The category of interval of values for continuous or ordinal observations conforming to this ObservationDefinition.). This is the underlying object with id, value and extensions. The accessor "getCategory" gives direct access to the value - */ - public Enumeration getCategoryElement() { - if (this.category == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ObservationDefinitionQualifiedIntervalComponent.category"); - else if (Configuration.doAutoCreate()) - this.category = new Enumeration(new ObservationRangeCategoryEnumFactory()); // bb - return this.category; - } - - public boolean hasCategoryElement() { - return this.category != null && !this.category.isEmpty(); - } - - public boolean hasCategory() { - return this.category != null && !this.category.isEmpty(); - } - - /** - * @param value {@link #category} (The category of interval of values for continuous or ordinal observations conforming to this ObservationDefinition.). This is the underlying object with id, value and extensions. The accessor "getCategory" gives direct access to the value - */ - public ObservationDefinitionQualifiedIntervalComponent setCategoryElement(Enumeration value) { - this.category = value; - return this; - } - - /** - * @return The category of interval of values for continuous or ordinal observations conforming to this ObservationDefinition. - */ - public ObservationRangeCategory getCategory() { - return this.category == null ? null : this.category.getValue(); - } - - /** - * @param value The category of interval of values for continuous or ordinal observations conforming to this ObservationDefinition. - */ - public ObservationDefinitionQualifiedIntervalComponent setCategory(ObservationRangeCategory value) { - if (value == null) - this.category = null; - else { - if (this.category == null) - this.category = new Enumeration(new ObservationRangeCategoryEnumFactory()); - this.category.setValue(value); - } - return this; - } - - /** - * @return {@link #range} (The low and high values determining the interval. There may be only one of the two.) - */ - public Range getRange() { - if (this.range == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ObservationDefinitionQualifiedIntervalComponent.range"); - else if (Configuration.doAutoCreate()) - this.range = new Range(); // cc - return this.range; - } - - public boolean hasRange() { - return this.range != null && !this.range.isEmpty(); - } - - /** - * @param value {@link #range} (The low and high values determining the interval. There may be only one of the two.) - */ - public ObservationDefinitionQualifiedIntervalComponent setRange(Range value) { - this.range = value; - return this; - } - - /** - * @return {@link #context} (Codes to indicate the health context the range applies to. For example, the normal or therapeutic range.) + * @return {@link #context} (A concept defining the context for this set of qualified values.) */ public CodeableConcept getContext() { if (this.context == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ObservationDefinitionQualifiedIntervalComponent.context"); + throw new Error("Attempt to auto-create ObservationDefinitionQualifiedValueComponent.context"); else if (Configuration.doAutoCreate()) this.context = new CodeableConcept(); // cc return this.context; @@ -927,15 +874,15 @@ public class ObservationDefinition extends DomainResource { } /** - * @param value {@link #context} (Codes to indicate the health context the range applies to. For example, the normal or therapeutic range.) + * @param value {@link #context} (A concept defining the context for this set of qualified values.) */ - public ObservationDefinitionQualifiedIntervalComponent setContext(CodeableConcept value) { + public ObservationDefinitionQualifiedValueComponent setContext(CodeableConcept value) { this.context = value; return this; } /** - * @return {@link #appliesTo} (Codes to indicate the target population this reference range applies to.) + * @return {@link #appliesTo} (The target population this set of qualified values applies to.) */ public List getAppliesTo() { if (this.appliesTo == null) @@ -946,7 +893,7 @@ public class ObservationDefinition extends DomainResource { /** * @return Returns a reference to this for easy method chaining */ - public ObservationDefinitionQualifiedIntervalComponent setAppliesTo(List theAppliesTo) { + public ObservationDefinitionQualifiedValueComponent setAppliesTo(List theAppliesTo) { this.appliesTo = theAppliesTo; return this; } @@ -968,7 +915,7 @@ public class ObservationDefinition extends DomainResource { return t; } - public ObservationDefinitionQualifiedIntervalComponent addAppliesTo(CodeableConcept t) { //3 + public ObservationDefinitionQualifiedValueComponent addAppliesTo(CodeableConcept t) { //3 if (t == null) return this; if (this.appliesTo == null) @@ -988,12 +935,12 @@ public class ObservationDefinition extends DomainResource { } /** - * @return {@link #gender} (Sex of the population the range applies to.). This is the underlying object with id, value and extensions. The accessor "getGender" gives direct access to the value + * @return {@link #gender} (The gender this set of qualified values applies to.). This is the underlying object with id, value and extensions. The accessor "getGender" gives direct access to the value */ public Enumeration getGenderElement() { if (this.gender == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ObservationDefinitionQualifiedIntervalComponent.gender"); + throw new Error("Attempt to auto-create ObservationDefinitionQualifiedValueComponent.gender"); else if (Configuration.doAutoCreate()) this.gender = new Enumeration(new AdministrativeGenderEnumFactory()); // bb return this.gender; @@ -1008,24 +955,24 @@ public class ObservationDefinition extends DomainResource { } /** - * @param value {@link #gender} (Sex of the population the range applies to.). This is the underlying object with id, value and extensions. The accessor "getGender" gives direct access to the value + * @param value {@link #gender} (The gender this set of qualified values applies to.). This is the underlying object with id, value and extensions. The accessor "getGender" gives direct access to the value */ - public ObservationDefinitionQualifiedIntervalComponent setGenderElement(Enumeration value) { + public ObservationDefinitionQualifiedValueComponent setGenderElement(Enumeration value) { this.gender = value; return this; } /** - * @return Sex of the population the range applies to. + * @return The gender this set of qualified values applies to. */ public AdministrativeGender getGender() { return this.gender == null ? null : this.gender.getValue(); } /** - * @param value Sex of the population the range applies to. + * @param value The gender this set of qualified values applies to. */ - public ObservationDefinitionQualifiedIntervalComponent setGender(AdministrativeGender value) { + public ObservationDefinitionQualifiedValueComponent setGender(AdministrativeGender value) { if (value == null) this.gender = null; else { @@ -1037,12 +984,12 @@ public class ObservationDefinition extends DomainResource { } /** - * @return {@link #age} (The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.) + * @return {@link #age} (The age range this set of qualified values applies to.) */ public Range getAge() { if (this.age == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ObservationDefinitionQualifiedIntervalComponent.age"); + throw new Error("Attempt to auto-create ObservationDefinitionQualifiedValueComponent.age"); else if (Configuration.doAutoCreate()) this.age = new Range(); // cc return this.age; @@ -1053,20 +1000,20 @@ public class ObservationDefinition extends DomainResource { } /** - * @param value {@link #age} (The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.) + * @param value {@link #age} (The age range this set of qualified values applies to.) */ - public ObservationDefinitionQualifiedIntervalComponent setAge(Range value) { + public ObservationDefinitionQualifiedValueComponent setAge(Range value) { this.age = value; return this; } /** - * @return {@link #gestationalAge} (The gestational age to which this reference range is applicable, in the context of pregnancy.) + * @return {@link #gestationalAge} (The gestational age this set of qualified values applies to.) */ public Range getGestationalAge() { if (this.gestationalAge == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ObservationDefinitionQualifiedIntervalComponent.gestationalAge"); + throw new Error("Attempt to auto-create ObservationDefinitionQualifiedValueComponent.gestationalAge"); else if (Configuration.doAutoCreate()) this.gestationalAge = new Range(); // cc return this.gestationalAge; @@ -1077,20 +1024,20 @@ public class ObservationDefinition extends DomainResource { } /** - * @param value {@link #gestationalAge} (The gestational age to which this reference range is applicable, in the context of pregnancy.) + * @param value {@link #gestationalAge} (The gestational age this set of qualified values applies to.) */ - public ObservationDefinitionQualifiedIntervalComponent setGestationalAge(Range value) { + public ObservationDefinitionQualifiedValueComponent setGestationalAge(Range value) { this.gestationalAge = value; return this; } /** - * @return {@link #condition} (Text based condition for which the reference range is valid.). This is the underlying object with id, value and extensions. The accessor "getCondition" gives direct access to the value + * @return {@link #condition} (Text based condition for which the the set of qualified values is valid.). This is the underlying object with id, value and extensions. The accessor "getCondition" gives direct access to the value */ public StringType getConditionElement() { if (this.condition == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ObservationDefinitionQualifiedIntervalComponent.condition"); + throw new Error("Attempt to auto-create ObservationDefinitionQualifiedValueComponent.condition"); else if (Configuration.doAutoCreate()) this.condition = new StringType(); // bb return this.condition; @@ -1105,24 +1052,24 @@ public class ObservationDefinition extends DomainResource { } /** - * @param value {@link #condition} (Text based condition for which the reference range is valid.). This is the underlying object with id, value and extensions. The accessor "getCondition" gives direct access to the value + * @param value {@link #condition} (Text based condition for which the the set of qualified values is valid.). This is the underlying object with id, value and extensions. The accessor "getCondition" gives direct access to the value */ - public ObservationDefinitionQualifiedIntervalComponent setConditionElement(StringType value) { + public ObservationDefinitionQualifiedValueComponent setConditionElement(StringType value) { this.condition = value; return this; } /** - * @return Text based condition for which the reference range is valid. + * @return Text based condition for which the the set of qualified values is valid. */ public String getCondition() { return this.condition == null ? null : this.condition.getValue(); } /** - * @param value Text based condition for which the reference range is valid. + * @param value Text based condition for which the the set of qualified values is valid. */ - public ObservationDefinitionQualifiedIntervalComponent setCondition(String value) { + public ObservationDefinitionQualifiedValueComponent setCondition(String value) { if (Utilities.noString(value)) this.condition = null; else { @@ -1133,29 +1080,306 @@ public class ObservationDefinition extends DomainResource { return this; } + /** + * @return {@link #rangeCategory} (The category of range of values for continuous or ordinal observations that match the criteria of this set of qualified values.). This is the underlying object with id, value and extensions. The accessor "getRangeCategory" gives direct access to the value + */ + public Enumeration getRangeCategoryElement() { + if (this.rangeCategory == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ObservationDefinitionQualifiedValueComponent.rangeCategory"); + else if (Configuration.doAutoCreate()) + this.rangeCategory = new Enumeration(new ObservationRangeCategoryEnumFactory()); // bb + return this.rangeCategory; + } + + public boolean hasRangeCategoryElement() { + return this.rangeCategory != null && !this.rangeCategory.isEmpty(); + } + + public boolean hasRangeCategory() { + return this.rangeCategory != null && !this.rangeCategory.isEmpty(); + } + + /** + * @param value {@link #rangeCategory} (The category of range of values for continuous or ordinal observations that match the criteria of this set of qualified values.). This is the underlying object with id, value and extensions. The accessor "getRangeCategory" gives direct access to the value + */ + public ObservationDefinitionQualifiedValueComponent setRangeCategoryElement(Enumeration value) { + this.rangeCategory = value; + return this; + } + + /** + * @return The category of range of values for continuous or ordinal observations that match the criteria of this set of qualified values. + */ + public ObservationRangeCategory getRangeCategory() { + return this.rangeCategory == null ? null : this.rangeCategory.getValue(); + } + + /** + * @param value The category of range of values for continuous or ordinal observations that match the criteria of this set of qualified values. + */ + public ObservationDefinitionQualifiedValueComponent setRangeCategory(ObservationRangeCategory value) { + if (value == null) + this.rangeCategory = null; + else { + if (this.rangeCategory == null) + this.rangeCategory = new Enumeration(new ObservationRangeCategoryEnumFactory()); + this.rangeCategory.setValue(value); + } + return this; + } + + /** + * @return {@link #range} (The range of values defined for continuous or ordinal observations that match the criteria of this set of qualified values.) + */ + public Range getRange() { + if (this.range == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ObservationDefinitionQualifiedValueComponent.range"); + else if (Configuration.doAutoCreate()) + this.range = new Range(); // cc + return this.range; + } + + public boolean hasRange() { + return this.range != null && !this.range.isEmpty(); + } + + /** + * @param value {@link #range} (The range of values defined for continuous or ordinal observations that match the criteria of this set of qualified values.) + */ + public ObservationDefinitionQualifiedValueComponent setRange(Range value) { + this.range = value; + return this; + } + + /** + * @return {@link #validCodedValueSet} (The set of valid coded results for qualitative observations that match the criteria of this set of qualified values.). This is the underlying object with id, value and extensions. The accessor "getValidCodedValueSet" gives direct access to the value + */ + public CanonicalType getValidCodedValueSetElement() { + if (this.validCodedValueSet == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ObservationDefinitionQualifiedValueComponent.validCodedValueSet"); + else if (Configuration.doAutoCreate()) + this.validCodedValueSet = new CanonicalType(); // bb + return this.validCodedValueSet; + } + + public boolean hasValidCodedValueSetElement() { + return this.validCodedValueSet != null && !this.validCodedValueSet.isEmpty(); + } + + public boolean hasValidCodedValueSet() { + return this.validCodedValueSet != null && !this.validCodedValueSet.isEmpty(); + } + + /** + * @param value {@link #validCodedValueSet} (The set of valid coded results for qualitative observations that match the criteria of this set of qualified values.). This is the underlying object with id, value and extensions. The accessor "getValidCodedValueSet" gives direct access to the value + */ + public ObservationDefinitionQualifiedValueComponent setValidCodedValueSetElement(CanonicalType value) { + this.validCodedValueSet = value; + return this; + } + + /** + * @return The set of valid coded results for qualitative observations that match the criteria of this set of qualified values. + */ + public String getValidCodedValueSet() { + return this.validCodedValueSet == null ? null : this.validCodedValueSet.getValue(); + } + + /** + * @param value The set of valid coded results for qualitative observations that match the criteria of this set of qualified values. + */ + public ObservationDefinitionQualifiedValueComponent setValidCodedValueSet(String value) { + if (Utilities.noString(value)) + this.validCodedValueSet = null; + else { + if (this.validCodedValueSet == null) + this.validCodedValueSet = new CanonicalType(); + this.validCodedValueSet.setValue(value); + } + return this; + } + + /** + * @return {@link #normalCodedValueSet} (The set of normal coded results for qualitative observations that match the criteria of this set of qualified values.). This is the underlying object with id, value and extensions. The accessor "getNormalCodedValueSet" gives direct access to the value + */ + public CanonicalType getNormalCodedValueSetElement() { + if (this.normalCodedValueSet == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ObservationDefinitionQualifiedValueComponent.normalCodedValueSet"); + else if (Configuration.doAutoCreate()) + this.normalCodedValueSet = new CanonicalType(); // bb + return this.normalCodedValueSet; + } + + public boolean hasNormalCodedValueSetElement() { + return this.normalCodedValueSet != null && !this.normalCodedValueSet.isEmpty(); + } + + public boolean hasNormalCodedValueSet() { + return this.normalCodedValueSet != null && !this.normalCodedValueSet.isEmpty(); + } + + /** + * @param value {@link #normalCodedValueSet} (The set of normal coded results for qualitative observations that match the criteria of this set of qualified values.). This is the underlying object with id, value and extensions. The accessor "getNormalCodedValueSet" gives direct access to the value + */ + public ObservationDefinitionQualifiedValueComponent setNormalCodedValueSetElement(CanonicalType value) { + this.normalCodedValueSet = value; + return this; + } + + /** + * @return The set of normal coded results for qualitative observations that match the criteria of this set of qualified values. + */ + public String getNormalCodedValueSet() { + return this.normalCodedValueSet == null ? null : this.normalCodedValueSet.getValue(); + } + + /** + * @param value The set of normal coded results for qualitative observations that match the criteria of this set of qualified values. + */ + public ObservationDefinitionQualifiedValueComponent setNormalCodedValueSet(String value) { + if (Utilities.noString(value)) + this.normalCodedValueSet = null; + else { + if (this.normalCodedValueSet == null) + this.normalCodedValueSet = new CanonicalType(); + this.normalCodedValueSet.setValue(value); + } + return this; + } + + /** + * @return {@link #abnormalCodedValueSet} (The set of abnormal coded results for qualitative observations that match the criteria of this set of qualified values.). This is the underlying object with id, value and extensions. The accessor "getAbnormalCodedValueSet" gives direct access to the value + */ + public CanonicalType getAbnormalCodedValueSetElement() { + if (this.abnormalCodedValueSet == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ObservationDefinitionQualifiedValueComponent.abnormalCodedValueSet"); + else if (Configuration.doAutoCreate()) + this.abnormalCodedValueSet = new CanonicalType(); // bb + return this.abnormalCodedValueSet; + } + + public boolean hasAbnormalCodedValueSetElement() { + return this.abnormalCodedValueSet != null && !this.abnormalCodedValueSet.isEmpty(); + } + + public boolean hasAbnormalCodedValueSet() { + return this.abnormalCodedValueSet != null && !this.abnormalCodedValueSet.isEmpty(); + } + + /** + * @param value {@link #abnormalCodedValueSet} (The set of abnormal coded results for qualitative observations that match the criteria of this set of qualified values.). This is the underlying object with id, value and extensions. The accessor "getAbnormalCodedValueSet" gives direct access to the value + */ + public ObservationDefinitionQualifiedValueComponent setAbnormalCodedValueSetElement(CanonicalType value) { + this.abnormalCodedValueSet = value; + return this; + } + + /** + * @return The set of abnormal coded results for qualitative observations that match the criteria of this set of qualified values. + */ + public String getAbnormalCodedValueSet() { + return this.abnormalCodedValueSet == null ? null : this.abnormalCodedValueSet.getValue(); + } + + /** + * @param value The set of abnormal coded results for qualitative observations that match the criteria of this set of qualified values. + */ + public ObservationDefinitionQualifiedValueComponent setAbnormalCodedValueSet(String value) { + if (Utilities.noString(value)) + this.abnormalCodedValueSet = null; + else { + if (this.abnormalCodedValueSet == null) + this.abnormalCodedValueSet = new CanonicalType(); + this.abnormalCodedValueSet.setValue(value); + } + return this; + } + + /** + * @return {@link #criticalCodedValueSet} (The set of critical coded results for qualitative observations that match the criteria of this set of qualified values.). This is the underlying object with id, value and extensions. The accessor "getCriticalCodedValueSet" gives direct access to the value + */ + public CanonicalType getCriticalCodedValueSetElement() { + if (this.criticalCodedValueSet == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ObservationDefinitionQualifiedValueComponent.criticalCodedValueSet"); + else if (Configuration.doAutoCreate()) + this.criticalCodedValueSet = new CanonicalType(); // bb + return this.criticalCodedValueSet; + } + + public boolean hasCriticalCodedValueSetElement() { + return this.criticalCodedValueSet != null && !this.criticalCodedValueSet.isEmpty(); + } + + public boolean hasCriticalCodedValueSet() { + return this.criticalCodedValueSet != null && !this.criticalCodedValueSet.isEmpty(); + } + + /** + * @param value {@link #criticalCodedValueSet} (The set of critical coded results for qualitative observations that match the criteria of this set of qualified values.). This is the underlying object with id, value and extensions. The accessor "getCriticalCodedValueSet" gives direct access to the value + */ + public ObservationDefinitionQualifiedValueComponent setCriticalCodedValueSetElement(CanonicalType value) { + this.criticalCodedValueSet = value; + return this; + } + + /** + * @return The set of critical coded results for qualitative observations that match the criteria of this set of qualified values. + */ + public String getCriticalCodedValueSet() { + return this.criticalCodedValueSet == null ? null : this.criticalCodedValueSet.getValue(); + } + + /** + * @param value The set of critical coded results for qualitative observations that match the criteria of this set of qualified values. + */ + public ObservationDefinitionQualifiedValueComponent setCriticalCodedValueSet(String value) { + if (Utilities.noString(value)) + this.criticalCodedValueSet = null; + else { + if (this.criticalCodedValueSet == null) + this.criticalCodedValueSet = new CanonicalType(); + this.criticalCodedValueSet.setValue(value); + } + return this; + } + protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("category", "code", "The category of interval of values for continuous or ordinal observations conforming to this ObservationDefinition.", 0, 1, category)); - children.add(new Property("range", "Range", "The low and high values determining the interval. There may be only one of the two.", 0, 1, range)); - children.add(new Property("context", "CodeableConcept", "Codes to indicate the health context the range applies to. For example, the normal or therapeutic range.", 0, 1, context)); - children.add(new Property("appliesTo", "CodeableConcept", "Codes to indicate the target population this reference range applies to.", 0, java.lang.Integer.MAX_VALUE, appliesTo)); - children.add(new Property("gender", "code", "Sex of the population the range applies to.", 0, 1, gender)); - children.add(new Property("age", "Range", "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.", 0, 1, age)); - children.add(new Property("gestationalAge", "Range", "The gestational age to which this reference range is applicable, in the context of pregnancy.", 0, 1, gestationalAge)); - children.add(new Property("condition", "string", "Text based condition for which the reference range is valid.", 0, 1, condition)); + children.add(new Property("context", "CodeableConcept", "A concept defining the context for this set of qualified values.", 0, 1, context)); + children.add(new Property("appliesTo", "CodeableConcept", "The target population this set of qualified values applies to.", 0, java.lang.Integer.MAX_VALUE, appliesTo)); + children.add(new Property("gender", "code", "The gender this set of qualified values applies to.", 0, 1, gender)); + children.add(new Property("age", "Range", "The age range this set of qualified values applies to.", 0, 1, age)); + children.add(new Property("gestationalAge", "Range", "The gestational age this set of qualified values applies to.", 0, 1, gestationalAge)); + children.add(new Property("condition", "string", "Text based condition for which the the set of qualified values is valid.", 0, 1, condition)); + children.add(new Property("rangeCategory", "code", "The category of range of values for continuous or ordinal observations that match the criteria of this set of qualified values.", 0, 1, rangeCategory)); + children.add(new Property("range", "Range", "The range of values defined for continuous or ordinal observations that match the criteria of this set of qualified values.", 0, 1, range)); + children.add(new Property("validCodedValueSet", "canonical(ValueSet)", "The set of valid coded results for qualitative observations that match the criteria of this set of qualified values.", 0, 1, validCodedValueSet)); + children.add(new Property("normalCodedValueSet", "canonical(ValueSet)", "The set of normal coded results for qualitative observations that match the criteria of this set of qualified values.", 0, 1, normalCodedValueSet)); + children.add(new Property("abnormalCodedValueSet", "canonical(ValueSet)", "The set of abnormal coded results for qualitative observations that match the criteria of this set of qualified values.", 0, 1, abnormalCodedValueSet)); + children.add(new Property("criticalCodedValueSet", "canonical(ValueSet)", "The set of critical coded results for qualitative observations that match the criteria of this set of qualified values.", 0, 1, criticalCodedValueSet)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 50511102: /*category*/ return new Property("category", "code", "The category of interval of values for continuous or ordinal observations conforming to this ObservationDefinition.", 0, 1, category); - case 108280125: /*range*/ return new Property("range", "Range", "The low and high values determining the interval. There may be only one of the two.", 0, 1, range); - case 951530927: /*context*/ return new Property("context", "CodeableConcept", "Codes to indicate the health context the range applies to. For example, the normal or therapeutic range.", 0, 1, context); - case -2089924569: /*appliesTo*/ return new Property("appliesTo", "CodeableConcept", "Codes to indicate the target population this reference range applies to.", 0, java.lang.Integer.MAX_VALUE, appliesTo); - case -1249512767: /*gender*/ return new Property("gender", "code", "Sex of the population the range applies to.", 0, 1, gender); - case 96511: /*age*/ return new Property("age", "Range", "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.", 0, 1, age); - case -241217538: /*gestationalAge*/ return new Property("gestationalAge", "Range", "The gestational age to which this reference range is applicable, in the context of pregnancy.", 0, 1, gestationalAge); - case -861311717: /*condition*/ return new Property("condition", "string", "Text based condition for which the reference range is valid.", 0, 1, condition); + case 951530927: /*context*/ return new Property("context", "CodeableConcept", "A concept defining the context for this set of qualified values.", 0, 1, context); + case -2089924569: /*appliesTo*/ return new Property("appliesTo", "CodeableConcept", "The target population this set of qualified values applies to.", 0, java.lang.Integer.MAX_VALUE, appliesTo); + case -1249512767: /*gender*/ return new Property("gender", "code", "The gender this set of qualified values applies to.", 0, 1, gender); + case 96511: /*age*/ return new Property("age", "Range", "The age range this set of qualified values applies to.", 0, 1, age); + case -241217538: /*gestationalAge*/ return new Property("gestationalAge", "Range", "The gestational age this set of qualified values applies to.", 0, 1, gestationalAge); + case -861311717: /*condition*/ return new Property("condition", "string", "Text based condition for which the the set of qualified values is valid.", 0, 1, condition); + case -363410085: /*rangeCategory*/ return new Property("rangeCategory", "code", "The category of range of values for continuous or ordinal observations that match the criteria of this set of qualified values.", 0, 1, rangeCategory); + case 108280125: /*range*/ return new Property("range", "Range", "The range of values defined for continuous or ordinal observations that match the criteria of this set of qualified values.", 0, 1, range); + case 1374640076: /*validCodedValueSet*/ return new Property("validCodedValueSet", "canonical(ValueSet)", "The set of valid coded results for qualitative observations that match the criteria of this set of qualified values.", 0, 1, validCodedValueSet); + case -837500735: /*normalCodedValueSet*/ return new Property("normalCodedValueSet", "canonical(ValueSet)", "The set of normal coded results for qualitative observations that match the criteria of this set of qualified values.", 0, 1, normalCodedValueSet); + case 1073600256: /*abnormalCodedValueSet*/ return new Property("abnormalCodedValueSet", "canonical(ValueSet)", "The set of abnormal coded results for qualitative observations that match the criteria of this set of qualified values.", 0, 1, abnormalCodedValueSet); + case 2568457: /*criticalCodedValueSet*/ return new Property("criticalCodedValueSet", "canonical(ValueSet)", "The set of critical coded results for qualitative observations that match the criteria of this set of qualified values.", 0, 1, criticalCodedValueSet); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -1164,14 +1388,18 @@ public class ObservationDefinition extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case 50511102: /*category*/ return this.category == null ? new Base[0] : new Base[] {this.category}; // Enumeration - case 108280125: /*range*/ return this.range == null ? new Base[0] : new Base[] {this.range}; // Range case 951530927: /*context*/ return this.context == null ? new Base[0] : new Base[] {this.context}; // CodeableConcept case -2089924569: /*appliesTo*/ return this.appliesTo == null ? new Base[0] : this.appliesTo.toArray(new Base[this.appliesTo.size()]); // CodeableConcept case -1249512767: /*gender*/ return this.gender == null ? new Base[0] : new Base[] {this.gender}; // Enumeration case 96511: /*age*/ return this.age == null ? new Base[0] : new Base[] {this.age}; // Range case -241217538: /*gestationalAge*/ return this.gestationalAge == null ? new Base[0] : new Base[] {this.gestationalAge}; // Range case -861311717: /*condition*/ return this.condition == null ? new Base[0] : new Base[] {this.condition}; // StringType + case -363410085: /*rangeCategory*/ return this.rangeCategory == null ? new Base[0] : new Base[] {this.rangeCategory}; // Enumeration + case 108280125: /*range*/ return this.range == null ? new Base[0] : new Base[] {this.range}; // Range + case 1374640076: /*validCodedValueSet*/ return this.validCodedValueSet == null ? new Base[0] : new Base[] {this.validCodedValueSet}; // CanonicalType + case -837500735: /*normalCodedValueSet*/ return this.normalCodedValueSet == null ? new Base[0] : new Base[] {this.normalCodedValueSet}; // CanonicalType + case 1073600256: /*abnormalCodedValueSet*/ return this.abnormalCodedValueSet == null ? new Base[0] : new Base[] {this.abnormalCodedValueSet}; // CanonicalType + case 2568457: /*criticalCodedValueSet*/ return this.criticalCodedValueSet == null ? new Base[0] : new Base[] {this.criticalCodedValueSet}; // CanonicalType default: return super.getProperty(hash, name, checkValid); } @@ -1180,13 +1408,6 @@ public class ObservationDefinition extends DomainResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { - case 50511102: // category - value = new ObservationRangeCategoryEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.category = (Enumeration) value; // Enumeration - return value; - case 108280125: // range - this.range = TypeConvertor.castToRange(value); // Range - return value; case 951530927: // context this.context = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; @@ -1206,6 +1427,25 @@ public class ObservationDefinition extends DomainResource { case -861311717: // condition this.condition = TypeConvertor.castToString(value); // StringType return value; + case -363410085: // rangeCategory + value = new ObservationRangeCategoryEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.rangeCategory = (Enumeration) value; // Enumeration + return value; + case 108280125: // range + this.range = TypeConvertor.castToRange(value); // Range + return value; + case 1374640076: // validCodedValueSet + this.validCodedValueSet = TypeConvertor.castToCanonical(value); // CanonicalType + return value; + case -837500735: // normalCodedValueSet + this.normalCodedValueSet = TypeConvertor.castToCanonical(value); // CanonicalType + return value; + case 1073600256: // abnormalCodedValueSet + this.abnormalCodedValueSet = TypeConvertor.castToCanonical(value); // CanonicalType + return value; + case 2568457: // criticalCodedValueSet + this.criticalCodedValueSet = TypeConvertor.castToCanonical(value); // CanonicalType + return value; default: return super.setProperty(hash, name, value); } @@ -1213,12 +1453,7 @@ public class ObservationDefinition extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("category")) { - value = new ObservationRangeCategoryEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.category = (Enumeration) value; // Enumeration - } else if (name.equals("range")) { - this.range = TypeConvertor.castToRange(value); // Range - } else if (name.equals("context")) { + if (name.equals("context")) { this.context = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("appliesTo")) { this.getAppliesTo().add(TypeConvertor.castToCodeableConcept(value)); @@ -1231,6 +1466,19 @@ public class ObservationDefinition extends DomainResource { this.gestationalAge = TypeConvertor.castToRange(value); // Range } else if (name.equals("condition")) { this.condition = TypeConvertor.castToString(value); // StringType + } else if (name.equals("rangeCategory")) { + value = new ObservationRangeCategoryEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.rangeCategory = (Enumeration) value; // Enumeration + } else if (name.equals("range")) { + this.range = TypeConvertor.castToRange(value); // Range + } else if (name.equals("validCodedValueSet")) { + this.validCodedValueSet = TypeConvertor.castToCanonical(value); // CanonicalType + } else if (name.equals("normalCodedValueSet")) { + this.normalCodedValueSet = TypeConvertor.castToCanonical(value); // CanonicalType + } else if (name.equals("abnormalCodedValueSet")) { + this.abnormalCodedValueSet = TypeConvertor.castToCanonical(value); // CanonicalType + } else if (name.equals("criticalCodedValueSet")) { + this.criticalCodedValueSet = TypeConvertor.castToCanonical(value); // CanonicalType } else return super.setProperty(name, value); return value; @@ -1239,14 +1487,18 @@ public class ObservationDefinition extends DomainResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { - case 50511102: return getCategoryElement(); - case 108280125: return getRange(); case 951530927: return getContext(); case -2089924569: return addAppliesTo(); case -1249512767: return getGenderElement(); case 96511: return getAge(); case -241217538: return getGestationalAge(); case -861311717: return getConditionElement(); + case -363410085: return getRangeCategoryElement(); + case 108280125: return getRange(); + case 1374640076: return getValidCodedValueSetElement(); + case -837500735: return getNormalCodedValueSetElement(); + case 1073600256: return getAbnormalCodedValueSetElement(); + case 2568457: return getCriticalCodedValueSetElement(); default: return super.makeProperty(hash, name); } @@ -1255,14 +1507,18 @@ public class ObservationDefinition extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case 50511102: /*category*/ return new String[] {"code"}; - case 108280125: /*range*/ return new String[] {"Range"}; case 951530927: /*context*/ return new String[] {"CodeableConcept"}; case -2089924569: /*appliesTo*/ return new String[] {"CodeableConcept"}; case -1249512767: /*gender*/ return new String[] {"code"}; case 96511: /*age*/ return new String[] {"Range"}; case -241217538: /*gestationalAge*/ return new String[] {"Range"}; case -861311717: /*condition*/ return new String[] {"string"}; + case -363410085: /*rangeCategory*/ return new String[] {"code"}; + case 108280125: /*range*/ return new String[] {"Range"}; + case 1374640076: /*validCodedValueSet*/ return new String[] {"canonical"}; + case -837500735: /*normalCodedValueSet*/ return new String[] {"canonical"}; + case 1073600256: /*abnormalCodedValueSet*/ return new String[] {"canonical"}; + case 2568457: /*criticalCodedValueSet*/ return new String[] {"canonical"}; default: return super.getTypesForProperty(hash, name); } @@ -1270,14 +1526,7 @@ public class ObservationDefinition extends DomainResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("category")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedInterval.category"); - } - else if (name.equals("range")) { - this.range = new Range(); - return this.range; - } - else if (name.equals("context")) { + if (name.equals("context")) { this.context = new CodeableConcept(); return this.context; } @@ -1285,7 +1534,7 @@ public class ObservationDefinition extends DomainResource { return addAppliesTo(); } else if (name.equals("gender")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedInterval.gender"); + throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedValue.gender"); } else if (name.equals("age")) { this.age = new Range(); @@ -1296,22 +1545,39 @@ public class ObservationDefinition extends DomainResource { return this.gestationalAge; } else if (name.equals("condition")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedInterval.condition"); + throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedValue.condition"); + } + else if (name.equals("rangeCategory")) { + throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedValue.rangeCategory"); + } + else if (name.equals("range")) { + this.range = new Range(); + return this.range; + } + else if (name.equals("validCodedValueSet")) { + throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedValue.validCodedValueSet"); + } + else if (name.equals("normalCodedValueSet")) { + throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedValue.normalCodedValueSet"); + } + else if (name.equals("abnormalCodedValueSet")) { + throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedValue.abnormalCodedValueSet"); + } + else if (name.equals("criticalCodedValueSet")) { + throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.qualifiedValue.criticalCodedValueSet"); } else return super.addChild(name); } - public ObservationDefinitionQualifiedIntervalComponent copy() { - ObservationDefinitionQualifiedIntervalComponent dst = new ObservationDefinitionQualifiedIntervalComponent(); + public ObservationDefinitionQualifiedValueComponent copy() { + ObservationDefinitionQualifiedValueComponent dst = new ObservationDefinitionQualifiedValueComponent(); copyValues(dst); return dst; } - public void copyValues(ObservationDefinitionQualifiedIntervalComponent dst) { + public void copyValues(ObservationDefinitionQualifiedValueComponent dst) { super.copyValues(dst); - dst.category = category == null ? null : category.copy(); - dst.range = range == null ? null : range.copy(); dst.context = context == null ? null : context.copy(); if (appliesTo != null) { dst.appliesTo = new ArrayList(); @@ -1322,39 +1588,49 @@ public class ObservationDefinition extends DomainResource { dst.age = age == null ? null : age.copy(); dst.gestationalAge = gestationalAge == null ? null : gestationalAge.copy(); dst.condition = condition == null ? null : condition.copy(); + dst.rangeCategory = rangeCategory == null ? null : rangeCategory.copy(); + dst.range = range == null ? null : range.copy(); + dst.validCodedValueSet = validCodedValueSet == null ? null : validCodedValueSet.copy(); + dst.normalCodedValueSet = normalCodedValueSet == null ? null : normalCodedValueSet.copy(); + dst.abnormalCodedValueSet = abnormalCodedValueSet == null ? null : abnormalCodedValueSet.copy(); + dst.criticalCodedValueSet = criticalCodedValueSet == null ? null : criticalCodedValueSet.copy(); } @Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof ObservationDefinitionQualifiedIntervalComponent)) + if (!(other_ instanceof ObservationDefinitionQualifiedValueComponent)) return false; - ObservationDefinitionQualifiedIntervalComponent o = (ObservationDefinitionQualifiedIntervalComponent) other_; - return compareDeep(category, o.category, true) && compareDeep(range, o.range, true) && compareDeep(context, o.context, true) - && compareDeep(appliesTo, o.appliesTo, true) && compareDeep(gender, o.gender, true) && compareDeep(age, o.age, true) - && compareDeep(gestationalAge, o.gestationalAge, true) && compareDeep(condition, o.condition, true) - ; + ObservationDefinitionQualifiedValueComponent o = (ObservationDefinitionQualifiedValueComponent) other_; + return compareDeep(context, o.context, true) && compareDeep(appliesTo, o.appliesTo, true) && compareDeep(gender, o.gender, true) + && compareDeep(age, o.age, true) && compareDeep(gestationalAge, o.gestationalAge, true) && compareDeep(condition, o.condition, true) + && compareDeep(rangeCategory, o.rangeCategory, true) && compareDeep(range, o.range, true) && compareDeep(validCodedValueSet, o.validCodedValueSet, true) + && compareDeep(normalCodedValueSet, o.normalCodedValueSet, true) && compareDeep(abnormalCodedValueSet, o.abnormalCodedValueSet, true) + && compareDeep(criticalCodedValueSet, o.criticalCodedValueSet, true); } @Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof ObservationDefinitionQualifiedIntervalComponent)) + if (!(other_ instanceof ObservationDefinitionQualifiedValueComponent)) return false; - ObservationDefinitionQualifiedIntervalComponent o = (ObservationDefinitionQualifiedIntervalComponent) other_; - return compareValues(category, o.category, true) && compareValues(gender, o.gender, true) && compareValues(condition, o.condition, true) + ObservationDefinitionQualifiedValueComponent o = (ObservationDefinitionQualifiedValueComponent) other_; + return compareValues(gender, o.gender, true) && compareValues(condition, o.condition, true) && compareValues(rangeCategory, o.rangeCategory, true) + && compareValues(validCodedValueSet, o.validCodedValueSet, true) && compareValues(normalCodedValueSet, o.normalCodedValueSet, true) + && compareValues(abnormalCodedValueSet, o.abnormalCodedValueSet, true) && compareValues(criticalCodedValueSet, o.criticalCodedValueSet, true) ; } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(category, range, context - , appliesTo, gender, age, gestationalAge, condition); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(context, appliesTo, gender + , age, gestationalAge, condition, rangeCategory, range, validCodedValueSet, normalCodedValueSet + , abnormalCodedValueSet, criticalCodedValueSet); } public String fhirType() { - return "ObservationDefinition.qualifiedInterval"; + return "ObservationDefinition.qualifiedValue"; } @@ -1386,13 +1662,13 @@ public class ObservationDefinition extends DomainResource { protected ObservationDefinitionQuantitativeDetailsComponent quantitativeDetails; /** - * Multiple ranges of results qualified by different contexts for ordinal or continuous observations conforming to this ObservationDefinition. + * A set of qualified values associated with a context and a set of conditions - provides a range for quantitative and ordinal observations and a collection of value sets for qualitative observations. */ - @Child(name = "qualifiedInterval", type = {ObservationDefinitionQualifiedIntervalComponent.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Qualified range for continuous and ordinal observation results", formalDefinition="Multiple ranges of results qualified by different contexts for ordinal or continuous observations conforming to this ObservationDefinition." ) - protected List qualifiedInterval; + @Child(name = "qualifiedValue", type = {ObservationDefinitionQualifiedValueComponent.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Set of qualified values for observation results", formalDefinition="A set of qualified values associated with a context and a set of conditions - provides a range for quantitative and ordinal observations and a collection of value sets for qualitative observations." ) + protected List qualifiedValue; - private static final long serialVersionUID = 527664521L; + private static final long serialVersionUID = -369470835L; /** * Constructor @@ -1519,56 +1795,56 @@ public class ObservationDefinition extends DomainResource { } /** - * @return {@link #qualifiedInterval} (Multiple ranges of results qualified by different contexts for ordinal or continuous observations conforming to this ObservationDefinition.) + * @return {@link #qualifiedValue} (A set of qualified values associated with a context and a set of conditions - provides a range for quantitative and ordinal observations and a collection of value sets for qualitative observations.) */ - public List getQualifiedInterval() { - if (this.qualifiedInterval == null) - this.qualifiedInterval = new ArrayList(); - return this.qualifiedInterval; + public List getQualifiedValue() { + if (this.qualifiedValue == null) + this.qualifiedValue = new ArrayList(); + return this.qualifiedValue; } /** * @return Returns a reference to this for easy method chaining */ - public ObservationDefinitionComponentComponent setQualifiedInterval(List theQualifiedInterval) { - this.qualifiedInterval = theQualifiedInterval; + public ObservationDefinitionComponentComponent setQualifiedValue(List theQualifiedValue) { + this.qualifiedValue = theQualifiedValue; return this; } - public boolean hasQualifiedInterval() { - if (this.qualifiedInterval == null) + public boolean hasQualifiedValue() { + if (this.qualifiedValue == null) return false; - for (ObservationDefinitionQualifiedIntervalComponent item : this.qualifiedInterval) + for (ObservationDefinitionQualifiedValueComponent item : this.qualifiedValue) if (!item.isEmpty()) return true; return false; } - public ObservationDefinitionQualifiedIntervalComponent addQualifiedInterval() { //3 - ObservationDefinitionQualifiedIntervalComponent t = new ObservationDefinitionQualifiedIntervalComponent(); - if (this.qualifiedInterval == null) - this.qualifiedInterval = new ArrayList(); - this.qualifiedInterval.add(t); + public ObservationDefinitionQualifiedValueComponent addQualifiedValue() { //3 + ObservationDefinitionQualifiedValueComponent t = new ObservationDefinitionQualifiedValueComponent(); + if (this.qualifiedValue == null) + this.qualifiedValue = new ArrayList(); + this.qualifiedValue.add(t); return t; } - public ObservationDefinitionComponentComponent addQualifiedInterval(ObservationDefinitionQualifiedIntervalComponent t) { //3 + public ObservationDefinitionComponentComponent addQualifiedValue(ObservationDefinitionQualifiedValueComponent t) { //3 if (t == null) return this; - if (this.qualifiedInterval == null) - this.qualifiedInterval = new ArrayList(); - this.qualifiedInterval.add(t); + if (this.qualifiedValue == null) + this.qualifiedValue = new ArrayList(); + this.qualifiedValue.add(t); return this; } /** - * @return The first repetition of repeating field {@link #qualifiedInterval}, creating it if it does not already exist {3} + * @return The first repetition of repeating field {@link #qualifiedValue}, creating it if it does not already exist {3} */ - public ObservationDefinitionQualifiedIntervalComponent getQualifiedIntervalFirstRep() { - if (getQualifiedInterval().isEmpty()) { - addQualifiedInterval(); + public ObservationDefinitionQualifiedValueComponent getQualifiedValueFirstRep() { + if (getQualifiedValue().isEmpty()) { + addQualifiedValue(); } - return getQualifiedInterval().get(0); + return getQualifiedValue().get(0); } protected void listChildren(List children) { @@ -1576,7 +1852,7 @@ public class ObservationDefinition extends DomainResource { children.add(new Property("code", "CodeableConcept", "Describes what will be observed.", 0, 1, code)); children.add(new Property("permittedDataType", "code", "The data types allowed for the value element of the instance of this component observations.", 0, java.lang.Integer.MAX_VALUE, permittedDataType)); children.add(new Property("quantitativeDetails", "@ObservationDefinition.quantitativeDetails", "Characteristics for quantitative results of this observation.", 0, 1, quantitativeDetails)); - children.add(new Property("qualifiedInterval", "@ObservationDefinition.qualifiedInterval", "Multiple ranges of results qualified by different contexts for ordinal or continuous observations conforming to this ObservationDefinition.", 0, java.lang.Integer.MAX_VALUE, qualifiedInterval)); + children.add(new Property("qualifiedValue", "@ObservationDefinition.qualifiedValue", "A set of qualified values associated with a context and a set of conditions - provides a range for quantitative and ordinal observations and a collection of value sets for qualitative observations.", 0, java.lang.Integer.MAX_VALUE, qualifiedValue)); } @Override @@ -1585,7 +1861,7 @@ public class ObservationDefinition extends DomainResource { case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Describes what will be observed.", 0, 1, code); case -99492804: /*permittedDataType*/ return new Property("permittedDataType", "code", "The data types allowed for the value element of the instance of this component observations.", 0, java.lang.Integer.MAX_VALUE, permittedDataType); case 842150763: /*quantitativeDetails*/ return new Property("quantitativeDetails", "@ObservationDefinition.quantitativeDetails", "Characteristics for quantitative results of this observation.", 0, 1, quantitativeDetails); - case 1882971521: /*qualifiedInterval*/ return new Property("qualifiedInterval", "@ObservationDefinition.qualifiedInterval", "Multiple ranges of results qualified by different contexts for ordinal or continuous observations conforming to this ObservationDefinition.", 0, java.lang.Integer.MAX_VALUE, qualifiedInterval); + case -558517707: /*qualifiedValue*/ return new Property("qualifiedValue", "@ObservationDefinition.qualifiedValue", "A set of qualified values associated with a context and a set of conditions - provides a range for quantitative and ordinal observations and a collection of value sets for qualitative observations.", 0, java.lang.Integer.MAX_VALUE, qualifiedValue); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -1597,7 +1873,7 @@ public class ObservationDefinition extends DomainResource { case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept case -99492804: /*permittedDataType*/ return this.permittedDataType == null ? new Base[0] : this.permittedDataType.toArray(new Base[this.permittedDataType.size()]); // Enumeration case 842150763: /*quantitativeDetails*/ return this.quantitativeDetails == null ? new Base[0] : new Base[] {this.quantitativeDetails}; // ObservationDefinitionQuantitativeDetailsComponent - case 1882971521: /*qualifiedInterval*/ return this.qualifiedInterval == null ? new Base[0] : this.qualifiedInterval.toArray(new Base[this.qualifiedInterval.size()]); // ObservationDefinitionQualifiedIntervalComponent + case -558517707: /*qualifiedValue*/ return this.qualifiedValue == null ? new Base[0] : this.qualifiedValue.toArray(new Base[this.qualifiedValue.size()]); // ObservationDefinitionQualifiedValueComponent default: return super.getProperty(hash, name, checkValid); } @@ -1616,8 +1892,8 @@ public class ObservationDefinition extends DomainResource { case 842150763: // quantitativeDetails this.quantitativeDetails = (ObservationDefinitionQuantitativeDetailsComponent) value; // ObservationDefinitionQuantitativeDetailsComponent return value; - case 1882971521: // qualifiedInterval - this.getQualifiedInterval().add((ObservationDefinitionQualifiedIntervalComponent) value); // ObservationDefinitionQualifiedIntervalComponent + case -558517707: // qualifiedValue + this.getQualifiedValue().add((ObservationDefinitionQualifiedValueComponent) value); // ObservationDefinitionQualifiedValueComponent return value; default: return super.setProperty(hash, name, value); } @@ -1633,8 +1909,8 @@ public class ObservationDefinition extends DomainResource { this.getPermittedDataType().add((Enumeration) value); } else if (name.equals("quantitativeDetails")) { this.quantitativeDetails = (ObservationDefinitionQuantitativeDetailsComponent) value; // ObservationDefinitionQuantitativeDetailsComponent - } else if (name.equals("qualifiedInterval")) { - this.getQualifiedInterval().add((ObservationDefinitionQualifiedIntervalComponent) value); + } else if (name.equals("qualifiedValue")) { + this.getQualifiedValue().add((ObservationDefinitionQualifiedValueComponent) value); } else return super.setProperty(name, value); return value; @@ -1646,7 +1922,7 @@ public class ObservationDefinition extends DomainResource { case 3059181: return getCode(); case -99492804: return addPermittedDataTypeElement(); case 842150763: return getQuantitativeDetails(); - case 1882971521: return addQualifiedInterval(); + case -558517707: return addQualifiedValue(); default: return super.makeProperty(hash, name); } @@ -1658,7 +1934,7 @@ public class ObservationDefinition extends DomainResource { case 3059181: /*code*/ return new String[] {"CodeableConcept"}; case -99492804: /*permittedDataType*/ return new String[] {"code"}; case 842150763: /*quantitativeDetails*/ return new String[] {"@ObservationDefinition.quantitativeDetails"}; - case 1882971521: /*qualifiedInterval*/ return new String[] {"@ObservationDefinition.qualifiedInterval"}; + case -558517707: /*qualifiedValue*/ return new String[] {"@ObservationDefinition.qualifiedValue"}; default: return super.getTypesForProperty(hash, name); } @@ -1677,8 +1953,8 @@ public class ObservationDefinition extends DomainResource { this.quantitativeDetails = new ObservationDefinitionQuantitativeDetailsComponent(); return this.quantitativeDetails; } - else if (name.equals("qualifiedInterval")) { - return addQualifiedInterval(); + else if (name.equals("qualifiedValue")) { + return addQualifiedValue(); } else return super.addChild(name); @@ -1699,10 +1975,10 @@ public class ObservationDefinition extends DomainResource { dst.permittedDataType.add(i.copy()); }; dst.quantitativeDetails = quantitativeDetails == null ? null : quantitativeDetails.copy(); - if (qualifiedInterval != null) { - dst.qualifiedInterval = new ArrayList(); - for (ObservationDefinitionQualifiedIntervalComponent i : qualifiedInterval) - dst.qualifiedInterval.add(i.copy()); + if (qualifiedValue != null) { + dst.qualifiedValue = new ArrayList(); + for (ObservationDefinitionQualifiedValueComponent i : qualifiedValue) + dst.qualifiedValue.add(i.copy()); }; } @@ -1714,7 +1990,7 @@ public class ObservationDefinition extends DomainResource { return false; ObservationDefinitionComponentComponent o = (ObservationDefinitionComponentComponent) other_; return compareDeep(code, o.code, true) && compareDeep(permittedDataType, o.permittedDataType, true) - && compareDeep(quantitativeDetails, o.quantitativeDetails, true) && compareDeep(qualifiedInterval, o.qualifiedInterval, true) + && compareDeep(quantitativeDetails, o.quantitativeDetails, true) && compareDeep(qualifiedValue, o.qualifiedValue, true) ; } @@ -1730,7 +2006,7 @@ public class ObservationDefinition extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, permittedDataType, quantitativeDetails - , qualifiedInterval); + , qualifiedValue); } public String fhirType() { @@ -1761,31 +2037,24 @@ public class ObservationDefinition extends DomainResource { @Description(shortDefinition="Business version of the ObservationDefinition", formalDefinition="The identifier that is used to identify this version of the ObservationDefinition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the ObservationDefinition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable." ) protected StringType version; + /** + * A natural language name identifying the ObservationDefinition. This name should be usable as an identifier for the module by machine processing applications such as code generation. + */ + @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Name for this ObservationDefinition (computer friendly)", formalDefinition="A natural language name identifying the ObservationDefinition. This name should be usable as an identifier for the module by machine processing applications such as code generation." ) + protected StringType name; + /** * A short, descriptive, user-friendly title for the ObservationDefinition. */ - @Child(name = "title", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Name for this ObservationDefinition (Human friendly)", formalDefinition="A short, descriptive, user-friendly title for the ObservationDefinition." ) + @Child(name = "title", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Name for this ObservationDefinition (human friendly)", formalDefinition="A short, descriptive, user-friendly title for the ObservationDefinition." ) protected StringType title; - /** - * The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition. - */ - @Child(name = "derivedFromCanonical", type = {CanonicalType.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Based on FHIR definition of another observation", formalDefinition="The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition." ) - protected List derivedFromCanonical; - - /** - * The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition. - */ - @Child(name = "derivedFromUri", type = {UriType.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Based on external definition", formalDefinition="The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition." ) - protected List derivedFromUri; - /** * The current state of the ObservationDefinition. */ - @Child(name = "status", type = {CodeType.class}, order=6, min=1, max=1, modifier=true, summary=true) + @Child(name = "status", type = {CodeType.class}, order=5, min=1, max=1, modifier=true, summary=true) @Description(shortDefinition="draft | active | retired | unknown", formalDefinition="The current state of the ObservationDefinition." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/publication-status") protected Enumeration status; @@ -1793,56 +2062,49 @@ public class ObservationDefinition extends DomainResource { /** * A flag to indicate that this ObservationDefinition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. */ - @Child(name = "experimental", type = {BooleanType.class}, order=7, min=0, max=1, modifier=true, summary=true) + @Child(name = "experimental", type = {BooleanType.class}, order=6, min=0, max=1, modifier=true, summary=true) @Description(shortDefinition="If for testing purposes, not real usage", formalDefinition="A flag to indicate that this ObservationDefinition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." ) protected BooleanType experimental; /** - * A code or group definition that describes the intended subject of Observation instances conforming to this ObservationDefinition. + * The date (and optionally time) when the ObservationDefinition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the ObservationDefinition changes. */ - @Child(name = "subject", type = {CodeableConcept.class, Group.class}, order=8, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Type of subject for the defined observation", formalDefinition="A code or group definition that describes the intended subject of Observation instances conforming to this ObservationDefinition." ) - protected DataType subject; - - /** - * For draft definitions, indicates the date of initial creation. For active definitions, represents the date of activation. For withdrawn definitions, indicates the date of withdrawal. - */ - @Child(name = "date", type = {DateTimeType.class}, order=9, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Date status first applied", formalDefinition="For draft definitions, indicates the date of initial creation. For active definitions, represents the date of activation. For withdrawn definitions, indicates the date of withdrawal." ) + @Child(name = "date", type = {DateTimeType.class}, order=7, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Date last changed", formalDefinition="The date (and optionally time) when the ObservationDefinition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the ObservationDefinition changes." ) protected DateTimeType date; /** * Helps establish the "authority/credibility" of the ObservationDefinition. May also allow for contact. */ - @Child(name = "publisher", type = {Practitioner.class, PractitionerRole.class, Organization.class}, order=10, min=0, max=1, modifier=false, summary=true) + @Child(name = "publisher", type = {Practitioner.class, PractitionerRole.class, Organization.class}, order=8, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="The name of the individual or organization that published the ObservationDefinition", formalDefinition="Helps establish the \"authority/credibility\" of the ObservationDefinition. May also allow for contact." ) protected Reference publisher; /** * Contact details to assist a user in finding and communicating with the publisher. */ - @Child(name = "contact", type = {ContactDetail.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "contact", type = {ContactDetail.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Contact details for the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." ) protected List contact; /** * A free text natural language description of the ObservationDefinition from the consumer's perspective. */ - @Child(name = "description", type = {MarkdownType.class}, order=12, min=0, max=1, modifier=false, summary=false) + @Child(name = "description", type = {MarkdownType.class}, order=10, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Natural language description of the ObservationDefinition", formalDefinition="A free text natural language description of the ObservationDefinition from the consumer's perspective." ) protected MarkdownType description; /** - * The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of observation definitions. + * The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate ObservationDefinition instances. */ - @Child(name = "useContext", type = {UsageContext.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Content intends to support these contexts", formalDefinition="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of observation definitions." ) + @Child(name = "useContext", type = {UsageContext.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Content intends to support these contexts", formalDefinition="The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate ObservationDefinition instances." ) protected List useContext; /** * A jurisdiction in which the ObservationDefinition is intended to be used. */ - @Child(name = "jurisdiction", type = {CodeableConcept.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "jurisdiction", type = {CodeableConcept.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Intended jurisdiction for this ObservationDefinition (if applicable)", formalDefinition="A jurisdiction in which the ObservationDefinition is intended to be used." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/jurisdiction") protected List jurisdiction; @@ -1850,49 +2112,70 @@ public class ObservationDefinition extends DomainResource { /** * Explains why this ObservationDefinition is needed and why it has been designed as it has. */ - @Child(name = "purpose", type = {MarkdownType.class}, order=15, min=0, max=1, modifier=false, summary=false) + @Child(name = "purpose", type = {MarkdownType.class}, order=13, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Why this ObservationDefinition is defined", formalDefinition="Explains why this ObservationDefinition is needed and why it has been designed as it has." ) protected MarkdownType purpose; /** * Copyright statement relating to the ObservationDefinition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the ObservationDefinition. */ - @Child(name = "copyright", type = {MarkdownType.class}, order=16, min=0, max=1, modifier=false, summary=false) + @Child(name = "copyright", type = {MarkdownType.class}, order=14, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="Copyright statement relating to the ObservationDefinition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the ObservationDefinition." ) protected MarkdownType copyright; /** * The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage. */ - @Child(name = "approvalDate", type = {DateType.class}, order=17, min=0, max=1, modifier=false, summary=false) + @Child(name = "approvalDate", type = {DateType.class}, order=15, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="When ObservationDefinition was approved by publisher", formalDefinition="The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage." ) protected DateType approvalDate; /** * The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date. */ - @Child(name = "lastReviewDate", type = {DateType.class}, order=18, min=0, max=1, modifier=false, summary=false) + @Child(name = "lastReviewDate", type = {DateType.class}, order=16, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Date on which the asset content was last reviewed", formalDefinition="The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date." ) protected DateType lastReviewDate; /** * The period during which the ObservationDefinition content was or is planned to be effective. */ - @Child(name = "effectivePeriod", type = {Period.class}, order=19, min=0, max=1, modifier=false, summary=true) + @Child(name = "effectivePeriod", type = {Period.class}, order=17, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="The effective date range for the ObservationDefinition", formalDefinition="The period during which the ObservationDefinition content was or is planned to be effective." ) protected Period effectivePeriod; + /** + * The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition. + */ + @Child(name = "derivedFromCanonical", type = {CanonicalType.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Based on FHIR definition of another observation", formalDefinition="The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition." ) + protected List derivedFromCanonical; + + /** + * The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition. + */ + @Child(name = "derivedFromUri", type = {UriType.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Based on external definition", formalDefinition="The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition." ) + protected List derivedFromUri; + + /** + * A code that describes the intended kind of subject of Observation instances conforming to this ObservationDefinition. + */ + @Child(name = "subject", type = {CodeableConcept.class}, order=20, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Type of subject for the defined observation", formalDefinition="A code that describes the intended kind of subject of Observation instances conforming to this ObservationDefinition." ) + protected CodeableConcept subject; + /** * The type of individual/organization/device that is expected to act upon instances of this definition. */ - @Child(name = "performerType", type = {CodeableConcept.class}, order=20, min=0, max=1, modifier=false, summary=true) + @Child(name = "performerType", type = {CodeableConcept.class}, order=21, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Desired kind of performer for such kind of observation", formalDefinition="The type of individual/organization/device that is expected to act upon instances of this definition." ) protected CodeableConcept performerType; /** * A code that classifies the general type of observation. */ - @Child(name = "category", type = {CodeableConcept.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "category", type = {CodeableConcept.class}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="General type of observation", formalDefinition="A code that classifies the general type of observation." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-category") protected List category; @@ -1900,7 +2183,7 @@ public class ObservationDefinition extends DomainResource { /** * Describes what will be observed. Sometimes this is called the observation "name". */ - @Child(name = "code", type = {CodeableConcept.class}, order=22, min=1, max=1, modifier=false, summary=true) + @Child(name = "code", type = {CodeableConcept.class}, order=23, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="Type of observation", formalDefinition="Describes what will be observed. Sometimes this is called the observation \"name\"." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-codes") protected CodeableConcept code; @@ -1908,7 +2191,7 @@ public class ObservationDefinition extends DomainResource { /** * The data types allowed for the value element of the instance observations conforming to this ObservationDefinition. */ - @Child(name = "permittedDataType", type = {CodeType.class}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "permittedDataType", type = {CodeType.class}, order=24, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Quantity | CodeableConcept | string | boolean | integer | Range | Ratio | SampledData | time | dateTime | Period", formalDefinition="The data types allowed for the value element of the instance observations conforming to this ObservationDefinition." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/permitted-data-type") protected List> permittedDataType; @@ -1916,14 +2199,14 @@ public class ObservationDefinition extends DomainResource { /** * Multiple results allowed for observations conforming to this ObservationDefinition. */ - @Child(name = "multipleResultsAllowed", type = {BooleanType.class}, order=24, min=0, max=1, modifier=false, summary=false) + @Child(name = "multipleResultsAllowed", type = {BooleanType.class}, order=25, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Multiple results allowed for conforming observations", formalDefinition="Multiple results allowed for observations conforming to this ObservationDefinition." ) protected BooleanType multipleResultsAllowed; /** * The site on the subject's body where the observation is to be made. */ - @Child(name = "bodySite", type = {CodeableConcept.class}, order=25, min=0, max=1, modifier=false, summary=false) + @Child(name = "bodySite", type = {CodeableConcept.class}, order=26, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Body part to be observed", formalDefinition="The site on the subject's body where the observation is to be made." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/body-site") protected CodeableConcept bodySite; @@ -1931,7 +2214,7 @@ public class ObservationDefinition extends DomainResource { /** * The method or technique used to perform the observation. */ - @Child(name = "method", type = {CodeableConcept.class}, order=26, min=0, max=1, modifier=false, summary=false) + @Child(name = "method", type = {CodeableConcept.class}, order=27, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Method used to produce the observation", formalDefinition="The method or technique used to perform the observation." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-methods") protected CodeableConcept method; @@ -1939,81 +2222,53 @@ public class ObservationDefinition extends DomainResource { /** * The kind of specimen that this type of observation is produced on. */ - @Child(name = "specimen", type = {SpecimenDefinition.class}, order=27, min=0, max=1, modifier=false, summary=false) + @Child(name = "specimen", type = {SpecimenDefinition.class}, order=28, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Kind of specimen used by this type of observation", formalDefinition="The kind of specimen that this type of observation is produced on." ) - protected Reference specimen; + protected List specimen; /** - * The measurement device used to produce observations of this type. + * The measurement model of device or actual device used to produce observations of this type. */ - @Child(name = "device", type = {Device.class}, order=28, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Measurement device", formalDefinition="The measurement device used to produce observations of this type." ) - protected Reference device; + @Child(name = "device", type = {DeviceDefinition.class, Device.class}, order=29, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Measurement device or model of device", formalDefinition="The measurement model of device or actual device used to produce observations of this type." ) + protected List device; /** * The preferred name to be used when reporting the results of observations conforming to this ObservationDefinition. */ - @Child(name = "preferredReportName", type = {StringType.class}, order=29, min=0, max=1, modifier=false, summary=false) + @Child(name = "preferredReportName", type = {StringType.class}, order=30, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="The preferred name to be used when reporting the observation results", formalDefinition="The preferred name to be used when reporting the results of observations conforming to this ObservationDefinition." ) protected StringType preferredReportName; /** - * Characteristics for quantitative results of this observation. + * Characteristics for quantitative results of observations conforming to this ObservationDefinition. */ - @Child(name = "quantitativeDetails", type = {}, order=30, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Characteristics of quantitative results", formalDefinition="Characteristics for quantitative results of this observation." ) + @Child(name = "quantitativeDetails", type = {}, order=31, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Characteristics of quantitative results", formalDefinition="Characteristics for quantitative results of observations conforming to this ObservationDefinition." ) protected ObservationDefinitionQuantitativeDetailsComponent quantitativeDetails; /** - * Multiple ranges of results qualified by different contexts for ordinal or continuous observations conforming to this ObservationDefinition. + * A set of qualified values associated with a context and a set of conditions - provides a range for quantitative and ordinal observations and a collection of value sets for qualitative observations. */ - @Child(name = "qualifiedInterval", type = {}, order=31, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Qualified range for continuous and ordinal observation results", formalDefinition="Multiple ranges of results qualified by different contexts for ordinal or continuous observations conforming to this ObservationDefinition." ) - protected List qualifiedInterval; - - /** - * The set of valid coded results for the observations conforming to this ObservationDefinition. - */ - @Child(name = "validCodedValueSet", type = {ValueSet.class}, order=32, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Value set of valid coded values for the observations conforming to this ObservationDefinition", formalDefinition="The set of valid coded results for the observations conforming to this ObservationDefinition." ) - protected Reference validCodedValueSet; - - /** - * The set of normal coded results for the observations conforming to this ObservationDefinition. - */ - @Child(name = "normalCodedValueSet", type = {ValueSet.class}, order=33, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Value set of normal coded values for the observations conforming to this ObservationDefinition", formalDefinition="The set of normal coded results for the observations conforming to this ObservationDefinition." ) - protected Reference normalCodedValueSet; - - /** - * The set of abnormal coded results for the observation conforming to this ObservationDefinition. - */ - @Child(name = "abnormalCodedValueSet", type = {ValueSet.class}, order=34, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Value set of abnormal coded values for the observations conforming to this ObservationDefinition", formalDefinition="The set of abnormal coded results for the observation conforming to this ObservationDefinition." ) - protected Reference abnormalCodedValueSet; - - /** - * The set of critical coded results for the observation conforming to this ObservationDefinition. - */ - @Child(name = "criticalCodedValueSet", type = {ValueSet.class}, order=35, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Value set of critical coded values for the observations conforming to this ObservationDefinition", formalDefinition="The set of critical coded results for the observation conforming to this ObservationDefinition." ) - protected Reference criticalCodedValueSet; + @Child(name = "qualifiedValue", type = {}, order=32, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Set of qualified values for observation results", formalDefinition="A set of qualified values associated with a context and a set of conditions - provides a range for quantitative and ordinal observations and a collection of value sets for qualitative observations." ) + protected List qualifiedValue; /** * This ObservationDefinition defines a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group. */ - @Child(name = "hasMember", type = {ObservationDefinition.class, Questionnaire.class}, order=36, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "hasMember", type = {ObservationDefinition.class, Questionnaire.class}, order=33, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Definitions of related resources belonging to this kind of observation group", formalDefinition="This ObservationDefinition defines a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group." ) protected List hasMember; /** * Some observations have multiple component observations, expressed as separate code value pairs. */ - @Child(name = "component", type = {}, order=37, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "component", type = {}, order=34, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Component results", formalDefinition="Some observations have multiple component observations, expressed as separate code value pairs." ) protected List component; - private static final long serialVersionUID = 469528550L; + private static final long serialVersionUID = 1353043135L; /** * Constructor @@ -2153,6 +2408,55 @@ public class ObservationDefinition extends DomainResource { return this; } + /** + * @return {@link #name} (A natural language name identifying the ObservationDefinition. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public StringType getNameElement() { + if (this.name == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ObservationDefinition.name"); + else if (Configuration.doAutoCreate()) + this.name = new StringType(); // bb + return this.name; + } + + public boolean hasNameElement() { + return this.name != null && !this.name.isEmpty(); + } + + public boolean hasName() { + return this.name != null && !this.name.isEmpty(); + } + + /** + * @param value {@link #name} (A natural language name identifying the ObservationDefinition. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public ObservationDefinition setNameElement(StringType value) { + this.name = value; + return this; + } + + /** + * @return A natural language name identifying the ObservationDefinition. This name should be usable as an identifier for the module by machine processing applications such as code generation. + */ + public String getName() { + return this.name == null ? null : this.name.getValue(); + } + + /** + * @param value A natural language name identifying the ObservationDefinition. This name should be usable as an identifier for the module by machine processing applications such as code generation. + */ + public ObservationDefinition setName(String value) { + if (Utilities.noString(value)) + this.name = null; + else { + if (this.name == null) + this.name = new StringType(); + this.name.setValue(value); + } + return this; + } + /** * @return {@link #title} (A short, descriptive, user-friendly title for the ObservationDefinition.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value */ @@ -2202,128 +2506,6 @@ public class ObservationDefinition extends DomainResource { return this; } - /** - * @return {@link #derivedFromCanonical} (The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition.) - */ - public List getDerivedFromCanonical() { - if (this.derivedFromCanonical == null) - this.derivedFromCanonical = new ArrayList(); - return this.derivedFromCanonical; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ObservationDefinition setDerivedFromCanonical(List theDerivedFromCanonical) { - this.derivedFromCanonical = theDerivedFromCanonical; - return this; - } - - public boolean hasDerivedFromCanonical() { - if (this.derivedFromCanonical == null) - return false; - for (CanonicalType item : this.derivedFromCanonical) - if (!item.isEmpty()) - return true; - return false; - } - - /** - * @return {@link #derivedFromCanonical} (The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition.) - */ - public CanonicalType addDerivedFromCanonicalElement() {//2 - CanonicalType t = new CanonicalType(); - if (this.derivedFromCanonical == null) - this.derivedFromCanonical = new ArrayList(); - this.derivedFromCanonical.add(t); - return t; - } - - /** - * @param value {@link #derivedFromCanonical} (The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition.) - */ - public ObservationDefinition addDerivedFromCanonical(String value) { //1 - CanonicalType t = new CanonicalType(); - t.setValue(value); - if (this.derivedFromCanonical == null) - this.derivedFromCanonical = new ArrayList(); - this.derivedFromCanonical.add(t); - return this; - } - - /** - * @param value {@link #derivedFromCanonical} (The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition.) - */ - public boolean hasDerivedFromCanonical(String value) { - if (this.derivedFromCanonical == null) - return false; - for (CanonicalType v : this.derivedFromCanonical) - if (v.getValue().equals(value)) // canonical - return true; - return false; - } - - /** - * @return {@link #derivedFromUri} (The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition.) - */ - public List getDerivedFromUri() { - if (this.derivedFromUri == null) - this.derivedFromUri = new ArrayList(); - return this.derivedFromUri; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ObservationDefinition setDerivedFromUri(List theDerivedFromUri) { - this.derivedFromUri = theDerivedFromUri; - return this; - } - - public boolean hasDerivedFromUri() { - if (this.derivedFromUri == null) - return false; - for (UriType item : this.derivedFromUri) - if (!item.isEmpty()) - return true; - return false; - } - - /** - * @return {@link #derivedFromUri} (The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition.) - */ - public UriType addDerivedFromUriElement() {//2 - UriType t = new UriType(); - if (this.derivedFromUri == null) - this.derivedFromUri = new ArrayList(); - this.derivedFromUri.add(t); - return t; - } - - /** - * @param value {@link #derivedFromUri} (The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition.) - */ - public ObservationDefinition addDerivedFromUri(String value) { //1 - UriType t = new UriType(); - t.setValue(value); - if (this.derivedFromUri == null) - this.derivedFromUri = new ArrayList(); - this.derivedFromUri.add(t); - return this; - } - - /** - * @param value {@link #derivedFromUri} (The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition.) - */ - public boolean hasDerivedFromUri(String value) { - if (this.derivedFromUri == null) - return false; - for (UriType v : this.derivedFromUri) - if (v.getValue().equals(value)) // uri - return true; - return false; - } - /** * @return {@link #status} (The current state of the ObservationDefinition.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ @@ -2415,58 +2597,7 @@ public class ObservationDefinition extends DomainResource { } /** - * @return {@link #subject} (A code or group definition that describes the intended subject of Observation instances conforming to this ObservationDefinition.) - */ - public DataType getSubject() { - return this.subject; - } - - /** - * @return {@link #subject} (A code or group definition that describes the intended subject of Observation instances conforming to this ObservationDefinition.) - */ - public CodeableConcept getSubjectCodeableConcept() throws FHIRException { - if (this.subject == null) - this.subject = new CodeableConcept(); - if (!(this.subject instanceof CodeableConcept)) - throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.subject.getClass().getName()+" was encountered"); - return (CodeableConcept) this.subject; - } - - public boolean hasSubjectCodeableConcept() { - return this != null && this.subject instanceof CodeableConcept; - } - - /** - * @return {@link #subject} (A code or group definition that describes the intended subject of Observation instances conforming to this ObservationDefinition.) - */ - public Reference getSubjectReference() throws FHIRException { - if (this.subject == null) - this.subject = new Reference(); - if (!(this.subject instanceof Reference)) - throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.subject.getClass().getName()+" was encountered"); - return (Reference) this.subject; - } - - public boolean hasSubjectReference() { - return this != null && this.subject instanceof Reference; - } - - public boolean hasSubject() { - return this.subject != null && !this.subject.isEmpty(); - } - - /** - * @param value {@link #subject} (A code or group definition that describes the intended subject of Observation instances conforming to this ObservationDefinition.) - */ - public ObservationDefinition setSubject(DataType value) { - if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) - throw new Error("Not the right type for ObservationDefinition.subject[x]: "+value.fhirType()); - this.subject = value; - return this; - } - - /** - * @return {@link #date} (For draft definitions, indicates the date of initial creation. For active definitions, represents the date of activation. For withdrawn definitions, indicates the date of withdrawal.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value + * @return {@link #date} (The date (and optionally time) when the ObservationDefinition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the ObservationDefinition changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value */ public DateTimeType getDateElement() { if (this.date == null) @@ -2486,7 +2617,7 @@ public class ObservationDefinition extends DomainResource { } /** - * @param value {@link #date} (For draft definitions, indicates the date of initial creation. For active definitions, represents the date of activation. For withdrawn definitions, indicates the date of withdrawal.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value + * @param value {@link #date} (The date (and optionally time) when the ObservationDefinition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the ObservationDefinition changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value */ public ObservationDefinition setDateElement(DateTimeType value) { this.date = value; @@ -2494,14 +2625,14 @@ public class ObservationDefinition extends DomainResource { } /** - * @return For draft definitions, indicates the date of initial creation. For active definitions, represents the date of activation. For withdrawn definitions, indicates the date of withdrawal. + * @return The date (and optionally time) when the ObservationDefinition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the ObservationDefinition changes. */ public Date getDate() { return this.date == null ? null : this.date.getValue(); } /** - * @param value For draft definitions, indicates the date of initial creation. For active definitions, represents the date of activation. For withdrawn definitions, indicates the date of withdrawal. + * @param value The date (and optionally time) when the ObservationDefinition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the ObservationDefinition changes. */ public ObservationDefinition setDate(Date value) { if (value == null) @@ -2641,7 +2772,7 @@ public class ObservationDefinition extends DomainResource { } /** - * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of observation definitions.) + * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate ObservationDefinition instances.) */ public List getUseContext() { if (this.useContext == null) @@ -2966,6 +3097,152 @@ public class ObservationDefinition extends DomainResource { return this; } + /** + * @return {@link #derivedFromCanonical} (The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition.) + */ + public List getDerivedFromCanonical() { + if (this.derivedFromCanonical == null) + this.derivedFromCanonical = new ArrayList(); + return this.derivedFromCanonical; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ObservationDefinition setDerivedFromCanonical(List theDerivedFromCanonical) { + this.derivedFromCanonical = theDerivedFromCanonical; + return this; + } + + public boolean hasDerivedFromCanonical() { + if (this.derivedFromCanonical == null) + return false; + for (CanonicalType item : this.derivedFromCanonical) + if (!item.isEmpty()) + return true; + return false; + } + + /** + * @return {@link #derivedFromCanonical} (The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition.) + */ + public CanonicalType addDerivedFromCanonicalElement() {//2 + CanonicalType t = new CanonicalType(); + if (this.derivedFromCanonical == null) + this.derivedFromCanonical = new ArrayList(); + this.derivedFromCanonical.add(t); + return t; + } + + /** + * @param value {@link #derivedFromCanonical} (The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition.) + */ + public ObservationDefinition addDerivedFromCanonical(String value) { //1 + CanonicalType t = new CanonicalType(); + t.setValue(value); + if (this.derivedFromCanonical == null) + this.derivedFromCanonical = new ArrayList(); + this.derivedFromCanonical.add(t); + return this; + } + + /** + * @param value {@link #derivedFromCanonical} (The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition.) + */ + public boolean hasDerivedFromCanonical(String value) { + if (this.derivedFromCanonical == null) + return false; + for (CanonicalType v : this.derivedFromCanonical) + if (v.getValue().equals(value)) // canonical + return true; + return false; + } + + /** + * @return {@link #derivedFromUri} (The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition.) + */ + public List getDerivedFromUri() { + if (this.derivedFromUri == null) + this.derivedFromUri = new ArrayList(); + return this.derivedFromUri; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ObservationDefinition setDerivedFromUri(List theDerivedFromUri) { + this.derivedFromUri = theDerivedFromUri; + return this; + } + + public boolean hasDerivedFromUri() { + if (this.derivedFromUri == null) + return false; + for (UriType item : this.derivedFromUri) + if (!item.isEmpty()) + return true; + return false; + } + + /** + * @return {@link #derivedFromUri} (The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition.) + */ + public UriType addDerivedFromUriElement() {//2 + UriType t = new UriType(); + if (this.derivedFromUri == null) + this.derivedFromUri = new ArrayList(); + this.derivedFromUri.add(t); + return t; + } + + /** + * @param value {@link #derivedFromUri} (The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition.) + */ + public ObservationDefinition addDerivedFromUri(String value) { //1 + UriType t = new UriType(); + t.setValue(value); + if (this.derivedFromUri == null) + this.derivedFromUri = new ArrayList(); + this.derivedFromUri.add(t); + return this; + } + + /** + * @param value {@link #derivedFromUri} (The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition.) + */ + public boolean hasDerivedFromUri(String value) { + if (this.derivedFromUri == null) + return false; + for (UriType v : this.derivedFromUri) + if (v.getValue().equals(value)) // uri + return true; + return false; + } + + /** + * @return {@link #subject} (A code that describes the intended kind of subject of Observation instances conforming to this ObservationDefinition.) + */ + public CodeableConcept getSubject() { + if (this.subject == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ObservationDefinition.subject"); + else if (Configuration.doAutoCreate()) + this.subject = new CodeableConcept(); // cc + return this.subject; + } + + public boolean hasSubject() { + return this.subject != null && !this.subject.isEmpty(); + } + + /** + * @param value {@link #subject} (A code that describes the intended kind of subject of Observation instances conforming to this ObservationDefinition.) + */ + public ObservationDefinition setSubject(CodeableConcept value) { + this.subject = value; + return this; + } + /** * @return {@link #performerType} (The type of individual/organization/device that is expected to act upon instances of this definition.) */ @@ -3224,49 +3501,107 @@ public class ObservationDefinition extends DomainResource { /** * @return {@link #specimen} (The kind of specimen that this type of observation is produced on.) */ - public Reference getSpecimen() { + public List getSpecimen() { if (this.specimen == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ObservationDefinition.specimen"); - else if (Configuration.doAutoCreate()) - this.specimen = new Reference(); // cc + this.specimen = new ArrayList(); return this.specimen; } - public boolean hasSpecimen() { - return this.specimen != null && !this.specimen.isEmpty(); + /** + * @return Returns a reference to this for easy method chaining + */ + public ObservationDefinition setSpecimen(List theSpecimen) { + this.specimen = theSpecimen; + return this; } - /** - * @param value {@link #specimen} (The kind of specimen that this type of observation is produced on.) - */ - public ObservationDefinition setSpecimen(Reference value) { - this.specimen = value; + public boolean hasSpecimen() { + if (this.specimen == null) + return false; + for (Reference item : this.specimen) + if (!item.isEmpty()) + return true; + return false; + } + + public Reference addSpecimen() { //3 + Reference t = new Reference(); + if (this.specimen == null) + this.specimen = new ArrayList(); + this.specimen.add(t); + return t; + } + + public ObservationDefinition addSpecimen(Reference t) { //3 + if (t == null) + return this; + if (this.specimen == null) + this.specimen = new ArrayList(); + this.specimen.add(t); return this; } /** - * @return {@link #device} (The measurement device used to produce observations of this type.) + * @return The first repetition of repeating field {@link #specimen}, creating it if it does not already exist {3} */ - public Reference getDevice() { + public Reference getSpecimenFirstRep() { + if (getSpecimen().isEmpty()) { + addSpecimen(); + } + return getSpecimen().get(0); + } + + /** + * @return {@link #device} (The measurement model of device or actual device used to produce observations of this type.) + */ + public List getDevice() { if (this.device == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ObservationDefinition.device"); - else if (Configuration.doAutoCreate()) - this.device = new Reference(); // cc + this.device = new ArrayList(); return this.device; } + /** + * @return Returns a reference to this for easy method chaining + */ + public ObservationDefinition setDevice(List theDevice) { + this.device = theDevice; + return this; + } + public boolean hasDevice() { - return this.device != null && !this.device.isEmpty(); + if (this.device == null) + return false; + for (Reference item : this.device) + if (!item.isEmpty()) + return true; + return false; + } + + public Reference addDevice() { //3 + Reference t = new Reference(); + if (this.device == null) + this.device = new ArrayList(); + this.device.add(t); + return t; + } + + public ObservationDefinition addDevice(Reference t) { //3 + if (t == null) + return this; + if (this.device == null) + this.device = new ArrayList(); + this.device.add(t); + return this; } /** - * @param value {@link #device} (The measurement device used to produce observations of this type.) + * @return The first repetition of repeating field {@link #device}, creating it if it does not already exist {3} */ - public ObservationDefinition setDevice(Reference value) { - this.device = value; - return this; + public Reference getDeviceFirstRep() { + if (getDevice().isEmpty()) { + addDevice(); + } + return getDevice().get(0); } /** @@ -3319,7 +3654,7 @@ public class ObservationDefinition extends DomainResource { } /** - * @return {@link #quantitativeDetails} (Characteristics for quantitative results of this observation.) + * @return {@link #quantitativeDetails} (Characteristics for quantitative results of observations conforming to this ObservationDefinition.) */ public ObservationDefinitionQuantitativeDetailsComponent getQuantitativeDetails() { if (this.quantitativeDetails == null) @@ -3335,7 +3670,7 @@ public class ObservationDefinition extends DomainResource { } /** - * @param value {@link #quantitativeDetails} (Characteristics for quantitative results of this observation.) + * @param value {@link #quantitativeDetails} (Characteristics for quantitative results of observations conforming to this ObservationDefinition.) */ public ObservationDefinition setQuantitativeDetails(ObservationDefinitionQuantitativeDetailsComponent value) { this.quantitativeDetails = value; @@ -3343,152 +3678,56 @@ public class ObservationDefinition extends DomainResource { } /** - * @return {@link #qualifiedInterval} (Multiple ranges of results qualified by different contexts for ordinal or continuous observations conforming to this ObservationDefinition.) + * @return {@link #qualifiedValue} (A set of qualified values associated with a context and a set of conditions - provides a range for quantitative and ordinal observations and a collection of value sets for qualitative observations.) */ - public List getQualifiedInterval() { - if (this.qualifiedInterval == null) - this.qualifiedInterval = new ArrayList(); - return this.qualifiedInterval; + public List getQualifiedValue() { + if (this.qualifiedValue == null) + this.qualifiedValue = new ArrayList(); + return this.qualifiedValue; } /** * @return Returns a reference to this for easy method chaining */ - public ObservationDefinition setQualifiedInterval(List theQualifiedInterval) { - this.qualifiedInterval = theQualifiedInterval; + public ObservationDefinition setQualifiedValue(List theQualifiedValue) { + this.qualifiedValue = theQualifiedValue; return this; } - public boolean hasQualifiedInterval() { - if (this.qualifiedInterval == null) + public boolean hasQualifiedValue() { + if (this.qualifiedValue == null) return false; - for (ObservationDefinitionQualifiedIntervalComponent item : this.qualifiedInterval) + for (ObservationDefinitionQualifiedValueComponent item : this.qualifiedValue) if (!item.isEmpty()) return true; return false; } - public ObservationDefinitionQualifiedIntervalComponent addQualifiedInterval() { //3 - ObservationDefinitionQualifiedIntervalComponent t = new ObservationDefinitionQualifiedIntervalComponent(); - if (this.qualifiedInterval == null) - this.qualifiedInterval = new ArrayList(); - this.qualifiedInterval.add(t); + public ObservationDefinitionQualifiedValueComponent addQualifiedValue() { //3 + ObservationDefinitionQualifiedValueComponent t = new ObservationDefinitionQualifiedValueComponent(); + if (this.qualifiedValue == null) + this.qualifiedValue = new ArrayList(); + this.qualifiedValue.add(t); return t; } - public ObservationDefinition addQualifiedInterval(ObservationDefinitionQualifiedIntervalComponent t) { //3 + public ObservationDefinition addQualifiedValue(ObservationDefinitionQualifiedValueComponent t) { //3 if (t == null) return this; - if (this.qualifiedInterval == null) - this.qualifiedInterval = new ArrayList(); - this.qualifiedInterval.add(t); + if (this.qualifiedValue == null) + this.qualifiedValue = new ArrayList(); + this.qualifiedValue.add(t); return this; } /** - * @return The first repetition of repeating field {@link #qualifiedInterval}, creating it if it does not already exist {3} + * @return The first repetition of repeating field {@link #qualifiedValue}, creating it if it does not already exist {3} */ - public ObservationDefinitionQualifiedIntervalComponent getQualifiedIntervalFirstRep() { - if (getQualifiedInterval().isEmpty()) { - addQualifiedInterval(); + public ObservationDefinitionQualifiedValueComponent getQualifiedValueFirstRep() { + if (getQualifiedValue().isEmpty()) { + addQualifiedValue(); } - return getQualifiedInterval().get(0); - } - - /** - * @return {@link #validCodedValueSet} (The set of valid coded results for the observations conforming to this ObservationDefinition.) - */ - public Reference getValidCodedValueSet() { - if (this.validCodedValueSet == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ObservationDefinition.validCodedValueSet"); - else if (Configuration.doAutoCreate()) - this.validCodedValueSet = new Reference(); // cc - return this.validCodedValueSet; - } - - public boolean hasValidCodedValueSet() { - return this.validCodedValueSet != null && !this.validCodedValueSet.isEmpty(); - } - - /** - * @param value {@link #validCodedValueSet} (The set of valid coded results for the observations conforming to this ObservationDefinition.) - */ - public ObservationDefinition setValidCodedValueSet(Reference value) { - this.validCodedValueSet = value; - return this; - } - - /** - * @return {@link #normalCodedValueSet} (The set of normal coded results for the observations conforming to this ObservationDefinition.) - */ - public Reference getNormalCodedValueSet() { - if (this.normalCodedValueSet == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ObservationDefinition.normalCodedValueSet"); - else if (Configuration.doAutoCreate()) - this.normalCodedValueSet = new Reference(); // cc - return this.normalCodedValueSet; - } - - public boolean hasNormalCodedValueSet() { - return this.normalCodedValueSet != null && !this.normalCodedValueSet.isEmpty(); - } - - /** - * @param value {@link #normalCodedValueSet} (The set of normal coded results for the observations conforming to this ObservationDefinition.) - */ - public ObservationDefinition setNormalCodedValueSet(Reference value) { - this.normalCodedValueSet = value; - return this; - } - - /** - * @return {@link #abnormalCodedValueSet} (The set of abnormal coded results for the observation conforming to this ObservationDefinition.) - */ - public Reference getAbnormalCodedValueSet() { - if (this.abnormalCodedValueSet == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ObservationDefinition.abnormalCodedValueSet"); - else if (Configuration.doAutoCreate()) - this.abnormalCodedValueSet = new Reference(); // cc - return this.abnormalCodedValueSet; - } - - public boolean hasAbnormalCodedValueSet() { - return this.abnormalCodedValueSet != null && !this.abnormalCodedValueSet.isEmpty(); - } - - /** - * @param value {@link #abnormalCodedValueSet} (The set of abnormal coded results for the observation conforming to this ObservationDefinition.) - */ - public ObservationDefinition setAbnormalCodedValueSet(Reference value) { - this.abnormalCodedValueSet = value; - return this; - } - - /** - * @return {@link #criticalCodedValueSet} (The set of critical coded results for the observation conforming to this ObservationDefinition.) - */ - public Reference getCriticalCodedValueSet() { - if (this.criticalCodedValueSet == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ObservationDefinition.criticalCodedValueSet"); - else if (Configuration.doAutoCreate()) - this.criticalCodedValueSet = new Reference(); // cc - return this.criticalCodedValueSet; - } - - public boolean hasCriticalCodedValueSet() { - return this.criticalCodedValueSet != null && !this.criticalCodedValueSet.isEmpty(); - } - - /** - * @param value {@link #criticalCodedValueSet} (The set of critical coded results for the observation conforming to this ObservationDefinition.) - */ - public ObservationDefinition setCriticalCodedValueSet(Reference value) { - this.criticalCodedValueSet = value; - return this; + return getQualifiedValue().get(0); } /** @@ -3602,23 +3841,24 @@ public class ObservationDefinition extends DomainResource { children.add(new Property("url", "uri", "An absolute URL that is used to identify this ObservationDefinition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this ObservationDefinition is (or will be) published. The URL SHOULD include the major version of the ObservationDefinition. For more information see Technical and Business Versions.", 0, 1, url)); children.add(new Property("identifier", "Identifier", "Business identifiers assigned to this ObservationDefinition. by the performer and/or other systems. These identifiers remain constant as the resource is updated and propagates from server to server.", 0, 1, identifier)); children.add(new Property("version", "string", "The identifier that is used to identify this version of the ObservationDefinition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the ObservationDefinition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable.", 0, 1, version)); + children.add(new Property("name", "string", "A natural language name identifying the ObservationDefinition. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the ObservationDefinition.", 0, 1, title)); - children.add(new Property("derivedFromCanonical", "canonical(ObservationDefinition)", "The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition.", 0, java.lang.Integer.MAX_VALUE, derivedFromCanonical)); - children.add(new Property("derivedFromUri", "uri", "The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition.", 0, java.lang.Integer.MAX_VALUE, derivedFromUri)); children.add(new Property("status", "code", "The current state of the ObservationDefinition.", 0, 1, status)); children.add(new Property("experimental", "boolean", "A flag to indicate that this ObservationDefinition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, 1, experimental)); - children.add(new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of Observation instances conforming to this ObservationDefinition.", 0, 1, subject)); - children.add(new Property("date", "dateTime", "For draft definitions, indicates the date of initial creation. For active definitions, represents the date of activation. For withdrawn definitions, indicates the date of withdrawal.", 0, 1, date)); + children.add(new Property("date", "dateTime", "The date (and optionally time) when the ObservationDefinition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the ObservationDefinition changes.", 0, 1, date)); children.add(new Property("publisher", "Reference(Practitioner|PractitionerRole|Organization)", "Helps establish the \"authority/credibility\" of the ObservationDefinition. May also allow for contact.", 0, 1, publisher)); children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact)); children.add(new Property("description", "markdown", "A free text natural language description of the ObservationDefinition from the consumer's perspective.", 0, 1, description)); - children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of observation definitions.", 0, java.lang.Integer.MAX_VALUE, useContext)); + children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate ObservationDefinition instances.", 0, java.lang.Integer.MAX_VALUE, useContext)); children.add(new Property("jurisdiction", "CodeableConcept", "A jurisdiction in which the ObservationDefinition is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction)); children.add(new Property("purpose", "markdown", "Explains why this ObservationDefinition is needed and why it has been designed as it has.", 0, 1, purpose)); children.add(new Property("copyright", "markdown", "Copyright statement relating to the ObservationDefinition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the ObservationDefinition.", 0, 1, copyright)); children.add(new Property("approvalDate", "date", "The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate)); children.add(new Property("lastReviewDate", "date", "The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date.", 0, 1, lastReviewDate)); children.add(new Property("effectivePeriod", "Period", "The period during which the ObservationDefinition content was or is planned to be effective.", 0, 1, effectivePeriod)); + children.add(new Property("derivedFromCanonical", "canonical(ObservationDefinition)", "The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition.", 0, java.lang.Integer.MAX_VALUE, derivedFromCanonical)); + children.add(new Property("derivedFromUri", "uri", "The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition.", 0, java.lang.Integer.MAX_VALUE, derivedFromUri)); + children.add(new Property("subject", "CodeableConcept", "A code that describes the intended kind of subject of Observation instances conforming to this ObservationDefinition.", 0, 1, subject)); children.add(new Property("performerType", "CodeableConcept", "The type of individual/organization/device that is expected to act upon instances of this definition.", 0, 1, performerType)); children.add(new Property("category", "CodeableConcept", "A code that classifies the general type of observation.", 0, java.lang.Integer.MAX_VALUE, category)); children.add(new Property("code", "CodeableConcept", "Describes what will be observed. Sometimes this is called the observation \"name\".", 0, 1, code)); @@ -3626,15 +3866,11 @@ public class ObservationDefinition extends DomainResource { children.add(new Property("multipleResultsAllowed", "boolean", "Multiple results allowed for observations conforming to this ObservationDefinition.", 0, 1, multipleResultsAllowed)); children.add(new Property("bodySite", "CodeableConcept", "The site on the subject's body where the observation is to be made.", 0, 1, bodySite)); children.add(new Property("method", "CodeableConcept", "The method or technique used to perform the observation.", 0, 1, method)); - children.add(new Property("specimen", "Reference(SpecimenDefinition)", "The kind of specimen that this type of observation is produced on.", 0, 1, specimen)); - children.add(new Property("device", "Reference(Device)", "The measurement device used to produce observations of this type.", 0, 1, device)); + children.add(new Property("specimen", "Reference(SpecimenDefinition)", "The kind of specimen that this type of observation is produced on.", 0, java.lang.Integer.MAX_VALUE, specimen)); + children.add(new Property("device", "Reference(DeviceDefinition|Device)", "The measurement model of device or actual device used to produce observations of this type.", 0, java.lang.Integer.MAX_VALUE, device)); children.add(new Property("preferredReportName", "string", "The preferred name to be used when reporting the results of observations conforming to this ObservationDefinition.", 0, 1, preferredReportName)); - children.add(new Property("quantitativeDetails", "", "Characteristics for quantitative results of this observation.", 0, 1, quantitativeDetails)); - children.add(new Property("qualifiedInterval", "", "Multiple ranges of results qualified by different contexts for ordinal or continuous observations conforming to this ObservationDefinition.", 0, java.lang.Integer.MAX_VALUE, qualifiedInterval)); - children.add(new Property("validCodedValueSet", "Reference(ValueSet)", "The set of valid coded results for the observations conforming to this ObservationDefinition.", 0, 1, validCodedValueSet)); - children.add(new Property("normalCodedValueSet", "Reference(ValueSet)", "The set of normal coded results for the observations conforming to this ObservationDefinition.", 0, 1, normalCodedValueSet)); - children.add(new Property("abnormalCodedValueSet", "Reference(ValueSet)", "The set of abnormal coded results for the observation conforming to this ObservationDefinition.", 0, 1, abnormalCodedValueSet)); - children.add(new Property("criticalCodedValueSet", "Reference(ValueSet)", "The set of critical coded results for the observation conforming to this ObservationDefinition.", 0, 1, criticalCodedValueSet)); + children.add(new Property("quantitativeDetails", "", "Characteristics for quantitative results of observations conforming to this ObservationDefinition.", 0, 1, quantitativeDetails)); + children.add(new Property("qualifiedValue", "", "A set of qualified values associated with a context and a set of conditions - provides a range for quantitative and ordinal observations and a collection of value sets for qualitative observations.", 0, java.lang.Integer.MAX_VALUE, qualifiedValue)); children.add(new Property("hasMember", "Reference(ObservationDefinition|Questionnaire)", "This ObservationDefinition defines a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.", 0, java.lang.Integer.MAX_VALUE, hasMember)); children.add(new Property("component", "", "Some observations have multiple component observations, expressed as separate code value pairs.", 0, java.lang.Integer.MAX_VALUE, component)); } @@ -3645,26 +3881,24 @@ public class ObservationDefinition extends DomainResource { case 116079: /*url*/ return new Property("url", "uri", "An absolute URL that is used to identify this ObservationDefinition when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this ObservationDefinition is (or will be) published. The URL SHOULD include the major version of the ObservationDefinition. For more information see Technical and Business Versions.", 0, 1, url); case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifiers assigned to this ObservationDefinition. by the performer and/or other systems. These identifiers remain constant as the resource is updated and propagates from server to server.", 0, 1, identifier); case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the ObservationDefinition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the ObservationDefinition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable.", 0, 1, version); + case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the ObservationDefinition. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); case 110371416: /*title*/ return new Property("title", "string", "A short, descriptive, user-friendly title for the ObservationDefinition.", 0, 1, title); - case -978133683: /*derivedFromCanonical*/ return new Property("derivedFromCanonical", "canonical(ObservationDefinition)", "The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition.", 0, java.lang.Integer.MAX_VALUE, derivedFromCanonical); - case -1076333435: /*derivedFromUri*/ return new Property("derivedFromUri", "uri", "The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition.", 0, java.lang.Integer.MAX_VALUE, derivedFromUri); case -892481550: /*status*/ return new Property("status", "code", "The current state of the ObservationDefinition.", 0, 1, status); case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A flag to indicate that this ObservationDefinition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, 1, experimental); - case -573640748: /*subject[x]*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of Observation instances conforming to this ObservationDefinition.", 0, 1, subject); - case -1867885268: /*subject*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of Observation instances conforming to this ObservationDefinition.", 0, 1, subject); - case -1257122603: /*subjectCodeableConcept*/ return new Property("subject[x]", "CodeableConcept", "A code or group definition that describes the intended subject of Observation instances conforming to this ObservationDefinition.", 0, 1, subject); - case 772938623: /*subjectReference*/ return new Property("subject[x]", "Reference(Group)", "A code or group definition that describes the intended subject of Observation instances conforming to this ObservationDefinition.", 0, 1, subject); - case 3076014: /*date*/ return new Property("date", "dateTime", "For draft definitions, indicates the date of initial creation. For active definitions, represents the date of activation. For withdrawn definitions, indicates the date of withdrawal.", 0, 1, date); + case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the ObservationDefinition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the ObservationDefinition changes.", 0, 1, date); case 1447404028: /*publisher*/ return new Property("publisher", "Reference(Practitioner|PractitionerRole|Organization)", "Helps establish the \"authority/credibility\" of the ObservationDefinition. May also allow for contact.", 0, 1, publisher); case 951526432: /*contact*/ return new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact); case -1724546052: /*description*/ return new Property("description", "markdown", "A free text natural language description of the ObservationDefinition from the consumer's perspective.", 0, 1, description); - case -669707736: /*useContext*/ return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of observation definitions.", 0, java.lang.Integer.MAX_VALUE, useContext); + case -669707736: /*useContext*/ return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate ObservationDefinition instances.", 0, java.lang.Integer.MAX_VALUE, useContext); case -507075711: /*jurisdiction*/ return new Property("jurisdiction", "CodeableConcept", "A jurisdiction in which the ObservationDefinition is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction); case -220463842: /*purpose*/ return new Property("purpose", "markdown", "Explains why this ObservationDefinition is needed and why it has been designed as it has.", 0, 1, purpose); case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "Copyright statement relating to the ObservationDefinition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the ObservationDefinition.", 0, 1, copyright); case 223539345: /*approvalDate*/ return new Property("approvalDate", "date", "The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate); case -1687512484: /*lastReviewDate*/ return new Property("lastReviewDate", "date", "The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date.", 0, 1, lastReviewDate); case -403934648: /*effectivePeriod*/ return new Property("effectivePeriod", "Period", "The period during which the ObservationDefinition content was or is planned to be effective.", 0, 1, effectivePeriod); + case -978133683: /*derivedFromCanonical*/ return new Property("derivedFromCanonical", "canonical(ObservationDefinition)", "The canonical URL pointing to another FHIR-defined ObservationDefinition that is adhered to in whole or in part by this definition.", 0, java.lang.Integer.MAX_VALUE, derivedFromCanonical); + case -1076333435: /*derivedFromUri*/ return new Property("derivedFromUri", "uri", "The URL pointing to an externally-defined observation definition, guideline or other definition that is adhered to in whole or in part by this definition.", 0, java.lang.Integer.MAX_VALUE, derivedFromUri); + case -1867885268: /*subject*/ return new Property("subject", "CodeableConcept", "A code that describes the intended kind of subject of Observation instances conforming to this ObservationDefinition.", 0, 1, subject); case -901444568: /*performerType*/ return new Property("performerType", "CodeableConcept", "The type of individual/organization/device that is expected to act upon instances of this definition.", 0, 1, performerType); case 50511102: /*category*/ return new Property("category", "CodeableConcept", "A code that classifies the general type of observation.", 0, java.lang.Integer.MAX_VALUE, category); case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Describes what will be observed. Sometimes this is called the observation \"name\".", 0, 1, code); @@ -3672,15 +3906,11 @@ public class ObservationDefinition extends DomainResource { case -2102414590: /*multipleResultsAllowed*/ return new Property("multipleResultsAllowed", "boolean", "Multiple results allowed for observations conforming to this ObservationDefinition.", 0, 1, multipleResultsAllowed); case 1702620169: /*bodySite*/ return new Property("bodySite", "CodeableConcept", "The site on the subject's body where the observation is to be made.", 0, 1, bodySite); case -1077554975: /*method*/ return new Property("method", "CodeableConcept", "The method or technique used to perform the observation.", 0, 1, method); - case -2132868344: /*specimen*/ return new Property("specimen", "Reference(SpecimenDefinition)", "The kind of specimen that this type of observation is produced on.", 0, 1, specimen); - case -1335157162: /*device*/ return new Property("device", "Reference(Device)", "The measurement device used to produce observations of this type.", 0, 1, device); + case -2132868344: /*specimen*/ return new Property("specimen", "Reference(SpecimenDefinition)", "The kind of specimen that this type of observation is produced on.", 0, java.lang.Integer.MAX_VALUE, specimen); + case -1335157162: /*device*/ return new Property("device", "Reference(DeviceDefinition|Device)", "The measurement model of device or actual device used to produce observations of this type.", 0, java.lang.Integer.MAX_VALUE, device); case -1851030208: /*preferredReportName*/ return new Property("preferredReportName", "string", "The preferred name to be used when reporting the results of observations conforming to this ObservationDefinition.", 0, 1, preferredReportName); - case 842150763: /*quantitativeDetails*/ return new Property("quantitativeDetails", "", "Characteristics for quantitative results of this observation.", 0, 1, quantitativeDetails); - case 1882971521: /*qualifiedInterval*/ return new Property("qualifiedInterval", "", "Multiple ranges of results qualified by different contexts for ordinal or continuous observations conforming to this ObservationDefinition.", 0, java.lang.Integer.MAX_VALUE, qualifiedInterval); - case 1374640076: /*validCodedValueSet*/ return new Property("validCodedValueSet", "Reference(ValueSet)", "The set of valid coded results for the observations conforming to this ObservationDefinition.", 0, 1, validCodedValueSet); - case -837500735: /*normalCodedValueSet*/ return new Property("normalCodedValueSet", "Reference(ValueSet)", "The set of normal coded results for the observations conforming to this ObservationDefinition.", 0, 1, normalCodedValueSet); - case 1073600256: /*abnormalCodedValueSet*/ return new Property("abnormalCodedValueSet", "Reference(ValueSet)", "The set of abnormal coded results for the observation conforming to this ObservationDefinition.", 0, 1, abnormalCodedValueSet); - case 2568457: /*criticalCodedValueSet*/ return new Property("criticalCodedValueSet", "Reference(ValueSet)", "The set of critical coded results for the observation conforming to this ObservationDefinition.", 0, 1, criticalCodedValueSet); + case 842150763: /*quantitativeDetails*/ return new Property("quantitativeDetails", "", "Characteristics for quantitative results of observations conforming to this ObservationDefinition.", 0, 1, quantitativeDetails); + case -558517707: /*qualifiedValue*/ return new Property("qualifiedValue", "", "A set of qualified values associated with a context and a set of conditions - provides a range for quantitative and ordinal observations and a collection of value sets for qualitative observations.", 0, java.lang.Integer.MAX_VALUE, qualifiedValue); case -458019372: /*hasMember*/ return new Property("hasMember", "Reference(ObservationDefinition|Questionnaire)", "This ObservationDefinition defines a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.", 0, java.lang.Integer.MAX_VALUE, hasMember); case -1399907075: /*component*/ return new Property("component", "", "Some observations have multiple component observations, expressed as separate code value pairs.", 0, java.lang.Integer.MAX_VALUE, component); default: return super.getNamedProperty(_hash, _name, _checkValid); @@ -3694,12 +3924,10 @@ public class ObservationDefinition extends DomainResource { case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType + case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType - case -978133683: /*derivedFromCanonical*/ return this.derivedFromCanonical == null ? new Base[0] : this.derivedFromCanonical.toArray(new Base[this.derivedFromCanonical.size()]); // CanonicalType - case -1076333435: /*derivedFromUri*/ return this.derivedFromUri == null ? new Base[0] : this.derivedFromUri.toArray(new Base[this.derivedFromUri.size()]); // UriType case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType - case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // DataType case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // Reference case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail @@ -3711,6 +3939,9 @@ public class ObservationDefinition extends DomainResource { case 223539345: /*approvalDate*/ return this.approvalDate == null ? new Base[0] : new Base[] {this.approvalDate}; // DateType case -1687512484: /*lastReviewDate*/ return this.lastReviewDate == null ? new Base[0] : new Base[] {this.lastReviewDate}; // DateType case -403934648: /*effectivePeriod*/ return this.effectivePeriod == null ? new Base[0] : new Base[] {this.effectivePeriod}; // Period + case -978133683: /*derivedFromCanonical*/ return this.derivedFromCanonical == null ? new Base[0] : this.derivedFromCanonical.toArray(new Base[this.derivedFromCanonical.size()]); // CanonicalType + case -1076333435: /*derivedFromUri*/ return this.derivedFromUri == null ? new Base[0] : this.derivedFromUri.toArray(new Base[this.derivedFromUri.size()]); // UriType + case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // CodeableConcept case -901444568: /*performerType*/ return this.performerType == null ? new Base[0] : new Base[] {this.performerType}; // CodeableConcept case 50511102: /*category*/ return this.category == null ? new Base[0] : this.category.toArray(new Base[this.category.size()]); // CodeableConcept case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept @@ -3718,15 +3949,11 @@ public class ObservationDefinition extends DomainResource { case -2102414590: /*multipleResultsAllowed*/ return this.multipleResultsAllowed == null ? new Base[0] : new Base[] {this.multipleResultsAllowed}; // BooleanType case 1702620169: /*bodySite*/ return this.bodySite == null ? new Base[0] : new Base[] {this.bodySite}; // CodeableConcept case -1077554975: /*method*/ return this.method == null ? new Base[0] : new Base[] {this.method}; // CodeableConcept - case -2132868344: /*specimen*/ return this.specimen == null ? new Base[0] : new Base[] {this.specimen}; // Reference - case -1335157162: /*device*/ return this.device == null ? new Base[0] : new Base[] {this.device}; // Reference + case -2132868344: /*specimen*/ return this.specimen == null ? new Base[0] : this.specimen.toArray(new Base[this.specimen.size()]); // Reference + case -1335157162: /*device*/ return this.device == null ? new Base[0] : this.device.toArray(new Base[this.device.size()]); // Reference case -1851030208: /*preferredReportName*/ return this.preferredReportName == null ? new Base[0] : new Base[] {this.preferredReportName}; // StringType case 842150763: /*quantitativeDetails*/ return this.quantitativeDetails == null ? new Base[0] : new Base[] {this.quantitativeDetails}; // ObservationDefinitionQuantitativeDetailsComponent - case 1882971521: /*qualifiedInterval*/ return this.qualifiedInterval == null ? new Base[0] : this.qualifiedInterval.toArray(new Base[this.qualifiedInterval.size()]); // ObservationDefinitionQualifiedIntervalComponent - case 1374640076: /*validCodedValueSet*/ return this.validCodedValueSet == null ? new Base[0] : new Base[] {this.validCodedValueSet}; // Reference - case -837500735: /*normalCodedValueSet*/ return this.normalCodedValueSet == null ? new Base[0] : new Base[] {this.normalCodedValueSet}; // Reference - case 1073600256: /*abnormalCodedValueSet*/ return this.abnormalCodedValueSet == null ? new Base[0] : new Base[] {this.abnormalCodedValueSet}; // Reference - case 2568457: /*criticalCodedValueSet*/ return this.criticalCodedValueSet == null ? new Base[0] : new Base[] {this.criticalCodedValueSet}; // Reference + case -558517707: /*qualifiedValue*/ return this.qualifiedValue == null ? new Base[0] : this.qualifiedValue.toArray(new Base[this.qualifiedValue.size()]); // ObservationDefinitionQualifiedValueComponent case -458019372: /*hasMember*/ return this.hasMember == null ? new Base[0] : this.hasMember.toArray(new Base[this.hasMember.size()]); // Reference case -1399907075: /*component*/ return this.component == null ? new Base[0] : this.component.toArray(new Base[this.component.size()]); // ObservationDefinitionComponentComponent default: return super.getProperty(hash, name, checkValid); @@ -3746,15 +3973,12 @@ public class ObservationDefinition extends DomainResource { case 351608024: // version this.version = TypeConvertor.castToString(value); // StringType return value; + case 3373707: // name + this.name = TypeConvertor.castToString(value); // StringType + return value; case 110371416: // title this.title = TypeConvertor.castToString(value); // StringType return value; - case -978133683: // derivedFromCanonical - this.getDerivedFromCanonical().add(TypeConvertor.castToCanonical(value)); // CanonicalType - return value; - case -1076333435: // derivedFromUri - this.getDerivedFromUri().add(TypeConvertor.castToUri(value)); // UriType - return value; case -892481550: // status value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); this.status = (Enumeration) value; // Enumeration @@ -3762,9 +3986,6 @@ public class ObservationDefinition extends DomainResource { case -404562712: // experimental this.experimental = TypeConvertor.castToBoolean(value); // BooleanType return value; - case -1867885268: // subject - this.subject = TypeConvertor.castToType(value); // DataType - return value; case 3076014: // date this.date = TypeConvertor.castToDateTime(value); // DateTimeType return value; @@ -3798,6 +4019,15 @@ public class ObservationDefinition extends DomainResource { case -403934648: // effectivePeriod this.effectivePeriod = TypeConvertor.castToPeriod(value); // Period return value; + case -978133683: // derivedFromCanonical + this.getDerivedFromCanonical().add(TypeConvertor.castToCanonical(value)); // CanonicalType + return value; + case -1076333435: // derivedFromUri + this.getDerivedFromUri().add(TypeConvertor.castToUri(value)); // UriType + return value; + case -1867885268: // subject + this.subject = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; case -901444568: // performerType this.performerType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; @@ -3821,10 +4051,10 @@ public class ObservationDefinition extends DomainResource { this.method = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; case -2132868344: // specimen - this.specimen = TypeConvertor.castToReference(value); // Reference + this.getSpecimen().add(TypeConvertor.castToReference(value)); // Reference return value; case -1335157162: // device - this.device = TypeConvertor.castToReference(value); // Reference + this.getDevice().add(TypeConvertor.castToReference(value)); // Reference return value; case -1851030208: // preferredReportName this.preferredReportName = TypeConvertor.castToString(value); // StringType @@ -3832,20 +4062,8 @@ public class ObservationDefinition extends DomainResource { case 842150763: // quantitativeDetails this.quantitativeDetails = (ObservationDefinitionQuantitativeDetailsComponent) value; // ObservationDefinitionQuantitativeDetailsComponent return value; - case 1882971521: // qualifiedInterval - this.getQualifiedInterval().add((ObservationDefinitionQualifiedIntervalComponent) value); // ObservationDefinitionQualifiedIntervalComponent - return value; - case 1374640076: // validCodedValueSet - this.validCodedValueSet = TypeConvertor.castToReference(value); // Reference - return value; - case -837500735: // normalCodedValueSet - this.normalCodedValueSet = TypeConvertor.castToReference(value); // Reference - return value; - case 1073600256: // abnormalCodedValueSet - this.abnormalCodedValueSet = TypeConvertor.castToReference(value); // Reference - return value; - case 2568457: // criticalCodedValueSet - this.criticalCodedValueSet = TypeConvertor.castToReference(value); // Reference + case -558517707: // qualifiedValue + this.getQualifiedValue().add((ObservationDefinitionQualifiedValueComponent) value); // ObservationDefinitionQualifiedValueComponent return value; case -458019372: // hasMember this.getHasMember().add(TypeConvertor.castToReference(value)); // Reference @@ -3866,19 +4084,15 @@ public class ObservationDefinition extends DomainResource { this.identifier = TypeConvertor.castToIdentifier(value); // Identifier } else if (name.equals("version")) { this.version = TypeConvertor.castToString(value); // StringType + } else if (name.equals("name")) { + this.name = TypeConvertor.castToString(value); // StringType } else if (name.equals("title")) { this.title = TypeConvertor.castToString(value); // StringType - } else if (name.equals("derivedFromCanonical")) { - this.getDerivedFromCanonical().add(TypeConvertor.castToCanonical(value)); - } else if (name.equals("derivedFromUri")) { - this.getDerivedFromUri().add(TypeConvertor.castToUri(value)); } else if (name.equals("status")) { value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); this.status = (Enumeration) value; // Enumeration } else if (name.equals("experimental")) { this.experimental = TypeConvertor.castToBoolean(value); // BooleanType - } else if (name.equals("subject[x]")) { - this.subject = TypeConvertor.castToType(value); // DataType } else if (name.equals("date")) { this.date = TypeConvertor.castToDateTime(value); // DateTimeType } else if (name.equals("publisher")) { @@ -3901,6 +4115,12 @@ public class ObservationDefinition extends DomainResource { this.lastReviewDate = TypeConvertor.castToDate(value); // DateType } else if (name.equals("effectivePeriod")) { this.effectivePeriod = TypeConvertor.castToPeriod(value); // Period + } else if (name.equals("derivedFromCanonical")) { + this.getDerivedFromCanonical().add(TypeConvertor.castToCanonical(value)); + } else if (name.equals("derivedFromUri")) { + this.getDerivedFromUri().add(TypeConvertor.castToUri(value)); + } else if (name.equals("subject")) { + this.subject = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("performerType")) { this.performerType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("category")) { @@ -3917,23 +4137,15 @@ public class ObservationDefinition extends DomainResource { } else if (name.equals("method")) { this.method = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("specimen")) { - this.specimen = TypeConvertor.castToReference(value); // Reference + this.getSpecimen().add(TypeConvertor.castToReference(value)); } else if (name.equals("device")) { - this.device = TypeConvertor.castToReference(value); // Reference + this.getDevice().add(TypeConvertor.castToReference(value)); } else if (name.equals("preferredReportName")) { this.preferredReportName = TypeConvertor.castToString(value); // StringType } else if (name.equals("quantitativeDetails")) { this.quantitativeDetails = (ObservationDefinitionQuantitativeDetailsComponent) value; // ObservationDefinitionQuantitativeDetailsComponent - } else if (name.equals("qualifiedInterval")) { - this.getQualifiedInterval().add((ObservationDefinitionQualifiedIntervalComponent) value); - } else if (name.equals("validCodedValueSet")) { - this.validCodedValueSet = TypeConvertor.castToReference(value); // Reference - } else if (name.equals("normalCodedValueSet")) { - this.normalCodedValueSet = TypeConvertor.castToReference(value); // Reference - } else if (name.equals("abnormalCodedValueSet")) { - this.abnormalCodedValueSet = TypeConvertor.castToReference(value); // Reference - } else if (name.equals("criticalCodedValueSet")) { - this.criticalCodedValueSet = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("qualifiedValue")) { + this.getQualifiedValue().add((ObservationDefinitionQualifiedValueComponent) value); } else if (name.equals("hasMember")) { this.getHasMember().add(TypeConvertor.castToReference(value)); } else if (name.equals("component")) { @@ -3949,13 +4161,10 @@ public class ObservationDefinition extends DomainResource { case 116079: return getUrlElement(); case -1618432855: return getIdentifier(); case 351608024: return getVersionElement(); + case 3373707: return getNameElement(); case 110371416: return getTitleElement(); - case -978133683: return addDerivedFromCanonicalElement(); - case -1076333435: return addDerivedFromUriElement(); case -892481550: return getStatusElement(); case -404562712: return getExperimentalElement(); - case -573640748: return getSubject(); - case -1867885268: return getSubject(); case 3076014: return getDateElement(); case 1447404028: return getPublisher(); case 951526432: return addContact(); @@ -3967,6 +4176,9 @@ public class ObservationDefinition extends DomainResource { case 223539345: return getApprovalDateElement(); case -1687512484: return getLastReviewDateElement(); case -403934648: return getEffectivePeriod(); + case -978133683: return addDerivedFromCanonicalElement(); + case -1076333435: return addDerivedFromUriElement(); + case -1867885268: return getSubject(); case -901444568: return getPerformerType(); case 50511102: return addCategory(); case 3059181: return getCode(); @@ -3974,15 +4186,11 @@ public class ObservationDefinition extends DomainResource { case -2102414590: return getMultipleResultsAllowedElement(); case 1702620169: return getBodySite(); case -1077554975: return getMethod(); - case -2132868344: return getSpecimen(); - case -1335157162: return getDevice(); + case -2132868344: return addSpecimen(); + case -1335157162: return addDevice(); case -1851030208: return getPreferredReportNameElement(); case 842150763: return getQuantitativeDetails(); - case 1882971521: return addQualifiedInterval(); - case 1374640076: return getValidCodedValueSet(); - case -837500735: return getNormalCodedValueSet(); - case 1073600256: return getAbnormalCodedValueSet(); - case 2568457: return getCriticalCodedValueSet(); + case -558517707: return addQualifiedValue(); case -458019372: return addHasMember(); case -1399907075: return addComponent(); default: return super.makeProperty(hash, name); @@ -3996,12 +4204,10 @@ public class ObservationDefinition extends DomainResource { case 116079: /*url*/ return new String[] {"uri"}; case -1618432855: /*identifier*/ return new String[] {"Identifier"}; case 351608024: /*version*/ return new String[] {"string"}; + case 3373707: /*name*/ return new String[] {"string"}; case 110371416: /*title*/ return new String[] {"string"}; - case -978133683: /*derivedFromCanonical*/ return new String[] {"canonical"}; - case -1076333435: /*derivedFromUri*/ return new String[] {"uri"}; case -892481550: /*status*/ return new String[] {"code"}; case -404562712: /*experimental*/ return new String[] {"boolean"}; - case -1867885268: /*subject*/ return new String[] {"CodeableConcept", "Reference"}; case 3076014: /*date*/ return new String[] {"dateTime"}; case 1447404028: /*publisher*/ return new String[] {"Reference"}; case 951526432: /*contact*/ return new String[] {"ContactDetail"}; @@ -4013,6 +4219,9 @@ public class ObservationDefinition extends DomainResource { case 223539345: /*approvalDate*/ return new String[] {"date"}; case -1687512484: /*lastReviewDate*/ return new String[] {"date"}; case -403934648: /*effectivePeriod*/ return new String[] {"Period"}; + case -978133683: /*derivedFromCanonical*/ return new String[] {"canonical"}; + case -1076333435: /*derivedFromUri*/ return new String[] {"uri"}; + case -1867885268: /*subject*/ return new String[] {"CodeableConcept"}; case -901444568: /*performerType*/ return new String[] {"CodeableConcept"}; case 50511102: /*category*/ return new String[] {"CodeableConcept"}; case 3059181: /*code*/ return new String[] {"CodeableConcept"}; @@ -4024,11 +4233,7 @@ public class ObservationDefinition extends DomainResource { case -1335157162: /*device*/ return new String[] {"Reference"}; case -1851030208: /*preferredReportName*/ return new String[] {"string"}; case 842150763: /*quantitativeDetails*/ return new String[] {}; - case 1882971521: /*qualifiedInterval*/ return new String[] {}; - case 1374640076: /*validCodedValueSet*/ return new String[] {"Reference"}; - case -837500735: /*normalCodedValueSet*/ return new String[] {"Reference"}; - case 1073600256: /*abnormalCodedValueSet*/ return new String[] {"Reference"}; - case 2568457: /*criticalCodedValueSet*/ return new String[] {"Reference"}; + case -558517707: /*qualifiedValue*/ return new String[] {}; case -458019372: /*hasMember*/ return new String[] {"Reference"}; case -1399907075: /*component*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); @@ -4048,29 +4253,18 @@ public class ObservationDefinition extends DomainResource { else if (name.equals("version")) { throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.version"); } + else if (name.equals("name")) { + throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.name"); + } else if (name.equals("title")) { throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.title"); } - else if (name.equals("derivedFromCanonical")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.derivedFromCanonical"); - } - else if (name.equals("derivedFromUri")) { - throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.derivedFromUri"); - } else if (name.equals("status")) { throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.status"); } else if (name.equals("experimental")) { throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.experimental"); } - else if (name.equals("subjectCodeableConcept")) { - this.subject = new CodeableConcept(); - return this.subject; - } - else if (name.equals("subjectReference")) { - this.subject = new Reference(); - return this.subject; - } else if (name.equals("date")) { throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.date"); } @@ -4106,6 +4300,16 @@ public class ObservationDefinition extends DomainResource { this.effectivePeriod = new Period(); return this.effectivePeriod; } + else if (name.equals("derivedFromCanonical")) { + throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.derivedFromCanonical"); + } + else if (name.equals("derivedFromUri")) { + throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.derivedFromUri"); + } + else if (name.equals("subject")) { + this.subject = new CodeableConcept(); + return this.subject; + } else if (name.equals("performerType")) { this.performerType = new CodeableConcept(); return this.performerType; @@ -4132,12 +4336,10 @@ public class ObservationDefinition extends DomainResource { return this.method; } else if (name.equals("specimen")) { - this.specimen = new Reference(); - return this.specimen; + return addSpecimen(); } else if (name.equals("device")) { - this.device = new Reference(); - return this.device; + return addDevice(); } else if (name.equals("preferredReportName")) { throw new FHIRException("Cannot call addChild on a primitive type ObservationDefinition.preferredReportName"); @@ -4146,24 +4348,8 @@ public class ObservationDefinition extends DomainResource { this.quantitativeDetails = new ObservationDefinitionQuantitativeDetailsComponent(); return this.quantitativeDetails; } - else if (name.equals("qualifiedInterval")) { - return addQualifiedInterval(); - } - else if (name.equals("validCodedValueSet")) { - this.validCodedValueSet = new Reference(); - return this.validCodedValueSet; - } - else if (name.equals("normalCodedValueSet")) { - this.normalCodedValueSet = new Reference(); - return this.normalCodedValueSet; - } - else if (name.equals("abnormalCodedValueSet")) { - this.abnormalCodedValueSet = new Reference(); - return this.abnormalCodedValueSet; - } - else if (name.equals("criticalCodedValueSet")) { - this.criticalCodedValueSet = new Reference(); - return this.criticalCodedValueSet; + else if (name.equals("qualifiedValue")) { + return addQualifiedValue(); } else if (name.equals("hasMember")) { return addHasMember(); @@ -4191,20 +4377,10 @@ public class ObservationDefinition extends DomainResource { dst.url = url == null ? null : url.copy(); dst.identifier = identifier == null ? null : identifier.copy(); dst.version = version == null ? null : version.copy(); + dst.name = name == null ? null : name.copy(); dst.title = title == null ? null : title.copy(); - if (derivedFromCanonical != null) { - dst.derivedFromCanonical = new ArrayList(); - for (CanonicalType i : derivedFromCanonical) - dst.derivedFromCanonical.add(i.copy()); - }; - if (derivedFromUri != null) { - dst.derivedFromUri = new ArrayList(); - for (UriType i : derivedFromUri) - dst.derivedFromUri.add(i.copy()); - }; dst.status = status == null ? null : status.copy(); dst.experimental = experimental == null ? null : experimental.copy(); - dst.subject = subject == null ? null : subject.copy(); dst.date = date == null ? null : date.copy(); dst.publisher = publisher == null ? null : publisher.copy(); if (contact != null) { @@ -4228,6 +4404,17 @@ public class ObservationDefinition extends DomainResource { dst.approvalDate = approvalDate == null ? null : approvalDate.copy(); dst.lastReviewDate = lastReviewDate == null ? null : lastReviewDate.copy(); dst.effectivePeriod = effectivePeriod == null ? null : effectivePeriod.copy(); + if (derivedFromCanonical != null) { + dst.derivedFromCanonical = new ArrayList(); + for (CanonicalType i : derivedFromCanonical) + dst.derivedFromCanonical.add(i.copy()); + }; + if (derivedFromUri != null) { + dst.derivedFromUri = new ArrayList(); + for (UriType i : derivedFromUri) + dst.derivedFromUri.add(i.copy()); + }; + dst.subject = subject == null ? null : subject.copy(); dst.performerType = performerType == null ? null : performerType.copy(); if (category != null) { dst.category = new ArrayList(); @@ -4243,19 +4430,23 @@ public class ObservationDefinition extends DomainResource { dst.multipleResultsAllowed = multipleResultsAllowed == null ? null : multipleResultsAllowed.copy(); dst.bodySite = bodySite == null ? null : bodySite.copy(); dst.method = method == null ? null : method.copy(); - dst.specimen = specimen == null ? null : specimen.copy(); - dst.device = device == null ? null : device.copy(); + if (specimen != null) { + dst.specimen = new ArrayList(); + for (Reference i : specimen) + dst.specimen.add(i.copy()); + }; + if (device != null) { + dst.device = new ArrayList(); + for (Reference i : device) + dst.device.add(i.copy()); + }; dst.preferredReportName = preferredReportName == null ? null : preferredReportName.copy(); dst.quantitativeDetails = quantitativeDetails == null ? null : quantitativeDetails.copy(); - if (qualifiedInterval != null) { - dst.qualifiedInterval = new ArrayList(); - for (ObservationDefinitionQualifiedIntervalComponent i : qualifiedInterval) - dst.qualifiedInterval.add(i.copy()); + if (qualifiedValue != null) { + dst.qualifiedValue = new ArrayList(); + for (ObservationDefinitionQualifiedValueComponent i : qualifiedValue) + dst.qualifiedValue.add(i.copy()); }; - dst.validCodedValueSet = validCodedValueSet == null ? null : validCodedValueSet.copy(); - dst.normalCodedValueSet = normalCodedValueSet == null ? null : normalCodedValueSet.copy(); - dst.abnormalCodedValueSet = abnormalCodedValueSet == null ? null : abnormalCodedValueSet.copy(); - dst.criticalCodedValueSet = criticalCodedValueSet == null ? null : criticalCodedValueSet.copy(); if (hasMember != null) { dst.hasMember = new ArrayList(); for (Reference i : hasMember) @@ -4280,20 +4471,19 @@ public class ObservationDefinition extends DomainResource { return false; ObservationDefinition o = (ObservationDefinition) other_; return compareDeep(url, o.url, true) && compareDeep(identifier, o.identifier, true) && compareDeep(version, o.version, true) - && compareDeep(title, o.title, true) && compareDeep(derivedFromCanonical, o.derivedFromCanonical, true) - && compareDeep(derivedFromUri, o.derivedFromUri, true) && compareDeep(status, o.status, true) && compareDeep(experimental, o.experimental, true) - && compareDeep(subject, o.subject, true) && compareDeep(date, o.date, true) && compareDeep(publisher, o.publisher, true) + && compareDeep(name, o.name, true) && compareDeep(title, o.title, true) && compareDeep(status, o.status, true) + && compareDeep(experimental, o.experimental, true) && compareDeep(date, o.date, true) && compareDeep(publisher, o.publisher, true) && compareDeep(contact, o.contact, true) && compareDeep(description, o.description, true) && compareDeep(useContext, o.useContext, true) && compareDeep(jurisdiction, o.jurisdiction, true) && compareDeep(purpose, o.purpose, true) && compareDeep(copyright, o.copyright, true) && compareDeep(approvalDate, o.approvalDate, true) && compareDeep(lastReviewDate, o.lastReviewDate, true) - && compareDeep(effectivePeriod, o.effectivePeriod, true) && compareDeep(performerType, o.performerType, true) - && compareDeep(category, o.category, true) && compareDeep(code, o.code, true) && compareDeep(permittedDataType, o.permittedDataType, true) + && compareDeep(effectivePeriod, o.effectivePeriod, true) && compareDeep(derivedFromCanonical, o.derivedFromCanonical, true) + && compareDeep(derivedFromUri, o.derivedFromUri, true) && compareDeep(subject, o.subject, true) + && compareDeep(performerType, o.performerType, true) && compareDeep(category, o.category, true) + && compareDeep(code, o.code, true) && compareDeep(permittedDataType, o.permittedDataType, true) && compareDeep(multipleResultsAllowed, o.multipleResultsAllowed, true) && compareDeep(bodySite, o.bodySite, true) && compareDeep(method, o.method, true) && compareDeep(specimen, o.specimen, true) && compareDeep(device, o.device, true) && compareDeep(preferredReportName, o.preferredReportName, true) && compareDeep(quantitativeDetails, o.quantitativeDetails, true) - && compareDeep(qualifiedInterval, o.qualifiedInterval, true) && compareDeep(validCodedValueSet, o.validCodedValueSet, true) - && compareDeep(normalCodedValueSet, o.normalCodedValueSet, true) && compareDeep(abnormalCodedValueSet, o.abnormalCodedValueSet, true) - && compareDeep(criticalCodedValueSet, o.criticalCodedValueSet, true) && compareDeep(hasMember, o.hasMember, true) + && compareDeep(qualifiedValue, o.qualifiedValue, true) && compareDeep(hasMember, o.hasMember, true) && compareDeep(component, o.component, true); } @@ -4304,23 +4494,23 @@ public class ObservationDefinition extends DomainResource { if (!(other_ instanceof ObservationDefinition)) return false; ObservationDefinition o = (ObservationDefinition) other_; - return compareValues(url, o.url, true) && compareValues(version, o.version, true) && compareValues(title, o.title, true) - && compareValues(derivedFromCanonical, o.derivedFromCanonical, true) && compareValues(derivedFromUri, o.derivedFromUri, true) - && compareValues(status, o.status, true) && compareValues(experimental, o.experimental, true) && compareValues(date, o.date, true) - && compareValues(description, o.description, true) && compareValues(purpose, o.purpose, true) && compareValues(copyright, o.copyright, true) - && compareValues(approvalDate, o.approvalDate, true) && compareValues(lastReviewDate, o.lastReviewDate, true) - && compareValues(permittedDataType, o.permittedDataType, true) && compareValues(multipleResultsAllowed, o.multipleResultsAllowed, true) - && compareValues(preferredReportName, o.preferredReportName, true); + return compareValues(url, o.url, true) && compareValues(version, o.version, true) && compareValues(name, o.name, true) + && compareValues(title, o.title, true) && compareValues(status, o.status, true) && compareValues(experimental, o.experimental, true) + && compareValues(date, o.date, true) && compareValues(description, o.description, true) && compareValues(purpose, o.purpose, true) + && compareValues(copyright, o.copyright, true) && compareValues(approvalDate, o.approvalDate, true) + && compareValues(lastReviewDate, o.lastReviewDate, true) && compareValues(derivedFromCanonical, o.derivedFromCanonical, true) + && compareValues(derivedFromUri, o.derivedFromUri, true) && compareValues(permittedDataType, o.permittedDataType, true) + && compareValues(multipleResultsAllowed, o.multipleResultsAllowed, true) && compareValues(preferredReportName, o.preferredReportName, true) + ; } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, identifier, version - , title, derivedFromCanonical, derivedFromUri, status, experimental, subject, date - , publisher, contact, description, useContext, jurisdiction, purpose, copyright - , approvalDate, lastReviewDate, effectivePeriod, performerType, category, code, permittedDataType + , name, title, status, experimental, date, publisher, contact, description, useContext + , jurisdiction, purpose, copyright, approvalDate, lastReviewDate, effectivePeriod + , derivedFromCanonical, derivedFromUri, subject, performerType, category, code, permittedDataType , multipleResultsAllowed, bodySite, method, specimen, device, preferredReportName - , quantitativeDetails, qualifiedInterval, validCodedValueSet, normalCodedValueSet, abnormalCodedValueSet - , criticalCodedValueSet, hasMember, component); + , quantitativeDetails, qualifiedValue, hasMember, component); } @Override diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationDefinition.java index a202ba54e..dbae5b3c8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -82,7 +82,6 @@ public class OperationDefinition extends CanonicalResource { switch (this) { case OPERATION: return "operation"; case QUERY: return "query"; - case NULL: return null; default: return "?"; } } @@ -90,7 +89,6 @@ public class OperationDefinition extends CanonicalResource { switch (this) { case OPERATION: return "http://hl7.org/fhir/operation-kind"; case QUERY: return "http://hl7.org/fhir/operation-kind"; - case NULL: return null; default: return "?"; } } @@ -98,7 +96,6 @@ public class OperationDefinition extends CanonicalResource { switch (this) { case OPERATION: return "This operation is invoked as an operation."; case QUERY: return "This operation is a named query, invoked using the search mechanism."; - case NULL: return null; default: return "?"; } } @@ -106,7 +103,6 @@ public class OperationDefinition extends CanonicalResource { switch (this) { case OPERATION: return "Operation"; case QUERY: return "Query"; - case NULL: return null; default: return "?"; } } @@ -3887,182 +3883,56 @@ public class OperationDefinition extends CanonicalResource { } /** - * Search parameter: base + * Search parameter: context *

- * Description: Marks this as a profile of the base
- * Type: reference
- * Path: OperationDefinition.base
- *

- */ - @SearchParamDefinition(name="base", path="OperationDefinition.base", description="Marks this as a profile of the base", type="reference", target={OperationDefinition.class } ) - public static final String SP_BASE = "base"; - /** - * Fluent Client search parameter constant for base - *

- * Description: Marks this as a profile of the base
- * Type: reference
- * Path: OperationDefinition.base
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASE); + * Description: Multiple Resources: -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition:base". +* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +
+ * Type: token
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
+ *

*/ - public static final ca.uhn.fhir.model.api.Include INCLUDE_BASE = new ca.uhn.fhir.model.api.Include("OperationDefinition:base").toLocked(); + @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: Multiple Resources: - /** - * Search parameter: code - *

- * Description: Name used to invoke the operation
+* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +

* Type: token
- * Path: OperationDefinition.code
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="code", path="OperationDefinition.code", description="Name used to invoke the operation", type="token" ) - public static final String SP_CODE = "code"; - /** - * Fluent Client search parameter constant for code - *

- * Description: Name used to invoke the operation
- * Type: token
- * Path: OperationDefinition.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); - - /** - * Search parameter: input-profile - *

- * Description: Validation information for in parameters
- * Type: reference
- * Path: OperationDefinition.inputProfile
- *

- */ - @SearchParamDefinition(name="input-profile", path="OperationDefinition.inputProfile", description="Validation information for in parameters", type="reference", target={StructureDefinition.class } ) - public static final String SP_INPUT_PROFILE = "input-profile"; - /** - * Fluent Client search parameter constant for input-profile - *

- * Description: Validation information for in parameters
- * Type: reference
- * Path: OperationDefinition.inputProfile
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INPUT_PROFILE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INPUT_PROFILE); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition:input-profile". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_INPUT_PROFILE = new ca.uhn.fhir.model.api.Include("OperationDefinition:input-profile").toLocked(); - - /** - * Search parameter: instance - *

- * Description: Invoke on an instance?
- * Type: token
- * Path: OperationDefinition.instance
- *

- */ - @SearchParamDefinition(name="instance", path="OperationDefinition.instance", description="Invoke on an instance?", type="token" ) - public static final String SP_INSTANCE = "instance"; - /** - * Fluent Client search parameter constant for instance - *

- * Description: Invoke on an instance?
- * Type: token
- * Path: OperationDefinition.instance
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam INSTANCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_INSTANCE); - - /** - * Search parameter: kind - *

- * Description: operation | query
- * Type: token
- * Path: OperationDefinition.kind
- *

- */ - @SearchParamDefinition(name="kind", path="OperationDefinition.kind", description="operation | query", type="token" ) - public static final String SP_KIND = "kind"; - /** - * Fluent Client search parameter constant for kind - *

- * Description: operation | query
- * Type: token
- * Path: OperationDefinition.kind
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam KIND = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_KIND); - - /** - * Search parameter: output-profile - *

- * Description: Validation information for out parameters
- * Type: reference
- * Path: OperationDefinition.outputProfile
- *

- */ - @SearchParamDefinition(name="output-profile", path="OperationDefinition.outputProfile", description="Validation information for out parameters", type="reference", target={StructureDefinition.class } ) - public static final String SP_OUTPUT_PROFILE = "output-profile"; - /** - * Fluent Client search parameter constant for output-profile - *

- * Description: Validation information for out parameters
- * Type: reference
- * Path: OperationDefinition.outputProfile
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam OUTPUT_PROFILE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_OUTPUT_PROFILE); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "OperationDefinition:output-profile". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_OUTPUT_PROFILE = new ca.uhn.fhir.model.api.Include("OperationDefinition:output-profile").toLocked(); - - /** - * Search parameter: system - *

- * Description: Invoke at the system level?
- * Type: token
- * Path: OperationDefinition.system
- *

- */ - @SearchParamDefinition(name="system", path="OperationDefinition.system", description="Invoke at the system level?", type="token" ) - public static final String SP_SYSTEM = "system"; - /** - * Fluent Client search parameter constant for system - *

- * Description: Invoke at the system level?
- * Type: token
- * Path: OperationDefinition.system
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam SYSTEM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SYSTEM); - - /** - * Search parameter: type - *

- * Description: Invoke at the type level?
- * Type: token
- * Path: OperationDefinition.type
- *

- */ - @SearchParamDefinition(name="type", path="OperationDefinition.type", description="Invoke at the type level?", type="token" ) - public static final String SP_TYPE = "type"; - /** - * Fluent Client search parameter constant for type - *

- * Description: Invoke at the type level?
- * Type: token
- * Path: OperationDefinition.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); /** * Search parameter: context-quantity @@ -4116,110 +3986,6 @@ public class OperationDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -4272,58 +4038,6 @@ public class OperationDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -4782,12 +4496,294 @@ public class OperationDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: Multiple Resources: +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: Multiple Resources: -//Manual code (from Configuration.txt)t: +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + + /** + * Search parameter: base + *

+ * Description: Marks this as a profile of the base
+ * Type: reference
+ * Path: OperationDefinition.base
+ *

+ */ + @SearchParamDefinition(name="base", path="OperationDefinition.base", description="Marks this as a profile of the base", type="reference", target={OperationDefinition.class } ) + public static final String SP_BASE = "base"; + /** + * Fluent Client search parameter constant for base + *

+ * Description: Marks this as a profile of the base
+ * Type: reference
+ * Path: OperationDefinition.base
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "OperationDefinition:base". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_BASE = new ca.uhn.fhir.model.api.Include("OperationDefinition:base").toLocked(); + + /** + * Search parameter: code + *

+ * Description: Name used to invoke the operation
+ * Type: token
+ * Path: OperationDefinition.code
+ *

+ */ + @SearchParamDefinition(name="code", path="OperationDefinition.code", description="Name used to invoke the operation", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: Name used to invoke the operation
+ * Type: token
+ * Path: OperationDefinition.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + + /** + * Search parameter: input-profile + *

+ * Description: Validation information for in parameters
+ * Type: reference
+ * Path: OperationDefinition.inputProfile
+ *

+ */ + @SearchParamDefinition(name="input-profile", path="OperationDefinition.inputProfile", description="Validation information for in parameters", type="reference", target={StructureDefinition.class } ) + public static final String SP_INPUT_PROFILE = "input-profile"; + /** + * Fluent Client search parameter constant for input-profile + *

+ * Description: Validation information for in parameters
+ * Type: reference
+ * Path: OperationDefinition.inputProfile
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INPUT_PROFILE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INPUT_PROFILE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "OperationDefinition:input-profile". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_INPUT_PROFILE = new ca.uhn.fhir.model.api.Include("OperationDefinition:input-profile").toLocked(); + + /** + * Search parameter: instance + *

+ * Description: Invoke on an instance?
+ * Type: token
+ * Path: OperationDefinition.instance
+ *

+ */ + @SearchParamDefinition(name="instance", path="OperationDefinition.instance", description="Invoke on an instance?", type="token" ) + public static final String SP_INSTANCE = "instance"; + /** + * Fluent Client search parameter constant for instance + *

+ * Description: Invoke on an instance?
+ * Type: token
+ * Path: OperationDefinition.instance
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam INSTANCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_INSTANCE); + + /** + * Search parameter: kind + *

+ * Description: operation | query
+ * Type: token
+ * Path: OperationDefinition.kind
+ *

+ */ + @SearchParamDefinition(name="kind", path="OperationDefinition.kind", description="operation | query", type="token" ) + public static final String SP_KIND = "kind"; + /** + * Fluent Client search parameter constant for kind + *

+ * Description: operation | query
+ * Type: token
+ * Path: OperationDefinition.kind
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam KIND = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_KIND); + + /** + * Search parameter: output-profile + *

+ * Description: Validation information for out parameters
+ * Type: reference
+ * Path: OperationDefinition.outputProfile
+ *

+ */ + @SearchParamDefinition(name="output-profile", path="OperationDefinition.outputProfile", description="Validation information for out parameters", type="reference", target={StructureDefinition.class } ) + public static final String SP_OUTPUT_PROFILE = "output-profile"; + /** + * Fluent Client search parameter constant for output-profile + *

+ * Description: Validation information for out parameters
+ * Type: reference
+ * Path: OperationDefinition.outputProfile
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam OUTPUT_PROFILE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_OUTPUT_PROFILE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "OperationDefinition:output-profile". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_OUTPUT_PROFILE = new ca.uhn.fhir.model.api.Include("OperationDefinition:output-profile").toLocked(); + + /** + * Search parameter: system + *

+ * Description: Invoke at the system level?
+ * Type: token
+ * Path: OperationDefinition.system
+ *

+ */ + @SearchParamDefinition(name="system", path="OperationDefinition.system", description="Invoke at the system level?", type="token" ) + public static final String SP_SYSTEM = "system"; + /** + * Fluent Client search parameter constant for system + *

+ * Description: Invoke at the system level?
+ * Type: token
+ * Path: OperationDefinition.system
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam SYSTEM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SYSTEM); + + /** + * Search parameter: type + *

+ * Description: Invoke at the type level?
+ * Type: token
+ * Path: OperationDefinition.type
+ *

+ */ + @SearchParamDefinition(name="type", path="OperationDefinition.type", description="Invoke at the type level?", type="token" ) + public static final String SP_TYPE = "type"; + /** + * Fluent Client search parameter constant for type + *

+ * Description: Invoke at the type level?
+ * Type: token
+ * Path: OperationDefinition.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); + +// Manual code (from Configuration.txt): public boolean supportsCopyright() { return false; } - // end + +// end addition + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationOutcome.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationOutcome.java index e7e735331..9214a0c4c 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationOutcome.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OperationOutcome.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -97,7 +97,6 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu case ERROR: return "error"; case WARNING: return "warning"; case INFORMATION: return "information"; - case NULL: return null; default: return "?"; } } @@ -107,7 +106,6 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu case ERROR: return "http://hl7.org/fhir/issue-severity"; case WARNING: return "http://hl7.org/fhir/issue-severity"; case INFORMATION: return "http://hl7.org/fhir/issue-severity"; - case NULL: return null; default: return "?"; } } @@ -117,7 +115,6 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu case ERROR: return "The issue is sufficiently important to cause the action to fail."; case WARNING: return "The issue is not important enough to cause the action to fail but may cause it to be performed suboptimally or in a way that is not as desired."; case INFORMATION: return "The issue has no relation to the degree of success of the action."; - case NULL: return null; default: return "?"; } } @@ -127,7 +124,6 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu case ERROR: return "Error"; case WARNING: return "Warning"; case INFORMATION: return "Information"; - case NULL: return null; default: return "?"; } } @@ -414,7 +410,6 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu case INCOMPLETE: return "incomplete"; case THROTTLED: return "throttled"; case INFORMATIONAL: return "informational"; - case NULL: return null; default: return "?"; } } @@ -451,7 +446,6 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu case INCOMPLETE: return "http://hl7.org/fhir/issue-type"; case THROTTLED: return "http://hl7.org/fhir/issue-type"; case INFORMATIONAL: return "http://hl7.org/fhir/issue-type"; - case NULL: return null; default: return "?"; } } @@ -488,7 +482,6 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu case INCOMPLETE: return "Not all data sources typically accessed could be reached or responded in time, so the returned information might not be complete (applies to search interactions and some operations)."; case THROTTLED: return "The system is not prepared to handle this request due to load management."; case INFORMATIONAL: return "A message unrelated to the processing success of the completed operation (examples of the latter include things like reminders of password expiry, system maintenance times, etc.)."; - case NULL: return null; default: return "?"; } } @@ -525,7 +518,6 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu case INCOMPLETE: return "Incomplete Results"; case THROTTLED: return "Throttled"; case INFORMATIONAL: return "Informational Note"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrderedDistribution.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrderedDistribution.java index be16597d4..e1980c096 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrderedDistribution.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrderedDistribution.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Organization.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Organization.java index d3e5c8c73..d6d61dd3d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Organization.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Organization.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -1257,6 +1257,26 @@ public class Organization extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVE); + /** + * Search parameter: address + *

+ * Description: A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
+ * Type: string
+ * Path: Organization.address
+ *

+ */ + @SearchParamDefinition(name="address", path="Organization.address", description="A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text", type="string" ) + public static final String SP_ADDRESS = "address"; + /** + * Fluent Client search parameter constant for address + *

+ * Description: A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
+ * Type: string
+ * Path: Organization.address
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); + /** * Search parameter: address-city *

@@ -1357,26 +1377,6 @@ public class Organization extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ADDRESS_USE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ADDRESS_USE); - /** - * Search parameter: address - *

- * Description: A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
- * Type: string
- * Path: Organization.address
- *

- */ - @SearchParamDefinition(name="address", path="Organization.address", description="A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text", type="string" ) - public static final String SP_ADDRESS = "address"; - /** - * Fluent Client search parameter constant for address - *

- * Description: A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text
- * Type: string
- * Path: Organization.address
- *

- */ - public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); - /** * Search parameter: endpoint *

diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrganizationAffiliation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrganizationAffiliation.java index fec5c8cf4..cf30db4fd 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrganizationAffiliation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/OrganizationAffiliation.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PackagedProductDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PackagedProductDefinition.java index 468301b13..8ddee8b4c 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PackagedProductDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PackagedProductDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -53,217 +53,6 @@ import ca.uhn.fhir.model.api.annotation.Block; @ResourceDef(name="PackagedProductDefinition", profile="http://hl7.org/fhir/StructureDefinition/PackagedProductDefinition") public class PackagedProductDefinition extends DomainResource { - @Block() - public static class PackagedProductDefinitionBatchIdentifierComponent extends BackboneElement implements IBaseBackboneElement { - /** - * A number appearing on the outer packaging of a specific batch. - */ - @Child(name = "outerPackaging", type = {Identifier.class}, order=1, min=1, max=1, modifier=false, summary=true) - @Description(shortDefinition="A number appearing on the outer packaging of a specific batch", formalDefinition="A number appearing on the outer packaging of a specific batch." ) - protected Identifier outerPackaging; - - /** - * A number appearing on the immediate packaging (and not the outer packaging). - */ - @Child(name = "immediatePackaging", type = {Identifier.class}, order=2, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="A number appearing on the immediate packaging (and not the outer packaging)", formalDefinition="A number appearing on the immediate packaging (and not the outer packaging)." ) - protected Identifier immediatePackaging; - - private static final long serialVersionUID = 1187365068L; - - /** - * Constructor - */ - public PackagedProductDefinitionBatchIdentifierComponent() { - super(); - } - - /** - * Constructor - */ - public PackagedProductDefinitionBatchIdentifierComponent(Identifier outerPackaging) { - super(); - this.setOuterPackaging(outerPackaging); - } - - /** - * @return {@link #outerPackaging} (A number appearing on the outer packaging of a specific batch.) - */ - public Identifier getOuterPackaging() { - if (this.outerPackaging == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create PackagedProductDefinitionBatchIdentifierComponent.outerPackaging"); - else if (Configuration.doAutoCreate()) - this.outerPackaging = new Identifier(); // cc - return this.outerPackaging; - } - - public boolean hasOuterPackaging() { - return this.outerPackaging != null && !this.outerPackaging.isEmpty(); - } - - /** - * @param value {@link #outerPackaging} (A number appearing on the outer packaging of a specific batch.) - */ - public PackagedProductDefinitionBatchIdentifierComponent setOuterPackaging(Identifier value) { - this.outerPackaging = value; - return this; - } - - /** - * @return {@link #immediatePackaging} (A number appearing on the immediate packaging (and not the outer packaging).) - */ - public Identifier getImmediatePackaging() { - if (this.immediatePackaging == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create PackagedProductDefinitionBatchIdentifierComponent.immediatePackaging"); - else if (Configuration.doAutoCreate()) - this.immediatePackaging = new Identifier(); // cc - return this.immediatePackaging; - } - - public boolean hasImmediatePackaging() { - return this.immediatePackaging != null && !this.immediatePackaging.isEmpty(); - } - - /** - * @param value {@link #immediatePackaging} (A number appearing on the immediate packaging (and not the outer packaging).) - */ - public PackagedProductDefinitionBatchIdentifierComponent setImmediatePackaging(Identifier value) { - this.immediatePackaging = value; - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("outerPackaging", "Identifier", "A number appearing on the outer packaging of a specific batch.", 0, 1, outerPackaging)); - children.add(new Property("immediatePackaging", "Identifier", "A number appearing on the immediate packaging (and not the outer packaging).", 0, 1, immediatePackaging)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case -682249912: /*outerPackaging*/ return new Property("outerPackaging", "Identifier", "A number appearing on the outer packaging of a specific batch.", 0, 1, outerPackaging); - case 721147602: /*immediatePackaging*/ return new Property("immediatePackaging", "Identifier", "A number appearing on the immediate packaging (and not the outer packaging).", 0, 1, immediatePackaging); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case -682249912: /*outerPackaging*/ return this.outerPackaging == null ? new Base[0] : new Base[] {this.outerPackaging}; // Identifier - case 721147602: /*immediatePackaging*/ return this.immediatePackaging == null ? new Base[0] : new Base[] {this.immediatePackaging}; // Identifier - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case -682249912: // outerPackaging - this.outerPackaging = TypeConvertor.castToIdentifier(value); // Identifier - return value; - case 721147602: // immediatePackaging - this.immediatePackaging = TypeConvertor.castToIdentifier(value); // Identifier - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("outerPackaging")) { - this.outerPackaging = TypeConvertor.castToIdentifier(value); // Identifier - } else if (name.equals("immediatePackaging")) { - this.immediatePackaging = TypeConvertor.castToIdentifier(value); // Identifier - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -682249912: return getOuterPackaging(); - case 721147602: return getImmediatePackaging(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -682249912: /*outerPackaging*/ return new String[] {"Identifier"}; - case 721147602: /*immediatePackaging*/ return new String[] {"Identifier"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("outerPackaging")) { - this.outerPackaging = new Identifier(); - return this.outerPackaging; - } - else if (name.equals("immediatePackaging")) { - this.immediatePackaging = new Identifier(); - return this.immediatePackaging; - } - else - return super.addChild(name); - } - - public PackagedProductDefinitionBatchIdentifierComponent copy() { - PackagedProductDefinitionBatchIdentifierComponent dst = new PackagedProductDefinitionBatchIdentifierComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(PackagedProductDefinitionBatchIdentifierComponent dst) { - super.copyValues(dst); - dst.outerPackaging = outerPackaging == null ? null : outerPackaging.copy(); - dst.immediatePackaging = immediatePackaging == null ? null : immediatePackaging.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof PackagedProductDefinitionBatchIdentifierComponent)) - return false; - PackagedProductDefinitionBatchIdentifierComponent o = (PackagedProductDefinitionBatchIdentifierComponent) other_; - return compareDeep(outerPackaging, o.outerPackaging, true) && compareDeep(immediatePackaging, o.immediatePackaging, true) - ; - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof PackagedProductDefinitionBatchIdentifierComponent)) - return false; - PackagedProductDefinitionBatchIdentifierComponent o = (PackagedProductDefinitionBatchIdentifierComponent) other_; - return true; - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(outerPackaging, immediatePackaging - ); - } - - public String fhirType() { - return "PackagedProductDefinition.batchIdentifier"; - - } - - } - @Block() public static class PackagedProductDefinitionPackageComponent extends BackboneElement implements IBaseBackboneElement { /** @@ -309,10 +98,10 @@ public class PackagedProductDefinition extends DomainResource { protected List shelfLifeStorage; /** - * Manufacturer of this package Item. + * Manufacturer of this package Item. When there are multiple it means these are all possible manufacturers. */ @Child(name = "manufacturer", type = {Organization.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Manufacturer of this package Item", formalDefinition="Manufacturer of this package Item." ) + @Description(shortDefinition="Manufacturer of this package Item. When there are multiple it means these are all possible manufacturers", formalDefinition="Manufacturer of this package Item. When there are multiple it means these are all possible manufacturers." ) protected List manufacturer; /** @@ -627,7 +416,7 @@ public class PackagedProductDefinition extends DomainResource { } /** - * @return {@link #manufacturer} (Manufacturer of this package Item.) + * @return {@link #manufacturer} (Manufacturer of this package Item. When there are multiple it means these are all possible manufacturers.) */ public List getManufacturer() { if (this.manufacturer == null) @@ -846,7 +635,7 @@ public class PackagedProductDefinition extends DomainResource { children.add(new Property("material", "CodeableConcept", "Material type of the package item.", 0, java.lang.Integer.MAX_VALUE, material)); children.add(new Property("alternateMaterial", "CodeableConcept", "A possible alternate material for the packaging.", 0, java.lang.Integer.MAX_VALUE, alternateMaterial)); children.add(new Property("shelfLifeStorage", "ProductShelfLife", "Shelf Life and storage information.", 0, java.lang.Integer.MAX_VALUE, shelfLifeStorage)); - children.add(new Property("manufacturer", "Reference(Organization)", "Manufacturer of this package Item.", 0, java.lang.Integer.MAX_VALUE, manufacturer)); + children.add(new Property("manufacturer", "Reference(Organization)", "Manufacturer of this package Item. When there are multiple it means these are all possible manufacturers.", 0, java.lang.Integer.MAX_VALUE, manufacturer)); children.add(new Property("property", "", "General characteristics of this item.", 0, java.lang.Integer.MAX_VALUE, property)); children.add(new Property("containedItem", "", "The item(s) within the packaging.", 0, java.lang.Integer.MAX_VALUE, containedItem)); children.add(new Property("package", "@PackagedProductDefinition.package", "Allows containers within containers.", 0, java.lang.Integer.MAX_VALUE, package_)); @@ -861,7 +650,7 @@ public class PackagedProductDefinition extends DomainResource { case 299066663: /*material*/ return new Property("material", "CodeableConcept", "Material type of the package item.", 0, java.lang.Integer.MAX_VALUE, material); case -1021448255: /*alternateMaterial*/ return new Property("alternateMaterial", "CodeableConcept", "A possible alternate material for the packaging.", 0, java.lang.Integer.MAX_VALUE, alternateMaterial); case 172049237: /*shelfLifeStorage*/ return new Property("shelfLifeStorage", "ProductShelfLife", "Shelf Life and storage information.", 0, java.lang.Integer.MAX_VALUE, shelfLifeStorage); - case -1969347631: /*manufacturer*/ return new Property("manufacturer", "Reference(Organization)", "Manufacturer of this package Item.", 0, java.lang.Integer.MAX_VALUE, manufacturer); + case -1969347631: /*manufacturer*/ return new Property("manufacturer", "Reference(Organization)", "Manufacturer of this package Item. When there are multiple it means these are all possible manufacturers.", 0, java.lang.Integer.MAX_VALUE, manufacturer); case -993141291: /*property*/ return new Property("property", "", "General characteristics of this item.", 0, java.lang.Integer.MAX_VALUE, property); case 1953679910: /*containedItem*/ return new Property("containedItem", "", "The item(s) within the packaging.", 0, java.lang.Integer.MAX_VALUE, containedItem); case -807062458: /*package*/ return new Property("package", "@PackagedProductDefinition.package", "Allows containers within containers.", 0, java.lang.Integer.MAX_VALUE, package_); @@ -1422,11 +1211,11 @@ public class PackagedProductDefinition extends DomainResource { @Block() public static class PackagedProductDefinitionPackageContainedItemComponent extends BackboneElement implements IBaseBackboneElement { /** - * The actual item(s) of medication, as manufactured, or a device (typically, but not necessarily, a co-packaged one), or other medically related item (such as food, biologicals, raw materials, medical fluids, gases etc.), as contained in the package. + * The actual item(s) of medication, as manufactured, or a device (typically, but not necessarily, a co-packaged one), or other medically related item (such as food, biologicals, raw materials, medical fluids, gases etc.), as contained in the package. This also allows another packaged product to be included, which is solely for the case where a package of other entire packages is wanted - such as a wholesale or distribution pack. */ - @Child(name = "item", type = {ManufacturedItemDefinition.class, DeviceDefinition.class, BiologicallyDerivedProduct.class, NutritionProduct.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="The actual item(s) of medication, as manufactured, or a device (typically, but not necessarily, a co-packaged one), or other medically related item (such as food, biologicals, raw materials, medical fluids, gases etc.), as contained in the package", formalDefinition="The actual item(s) of medication, as manufactured, or a device (typically, but not necessarily, a co-packaged one), or other medically related item (such as food, biologicals, raw materials, medical fluids, gases etc.), as contained in the package." ) - protected List item; + @Child(name = "item", type = {CodeableReference.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="The actual item(s) of medication, as manufactured, or a device (typically, but not necessarily, a co-packaged one), or other medically related item (such as food, biologicals, raw materials, medical fluids, gases etc.), as contained in the package. This also allows another packaged product to be included, which is solely for the case where a package of other entire packages is wanted - such as a wholesale or distribution pack", formalDefinition="The actual item(s) of medication, as manufactured, or a device (typically, but not necessarily, a co-packaged one), or other medically related item (such as food, biologicals, raw materials, medical fluids, gases etc.), as contained in the package. This also allows another packaged product to be included, which is solely for the case where a package of other entire packages is wanted - such as a wholesale or distribution pack." ) + protected List item; /** * The number of this type of item within this packaging. @@ -1435,7 +1224,7 @@ public class PackagedProductDefinition extends DomainResource { @Description(shortDefinition="The number of this type of item within this packaging", formalDefinition="The number of this type of item within this packaging." ) protected DataType amount; - private static final long serialVersionUID = 454818874L; + private static final long serialVersionUID = -293288479L; /** * Constructor @@ -1445,18 +1234,18 @@ public class PackagedProductDefinition extends DomainResource { } /** - * @return {@link #item} (The actual item(s) of medication, as manufactured, or a device (typically, but not necessarily, a co-packaged one), or other medically related item (such as food, biologicals, raw materials, medical fluids, gases etc.), as contained in the package.) + * @return {@link #item} (The actual item(s) of medication, as manufactured, or a device (typically, but not necessarily, a co-packaged one), or other medically related item (such as food, biologicals, raw materials, medical fluids, gases etc.), as contained in the package. This also allows another packaged product to be included, which is solely for the case where a package of other entire packages is wanted - such as a wholesale or distribution pack.) */ - public List getItem() { + public List getItem() { if (this.item == null) - this.item = new ArrayList(); + this.item = new ArrayList(); return this.item; } /** * @return Returns a reference to this for easy method chaining */ - public PackagedProductDefinitionPackageContainedItemComponent setItem(List theItem) { + public PackagedProductDefinitionPackageContainedItemComponent setItem(List theItem) { this.item = theItem; return this; } @@ -1464,25 +1253,25 @@ public class PackagedProductDefinition extends DomainResource { public boolean hasItem() { if (this.item == null) return false; - for (Reference item : this.item) + for (CodeableReference item : this.item) if (!item.isEmpty()) return true; return false; } - public Reference addItem() { //3 - Reference t = new Reference(); + public CodeableReference addItem() { //3 + CodeableReference t = new CodeableReference(); if (this.item == null) - this.item = new ArrayList(); + this.item = new ArrayList(); this.item.add(t); return t; } - public PackagedProductDefinitionPackageContainedItemComponent addItem(Reference t) { //3 + public PackagedProductDefinitionPackageContainedItemComponent addItem(CodeableReference t) { //3 if (t == null) return this; if (this.item == null) - this.item = new ArrayList(); + this.item = new ArrayList(); this.item.add(t); return this; } @@ -1490,7 +1279,7 @@ public class PackagedProductDefinition extends DomainResource { /** * @return The first repetition of repeating field {@link #item}, creating it if it does not already exist {3} */ - public Reference getItemFirstRep() { + public CodeableReference getItemFirstRep() { if (getItem().isEmpty()) { addItem(); } @@ -1550,14 +1339,14 @@ public class PackagedProductDefinition extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("item", "Reference(ManufacturedItemDefinition|DeviceDefinition|BiologicallyDerivedProduct|NutritionProduct)", "The actual item(s) of medication, as manufactured, or a device (typically, but not necessarily, a co-packaged one), or other medically related item (such as food, biologicals, raw materials, medical fluids, gases etc.), as contained in the package.", 0, java.lang.Integer.MAX_VALUE, item)); + children.add(new Property("item", "CodeableReference(ManufacturedItemDefinition|DeviceDefinition|PackagedProductDefinition|BiologicallyDerivedProduct|NutritionProduct)", "The actual item(s) of medication, as manufactured, or a device (typically, but not necessarily, a co-packaged one), or other medically related item (such as food, biologicals, raw materials, medical fluids, gases etc.), as contained in the package. This also allows another packaged product to be included, which is solely for the case where a package of other entire packages is wanted - such as a wholesale or distribution pack.", 0, java.lang.Integer.MAX_VALUE, item)); children.add(new Property("amount[x]", "Quantity|integer", "The number of this type of item within this packaging.", 0, 1, amount)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 3242771: /*item*/ return new Property("item", "Reference(ManufacturedItemDefinition|DeviceDefinition|BiologicallyDerivedProduct|NutritionProduct)", "The actual item(s) of medication, as manufactured, or a device (typically, but not necessarily, a co-packaged one), or other medically related item (such as food, biologicals, raw materials, medical fluids, gases etc.), as contained in the package.", 0, java.lang.Integer.MAX_VALUE, item); + case 3242771: /*item*/ return new Property("item", "CodeableReference(ManufacturedItemDefinition|DeviceDefinition|PackagedProductDefinition|BiologicallyDerivedProduct|NutritionProduct)", "The actual item(s) of medication, as manufactured, or a device (typically, but not necessarily, a co-packaged one), or other medically related item (such as food, biologicals, raw materials, medical fluids, gases etc.), as contained in the package. This also allows another packaged product to be included, which is solely for the case where a package of other entire packages is wanted - such as a wholesale or distribution pack.", 0, java.lang.Integer.MAX_VALUE, item); case 646780200: /*amount[x]*/ return new Property("amount[x]", "Quantity|integer", "The number of this type of item within this packaging.", 0, 1, amount); case -1413853096: /*amount*/ return new Property("amount[x]", "Quantity|integer", "The number of this type of item within this packaging.", 0, 1, amount); case 1664303363: /*amountQuantity*/ return new Property("amount[x]", "Quantity", "The number of this type of item within this packaging.", 0, 1, amount); @@ -1570,7 +1359,7 @@ public class PackagedProductDefinition extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case 3242771: /*item*/ return this.item == null ? new Base[0] : this.item.toArray(new Base[this.item.size()]); // Reference + case 3242771: /*item*/ return this.item == null ? new Base[0] : this.item.toArray(new Base[this.item.size()]); // CodeableReference case -1413853096: /*amount*/ return this.amount == null ? new Base[0] : new Base[] {this.amount}; // DataType default: return super.getProperty(hash, name, checkValid); } @@ -1581,7 +1370,7 @@ public class PackagedProductDefinition extends DomainResource { public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { case 3242771: // item - this.getItem().add(TypeConvertor.castToReference(value)); // Reference + this.getItem().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference return value; case -1413853096: // amount this.amount = TypeConvertor.castToType(value); // DataType @@ -1594,7 +1383,7 @@ public class PackagedProductDefinition extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("item")) { - this.getItem().add(TypeConvertor.castToReference(value)); + this.getItem().add(TypeConvertor.castToCodeableReference(value)); } else if (name.equals("amount[x]")) { this.amount = TypeConvertor.castToType(value); // DataType } else @@ -1616,7 +1405,7 @@ public class PackagedProductDefinition extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case 3242771: /*item*/ return new String[] {"Reference"}; + case 3242771: /*item*/ return new String[] {"CodeableReference"}; case -1413853096: /*amount*/ return new String[] {"Quantity", "integer"}; default: return super.getTypesForProperty(hash, name); } @@ -1649,8 +1438,8 @@ public class PackagedProductDefinition extends DomainResource { public void copyValues(PackagedProductDefinitionPackageContainedItemComponent dst) { super.copyValues(dst); if (item != null) { - dst.item = new ArrayList(); - for (Reference i : item) + dst.item = new ArrayList(); + for (CodeableReference i : item) dst.item.add(i.copy()); }; dst.amount = amount == null ? null : amount.copy(); @@ -1730,70 +1519,77 @@ public class PackagedProductDefinition extends DomainResource { @Description(shortDefinition="The date at which the given status became applicable", formalDefinition="The date at which the given status became applicable." ) protected DateTimeType statusDate; + /** + * A total of the amount of items in the package, per item type. This can be considered as the pack size. This attribite is repeatable so that the different item types in one pack type can be counted (e.g. a count of vials and count of syringes). Repeats are not to be used to represent differerent pack sizes (e.g. 20 pack vs 50 pack) - which would be different resource instances. This attribute differs from containedItem.amount in that it can give a single count of all tablet types in a pack, even when these are different manufactured items. + */ + @Child(name = "containedItemQuantity", type = {Quantity.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="A total of the amount of items in the package, per item type. This can be considered as the pack size. This attribite is repeatable so that the different item types in one pack type can be counted (e.g. a count of vials and count of syringes). Repeats are not to be used to represent differerent pack sizes (e.g. 20 pack vs 50 pack) - which would be different resource instances. This attribute differs from containedItem.amount in that it can give a single count of all tablet types in a pack, even when these are different manufactured items", formalDefinition="A total of the amount of items in the package, per item type. This can be considered as the pack size. This attribite is repeatable so that the different item types in one pack type can be counted (e.g. a count of vials and count of syringes). Repeats are not to be used to represent differerent pack sizes (e.g. 20 pack vs 50 pack) - which would be different resource instances. This attribute differs from containedItem.amount in that it can give a single count of all tablet types in a pack, even when these are different manufactured items." ) + protected List containedItemQuantity; + /** * Textual description. Note that this is not the name of the package or product. */ - @Child(name = "description", type = {MarkdownType.class}, order=6, min=0, max=1, modifier=false, summary=true) + @Child(name = "description", type = {MarkdownType.class}, order=7, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Textual description. Note that this is not the name of the package or product", formalDefinition="Textual description. Note that this is not the name of the package or product." ) protected MarkdownType description; /** * The legal status of supply of the packaged item as classified by the regulator. */ - @Child(name = "legalStatusOfSupply", type = {CodeableConcept.class}, order=7, min=0, max=1, modifier=false, summary=true) + @Child(name = "legalStatusOfSupply", type = {CodeableConcept.class}, order=8, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="The legal status of supply of the packaged item as classified by the regulator", formalDefinition="The legal status of supply of the packaged item as classified by the regulator." ) protected CodeableConcept legalStatusOfSupply; /** * Marketing information. */ - @Child(name = "marketingStatus", type = {MarketingStatus.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "marketingStatus", type = {MarketingStatus.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Marketing information", formalDefinition="Marketing information." ) protected List marketingStatus; /** * Allows the key features to be recorded, such as "hospital pack", "nurse prescribable", "calendar pack". */ - @Child(name = "characteristic", type = {CodeableConcept.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "characteristic", type = {CodeableConcept.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Allows the key features to be recorded, such as \"hospital pack\", \"nurse prescribable\", \"calendar pack\"", formalDefinition="Allows the key features to be recorded, such as \"hospital pack\", \"nurse prescribable\", \"calendar pack\"." ) protected List characteristic; /** * States whether a drug product is supplied with another item such as a diluent or adjuvant. */ - @Child(name = "copackagedIndicator", type = {BooleanType.class}, order=10, min=0, max=1, modifier=false, summary=true) + @Child(name = "copackagedIndicator", type = {BooleanType.class}, order=11, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="States whether a drug product is supplied with another item such as a diluent or adjuvant", formalDefinition="States whether a drug product is supplied with another item such as a diluent or adjuvant." ) protected BooleanType copackagedIndicator; /** * An authorization for this package type. */ - @Child(name = "marketingAuthorization", type = {RegulatedAuthorization.class}, order=11, min=0, max=1, modifier=false, summary=true) + @Child(name = "marketingAuthorization", type = {RegulatedAuthorization.class}, order=12, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="An authorization for this package type", formalDefinition="An authorization for this package type." ) protected Reference marketingAuthorization; /** - * Manufacturer of this package type. + * Manufacturer of this package type. When there are multiple it means these are all possible manufacturers. */ - @Child(name = "manufacturer", type = {Organization.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Manufacturer of this package type", formalDefinition="Manufacturer of this package type." ) + @Child(name = "manufacturer", type = {Organization.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Manufacturer of this package type. When there are multiple it means these are all possible manufacturers", formalDefinition="Manufacturer of this package type. When there are multiple it means these are all possible manufacturers." ) protected List manufacturer; /** - * Batch numbering. + * Additional information or supporting documentation about the packaged product. */ - @Child(name = "batchIdentifier", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Batch numbering", formalDefinition="Batch numbering." ) - protected List batchIdentifier; + @Child(name = "attachedDocument", type = {DocumentReference.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Additional information or supporting documentation about the packaged product", formalDefinition="Additional information or supporting documentation about the packaged product." ) + protected List attachedDocument; /** - * A packaging item, as a container for medically related items, possibly with other packaging items within. + * A packaging item, as a container for medically related items, possibly with other packaging items within, or a packaging component, such as bottle cap (which is not a device or a medication manufactured item). */ - @Child(name = "package", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="A packaging item, as a container for medically related items, possibly with other packaging items within", formalDefinition="A packaging item, as a container for medically related items, possibly with other packaging items within." ) - protected List package_; + @Child(name = "package", type = {}, order=15, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="A packaging item, as a container for medically related items, possibly with other packaging items within, or a packaging component, such as bottle cap (which is not a device or a medication manufactured item)", formalDefinition="A packaging item, as a container for medically related items, possibly with other packaging items within, or a packaging component, such as bottle cap (which is not a device or a medication manufactured item)." ) + protected PackagedProductDefinitionPackageComponent package_; - private static final long serialVersionUID = -1301762817L; + private static final long serialVersionUID = 1564403582L; /** * Constructor @@ -2054,6 +1850,59 @@ public class PackagedProductDefinition extends DomainResource { return this; } + /** + * @return {@link #containedItemQuantity} (A total of the amount of items in the package, per item type. This can be considered as the pack size. This attribite is repeatable so that the different item types in one pack type can be counted (e.g. a count of vials and count of syringes). Repeats are not to be used to represent differerent pack sizes (e.g. 20 pack vs 50 pack) - which would be different resource instances. This attribute differs from containedItem.amount in that it can give a single count of all tablet types in a pack, even when these are different manufactured items.) + */ + public List getContainedItemQuantity() { + if (this.containedItemQuantity == null) + this.containedItemQuantity = new ArrayList(); + return this.containedItemQuantity; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public PackagedProductDefinition setContainedItemQuantity(List theContainedItemQuantity) { + this.containedItemQuantity = theContainedItemQuantity; + return this; + } + + public boolean hasContainedItemQuantity() { + if (this.containedItemQuantity == null) + return false; + for (Quantity item : this.containedItemQuantity) + if (!item.isEmpty()) + return true; + return false; + } + + public Quantity addContainedItemQuantity() { //3 + Quantity t = new Quantity(); + if (this.containedItemQuantity == null) + this.containedItemQuantity = new ArrayList(); + this.containedItemQuantity.add(t); + return t; + } + + public PackagedProductDefinition addContainedItemQuantity(Quantity t) { //3 + if (t == null) + return this; + if (this.containedItemQuantity == null) + this.containedItemQuantity = new ArrayList(); + this.containedItemQuantity.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #containedItemQuantity}, creating it if it does not already exist {3} + */ + public Quantity getContainedItemQuantityFirstRep() { + if (getContainedItemQuantity().isEmpty()) { + addContainedItemQuantity(); + } + return getContainedItemQuantity().get(0); + } + /** * @return {@link #description} (Textual description. Note that this is not the name of the package or product.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value */ @@ -2303,7 +2152,7 @@ public class PackagedProductDefinition extends DomainResource { } /** - * @return {@link #manufacturer} (Manufacturer of this package type.) + * @return {@link #manufacturer} (Manufacturer of this package type. When there are multiple it means these are all possible manufacturers.) */ public List getManufacturer() { if (this.manufacturer == null) @@ -2356,109 +2205,80 @@ public class PackagedProductDefinition extends DomainResource { } /** - * @return {@link #batchIdentifier} (Batch numbering.) + * @return {@link #attachedDocument} (Additional information or supporting documentation about the packaged product.) */ - public List getBatchIdentifier() { - if (this.batchIdentifier == null) - this.batchIdentifier = new ArrayList(); - return this.batchIdentifier; + public List getAttachedDocument() { + if (this.attachedDocument == null) + this.attachedDocument = new ArrayList(); + return this.attachedDocument; } /** * @return Returns a reference to this for easy method chaining */ - public PackagedProductDefinition setBatchIdentifier(List theBatchIdentifier) { - this.batchIdentifier = theBatchIdentifier; + public PackagedProductDefinition setAttachedDocument(List theAttachedDocument) { + this.attachedDocument = theAttachedDocument; return this; } - public boolean hasBatchIdentifier() { - if (this.batchIdentifier == null) + public boolean hasAttachedDocument() { + if (this.attachedDocument == null) return false; - for (PackagedProductDefinitionBatchIdentifierComponent item : this.batchIdentifier) + for (Reference item : this.attachedDocument) if (!item.isEmpty()) return true; return false; } - public PackagedProductDefinitionBatchIdentifierComponent addBatchIdentifier() { //3 - PackagedProductDefinitionBatchIdentifierComponent t = new PackagedProductDefinitionBatchIdentifierComponent(); - if (this.batchIdentifier == null) - this.batchIdentifier = new ArrayList(); - this.batchIdentifier.add(t); + public Reference addAttachedDocument() { //3 + Reference t = new Reference(); + if (this.attachedDocument == null) + this.attachedDocument = new ArrayList(); + this.attachedDocument.add(t); return t; } - public PackagedProductDefinition addBatchIdentifier(PackagedProductDefinitionBatchIdentifierComponent t) { //3 + public PackagedProductDefinition addAttachedDocument(Reference t) { //3 if (t == null) return this; - if (this.batchIdentifier == null) - this.batchIdentifier = new ArrayList(); - this.batchIdentifier.add(t); + if (this.attachedDocument == null) + this.attachedDocument = new ArrayList(); + this.attachedDocument.add(t); return this; } /** - * @return The first repetition of repeating field {@link #batchIdentifier}, creating it if it does not already exist {3} + * @return The first repetition of repeating field {@link #attachedDocument}, creating it if it does not already exist {3} */ - public PackagedProductDefinitionBatchIdentifierComponent getBatchIdentifierFirstRep() { - if (getBatchIdentifier().isEmpty()) { - addBatchIdentifier(); + public Reference getAttachedDocumentFirstRep() { + if (getAttachedDocument().isEmpty()) { + addAttachedDocument(); } - return getBatchIdentifier().get(0); + return getAttachedDocument().get(0); } /** - * @return {@link #package_} (A packaging item, as a container for medically related items, possibly with other packaging items within.) + * @return {@link #package_} (A packaging item, as a container for medically related items, possibly with other packaging items within, or a packaging component, such as bottle cap (which is not a device or a medication manufactured item).) */ - public List getPackage() { + public PackagedProductDefinitionPackageComponent getPackage() { if (this.package_ == null) - this.package_ = new ArrayList(); + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PackagedProductDefinition.package_"); + else if (Configuration.doAutoCreate()) + this.package_ = new PackagedProductDefinitionPackageComponent(); // cc return this.package_; } - /** - * @return Returns a reference to this for easy method chaining - */ - public PackagedProductDefinition setPackage(List thePackage) { - this.package_ = thePackage; - return this; - } - public boolean hasPackage() { - if (this.package_ == null) - return false; - for (PackagedProductDefinitionPackageComponent item : this.package_) - if (!item.isEmpty()) - return true; - return false; - } - - public PackagedProductDefinitionPackageComponent addPackage() { //3 - PackagedProductDefinitionPackageComponent t = new PackagedProductDefinitionPackageComponent(); - if (this.package_ == null) - this.package_ = new ArrayList(); - this.package_.add(t); - return t; - } - - public PackagedProductDefinition addPackage(PackagedProductDefinitionPackageComponent t) { //3 - if (t == null) - return this; - if (this.package_ == null) - this.package_ = new ArrayList(); - this.package_.add(t); - return this; + return this.package_ != null && !this.package_.isEmpty(); } /** - * @return The first repetition of repeating field {@link #package_}, creating it if it does not already exist {3} + * @param value {@link #package_} (A packaging item, as a container for medically related items, possibly with other packaging items within, or a packaging component, such as bottle cap (which is not a device or a medication manufactured item).) */ - public PackagedProductDefinitionPackageComponent getPackageFirstRep() { - if (getPackage().isEmpty()) { - addPackage(); - } - return getPackage().get(0); + public PackagedProductDefinition setPackage(PackagedProductDefinitionPackageComponent value) { + this.package_ = value; + return this; } protected void listChildren(List children) { @@ -2469,15 +2289,16 @@ public class PackagedProductDefinition extends DomainResource { children.add(new Property("subject", "Reference(MedicinalProductDefinition)", "The product that this is a pack for.", 0, java.lang.Integer.MAX_VALUE, subject)); children.add(new Property("status", "CodeableConcept", "The status within the lifecycle of this item. A high level status, this is not intended to duplicate details carried elsewhere such as legal status, or authorization or marketing status.", 0, 1, status)); children.add(new Property("statusDate", "dateTime", "The date at which the given status became applicable.", 0, 1, statusDate)); + children.add(new Property("containedItemQuantity", "Quantity", "A total of the amount of items in the package, per item type. This can be considered as the pack size. This attribite is repeatable so that the different item types in one pack type can be counted (e.g. a count of vials and count of syringes). Repeats are not to be used to represent differerent pack sizes (e.g. 20 pack vs 50 pack) - which would be different resource instances. This attribute differs from containedItem.amount in that it can give a single count of all tablet types in a pack, even when these are different manufactured items.", 0, java.lang.Integer.MAX_VALUE, containedItemQuantity)); children.add(new Property("description", "markdown", "Textual description. Note that this is not the name of the package or product.", 0, 1, description)); children.add(new Property("legalStatusOfSupply", "CodeableConcept", "The legal status of supply of the packaged item as classified by the regulator.", 0, 1, legalStatusOfSupply)); children.add(new Property("marketingStatus", "MarketingStatus", "Marketing information.", 0, java.lang.Integer.MAX_VALUE, marketingStatus)); children.add(new Property("characteristic", "CodeableConcept", "Allows the key features to be recorded, such as \"hospital pack\", \"nurse prescribable\", \"calendar pack\".", 0, java.lang.Integer.MAX_VALUE, characteristic)); children.add(new Property("copackagedIndicator", "boolean", "States whether a drug product is supplied with another item such as a diluent or adjuvant.", 0, 1, copackagedIndicator)); children.add(new Property("marketingAuthorization", "Reference(RegulatedAuthorization)", "An authorization for this package type.", 0, 1, marketingAuthorization)); - children.add(new Property("manufacturer", "Reference(Organization)", "Manufacturer of this package type.", 0, java.lang.Integer.MAX_VALUE, manufacturer)); - children.add(new Property("batchIdentifier", "", "Batch numbering.", 0, java.lang.Integer.MAX_VALUE, batchIdentifier)); - children.add(new Property("package", "", "A packaging item, as a container for medically related items, possibly with other packaging items within.", 0, java.lang.Integer.MAX_VALUE, package_)); + children.add(new Property("manufacturer", "Reference(Organization)", "Manufacturer of this package type. When there are multiple it means these are all possible manufacturers.", 0, java.lang.Integer.MAX_VALUE, manufacturer)); + children.add(new Property("attachedDocument", "Reference(DocumentReference)", "Additional information or supporting documentation about the packaged product.", 0, java.lang.Integer.MAX_VALUE, attachedDocument)); + children.add(new Property("package", "", "A packaging item, as a container for medically related items, possibly with other packaging items within, or a packaging component, such as bottle cap (which is not a device or a medication manufactured item).", 0, 1, package_)); } @Override @@ -2489,15 +2310,16 @@ public class PackagedProductDefinition extends DomainResource { case -1867885268: /*subject*/ return new Property("subject", "Reference(MedicinalProductDefinition)", "The product that this is a pack for.", 0, java.lang.Integer.MAX_VALUE, subject); case -892481550: /*status*/ return new Property("status", "CodeableConcept", "The status within the lifecycle of this item. A high level status, this is not intended to duplicate details carried elsewhere such as legal status, or authorization or marketing status.", 0, 1, status); case 247524032: /*statusDate*/ return new Property("statusDate", "dateTime", "The date at which the given status became applicable.", 0, 1, statusDate); + case -1686893359: /*containedItemQuantity*/ return new Property("containedItemQuantity", "Quantity", "A total of the amount of items in the package, per item type. This can be considered as the pack size. This attribite is repeatable so that the different item types in one pack type can be counted (e.g. a count of vials and count of syringes). Repeats are not to be used to represent differerent pack sizes (e.g. 20 pack vs 50 pack) - which would be different resource instances. This attribute differs from containedItem.amount in that it can give a single count of all tablet types in a pack, even when these are different manufactured items.", 0, java.lang.Integer.MAX_VALUE, containedItemQuantity); case -1724546052: /*description*/ return new Property("description", "markdown", "Textual description. Note that this is not the name of the package or product.", 0, 1, description); case -844874031: /*legalStatusOfSupply*/ return new Property("legalStatusOfSupply", "CodeableConcept", "The legal status of supply of the packaged item as classified by the regulator.", 0, 1, legalStatusOfSupply); case 70767032: /*marketingStatus*/ return new Property("marketingStatus", "MarketingStatus", "Marketing information.", 0, java.lang.Integer.MAX_VALUE, marketingStatus); case 366313883: /*characteristic*/ return new Property("characteristic", "CodeableConcept", "Allows the key features to be recorded, such as \"hospital pack\", \"nurse prescribable\", \"calendar pack\".", 0, java.lang.Integer.MAX_VALUE, characteristic); case -1638663195: /*copackagedIndicator*/ return new Property("copackagedIndicator", "boolean", "States whether a drug product is supplied with another item such as a diluent or adjuvant.", 0, 1, copackagedIndicator); case 571831283: /*marketingAuthorization*/ return new Property("marketingAuthorization", "Reference(RegulatedAuthorization)", "An authorization for this package type.", 0, 1, marketingAuthorization); - case -1969347631: /*manufacturer*/ return new Property("manufacturer", "Reference(Organization)", "Manufacturer of this package type.", 0, java.lang.Integer.MAX_VALUE, manufacturer); - case -1688395901: /*batchIdentifier*/ return new Property("batchIdentifier", "", "Batch numbering.", 0, java.lang.Integer.MAX_VALUE, batchIdentifier); - case -807062458: /*package*/ return new Property("package", "", "A packaging item, as a container for medically related items, possibly with other packaging items within.", 0, java.lang.Integer.MAX_VALUE, package_); + case -1969347631: /*manufacturer*/ return new Property("manufacturer", "Reference(Organization)", "Manufacturer of this package type. When there are multiple it means these are all possible manufacturers.", 0, java.lang.Integer.MAX_VALUE, manufacturer); + case -513945889: /*attachedDocument*/ return new Property("attachedDocument", "Reference(DocumentReference)", "Additional information or supporting documentation about the packaged product.", 0, java.lang.Integer.MAX_VALUE, attachedDocument); + case -807062458: /*package*/ return new Property("package", "", "A packaging item, as a container for medically related items, possibly with other packaging items within, or a packaging component, such as bottle cap (which is not a device or a medication manufactured item).", 0, 1, package_); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -2512,6 +2334,7 @@ public class PackagedProductDefinition extends DomainResource { case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : this.subject.toArray(new Base[this.subject.size()]); // Reference case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // CodeableConcept case 247524032: /*statusDate*/ return this.statusDate == null ? new Base[0] : new Base[] {this.statusDate}; // DateTimeType + case -1686893359: /*containedItemQuantity*/ return this.containedItemQuantity == null ? new Base[0] : this.containedItemQuantity.toArray(new Base[this.containedItemQuantity.size()]); // Quantity case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType case -844874031: /*legalStatusOfSupply*/ return this.legalStatusOfSupply == null ? new Base[0] : new Base[] {this.legalStatusOfSupply}; // CodeableConcept case 70767032: /*marketingStatus*/ return this.marketingStatus == null ? new Base[0] : this.marketingStatus.toArray(new Base[this.marketingStatus.size()]); // MarketingStatus @@ -2519,8 +2342,8 @@ public class PackagedProductDefinition extends DomainResource { case -1638663195: /*copackagedIndicator*/ return this.copackagedIndicator == null ? new Base[0] : new Base[] {this.copackagedIndicator}; // BooleanType case 571831283: /*marketingAuthorization*/ return this.marketingAuthorization == null ? new Base[0] : new Base[] {this.marketingAuthorization}; // Reference case -1969347631: /*manufacturer*/ return this.manufacturer == null ? new Base[0] : this.manufacturer.toArray(new Base[this.manufacturer.size()]); // Reference - case -1688395901: /*batchIdentifier*/ return this.batchIdentifier == null ? new Base[0] : this.batchIdentifier.toArray(new Base[this.batchIdentifier.size()]); // PackagedProductDefinitionBatchIdentifierComponent - case -807062458: /*package*/ return this.package_ == null ? new Base[0] : this.package_.toArray(new Base[this.package_.size()]); // PackagedProductDefinitionPackageComponent + case -513945889: /*attachedDocument*/ return this.attachedDocument == null ? new Base[0] : this.attachedDocument.toArray(new Base[this.attachedDocument.size()]); // Reference + case -807062458: /*package*/ return this.package_ == null ? new Base[0] : new Base[] {this.package_}; // PackagedProductDefinitionPackageComponent default: return super.getProperty(hash, name, checkValid); } @@ -2547,6 +2370,9 @@ public class PackagedProductDefinition extends DomainResource { case 247524032: // statusDate this.statusDate = TypeConvertor.castToDateTime(value); // DateTimeType return value; + case -1686893359: // containedItemQuantity + this.getContainedItemQuantity().add(TypeConvertor.castToQuantity(value)); // Quantity + return value; case -1724546052: // description this.description = TypeConvertor.castToMarkdown(value); // MarkdownType return value; @@ -2568,11 +2394,11 @@ public class PackagedProductDefinition extends DomainResource { case -1969347631: // manufacturer this.getManufacturer().add(TypeConvertor.castToReference(value)); // Reference return value; - case -1688395901: // batchIdentifier - this.getBatchIdentifier().add((PackagedProductDefinitionBatchIdentifierComponent) value); // PackagedProductDefinitionBatchIdentifierComponent + case -513945889: // attachedDocument + this.getAttachedDocument().add(TypeConvertor.castToReference(value)); // Reference return value; case -807062458: // package - this.getPackage().add((PackagedProductDefinitionPackageComponent) value); // PackagedProductDefinitionPackageComponent + this.package_ = (PackagedProductDefinitionPackageComponent) value; // PackagedProductDefinitionPackageComponent return value; default: return super.setProperty(hash, name, value); } @@ -2593,6 +2419,8 @@ public class PackagedProductDefinition extends DomainResource { this.status = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("statusDate")) { this.statusDate = TypeConvertor.castToDateTime(value); // DateTimeType + } else if (name.equals("containedItemQuantity")) { + this.getContainedItemQuantity().add(TypeConvertor.castToQuantity(value)); } else if (name.equals("description")) { this.description = TypeConvertor.castToMarkdown(value); // MarkdownType } else if (name.equals("legalStatusOfSupply")) { @@ -2607,10 +2435,10 @@ public class PackagedProductDefinition extends DomainResource { this.marketingAuthorization = TypeConvertor.castToReference(value); // Reference } else if (name.equals("manufacturer")) { this.getManufacturer().add(TypeConvertor.castToReference(value)); - } else if (name.equals("batchIdentifier")) { - this.getBatchIdentifier().add((PackagedProductDefinitionBatchIdentifierComponent) value); + } else if (name.equals("attachedDocument")) { + this.getAttachedDocument().add(TypeConvertor.castToReference(value)); } else if (name.equals("package")) { - this.getPackage().add((PackagedProductDefinitionPackageComponent) value); + this.package_ = (PackagedProductDefinitionPackageComponent) value; // PackagedProductDefinitionPackageComponent } else return super.setProperty(name, value); return value; @@ -2625,6 +2453,7 @@ public class PackagedProductDefinition extends DomainResource { case -1867885268: return addSubject(); case -892481550: return getStatus(); case 247524032: return getStatusDateElement(); + case -1686893359: return addContainedItemQuantity(); case -1724546052: return getDescriptionElement(); case -844874031: return getLegalStatusOfSupply(); case 70767032: return addMarketingStatus(); @@ -2632,8 +2461,8 @@ public class PackagedProductDefinition extends DomainResource { case -1638663195: return getCopackagedIndicatorElement(); case 571831283: return getMarketingAuthorization(); case -1969347631: return addManufacturer(); - case -1688395901: return addBatchIdentifier(); - case -807062458: return addPackage(); + case -513945889: return addAttachedDocument(); + case -807062458: return getPackage(); default: return super.makeProperty(hash, name); } @@ -2648,6 +2477,7 @@ public class PackagedProductDefinition extends DomainResource { case -1867885268: /*subject*/ return new String[] {"Reference"}; case -892481550: /*status*/ return new String[] {"CodeableConcept"}; case 247524032: /*statusDate*/ return new String[] {"dateTime"}; + case -1686893359: /*containedItemQuantity*/ return new String[] {"Quantity"}; case -1724546052: /*description*/ return new String[] {"markdown"}; case -844874031: /*legalStatusOfSupply*/ return new String[] {"CodeableConcept"}; case 70767032: /*marketingStatus*/ return new String[] {"MarketingStatus"}; @@ -2655,7 +2485,7 @@ public class PackagedProductDefinition extends DomainResource { case -1638663195: /*copackagedIndicator*/ return new String[] {"boolean"}; case 571831283: /*marketingAuthorization*/ return new String[] {"Reference"}; case -1969347631: /*manufacturer*/ return new String[] {"Reference"}; - case -1688395901: /*batchIdentifier*/ return new String[] {}; + case -513945889: /*attachedDocument*/ return new String[] {"Reference"}; case -807062458: /*package*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -2684,6 +2514,9 @@ public class PackagedProductDefinition extends DomainResource { else if (name.equals("statusDate")) { throw new FHIRException("Cannot call addChild on a primitive type PackagedProductDefinition.statusDate"); } + else if (name.equals("containedItemQuantity")) { + return addContainedItemQuantity(); + } else if (name.equals("description")) { throw new FHIRException("Cannot call addChild on a primitive type PackagedProductDefinition.description"); } @@ -2707,11 +2540,12 @@ public class PackagedProductDefinition extends DomainResource { else if (name.equals("manufacturer")) { return addManufacturer(); } - else if (name.equals("batchIdentifier")) { - return addBatchIdentifier(); + else if (name.equals("attachedDocument")) { + return addAttachedDocument(); } else if (name.equals("package")) { - return addPackage(); + this.package_ = new PackagedProductDefinitionPackageComponent(); + return this.package_; } else return super.addChild(name); @@ -2744,6 +2578,11 @@ public class PackagedProductDefinition extends DomainResource { }; dst.status = status == null ? null : status.copy(); dst.statusDate = statusDate == null ? null : statusDate.copy(); + if (containedItemQuantity != null) { + dst.containedItemQuantity = new ArrayList(); + for (Quantity i : containedItemQuantity) + dst.containedItemQuantity.add(i.copy()); + }; dst.description = description == null ? null : description.copy(); dst.legalStatusOfSupply = legalStatusOfSupply == null ? null : legalStatusOfSupply.copy(); if (marketingStatus != null) { @@ -2763,16 +2602,12 @@ public class PackagedProductDefinition extends DomainResource { for (Reference i : manufacturer) dst.manufacturer.add(i.copy()); }; - if (batchIdentifier != null) { - dst.batchIdentifier = new ArrayList(); - for (PackagedProductDefinitionBatchIdentifierComponent i : batchIdentifier) - dst.batchIdentifier.add(i.copy()); - }; - if (package_ != null) { - dst.package_ = new ArrayList(); - for (PackagedProductDefinitionPackageComponent i : package_) - dst.package_.add(i.copy()); + if (attachedDocument != null) { + dst.attachedDocument = new ArrayList(); + for (Reference i : attachedDocument) + dst.attachedDocument.add(i.copy()); }; + dst.package_ = package_ == null ? null : package_.copy(); } protected PackagedProductDefinition typedCopy() { @@ -2788,11 +2623,12 @@ public class PackagedProductDefinition extends DomainResource { PackagedProductDefinition o = (PackagedProductDefinition) other_; return compareDeep(identifier, o.identifier, true) && compareDeep(name, o.name, true) && compareDeep(type, o.type, true) && compareDeep(subject, o.subject, true) && compareDeep(status, o.status, true) && compareDeep(statusDate, o.statusDate, true) - && compareDeep(description, o.description, true) && compareDeep(legalStatusOfSupply, o.legalStatusOfSupply, true) - && compareDeep(marketingStatus, o.marketingStatus, true) && compareDeep(characteristic, o.characteristic, true) - && compareDeep(copackagedIndicator, o.copackagedIndicator, true) && compareDeep(marketingAuthorization, o.marketingAuthorization, true) - && compareDeep(manufacturer, o.manufacturer, true) && compareDeep(batchIdentifier, o.batchIdentifier, true) - && compareDeep(package_, o.package_, true); + && compareDeep(containedItemQuantity, o.containedItemQuantity, true) && compareDeep(description, o.description, true) + && compareDeep(legalStatusOfSupply, o.legalStatusOfSupply, true) && compareDeep(marketingStatus, o.marketingStatus, true) + && compareDeep(characteristic, o.characteristic, true) && compareDeep(copackagedIndicator, o.copackagedIndicator, true) + && compareDeep(marketingAuthorization, o.marketingAuthorization, true) && compareDeep(manufacturer, o.manufacturer, true) + && compareDeep(attachedDocument, o.attachedDocument, true) && compareDeep(package_, o.package_, true) + ; } @Override @@ -2808,9 +2644,9 @@ public class PackagedProductDefinition extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, name, type, subject - , status, statusDate, description, legalStatusOfSupply, marketingStatus, characteristic - , copackagedIndicator, marketingAuthorization, manufacturer, batchIdentifier, package_ - ); + , status, statusDate, containedItemQuantity, description, legalStatusOfSupply, marketingStatus + , characteristic, copackagedIndicator, marketingAuthorization, manufacturer, attachedDocument + , package_); } @Override @@ -2823,17 +2659,17 @@ public class PackagedProductDefinition extends DomainResource { *

* Description: A biologically derived product within this packaged product
* Type: reference
- * Path: PackagedProductDefinition.package.containedItem.item.where(resolve() is BiologicallyDerivedProduct)
+ * Path: PackagedProductDefinition.package.containedItem.item.reference
*

*/ - @SearchParamDefinition(name="biological", path="PackagedProductDefinition.package.containedItem.item.where(resolve() is BiologicallyDerivedProduct)", description="A biologically derived product within this packaged product", type="reference", target={BiologicallyDerivedProduct.class } ) + @SearchParamDefinition(name="biological", path="PackagedProductDefinition.package.containedItem.item.reference", description="A biologically derived product within this packaged product", type="reference" ) public static final String SP_BIOLOGICAL = "biological"; /** * Fluent Client search parameter constant for biological *

* Description: A biologically derived product within this packaged product
* Type: reference
- * Path: PackagedProductDefinition.package.containedItem.item.where(resolve() is BiologicallyDerivedProduct)
+ * Path: PackagedProductDefinition.package.containedItem.item.reference
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BIOLOGICAL = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BIOLOGICAL); @@ -2849,17 +2685,17 @@ public class PackagedProductDefinition extends DomainResource { *

* Description: Any of the contained items within this packaged product
* Type: reference
- * Path: PackagedProductDefinition.package.containedItem.item
+ * Path: PackagedProductDefinition.package.containedItem.item.reference
*

*/ - @SearchParamDefinition(name="contained-item", path="PackagedProductDefinition.package.containedItem.item", description="Any of the contained items within this packaged product", type="reference", target={BiologicallyDerivedProduct.class, DeviceDefinition.class, ManufacturedItemDefinition.class, NutritionProduct.class } ) + @SearchParamDefinition(name="contained-item", path="PackagedProductDefinition.package.containedItem.item.reference", description="Any of the contained items within this packaged product", type="reference" ) public static final String SP_CONTAINED_ITEM = "contained-item"; /** * Fluent Client search parameter constant for contained-item *

* Description: Any of the contained items within this packaged product
* Type: reference
- * Path: PackagedProductDefinition.package.containedItem.item
+ * Path: PackagedProductDefinition.package.containedItem.item.reference
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam CONTAINED_ITEM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_CONTAINED_ITEM); @@ -2875,17 +2711,17 @@ public class PackagedProductDefinition extends DomainResource { *

* Description: A device within this packaged product
* Type: reference
- * Path: PackagedProductDefinition.package.containedItem.item.where(resolve() is DeviceDefinition)
+ * Path: PackagedProductDefinition.package.containedItem.item.reference
*

*/ - @SearchParamDefinition(name="device", path="PackagedProductDefinition.package.containedItem.item.where(resolve() is DeviceDefinition)", description="A device within this packaged product", type="reference", target={DeviceDefinition.class } ) + @SearchParamDefinition(name="device", path="PackagedProductDefinition.package.containedItem.item.reference", description="A device within this packaged product", type="reference" ) public static final String SP_DEVICE = "device"; /** * Fluent Client search parameter constant for device *

* Description: A device within this packaged product
* Type: reference
- * Path: PackagedProductDefinition.package.containedItem.item.where(resolve() is DeviceDefinition)
+ * Path: PackagedProductDefinition.package.containedItem.item.reference
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DEVICE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DEVICE); @@ -2921,17 +2757,17 @@ public class PackagedProductDefinition extends DomainResource { *

* Description: A manufactured item of medication within this packaged product
* Type: reference
- * Path: PackagedProductDefinition.package.containedItem.item.where(resolve() is ManufacturedItemDefinition)
+ * Path: PackagedProductDefinition.package.containedItem.item.reference
*

*/ - @SearchParamDefinition(name="manufactured-item", path="PackagedProductDefinition.package.containedItem.item.where(resolve() is ManufacturedItemDefinition)", description="A manufactured item of medication within this packaged product", type="reference", target={ManufacturedItemDefinition.class } ) + @SearchParamDefinition(name="manufactured-item", path="PackagedProductDefinition.package.containedItem.item.reference", description="A manufactured item of medication within this packaged product", type="reference" ) public static final String SP_MANUFACTURED_ITEM = "manufactured-item"; /** * Fluent Client search parameter constant for manufactured-item *

* Description: A manufactured item of medication within this packaged product
* Type: reference
- * Path: PackagedProductDefinition.package.containedItem.item.where(resolve() is ManufacturedItemDefinition)
+ * Path: PackagedProductDefinition.package.containedItem.item.reference
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MANUFACTURED_ITEM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_MANUFACTURED_ITEM); @@ -2947,17 +2783,17 @@ public class PackagedProductDefinition extends DomainResource { *

* Description: A manufactured item of medication within this packaged product
* Type: reference
- * Path: PackagedProductDefinition.package.containedItem.item.where(resolve() is ManufacturedItemDefinition)
+ * Path: PackagedProductDefinition.package.containedItem.item.reference
*

*/ - @SearchParamDefinition(name="medication", path="PackagedProductDefinition.package.containedItem.item.where(resolve() is ManufacturedItemDefinition)", description="A manufactured item of medication within this packaged product", type="reference", target={ManufacturedItemDefinition.class } ) + @SearchParamDefinition(name="medication", path="PackagedProductDefinition.package.containedItem.item.reference", description="A manufactured item of medication within this packaged product", type="reference" ) public static final String SP_MEDICATION = "medication"; /** * Fluent Client search parameter constant for medication *

* Description: A manufactured item of medication within this packaged product
* Type: reference
- * Path: PackagedProductDefinition.package.containedItem.item.where(resolve() is ManufacturedItemDefinition)
+ * Path: PackagedProductDefinition.package.containedItem.item.reference
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MEDICATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_MEDICATION); @@ -2993,17 +2829,17 @@ public class PackagedProductDefinition extends DomainResource { *

* Description: A nutrition product within this packaged product
* Type: reference
- * Path: PackagedProductDefinition.package.containedItem.item.where(resolve() is NutritionProduct)
+ * Path: PackagedProductDefinition.package.containedItem.item.reference
*

*/ - @SearchParamDefinition(name="nutrition", path="PackagedProductDefinition.package.containedItem.item.where(resolve() is NutritionProduct)", description="A nutrition product within this packaged product", type="reference", target={NutritionProduct.class } ) + @SearchParamDefinition(name="nutrition", path="PackagedProductDefinition.package.containedItem.item.reference", description="A nutrition product within this packaged product", type="reference" ) public static final String SP_NUTRITION = "nutrition"; /** * Fluent Client search parameter constant for nutrition *

* Description: A nutrition product within this packaged product
* Type: reference
- * Path: PackagedProductDefinition.package.containedItem.item.where(resolve() is NutritionProduct)
+ * Path: PackagedProductDefinition.package.containedItem.item.reference
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam NUTRITION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_NUTRITION); @@ -3014,6 +2850,32 @@ public class PackagedProductDefinition extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_NUTRITION = new ca.uhn.fhir.model.api.Include("PackagedProductDefinition:nutrition").toLocked(); + /** + * Search parameter: package + *

+ * Description: A complete packaged product within this packaged product
+ * Type: reference
+ * Path: PackagedProductDefinition.package.containedItem.item.reference
+ *

+ */ + @SearchParamDefinition(name="package", path="PackagedProductDefinition.package.containedItem.item.reference", description="A complete packaged product within this packaged product", type="reference" ) + public static final String SP_PACKAGE = "package"; + /** + * Fluent Client search parameter constant for package + *

+ * Description: A complete packaged product within this packaged product
+ * Type: reference
+ * Path: PackagedProductDefinition.package.containedItem.item.reference
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PACKAGE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PACKAGE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "PackagedProductDefinition:package". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PACKAGE = new ca.uhn.fhir.model.api.Include("PackagedProductDefinition:package").toLocked(); + /** * Search parameter: status *

diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ParameterDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ParameterDefinition.java index 35d8cce2c..b42ebaa9f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ParameterDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ParameterDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Parameters.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Parameters.java index c2159b2aa..b3ea5cb7e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Parameters.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Parameters.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -1632,7 +1632,7 @@ public String toString() { return ResourceType.Parameters; } -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): public Parameters addParameter(String name, boolean b) { addParameter().setName(name).setValue(new BooleanType(b)); return this; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Patient.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Patient.java index e26d6c1a9..b359ffd64 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Patient.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Patient.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class Patient extends DomainResource { case REPLACES: return "replaces"; case REFER: return "refer"; case SEEALSO: return "seealso"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class Patient extends DomainResource { case REPLACES: return "http://hl7.org/fhir/link-type"; case REFER: return "http://hl7.org/fhir/link-type"; case SEEALSO: return "http://hl7.org/fhir/link-type"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class Patient extends DomainResource { case REPLACES: return "The patient resource containing this link is the current active patient record. The link points back to an inactive patient resource that has been merged into this resource, and should be consulted to retrieve additional referenced information."; case REFER: return "The patient resource containing this link is in use and valid but not considered the main source of information about a patient. The link points forward to another patient resource that should be consulted to retrieve additional patient information."; case SEEALSO: return "The patient resource containing this link is in use and valid, but points to another patient resource that is known to contain data about the same person. Data in this resource might overlap or contradict information found in the other patient resource. This link does not indicate any relative importance of the resources concerned, and both should be regarded as equally valid."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class Patient extends DomainResource { case REPLACES: return "Replaces"; case REFER: return "Refer"; case SEEALSO: return "See also"; - case NULL: return null; default: return "?"; } } @@ -2485,204 +2481,6 @@ Deceased patients may also be marked as inactive for the same reasons, but may b return ResourceType.Patient; } - /** - * Search parameter: active - *

- * Description: Whether the patient record is active
- * Type: token
- * Path: Patient.active
- *

- */ - @SearchParamDefinition(name="active", path="Patient.active", description="Whether the patient record is active", type="token" ) - public static final String SP_ACTIVE = "active"; - /** - * Fluent Client search parameter constant for active - *

- * Description: Whether the patient record is active
- * Type: token
- * Path: Patient.active
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVE); - - /** - * Search parameter: death-date - *

- * Description: The date of death has been provided and satisfies this search value
- * Type: date
- * Path: (Patient.deceased as dateTime)
- *

- */ - @SearchParamDefinition(name="death-date", path="(Patient.deceased as dateTime)", description="The date of death has been provided and satisfies this search value", type="date" ) - public static final String SP_DEATH_DATE = "death-date"; - /** - * Fluent Client search parameter constant for death-date - *

- * Description: The date of death has been provided and satisfies this search value
- * Type: date
- * Path: (Patient.deceased as dateTime)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam DEATH_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DEATH_DATE); - - /** - * Search parameter: deceased - *

- * Description: This patient has been marked as deceased, or as a death date entered
- * Type: token
- * Path: Patient.deceased.exists() and Patient.deceased != false
- *

- */ - @SearchParamDefinition(name="deceased", path="Patient.deceased.exists() and Patient.deceased != false", description="This patient has been marked as deceased, or as a death date entered", type="token" ) - public static final String SP_DECEASED = "deceased"; - /** - * Fluent Client search parameter constant for deceased - *

- * Description: This patient has been marked as deceased, or as a death date entered
- * Type: token
- * Path: Patient.deceased.exists() and Patient.deceased != false
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam DECEASED = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_DECEASED); - - /** - * Search parameter: general-practitioner - *

- * Description: Patient's nominated general practitioner, not the organization that manages the record
- * Type: reference
- * Path: Patient.generalPractitioner
- *

- */ - @SearchParamDefinition(name="general-practitioner", path="Patient.generalPractitioner", description="Patient's nominated general practitioner, not the organization that manages the record", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Organization.class, Practitioner.class, PractitionerRole.class } ) - public static final String SP_GENERAL_PRACTITIONER = "general-practitioner"; - /** - * Fluent Client search parameter constant for general-practitioner - *

- * Description: Patient's nominated general practitioner, not the organization that manages the record
- * Type: reference
- * Path: Patient.generalPractitioner
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam GENERAL_PRACTITIONER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_GENERAL_PRACTITIONER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Patient:general-practitioner". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_GENERAL_PRACTITIONER = new ca.uhn.fhir.model.api.Include("Patient:general-practitioner").toLocked(); - - /** - * Search parameter: identifier - *

- * Description: A patient identifier
- * Type: token
- * Path: Patient.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="Patient.identifier", description="A patient identifier", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: A patient identifier
- * Type: token
- * Path: Patient.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: language - *

- * Description: Language code (irrespective of use value)
- * Type: token
- * Path: Patient.communication.language
- *

- */ - @SearchParamDefinition(name="language", path="Patient.communication.language", description="Language code (irrespective of use value)", type="token" ) - public static final String SP_LANGUAGE = "language"; - /** - * Fluent Client search parameter constant for language - *

- * Description: Language code (irrespective of use value)
- * Type: token
- * Path: Patient.communication.language
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam LANGUAGE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_LANGUAGE); - - /** - * Search parameter: link - *

- * Description: All patients linked to the given patient
- * Type: reference
- * Path: Patient.link.other
- *

- */ - @SearchParamDefinition(name="link", path="Patient.link.other", description="All patients linked to the given patient", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Patient.class, RelatedPerson.class } ) - public static final String SP_LINK = "link"; - /** - * Fluent Client search parameter constant for link - *

- * Description: All patients linked to the given patient
- * Type: reference
- * Path: Patient.link.other
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam LINK = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_LINK); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Patient:link". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_LINK = new ca.uhn.fhir.model.api.Include("Patient:link").toLocked(); - - /** - * Search parameter: name - *

- * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
- * Type: string
- * Path: Patient.name
- *

- */ - @SearchParamDefinition(name="name", path="Patient.name", description="A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text", type="string" ) - public static final String SP_NAME = "name"; - /** - * Fluent Client search parameter constant for name - *

- * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
- * Type: string
- * Path: Patient.name
- *

- */ - public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); - - /** - * Search parameter: organization - *

- * Description: The organization that is the custodian of the patient record
- * Type: reference
- * Path: Patient.managingOrganization
- *

- */ - @SearchParamDefinition(name="organization", path="Patient.managingOrganization", description="The organization that is the custodian of the patient record", type="reference", target={Organization.class } ) - public static final String SP_ORGANIZATION = "organization"; - /** - * Fluent Client search parameter constant for organization - *

- * Description: The organization that is the custodian of the patient record
- * Type: reference
- * Path: Patient.managingOrganization
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATION); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Patient:organization". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATION = new ca.uhn.fhir.model.api.Include("Patient:organization").toLocked(); - /** * Search parameter: part-agree *

@@ -2709,6 +2507,118 @@ Deceased patients may also be marked as inactive for the same reasons, but may b */ public static final ca.uhn.fhir.model.api.Include INCLUDE_PART_AGREE = new ca.uhn.fhir.model.api.Include("Patient:part-agree").toLocked(); + /** + * Search parameter: age + *

+ * Description: Searches for patients based on age as calculated based on current date and date of birth. Deceased patients are excluded from the search.
+ * Type: number
+ * Path: null
+ *

+ */ + @SearchParamDefinition(name="age", path="", description="Searches for patients based on age as calculated based on current date and date of birth. Deceased patients are excluded from the search.", type="number" ) + public static final String SP_AGE = "age"; + /** + * Fluent Client search parameter constant for age + *

+ * Description: Searches for patients based on age as calculated based on current date and date of birth. Deceased patients are excluded from the search.
+ * Type: number
+ * Path: null
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.NumberClientParam AGE = new ca.uhn.fhir.rest.gclient.NumberClientParam(SP_AGE); + + /** + * Search parameter: birthOrderBoolean + *

+ * Description: Search based on whether a patient was part of a multiple birth or not.
+ * Type: token
+ * Path: null
+ *

+ */ + @SearchParamDefinition(name="birthOrderBoolean", path="", description="Search based on whether a patient was part of a multiple birth or not.", type="token" ) + public static final String SP_BIRTHORDERBOOLEAN = "birthOrderBoolean"; + /** + * Fluent Client search parameter constant for birthOrderBoolean + *

+ * Description: Search based on whether a patient was part of a multiple birth or not.
+ * Type: token
+ * Path: null
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam BIRTHORDERBOOLEAN = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_BIRTHORDERBOOLEAN); + + /** + * Search parameter: mothersMaidenName + *

+ * Description: Search based on patient's mother's maiden name
+ * Type: string
+ * Path: Patient.extension('http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName')
+ *

+ */ + @SearchParamDefinition(name="mothersMaidenName", path="Patient.extension('http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName')", description="Search based on patient's mother's maiden name", type="string" ) + public static final String SP_MOTHERSMAIDENNAME = "mothersMaidenName"; + /** + * Fluent Client search parameter constant for mothersMaidenName + *

+ * Description: Search based on patient's mother's maiden name
+ * Type: string
+ * Path: Patient.extension('http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName')
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam MOTHERSMAIDENNAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_MOTHERSMAIDENNAME); + + /** + * Search parameter: active + *

+ * Description: Whether the patient record is active
+ * Type: token
+ * Path: Patient.active
+ *

+ */ + @SearchParamDefinition(name="active", path="Patient.active", description="Whether the patient record is active", type="token" ) + public static final String SP_ACTIVE = "active"; + /** + * Fluent Client search parameter constant for active + *

+ * Description: Whether the patient record is active
+ * Type: token
+ * Path: Patient.active
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVE); + + /** + * Search parameter: address + *

+ * Description: Multiple Resources: + +* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +
+ * Type: string
+ * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
+ *

+ */ + @SearchParamDefinition(name="address", path="Patient.address | Person.address | Practitioner.address | RelatedPerson.address", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n", type="string" ) + public static final String SP_ADDRESS = "address"; + /** + * Fluent Client search parameter constant for address + *

+ * Description: Multiple Resources: + +* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +
+ * Type: string
+ * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); + /** * Search parameter: address-city *

@@ -2869,38 +2779,6 @@ Deceased patients may also be marked as inactive for the same reasons, but may b */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ADDRESS_USE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ADDRESS_USE); - /** - * Search parameter: address - *

- * Description: Multiple Resources: - -* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -
- * Type: string
- * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
- *

- */ - @SearchParamDefinition(name="address", path="Patient.address | Person.address | Practitioner.address | RelatedPerson.address", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n", type="string" ) - public static final String SP_ADDRESS = "address"; - /** - * Fluent Client search parameter constant for address - *

- * Description: Multiple Resources: - -* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -
- * Type: string
- * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
- *

- */ - public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); - /** * Search parameter: birthdate *

@@ -2931,6 +2809,46 @@ Deceased patients may also be marked as inactive for the same reasons, but may b */ public static final ca.uhn.fhir.rest.gclient.DateClientParam BIRTHDATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_BIRTHDATE); + /** + * Search parameter: death-date + *

+ * Description: The date of death has been provided and satisfies this search value
+ * Type: date
+ * Path: (Patient.deceased as dateTime)
+ *

+ */ + @SearchParamDefinition(name="death-date", path="(Patient.deceased as dateTime)", description="The date of death has been provided and satisfies this search value", type="date" ) + public static final String SP_DEATH_DATE = "death-date"; + /** + * Fluent Client search parameter constant for death-date + *

+ * Description: The date of death has been provided and satisfies this search value
+ * Type: date
+ * Path: (Patient.deceased as dateTime)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DEATH_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DEATH_DATE); + + /** + * Search parameter: deceased + *

+ * Description: This patient has been marked as deceased, or as a death date entered
+ * Type: token
+ * Path: Patient.deceased.exists() and Patient.deceased != false
+ *

+ */ + @SearchParamDefinition(name="deceased", path="Patient.deceased.exists() and Patient.deceased != false", description="This patient has been marked as deceased, or as a death date entered", type="token" ) + public static final String SP_DECEASED = "deceased"; + /** + * Fluent Client search parameter constant for deceased + *

+ * Description: This patient has been marked as deceased, or as a death date entered
+ * Type: token
+ * Path: Patient.deceased.exists() and Patient.deceased != false
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam DECEASED = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_DECEASED); + /** * Search parameter: email *

@@ -3025,6 +2943,32 @@ Deceased patients may also be marked as inactive for the same reasons, but may b */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam GENDER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_GENDER); + /** + * Search parameter: general-practitioner + *

+ * Description: Patient's nominated general practitioner, not the organization that manages the record
+ * Type: reference
+ * Path: Patient.generalPractitioner
+ *

+ */ + @SearchParamDefinition(name="general-practitioner", path="Patient.generalPractitioner", description="Patient's nominated general practitioner, not the organization that manages the record", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Organization.class, Practitioner.class, PractitionerRole.class } ) + public static final String SP_GENERAL_PRACTITIONER = "general-practitioner"; + /** + * Fluent Client search parameter constant for general-practitioner + *

+ * Description: Patient's nominated general practitioner, not the organization that manages the record
+ * Type: reference
+ * Path: Patient.generalPractitioner
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam GENERAL_PRACTITIONER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_GENERAL_PRACTITIONER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Patient:general-practitioner". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_GENERAL_PRACTITIONER = new ca.uhn.fhir.model.api.Include("Patient:general-practitioner").toLocked(); + /** * Search parameter: given *

@@ -3053,6 +2997,118 @@ Deceased patients may also be marked as inactive for the same reasons, but may b */ public static final ca.uhn.fhir.rest.gclient.StringClientParam GIVEN = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_GIVEN); + /** + * Search parameter: identifier + *

+ * Description: A patient identifier
+ * Type: token
+ * Path: Patient.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="Patient.identifier", description="A patient identifier", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: A patient identifier
+ * Type: token
+ * Path: Patient.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: language + *

+ * Description: Language code (irrespective of use value)
+ * Type: token
+ * Path: Patient.communication.language
+ *

+ */ + @SearchParamDefinition(name="language", path="Patient.communication.language", description="Language code (irrespective of use value)", type="token" ) + public static final String SP_LANGUAGE = "language"; + /** + * Fluent Client search parameter constant for language + *

+ * Description: Language code (irrespective of use value)
+ * Type: token
+ * Path: Patient.communication.language
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam LANGUAGE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_LANGUAGE); + + /** + * Search parameter: link + *

+ * Description: All patients linked to the given patient
+ * Type: reference
+ * Path: Patient.link.other
+ *

+ */ + @SearchParamDefinition(name="link", path="Patient.link.other", description="All patients linked to the given patient", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Patient.class, RelatedPerson.class } ) + public static final String SP_LINK = "link"; + /** + * Fluent Client search parameter constant for link + *

+ * Description: All patients linked to the given patient
+ * Type: reference
+ * Path: Patient.link.other
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam LINK = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_LINK); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Patient:link". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_LINK = new ca.uhn.fhir.model.api.Include("Patient:link").toLocked(); + + /** + * Search parameter: name + *

+ * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
+ * Type: string
+ * Path: Patient.name
+ *

+ */ + @SearchParamDefinition(name="name", path="Patient.name", description="A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text", type="string" ) + public static final String SP_NAME = "name"; + /** + * Fluent Client search parameter constant for name + *

+ * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
+ * Type: string
+ * Path: Patient.name
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); + + /** + * Search parameter: organization + *

+ * Description: The organization that is the custodian of the patient record
+ * Type: reference
+ * Path: Patient.managingOrganization
+ *

+ */ + @SearchParamDefinition(name="organization", path="Patient.managingOrganization", description="The organization that is the custodian of the patient record", type="reference", target={Organization.class } ) + public static final String SP_ORGANIZATION = "organization"; + /** + * Fluent Client search parameter constant for organization + *

+ * Description: The organization that is the custodian of the patient record
+ * Type: reference
+ * Path: Patient.managingOrganization
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATION); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Patient:organization". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATION = new ca.uhn.fhir.model.api.Include("Patient:organization").toLocked(); + /** * Search parameter: phone *

@@ -3153,66 +3209,6 @@ Deceased patients may also be marked as inactive for the same reasons, but may b */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam TELECOM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TELECOM); - /** - * Search parameter: age - *

- * Description: Searches for patients based on age as calculated based on current date and date of birth. Deceased patients are excluded from the search.
- * Type: number
- * Path: null
- *

- */ - @SearchParamDefinition(name="age", path="", description="Searches for patients based on age as calculated based on current date and date of birth. Deceased patients are excluded from the search.", type="number" ) - public static final String SP_AGE = "age"; - /** - * Fluent Client search parameter constant for age - *

- * Description: Searches for patients based on age as calculated based on current date and date of birth. Deceased patients are excluded from the search.
- * Type: number
- * Path: null
- *

- */ - public static final ca.uhn.fhir.rest.gclient.NumberClientParam AGE = new ca.uhn.fhir.rest.gclient.NumberClientParam(SP_AGE); - - /** - * Search parameter: birthOrderBoolean - *

- * Description: Search based on whether a patient was part of a multiple birth or not.
- * Type: token
- * Path: null
- *

- */ - @SearchParamDefinition(name="birthOrderBoolean", path="", description="Search based on whether a patient was part of a multiple birth or not.", type="token" ) - public static final String SP_BIRTHORDERBOOLEAN = "birthOrderBoolean"; - /** - * Fluent Client search parameter constant for birthOrderBoolean - *

- * Description: Search based on whether a patient was part of a multiple birth or not.
- * Type: token
- * Path: null
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam BIRTHORDERBOOLEAN = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_BIRTHORDERBOOLEAN); - - /** - * Search parameter: mothersMaidenName - *

- * Description: Search based on patient's mother's maiden name
- * Type: string
- * Path: Patient.extension('http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName')
- *

- */ - @SearchParamDefinition(name="mothersMaidenName", path="Patient.extension('http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName')", description="Search based on patient's mother's maiden name", type="string" ) - public static final String SP_MOTHERSMAIDENNAME = "mothersMaidenName"; - /** - * Fluent Client search parameter constant for mothersMaidenName - *

- * Description: Search based on patient's mother's maiden name
- * Type: string
- * Path: Patient.extension('http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName')
- *

- */ - public static final ca.uhn.fhir.rest.gclient.StringClientParam MOTHERSMAIDENNAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_MOTHERSMAIDENNAME); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentNotice.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentNotice.java index 5edabaa83..960e1cb3e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentNotice.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentNotice.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -932,7 +932,7 @@ public class PaymentNotice extends DomainResource { * Path: PaymentNotice.request
*

*/ - @SearchParamDefinition(name="request", path="PaymentNotice.request", description="The Claim", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="request", path="PaymentNotice.request", description="The Claim", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_REQUEST = "request"; /** * Fluent Client search parameter constant for request @@ -958,7 +958,7 @@ public class PaymentNotice extends DomainResource { * Path: PaymentNotice.response
*

*/ - @SearchParamDefinition(name="response", path="PaymentNotice.response", description="The ClaimResponse", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="response", path="PaymentNotice.response", description="The ClaimResponse", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_RESPONSE = "response"; /** * Fluent Client search parameter constant for response diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentReconciliation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentReconciliation.java index e80a8f384..4d55a892d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentReconciliation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PaymentReconciliation.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -53,6 +53,130 @@ import ca.uhn.fhir.model.api.annotation.Block; @ResourceDef(name="PaymentReconciliation", profile="http://hl7.org/fhir/StructureDefinition/PaymentReconciliation") public class PaymentReconciliation extends DomainResource { + public enum PaymentOutcome { + /** + * The Claim/Pre-authorization/Pre-determination has been received but processing has not begun. + */ + QUEUED, + /** + * The processing has completed without errors + */ + COMPLETE, + /** + * One or more errors have been detected in the Claim + */ + ERROR, + /** + * No errors have been detected in the Claim and some of the adjudication has been performed. + */ + PARTIAL, + /** + * added to help the parsers with the generic types + */ + NULL; + public static PaymentOutcome fromCode(String codeString) throws FHIRException { + if (codeString == null || "".equals(codeString)) + return null; + if ("queued".equals(codeString)) + return QUEUED; + if ("complete".equals(codeString)) + return COMPLETE; + if ("error".equals(codeString)) + return ERROR; + if ("partial".equals(codeString)) + return PARTIAL; + if (Configuration.isAcceptInvalidEnums()) + return null; + else + throw new FHIRException("Unknown PaymentOutcome code '"+codeString+"'"); + } + public String toCode() { + switch (this) { + case QUEUED: return "queued"; + case COMPLETE: return "complete"; + case ERROR: return "error"; + case PARTIAL: return "partial"; + default: return "?"; + } + } + public String getSystem() { + switch (this) { + case QUEUED: return "http://hl7.org/fhir/payment-outcome"; + case COMPLETE: return "http://hl7.org/fhir/payment-outcome"; + case ERROR: return "http://hl7.org/fhir/payment-outcome"; + case PARTIAL: return "http://hl7.org/fhir/payment-outcome"; + default: return "?"; + } + } + public String getDefinition() { + switch (this) { + case QUEUED: return "The Claim/Pre-authorization/Pre-determination has been received but processing has not begun."; + case COMPLETE: return "The processing has completed without errors"; + case ERROR: return "One or more errors have been detected in the Claim"; + case PARTIAL: return "No errors have been detected in the Claim and some of the adjudication has been performed."; + default: return "?"; + } + } + public String getDisplay() { + switch (this) { + case QUEUED: return "Queued"; + case COMPLETE: return "Processing Complete"; + case ERROR: return "Error"; + case PARTIAL: return "Partial Processing"; + default: return "?"; + } + } + } + + public static class PaymentOutcomeEnumFactory implements EnumFactory { + public PaymentOutcome fromCode(String codeString) throws IllegalArgumentException { + if (codeString == null || "".equals(codeString)) + if (codeString == null || "".equals(codeString)) + return null; + if ("queued".equals(codeString)) + return PaymentOutcome.QUEUED; + if ("complete".equals(codeString)) + return PaymentOutcome.COMPLETE; + if ("error".equals(codeString)) + return PaymentOutcome.ERROR; + if ("partial".equals(codeString)) + return PaymentOutcome.PARTIAL; + throw new IllegalArgumentException("Unknown PaymentOutcome code '"+codeString+"'"); + } + public Enumeration fromType(Base code) throws FHIRException { + if (code == null) + return null; + if (code.isEmpty()) + return new Enumeration(this); + String codeString = ((PrimitiveType) code).asStringValue(); + if (codeString == null || "".equals(codeString)) + return null; + if ("queued".equals(codeString)) + return new Enumeration(this, PaymentOutcome.QUEUED); + if ("complete".equals(codeString)) + return new Enumeration(this, PaymentOutcome.COMPLETE); + if ("error".equals(codeString)) + return new Enumeration(this, PaymentOutcome.ERROR); + if ("partial".equals(codeString)) + return new Enumeration(this, PaymentOutcome.PARTIAL); + throw new FHIRException("Unknown PaymentOutcome code '"+codeString+"'"); + } + public String toCode(PaymentOutcome code) { + if (code == PaymentOutcome.QUEUED) + return "queued"; + if (code == PaymentOutcome.COMPLETE) + return "complete"; + if (code == PaymentOutcome.ERROR) + return "error"; + if (code == PaymentOutcome.PARTIAL) + return "partial"; + return "?"; + } + public String toSystem(PaymentOutcome code) { + return code.getSystem(); + } + } + @Block() public static class DetailsComponent extends BackboneElement implements IBaseBackboneElement { /** @@ -966,8 +1090,8 @@ public class PaymentReconciliation extends DomainResource { */ @Child(name = "outcome", type = {CodeType.class}, order=7, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="queued | complete | error | partial", formalDefinition="The outcome of a request for a reconciliation." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/remittance-outcome") - protected Enumeration outcome; + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/payment-outcome") + protected Enumeration outcome; /** * A human readable description of the status of the request for the reconciliation. @@ -1019,7 +1143,7 @@ public class PaymentReconciliation extends DomainResource { @Description(shortDefinition="Note concerning processing", formalDefinition="A note that describes or explains the processing in a human readable form." ) protected List processNote; - private static final long serialVersionUID = -1613598933L; + private static final long serialVersionUID = 1540410902L; /** * Constructor @@ -1281,12 +1405,12 @@ public class PaymentReconciliation extends DomainResource { /** * @return {@link #outcome} (The outcome of a request for a reconciliation.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value */ - public Enumeration getOutcomeElement() { + public Enumeration getOutcomeElement() { if (this.outcome == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create PaymentReconciliation.outcome"); else if (Configuration.doAutoCreate()) - this.outcome = new Enumeration(new ClaimProcessingCodesEnumFactory()); // bb + this.outcome = new Enumeration(new PaymentOutcomeEnumFactory()); // bb return this.outcome; } @@ -1301,7 +1425,7 @@ public class PaymentReconciliation extends DomainResource { /** * @param value {@link #outcome} (The outcome of a request for a reconciliation.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value */ - public PaymentReconciliation setOutcomeElement(Enumeration value) { + public PaymentReconciliation setOutcomeElement(Enumeration value) { this.outcome = value; return this; } @@ -1309,19 +1433,19 @@ public class PaymentReconciliation extends DomainResource { /** * @return The outcome of a request for a reconciliation. */ - public ClaimProcessingCodes getOutcome() { + public PaymentOutcome getOutcome() { return this.outcome == null ? null : this.outcome.getValue(); } /** * @param value The outcome of a request for a reconciliation. */ - public PaymentReconciliation setOutcome(ClaimProcessingCodes value) { + public PaymentReconciliation setOutcome(PaymentOutcome value) { if (value == null) this.outcome = null; else { if (this.outcome == null) - this.outcome = new Enumeration(new ClaimProcessingCodesEnumFactory()); + this.outcome = new Enumeration(new PaymentOutcomeEnumFactory()); this.outcome.setValue(value); } return this; @@ -1651,7 +1775,7 @@ public class PaymentReconciliation extends DomainResource { case 1144026207: /*paymentIssuer*/ return this.paymentIssuer == null ? new Base[0] : new Base[] {this.paymentIssuer}; // Reference case 1095692943: /*request*/ return this.request == null ? new Base[0] : new Base[] {this.request}; // Reference case 693934258: /*requestor*/ return this.requestor == null ? new Base[0] : new Base[] {this.requestor}; // Reference - case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : new Base[] {this.outcome}; // Enumeration + case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : new Base[] {this.outcome}; // Enumeration case 583380919: /*disposition*/ return this.disposition == null ? new Base[0] : new Base[] {this.disposition}; // StringType case -1540873516: /*paymentDate*/ return this.paymentDate == null ? new Base[0] : new Base[] {this.paymentDate}; // DateType case 909332990: /*paymentAmount*/ return this.paymentAmount == null ? new Base[0] : new Base[] {this.paymentAmount}; // Money @@ -1690,8 +1814,8 @@ public class PaymentReconciliation extends DomainResource { this.requestor = TypeConvertor.castToReference(value); // Reference return value; case -1106507950: // outcome - value = new ClaimProcessingCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.outcome = (Enumeration) value; // Enumeration + value = new PaymentOutcomeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.outcome = (Enumeration) value; // Enumeration return value; case 583380919: // disposition this.disposition = TypeConvertor.castToString(value); // StringType @@ -1737,8 +1861,8 @@ public class PaymentReconciliation extends DomainResource { } else if (name.equals("requestor")) { this.requestor = TypeConvertor.castToReference(value); // Reference } else if (name.equals("outcome")) { - value = new ClaimProcessingCodesEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.outcome = (Enumeration) value; // Enumeration + value = new PaymentOutcomeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.outcome = (Enumeration) value; // Enumeration } else if (name.equals("disposition")) { this.disposition = TypeConvertor.castToString(value); // StringType } else if (name.equals("paymentDate")) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Period.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Period.java index cfcda5ec7..4f182ccf2 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Period.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Period.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -300,7 +300,7 @@ public class Period extends DataType implements ICompositeType { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(start, end); } -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): /** * Sets the value for start () * diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Permission.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Permission.java index 5efcde64b..fce569ea5 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Permission.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Permission.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class Permission extends DomainResource { case ENTEREDINERROR: return "entered-in-error"; case DRAFT: return "draft"; case REJECTED: return "rejected"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class Permission extends DomainResource { case ENTEREDINERROR: return "http://hl7.org/fhir/permission-status"; case DRAFT: return "http://hl7.org/fhir/permission-status"; case REJECTED: return "http://hl7.org/fhir/permission-status"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class Permission extends DomainResource { case ENTEREDINERROR: return "Permission was entered in error and is not active."; case DRAFT: return "Permission is being defined."; case REJECTED: return "Permission not granted."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class Permission extends DomainResource { case ENTEREDINERROR: return "Entered in Error"; case DRAFT: return "Draft"; case REJECTED: return "Rejected"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Person.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Person.java index 4fd2e336f..2e92244ac 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Person.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Person.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class Person extends DomainResource { case LEVEL2: return "level2"; case LEVEL3: return "level3"; case LEVEL4: return "level4"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class Person extends DomainResource { case LEVEL2: return "http://hl7.org/fhir/identity-assuranceLevel"; case LEVEL3: return "http://hl7.org/fhir/identity-assuranceLevel"; case LEVEL4: return "http://hl7.org/fhir/identity-assuranceLevel"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class Person extends DomainResource { case LEVEL2: return "Some confidence in the asserted identity's accuracy."; case LEVEL3: return "High confidence in the asserted identity's accuracy."; case LEVEL4: return "Very high confidence in the asserted identity's accuracy."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class Person extends DomainResource { case LEVEL2: return "Level 2"; case LEVEL3: return "Level 3"; case LEVEL4: return "Level 4"; - case NULL: return null; default: return "?"; } } @@ -1228,174 +1224,36 @@ public class Person extends DomainResource { } /** - * Search parameter: identifier + * Search parameter: address *

- * Description: A person Identifier
- * Type: token
- * Path: Person.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="Person.identifier", description="A person Identifier", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: A person Identifier
- * Type: token
- * Path: Person.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + * Description: Multiple Resources: - /** - * Search parameter: link - *

- * Description: Any link has this Patient, Person, RelatedPerson or Practitioner reference
- * Type: reference
- * Path: Person.link.target
- *

- */ - @SearchParamDefinition(name="link", path="Person.link.target", description="Any link has this Patient, Person, RelatedPerson or Practitioner reference", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Patient.class, Person.class, Practitioner.class, RelatedPerson.class } ) - public static final String SP_LINK = "link"; - /** - * Fluent Client search parameter constant for link - *

- * Description: Any link has this Patient, Person, RelatedPerson or Practitioner reference
- * Type: reference
- * Path: Person.link.target
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam LINK = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_LINK); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Person:link". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_LINK = new ca.uhn.fhir.model.api.Include("Person:link").toLocked(); - - /** - * Search parameter: name - *

- * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
+* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +

* Type: string
- * Path: Person.name
+ * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
*

*/ - @SearchParamDefinition(name="name", path="Person.name", description="A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text", type="string" ) - public static final String SP_NAME = "name"; + @SearchParamDefinition(name="address", path="Patient.address | Person.address | Practitioner.address | RelatedPerson.address", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n", type="string" ) + public static final String SP_ADDRESS = "address"; /** - * Fluent Client search parameter constant for name + * Fluent Client search parameter constant for address *

- * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
+ * Description: Multiple Resources: + +* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +
* Type: string
- * Path: Person.name
+ * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
*

*/ - public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); - - /** - * Search parameter: organization - *

- * Description: The organization at which this person record is being managed
- * Type: reference
- * Path: Person.managingOrganization
- *

- */ - @SearchParamDefinition(name="organization", path="Person.managingOrganization", description="The organization at which this person record is being managed", type="reference", target={Organization.class } ) - public static final String SP_ORGANIZATION = "organization"; - /** - * Fluent Client search parameter constant for organization - *

- * Description: The organization at which this person record is being managed
- * Type: reference
- * Path: Person.managingOrganization
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATION); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Person:organization". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATION = new ca.uhn.fhir.model.api.Include("Person:organization").toLocked(); - - /** - * Search parameter: patient - *

- * Description: The Person links to this Patient
- * Type: reference
- * Path: Person.link.target.where(resolve() is Patient)
- *

- */ - @SearchParamDefinition(name="patient", path="Person.link.target.where(resolve() is Patient)", description="The Person links to this Patient", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: The Person links to this Patient
- * Type: reference
- * Path: Person.link.target.where(resolve() is Patient)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Person:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Person:patient").toLocked(); - - /** - * Search parameter: practitioner - *

- * Description: The Person links to this Practitioner
- * Type: reference
- * Path: Person.link.target.where(resolve() is Practitioner)
- *

- */ - @SearchParamDefinition(name="practitioner", path="Person.link.target.where(resolve() is Practitioner)", description="The Person links to this Practitioner", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Practitioner.class } ) - public static final String SP_PRACTITIONER = "practitioner"; - /** - * Fluent Client search parameter constant for practitioner - *

- * Description: The Person links to this Practitioner
- * Type: reference
- * Path: Person.link.target.where(resolve() is Practitioner)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRACTITIONER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PRACTITIONER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Person:practitioner". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PRACTITIONER = new ca.uhn.fhir.model.api.Include("Person:practitioner").toLocked(); - - /** - * Search parameter: relatedperson - *

- * Description: The Person links to this RelatedPerson
- * Type: reference
- * Path: Person.link.target.where(resolve() is RelatedPerson)
- *

- */ - @SearchParamDefinition(name="relatedperson", path="Person.link.target.where(resolve() is RelatedPerson)", description="The Person links to this RelatedPerson", type="reference", target={RelatedPerson.class } ) - public static final String SP_RELATEDPERSON = "relatedperson"; - /** - * Fluent Client search parameter constant for relatedperson - *

- * Description: The Person links to this RelatedPerson
- * Type: reference
- * Path: Person.link.target.where(resolve() is RelatedPerson)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RELATEDPERSON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RELATEDPERSON); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Person:relatedperson". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_RELATEDPERSON = new ca.uhn.fhir.model.api.Include("Person:relatedperson").toLocked(); + public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); /** * Search parameter: address-city @@ -1557,38 +1415,6 @@ public class Person extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ADDRESS_USE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ADDRESS_USE); - /** - * Search parameter: address - *

- * Description: Multiple Resources: - -* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -
- * Type: string
- * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
- *

- */ - @SearchParamDefinition(name="address", path="Patient.address | Person.address | Practitioner.address | RelatedPerson.address", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n", type="string" ) - public static final String SP_ADDRESS = "address"; - /** - * Fluent Client search parameter constant for address - *

- * Description: Multiple Resources: - -* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -
- * Type: string
- * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
- *

- */ - public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); - /** * Search parameter: birthdate *

@@ -1785,6 +1611,176 @@ public class Person extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam TELECOM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TELECOM); + /** + * Search parameter: identifier + *

+ * Description: A person Identifier
+ * Type: token
+ * Path: Person.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="Person.identifier", description="A person Identifier", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: A person Identifier
+ * Type: token
+ * Path: Person.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: link + *

+ * Description: Any link has this Patient, Person, RelatedPerson or Practitioner reference
+ * Type: reference
+ * Path: Person.link.target
+ *

+ */ + @SearchParamDefinition(name="link", path="Person.link.target", description="Any link has this Patient, Person, RelatedPerson or Practitioner reference", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Patient.class, Person.class, Practitioner.class, RelatedPerson.class } ) + public static final String SP_LINK = "link"; + /** + * Fluent Client search parameter constant for link + *

+ * Description: Any link has this Patient, Person, RelatedPerson or Practitioner reference
+ * Type: reference
+ * Path: Person.link.target
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam LINK = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_LINK); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Person:link". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_LINK = new ca.uhn.fhir.model.api.Include("Person:link").toLocked(); + + /** + * Search parameter: name + *

+ * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
+ * Type: string
+ * Path: Person.name
+ *

+ */ + @SearchParamDefinition(name="name", path="Person.name", description="A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text", type="string" ) + public static final String SP_NAME = "name"; + /** + * Fluent Client search parameter constant for name + *

+ * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
+ * Type: string
+ * Path: Person.name
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); + + /** + * Search parameter: organization + *

+ * Description: The organization at which this person record is being managed
+ * Type: reference
+ * Path: Person.managingOrganization
+ *

+ */ + @SearchParamDefinition(name="organization", path="Person.managingOrganization", description="The organization at which this person record is being managed", type="reference", target={Organization.class } ) + public static final String SP_ORGANIZATION = "organization"; + /** + * Fluent Client search parameter constant for organization + *

+ * Description: The organization at which this person record is being managed
+ * Type: reference
+ * Path: Person.managingOrganization
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATION); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Person:organization". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATION = new ca.uhn.fhir.model.api.Include("Person:organization").toLocked(); + + /** + * Search parameter: patient + *

+ * Description: The Person links to this Patient
+ * Type: reference
+ * Path: Person.link.target.where(resolve() is Patient)
+ *

+ */ + @SearchParamDefinition(name="patient", path="Person.link.target.where(resolve() is Patient)", description="The Person links to this Patient", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class, Person.class, Practitioner.class, RelatedPerson.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: The Person links to this Patient
+ * Type: reference
+ * Path: Person.link.target.where(resolve() is Patient)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Person:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Person:patient").toLocked(); + + /** + * Search parameter: practitioner + *

+ * Description: The Person links to this Practitioner
+ * Type: reference
+ * Path: Person.link.target.where(resolve() is Practitioner)
+ *

+ */ + @SearchParamDefinition(name="practitioner", path="Person.link.target.where(resolve() is Practitioner)", description="The Person links to this Practitioner", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Patient.class, Person.class, Practitioner.class, RelatedPerson.class } ) + public static final String SP_PRACTITIONER = "practitioner"; + /** + * Fluent Client search parameter constant for practitioner + *

+ * Description: The Person links to this Practitioner
+ * Type: reference
+ * Path: Person.link.target.where(resolve() is Practitioner)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRACTITIONER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PRACTITIONER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Person:practitioner". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PRACTITIONER = new ca.uhn.fhir.model.api.Include("Person:practitioner").toLocked(); + + /** + * Search parameter: relatedperson + *

+ * Description: The Person links to this RelatedPerson
+ * Type: reference
+ * Path: Person.link.target.where(resolve() is RelatedPerson)
+ *

+ */ + @SearchParamDefinition(name="relatedperson", path="Person.link.target.where(resolve() is RelatedPerson)", description="The Person links to this RelatedPerson", type="reference", target={Patient.class, Person.class, Practitioner.class, RelatedPerson.class } ) + public static final String SP_RELATEDPERSON = "relatedperson"; + /** + * Fluent Client search parameter constant for relatedperson + *

+ * Description: The Person links to this RelatedPerson
+ * Type: reference
+ * Path: Person.link.target.where(resolve() is RelatedPerson)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RELATEDPERSON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RELATEDPERSON); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Person:relatedperson". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_RELATEDPERSON = new ca.uhn.fhir.model.api.Include("Person:relatedperson").toLocked(); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PlanDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PlanDefinition.java index 2062bcb45..24324312e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PlanDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PlanDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -48,7 +48,7 @@ import ca.uhn.fhir.model.api.annotation.Description; import ca.uhn.fhir.model.api.annotation.Block; /** - * This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols. + * This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical and non-clinical artifacts such as clinical decision support rules, order sets, protocols, and drug quality specifications. */ @ResourceDef(name="PlanDefinition", profile="http://hl7.org/fhir/StructureDefinition/PlanDefinition") public class PlanDefinition extends MetadataResource { @@ -607,10 +607,10 @@ public class PlanDefinition extends MetadataResource { protected CodeableConcept measure; /** - * The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value. + * The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%, or in the case of pharmaceutical quality - NMT 0.6%, Clear solution, etc. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value. */ @Child(name = "detail", type = {Quantity.class, Range.class, CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="The target value to be achieved", formalDefinition="The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value." ) + @Description(shortDefinition="The target value to be achieved", formalDefinition="The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%, or in the case of pharmaceutical quality - NMT 0.6%, Clear solution, etc. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value." ) protected DataType detail; /** @@ -654,14 +654,14 @@ public class PlanDefinition extends MetadataResource { } /** - * @return {@link #detail} (The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.) + * @return {@link #detail} (The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%, or in the case of pharmaceutical quality - NMT 0.6%, Clear solution, etc. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.) */ public DataType getDetail() { return this.detail; } /** - * @return {@link #detail} (The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.) + * @return {@link #detail} (The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%, or in the case of pharmaceutical quality - NMT 0.6%, Clear solution, etc. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.) */ public Quantity getDetailQuantity() throws FHIRException { if (this.detail == null) @@ -676,7 +676,7 @@ public class PlanDefinition extends MetadataResource { } /** - * @return {@link #detail} (The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.) + * @return {@link #detail} (The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%, or in the case of pharmaceutical quality - NMT 0.6%, Clear solution, etc. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.) */ public Range getDetailRange() throws FHIRException { if (this.detail == null) @@ -691,7 +691,7 @@ public class PlanDefinition extends MetadataResource { } /** - * @return {@link #detail} (The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.) + * @return {@link #detail} (The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%, or in the case of pharmaceutical quality - NMT 0.6%, Clear solution, etc. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.) */ public CodeableConcept getDetailCodeableConcept() throws FHIRException { if (this.detail == null) @@ -710,7 +710,7 @@ public class PlanDefinition extends MetadataResource { } /** - * @param value {@link #detail} (The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.) + * @param value {@link #detail} (The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%, or in the case of pharmaceutical quality - NMT 0.6%, Clear solution, etc. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.) */ public PlanDefinitionGoalTargetComponent setDetail(DataType value) { if (value != null && !(value instanceof Quantity || value instanceof Range || value instanceof CodeableConcept)) @@ -746,7 +746,7 @@ public class PlanDefinition extends MetadataResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("measure", "CodeableConcept", "The parameter whose value is to be tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.", 0, 1, measure)); - children.add(new Property("detail[x]", "Quantity|Range|CodeableConcept", "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.", 0, 1, detail)); + children.add(new Property("detail[x]", "Quantity|Range|CodeableConcept", "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%, or in the case of pharmaceutical quality - NMT 0.6%, Clear solution, etc. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.", 0, 1, detail)); children.add(new Property("due", "Duration", "Indicates the timeframe after the start of the goal in which the goal should be met.", 0, 1, due)); } @@ -754,11 +754,11 @@ public class PlanDefinition extends MetadataResource { public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case 938321246: /*measure*/ return new Property("measure", "CodeableConcept", "The parameter whose value is to be tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.", 0, 1, measure); - case -1973084529: /*detail[x]*/ return new Property("detail[x]", "Quantity|Range|CodeableConcept", "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.", 0, 1, detail); - case -1335224239: /*detail*/ return new Property("detail[x]", "Quantity|Range|CodeableConcept", "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.", 0, 1, detail); - case -1313079300: /*detailQuantity*/ return new Property("detail[x]", "Quantity", "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.", 0, 1, detail); - case -2062632084: /*detailRange*/ return new Property("detail[x]", "Range", "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.", 0, 1, detail); - case -175586544: /*detailCodeableConcept*/ return new Property("detail[x]", "CodeableConcept", "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.", 0, 1, detail); + case -1973084529: /*detail[x]*/ return new Property("detail[x]", "Quantity|Range|CodeableConcept", "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%, or in the case of pharmaceutical quality - NMT 0.6%, Clear solution, etc. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.", 0, 1, detail); + case -1335224239: /*detail*/ return new Property("detail[x]", "Quantity|Range|CodeableConcept", "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%, or in the case of pharmaceutical quality - NMT 0.6%, Clear solution, etc. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.", 0, 1, detail); + case -1313079300: /*detailQuantity*/ return new Property("detail[x]", "Quantity", "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%, or in the case of pharmaceutical quality - NMT 0.6%, Clear solution, etc. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.", 0, 1, detail); + case -2062632084: /*detailRange*/ return new Property("detail[x]", "Range", "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%, or in the case of pharmaceutical quality - NMT 0.6%, Clear solution, etc. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.", 0, 1, detail); + case -175586544: /*detailCodeableConcept*/ return new Property("detail[x]", "CodeableConcept", "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%, or in the case of pharmaceutical quality - NMT 0.6%, Clear solution, etc. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value.", 0, 1, detail); case 99828: /*due*/ return new Property("due", "Duration", "Indicates the timeframe after the start of the goal in which the goal should be met.", 0, 1, due); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -898,6 +898,620 @@ public class PlanDefinition extends MetadataResource { } + } + + @Block() + public static class PlanDefinitionActorComponent extends BackboneElement implements IBaseBackboneElement { + /** + * A descriptive label for the actor. + */ + @Child(name = "title", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="User-visible title", formalDefinition="A descriptive label for the actor." ) + protected StringType title; + + /** + * A description of how the actor fits into the overall actions of the plan definition. + */ + @Child(name = "description", type = {MarkdownType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Describes the actor", formalDefinition="A description of how the actor fits into the overall actions of the plan definition." ) + protected MarkdownType description; + + /** + * The characteristics of the candidates that could serve as the actor. + */ + @Child(name = "option", type = {}, order=3, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Who or what can be this actor", formalDefinition="The characteristics of the candidates that could serve as the actor." ) + protected List option; + + private static final long serialVersionUID = -571302300L; + + /** + * Constructor + */ + public PlanDefinitionActorComponent() { + super(); + } + + /** + * Constructor + */ + public PlanDefinitionActorComponent(PlanDefinitionActorOptionComponent option) { + super(); + this.addOption(option); + } + + /** + * @return {@link #title} (A descriptive label for the actor.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + */ + public StringType getTitleElement() { + if (this.title == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActorComponent.title"); + else if (Configuration.doAutoCreate()) + this.title = new StringType(); // bb + return this.title; + } + + public boolean hasTitleElement() { + return this.title != null && !this.title.isEmpty(); + } + + public boolean hasTitle() { + return this.title != null && !this.title.isEmpty(); + } + + /** + * @param value {@link #title} (A descriptive label for the actor.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + */ + public PlanDefinitionActorComponent setTitleElement(StringType value) { + this.title = value; + return this; + } + + /** + * @return A descriptive label for the actor. + */ + public String getTitle() { + return this.title == null ? null : this.title.getValue(); + } + + /** + * @param value A descriptive label for the actor. + */ + public PlanDefinitionActorComponent setTitle(String value) { + if (Utilities.noString(value)) + this.title = null; + else { + if (this.title == null) + this.title = new StringType(); + this.title.setValue(value); + } + return this; + } + + /** + * @return {@link #description} (A description of how the actor fits into the overall actions of the plan definition.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public MarkdownType getDescriptionElement() { + if (this.description == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActorComponent.description"); + else if (Configuration.doAutoCreate()) + this.description = new MarkdownType(); // bb + return this.description; + } + + public boolean hasDescriptionElement() { + return this.description != null && !this.description.isEmpty(); + } + + public boolean hasDescription() { + return this.description != null && !this.description.isEmpty(); + } + + /** + * @param value {@link #description} (A description of how the actor fits into the overall actions of the plan definition.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public PlanDefinitionActorComponent setDescriptionElement(MarkdownType value) { + this.description = value; + return this; + } + + /** + * @return A description of how the actor fits into the overall actions of the plan definition. + */ + public String getDescription() { + return this.description == null ? null : this.description.getValue(); + } + + /** + * @param value A description of how the actor fits into the overall actions of the plan definition. + */ + public PlanDefinitionActorComponent setDescription(String value) { + if (value == null) + this.description = null; + else { + if (this.description == null) + this.description = new MarkdownType(); + this.description.setValue(value); + } + return this; + } + + /** + * @return {@link #option} (The characteristics of the candidates that could serve as the actor.) + */ + public List getOption() { + if (this.option == null) + this.option = new ArrayList(); + return this.option; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public PlanDefinitionActorComponent setOption(List theOption) { + this.option = theOption; + return this; + } + + public boolean hasOption() { + if (this.option == null) + return false; + for (PlanDefinitionActorOptionComponent item : this.option) + if (!item.isEmpty()) + return true; + return false; + } + + public PlanDefinitionActorOptionComponent addOption() { //3 + PlanDefinitionActorOptionComponent t = new PlanDefinitionActorOptionComponent(); + if (this.option == null) + this.option = new ArrayList(); + this.option.add(t); + return t; + } + + public PlanDefinitionActorComponent addOption(PlanDefinitionActorOptionComponent t) { //3 + if (t == null) + return this; + if (this.option == null) + this.option = new ArrayList(); + this.option.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #option}, creating it if it does not already exist {3} + */ + public PlanDefinitionActorOptionComponent getOptionFirstRep() { + if (getOption().isEmpty()) { + addOption(); + } + return getOption().get(0); + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("title", "string", "A descriptive label for the actor.", 0, 1, title)); + children.add(new Property("description", "markdown", "A description of how the actor fits into the overall actions of the plan definition.", 0, 1, description)); + children.add(new Property("option", "", "The characteristics of the candidates that could serve as the actor.", 0, java.lang.Integer.MAX_VALUE, option)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 110371416: /*title*/ return new Property("title", "string", "A descriptive label for the actor.", 0, 1, title); + case -1724546052: /*description*/ return new Property("description", "markdown", "A description of how the actor fits into the overall actions of the plan definition.", 0, 1, description); + case -1010136971: /*option*/ return new Property("option", "", "The characteristics of the candidates that could serve as the actor.", 0, java.lang.Integer.MAX_VALUE, option); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType + case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType + case -1010136971: /*option*/ return this.option == null ? new Base[0] : this.option.toArray(new Base[this.option.size()]); // PlanDefinitionActorOptionComponent + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 110371416: // title + this.title = TypeConvertor.castToString(value); // StringType + return value; + case -1724546052: // description + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + case -1010136971: // option + this.getOption().add((PlanDefinitionActorOptionComponent) value); // PlanDefinitionActorOptionComponent + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("title")) { + this.title = TypeConvertor.castToString(value); // StringType + } else if (name.equals("description")) { + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("option")) { + this.getOption().add((PlanDefinitionActorOptionComponent) value); + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 110371416: return getTitleElement(); + case -1724546052: return getDescriptionElement(); + case -1010136971: return addOption(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 110371416: /*title*/ return new String[] {"string"}; + case -1724546052: /*description*/ return new String[] {"markdown"}; + case -1010136971: /*option*/ return new String[] {}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("title")) { + throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.actor.title"); + } + else if (name.equals("description")) { + throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.actor.description"); + } + else if (name.equals("option")) { + return addOption(); + } + else + return super.addChild(name); + } + + public PlanDefinitionActorComponent copy() { + PlanDefinitionActorComponent dst = new PlanDefinitionActorComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(PlanDefinitionActorComponent dst) { + super.copyValues(dst); + dst.title = title == null ? null : title.copy(); + dst.description = description == null ? null : description.copy(); + if (option != null) { + dst.option = new ArrayList(); + for (PlanDefinitionActorOptionComponent i : option) + dst.option.add(i.copy()); + }; + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof PlanDefinitionActorComponent)) + return false; + PlanDefinitionActorComponent o = (PlanDefinitionActorComponent) other_; + return compareDeep(title, o.title, true) && compareDeep(description, o.description, true) && compareDeep(option, o.option, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof PlanDefinitionActorComponent)) + return false; + PlanDefinitionActorComponent o = (PlanDefinitionActorComponent) other_; + return compareValues(title, o.title, true) && compareValues(description, o.description, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(title, description, option + ); + } + + public String fhirType() { + return "PlanDefinition.actor"; + + } + + } + + @Block() + public static class PlanDefinitionActorOptionComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The type of participant in the action. + */ + @Child(name = "type", type = {CodeType.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="careteam | device | group | healthcareservice | location | organization | patient | practitioner | practitionerrole | relatedperson", formalDefinition="The type of participant in the action." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-participant-type") + protected Enumeration type; + + /** + * The type of participant in the action. + */ + @Child(name = "typeReference", type = {CareTeam.class, Device.class, Group.class, HealthcareService.class, Location.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Who or what can participate", formalDefinition="The type of participant in the action." ) + protected Reference typeReference; + + /** + * The role the participant should play in performing the described action. + */ + @Child(name = "role", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="E.g. Nurse, Surgeon, Parent", formalDefinition="The role the participant should play in performing the described action." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/action-participant-role") + protected CodeableConcept role; + + private static final long serialVersionUID = -1613816809L; + + /** + * Constructor + */ + public PlanDefinitionActorOptionComponent() { + super(); + } + + /** + * @return {@link #type} (The type of participant in the action.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value + */ + public Enumeration getTypeElement() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActorOptionComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new Enumeration(new ActionParticipantTypeEnumFactory()); // bb + return this.type; + } + + public boolean hasTypeElement() { + return this.type != null && !this.type.isEmpty(); + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (The type of participant in the action.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value + */ + public PlanDefinitionActorOptionComponent setTypeElement(Enumeration value) { + this.type = value; + return this; + } + + /** + * @return The type of participant in the action. + */ + public ActionParticipantType getType() { + return this.type == null ? null : this.type.getValue(); + } + + /** + * @param value The type of participant in the action. + */ + public PlanDefinitionActorOptionComponent setType(ActionParticipantType value) { + if (value == null) + this.type = null; + else { + if (this.type == null) + this.type = new Enumeration(new ActionParticipantTypeEnumFactory()); + this.type.setValue(value); + } + return this; + } + + /** + * @return {@link #typeReference} (The type of participant in the action.) + */ + public Reference getTypeReference() { + if (this.typeReference == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActorOptionComponent.typeReference"); + else if (Configuration.doAutoCreate()) + this.typeReference = new Reference(); // cc + return this.typeReference; + } + + public boolean hasTypeReference() { + return this.typeReference != null && !this.typeReference.isEmpty(); + } + + /** + * @param value {@link #typeReference} (The type of participant in the action.) + */ + public PlanDefinitionActorOptionComponent setTypeReference(Reference value) { + this.typeReference = value; + return this; + } + + /** + * @return {@link #role} (The role the participant should play in performing the described action.) + */ + public CodeableConcept getRole() { + if (this.role == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActorOptionComponent.role"); + else if (Configuration.doAutoCreate()) + this.role = new CodeableConcept(); // cc + return this.role; + } + + public boolean hasRole() { + return this.role != null && !this.role.isEmpty(); + } + + /** + * @param value {@link #role} (The role the participant should play in performing the described action.) + */ + public PlanDefinitionActorOptionComponent setRole(CodeableConcept value) { + this.role = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("type", "code", "The type of participant in the action.", 0, 1, type)); + children.add(new Property("typeReference", "Reference(CareTeam|Device|Group|HealthcareService|Location|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson)", "The type of participant in the action.", 0, 1, typeReference)); + children.add(new Property("role", "CodeableConcept", "The role the participant should play in performing the described action.", 0, 1, role)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3575610: /*type*/ return new Property("type", "code", "The type of participant in the action.", 0, 1, type); + case 2074825009: /*typeReference*/ return new Property("typeReference", "Reference(CareTeam|Device|Group|HealthcareService|Location|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson)", "The type of participant in the action.", 0, 1, typeReference); + case 3506294: /*role*/ return new Property("role", "CodeableConcept", "The role the participant should play in performing the described action.", 0, 1, role); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration + case 2074825009: /*typeReference*/ return this.typeReference == null ? new Base[0] : new Base[] {this.typeReference}; // Reference + case 3506294: /*role*/ return this.role == null ? new Base[0] : new Base[] {this.role}; // CodeableConcept + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3575610: // type + value = new ActionParticipantTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + return value; + case 2074825009: // typeReference + this.typeReference = TypeConvertor.castToReference(value); // Reference + return value; + case 3506294: // role + this.role = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new ActionParticipantTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("typeReference")) { + this.typeReference = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("role")) { + this.role = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: return getTypeElement(); + case 2074825009: return getTypeReference(); + case 3506294: return getRole(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return new String[] {"code"}; + case 2074825009: /*typeReference*/ return new String[] {"Reference"}; + case 3506294: /*role*/ return new String[] {"CodeableConcept"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("type")) { + throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.actor.option.type"); + } + else if (name.equals("typeReference")) { + this.typeReference = new Reference(); + return this.typeReference; + } + else if (name.equals("role")) { + this.role = new CodeableConcept(); + return this.role; + } + else + return super.addChild(name); + } + + public PlanDefinitionActorOptionComponent copy() { + PlanDefinitionActorOptionComponent dst = new PlanDefinitionActorOptionComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(PlanDefinitionActorOptionComponent dst) { + super.copyValues(dst); + dst.type = type == null ? null : type.copy(); + dst.typeReference = typeReference == null ? null : typeReference.copy(); + dst.role = role == null ? null : role.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof PlanDefinitionActorOptionComponent)) + return false; + PlanDefinitionActorOptionComponent o = (PlanDefinitionActorOptionComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(typeReference, o.typeReference, true) && compareDeep(role, o.role, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof PlanDefinitionActorOptionComponent)) + return false; + PlanDefinitionActorOptionComponent o = (PlanDefinitionActorOptionComponent) other_; + return compareValues(type, o.type, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, typeReference, role + ); + } + + public String fhirType() { + return "PlanDefinition.actor.option"; + + } + } @Block() @@ -910,10 +1524,10 @@ public class PlanDefinition extends MetadataResource { protected StringType prefix; /** - * The title of the action displayed to a user. + * The textual description of the action displayed to a user. For example, when the action is a test to be performed, the title would be the title of the test such as Assay by HPLC. */ @Child(name = "title", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="User-visible title", formalDefinition="The title of the action displayed to a user." ) + @Description(shortDefinition="User-visible title", formalDefinition="The textual description of the action displayed to a user. For example, when the action is a test to be performed, the title would be the title of the test such as Assay by HPLC." ) protected StringType title; /** @@ -939,17 +1553,19 @@ public class PlanDefinition extends MetadataResource { protected Enumeration priority; /** - * A code that provides meaning for the action or action group. For example, a section may have a LOINC code for the section of a documentation template. + * A code that provides a meaning, grouping, or classification for the action or action group. For example, a section may have a LOINC code for the section of a documentation template. In pharmaceutical quality, an action (Test) such as pH could be classified as a physical property. */ - @Child(name = "code", type = {CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Code representing the meaning of the action or sub-actions", formalDefinition="A code that provides meaning for the action or action group. For example, a section may have a LOINC code for the section of a documentation template." ) - protected List code; + @Child(name = "code", type = {CodeableConcept.class}, order=6, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Code representing the meaning of the action or sub-actions", formalDefinition="A code that provides a meaning, grouping, or classification for the action or action group. For example, a section may have a LOINC code for the section of a documentation template. In pharmaceutical quality, an action (Test) such as pH could be classified as a physical property." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-code") + protected CodeableConcept code; /** * A description of why this action is necessary or appropriate. */ @Child(name = "reason", type = {CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Why the action should be performed", formalDefinition="A description of why this action is necessary or appropriate." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-reason-code") protected List reason; /** @@ -960,17 +1576,17 @@ public class PlanDefinition extends MetadataResource { protected List documentation; /** - * Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition. + * Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition. In pharmaceutical quality, a goal represents acceptance criteria (Goal) for a given action (Test), so the goalId would be the unique id of a defined goal element establishing the acceptance criteria for the action. */ @Child(name = "goalId", type = {IdType.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="What goals this action supports", formalDefinition="Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition." ) + @Description(shortDefinition="What goals this action supports", formalDefinition="Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition. In pharmaceutical quality, a goal represents acceptance criteria (Goal) for a given action (Test), so the goalId would be the unique id of a defined goal element establishing the acceptance criteria for the action." ) protected List goalId; /** - * A code or group definition that describes the intended subject of the action and its children, if any. + * A code, group definition, or canonical reference that describes the intended subject of the action and its children, if any. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource. */ - @Child(name = "subject", type = {CodeableConcept.class, Group.class}, order=10, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Type of individual the action is focused on", formalDefinition="A code or group definition that describes the intended subject of the action and its children, if any." ) + @Child(name = "subject", type = {CodeableConcept.class, Group.class, CanonicalType.class}, order=10, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Type of individual the action is focused on", formalDefinition="A code, group definition, or canonical reference that describes the intended subject of the action and its children, if any. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subject-type") protected DataType subject; @@ -991,16 +1607,16 @@ public class PlanDefinition extends MetadataResource { /** * Defines input data requirements for the action. */ - @Child(name = "input", type = {DataRequirement.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "input", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Input data requirements", formalDefinition="Defines input data requirements for the action." ) - protected List input; + protected List input; /** * Defines the outputs of the action, if any. */ - @Child(name = "output", type = {DataRequirement.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "output", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Output data definition", formalDefinition="Defines the outputs of the action, if any." ) - protected List output; + protected List output; /** * A relationship to another action such as "before" or "30-60 minutes after start of". @@ -1012,21 +1628,28 @@ public class PlanDefinition extends MetadataResource { /** * An optional value describing when the action should be performed. */ - @Child(name = "timing", type = {DateTimeType.class, Age.class, Period.class, Duration.class, Range.class, Timing.class}, order=16, min=0, max=1, modifier=false, summary=false) + @Child(name = "timing", type = {Age.class, Duration.class, Range.class, Timing.class}, order=16, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="When the action should take place", formalDefinition="An optional value describing when the action should be performed." ) protected DataType timing; + /** + * Identifies the facility where the action will occur; e.g. home, hospital, specific clinic, etc. + */ + @Child(name = "location", type = {CodeableReference.class}, order=17, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Where it should happen", formalDefinition="Identifies the facility where the action will occur; e.g. home, hospital, specific clinic, etc." ) + protected CodeableReference location; + /** * Indicates who should participate in performing the action described. */ - @Child(name = "participant", type = {}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "participant", type = {}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Who should participate in the action", formalDefinition="Indicates who should participate in performing the action described." ) protected List participant; /** * The type of action to perform (create, update, remove). */ - @Child(name = "type", type = {CodeableConcept.class}, order=18, min=0, max=1, modifier=false, summary=false) + @Child(name = "type", type = {CodeableConcept.class}, order=19, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="create | update | remove | fire-event", formalDefinition="The type of action to perform (create, update, remove)." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-type") protected CodeableConcept type; @@ -1034,7 +1657,7 @@ public class PlanDefinition extends MetadataResource { /** * Defines the grouping behavior for the action and its children. */ - @Child(name = "groupingBehavior", type = {CodeType.class}, order=19, min=0, max=1, modifier=false, summary=false) + @Child(name = "groupingBehavior", type = {CodeType.class}, order=20, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="visual-group | logical-group | sentence-group", formalDefinition="Defines the grouping behavior for the action and its children." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-grouping-behavior") protected Enumeration groupingBehavior; @@ -1042,7 +1665,7 @@ public class PlanDefinition extends MetadataResource { /** * Defines the selection behavior for the action and its children. */ - @Child(name = "selectionBehavior", type = {CodeType.class}, order=20, min=0, max=1, modifier=false, summary=false) + @Child(name = "selectionBehavior", type = {CodeType.class}, order=21, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="any | all | all-or-none | exactly-one | at-most-one | one-or-more", formalDefinition="Defines the selection behavior for the action and its children." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-selection-behavior") protected Enumeration selectionBehavior; @@ -1050,7 +1673,7 @@ public class PlanDefinition extends MetadataResource { /** * Defines the required behavior for the action. */ - @Child(name = "requiredBehavior", type = {CodeType.class}, order=21, min=0, max=1, modifier=false, summary=false) + @Child(name = "requiredBehavior", type = {CodeType.class}, order=22, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="must | could | must-unless-documented", formalDefinition="Defines the required behavior for the action." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-required-behavior") protected Enumeration requiredBehavior; @@ -1058,7 +1681,7 @@ public class PlanDefinition extends MetadataResource { /** * Defines whether the action should usually be preselected. */ - @Child(name = "precheckBehavior", type = {CodeType.class}, order=22, min=0, max=1, modifier=false, summary=false) + @Child(name = "precheckBehavior", type = {CodeType.class}, order=23, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="yes | no", formalDefinition="Defines whether the action should usually be preselected." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-precheck-behavior") protected Enumeration precheckBehavior; @@ -1066,7 +1689,7 @@ public class PlanDefinition extends MetadataResource { /** * Defines whether the action can be selected multiple times. */ - @Child(name = "cardinalityBehavior", type = {CodeType.class}, order=23, min=0, max=1, modifier=false, summary=false) + @Child(name = "cardinalityBehavior", type = {CodeType.class}, order=24, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="single | multiple", formalDefinition="Defines whether the action can be selected multiple times." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-cardinality-behavior") protected Enumeration cardinalityBehavior; @@ -1074,32 +1697,32 @@ public class PlanDefinition extends MetadataResource { /** * A reference to an ActivityDefinition that describes the action to be taken in detail, or a PlanDefinition that describes a series of actions to be taken. */ - @Child(name = "definition", type = {CanonicalType.class, UriType.class}, order=24, min=0, max=1, modifier=false, summary=false) + @Child(name = "definition", type = {CanonicalType.class, UriType.class}, order=25, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Description of the activity to be performed", formalDefinition="A reference to an ActivityDefinition that describes the action to be taken in detail, or a PlanDefinition that describes a series of actions to be taken." ) protected DataType definition; /** * A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input. */ - @Child(name = "transform", type = {CanonicalType.class}, order=25, min=0, max=1, modifier=false, summary=false) + @Child(name = "transform", type = {CanonicalType.class}, order=26, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Transform to apply the template", formalDefinition="A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input." ) protected CanonicalType transform; /** * Customizations that should be applied to the statically defined resource. For example, if the dosage of a medication must be computed based on the patient's weight, a customization would be used to specify an expression that calculated the weight, and the path on the resource that would contain the result. */ - @Child(name = "dynamicValue", type = {}, order=26, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "dynamicValue", type = {}, order=27, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Dynamic aspects of the definition", formalDefinition="Customizations that should be applied to the statically defined resource. For example, if the dosage of a medication must be computed based on the patient's weight, a customization would be used to specify an expression that calculated the weight, and the path on the resource that would contain the result." ) protected List dynamicValue; /** * Sub actions that are contained within the action. The behavior of this action determines the functionality of the sub-actions. For example, a selection behavior of at-most-one indicates that of the sub-actions, at most one may be chosen as part of realizing the action definition. */ - @Child(name = "action", type = {PlanDefinitionActionComponent.class}, order=27, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "action", type = {PlanDefinitionActionComponent.class}, order=28, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="A sub-action", formalDefinition="Sub actions that are contained within the action. The behavior of this action determines the functionality of the sub-actions. For example, a selection behavior of at-most-one indicates that of the sub-actions, at most one may be chosen as part of realizing the action definition." ) protected List action; - private static final long serialVersionUID = -1494545766L; + private static final long serialVersionUID = 979691800L; /** * Constructor @@ -1158,7 +1781,7 @@ public class PlanDefinition extends MetadataResource { } /** - * @return {@link #title} (The title of the action displayed to a user.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + * @return {@link #title} (The textual description of the action displayed to a user. For example, when the action is a test to be performed, the title would be the title of the test such as Assay by HPLC.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value */ public StringType getTitleElement() { if (this.title == null) @@ -1178,7 +1801,7 @@ public class PlanDefinition extends MetadataResource { } /** - * @param value {@link #title} (The title of the action displayed to a user.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + * @param value {@link #title} (The textual description of the action displayed to a user. For example, when the action is a test to be performed, the title would be the title of the test such as Assay by HPLC.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value */ public PlanDefinitionActionComponent setTitleElement(StringType value) { this.title = value; @@ -1186,14 +1809,14 @@ public class PlanDefinition extends MetadataResource { } /** - * @return The title of the action displayed to a user. + * @return The textual description of the action displayed to a user. For example, when the action is a test to be performed, the title would be the title of the test such as Assay by HPLC. */ public String getTitle() { return this.title == null ? null : this.title.getValue(); } /** - * @param value The title of the action displayed to a user. + * @param value The textual description of the action displayed to a user. For example, when the action is a test to be performed, the title would be the title of the test such as Assay by HPLC. */ public PlanDefinitionActionComponent setTitle(String value) { if (Utilities.noString(value)) @@ -1354,56 +1977,27 @@ public class PlanDefinition extends MetadataResource { } /** - * @return {@link #code} (A code that provides meaning for the action or action group. For example, a section may have a LOINC code for the section of a documentation template.) + * @return {@link #code} (A code that provides a meaning, grouping, or classification for the action or action group. For example, a section may have a LOINC code for the section of a documentation template. In pharmaceutical quality, an action (Test) such as pH could be classified as a physical property.) */ - public List getCode() { + public CodeableConcept getCode() { if (this.code == null) - this.code = new ArrayList(); + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActionComponent.code"); + else if (Configuration.doAutoCreate()) + this.code = new CodeableConcept(); // cc return this.code; } - /** - * @return Returns a reference to this for easy method chaining - */ - public PlanDefinitionActionComponent setCode(List theCode) { - this.code = theCode; - return this; - } - public boolean hasCode() { - if (this.code == null) - return false; - for (CodeableConcept item : this.code) - if (!item.isEmpty()) - return true; - return false; - } - - public CodeableConcept addCode() { //3 - CodeableConcept t = new CodeableConcept(); - if (this.code == null) - this.code = new ArrayList(); - this.code.add(t); - return t; - } - - public PlanDefinitionActionComponent addCode(CodeableConcept t) { //3 - if (t == null) - return this; - if (this.code == null) - this.code = new ArrayList(); - this.code.add(t); - return this; + return this.code != null && !this.code.isEmpty(); } /** - * @return The first repetition of repeating field {@link #code}, creating it if it does not already exist {3} + * @param value {@link #code} (A code that provides a meaning, grouping, or classification for the action or action group. For example, a section may have a LOINC code for the section of a documentation template. In pharmaceutical quality, an action (Test) such as pH could be classified as a physical property.) */ - public CodeableConcept getCodeFirstRep() { - if (getCode().isEmpty()) { - addCode(); - } - return getCode().get(0); + public PlanDefinitionActionComponent setCode(CodeableConcept value) { + this.code = value; + return this; } /** @@ -1513,7 +2107,7 @@ public class PlanDefinition extends MetadataResource { } /** - * @return {@link #goalId} (Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition.) + * @return {@link #goalId} (Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition. In pharmaceutical quality, a goal represents acceptance criteria (Goal) for a given action (Test), so the goalId would be the unique id of a defined goal element establishing the acceptance criteria for the action.) */ public List getGoalId() { if (this.goalId == null) @@ -1539,7 +2133,7 @@ public class PlanDefinition extends MetadataResource { } /** - * @return {@link #goalId} (Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition.) + * @return {@link #goalId} (Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition. In pharmaceutical quality, a goal represents acceptance criteria (Goal) for a given action (Test), so the goalId would be the unique id of a defined goal element establishing the acceptance criteria for the action.) */ public IdType addGoalIdElement() {//2 IdType t = new IdType(); @@ -1550,7 +2144,7 @@ public class PlanDefinition extends MetadataResource { } /** - * @param value {@link #goalId} (Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition.) + * @param value {@link #goalId} (Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition. In pharmaceutical quality, a goal represents acceptance criteria (Goal) for a given action (Test), so the goalId would be the unique id of a defined goal element establishing the acceptance criteria for the action.) */ public PlanDefinitionActionComponent addGoalId(String value) { //1 IdType t = new IdType(); @@ -1562,7 +2156,7 @@ public class PlanDefinition extends MetadataResource { } /** - * @param value {@link #goalId} (Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition.) + * @param value {@link #goalId} (Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition. In pharmaceutical quality, a goal represents acceptance criteria (Goal) for a given action (Test), so the goalId would be the unique id of a defined goal element establishing the acceptance criteria for the action.) */ public boolean hasGoalId(String value) { if (this.goalId == null) @@ -1574,14 +2168,14 @@ public class PlanDefinition extends MetadataResource { } /** - * @return {@link #subject} (A code or group definition that describes the intended subject of the action and its children, if any.) + * @return {@link #subject} (A code, group definition, or canonical reference that describes the intended subject of the action and its children, if any. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.) */ public DataType getSubject() { return this.subject; } /** - * @return {@link #subject} (A code or group definition that describes the intended subject of the action and its children, if any.) + * @return {@link #subject} (A code, group definition, or canonical reference that describes the intended subject of the action and its children, if any. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.) */ public CodeableConcept getSubjectCodeableConcept() throws FHIRException { if (this.subject == null) @@ -1596,7 +2190,7 @@ public class PlanDefinition extends MetadataResource { } /** - * @return {@link #subject} (A code or group definition that describes the intended subject of the action and its children, if any.) + * @return {@link #subject} (A code, group definition, or canonical reference that describes the intended subject of the action and its children, if any. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.) */ public Reference getSubjectReference() throws FHIRException { if (this.subject == null) @@ -1610,15 +2204,30 @@ public class PlanDefinition extends MetadataResource { return this != null && this.subject instanceof Reference; } + /** + * @return {@link #subject} (A code, group definition, or canonical reference that describes the intended subject of the action and its children, if any. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.) + */ + public CanonicalType getSubjectCanonicalType() throws FHIRException { + if (this.subject == null) + this.subject = new CanonicalType(); + if (!(this.subject instanceof CanonicalType)) + throw new FHIRException("Type mismatch: the type CanonicalType was expected, but "+this.subject.getClass().getName()+" was encountered"); + return (CanonicalType) this.subject; + } + + public boolean hasSubjectCanonicalType() { + return this != null && this.subject instanceof CanonicalType; + } + public boolean hasSubject() { return this.subject != null && !this.subject.isEmpty(); } /** - * @param value {@link #subject} (A code or group definition that describes the intended subject of the action and its children, if any.) + * @param value {@link #subject} (A code, group definition, or canonical reference that describes the intended subject of the action and its children, if any. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.) */ public PlanDefinitionActionComponent setSubject(DataType value) { - if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) + if (value != null && !(value instanceof CodeableConcept || value instanceof Reference || value instanceof CanonicalType)) throw new Error("Not the right type for PlanDefinition.action.subject[x]: "+value.fhirType()); this.subject = value; return this; @@ -1733,16 +2342,16 @@ public class PlanDefinition extends MetadataResource { /** * @return {@link #input} (Defines input data requirements for the action.) */ - public List getInput() { + public List getInput() { if (this.input == null) - this.input = new ArrayList(); + this.input = new ArrayList(); return this.input; } /** * @return Returns a reference to this for easy method chaining */ - public PlanDefinitionActionComponent setInput(List theInput) { + public PlanDefinitionActionComponent setInput(List theInput) { this.input = theInput; return this; } @@ -1750,25 +2359,25 @@ public class PlanDefinition extends MetadataResource { public boolean hasInput() { if (this.input == null) return false; - for (DataRequirement item : this.input) + for (PlanDefinitionActionInputComponent item : this.input) if (!item.isEmpty()) return true; return false; } - public DataRequirement addInput() { //3 - DataRequirement t = new DataRequirement(); + public PlanDefinitionActionInputComponent addInput() { //3 + PlanDefinitionActionInputComponent t = new PlanDefinitionActionInputComponent(); if (this.input == null) - this.input = new ArrayList(); + this.input = new ArrayList(); this.input.add(t); return t; } - public PlanDefinitionActionComponent addInput(DataRequirement t) { //3 + public PlanDefinitionActionComponent addInput(PlanDefinitionActionInputComponent t) { //3 if (t == null) return this; if (this.input == null) - this.input = new ArrayList(); + this.input = new ArrayList(); this.input.add(t); return this; } @@ -1776,7 +2385,7 @@ public class PlanDefinition extends MetadataResource { /** * @return The first repetition of repeating field {@link #input}, creating it if it does not already exist {3} */ - public DataRequirement getInputFirstRep() { + public PlanDefinitionActionInputComponent getInputFirstRep() { if (getInput().isEmpty()) { addInput(); } @@ -1786,16 +2395,16 @@ public class PlanDefinition extends MetadataResource { /** * @return {@link #output} (Defines the outputs of the action, if any.) */ - public List getOutput() { + public List getOutput() { if (this.output == null) - this.output = new ArrayList(); + this.output = new ArrayList(); return this.output; } /** * @return Returns a reference to this for easy method chaining */ - public PlanDefinitionActionComponent setOutput(List theOutput) { + public PlanDefinitionActionComponent setOutput(List theOutput) { this.output = theOutput; return this; } @@ -1803,25 +2412,25 @@ public class PlanDefinition extends MetadataResource { public boolean hasOutput() { if (this.output == null) return false; - for (DataRequirement item : this.output) + for (PlanDefinitionActionOutputComponent item : this.output) if (!item.isEmpty()) return true; return false; } - public DataRequirement addOutput() { //3 - DataRequirement t = new DataRequirement(); + public PlanDefinitionActionOutputComponent addOutput() { //3 + PlanDefinitionActionOutputComponent t = new PlanDefinitionActionOutputComponent(); if (this.output == null) - this.output = new ArrayList(); + this.output = new ArrayList(); this.output.add(t); return t; } - public PlanDefinitionActionComponent addOutput(DataRequirement t) { //3 + public PlanDefinitionActionComponent addOutput(PlanDefinitionActionOutputComponent t) { //3 if (t == null) return this; if (this.output == null) - this.output = new ArrayList(); + this.output = new ArrayList(); this.output.add(t); return this; } @@ -1829,7 +2438,7 @@ public class PlanDefinition extends MetadataResource { /** * @return The first repetition of repeating field {@link #output}, creating it if it does not already exist {3} */ - public DataRequirement getOutputFirstRep() { + public PlanDefinitionActionOutputComponent getOutputFirstRep() { if (getOutput().isEmpty()) { addOutput(); } @@ -1896,21 +2505,6 @@ public class PlanDefinition extends MetadataResource { return this.timing; } - /** - * @return {@link #timing} (An optional value describing when the action should be performed.) - */ - public DateTimeType getTimingDateTimeType() throws FHIRException { - if (this.timing == null) - this.timing = new DateTimeType(); - if (!(this.timing instanceof DateTimeType)) - throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.timing.getClass().getName()+" was encountered"); - return (DateTimeType) this.timing; - } - - public boolean hasTimingDateTimeType() { - return this != null && this.timing instanceof DateTimeType; - } - /** * @return {@link #timing} (An optional value describing when the action should be performed.) */ @@ -1926,21 +2520,6 @@ public class PlanDefinition extends MetadataResource { return this != null && this.timing instanceof Age; } - /** - * @return {@link #timing} (An optional value describing when the action should be performed.) - */ - public Period getTimingPeriod() throws FHIRException { - if (this.timing == null) - this.timing = new Period(); - if (!(this.timing instanceof Period)) - throw new FHIRException("Type mismatch: the type Period was expected, but "+this.timing.getClass().getName()+" was encountered"); - return (Period) this.timing; - } - - public boolean hasTimingPeriod() { - return this != null && this.timing instanceof Period; - } - /** * @return {@link #timing} (An optional value describing when the action should be performed.) */ @@ -1994,12 +2573,36 @@ public class PlanDefinition extends MetadataResource { * @param value {@link #timing} (An optional value describing when the action should be performed.) */ public PlanDefinitionActionComponent setTiming(DataType value) { - if (value != null && !(value instanceof DateTimeType || value instanceof Age || value instanceof Period || value instanceof Duration || value instanceof Range || value instanceof Timing)) + if (value != null && !(value instanceof Age || value instanceof Duration || value instanceof Range || value instanceof Timing)) throw new Error("Not the right type for PlanDefinition.action.timing[x]: "+value.fhirType()); this.timing = value; return this; } + /** + * @return {@link #location} (Identifies the facility where the action will occur; e.g. home, hospital, specific clinic, etc.) + */ + public CodeableReference getLocation() { + if (this.location == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActionComponent.location"); + else if (Configuration.doAutoCreate()) + this.location = new CodeableReference(); // cc + return this.location; + } + + public boolean hasLocation() { + return this.location != null && !this.location.isEmpty(); + } + + /** + * @param value {@link #location} (Identifies the facility where the action will occur; e.g. home, hospital, specific clinic, etc.) + */ + public PlanDefinitionActionComponent setLocation(CodeableReference value) { + this.location = value; + return this; + } + /** * @return {@link #participant} (Indicates who should participate in performing the action described.) */ @@ -2531,21 +3134,22 @@ public class PlanDefinition extends MetadataResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("prefix", "string", "A user-visible prefix for the action.", 0, 1, prefix)); - children.add(new Property("title", "string", "The title of the action displayed to a user.", 0, 1, title)); + children.add(new Property("title", "string", "The textual description of the action displayed to a user. For example, when the action is a test to be performed, the title would be the title of the test such as Assay by HPLC.", 0, 1, title)); children.add(new Property("description", "string", "A brief description of the action used to provide a summary to display to the user.", 0, 1, description)); children.add(new Property("textEquivalent", "string", "A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically.", 0, 1, textEquivalent)); children.add(new Property("priority", "code", "Indicates how quickly the action should be addressed with respect to other actions.", 0, 1, priority)); - children.add(new Property("code", "CodeableConcept", "A code that provides meaning for the action or action group. For example, a section may have a LOINC code for the section of a documentation template.", 0, java.lang.Integer.MAX_VALUE, code)); + children.add(new Property("code", "CodeableConcept", "A code that provides a meaning, grouping, or classification for the action or action group. For example, a section may have a LOINC code for the section of a documentation template. In pharmaceutical quality, an action (Test) such as pH could be classified as a physical property.", 0, 1, code)); children.add(new Property("reason", "CodeableConcept", "A description of why this action is necessary or appropriate.", 0, java.lang.Integer.MAX_VALUE, reason)); children.add(new Property("documentation", "RelatedArtifact", "Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources.", 0, java.lang.Integer.MAX_VALUE, documentation)); - children.add(new Property("goalId", "id", "Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition.", 0, java.lang.Integer.MAX_VALUE, goalId)); - children.add(new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the action and its children, if any.", 0, 1, subject)); + children.add(new Property("goalId", "id", "Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition. In pharmaceutical quality, a goal represents acceptance criteria (Goal) for a given action (Test), so the goalId would be the unique id of a defined goal element establishing the acceptance criteria for the action.", 0, java.lang.Integer.MAX_VALUE, goalId)); + children.add(new Property("subject[x]", "CodeableConcept|Reference(Group)|canonical", "A code, group definition, or canonical reference that describes the intended subject of the action and its children, if any. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject)); children.add(new Property("trigger", "TriggerDefinition", "A description of when the action should be triggered.", 0, java.lang.Integer.MAX_VALUE, trigger)); children.add(new Property("condition", "", "An expression that describes applicability criteria or start/stop conditions for the action.", 0, java.lang.Integer.MAX_VALUE, condition)); - children.add(new Property("input", "DataRequirement", "Defines input data requirements for the action.", 0, java.lang.Integer.MAX_VALUE, input)); - children.add(new Property("output", "DataRequirement", "Defines the outputs of the action, if any.", 0, java.lang.Integer.MAX_VALUE, output)); + children.add(new Property("input", "", "Defines input data requirements for the action.", 0, java.lang.Integer.MAX_VALUE, input)); + children.add(new Property("output", "", "Defines the outputs of the action, if any.", 0, java.lang.Integer.MAX_VALUE, output)); children.add(new Property("relatedAction", "", "A relationship to another action such as \"before\" or \"30-60 minutes after start of\".", 0, java.lang.Integer.MAX_VALUE, relatedAction)); - children.add(new Property("timing[x]", "dateTime|Age|Period|Duration|Range|Timing", "An optional value describing when the action should be performed.", 0, 1, timing)); + children.add(new Property("timing[x]", "Age|Duration|Range|Timing", "An optional value describing when the action should be performed.", 0, 1, timing)); + children.add(new Property("location", "CodeableReference(Location)", "Identifies the facility where the action will occur; e.g. home, hospital, specific clinic, etc.", 0, 1, location)); children.add(new Property("participant", "", "Indicates who should participate in performing the action described.", 0, java.lang.Integer.MAX_VALUE, participant)); children.add(new Property("type", "CodeableConcept", "The type of action to perform (create, update, remove).", 0, 1, type)); children.add(new Property("groupingBehavior", "code", "Defines the grouping behavior for the action and its children.", 0, 1, groupingBehavior)); @@ -2563,31 +3167,31 @@ public class PlanDefinition extends MetadataResource { public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case -980110702: /*prefix*/ return new Property("prefix", "string", "A user-visible prefix for the action.", 0, 1, prefix); - case 110371416: /*title*/ return new Property("title", "string", "The title of the action displayed to a user.", 0, 1, title); + case 110371416: /*title*/ return new Property("title", "string", "The textual description of the action displayed to a user. For example, when the action is a test to be performed, the title would be the title of the test such as Assay by HPLC.", 0, 1, title); case -1724546052: /*description*/ return new Property("description", "string", "A brief description of the action used to provide a summary to display to the user.", 0, 1, description); case -900391049: /*textEquivalent*/ return new Property("textEquivalent", "string", "A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically.", 0, 1, textEquivalent); case -1165461084: /*priority*/ return new Property("priority", "code", "Indicates how quickly the action should be addressed with respect to other actions.", 0, 1, priority); - case 3059181: /*code*/ return new Property("code", "CodeableConcept", "A code that provides meaning for the action or action group. For example, a section may have a LOINC code for the section of a documentation template.", 0, java.lang.Integer.MAX_VALUE, code); + case 3059181: /*code*/ return new Property("code", "CodeableConcept", "A code that provides a meaning, grouping, or classification for the action or action group. For example, a section may have a LOINC code for the section of a documentation template. In pharmaceutical quality, an action (Test) such as pH could be classified as a physical property.", 0, 1, code); case -934964668: /*reason*/ return new Property("reason", "CodeableConcept", "A description of why this action is necessary or appropriate.", 0, java.lang.Integer.MAX_VALUE, reason); case 1587405498: /*documentation*/ return new Property("documentation", "RelatedArtifact", "Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources.", 0, java.lang.Integer.MAX_VALUE, documentation); - case -1240658034: /*goalId*/ return new Property("goalId", "id", "Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition.", 0, java.lang.Integer.MAX_VALUE, goalId); - case -573640748: /*subject[x]*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the action and its children, if any.", 0, 1, subject); - case -1867885268: /*subject*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the action and its children, if any.", 0, 1, subject); - case -1257122603: /*subjectCodeableConcept*/ return new Property("subject[x]", "CodeableConcept", "A code or group definition that describes the intended subject of the action and its children, if any.", 0, 1, subject); - case 772938623: /*subjectReference*/ return new Property("subject[x]", "Reference(Group)", "A code or group definition that describes the intended subject of the action and its children, if any.", 0, 1, subject); + case -1240658034: /*goalId*/ return new Property("goalId", "id", "Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition. In pharmaceutical quality, a goal represents acceptance criteria (Goal) for a given action (Test), so the goalId would be the unique id of a defined goal element establishing the acceptance criteria for the action.", 0, java.lang.Integer.MAX_VALUE, goalId); + case -573640748: /*subject[x]*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)|canonical", "A code, group definition, or canonical reference that describes the intended subject of the action and its children, if any. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject); + case -1867885268: /*subject*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)|canonical", "A code, group definition, or canonical reference that describes the intended subject of the action and its children, if any. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject); + case -1257122603: /*subjectCodeableConcept*/ return new Property("subject[x]", "CodeableConcept", "A code, group definition, or canonical reference that describes the intended subject of the action and its children, if any. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject); + case 772938623: /*subjectReference*/ return new Property("subject[x]", "Reference(Group)", "A code, group definition, or canonical reference that describes the intended subject of the action and its children, if any. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject); + case -1768521432: /*subjectCanonical*/ return new Property("subject[x]", "canonical", "A code, group definition, or canonical reference that describes the intended subject of the action and its children, if any. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject); case -1059891784: /*trigger*/ return new Property("trigger", "TriggerDefinition", "A description of when the action should be triggered.", 0, java.lang.Integer.MAX_VALUE, trigger); case -861311717: /*condition*/ return new Property("condition", "", "An expression that describes applicability criteria or start/stop conditions for the action.", 0, java.lang.Integer.MAX_VALUE, condition); - case 100358090: /*input*/ return new Property("input", "DataRequirement", "Defines input data requirements for the action.", 0, java.lang.Integer.MAX_VALUE, input); - case -1005512447: /*output*/ return new Property("output", "DataRequirement", "Defines the outputs of the action, if any.", 0, java.lang.Integer.MAX_VALUE, output); + case 100358090: /*input*/ return new Property("input", "", "Defines input data requirements for the action.", 0, java.lang.Integer.MAX_VALUE, input); + case -1005512447: /*output*/ return new Property("output", "", "Defines the outputs of the action, if any.", 0, java.lang.Integer.MAX_VALUE, output); case -384107967: /*relatedAction*/ return new Property("relatedAction", "", "A relationship to another action such as \"before\" or \"30-60 minutes after start of\".", 0, java.lang.Integer.MAX_VALUE, relatedAction); - case 164632566: /*timing[x]*/ return new Property("timing[x]", "dateTime|Age|Period|Duration|Range|Timing", "An optional value describing when the action should be performed.", 0, 1, timing); - case -873664438: /*timing*/ return new Property("timing[x]", "dateTime|Age|Period|Duration|Range|Timing", "An optional value describing when the action should be performed.", 0, 1, timing); - case -1837458939: /*timingDateTime*/ return new Property("timing[x]", "dateTime", "An optional value describing when the action should be performed.", 0, 1, timing); + case 164632566: /*timing[x]*/ return new Property("timing[x]", "Age|Duration|Range|Timing", "An optional value describing when the action should be performed.", 0, 1, timing); + case -873664438: /*timing*/ return new Property("timing[x]", "Age|Duration|Range|Timing", "An optional value describing when the action should be performed.", 0, 1, timing); case 164607061: /*timingAge*/ return new Property("timing[x]", "Age", "An optional value describing when the action should be performed.", 0, 1, timing); - case -615615829: /*timingPeriod*/ return new Property("timing[x]", "Period", "An optional value describing when the action should be performed.", 0, 1, timing); case -1327253506: /*timingDuration*/ return new Property("timing[x]", "Duration", "An optional value describing when the action should be performed.", 0, 1, timing); case -710871277: /*timingRange*/ return new Property("timing[x]", "Range", "An optional value describing when the action should be performed.", 0, 1, timing); case -497554124: /*timingTiming*/ return new Property("timing[x]", "Timing", "An optional value describing when the action should be performed.", 0, 1, timing); + case 1901043637: /*location*/ return new Property("location", "CodeableReference(Location)", "Identifies the facility where the action will occur; e.g. home, hospital, specific clinic, etc.", 0, 1, location); case 767422259: /*participant*/ return new Property("participant", "", "Indicates who should participate in performing the action described.", 0, java.lang.Integer.MAX_VALUE, participant); case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The type of action to perform (create, update, remove).", 0, 1, type); case 586678389: /*groupingBehavior*/ return new Property("groupingBehavior", "code", "Defines the grouping behavior for the action and its children.", 0, 1, groupingBehavior); @@ -2615,17 +3219,18 @@ public class PlanDefinition extends MetadataResource { case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType case -900391049: /*textEquivalent*/ return this.textEquivalent == null ? new Base[0] : new Base[] {this.textEquivalent}; // StringType case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // Enumeration - case 3059181: /*code*/ return this.code == null ? new Base[0] : this.code.toArray(new Base[this.code.size()]); // CodeableConcept + case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableConcept case 1587405498: /*documentation*/ return this.documentation == null ? new Base[0] : this.documentation.toArray(new Base[this.documentation.size()]); // RelatedArtifact case -1240658034: /*goalId*/ return this.goalId == null ? new Base[0] : this.goalId.toArray(new Base[this.goalId.size()]); // IdType case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // DataType case -1059891784: /*trigger*/ return this.trigger == null ? new Base[0] : this.trigger.toArray(new Base[this.trigger.size()]); // TriggerDefinition case -861311717: /*condition*/ return this.condition == null ? new Base[0] : this.condition.toArray(new Base[this.condition.size()]); // PlanDefinitionActionConditionComponent - case 100358090: /*input*/ return this.input == null ? new Base[0] : this.input.toArray(new Base[this.input.size()]); // DataRequirement - case -1005512447: /*output*/ return this.output == null ? new Base[0] : this.output.toArray(new Base[this.output.size()]); // DataRequirement + case 100358090: /*input*/ return this.input == null ? new Base[0] : this.input.toArray(new Base[this.input.size()]); // PlanDefinitionActionInputComponent + case -1005512447: /*output*/ return this.output == null ? new Base[0] : this.output.toArray(new Base[this.output.size()]); // PlanDefinitionActionOutputComponent case -384107967: /*relatedAction*/ return this.relatedAction == null ? new Base[0] : this.relatedAction.toArray(new Base[this.relatedAction.size()]); // PlanDefinitionActionRelatedActionComponent case -873664438: /*timing*/ return this.timing == null ? new Base[0] : new Base[] {this.timing}; // DataType + case 1901043637: /*location*/ return this.location == null ? new Base[0] : new Base[] {this.location}; // CodeableReference case 767422259: /*participant*/ return this.participant == null ? new Base[0] : this.participant.toArray(new Base[this.participant.size()]); // PlanDefinitionActionParticipantComponent case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept case 586678389: /*groupingBehavior*/ return this.groupingBehavior == null ? new Base[0] : new Base[] {this.groupingBehavior}; // Enumeration @@ -2662,7 +3267,7 @@ public class PlanDefinition extends MetadataResource { this.priority = (Enumeration) value; // Enumeration return value; case 3059181: // code - this.getCode().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; case -934964668: // reason this.getReason().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept @@ -2683,10 +3288,10 @@ public class PlanDefinition extends MetadataResource { this.getCondition().add((PlanDefinitionActionConditionComponent) value); // PlanDefinitionActionConditionComponent return value; case 100358090: // input - this.getInput().add(TypeConvertor.castToDataRequirement(value)); // DataRequirement + this.getInput().add((PlanDefinitionActionInputComponent) value); // PlanDefinitionActionInputComponent return value; case -1005512447: // output - this.getOutput().add(TypeConvertor.castToDataRequirement(value)); // DataRequirement + this.getOutput().add((PlanDefinitionActionOutputComponent) value); // PlanDefinitionActionOutputComponent return value; case -384107967: // relatedAction this.getRelatedAction().add((PlanDefinitionActionRelatedActionComponent) value); // PlanDefinitionActionRelatedActionComponent @@ -2694,6 +3299,9 @@ public class PlanDefinition extends MetadataResource { case -873664438: // timing this.timing = TypeConvertor.castToType(value); // DataType return value; + case 1901043637: // location + this.location = TypeConvertor.castToCodeableReference(value); // CodeableReference + return value; case 767422259: // participant this.getParticipant().add((PlanDefinitionActionParticipantComponent) value); // PlanDefinitionActionParticipantComponent return value; @@ -2751,7 +3359,7 @@ public class PlanDefinition extends MetadataResource { value = new RequestPriorityEnumFactory().fromType(TypeConvertor.castToCode(value)); this.priority = (Enumeration) value; // Enumeration } else if (name.equals("code")) { - this.getCode().add(TypeConvertor.castToCodeableConcept(value)); + this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("reason")) { this.getReason().add(TypeConvertor.castToCodeableConcept(value)); } else if (name.equals("documentation")) { @@ -2765,13 +3373,15 @@ public class PlanDefinition extends MetadataResource { } else if (name.equals("condition")) { this.getCondition().add((PlanDefinitionActionConditionComponent) value); } else if (name.equals("input")) { - this.getInput().add(TypeConvertor.castToDataRequirement(value)); + this.getInput().add((PlanDefinitionActionInputComponent) value); } else if (name.equals("output")) { - this.getOutput().add(TypeConvertor.castToDataRequirement(value)); + this.getOutput().add((PlanDefinitionActionOutputComponent) value); } else if (name.equals("relatedAction")) { this.getRelatedAction().add((PlanDefinitionActionRelatedActionComponent) value); } else if (name.equals("timing[x]")) { this.timing = TypeConvertor.castToType(value); // DataType + } else if (name.equals("location")) { + this.location = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("participant")) { this.getParticipant().add((PlanDefinitionActionParticipantComponent) value); } else if (name.equals("type")) { @@ -2812,7 +3422,7 @@ public class PlanDefinition extends MetadataResource { case -1724546052: return getDescriptionElement(); case -900391049: return getTextEquivalentElement(); case -1165461084: return getPriorityElement(); - case 3059181: return addCode(); + case 3059181: return getCode(); case -934964668: return addReason(); case 1587405498: return addDocumentation(); case -1240658034: return addGoalIdElement(); @@ -2825,6 +3435,7 @@ public class PlanDefinition extends MetadataResource { case -384107967: return addRelatedAction(); case 164632566: return getTiming(); case -873664438: return getTiming(); + case 1901043637: return getLocation(); case 767422259: return addParticipant(); case 3575610: return getType(); case 586678389: return getGroupingBehaviorElement(); @@ -2854,13 +3465,14 @@ public class PlanDefinition extends MetadataResource { case -934964668: /*reason*/ return new String[] {"CodeableConcept"}; case 1587405498: /*documentation*/ return new String[] {"RelatedArtifact"}; case -1240658034: /*goalId*/ return new String[] {"id"}; - case -1867885268: /*subject*/ return new String[] {"CodeableConcept", "Reference"}; + case -1867885268: /*subject*/ return new String[] {"CodeableConcept", "Reference", "canonical"}; case -1059891784: /*trigger*/ return new String[] {"TriggerDefinition"}; case -861311717: /*condition*/ return new String[] {}; - case 100358090: /*input*/ return new String[] {"DataRequirement"}; - case -1005512447: /*output*/ return new String[] {"DataRequirement"}; + case 100358090: /*input*/ return new String[] {}; + case -1005512447: /*output*/ return new String[] {}; case -384107967: /*relatedAction*/ return new String[] {}; - case -873664438: /*timing*/ return new String[] {"dateTime", "Age", "Period", "Duration", "Range", "Timing"}; + case -873664438: /*timing*/ return new String[] {"Age", "Duration", "Range", "Timing"}; + case 1901043637: /*location*/ return new String[] {"CodeableReference"}; case 767422259: /*participant*/ return new String[] {}; case 3575610: /*type*/ return new String[] {"CodeableConcept"}; case 586678389: /*groupingBehavior*/ return new String[] {"code"}; @@ -2895,7 +3507,8 @@ public class PlanDefinition extends MetadataResource { throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.priority"); } else if (name.equals("code")) { - return addCode(); + this.code = new CodeableConcept(); + return this.code; } else if (name.equals("reason")) { return addReason(); @@ -2914,6 +3527,10 @@ public class PlanDefinition extends MetadataResource { this.subject = new Reference(); return this.subject; } + else if (name.equals("subjectCanonical")) { + this.subject = new CanonicalType(); + return this.subject; + } else if (name.equals("trigger")) { return addTrigger(); } @@ -2929,18 +3546,10 @@ public class PlanDefinition extends MetadataResource { else if (name.equals("relatedAction")) { return addRelatedAction(); } - else if (name.equals("timingDateTime")) { - this.timing = new DateTimeType(); - return this.timing; - } else if (name.equals("timingAge")) { this.timing = new Age(); return this.timing; } - else if (name.equals("timingPeriod")) { - this.timing = new Period(); - return this.timing; - } else if (name.equals("timingDuration")) { this.timing = new Duration(); return this.timing; @@ -2953,6 +3562,10 @@ public class PlanDefinition extends MetadataResource { this.timing = new Timing(); return this.timing; } + else if (name.equals("location")) { + this.location = new CodeableReference(); + return this.location; + } else if (name.equals("participant")) { return addParticipant(); } @@ -3009,11 +3622,7 @@ public class PlanDefinition extends MetadataResource { dst.description = description == null ? null : description.copy(); dst.textEquivalent = textEquivalent == null ? null : textEquivalent.copy(); dst.priority = priority == null ? null : priority.copy(); - if (code != null) { - dst.code = new ArrayList(); - for (CodeableConcept i : code) - dst.code.add(i.copy()); - }; + dst.code = code == null ? null : code.copy(); if (reason != null) { dst.reason = new ArrayList(); for (CodeableConcept i : reason) @@ -3041,13 +3650,13 @@ public class PlanDefinition extends MetadataResource { dst.condition.add(i.copy()); }; if (input != null) { - dst.input = new ArrayList(); - for (DataRequirement i : input) + dst.input = new ArrayList(); + for (PlanDefinitionActionInputComponent i : input) dst.input.add(i.copy()); }; if (output != null) { - dst.output = new ArrayList(); - for (DataRequirement i : output) + dst.output = new ArrayList(); + for (PlanDefinitionActionOutputComponent i : output) dst.output.add(i.copy()); }; if (relatedAction != null) { @@ -3056,6 +3665,7 @@ public class PlanDefinition extends MetadataResource { dst.relatedAction.add(i.copy()); }; dst.timing = timing == null ? null : timing.copy(); + dst.location = location == null ? null : location.copy(); if (participant != null) { dst.participant = new ArrayList(); for (PlanDefinitionActionParticipantComponent i : participant) @@ -3093,11 +3703,11 @@ public class PlanDefinition extends MetadataResource { && compareDeep(code, o.code, true) && compareDeep(reason, o.reason, true) && compareDeep(documentation, o.documentation, true) && compareDeep(goalId, o.goalId, true) && compareDeep(subject, o.subject, true) && compareDeep(trigger, o.trigger, true) && compareDeep(condition, o.condition, true) && compareDeep(input, o.input, true) && compareDeep(output, o.output, true) - && compareDeep(relatedAction, o.relatedAction, true) && compareDeep(timing, o.timing, true) && compareDeep(participant, o.participant, true) - && compareDeep(type, o.type, true) && compareDeep(groupingBehavior, o.groupingBehavior, true) && compareDeep(selectionBehavior, o.selectionBehavior, true) - && compareDeep(requiredBehavior, o.requiredBehavior, true) && compareDeep(precheckBehavior, o.precheckBehavior, true) - && compareDeep(cardinalityBehavior, o.cardinalityBehavior, true) && compareDeep(definition, o.definition, true) - && compareDeep(transform, o.transform, true) && compareDeep(dynamicValue, o.dynamicValue, true) + && compareDeep(relatedAction, o.relatedAction, true) && compareDeep(timing, o.timing, true) && compareDeep(location, o.location, true) + && compareDeep(participant, o.participant, true) && compareDeep(type, o.type, true) && compareDeep(groupingBehavior, o.groupingBehavior, true) + && compareDeep(selectionBehavior, o.selectionBehavior, true) && compareDeep(requiredBehavior, o.requiredBehavior, true) + && compareDeep(precheckBehavior, o.precheckBehavior, true) && compareDeep(cardinalityBehavior, o.cardinalityBehavior, true) + && compareDeep(definition, o.definition, true) && compareDeep(transform, o.transform, true) && compareDeep(dynamicValue, o.dynamicValue, true) && compareDeep(action, o.action, true); } @@ -3119,9 +3729,9 @@ public class PlanDefinition extends MetadataResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(prefix, title, description , textEquivalent, priority, code, reason, documentation, goalId, subject, trigger - , condition, input, output, relatedAction, timing, participant, type, groupingBehavior - , selectionBehavior, requiredBehavior, precheckBehavior, cardinalityBehavior, definition - , transform, dynamicValue, action); + , condition, input, output, relatedAction, timing, location, participant, type + , groupingBehavior, selectionBehavior, requiredBehavior, precheckBehavior, cardinalityBehavior + , definition, transform, dynamicValue, action); } public String fhirType() { @@ -3361,16 +3971,610 @@ public class PlanDefinition extends MetadataResource { } + } + + @Block() + public static class PlanDefinitionActionInputComponent extends BackboneElement implements IBaseBackboneElement { + /** + * A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers. + */ + @Child(name = "title", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="User-visible title", formalDefinition="A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers." ) + protected StringType title; + + /** + * Defines the data that is to be provided as input to the action. + */ + @Child(name = "requirement", type = {DataRequirement.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="What data is provided", formalDefinition="Defines the data that is to be provided as input to the action." ) + protected DataRequirement requirement; + + /** + * Points to an existing input or output element that provides data to this input. + */ + @Child(name = "relatedData", type = {IdType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="What data is provided", formalDefinition="Points to an existing input or output element that provides data to this input." ) + protected IdType relatedData; + + private static final long serialVersionUID = -1064046709L; + + /** + * Constructor + */ + public PlanDefinitionActionInputComponent() { + super(); + } + + /** + * @return {@link #title} (A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + */ + public StringType getTitleElement() { + if (this.title == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActionInputComponent.title"); + else if (Configuration.doAutoCreate()) + this.title = new StringType(); // bb + return this.title; + } + + public boolean hasTitleElement() { + return this.title != null && !this.title.isEmpty(); + } + + public boolean hasTitle() { + return this.title != null && !this.title.isEmpty(); + } + + /** + * @param value {@link #title} (A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + */ + public PlanDefinitionActionInputComponent setTitleElement(StringType value) { + this.title = value; + return this; + } + + /** + * @return A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers. + */ + public String getTitle() { + return this.title == null ? null : this.title.getValue(); + } + + /** + * @param value A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers. + */ + public PlanDefinitionActionInputComponent setTitle(String value) { + if (Utilities.noString(value)) + this.title = null; + else { + if (this.title == null) + this.title = new StringType(); + this.title.setValue(value); + } + return this; + } + + /** + * @return {@link #requirement} (Defines the data that is to be provided as input to the action.) + */ + public DataRequirement getRequirement() { + if (this.requirement == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActionInputComponent.requirement"); + else if (Configuration.doAutoCreate()) + this.requirement = new DataRequirement(); // cc + return this.requirement; + } + + public boolean hasRequirement() { + return this.requirement != null && !this.requirement.isEmpty(); + } + + /** + * @param value {@link #requirement} (Defines the data that is to be provided as input to the action.) + */ + public PlanDefinitionActionInputComponent setRequirement(DataRequirement value) { + this.requirement = value; + return this; + } + + /** + * @return {@link #relatedData} (Points to an existing input or output element that provides data to this input.). This is the underlying object with id, value and extensions. The accessor "getRelatedData" gives direct access to the value + */ + public IdType getRelatedDataElement() { + if (this.relatedData == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActionInputComponent.relatedData"); + else if (Configuration.doAutoCreate()) + this.relatedData = new IdType(); // bb + return this.relatedData; + } + + public boolean hasRelatedDataElement() { + return this.relatedData != null && !this.relatedData.isEmpty(); + } + + public boolean hasRelatedData() { + return this.relatedData != null && !this.relatedData.isEmpty(); + } + + /** + * @param value {@link #relatedData} (Points to an existing input or output element that provides data to this input.). This is the underlying object with id, value and extensions. The accessor "getRelatedData" gives direct access to the value + */ + public PlanDefinitionActionInputComponent setRelatedDataElement(IdType value) { + this.relatedData = value; + return this; + } + + /** + * @return Points to an existing input or output element that provides data to this input. + */ + public String getRelatedData() { + return this.relatedData == null ? null : this.relatedData.getValue(); + } + + /** + * @param value Points to an existing input or output element that provides data to this input. + */ + public PlanDefinitionActionInputComponent setRelatedData(String value) { + if (Utilities.noString(value)) + this.relatedData = null; + else { + if (this.relatedData == null) + this.relatedData = new IdType(); + this.relatedData.setValue(value); + } + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("title", "string", "A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers.", 0, 1, title)); + children.add(new Property("requirement", "DataRequirement", "Defines the data that is to be provided as input to the action.", 0, 1, requirement)); + children.add(new Property("relatedData", "id", "Points to an existing input or output element that provides data to this input.", 0, 1, relatedData)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 110371416: /*title*/ return new Property("title", "string", "A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers.", 0, 1, title); + case 363387971: /*requirement*/ return new Property("requirement", "DataRequirement", "Defines the data that is to be provided as input to the action.", 0, 1, requirement); + case 1112535669: /*relatedData*/ return new Property("relatedData", "id", "Points to an existing input or output element that provides data to this input.", 0, 1, relatedData); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType + case 363387971: /*requirement*/ return this.requirement == null ? new Base[0] : new Base[] {this.requirement}; // DataRequirement + case 1112535669: /*relatedData*/ return this.relatedData == null ? new Base[0] : new Base[] {this.relatedData}; // IdType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 110371416: // title + this.title = TypeConvertor.castToString(value); // StringType + return value; + case 363387971: // requirement + this.requirement = TypeConvertor.castToDataRequirement(value); // DataRequirement + return value; + case 1112535669: // relatedData + this.relatedData = TypeConvertor.castToId(value); // IdType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("title")) { + this.title = TypeConvertor.castToString(value); // StringType + } else if (name.equals("requirement")) { + this.requirement = TypeConvertor.castToDataRequirement(value); // DataRequirement + } else if (name.equals("relatedData")) { + this.relatedData = TypeConvertor.castToId(value); // IdType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 110371416: return getTitleElement(); + case 363387971: return getRequirement(); + case 1112535669: return getRelatedDataElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 110371416: /*title*/ return new String[] {"string"}; + case 363387971: /*requirement*/ return new String[] {"DataRequirement"}; + case 1112535669: /*relatedData*/ return new String[] {"id"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("title")) { + throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.input.title"); + } + else if (name.equals("requirement")) { + this.requirement = new DataRequirement(); + return this.requirement; + } + else if (name.equals("relatedData")) { + throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.input.relatedData"); + } + else + return super.addChild(name); + } + + public PlanDefinitionActionInputComponent copy() { + PlanDefinitionActionInputComponent dst = new PlanDefinitionActionInputComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(PlanDefinitionActionInputComponent dst) { + super.copyValues(dst); + dst.title = title == null ? null : title.copy(); + dst.requirement = requirement == null ? null : requirement.copy(); + dst.relatedData = relatedData == null ? null : relatedData.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof PlanDefinitionActionInputComponent)) + return false; + PlanDefinitionActionInputComponent o = (PlanDefinitionActionInputComponent) other_; + return compareDeep(title, o.title, true) && compareDeep(requirement, o.requirement, true) && compareDeep(relatedData, o.relatedData, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof PlanDefinitionActionInputComponent)) + return false; + PlanDefinitionActionInputComponent o = (PlanDefinitionActionInputComponent) other_; + return compareValues(title, o.title, true) && compareValues(relatedData, o.relatedData, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(title, requirement, relatedData + ); + } + + public String fhirType() { + return "PlanDefinition.action.input"; + + } + + } + + @Block() + public static class PlanDefinitionActionOutputComponent extends BackboneElement implements IBaseBackboneElement { + /** + * A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers. + */ + @Child(name = "title", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="User-visible title", formalDefinition="A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers." ) + protected StringType title; + + /** + * Defines the data that results as output from the action. + */ + @Child(name = "requirement", type = {DataRequirement.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="What data is provided", formalDefinition="Defines the data that results as output from the action." ) + protected DataRequirement requirement; + + /** + * Points to an existing input or output element that is results as output from the action. + */ + @Child(name = "relatedData", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="What data is provided", formalDefinition="Points to an existing input or output element that is results as output from the action." ) + protected StringType relatedData; + + private static final long serialVersionUID = 1822414421L; + + /** + * Constructor + */ + public PlanDefinitionActionOutputComponent() { + super(); + } + + /** + * @return {@link #title} (A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + */ + public StringType getTitleElement() { + if (this.title == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActionOutputComponent.title"); + else if (Configuration.doAutoCreate()) + this.title = new StringType(); // bb + return this.title; + } + + public boolean hasTitleElement() { + return this.title != null && !this.title.isEmpty(); + } + + public boolean hasTitle() { + return this.title != null && !this.title.isEmpty(); + } + + /** + * @param value {@link #title} (A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + */ + public PlanDefinitionActionOutputComponent setTitleElement(StringType value) { + this.title = value; + return this; + } + + /** + * @return A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers. + */ + public String getTitle() { + return this.title == null ? null : this.title.getValue(); + } + + /** + * @param value A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers. + */ + public PlanDefinitionActionOutputComponent setTitle(String value) { + if (Utilities.noString(value)) + this.title = null; + else { + if (this.title == null) + this.title = new StringType(); + this.title.setValue(value); + } + return this; + } + + /** + * @return {@link #requirement} (Defines the data that results as output from the action.) + */ + public DataRequirement getRequirement() { + if (this.requirement == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActionOutputComponent.requirement"); + else if (Configuration.doAutoCreate()) + this.requirement = new DataRequirement(); // cc + return this.requirement; + } + + public boolean hasRequirement() { + return this.requirement != null && !this.requirement.isEmpty(); + } + + /** + * @param value {@link #requirement} (Defines the data that results as output from the action.) + */ + public PlanDefinitionActionOutputComponent setRequirement(DataRequirement value) { + this.requirement = value; + return this; + } + + /** + * @return {@link #relatedData} (Points to an existing input or output element that is results as output from the action.). This is the underlying object with id, value and extensions. The accessor "getRelatedData" gives direct access to the value + */ + public StringType getRelatedDataElement() { + if (this.relatedData == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActionOutputComponent.relatedData"); + else if (Configuration.doAutoCreate()) + this.relatedData = new StringType(); // bb + return this.relatedData; + } + + public boolean hasRelatedDataElement() { + return this.relatedData != null && !this.relatedData.isEmpty(); + } + + public boolean hasRelatedData() { + return this.relatedData != null && !this.relatedData.isEmpty(); + } + + /** + * @param value {@link #relatedData} (Points to an existing input or output element that is results as output from the action.). This is the underlying object with id, value and extensions. The accessor "getRelatedData" gives direct access to the value + */ + public PlanDefinitionActionOutputComponent setRelatedDataElement(StringType value) { + this.relatedData = value; + return this; + } + + /** + * @return Points to an existing input or output element that is results as output from the action. + */ + public String getRelatedData() { + return this.relatedData == null ? null : this.relatedData.getValue(); + } + + /** + * @param value Points to an existing input or output element that is results as output from the action. + */ + public PlanDefinitionActionOutputComponent setRelatedData(String value) { + if (Utilities.noString(value)) + this.relatedData = null; + else { + if (this.relatedData == null) + this.relatedData = new StringType(); + this.relatedData.setValue(value); + } + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("title", "string", "A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers.", 0, 1, title)); + children.add(new Property("requirement", "DataRequirement", "Defines the data that results as output from the action.", 0, 1, requirement)); + children.add(new Property("relatedData", "string", "Points to an existing input or output element that is results as output from the action.", 0, 1, relatedData)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 110371416: /*title*/ return new Property("title", "string", "A human-readable label for the data requirement used to label data flows in BPMN or similar diagrams. Also provides a human readable label when rendering the data requirement that conveys its purpose to human readers.", 0, 1, title); + case 363387971: /*requirement*/ return new Property("requirement", "DataRequirement", "Defines the data that results as output from the action.", 0, 1, requirement); + case 1112535669: /*relatedData*/ return new Property("relatedData", "string", "Points to an existing input or output element that is results as output from the action.", 0, 1, relatedData); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType + case 363387971: /*requirement*/ return this.requirement == null ? new Base[0] : new Base[] {this.requirement}; // DataRequirement + case 1112535669: /*relatedData*/ return this.relatedData == null ? new Base[0] : new Base[] {this.relatedData}; // StringType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 110371416: // title + this.title = TypeConvertor.castToString(value); // StringType + return value; + case 363387971: // requirement + this.requirement = TypeConvertor.castToDataRequirement(value); // DataRequirement + return value; + case 1112535669: // relatedData + this.relatedData = TypeConvertor.castToString(value); // StringType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("title")) { + this.title = TypeConvertor.castToString(value); // StringType + } else if (name.equals("requirement")) { + this.requirement = TypeConvertor.castToDataRequirement(value); // DataRequirement + } else if (name.equals("relatedData")) { + this.relatedData = TypeConvertor.castToString(value); // StringType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 110371416: return getTitleElement(); + case 363387971: return getRequirement(); + case 1112535669: return getRelatedDataElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 110371416: /*title*/ return new String[] {"string"}; + case 363387971: /*requirement*/ return new String[] {"DataRequirement"}; + case 1112535669: /*relatedData*/ return new String[] {"string"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("title")) { + throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.output.title"); + } + else if (name.equals("requirement")) { + this.requirement = new DataRequirement(); + return this.requirement; + } + else if (name.equals("relatedData")) { + throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.output.relatedData"); + } + else + return super.addChild(name); + } + + public PlanDefinitionActionOutputComponent copy() { + PlanDefinitionActionOutputComponent dst = new PlanDefinitionActionOutputComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(PlanDefinitionActionOutputComponent dst) { + super.copyValues(dst); + dst.title = title == null ? null : title.copy(); + dst.requirement = requirement == null ? null : requirement.copy(); + dst.relatedData = relatedData == null ? null : relatedData.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof PlanDefinitionActionOutputComponent)) + return false; + PlanDefinitionActionOutputComponent o = (PlanDefinitionActionOutputComponent) other_; + return compareDeep(title, o.title, true) && compareDeep(requirement, o.requirement, true) && compareDeep(relatedData, o.relatedData, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof PlanDefinitionActionOutputComponent)) + return false; + PlanDefinitionActionOutputComponent o = (PlanDefinitionActionOutputComponent) other_; + return compareValues(title, o.title, true) && compareValues(relatedData, o.relatedData, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(title, requirement, relatedData + ); + } + + public String fhirType() { + return "PlanDefinition.action.output"; + + } + } @Block() public static class PlanDefinitionActionRelatedActionComponent extends BackboneElement implements IBaseBackboneElement { /** - * The element id of the related action. + * The element id of the target related action. */ - @Child(name = "actionId", type = {IdType.class}, order=1, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="What action is this related to", formalDefinition="The element id of the related action." ) - protected IdType actionId; + @Child(name = "targetId", type = {IdType.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="What action is this related to", formalDefinition="The element id of the target related action." ) + protected IdType targetId; /** * The relationship of this action to the related action. @@ -3387,7 +4591,7 @@ public class PlanDefinition extends MetadataResource { @Description(shortDefinition="Time offset for the relationship", formalDefinition="A duration or range of durations to apply to the relationship. For example, 30-60 minutes before." ) protected DataType offset; - private static final long serialVersionUID = 621784796L; + private static final long serialVersionUID = -462773513L; /** * Constructor @@ -3399,54 +4603,54 @@ public class PlanDefinition extends MetadataResource { /** * Constructor */ - public PlanDefinitionActionRelatedActionComponent(String actionId, ActionRelationshipType relationship) { + public PlanDefinitionActionRelatedActionComponent(String targetId, ActionRelationshipType relationship) { super(); - this.setActionId(actionId); + this.setTargetId(targetId); this.setRelationship(relationship); } /** - * @return {@link #actionId} (The element id of the related action.). This is the underlying object with id, value and extensions. The accessor "getActionId" gives direct access to the value + * @return {@link #targetId} (The element id of the target related action.). This is the underlying object with id, value and extensions. The accessor "getTargetId" gives direct access to the value */ - public IdType getActionIdElement() { - if (this.actionId == null) + public IdType getTargetIdElement() { + if (this.targetId == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create PlanDefinitionActionRelatedActionComponent.actionId"); + throw new Error("Attempt to auto-create PlanDefinitionActionRelatedActionComponent.targetId"); else if (Configuration.doAutoCreate()) - this.actionId = new IdType(); // bb - return this.actionId; + this.targetId = new IdType(); // bb + return this.targetId; } - public boolean hasActionIdElement() { - return this.actionId != null && !this.actionId.isEmpty(); + public boolean hasTargetIdElement() { + return this.targetId != null && !this.targetId.isEmpty(); } - public boolean hasActionId() { - return this.actionId != null && !this.actionId.isEmpty(); + public boolean hasTargetId() { + return this.targetId != null && !this.targetId.isEmpty(); } /** - * @param value {@link #actionId} (The element id of the related action.). This is the underlying object with id, value and extensions. The accessor "getActionId" gives direct access to the value + * @param value {@link #targetId} (The element id of the target related action.). This is the underlying object with id, value and extensions. The accessor "getTargetId" gives direct access to the value */ - public PlanDefinitionActionRelatedActionComponent setActionIdElement(IdType value) { - this.actionId = value; + public PlanDefinitionActionRelatedActionComponent setTargetIdElement(IdType value) { + this.targetId = value; return this; } /** - * @return The element id of the related action. + * @return The element id of the target related action. */ - public String getActionId() { - return this.actionId == null ? null : this.actionId.getValue(); + public String getTargetId() { + return this.targetId == null ? null : this.targetId.getValue(); } /** - * @param value The element id of the related action. + * @param value The element id of the target related action. */ - public PlanDefinitionActionRelatedActionComponent setActionId(String value) { - if (this.actionId == null) - this.actionId = new IdType(); - this.actionId.setValue(value); + public PlanDefinitionActionRelatedActionComponent setTargetId(String value) { + if (this.targetId == null) + this.targetId = new IdType(); + this.targetId.setValue(value); return this; } @@ -3548,7 +4752,7 @@ public class PlanDefinition extends MetadataResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("actionId", "id", "The element id of the related action.", 0, 1, actionId)); + children.add(new Property("targetId", "id", "The element id of the target related action.", 0, 1, targetId)); children.add(new Property("relationship", "code", "The relationship of this action to the related action.", 0, 1, relationship)); children.add(new Property("offset[x]", "Duration|Range", "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.", 0, 1, offset)); } @@ -3556,7 +4760,7 @@ public class PlanDefinition extends MetadataResource { @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -1656172047: /*actionId*/ return new Property("actionId", "id", "The element id of the related action.", 0, 1, actionId); + case -441951604: /*targetId*/ return new Property("targetId", "id", "The element id of the target related action.", 0, 1, targetId); case -261851592: /*relationship*/ return new Property("relationship", "code", "The relationship of this action to the related action.", 0, 1, relationship); case -1960684787: /*offset[x]*/ return new Property("offset[x]", "Duration|Range", "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.", 0, 1, offset); case -1019779949: /*offset*/ return new Property("offset[x]", "Duration|Range", "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.", 0, 1, offset); @@ -3570,7 +4774,7 @@ public class PlanDefinition extends MetadataResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case -1656172047: /*actionId*/ return this.actionId == null ? new Base[0] : new Base[] {this.actionId}; // IdType + case -441951604: /*targetId*/ return this.targetId == null ? new Base[0] : new Base[] {this.targetId}; // IdType case -261851592: /*relationship*/ return this.relationship == null ? new Base[0] : new Base[] {this.relationship}; // Enumeration case -1019779949: /*offset*/ return this.offset == null ? new Base[0] : new Base[] {this.offset}; // DataType default: return super.getProperty(hash, name, checkValid); @@ -3581,8 +4785,8 @@ public class PlanDefinition extends MetadataResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { - case -1656172047: // actionId - this.actionId = TypeConvertor.castToId(value); // IdType + case -441951604: // targetId + this.targetId = TypeConvertor.castToId(value); // IdType return value; case -261851592: // relationship value = new ActionRelationshipTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); @@ -3598,8 +4802,8 @@ public class PlanDefinition extends MetadataResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("actionId")) { - this.actionId = TypeConvertor.castToId(value); // IdType + if (name.equals("targetId")) { + this.targetId = TypeConvertor.castToId(value); // IdType } else if (name.equals("relationship")) { value = new ActionRelationshipTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); this.relationship = (Enumeration) value; // Enumeration @@ -3613,7 +4817,7 @@ public class PlanDefinition extends MetadataResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { - case -1656172047: return getActionIdElement(); + case -441951604: return getTargetIdElement(); case -261851592: return getRelationshipElement(); case -1960684787: return getOffset(); case -1019779949: return getOffset(); @@ -3625,7 +4829,7 @@ public class PlanDefinition extends MetadataResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case -1656172047: /*actionId*/ return new String[] {"id"}; + case -441951604: /*targetId*/ return new String[] {"id"}; case -261851592: /*relationship*/ return new String[] {"code"}; case -1019779949: /*offset*/ return new String[] {"Duration", "Range"}; default: return super.getTypesForProperty(hash, name); @@ -3635,8 +4839,8 @@ public class PlanDefinition extends MetadataResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("actionId")) { - throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.relatedAction.actionId"); + if (name.equals("targetId")) { + throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.relatedAction.targetId"); } else if (name.equals("relationship")) { throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.relatedAction.relationship"); @@ -3661,7 +4865,7 @@ public class PlanDefinition extends MetadataResource { public void copyValues(PlanDefinitionActionRelatedActionComponent dst) { super.copyValues(dst); - dst.actionId = actionId == null ? null : actionId.copy(); + dst.targetId = targetId == null ? null : targetId.copy(); dst.relationship = relationship == null ? null : relationship.copy(); dst.offset = offset == null ? null : offset.copy(); } @@ -3673,7 +4877,7 @@ public class PlanDefinition extends MetadataResource { if (!(other_ instanceof PlanDefinitionActionRelatedActionComponent)) return false; PlanDefinitionActionRelatedActionComponent o = (PlanDefinitionActionRelatedActionComponent) other_; - return compareDeep(actionId, o.actionId, true) && compareDeep(relationship, o.relationship, true) + return compareDeep(targetId, o.targetId, true) && compareDeep(relationship, o.relationship, true) && compareDeep(offset, o.offset, true); } @@ -3684,12 +4888,12 @@ public class PlanDefinition extends MetadataResource { if (!(other_ instanceof PlanDefinitionActionRelatedActionComponent)) return false; PlanDefinitionActionRelatedActionComponent o = (PlanDefinitionActionRelatedActionComponent) other_; - return compareValues(actionId, o.actionId, true) && compareValues(relationship, o.relationship, true) + return compareValues(targetId, o.targetId, true) && compareValues(relationship, o.relationship, true) ; } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(actionId, relationship, offset + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(targetId, relationship, offset ); } @@ -3702,23 +4906,45 @@ public class PlanDefinition extends MetadataResource { @Block() public static class PlanDefinitionActionParticipantComponent extends BackboneElement implements IBaseBackboneElement { + /** + * A reference to the id element of the actor who will participate in this action. + */ + @Child(name = "actorId", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="What actor", formalDefinition="A reference to the id element of the actor who will participate in this action." ) + protected StringType actorId; + /** * The type of participant in the action. */ - @Child(name = "type", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="patient | practitioner | related-person | device", formalDefinition="The type of participant in the action." ) + @Child(name = "type", type = {CodeType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="careteam | device | group | healthcareservice | location | organization | patient | practitioner | practitionerrole | relatedperson", formalDefinition="The type of participant in the action." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-participant-type") protected Enumeration type; + /** + * The type of participant in the action. + */ + @Child(name = "typeReference", type = {CareTeam.class, Device.class, Group.class, HealthcareService.class, Location.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Who or what can participate", formalDefinition="The type of participant in the action." ) + protected Reference typeReference; + /** * The role the participant should play in performing the described action. */ - @Child(name = "role", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Child(name = "role", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="E.g. Nurse, Surgeon, Parent", formalDefinition="The role the participant should play in performing the described action." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/action-participant-role") protected CodeableConcept role; - private static final long serialVersionUID = -1152013659L; + /** + * Indicates how the actor will be involved in the action - author, reviewer, witness, etc. + */ + @Child(name = "function", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="E.g. Author, Reviewer, Witness, etc.", formalDefinition="Indicates how the actor will be involved in the action - author, reviewer, witness, etc." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-participant-function") + protected CodeableConcept function; + + private static final long serialVersionUID = -1307587293L; /** * Constructor @@ -3727,13 +4953,54 @@ public class PlanDefinition extends MetadataResource { super(); } - /** - * Constructor - */ - public PlanDefinitionActionParticipantComponent(ActionParticipantType type) { - super(); - this.setType(type); - } + /** + * @return {@link #actorId} (A reference to the id element of the actor who will participate in this action.). This is the underlying object with id, value and extensions. The accessor "getActorId" gives direct access to the value + */ + public StringType getActorIdElement() { + if (this.actorId == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActionParticipantComponent.actorId"); + else if (Configuration.doAutoCreate()) + this.actorId = new StringType(); // bb + return this.actorId; + } + + public boolean hasActorIdElement() { + return this.actorId != null && !this.actorId.isEmpty(); + } + + public boolean hasActorId() { + return this.actorId != null && !this.actorId.isEmpty(); + } + + /** + * @param value {@link #actorId} (A reference to the id element of the actor who will participate in this action.). This is the underlying object with id, value and extensions. The accessor "getActorId" gives direct access to the value + */ + public PlanDefinitionActionParticipantComponent setActorIdElement(StringType value) { + this.actorId = value; + return this; + } + + /** + * @return A reference to the id element of the actor who will participate in this action. + */ + public String getActorId() { + return this.actorId == null ? null : this.actorId.getValue(); + } + + /** + * @param value A reference to the id element of the actor who will participate in this action. + */ + public PlanDefinitionActionParticipantComponent setActorId(String value) { + if (Utilities.noString(value)) + this.actorId = null; + else { + if (this.actorId == null) + this.actorId = new StringType(); + this.actorId.setValue(value); + } + return this; + } /** * @return {@link #type} (The type of participant in the action.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value @@ -3774,9 +5041,37 @@ public class PlanDefinition extends MetadataResource { * @param value The type of participant in the action. */ public PlanDefinitionActionParticipantComponent setType(ActionParticipantType value) { + if (value == null) + this.type = null; + else { if (this.type == null) this.type = new Enumeration(new ActionParticipantTypeEnumFactory()); this.type.setValue(value); + } + return this; + } + + /** + * @return {@link #typeReference} (The type of participant in the action.) + */ + public Reference getTypeReference() { + if (this.typeReference == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActionParticipantComponent.typeReference"); + else if (Configuration.doAutoCreate()) + this.typeReference = new Reference(); // cc + return this.typeReference; + } + + public boolean hasTypeReference() { + return this.typeReference != null && !this.typeReference.isEmpty(); + } + + /** + * @param value {@link #typeReference} (The type of participant in the action.) + */ + public PlanDefinitionActionParticipantComponent setTypeReference(Reference value) { + this.typeReference = value; return this; } @@ -3804,17 +5099,47 @@ public class PlanDefinition extends MetadataResource { return this; } + /** + * @return {@link #function} (Indicates how the actor will be involved in the action - author, reviewer, witness, etc.) + */ + public CodeableConcept getFunction() { + if (this.function == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PlanDefinitionActionParticipantComponent.function"); + else if (Configuration.doAutoCreate()) + this.function = new CodeableConcept(); // cc + return this.function; + } + + public boolean hasFunction() { + return this.function != null && !this.function.isEmpty(); + } + + /** + * @param value {@link #function} (Indicates how the actor will be involved in the action - author, reviewer, witness, etc.) + */ + public PlanDefinitionActionParticipantComponent setFunction(CodeableConcept value) { + this.function = value; + return this; + } + protected void listChildren(List children) { super.listChildren(children); + children.add(new Property("actorId", "string", "A reference to the id element of the actor who will participate in this action.", 0, 1, actorId)); children.add(new Property("type", "code", "The type of participant in the action.", 0, 1, type)); + children.add(new Property("typeReference", "Reference(CareTeam|Device|Group|HealthcareService|Location|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson)", "The type of participant in the action.", 0, 1, typeReference)); children.add(new Property("role", "CodeableConcept", "The role the participant should play in performing the described action.", 0, 1, role)); + children.add(new Property("function", "CodeableConcept", "Indicates how the actor will be involved in the action - author, reviewer, witness, etc.", 0, 1, function)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { + case -1161623056: /*actorId*/ return new Property("actorId", "string", "A reference to the id element of the actor who will participate in this action.", 0, 1, actorId); case 3575610: /*type*/ return new Property("type", "code", "The type of participant in the action.", 0, 1, type); + case 2074825009: /*typeReference*/ return new Property("typeReference", "Reference(CareTeam|Device|Group|HealthcareService|Location|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson)", "The type of participant in the action.", 0, 1, typeReference); case 3506294: /*role*/ return new Property("role", "CodeableConcept", "The role the participant should play in performing the described action.", 0, 1, role); + case 1380938712: /*function*/ return new Property("function", "CodeableConcept", "Indicates how the actor will be involved in the action - author, reviewer, witness, etc.", 0, 1, function); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -3823,8 +5148,11 @@ public class PlanDefinition extends MetadataResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { + case -1161623056: /*actorId*/ return this.actorId == null ? new Base[0] : new Base[] {this.actorId}; // StringType case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration + case 2074825009: /*typeReference*/ return this.typeReference == null ? new Base[0] : new Base[] {this.typeReference}; // Reference case 3506294: /*role*/ return this.role == null ? new Base[0] : new Base[] {this.role}; // CodeableConcept + case 1380938712: /*function*/ return this.function == null ? new Base[0] : new Base[] {this.function}; // CodeableConcept default: return super.getProperty(hash, name, checkValid); } @@ -3833,13 +5161,22 @@ public class PlanDefinition extends MetadataResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { + case -1161623056: // actorId + this.actorId = TypeConvertor.castToString(value); // StringType + return value; case 3575610: // type value = new ActionParticipantTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); this.type = (Enumeration) value; // Enumeration return value; + case 2074825009: // typeReference + this.typeReference = TypeConvertor.castToReference(value); // Reference + return value; case 3506294: // role this.role = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; + case 1380938712: // function + this.function = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; default: return super.setProperty(hash, name, value); } @@ -3847,11 +5184,17 @@ public class PlanDefinition extends MetadataResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("type")) { + if (name.equals("actorId")) { + this.actorId = TypeConvertor.castToString(value); // StringType + } else if (name.equals("type")) { value = new ActionParticipantTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); this.type = (Enumeration) value; // Enumeration + } else if (name.equals("typeReference")) { + this.typeReference = TypeConvertor.castToReference(value); // Reference } else if (name.equals("role")) { this.role = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("function")) { + this.function = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else return super.setProperty(name, value); return value; @@ -3860,8 +5203,11 @@ public class PlanDefinition extends MetadataResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { + case -1161623056: return getActorIdElement(); case 3575610: return getTypeElement(); + case 2074825009: return getTypeReference(); case 3506294: return getRole(); + case 1380938712: return getFunction(); default: return super.makeProperty(hash, name); } @@ -3870,8 +5216,11 @@ public class PlanDefinition extends MetadataResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { + case -1161623056: /*actorId*/ return new String[] {"string"}; case 3575610: /*type*/ return new String[] {"code"}; + case 2074825009: /*typeReference*/ return new String[] {"Reference"}; case 3506294: /*role*/ return new String[] {"CodeableConcept"}; + case 1380938712: /*function*/ return new String[] {"CodeableConcept"}; default: return super.getTypesForProperty(hash, name); } @@ -3879,13 +5228,24 @@ public class PlanDefinition extends MetadataResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("type")) { + if (name.equals("actorId")) { + throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.participant.actorId"); + } + else if (name.equals("type")) { throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.action.participant.type"); } + else if (name.equals("typeReference")) { + this.typeReference = new Reference(); + return this.typeReference; + } else if (name.equals("role")) { this.role = new CodeableConcept(); return this.role; } + else if (name.equals("function")) { + this.function = new CodeableConcept(); + return this.function; + } else return super.addChild(name); } @@ -3898,8 +5258,11 @@ public class PlanDefinition extends MetadataResource { public void copyValues(PlanDefinitionActionParticipantComponent dst) { super.copyValues(dst); + dst.actorId = actorId == null ? null : actorId.copy(); dst.type = type == null ? null : type.copy(); + dst.typeReference = typeReference == null ? null : typeReference.copy(); dst.role = role == null ? null : role.copy(); + dst.function = function == null ? null : function.copy(); } @Override @@ -3909,7 +5272,8 @@ public class PlanDefinition extends MetadataResource { if (!(other_ instanceof PlanDefinitionActionParticipantComponent)) return false; PlanDefinitionActionParticipantComponent o = (PlanDefinitionActionParticipantComponent) other_; - return compareDeep(type, o.type, true) && compareDeep(role, o.role, true); + return compareDeep(actorId, o.actorId, true) && compareDeep(type, o.type, true) && compareDeep(typeReference, o.typeReference, true) + && compareDeep(role, o.role, true) && compareDeep(function, o.function, true); } @Override @@ -3919,11 +5283,12 @@ public class PlanDefinition extends MetadataResource { if (!(other_ instanceof PlanDefinitionActionParticipantComponent)) return false; PlanDefinitionActionParticipantComponent o = (PlanDefinitionActionParticipantComponent) other_; - return compareValues(type, o.type, true); + return compareValues(actorId, o.actorId, true) && compareValues(type, o.type, true); } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, role); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(actorId, type, typeReference + , role, function); } public String fhirType() { @@ -4224,10 +5589,10 @@ public class PlanDefinition extends MetadataResource { protected BooleanType experimental; /** - * A code or group definition that describes the intended subject of the plan definition. + * A code, group definition, or canonical reference that describes or identifies the intended subject of the plan definition. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource. */ - @Child(name = "subject", type = {CodeableConcept.class, Group.class}, order=9, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Type of individual the plan definition is focused on", formalDefinition="A code or group definition that describes the intended subject of the plan definition." ) + @Child(name = "subject", type = {CodeableConcept.class, Group.class, CanonicalType.class}, order=9, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Type of individual the plan definition is focused on", formalDefinition="A code, group definition, or canonical reference that describes or identifies the intended subject of the plan definition. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subject-type") protected DataType subject; @@ -4367,20 +5732,27 @@ public class PlanDefinition extends MetadataResource { protected List library; /** - * Goals that describe what the activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc. + * A goal describes an expected outcome that activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, meeting the acceptance criteria for a test as specified by a quality specification, etc. */ @Child(name = "goal", type = {}, order=29, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="What the plan is trying to accomplish", formalDefinition="Goals that describe what the activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc." ) + @Description(shortDefinition="What the plan is trying to accomplish", formalDefinition="A goal describes an expected outcome that activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, meeting the acceptance criteria for a test as specified by a quality specification, etc." ) protected List goal; /** - * An action or group of actions to be taken as part of the plan. + * Actors represent the individuals or groups involved in the execution of the defined set of activities. */ - @Child(name = "action", type = {}, order=30, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Action defined by the plan", formalDefinition="An action or group of actions to be taken as part of the plan." ) + @Child(name = "actor", type = {}, order=30, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Actors within the plan", formalDefinition="Actors represent the individuals or groups involved in the execution of the defined set of activities." ) + protected List actor; + + /** + * An action or group of actions to be taken as part of the plan. For example, in clinical care, an action would be to prescribe a particular indicated medication, or perform a particular test as appropriate. In pharmaceutical quality, an action would be the test that needs to be performed on a drug product as defined in the quality specification. + */ + @Child(name = "action", type = {}, order=31, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Action defined by the plan", formalDefinition="An action or group of actions to be taken as part of the plan. For example, in clinical care, an action would be to prescribe a particular indicated medication, or perform a particular test as appropriate. In pharmaceutical quality, an action would be the test that needs to be performed on a drug product as defined in the quality specification." ) protected List action; - private static final long serialVersionUID = 485099011L; + private static final long serialVersionUID = -2104269622L; /** * Constructor @@ -4810,14 +6182,14 @@ public class PlanDefinition extends MetadataResource { } /** - * @return {@link #subject} (A code or group definition that describes the intended subject of the plan definition.) + * @return {@link #subject} (A code, group definition, or canonical reference that describes or identifies the intended subject of the plan definition. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.) */ public DataType getSubject() { return this.subject; } /** - * @return {@link #subject} (A code or group definition that describes the intended subject of the plan definition.) + * @return {@link #subject} (A code, group definition, or canonical reference that describes or identifies the intended subject of the plan definition. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.) */ public CodeableConcept getSubjectCodeableConcept() throws FHIRException { if (this.subject == null) @@ -4832,7 +6204,7 @@ public class PlanDefinition extends MetadataResource { } /** - * @return {@link #subject} (A code or group definition that describes the intended subject of the plan definition.) + * @return {@link #subject} (A code, group definition, or canonical reference that describes or identifies the intended subject of the plan definition. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.) */ public Reference getSubjectReference() throws FHIRException { if (this.subject == null) @@ -4846,15 +6218,30 @@ public class PlanDefinition extends MetadataResource { return this != null && this.subject instanceof Reference; } + /** + * @return {@link #subject} (A code, group definition, or canonical reference that describes or identifies the intended subject of the plan definition. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.) + */ + public CanonicalType getSubjectCanonicalType() throws FHIRException { + if (this.subject == null) + this.subject = new CanonicalType(); + if (!(this.subject instanceof CanonicalType)) + throw new FHIRException("Type mismatch: the type CanonicalType was expected, but "+this.subject.getClass().getName()+" was encountered"); + return (CanonicalType) this.subject; + } + + public boolean hasSubjectCanonicalType() { + return this != null && this.subject instanceof CanonicalType; + } + public boolean hasSubject() { return this.subject != null && !this.subject.isEmpty(); } /** - * @param value {@link #subject} (A code or group definition that describes the intended subject of the plan definition.) + * @param value {@link #subject} (A code, group definition, or canonical reference that describes or identifies the intended subject of the plan definition. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.) */ public PlanDefinition setSubject(DataType value) { - if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) + if (value != null && !(value instanceof CodeableConcept || value instanceof Reference || value instanceof CanonicalType)) throw new Error("Not the right type for PlanDefinition.subject[x]: "+value.fhirType()); this.subject = value; return this; @@ -5815,7 +7202,7 @@ public class PlanDefinition extends MetadataResource { } /** - * @return {@link #goal} (Goals that describe what the activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc.) + * @return {@link #goal} (A goal describes an expected outcome that activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, meeting the acceptance criteria for a test as specified by a quality specification, etc.) */ public List getGoal() { if (this.goal == null) @@ -5868,7 +7255,60 @@ public class PlanDefinition extends MetadataResource { } /** - * @return {@link #action} (An action or group of actions to be taken as part of the plan.) + * @return {@link #actor} (Actors represent the individuals or groups involved in the execution of the defined set of activities.) + */ + public List getActor() { + if (this.actor == null) + this.actor = new ArrayList(); + return this.actor; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public PlanDefinition setActor(List theActor) { + this.actor = theActor; + return this; + } + + public boolean hasActor() { + if (this.actor == null) + return false; + for (PlanDefinitionActorComponent item : this.actor) + if (!item.isEmpty()) + return true; + return false; + } + + public PlanDefinitionActorComponent addActor() { //3 + PlanDefinitionActorComponent t = new PlanDefinitionActorComponent(); + if (this.actor == null) + this.actor = new ArrayList(); + this.actor.add(t); + return t; + } + + public PlanDefinition addActor(PlanDefinitionActorComponent t) { //3 + if (t == null) + return this; + if (this.actor == null) + this.actor = new ArrayList(); + this.actor.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #actor}, creating it if it does not already exist {3} + */ + public PlanDefinitionActorComponent getActorFirstRep() { + if (getActor().isEmpty()) { + addActor(); + } + return getActor().get(0); + } + + /** + * @return {@link #action} (An action or group of actions to be taken as part of the plan. For example, in clinical care, an action would be to prescribe a particular indicated medication, or perform a particular test as appropriate. In pharmaceutical quality, an action would be the test that needs to be performed on a drug product as defined in the quality specification.) */ public List getAction() { if (this.action == null) @@ -5931,7 +7371,7 @@ public class PlanDefinition extends MetadataResource { children.add(new Property("type", "CodeableConcept", "A high-level category for the plan definition that distinguishes the kinds of systems that would be interested in the plan definition.", 0, 1, type)); children.add(new Property("status", "code", "The status of this plan definition. Enables tracking the life-cycle of the content.", 0, 1, status)); children.add(new Property("experimental", "boolean", "A Boolean value to indicate that this plan definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental)); - children.add(new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the plan definition.", 0, 1, subject)); + children.add(new Property("subject[x]", "CodeableConcept|Reference(Group)|canonical(MedicinalProductDefinition|SubstanceDefinition|AdministrableProductDefinition|ManufacturedItemDefinition|PackagedProductDefinition)", "A code, group definition, or canonical reference that describes or identifies the intended subject of the plan definition. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject)); children.add(new Property("date", "dateTime", "The date (and optionally time) when the plan definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the plan definition changes.", 0, 1, date)); children.add(new Property("publisher", "string", "The name of the organization or individual that published the plan definition.", 0, 1, publisher)); children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact)); @@ -5951,8 +7391,9 @@ public class PlanDefinition extends MetadataResource { children.add(new Property("endorser", "ContactDetail", "An individual or organization responsible for officially endorsing the content for use in some setting.", 0, java.lang.Integer.MAX_VALUE, endorser)); children.add(new Property("relatedArtifact", "RelatedArtifact", "Related artifacts such as additional documentation, justification, or bibliographic references.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact)); children.add(new Property("library", "canonical(Library)", "A reference to a Library resource containing any formal logic used by the plan definition.", 0, java.lang.Integer.MAX_VALUE, library)); - children.add(new Property("goal", "", "Goals that describe what the activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc.", 0, java.lang.Integer.MAX_VALUE, goal)); - children.add(new Property("action", "", "An action or group of actions to be taken as part of the plan.", 0, java.lang.Integer.MAX_VALUE, action)); + children.add(new Property("goal", "", "A goal describes an expected outcome that activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, meeting the acceptance criteria for a test as specified by a quality specification, etc.", 0, java.lang.Integer.MAX_VALUE, goal)); + children.add(new Property("actor", "", "Actors represent the individuals or groups involved in the execution of the defined set of activities.", 0, java.lang.Integer.MAX_VALUE, actor)); + children.add(new Property("action", "", "An action or group of actions to be taken as part of the plan. For example, in clinical care, an action would be to prescribe a particular indicated medication, or perform a particular test as appropriate. In pharmaceutical quality, an action would be the test that needs to be performed on a drug product as defined in the quality specification.", 0, java.lang.Integer.MAX_VALUE, action)); } @Override @@ -5967,10 +7408,11 @@ public class PlanDefinition extends MetadataResource { case 3575610: /*type*/ return new Property("type", "CodeableConcept", "A high-level category for the plan definition that distinguishes the kinds of systems that would be interested in the plan definition.", 0, 1, type); case -892481550: /*status*/ return new Property("status", "code", "The status of this plan definition. Enables tracking the life-cycle of the content.", 0, 1, status); case -404562712: /*experimental*/ return new Property("experimental", "boolean", "A Boolean value to indicate that this plan definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental); - case -573640748: /*subject[x]*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the plan definition.", 0, 1, subject); - case -1867885268: /*subject*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)", "A code or group definition that describes the intended subject of the plan definition.", 0, 1, subject); - case -1257122603: /*subjectCodeableConcept*/ return new Property("subject[x]", "CodeableConcept", "A code or group definition that describes the intended subject of the plan definition.", 0, 1, subject); - case 772938623: /*subjectReference*/ return new Property("subject[x]", "Reference(Group)", "A code or group definition that describes the intended subject of the plan definition.", 0, 1, subject); + case -573640748: /*subject[x]*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)|canonical(MedicinalProductDefinition|SubstanceDefinition|AdministrableProductDefinition|ManufacturedItemDefinition|PackagedProductDefinition)", "A code, group definition, or canonical reference that describes or identifies the intended subject of the plan definition. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject); + case -1867885268: /*subject*/ return new Property("subject[x]", "CodeableConcept|Reference(Group)|canonical(MedicinalProductDefinition|SubstanceDefinition|AdministrableProductDefinition|ManufacturedItemDefinition|PackagedProductDefinition)", "A code, group definition, or canonical reference that describes or identifies the intended subject of the plan definition. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject); + case -1257122603: /*subjectCodeableConcept*/ return new Property("subject[x]", "CodeableConcept", "A code, group definition, or canonical reference that describes or identifies the intended subject of the plan definition. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject); + case 772938623: /*subjectReference*/ return new Property("subject[x]", "Reference(Group)", "A code, group definition, or canonical reference that describes or identifies the intended subject of the plan definition. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject); + case -1768521432: /*subjectCanonical*/ return new Property("subject[x]", "canonical(MedicinalProductDefinition|SubstanceDefinition|AdministrableProductDefinition|ManufacturedItemDefinition|PackagedProductDefinition)", "A code, group definition, or canonical reference that describes or identifies the intended subject of the plan definition. Canonical references are allowed to support the definition of protocols for drug and substance quality specifications, and is allowed to reference a MedicinalProductDefinition, SubstanceDefinition, AdministrableProductDefinition, ManufacturedItemDefinition, or PackagedProductDefinition resource.", 0, 1, subject); case 3076014: /*date*/ return new Property("date", "dateTime", "The date (and optionally time) when the plan definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the plan definition changes.", 0, 1, date); case 1447404028: /*publisher*/ return new Property("publisher", "string", "The name of the organization or individual that published the plan definition.", 0, 1, publisher); case 951526432: /*contact*/ return new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact); @@ -5990,8 +7432,9 @@ public class PlanDefinition extends MetadataResource { case 1740277666: /*endorser*/ return new Property("endorser", "ContactDetail", "An individual or organization responsible for officially endorsing the content for use in some setting.", 0, java.lang.Integer.MAX_VALUE, endorser); case 666807069: /*relatedArtifact*/ return new Property("relatedArtifact", "RelatedArtifact", "Related artifacts such as additional documentation, justification, or bibliographic references.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact); case 166208699: /*library*/ return new Property("library", "canonical(Library)", "A reference to a Library resource containing any formal logic used by the plan definition.", 0, java.lang.Integer.MAX_VALUE, library); - case 3178259: /*goal*/ return new Property("goal", "", "Goals that describe what the activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc.", 0, java.lang.Integer.MAX_VALUE, goal); - case -1422950858: /*action*/ return new Property("action", "", "An action or group of actions to be taken as part of the plan.", 0, java.lang.Integer.MAX_VALUE, action); + case 3178259: /*goal*/ return new Property("goal", "", "A goal describes an expected outcome that activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, meeting the acceptance criteria for a test as specified by a quality specification, etc.", 0, java.lang.Integer.MAX_VALUE, goal); + case 92645877: /*actor*/ return new Property("actor", "", "Actors represent the individuals or groups involved in the execution of the defined set of activities.", 0, java.lang.Integer.MAX_VALUE, actor); + case -1422950858: /*action*/ return new Property("action", "", "An action or group of actions to be taken as part of the plan. For example, in clinical care, an action would be to prescribe a particular indicated medication, or perform a particular test as appropriate. In pharmaceutical quality, an action would be the test that needs to be performed on a drug product as defined in the quality specification.", 0, java.lang.Integer.MAX_VALUE, action); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -6030,6 +7473,7 @@ public class PlanDefinition extends MetadataResource { case 666807069: /*relatedArtifact*/ return this.relatedArtifact == null ? new Base[0] : this.relatedArtifact.toArray(new Base[this.relatedArtifact.size()]); // RelatedArtifact case 166208699: /*library*/ return this.library == null ? new Base[0] : this.library.toArray(new Base[this.library.size()]); // CanonicalType case 3178259: /*goal*/ return this.goal == null ? new Base[0] : this.goal.toArray(new Base[this.goal.size()]); // PlanDefinitionGoalComponent + case 92645877: /*actor*/ return this.actor == null ? new Base[0] : this.actor.toArray(new Base[this.actor.size()]); // PlanDefinitionActorComponent case -1422950858: /*action*/ return this.action == null ? new Base[0] : this.action.toArray(new Base[this.action.size()]); // PlanDefinitionActionComponent default: return super.getProperty(hash, name, checkValid); } @@ -6130,6 +7574,9 @@ public class PlanDefinition extends MetadataResource { case 3178259: // goal this.getGoal().add((PlanDefinitionGoalComponent) value); // PlanDefinitionGoalComponent return value; + case 92645877: // actor + this.getActor().add((PlanDefinitionActorComponent) value); // PlanDefinitionActorComponent + return value; case -1422950858: // action this.getAction().add((PlanDefinitionActionComponent) value); // PlanDefinitionActionComponent return value; @@ -6201,6 +7648,8 @@ public class PlanDefinition extends MetadataResource { this.getLibrary().add(TypeConvertor.castToCanonical(value)); } else if (name.equals("goal")) { this.getGoal().add((PlanDefinitionGoalComponent) value); + } else if (name.equals("actor")) { + this.getActor().add((PlanDefinitionActorComponent) value); } else if (name.equals("action")) { this.getAction().add((PlanDefinitionActionComponent) value); } else @@ -6242,6 +7691,7 @@ public class PlanDefinition extends MetadataResource { case 666807069: return addRelatedArtifact(); case 166208699: return addLibraryElement(); case 3178259: return addGoal(); + case 92645877: return addActor(); case -1422950858: return addAction(); default: return super.makeProperty(hash, name); } @@ -6260,7 +7710,7 @@ public class PlanDefinition extends MetadataResource { case 3575610: /*type*/ return new String[] {"CodeableConcept"}; case -892481550: /*status*/ return new String[] {"code"}; case -404562712: /*experimental*/ return new String[] {"boolean"}; - case -1867885268: /*subject*/ return new String[] {"CodeableConcept", "Reference"}; + case -1867885268: /*subject*/ return new String[] {"CodeableConcept", "Reference", "canonical"}; case 3076014: /*date*/ return new String[] {"dateTime"}; case 1447404028: /*publisher*/ return new String[] {"string"}; case 951526432: /*contact*/ return new String[] {"ContactDetail"}; @@ -6281,6 +7731,7 @@ public class PlanDefinition extends MetadataResource { case 666807069: /*relatedArtifact*/ return new String[] {"RelatedArtifact"}; case 166208699: /*library*/ return new String[] {"canonical"}; case 3178259: /*goal*/ return new String[] {}; + case 92645877: /*actor*/ return new String[] {}; case -1422950858: /*action*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -6325,6 +7776,10 @@ public class PlanDefinition extends MetadataResource { this.subject = new Reference(); return this.subject; } + else if (name.equals("subjectCanonical")) { + this.subject = new CanonicalType(); + return this.subject; + } else if (name.equals("date")) { throw new FHIRException("Cannot call addChild on a primitive type PlanDefinition.date"); } @@ -6386,6 +7841,9 @@ public class PlanDefinition extends MetadataResource { else if (name.equals("goal")) { return addGoal(); } + else if (name.equals("actor")) { + return addActor(); + } else if (name.equals("action")) { return addAction(); } @@ -6484,6 +7942,11 @@ public class PlanDefinition extends MetadataResource { for (PlanDefinitionGoalComponent i : goal) dst.goal.add(i.copy()); }; + if (actor != null) { + dst.actor = new ArrayList(); + for (PlanDefinitionActorComponent i : actor) + dst.actor.add(i.copy()); + }; if (action != null) { dst.action = new ArrayList(); for (PlanDefinitionActionComponent i : action) @@ -6512,8 +7975,8 @@ public class PlanDefinition extends MetadataResource { && compareDeep(lastReviewDate, o.lastReviewDate, true) && compareDeep(effectivePeriod, o.effectivePeriod, true) && compareDeep(topic, o.topic, true) && compareDeep(author, o.author, true) && compareDeep(editor, o.editor, true) && compareDeep(reviewer, o.reviewer, true) && compareDeep(endorser, o.endorser, true) && compareDeep(relatedArtifact, o.relatedArtifact, true) - && compareDeep(library, o.library, true) && compareDeep(goal, o.goal, true) && compareDeep(action, o.action, true) - ; + && compareDeep(library, o.library, true) && compareDeep(goal, o.goal, true) && compareDeep(actor, o.actor, true) + && compareDeep(action, o.action, true); } @Override @@ -6537,7 +8000,7 @@ public class PlanDefinition extends MetadataResource { , name, title, subtitle, type, status, experimental, subject, date, publisher , contact, description, useContext, jurisdiction, purpose, usage, copyright, approvalDate , lastReviewDate, effectivePeriod, topic, author, editor, reviewer, endorser, relatedArtifact - , library, goal, action); + , library, goal, actor, action); } @Override @@ -6553,7 +8016,7 @@ public class PlanDefinition extends MetadataResource { * Path: PlanDefinition.relatedArtifact.where(type='composed-of').resource
*

*/ - @SearchParamDefinition(name="composed-of", path="PlanDefinition.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="composed-of", path="PlanDefinition.relatedArtifact.where(type='composed-of').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_COMPOSED_OF = "composed-of"; /** * Fluent Client search parameter constant for composed-of @@ -6571,6 +8034,26 @@ public class PlanDefinition extends MetadataResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_COMPOSED_OF = new ca.uhn.fhir.model.api.Include("PlanDefinition:composed-of").toLocked(); + /** + * Search parameter: context + *

+ * Description: A use context assigned to the plan definition
+ * Type: token
+ * Path: (PlanDefinition.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(PlanDefinition.useContext.value as CodeableConcept)", description="A use context assigned to the plan definition", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: A use context assigned to the plan definition
+ * Type: token
+ * Path: (PlanDefinition.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -6591,46 +8074,6 @@ public class PlanDefinition extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the plan definition
- * Type: composite
- * Path: PlanDefinition.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="PlanDefinition.useContext", description="A use context type and quantity- or range-based value assigned to the plan definition", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the plan definition
- * Type: composite
- * Path: PlanDefinition.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: A use context type and value assigned to the plan definition
- * Type: composite
- * Path: PlanDefinition.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="PlanDefinition.useContext", description="A use context type and value assigned to the plan definition", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: A use context type and value assigned to the plan definition
- * Type: composite
- * Path: PlanDefinition.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -6651,26 +8094,6 @@ public class PlanDefinition extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: A use context assigned to the plan definition
- * Type: token
- * Path: (PlanDefinition.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(PlanDefinition.useContext.value as CodeableConcept)", description="A use context assigned to the plan definition", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: A use context assigned to the plan definition
- * Type: token
- * Path: (PlanDefinition.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -6725,7 +8148,7 @@ public class PlanDefinition extends MetadataResource { * Path: PlanDefinition.relatedArtifact.where(type='depends-on').resource | PlanDefinition.library
*

*/ - @SearchParamDefinition(name="depends-on", path="PlanDefinition.relatedArtifact.where(type='depends-on').resource | PlanDefinition.library", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="depends-on", path="PlanDefinition.relatedArtifact.where(type='depends-on').resource | PlanDefinition.library", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_DEPENDS_ON = "depends-on"; /** * Fluent Client search parameter constant for depends-on @@ -6751,7 +8174,7 @@ public class PlanDefinition extends MetadataResource { * Path: PlanDefinition.relatedArtifact.where(type='derived-from').resource
*

*/ - @SearchParamDefinition(name="derived-from", path="PlanDefinition.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="derived-from", path="PlanDefinition.relatedArtifact.where(type='derived-from').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_DERIVED_FROM = "derived-from"; /** * Fluent Client search parameter constant for derived-from @@ -6877,7 +8300,7 @@ public class PlanDefinition extends MetadataResource { * Path: PlanDefinition.relatedArtifact.where(type='predecessor').resource
*

*/ - @SearchParamDefinition(name="predecessor", path="PlanDefinition.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="predecessor", path="PlanDefinition.relatedArtifact.where(type='predecessor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PREDECESSOR = "predecessor"; /** * Fluent Client search parameter constant for predecessor @@ -6943,7 +8366,7 @@ public class PlanDefinition extends MetadataResource { * Path: PlanDefinition.relatedArtifact.where(type='successor').resource
*

*/ - @SearchParamDefinition(name="successor", path="PlanDefinition.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="successor", path="PlanDefinition.relatedArtifact.where(type='successor').resource", description="What resource is being referenced", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_SUCCESSOR = "successor"; /** * Fluent Client search parameter constant for successor @@ -7061,6 +8484,46 @@ public class PlanDefinition extends MetadataResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the plan definition
+ * Type: composite
+ * Path: PlanDefinition.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="PlanDefinition.useContext", description="A use context type and quantity- or range-based value assigned to the plan definition", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the plan definition
+ * Type: composite
+ * Path: PlanDefinition.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: A use context type and value assigned to the plan definition
+ * Type: composite
+ * Path: PlanDefinition.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="PlanDefinition.useContext", description="A use context type and value assigned to the plan definition", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: A use context type and value assigned to the plan definition
+ * Type: composite
+ * Path: PlanDefinition.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Population.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Population.java index 1090b97c0..89bf22d48 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Population.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Population.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Practitioner.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Practitioner.java index 8625894cd..be5368b30 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Practitioner.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Practitioner.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -1265,84 +1265,36 @@ public class Practitioner extends DomainResource { } /** - * Search parameter: active + * Search parameter: address *

- * Description: Whether the practitioner record is active
- * Type: token
- * Path: Practitioner.active
- *

- */ - @SearchParamDefinition(name="active", path="Practitioner.active", description="Whether the practitioner record is active", type="token" ) - public static final String SP_ACTIVE = "active"; - /** - * Fluent Client search parameter constant for active - *

- * Description: Whether the practitioner record is active
- * Type: token
- * Path: Practitioner.active
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVE); + * Description: Multiple Resources: - /** - * Search parameter: communication - *

- * Description: One of the languages that the practitioner can communicate with
- * Type: token
- * Path: Practitioner.communication
- *

- */ - @SearchParamDefinition(name="communication", path="Practitioner.communication", description="One of the languages that the practitioner can communicate with", type="token" ) - public static final String SP_COMMUNICATION = "communication"; - /** - * Fluent Client search parameter constant for communication - *

- * Description: One of the languages that the practitioner can communicate with
- * Type: token
- * Path: Practitioner.communication
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam COMMUNICATION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_COMMUNICATION); - - /** - * Search parameter: identifier - *

- * Description: A practitioner's Identifier
- * Type: token
- * Path: Practitioner.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="Practitioner.identifier", description="A practitioner's Identifier", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: A practitioner's Identifier
- * Type: token
- * Path: Practitioner.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: name - *

- * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
+* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +

* Type: string
- * Path: Practitioner.name
+ * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
*

*/ - @SearchParamDefinition(name="name", path="Practitioner.name", description="A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text", type="string" ) - public static final String SP_NAME = "name"; + @SearchParamDefinition(name="address", path="Patient.address | Person.address | Practitioner.address | RelatedPerson.address", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n", type="string" ) + public static final String SP_ADDRESS = "address"; /** - * Fluent Client search parameter constant for name + * Fluent Client search parameter constant for address *

- * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
+ * Description: Multiple Resources: + +* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +
* Type: string
- * Path: Practitioner.name
+ * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
*

*/ - public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); + public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); /** * Search parameter: address-city @@ -1504,38 +1456,6 @@ public class Practitioner extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ADDRESS_USE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ADDRESS_USE); - /** - * Search parameter: address - *

- * Description: Multiple Resources: - -* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -
- * Type: string
- * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
- *

- */ - @SearchParamDefinition(name="address", path="Patient.address | Person.address | Practitioner.address | RelatedPerson.address", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n", type="string" ) - public static final String SP_ADDRESS = "address"; - /** - * Fluent Client search parameter constant for address - *

- * Description: Multiple Resources: - -* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -
- * Type: string
- * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
- *

- */ - public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); - /** * Search parameter: email *

@@ -1758,6 +1678,86 @@ public class Practitioner extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam TELECOM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TELECOM); + /** + * Search parameter: active + *

+ * Description: Whether the practitioner record is active
+ * Type: token
+ * Path: Practitioner.active
+ *

+ */ + @SearchParamDefinition(name="active", path="Practitioner.active", description="Whether the practitioner record is active", type="token" ) + public static final String SP_ACTIVE = "active"; + /** + * Fluent Client search parameter constant for active + *

+ * Description: Whether the practitioner record is active
+ * Type: token
+ * Path: Practitioner.active
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVE); + + /** + * Search parameter: communication + *

+ * Description: One of the languages that the practitioner can communicate with
+ * Type: token
+ * Path: Practitioner.communication
+ *

+ */ + @SearchParamDefinition(name="communication", path="Practitioner.communication", description="One of the languages that the practitioner can communicate with", type="token" ) + public static final String SP_COMMUNICATION = "communication"; + /** + * Fluent Client search parameter constant for communication + *

+ * Description: One of the languages that the practitioner can communicate with
+ * Type: token
+ * Path: Practitioner.communication
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam COMMUNICATION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_COMMUNICATION); + + /** + * Search parameter: identifier + *

+ * Description: A practitioner's Identifier
+ * Type: token
+ * Path: Practitioner.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="Practitioner.identifier", description="A practitioner's Identifier", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: A practitioner's Identifier
+ * Type: token
+ * Path: Practitioner.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: name + *

+ * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
+ * Type: string
+ * Path: Practitioner.name
+ *

+ */ + @SearchParamDefinition(name="name", path="Practitioner.name", description="A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text", type="string" ) + public static final String SP_NAME = "name"; + /** + * Fluent Client search parameter constant for name + *

+ * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
+ * Type: string
+ * Path: Practitioner.name
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PractitionerRole.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PractitionerRole.java index 846ab3341..234bb8f4f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PractitionerRole.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/PractitionerRole.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -1790,6 +1790,108 @@ public class PractitionerRole extends DomainResource { return ResourceType.PractitionerRole; } + /** + * Search parameter: email + *

+ * Description: Multiple Resources: + +* [Patient](patient.html): A value in an email contact +* [Person](person.html): A value in an email contact +* [Practitioner](practitioner.html): A value in an email contact +* [PractitionerRole](practitionerrole.html): A value in an email contact +* [RelatedPerson](relatedperson.html): A value in an email contact +
+ * Type: token
+ * Path: Patient.telecom.where(system='email') | Person.telecom.where(system='email') | Practitioner.telecom.where(system='email') | PractitionerRole.telecom.where(system='email') | RelatedPerson.telecom.where(system='email')
+ *

+ */ + @SearchParamDefinition(name="email", path="Patient.telecom.where(system='email') | Person.telecom.where(system='email') | Practitioner.telecom.where(system='email') | PractitionerRole.telecom.where(system='email') | RelatedPerson.telecom.where(system='email')", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A value in an email contact\r\n* [Person](person.html): A value in an email contact\r\n* [Practitioner](practitioner.html): A value in an email contact\r\n* [PractitionerRole](practitionerrole.html): A value in an email contact\r\n* [RelatedPerson](relatedperson.html): A value in an email contact\r\n", type="token" ) + public static final String SP_EMAIL = "email"; + /** + * Fluent Client search parameter constant for email + *

+ * Description: Multiple Resources: + +* [Patient](patient.html): A value in an email contact +* [Person](person.html): A value in an email contact +* [Practitioner](practitioner.html): A value in an email contact +* [PractitionerRole](practitionerrole.html): A value in an email contact +* [RelatedPerson](relatedperson.html): A value in an email contact +
+ * Type: token
+ * Path: Patient.telecom.where(system='email') | Person.telecom.where(system='email') | Practitioner.telecom.where(system='email') | PractitionerRole.telecom.where(system='email') | RelatedPerson.telecom.where(system='email')
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam EMAIL = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EMAIL); + + /** + * Search parameter: phone + *

+ * Description: Multiple Resources: + +* [Patient](patient.html): A value in a phone contact +* [Person](person.html): A value in a phone contact +* [Practitioner](practitioner.html): A value in a phone contact +* [PractitionerRole](practitionerrole.html): A value in a phone contact +* [RelatedPerson](relatedperson.html): A value in a phone contact +
+ * Type: token
+ * Path: Patient.telecom.where(system='phone') | Person.telecom.where(system='phone') | Practitioner.telecom.where(system='phone') | PractitionerRole.telecom.where(system='phone') | RelatedPerson.telecom.where(system='phone')
+ *

+ */ + @SearchParamDefinition(name="phone", path="Patient.telecom.where(system='phone') | Person.telecom.where(system='phone') | Practitioner.telecom.where(system='phone') | PractitionerRole.telecom.where(system='phone') | RelatedPerson.telecom.where(system='phone')", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A value in a phone contact\r\n* [Person](person.html): A value in a phone contact\r\n* [Practitioner](practitioner.html): A value in a phone contact\r\n* [PractitionerRole](practitionerrole.html): A value in a phone contact\r\n* [RelatedPerson](relatedperson.html): A value in a phone contact\r\n", type="token" ) + public static final String SP_PHONE = "phone"; + /** + * Fluent Client search parameter constant for phone + *

+ * Description: Multiple Resources: + +* [Patient](patient.html): A value in a phone contact +* [Person](person.html): A value in a phone contact +* [Practitioner](practitioner.html): A value in a phone contact +* [PractitionerRole](practitionerrole.html): A value in a phone contact +* [RelatedPerson](relatedperson.html): A value in a phone contact +
+ * Type: token
+ * Path: Patient.telecom.where(system='phone') | Person.telecom.where(system='phone') | Practitioner.telecom.where(system='phone') | PractitionerRole.telecom.where(system='phone') | RelatedPerson.telecom.where(system='phone')
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam PHONE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PHONE); + + /** + * Search parameter: telecom + *

+ * Description: Multiple Resources: + +* [Patient](patient.html): The value in any kind of telecom details of the patient +* [Person](person.html): The value in any kind of contact +* [Practitioner](practitioner.html): The value in any kind of contact +* [PractitionerRole](practitionerrole.html): The value in any kind of contact +* [RelatedPerson](relatedperson.html): The value in any kind of contact +
+ * Type: token
+ * Path: Patient.telecom | Person.telecom | Practitioner.telecom | PractitionerRole.telecom | RelatedPerson.telecom
+ *

+ */ + @SearchParamDefinition(name="telecom", path="Patient.telecom | Person.telecom | Practitioner.telecom | PractitionerRole.telecom | RelatedPerson.telecom", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): The value in any kind of telecom details of the patient\r\n* [Person](person.html): The value in any kind of contact\r\n* [Practitioner](practitioner.html): The value in any kind of contact\r\n* [PractitionerRole](practitionerrole.html): The value in any kind of contact\r\n* [RelatedPerson](relatedperson.html): The value in any kind of contact\r\n", type="token" ) + public static final String SP_TELECOM = "telecom"; + /** + * Fluent Client search parameter constant for telecom + *

+ * Description: Multiple Resources: + +* [Patient](patient.html): The value in any kind of telecom details of the patient +* [Person](person.html): The value in any kind of contact +* [Practitioner](practitioner.html): The value in any kind of contact +* [PractitionerRole](practitionerrole.html): The value in any kind of contact +* [RelatedPerson](relatedperson.html): The value in any kind of contact +
+ * Type: token
+ * Path: Patient.telecom | Person.telecom | Practitioner.telecom | PractitionerRole.telecom | RelatedPerson.telecom
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam TELECOM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TELECOM); + /** * Search parameter: active *

@@ -2020,108 +2122,6 @@ public class PractitionerRole extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam SPECIALTY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SPECIALTY); - /** - * Search parameter: email - *

- * Description: Multiple Resources: - -* [Patient](patient.html): A value in an email contact -* [Person](person.html): A value in an email contact -* [Practitioner](practitioner.html): A value in an email contact -* [PractitionerRole](practitionerrole.html): A value in an email contact -* [RelatedPerson](relatedperson.html): A value in an email contact -
- * Type: token
- * Path: Patient.telecom.where(system='email') | Person.telecom.where(system='email') | Practitioner.telecom.where(system='email') | PractitionerRole.telecom.where(system='email') | RelatedPerson.telecom.where(system='email')
- *

- */ - @SearchParamDefinition(name="email", path="Patient.telecom.where(system='email') | Person.telecom.where(system='email') | Practitioner.telecom.where(system='email') | PractitionerRole.telecom.where(system='email') | RelatedPerson.telecom.where(system='email')", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A value in an email contact\r\n* [Person](person.html): A value in an email contact\r\n* [Practitioner](practitioner.html): A value in an email contact\r\n* [PractitionerRole](practitionerrole.html): A value in an email contact\r\n* [RelatedPerson](relatedperson.html): A value in an email contact\r\n", type="token" ) - public static final String SP_EMAIL = "email"; - /** - * Fluent Client search parameter constant for email - *

- * Description: Multiple Resources: - -* [Patient](patient.html): A value in an email contact -* [Person](person.html): A value in an email contact -* [Practitioner](practitioner.html): A value in an email contact -* [PractitionerRole](practitionerrole.html): A value in an email contact -* [RelatedPerson](relatedperson.html): A value in an email contact -
- * Type: token
- * Path: Patient.telecom.where(system='email') | Person.telecom.where(system='email') | Practitioner.telecom.where(system='email') | PractitionerRole.telecom.where(system='email') | RelatedPerson.telecom.where(system='email')
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam EMAIL = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EMAIL); - - /** - * Search parameter: phone - *

- * Description: Multiple Resources: - -* [Patient](patient.html): A value in a phone contact -* [Person](person.html): A value in a phone contact -* [Practitioner](practitioner.html): A value in a phone contact -* [PractitionerRole](practitionerrole.html): A value in a phone contact -* [RelatedPerson](relatedperson.html): A value in a phone contact -
- * Type: token
- * Path: Patient.telecom.where(system='phone') | Person.telecom.where(system='phone') | Practitioner.telecom.where(system='phone') | PractitionerRole.telecom.where(system='phone') | RelatedPerson.telecom.where(system='phone')
- *

- */ - @SearchParamDefinition(name="phone", path="Patient.telecom.where(system='phone') | Person.telecom.where(system='phone') | Practitioner.telecom.where(system='phone') | PractitionerRole.telecom.where(system='phone') | RelatedPerson.telecom.where(system='phone')", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A value in a phone contact\r\n* [Person](person.html): A value in a phone contact\r\n* [Practitioner](practitioner.html): A value in a phone contact\r\n* [PractitionerRole](practitionerrole.html): A value in a phone contact\r\n* [RelatedPerson](relatedperson.html): A value in a phone contact\r\n", type="token" ) - public static final String SP_PHONE = "phone"; - /** - * Fluent Client search parameter constant for phone - *

- * Description: Multiple Resources: - -* [Patient](patient.html): A value in a phone contact -* [Person](person.html): A value in a phone contact -* [Practitioner](practitioner.html): A value in a phone contact -* [PractitionerRole](practitionerrole.html): A value in a phone contact -* [RelatedPerson](relatedperson.html): A value in a phone contact -
- * Type: token
- * Path: Patient.telecom.where(system='phone') | Person.telecom.where(system='phone') | Practitioner.telecom.where(system='phone') | PractitionerRole.telecom.where(system='phone') | RelatedPerson.telecom.where(system='phone')
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam PHONE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PHONE); - - /** - * Search parameter: telecom - *

- * Description: Multiple Resources: - -* [Patient](patient.html): The value in any kind of telecom details of the patient -* [Person](person.html): The value in any kind of contact -* [Practitioner](practitioner.html): The value in any kind of contact -* [PractitionerRole](practitionerrole.html): The value in any kind of contact -* [RelatedPerson](relatedperson.html): The value in any kind of contact -
- * Type: token
- * Path: Patient.telecom | Person.telecom | Practitioner.telecom | PractitionerRole.telecom | RelatedPerson.telecom
- *

- */ - @SearchParamDefinition(name="telecom", path="Patient.telecom | Person.telecom | Practitioner.telecom | PractitionerRole.telecom | RelatedPerson.telecom", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): The value in any kind of telecom details of the patient\r\n* [Person](person.html): The value in any kind of contact\r\n* [Practitioner](practitioner.html): The value in any kind of contact\r\n* [PractitionerRole](practitionerrole.html): The value in any kind of contact\r\n* [RelatedPerson](relatedperson.html): The value in any kind of contact\r\n", type="token" ) - public static final String SP_TELECOM = "telecom"; - /** - * Fluent Client search parameter constant for telecom - *

- * Description: Multiple Resources: - -* [Patient](patient.html): The value in any kind of telecom details of the patient -* [Person](person.html): The value in any kind of contact -* [Practitioner](practitioner.html): The value in any kind of contact -* [PractitionerRole](practitionerrole.html): The value in any kind of contact -* [RelatedPerson](relatedperson.html): The value in any kind of contact -
- * Type: token
- * Path: Patient.telecom | Person.telecom | Practitioner.telecom | PractitionerRole.telecom | RelatedPerson.telecom
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam TELECOM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TELECOM); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Procedure.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Procedure.java index b596e8e2a..5967ce856 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Procedure.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Procedure.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -48,7 +48,7 @@ import ca.uhn.fhir.model.api.annotation.Description; import ca.uhn.fhir.model.api.annotation.Block; /** - * An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy. + * An action that is or was performed on or for a patient, practitioner, device, organization, or location. For example, this can be a physical intervention on a patient like an operation, or less invasive like long term services, counseling, or hypnotherapy. This can be a quality or safety inspection for a location, organization, or device. This can be an accreditation procedure on a practitioner for licensing. */ @ResourceDef(name="Procedure", profile="http://hl7.org/fhir/StructureDefinition/Procedure") public class Procedure extends DomainResource { @@ -589,10 +589,10 @@ public class Procedure extends DomainResource { protected CodeableConcept code; /** - * The person, animal or group on which the procedure was performed. + * On whom or what the procedure was performed. This is usually an individual human, but can also be performed on animals, groups of humans or animals, organizations or practitioners (for licensing), locations or devices (for safety inspections or regulatory authorizations). */ - @Child(name = "subject", type = {Patient.class, Group.class}, order=9, min=1, max=1, modifier=false, summary=true) - @Description(shortDefinition="Who the procedure was performed on", formalDefinition="The person, animal or group on which the procedure was performed." ) + @Child(name = "subject", type = {Patient.class, Group.class, Device.class, Practitioner.class, Organization.class, Location.class}, order=9, min=1, max=1, modifier=false, summary=true) + @Description(shortDefinition="Individual or entity the procedure was performed on", formalDefinition="On whom or what the procedure was performed. This is usually an individual human, but can also be performed on animals, groups of humans or animals, organizations or practitioners (for licensing), locations or devices (for safety inspections or regulatory authorizations)." ) protected Reference subject; /** @@ -717,10 +717,17 @@ public class Procedure extends DomainResource { */ @Child(name = "used", type = {CodeableReference.class}, order=26, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Items used during procedure", formalDefinition="Identifies medications, devices and any other substance used as part of the procedure." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-kind") + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/device-type") protected List used; - private static final long serialVersionUID = 1060230234L; + /** + * Other resources from the patient record that may be relevant to the procedure. The information from these resources was either used to create the instance or is provided to help with its interpretation. This extension should not be used if more specific inline elements or extensions are available. + */ + @Child(name = "supportingInfo", type = {Reference.class}, order=27, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Extra information relevant to the procedure", formalDefinition="Other resources from the patient record that may be relevant to the procedure. The information from these resources was either used to create the instance or is provided to help with its interpretation. This extension should not be used if more specific inline elements or extensions are available." ) + protected List supportingInfo; + + private static final long serialVersionUID = -1752782660L; /** * Constructor @@ -1166,7 +1173,7 @@ public class Procedure extends DomainResource { } /** - * @return {@link #subject} (The person, animal or group on which the procedure was performed.) + * @return {@link #subject} (On whom or what the procedure was performed. This is usually an individual human, but can also be performed on animals, groups of humans or animals, organizations or practitioners (for licensing), locations or devices (for safety inspections or regulatory authorizations).) */ public Reference getSubject() { if (this.subject == null) @@ -1182,7 +1189,7 @@ public class Procedure extends DomainResource { } /** - * @param value {@link #subject} (The person, animal or group on which the procedure was performed.) + * @param value {@link #subject} (On whom or what the procedure was performed. This is usually an individual human, but can also be performed on animals, groups of humans or animals, organizations or practitioners (for licensing), locations or devices (for safety inspections or regulatory authorizations).) */ public Procedure setSubject(Reference value) { this.subject = value; @@ -2026,6 +2033,59 @@ public class Procedure extends DomainResource { return getUsed().get(0); } + /** + * @return {@link #supportingInfo} (Other resources from the patient record that may be relevant to the procedure. The information from these resources was either used to create the instance or is provided to help with its interpretation. This extension should not be used if more specific inline elements or extensions are available.) + */ + public List getSupportingInfo() { + if (this.supportingInfo == null) + this.supportingInfo = new ArrayList(); + return this.supportingInfo; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public Procedure setSupportingInfo(List theSupportingInfo) { + this.supportingInfo = theSupportingInfo; + return this; + } + + public boolean hasSupportingInfo() { + if (this.supportingInfo == null) + return false; + for (Reference item : this.supportingInfo) + if (!item.isEmpty()) + return true; + return false; + } + + public Reference addSupportingInfo() { //3 + Reference t = new Reference(); + if (this.supportingInfo == null) + this.supportingInfo = new ArrayList(); + this.supportingInfo.add(t); + return t; + } + + public Procedure addSupportingInfo(Reference t) { //3 + if (t == null) + return this; + if (this.supportingInfo == null) + this.supportingInfo = new ArrayList(); + this.supportingInfo.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #supportingInfo}, creating it if it does not already exist {3} + */ + public Reference getSupportingInfoFirstRep() { + if (getSupportingInfo().isEmpty()) { + addSupportingInfo(); + } + return getSupportingInfo().get(0); + } + protected void listChildren(List children) { super.listChildren(children); children.add(new Property("identifier", "Identifier", "Business identifiers assigned to this procedure by the performer or other systems which remain constant as the resource is updated and is propagated from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier)); @@ -2037,7 +2097,7 @@ public class Procedure extends DomainResource { children.add(new Property("statusReason", "CodeableConcept", "Captures the reason for the current state of the procedure.", 0, 1, statusReason)); children.add(new Property("category", "CodeableConcept", "A code that classifies the procedure for searching, sorting and display purposes (e.g. \"Surgical Procedure\").", 0, java.lang.Integer.MAX_VALUE, category)); children.add(new Property("code", "CodeableConcept", "The specific procedure that is performed. Use text if the exact nature of the procedure cannot be coded (e.g. \"Laparoscopic Appendectomy\").", 0, 1, code)); - children.add(new Property("subject", "Reference(Patient|Group)", "The person, animal or group on which the procedure was performed.", 0, 1, subject)); + children.add(new Property("subject", "Reference(Patient|Group|Device|Practitioner|Organization|Location)", "On whom or what the procedure was performed. This is usually an individual human, but can also be performed on animals, groups of humans or animals, organizations or practitioners (for licensing), locations or devices (for safety inspections or regulatory authorizations).", 0, 1, subject)); children.add(new Property("encounter", "Reference(Encounter)", "The Encounter during which this Procedure was created or performed or to which the creation of this record is tightly associated.", 0, 1, encounter)); children.add(new Property("occurrence[x]", "dateTime|Period|string|Age|Range|Timing", "Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.", 0, 1, occurrence)); children.add(new Property("recorded", "dateTime", "The date the occurrence of the procedure was first captured in the record regardless of Procedure.status (potentially after the occurrence of the event).", 0, 1, recorded)); @@ -2055,6 +2115,7 @@ public class Procedure extends DomainResource { children.add(new Property("note", "Annotation", "Any other notes and comments about the procedure.", 0, java.lang.Integer.MAX_VALUE, note)); children.add(new Property("focalDevice", "", "A device that is implanted, removed or otherwise manipulated (calibration, battery replacement, fitting a prosthesis, attaching a wound-vac, etc.) as a focal portion of the Procedure.", 0, java.lang.Integer.MAX_VALUE, focalDevice)); children.add(new Property("used", "CodeableReference(Device|Medication|Substance|BiologicallyDerivedProduct)", "Identifies medications, devices and any other substance used as part of the procedure.", 0, java.lang.Integer.MAX_VALUE, used)); + children.add(new Property("supportingInfo", "Reference(Any)", "Other resources from the patient record that may be relevant to the procedure. The information from these resources was either used to create the instance or is provided to help with its interpretation. This extension should not be used if more specific inline elements or extensions are available.", 0, java.lang.Integer.MAX_VALUE, supportingInfo)); } @Override @@ -2069,7 +2130,7 @@ public class Procedure extends DomainResource { case 2051346646: /*statusReason*/ return new Property("statusReason", "CodeableConcept", "Captures the reason for the current state of the procedure.", 0, 1, statusReason); case 50511102: /*category*/ return new Property("category", "CodeableConcept", "A code that classifies the procedure for searching, sorting and display purposes (e.g. \"Surgical Procedure\").", 0, java.lang.Integer.MAX_VALUE, category); case 3059181: /*code*/ return new Property("code", "CodeableConcept", "The specific procedure that is performed. Use text if the exact nature of the procedure cannot be coded (e.g. \"Laparoscopic Appendectomy\").", 0, 1, code); - case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group)", "The person, animal or group on which the procedure was performed.", 0, 1, subject); + case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group|Device|Practitioner|Organization|Location)", "On whom or what the procedure was performed. This is usually an individual human, but can also be performed on animals, groups of humans or animals, organizations or practitioners (for licensing), locations or devices (for safety inspections or regulatory authorizations).", 0, 1, subject); case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "The Encounter during which this Procedure was created or performed or to which the creation of this record is tightly associated.", 0, 1, encounter); case -2022646513: /*occurrence[x]*/ return new Property("occurrence[x]", "dateTime|Period|string|Age|Range|Timing", "Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.", 0, 1, occurrence); case 1687874001: /*occurrence*/ return new Property("occurrence[x]", "dateTime|Period|string|Age|Range|Timing", "Estimated or actual date, date-time, period, or age when the procedure did occur or is occurring. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.", 0, 1, occurrence); @@ -2097,6 +2158,7 @@ public class Procedure extends DomainResource { case 3387378: /*note*/ return new Property("note", "Annotation", "Any other notes and comments about the procedure.", 0, java.lang.Integer.MAX_VALUE, note); case -1129235173: /*focalDevice*/ return new Property("focalDevice", "", "A device that is implanted, removed or otherwise manipulated (calibration, battery replacement, fitting a prosthesis, attaching a wound-vac, etc.) as a focal portion of the Procedure.", 0, java.lang.Integer.MAX_VALUE, focalDevice); case 3599293: /*used*/ return new Property("used", "CodeableReference(Device|Medication|Substance|BiologicallyDerivedProduct)", "Identifies medications, devices and any other substance used as part of the procedure.", 0, java.lang.Integer.MAX_VALUE, used); + case 1922406657: /*supportingInfo*/ return new Property("supportingInfo", "Reference(Any)", "Other resources from the patient record that may be relevant to the procedure. The information from these resources was either used to create the instance or is provided to help with its interpretation. This extension should not be used if more specific inline elements or extensions are available.", 0, java.lang.Integer.MAX_VALUE, supportingInfo); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -2132,6 +2194,7 @@ public class Procedure extends DomainResource { case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation case -1129235173: /*focalDevice*/ return this.focalDevice == null ? new Base[0] : this.focalDevice.toArray(new Base[this.focalDevice.size()]); // ProcedureFocalDeviceComponent case 3599293: /*used*/ return this.used == null ? new Base[0] : this.used.toArray(new Base[this.used.size()]); // CodeableReference + case 1922406657: /*supportingInfo*/ return this.supportingInfo == null ? new Base[0] : this.supportingInfo.toArray(new Base[this.supportingInfo.size()]); // Reference default: return super.getProperty(hash, name, checkValid); } @@ -2222,6 +2285,9 @@ public class Procedure extends DomainResource { case 3599293: // used this.getUsed().add(TypeConvertor.castToCodeableReference(value)); // CodeableReference return value; + case 1922406657: // supportingInfo + this.getSupportingInfo().add(TypeConvertor.castToReference(value)); // Reference + return value; default: return super.setProperty(hash, name, value); } @@ -2284,6 +2350,8 @@ public class Procedure extends DomainResource { this.getFocalDevice().add((ProcedureFocalDeviceComponent) value); } else if (name.equals("used")) { this.getUsed().add(TypeConvertor.castToCodeableReference(value)); + } else if (name.equals("supportingInfo")) { + this.getSupportingInfo().add(TypeConvertor.castToReference(value)); } else return super.setProperty(name, value); return value; @@ -2321,6 +2389,7 @@ public class Procedure extends DomainResource { case 3387378: return addNote(); case -1129235173: return addFocalDevice(); case 3599293: return addUsed(); + case 1922406657: return addSupportingInfo(); default: return super.makeProperty(hash, name); } @@ -2356,6 +2425,7 @@ public class Procedure extends DomainResource { case 3387378: /*note*/ return new String[] {"Annotation"}; case -1129235173: /*focalDevice*/ return new String[] {}; case 3599293: /*used*/ return new String[] {"CodeableReference"}; + case 1922406657: /*supportingInfo*/ return new String[] {"Reference"}; default: return super.getTypesForProperty(hash, name); } @@ -2477,6 +2547,9 @@ public class Procedure extends DomainResource { else if (name.equals("used")) { return addUsed(); } + else if (name.equals("supportingInfo")) { + return addSupportingInfo(); + } else return super.addChild(name); } @@ -2585,6 +2658,11 @@ public class Procedure extends DomainResource { for (CodeableReference i : used) dst.used.add(i.copy()); }; + if (supportingInfo != null) { + dst.supportingInfo = new ArrayList(); + for (Reference i : supportingInfo) + dst.supportingInfo.add(i.copy()); + }; } protected Procedure typedCopy() { @@ -2608,7 +2686,7 @@ public class Procedure extends DomainResource { && compareDeep(outcome, o.outcome, true) && compareDeep(report, o.report, true) && compareDeep(complication, o.complication, true) && compareDeep(complicationDetail, o.complicationDetail, true) && compareDeep(followUp, o.followUp, true) && compareDeep(note, o.note, true) && compareDeep(focalDevice, o.focalDevice, true) && compareDeep(used, o.used, true) - ; + && compareDeep(supportingInfo, o.supportingInfo, true); } @Override @@ -2627,7 +2705,7 @@ public class Procedure extends DomainResource { , instantiatesUri, basedOn, partOf, status, statusReason, category, code, subject , encounter, occurrence, recorded, recorder, reported, performer, location, reason , bodySite, outcome, report, complication, complicationDetail, followUp, note - , focalDevice, used); + , focalDevice, used, supportingInfo); } @Override @@ -2635,6 +2713,348 @@ public class Procedure extends DomainResource { return ResourceType.Procedure; } + /** + * Search parameter: code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + + /** + * Search parameter: date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) + public static final String SP_DATE = "date"; + /** + * Fluent Client search parameter constant for date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Procedure:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Procedure:patient").toLocked(); + + /** + * Search parameter: encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) + public static final String SP_ENCOUNTER = "encounter"; + /** + * Fluent Client search parameter constant for encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Procedure:encounter". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("Procedure:encounter").toLocked(); + /** * Search parameter: based-on *

@@ -2851,6 +3271,32 @@ public class Procedure extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_REASON_REFERENCE = new ca.uhn.fhir.model.api.Include("Procedure:reason-reference").toLocked(); + /** + * Search parameter: report + *

+ * Description: Any report resulting from the procedure
+ * Type: reference
+ * Path: Procedure.report
+ *

+ */ + @SearchParamDefinition(name="report", path="Procedure.report", description="Any report resulting from the procedure", type="reference", target={Composition.class, DiagnosticReport.class, DocumentReference.class } ) + public static final String SP_REPORT = "report"; + /** + * Fluent Client search parameter constant for report + *

+ * Description: Any report resulting from the procedure
+ * Type: reference
+ * Path: Procedure.report
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REPORT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REPORT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Procedure:report". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_REPORT = new ca.uhn.fhir.model.api.Include("Procedure:report").toLocked(); + /** * Search parameter: status *

@@ -2879,7 +3325,7 @@ public class Procedure extends DomainResource { * Path: Procedure.subject
*

*/ - @SearchParamDefinition(name="subject", path="Procedure.subject", description="Search by subject", type="reference", target={Group.class, Patient.class } ) + @SearchParamDefinition(name="subject", path="Procedure.subject", description="Search by subject", type="reference", target={Device.class, Group.class, Location.class, Organization.class, Patient.class, Practitioner.class } ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject @@ -2897,348 +3343,6 @@ public class Procedure extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("Procedure:subject").toLocked(); - /** - * Search parameter: code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) - public static final String SP_CODE = "code"; - /** - * Fluent Client search parameter constant for code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); - - /** - * Search parameter: date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) - public static final String SP_DATE = "date"; - /** - * Fluent Client search parameter constant for date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); - - /** - * Search parameter: encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) - public static final String SP_ENCOUNTER = "encounter"; - /** - * Fluent Client search parameter constant for encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Procedure:encounter". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("Procedure:encounter").toLocked(); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Procedure:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Procedure:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProdCharacteristic.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProdCharacteristic.java index 7e3f1cba1..50cf913ab 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProdCharacteristic.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProdCharacteristic.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProductShelfLife.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProductShelfLife.java index 842239034..b17054bee 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProductShelfLife.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ProductShelfLife.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Provenance.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Provenance.java index dff9902ce..56cb0d655 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Provenance.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Provenance.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -103,7 +103,6 @@ public class Provenance extends DomainResource { case QUOTATION: return "quotation"; case SOURCE: return "source"; case REMOVAL: return "removal"; - case NULL: return null; default: return "?"; } } @@ -114,7 +113,6 @@ public class Provenance extends DomainResource { case QUOTATION: return "http://hl7.org/fhir/provenance-entity-role"; case SOURCE: return "http://hl7.org/fhir/provenance-entity-role"; case REMOVAL: return "http://hl7.org/fhir/provenance-entity-role"; - case NULL: return null; default: return "?"; } } @@ -125,7 +123,6 @@ public class Provenance extends DomainResource { case QUOTATION: return "The repeat of (some or all of) an entity, such as text or image, by someone who might or might not be its original author."; case SOURCE: return "A primary source for a topic refers to something produced by some agent with direct experience and knowledge about the topic, at the time of the topic's study, without benefit from hindsight."; case REMOVAL: return "A derivation for which the entity is removed from accessibility usually through the use of the Delete operation."; - case NULL: return null; default: return "?"; } } @@ -136,7 +133,6 @@ public class Provenance extends DomainResource { case QUOTATION: return "Quotation"; case SOURCE: return "Source"; case REMOVAL: return "Removal"; - case NULL: return null; default: return "?"; } } @@ -208,10 +204,10 @@ public class Provenance extends DomainResource { protected CodeableConcept type; /** - * The functional or structural roles of the agent indicating the agent's competency. The security role enabling the agent with respect to the activity. + * The structural roles of the agent indicating the agent's competency. The security role enabling the agent with respect to the activity. */ @Child(name = "role", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="What the agents role was", formalDefinition="The functional or structural roles of the agent indicating the agent's competency. The security role enabling the agent with respect to the activity." ) + @Description(shortDefinition="What the agents role was", formalDefinition="The structural roles of the agent indicating the agent's competency. The security role enabling the agent with respect to the activity." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/security-role-type") protected List role; @@ -219,14 +215,14 @@ public class Provenance extends DomainResource { * The individual, device or organization that participated in the event. */ @Child(name = "who", type = {Practitioner.class, PractitionerRole.class, RelatedPerson.class, Patient.class, Device.class, Organization.class}, order=3, min=1, max=1, modifier=false, summary=true) - @Description(shortDefinition="Who participated", formalDefinition="The individual, device or organization that participated in the event." ) + @Description(shortDefinition="The agent that participated in the event", formalDefinition="The individual, device or organization that participated in the event." ) protected Reference who; /** - * The individual, device, or organization for whom the change was made. + * The agent that delegated authority to perform the activity performed by the agent.who element. */ @Child(name = "onBehalfOf", type = {Practitioner.class, PractitionerRole.class, RelatedPerson.class, Patient.class, Device.class, Organization.class}, order=4, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Who the agent is representing", formalDefinition="The individual, device, or organization for whom the change was made." ) + @Description(shortDefinition="The agent that delegated", formalDefinition="The agent that delegated authority to perform the activity performed by the agent.who element." ) protected Reference onBehalfOf; private static final long serialVersionUID = 642650054L; @@ -271,7 +267,7 @@ public class Provenance extends DomainResource { } /** - * @return {@link #role} (The functional or structural roles of the agent indicating the agent's competency. The security role enabling the agent with respect to the activity.) + * @return {@link #role} (The structural roles of the agent indicating the agent's competency. The security role enabling the agent with respect to the activity.) */ public List getRole() { if (this.role == null) @@ -348,7 +344,7 @@ public class Provenance extends DomainResource { } /** - * @return {@link #onBehalfOf} (The individual, device, or organization for whom the change was made.) + * @return {@link #onBehalfOf} (The agent that delegated authority to perform the activity performed by the agent.who element.) */ public Reference getOnBehalfOf() { if (this.onBehalfOf == null) @@ -364,7 +360,7 @@ public class Provenance extends DomainResource { } /** - * @param value {@link #onBehalfOf} (The individual, device, or organization for whom the change was made.) + * @param value {@link #onBehalfOf} (The agent that delegated authority to perform the activity performed by the agent.who element.) */ public ProvenanceAgentComponent setOnBehalfOf(Reference value) { this.onBehalfOf = value; @@ -374,18 +370,18 @@ public class Provenance extends DomainResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("type", "CodeableConcept", "The primary act of participation of the agent with respect to the activity.", 0, 1, type)); - children.add(new Property("role", "CodeableConcept", "The functional or structural roles of the agent indicating the agent's competency. The security role enabling the agent with respect to the activity.", 0, java.lang.Integer.MAX_VALUE, role)); + children.add(new Property("role", "CodeableConcept", "The structural roles of the agent indicating the agent's competency. The security role enabling the agent with respect to the activity.", 0, java.lang.Integer.MAX_VALUE, role)); children.add(new Property("who", "Reference(Practitioner|PractitionerRole|RelatedPerson|Patient|Device|Organization)", "The individual, device or organization that participated in the event.", 0, 1, who)); - children.add(new Property("onBehalfOf", "Reference(Practitioner|PractitionerRole|RelatedPerson|Patient|Device|Organization)", "The individual, device, or organization for whom the change was made.", 0, 1, onBehalfOf)); + children.add(new Property("onBehalfOf", "Reference(Practitioner|PractitionerRole|RelatedPerson|Patient|Device|Organization)", "The agent that delegated authority to perform the activity performed by the agent.who element.", 0, 1, onBehalfOf)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The primary act of participation of the agent with respect to the activity.", 0, 1, type); - case 3506294: /*role*/ return new Property("role", "CodeableConcept", "The functional or structural roles of the agent indicating the agent's competency. The security role enabling the agent with respect to the activity.", 0, java.lang.Integer.MAX_VALUE, role); + case 3506294: /*role*/ return new Property("role", "CodeableConcept", "The structural roles of the agent indicating the agent's competency. The security role enabling the agent with respect to the activity.", 0, java.lang.Integer.MAX_VALUE, role); case 117694: /*who*/ return new Property("who", "Reference(Practitioner|PractitionerRole|RelatedPerson|Patient|Device|Organization)", "The individual, device or organization that participated in the event.", 0, 1, who); - case -14402964: /*onBehalfOf*/ return new Property("onBehalfOf", "Reference(Practitioner|PractitionerRole|RelatedPerson|Patient|Device|Organization)", "The individual, device, or organization for whom the change was made.", 0, 1, onBehalfOf); + case -14402964: /*onBehalfOf*/ return new Property("onBehalfOf", "Reference(Practitioner|PractitionerRole|RelatedPerson|Patient|Device|Organization)", "The agent that delegated authority to perform the activity performed by the agent.who element.", 0, 1, onBehalfOf); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -897,28 +893,42 @@ public class Provenance extends DomainResource { @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/provenance-activity-type") protected CodeableConcept activity; + /** + * Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon. + */ + @Child(name = "basedOn", type = {CarePlan.class, DeviceRequest.class, ImmunizationRecommendation.class, MedicationRequest.class, NutritionOrder.class, ServiceRequest.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Workflow authorization within which this event occurred", formalDefinition="Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon." ) + protected List basedOn; + + /** + * This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests). + */ + @Child(name = "encounter", type = {Encounter.class}, order=8, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Encounter within which this event occurred or which the event is tightly associated", formalDefinition="This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests)." ) + protected Reference encounter; + /** * An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place. */ - @Child(name = "agent", type = {}, order=7, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "agent", type = {}, order=9, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Actor involved", formalDefinition="An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place." ) protected List agent; /** * An entity used in this activity. */ - @Child(name = "entity", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "entity", type = {}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="An entity used in this activity", formalDefinition="An entity used in this activity." ) protected List entity; /** * A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated. */ - @Child(name = "signature", type = {Signature.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "signature", type = {Signature.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Signature on target", formalDefinition="A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated." ) protected List signature; - private static final long serialVersionUID = -859992471L; + private static final long serialVersionUID = -1741380452L; /** * Constructor @@ -1248,6 +1258,83 @@ public class Provenance extends DomainResource { return this; } + /** + * @return {@link #basedOn} (Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon.) + */ + public List getBasedOn() { + if (this.basedOn == null) + this.basedOn = new ArrayList(); + return this.basedOn; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public Provenance setBasedOn(List theBasedOn) { + this.basedOn = theBasedOn; + return this; + } + + public boolean hasBasedOn() { + if (this.basedOn == null) + return false; + for (Reference item : this.basedOn) + if (!item.isEmpty()) + return true; + return false; + } + + public Reference addBasedOn() { //3 + Reference t = new Reference(); + if (this.basedOn == null) + this.basedOn = new ArrayList(); + this.basedOn.add(t); + return t; + } + + public Provenance addBasedOn(Reference t) { //3 + if (t == null) + return this; + if (this.basedOn == null) + this.basedOn = new ArrayList(); + this.basedOn.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #basedOn}, creating it if it does not already exist {3} + */ + public Reference getBasedOnFirstRep() { + if (getBasedOn().isEmpty()) { + addBasedOn(); + } + return getBasedOn().get(0); + } + + /** + * @return {@link #encounter} (This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).) + */ + public Reference getEncounter() { + if (this.encounter == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Provenance.encounter"); + else if (Configuration.doAutoCreate()) + this.encounter = new Reference(); // cc + return this.encounter; + } + + public boolean hasEncounter() { + return this.encounter != null && !this.encounter.isEmpty(); + } + + /** + * @param value {@link #encounter} (This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).) + */ + public Provenance setEncounter(Reference value) { + this.encounter = value; + return this; + } + /** * @return {@link #agent} (An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place.) */ @@ -1416,6 +1503,8 @@ public class Provenance extends DomainResource { children.add(new Property("location", "Reference(Location)", "Where the activity occurred, if relevant.", 0, 1, location)); children.add(new Property("reason", "CodeableConcept", "The reason that the activity was taking place.", 0, java.lang.Integer.MAX_VALUE, reason)); children.add(new Property("activity", "CodeableConcept", "An activity is something that occurs over a period of time and acts upon or with entities; it may include consuming, processing, transforming, modifying, relocating, using, or generating entities.", 0, 1, activity)); + children.add(new Property("basedOn", "Reference(CarePlan|DeviceRequest|ImmunizationRecommendation|MedicationRequest|NutritionOrder|ServiceRequest)", "Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon.", 0, java.lang.Integer.MAX_VALUE, basedOn)); + children.add(new Property("encounter", "Reference(Encounter)", "This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).", 0, 1, encounter)); children.add(new Property("agent", "", "An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place.", 0, java.lang.Integer.MAX_VALUE, agent)); children.add(new Property("entity", "", "An entity used in this activity.", 0, java.lang.Integer.MAX_VALUE, entity)); children.add(new Property("signature", "Signature", "A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated.", 0, java.lang.Integer.MAX_VALUE, signature)); @@ -1434,6 +1523,8 @@ public class Provenance extends DomainResource { case 1901043637: /*location*/ return new Property("location", "Reference(Location)", "Where the activity occurred, if relevant.", 0, 1, location); case -934964668: /*reason*/ return new Property("reason", "CodeableConcept", "The reason that the activity was taking place.", 0, java.lang.Integer.MAX_VALUE, reason); case -1655966961: /*activity*/ return new Property("activity", "CodeableConcept", "An activity is something that occurs over a period of time and acts upon or with entities; it may include consuming, processing, transforming, modifying, relocating, using, or generating entities.", 0, 1, activity); + case -332612366: /*basedOn*/ return new Property("basedOn", "Reference(CarePlan|DeviceRequest|ImmunizationRecommendation|MedicationRequest|NutritionOrder|ServiceRequest)", "Allows tracing of authorizatino for the events and tracking whether proposals/recommendations were acted upon.", 0, java.lang.Integer.MAX_VALUE, basedOn); + case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "This will typically be the encounter the event occurred, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission lab tests).", 0, 1, encounter); case 92750597: /*agent*/ return new Property("agent", "", "An actor taking a role in an activity for which it can be assigned some degree of responsibility for the activity taking place.", 0, java.lang.Integer.MAX_VALUE, agent); case -1298275357: /*entity*/ return new Property("entity", "", "An entity used in this activity.", 0, java.lang.Integer.MAX_VALUE, entity); case 1073584312: /*signature*/ return new Property("signature", "Signature", "A digital signature on the target Reference(s). The signer should match a Provenance.agent. The purpose of the signature is indicated.", 0, java.lang.Integer.MAX_VALUE, signature); @@ -1452,6 +1543,8 @@ public class Provenance extends DomainResource { case 1901043637: /*location*/ return this.location == null ? new Base[0] : new Base[] {this.location}; // Reference case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableConcept case -1655966961: /*activity*/ return this.activity == null ? new Base[0] : new Base[] {this.activity}; // CodeableConcept + case -332612366: /*basedOn*/ return this.basedOn == null ? new Base[0] : this.basedOn.toArray(new Base[this.basedOn.size()]); // Reference + case 1524132147: /*encounter*/ return this.encounter == null ? new Base[0] : new Base[] {this.encounter}; // Reference case 92750597: /*agent*/ return this.agent == null ? new Base[0] : this.agent.toArray(new Base[this.agent.size()]); // ProvenanceAgentComponent case -1298275357: /*entity*/ return this.entity == null ? new Base[0] : this.entity.toArray(new Base[this.entity.size()]); // ProvenanceEntityComponent case 1073584312: /*signature*/ return this.signature == null ? new Base[0] : this.signature.toArray(new Base[this.signature.size()]); // Signature @@ -1484,6 +1577,12 @@ public class Provenance extends DomainResource { case -1655966961: // activity this.activity = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; + case -332612366: // basedOn + this.getBasedOn().add(TypeConvertor.castToReference(value)); // Reference + return value; + case 1524132147: // encounter + this.encounter = TypeConvertor.castToReference(value); // Reference + return value; case 92750597: // agent this.getAgent().add((ProvenanceAgentComponent) value); // ProvenanceAgentComponent return value; @@ -1514,6 +1613,10 @@ public class Provenance extends DomainResource { this.getReason().add(TypeConvertor.castToCodeableConcept(value)); } else if (name.equals("activity")) { this.activity = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("basedOn")) { + this.getBasedOn().add(TypeConvertor.castToReference(value)); + } else if (name.equals("encounter")) { + this.encounter = TypeConvertor.castToReference(value); // Reference } else if (name.equals("agent")) { this.getAgent().add((ProvenanceAgentComponent) value); } else if (name.equals("entity")) { @@ -1536,6 +1639,8 @@ public class Provenance extends DomainResource { case 1901043637: return getLocation(); case -934964668: return addReason(); case -1655966961: return getActivity(); + case -332612366: return addBasedOn(); + case 1524132147: return getEncounter(); case 92750597: return addAgent(); case -1298275357: return addEntity(); case 1073584312: return addSignature(); @@ -1554,6 +1659,8 @@ public class Provenance extends DomainResource { case 1901043637: /*location*/ return new String[] {"Reference"}; case -934964668: /*reason*/ return new String[] {"CodeableConcept"}; case -1655966961: /*activity*/ return new String[] {"CodeableConcept"}; + case -332612366: /*basedOn*/ return new String[] {"Reference"}; + case 1524132147: /*encounter*/ return new String[] {"Reference"}; case 92750597: /*agent*/ return new String[] {}; case -1298275357: /*entity*/ return new String[] {}; case 1073584312: /*signature*/ return new String[] {"Signature"}; @@ -1592,6 +1699,13 @@ public class Provenance extends DomainResource { this.activity = new CodeableConcept(); return this.activity; } + else if (name.equals("basedOn")) { + return addBasedOn(); + } + else if (name.equals("encounter")) { + this.encounter = new Reference(); + return this.encounter; + } else if (name.equals("agent")) { return addAgent(); } @@ -1637,6 +1751,12 @@ public class Provenance extends DomainResource { dst.reason.add(i.copy()); }; dst.activity = activity == null ? null : activity.copy(); + if (basedOn != null) { + dst.basedOn = new ArrayList(); + for (Reference i : basedOn) + dst.basedOn.add(i.copy()); + }; + dst.encounter = encounter == null ? null : encounter.copy(); if (agent != null) { dst.agent = new ArrayList(); for (ProvenanceAgentComponent i : agent) @@ -1667,8 +1787,9 @@ public class Provenance extends DomainResource { Provenance o = (Provenance) other_; return compareDeep(target, o.target, true) && compareDeep(occurred, o.occurred, true) && compareDeep(recorded, o.recorded, true) && compareDeep(policy, o.policy, true) && compareDeep(location, o.location, true) && compareDeep(reason, o.reason, true) - && compareDeep(activity, o.activity, true) && compareDeep(agent, o.agent, true) && compareDeep(entity, o.entity, true) - && compareDeep(signature, o.signature, true); + && compareDeep(activity, o.activity, true) && compareDeep(basedOn, o.basedOn, true) && compareDeep(encounter, o.encounter, true) + && compareDeep(agent, o.agent, true) && compareDeep(entity, o.entity, true) && compareDeep(signature, o.signature, true) + ; } @Override @@ -1683,7 +1804,8 @@ public class Provenance extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(target, occurred, recorded - , policy, location, reason, activity, agent, entity, signature); + , policy, location, reason, activity, basedOn, encounter, agent, entity, signature + ); } @Override @@ -1711,6 +1833,32 @@ public class Provenance extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVITY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVITY); + /** + * Search parameter: agent + *

+ * Description: Who participated
+ * Type: reference
+ * Path: Provenance.agent.who
+ *

+ */ + @SearchParamDefinition(name="agent", path="Provenance.agent.who", description="Who participated", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) + public static final String SP_AGENT = "agent"; + /** + * Fluent Client search parameter constant for agent + *

+ * Description: Who participated
+ * Type: reference
+ * Path: Provenance.agent.who
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AGENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_AGENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Provenance:agent". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_AGENT = new ca.uhn.fhir.model.api.Include("Provenance:agent").toLocked(); + /** * Search parameter: agent-role *

@@ -1752,30 +1900,56 @@ public class Provenance extends DomainResource { public static final ca.uhn.fhir.rest.gclient.TokenClientParam AGENT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_AGENT_TYPE); /** - * Search parameter: agent + * Search parameter: based-on *

- * Description: Who participated
+ * Description: Reference to the service request.
* Type: reference
- * Path: Provenance.agent.who
+ * Path: Provenance.basedOn
*

*/ - @SearchParamDefinition(name="agent", path="Provenance.agent.who", description="Who participated", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) - public static final String SP_AGENT = "agent"; + @SearchParamDefinition(name="based-on", path="Provenance.basedOn", description="Reference to the service request.", type="reference", target={CarePlan.class, DeviceRequest.class, ImmunizationRecommendation.class, MedicationRequest.class, NutritionOrder.class, ServiceRequest.class } ) + public static final String SP_BASED_ON = "based-on"; /** - * Fluent Client search parameter constant for agent + * Fluent Client search parameter constant for based-on *

- * Description: Who participated
+ * Description: Reference to the service request.
* Type: reference
- * Path: Provenance.agent.who
+ * Path: Provenance.basedOn
*

*/ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AGENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_AGENT); + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASED_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASED_ON); /** * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "Provenance:agent". + * the path value of "Provenance:based-on". */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_AGENT = new ca.uhn.fhir.model.api.Include("Provenance:agent").toLocked(); + public static final ca.uhn.fhir.model.api.Include INCLUDE_BASED_ON = new ca.uhn.fhir.model.api.Include("Provenance:based-on").toLocked(); + + /** + * Search parameter: encounter + *

+ * Description: Encounter related to the Provenance
+ * Type: reference
+ * Path: Provenance.encounter
+ *

+ */ + @SearchParamDefinition(name="encounter", path="Provenance.encounter", description="Encounter related to the Provenance", type="reference", target={Encounter.class } ) + public static final String SP_ENCOUNTER = "encounter"; + /** + * Fluent Client search parameter constant for encounter + *

+ * Description: Encounter related to the Provenance
+ * Type: reference
+ * Path: Provenance.encounter
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Provenance:encounter". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("Provenance:encounter").toLocked(); /** * Search parameter: entity @@ -1785,7 +1959,7 @@ public class Provenance extends DomainResource { * Path: Provenance.entity.what
*

*/ - @SearchParamDefinition(name="entity", path="Provenance.entity.what", description="Identity of entity", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="entity", path="Provenance.entity.what", description="Identity of entity", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_ENTITY = "entity"; /** * Fluent Client search parameter constant for entity @@ -1837,7 +2011,7 @@ public class Provenance extends DomainResource { * Path: Provenance.target.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="Provenance.target.where(resolve() is Patient)", description="Target Reference(s) (usually version specific)", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } ) + @SearchParamDefinition(name="patient", path="Provenance.target.where(resolve() is Patient)", description="Target Reference(s) (usually version specific)", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -1903,7 +2077,7 @@ public class Provenance extends DomainResource { * Path: Provenance.target
*

*/ - @SearchParamDefinition(name="target", path="Provenance.target", description="Target Reference(s) (usually version specific)", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="target", path="Provenance.target", description="Target Reference(s) (usually version specific)", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_TARGET = "target"; /** * Fluent Client search parameter constant for target diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Quantity.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Quantity.java index 03a30d2ca..cc7806d97 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Quantity.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Quantity.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -63,7 +63,7 @@ public class Quantity extends DataType implements ICompositeType, ICoding { * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is "<" , then the real value is < stated value. */ @Child(name = "comparator", type = {CodeType.class}, order=1, min=0, max=1, modifier=true, summary=true) - @Description(shortDefinition="< | <= | >= | > - how to understand the value", formalDefinition="How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value." ) + @Description(shortDefinition="< | <= | >= | > | ad - how to understand the value", formalDefinition="How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/quantity-comparator") protected Enumeration comparator; @@ -586,7 +586,7 @@ public class Quantity extends DataType implements ICompositeType, ICoding { , system, code); } -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): @Override public String getVersion() { return null; @@ -624,13 +624,6 @@ public class Quantity extends DataType implements ICompositeType, ICoding { res.setCode(code); return res; } - - @Override - public String toString() { - return getValue().toPlainString()+ (hasUnit() || hasCode() ? " '"+(hasUnit() ? getUnit() : getCode())+"'" : ""); - } - - // end addition } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Questionnaire.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Questionnaire.java index cc3f31fc4..48fb25c71 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Questionnaire.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Questionnaire.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -82,7 +82,6 @@ public class Questionnaire extends MetadataResource { switch (this) { case ALL: return "all"; case ANY: return "any"; - case NULL: return null; default: return "?"; } } @@ -90,7 +89,6 @@ public class Questionnaire extends MetadataResource { switch (this) { case ALL: return "http://hl7.org/fhir/questionnaire-enable-behavior"; case ANY: return "http://hl7.org/fhir/questionnaire-enable-behavior"; - case NULL: return null; default: return "?"; } } @@ -98,7 +96,6 @@ public class Questionnaire extends MetadataResource { switch (this) { case ALL: return "Enable the question when all the enableWhen criteria are satisfied."; case ANY: return "Enable the question when any of the enableWhen criteria are satisfied."; - case NULL: return null; default: return "?"; } } @@ -106,7 +103,6 @@ public class Questionnaire extends MetadataResource { switch (this) { case ALL: return "All"; case ANY: return "Any"; - case NULL: return null; default: return "?"; } } @@ -149,33 +145,233 @@ public class Questionnaire extends MetadataResource { } } + public enum QuestionnaireAnswerConstraint { + /** + * Only values listed as answerOption or in the expansion of the answerValueSet are permitted + */ + OPTIONSONLY, + /** + * In addition to the values listed as answerOption or in the expansion of the answerValueSet, any other values that correspond to the specified item.type are permitted + */ + OPTIONSORTYPE, + /** + * In addition to the values listed as answerOption or in the expansion of the answerValueSet, free-text strings are permitted. Answers will have a type of 'string'. + */ + OPTIONSORSTRING, + /** + * added to help the parsers with the generic types + */ + NULL; + public static QuestionnaireAnswerConstraint fromCode(String codeString) throws FHIRException { + if (codeString == null || "".equals(codeString)) + return null; + if ("optionsOnly".equals(codeString)) + return OPTIONSONLY; + if ("optionsOrType".equals(codeString)) + return OPTIONSORTYPE; + if ("optionsOrString".equals(codeString)) + return OPTIONSORSTRING; + if (Configuration.isAcceptInvalidEnums()) + return null; + else + throw new FHIRException("Unknown QuestionnaireAnswerConstraint code '"+codeString+"'"); + } + public String toCode() { + switch (this) { + case OPTIONSONLY: return "optionsOnly"; + case OPTIONSORTYPE: return "optionsOrType"; + case OPTIONSORSTRING: return "optionsOrString"; + default: return "?"; + } + } + public String getSystem() { + switch (this) { + case OPTIONSONLY: return "http://hl7.org/fhir/questionnaire-answer-constraint"; + case OPTIONSORTYPE: return "http://hl7.org/fhir/questionnaire-answer-constraint"; + case OPTIONSORSTRING: return "http://hl7.org/fhir/questionnaire-answer-constraint"; + default: return "?"; + } + } + public String getDefinition() { + switch (this) { + case OPTIONSONLY: return "Only values listed as answerOption or in the expansion of the answerValueSet are permitted"; + case OPTIONSORTYPE: return "In addition to the values listed as answerOption or in the expansion of the answerValueSet, any other values that correspond to the specified item.type are permitted"; + case OPTIONSORSTRING: return "In addition to the values listed as answerOption or in the expansion of the answerValueSet, free-text strings are permitted. Answers will have a type of 'string'."; + default: return "?"; + } + } + public String getDisplay() { + switch (this) { + case OPTIONSONLY: return "Options only"; + case OPTIONSORTYPE: return "Options or 'type'"; + case OPTIONSORSTRING: return "Options or string"; + default: return "?"; + } + } + } + + public static class QuestionnaireAnswerConstraintEnumFactory implements EnumFactory { + public QuestionnaireAnswerConstraint fromCode(String codeString) throws IllegalArgumentException { + if (codeString == null || "".equals(codeString)) + if (codeString == null || "".equals(codeString)) + return null; + if ("optionsOnly".equals(codeString)) + return QuestionnaireAnswerConstraint.OPTIONSONLY; + if ("optionsOrType".equals(codeString)) + return QuestionnaireAnswerConstraint.OPTIONSORTYPE; + if ("optionsOrString".equals(codeString)) + return QuestionnaireAnswerConstraint.OPTIONSORSTRING; + throw new IllegalArgumentException("Unknown QuestionnaireAnswerConstraint code '"+codeString+"'"); + } + public Enumeration fromType(Base code) throws FHIRException { + if (code == null) + return null; + if (code.isEmpty()) + return new Enumeration(this); + String codeString = ((PrimitiveType) code).asStringValue(); + if (codeString == null || "".equals(codeString)) + return null; + if ("optionsOnly".equals(codeString)) + return new Enumeration(this, QuestionnaireAnswerConstraint.OPTIONSONLY); + if ("optionsOrType".equals(codeString)) + return new Enumeration(this, QuestionnaireAnswerConstraint.OPTIONSORTYPE); + if ("optionsOrString".equals(codeString)) + return new Enumeration(this, QuestionnaireAnswerConstraint.OPTIONSORSTRING); + throw new FHIRException("Unknown QuestionnaireAnswerConstraint code '"+codeString+"'"); + } + public String toCode(QuestionnaireAnswerConstraint code) { + if (code == QuestionnaireAnswerConstraint.OPTIONSONLY) + return "optionsOnly"; + if (code == QuestionnaireAnswerConstraint.OPTIONSORTYPE) + return "optionsOrType"; + if (code == QuestionnaireAnswerConstraint.OPTIONSORSTRING) + return "optionsOrString"; + return "?"; + } + public String toSystem(QuestionnaireAnswerConstraint code) { + return code.getSystem(); + } + } + + public enum QuestionnaireItemDisabledDisplay { + /** + * The item (and its children) should not be visible to the user at all. + */ + HIDDEN, + /** + * The item (and possibly its children) should not be selectable or editable but should still be visible - to allow the user to see what questions *could* have been completed had other answers caused the item to be enabled. + */ + PROTECTED, + /** + * added to help the parsers with the generic types + */ + NULL; + public static QuestionnaireItemDisabledDisplay fromCode(String codeString) throws FHIRException { + if (codeString == null || "".equals(codeString)) + return null; + if ("hidden".equals(codeString)) + return HIDDEN; + if ("protected".equals(codeString)) + return PROTECTED; + if (Configuration.isAcceptInvalidEnums()) + return null; + else + throw new FHIRException("Unknown QuestionnaireItemDisabledDisplay code '"+codeString+"'"); + } + public String toCode() { + switch (this) { + case HIDDEN: return "hidden"; + case PROTECTED: return "protected"; + default: return "?"; + } + } + public String getSystem() { + switch (this) { + case HIDDEN: return "http://hl7.org/fhir/questionnaire-disabled-display"; + case PROTECTED: return "http://hl7.org/fhir/questionnaire-disabled-display"; + default: return "?"; + } + } + public String getDefinition() { + switch (this) { + case HIDDEN: return "The item (and its children) should not be visible to the user at all."; + case PROTECTED: return "The item (and possibly its children) should not be selectable or editable but should still be visible - to allow the user to see what questions *could* have been completed had other answers caused the item to be enabled."; + default: return "?"; + } + } + public String getDisplay() { + switch (this) { + case HIDDEN: return "Hidden"; + case PROTECTED: return "Protected"; + default: return "?"; + } + } + } + + public static class QuestionnaireItemDisabledDisplayEnumFactory implements EnumFactory { + public QuestionnaireItemDisabledDisplay fromCode(String codeString) throws IllegalArgumentException { + if (codeString == null || "".equals(codeString)) + if (codeString == null || "".equals(codeString)) + return null; + if ("hidden".equals(codeString)) + return QuestionnaireItemDisabledDisplay.HIDDEN; + if ("protected".equals(codeString)) + return QuestionnaireItemDisabledDisplay.PROTECTED; + throw new IllegalArgumentException("Unknown QuestionnaireItemDisabledDisplay code '"+codeString+"'"); + } + public Enumeration fromType(Base code) throws FHIRException { + if (code == null) + return null; + if (code.isEmpty()) + return new Enumeration(this); + String codeString = ((PrimitiveType) code).asStringValue(); + if (codeString == null || "".equals(codeString)) + return null; + if ("hidden".equals(codeString)) + return new Enumeration(this, QuestionnaireItemDisabledDisplay.HIDDEN); + if ("protected".equals(codeString)) + return new Enumeration(this, QuestionnaireItemDisabledDisplay.PROTECTED); + throw new FHIRException("Unknown QuestionnaireItemDisabledDisplay code '"+codeString+"'"); + } + public String toCode(QuestionnaireItemDisabledDisplay code) { + if (code == QuestionnaireItemDisabledDisplay.HIDDEN) + return "hidden"; + if (code == QuestionnaireItemDisabledDisplay.PROTECTED) + return "protected"; + return "?"; + } + public String toSystem(QuestionnaireItemDisabledDisplay code) { + return code.getSystem(); + } + } + public enum QuestionnaireItemOperator { /** - * True if whether an answer exists is equal to the enableWhen answer (which must be a boolean). + * True if the determination of 'whether an answer exists for the question' is equal to the enableWhen answer (which must be a boolean). */ EXISTS, /** - * True if whether at least one answer has a value that is equal to the enableWhen answer. + * True if at least one answer has a value that is equal to the enableWhen answer. */ EQUAL, /** - * True if whether at least no answer has a value that is equal to the enableWhen answer. + * True if no answer has a value that is equal to the enableWhen answer. */ NOT_EQUAL, /** - * True if whether at least no answer has a value that is greater than the enableWhen answer. + * True if at least one answer has a value that is greater than the enableWhen answer. */ GREATER_THAN, /** - * True if whether at least no answer has a value that is less than the enableWhen answer. + * True if at least one answer has a value that is less than the enableWhen answer. */ LESS_THAN, /** - * True if whether at least no answer has a value that is greater or equal to the enableWhen answer. + * True if at least one answer has a value that is greater or equal to the enableWhen answer. */ GREATER_OR_EQUAL, /** - * True if whether at least no answer has a value that is less or equal to the enableWhen answer. + * True if at least one answer has a value that is less or equal to the enableWhen answer. */ LESS_OR_EQUAL, /** @@ -213,7 +409,6 @@ public class Questionnaire extends MetadataResource { case LESS_THAN: return "<"; case GREATER_OR_EQUAL: return ">="; case LESS_OR_EQUAL: return "<="; - case NULL: return null; default: return "?"; } } @@ -226,20 +421,18 @@ public class Questionnaire extends MetadataResource { case LESS_THAN: return "http://hl7.org/fhir/questionnaire-enable-operator"; case GREATER_OR_EQUAL: return "http://hl7.org/fhir/questionnaire-enable-operator"; case LESS_OR_EQUAL: return "http://hl7.org/fhir/questionnaire-enable-operator"; - case NULL: return null; default: return "?"; } } public String getDefinition() { switch (this) { - case EXISTS: return "True if whether an answer exists is equal to the enableWhen answer (which must be a boolean)."; - case EQUAL: return "True if whether at least one answer has a value that is equal to the enableWhen answer."; - case NOT_EQUAL: return "True if whether at least no answer has a value that is equal to the enableWhen answer."; - case GREATER_THAN: return "True if whether at least no answer has a value that is greater than the enableWhen answer."; - case LESS_THAN: return "True if whether at least no answer has a value that is less than the enableWhen answer."; - case GREATER_OR_EQUAL: return "True if whether at least no answer has a value that is greater or equal to the enableWhen answer."; - case LESS_OR_EQUAL: return "True if whether at least no answer has a value that is less or equal to the enableWhen answer."; - case NULL: return null; + case EXISTS: return "True if the determination of 'whether an answer exists for the question' is equal to the enableWhen answer (which must be a boolean)."; + case EQUAL: return "True if at least one answer has a value that is equal to the enableWhen answer."; + case NOT_EQUAL: return "True if no answer has a value that is equal to the enableWhen answer."; + case GREATER_THAN: return "True if at least one answer has a value that is greater than the enableWhen answer."; + case LESS_THAN: return "True if at least one answer has a value that is less than the enableWhen answer."; + case GREATER_OR_EQUAL: return "True if at least one answer has a value that is greater or equal to the enableWhen answer."; + case LESS_OR_EQUAL: return "True if at least one answer has a value that is less or equal to the enableWhen answer."; default: return "?"; } } @@ -252,7 +445,6 @@ public class Questionnaire extends MetadataResource { case LESS_THAN: return "Less Than"; case GREATER_OR_EQUAL: return "Greater or Equals"; case LESS_OR_EQUAL: return "Less or Equals"; - case NULL: return null; default: return "?"; } } @@ -375,13 +567,9 @@ public class Questionnaire extends MetadataResource { */ URL, /** - * Question with a Coding drawn from a list of possible answers (specified in either the answerOption property, or via the valueset referenced in the answerValueSet property) as an answer (valueCoding). + * Question with a Coding - generally drawn from a list of possible answers (valueCoding) */ - CHOICE, - /** - * Answer is a Coding drawn from a list of possible answers (as with the choice type) or a free-text entry in a string (valueCoding or valueString). - */ - OPENCHOICE, + CODING, /** * Question with binary content such as an image, PDF, etc. as an answer (valueAttachment). */ @@ -425,10 +613,8 @@ public class Questionnaire extends MetadataResource { return TEXT; if ("url".equals(codeString)) return URL; - if ("choice".equals(codeString)) - return CHOICE; - if ("open-choice".equals(codeString)) - return OPENCHOICE; + if ("coding".equals(codeString)) + return CODING; if ("attachment".equals(codeString)) return ATTACHMENT; if ("reference".equals(codeString)) @@ -454,12 +640,10 @@ public class Questionnaire extends MetadataResource { case STRING: return "string"; case TEXT: return "text"; case URL: return "url"; - case CHOICE: return "choice"; - case OPENCHOICE: return "open-choice"; + case CODING: return "coding"; case ATTACHMENT: return "attachment"; case REFERENCE: return "reference"; case QUANTITY: return "quantity"; - case NULL: return null; default: return "?"; } } @@ -477,12 +661,10 @@ public class Questionnaire extends MetadataResource { case STRING: return "http://hl7.org/fhir/item-type"; case TEXT: return "http://hl7.org/fhir/item-type"; case URL: return "http://hl7.org/fhir/item-type"; - case CHOICE: return "http://hl7.org/fhir/item-type"; - case OPENCHOICE: return "http://hl7.org/fhir/item-type"; + case CODING: return "http://hl7.org/fhir/item-type"; case ATTACHMENT: return "http://hl7.org/fhir/item-type"; case REFERENCE: return "http://hl7.org/fhir/item-type"; case QUANTITY: return "http://hl7.org/fhir/item-type"; - case NULL: return null; default: return "?"; } } @@ -500,12 +682,10 @@ public class Questionnaire extends MetadataResource { case STRING: return "Question with a short (few words to short sentence) free-text entry answer (valueString)."; case TEXT: return "Question with a long (potentially multi-paragraph) free-text entry answer (valueString)."; case URL: return "Question with a URL (website, FTP site, etc.) answer (valueUri)."; - case CHOICE: return "Question with a Coding drawn from a list of possible answers (specified in either the answerOption property, or via the valueset referenced in the answerValueSet property) as an answer (valueCoding)."; - case OPENCHOICE: return "Answer is a Coding drawn from a list of possible answers (as with the choice type) or a free-text entry in a string (valueCoding or valueString)."; + case CODING: return "Question with a Coding - generally drawn from a list of possible answers (valueCoding)"; case ATTACHMENT: return "Question with binary content such as an image, PDF, etc. as an answer (valueAttachment)."; case REFERENCE: return "Question with a reference to another resource (practitioner, organization, etc.) as an answer (valueReference)."; case QUANTITY: return "Question with a combination of a numeric value and unit, potentially with a comparator (<, >, etc.) as an answer. (valueQuantity) There is an extension 'http://hl7.org/fhir/StructureDefinition/questionnaire-unit' that can be used to define what unit should be captured (or the unit that has a ucum conversion from the provided unit)."; - case NULL: return null; default: return "?"; } } @@ -523,12 +703,10 @@ public class Questionnaire extends MetadataResource { case STRING: return "String"; case TEXT: return "Text"; case URL: return "Url"; - case CHOICE: return "Choice"; - case OPENCHOICE: return "Open Choice"; + case CODING: return "Coding"; case ATTACHMENT: return "Attachment"; case REFERENCE: return "Reference"; case QUANTITY: return "Quantity"; - case NULL: return null; default: return "?"; } } @@ -563,10 +741,8 @@ public class Questionnaire extends MetadataResource { return QuestionnaireItemType.TEXT; if ("url".equals(codeString)) return QuestionnaireItemType.URL; - if ("choice".equals(codeString)) - return QuestionnaireItemType.CHOICE; - if ("open-choice".equals(codeString)) - return QuestionnaireItemType.OPENCHOICE; + if ("coding".equals(codeString)) + return QuestionnaireItemType.CODING; if ("attachment".equals(codeString)) return QuestionnaireItemType.ATTACHMENT; if ("reference".equals(codeString)) @@ -607,10 +783,8 @@ public class Questionnaire extends MetadataResource { return new Enumeration(this, QuestionnaireItemType.TEXT); if ("url".equals(codeString)) return new Enumeration(this, QuestionnaireItemType.URL); - if ("choice".equals(codeString)) - return new Enumeration(this, QuestionnaireItemType.CHOICE); - if ("open-choice".equals(codeString)) - return new Enumeration(this, QuestionnaireItemType.OPENCHOICE); + if ("coding".equals(codeString)) + return new Enumeration(this, QuestionnaireItemType.CODING); if ("attachment".equals(codeString)) return new Enumeration(this, QuestionnaireItemType.ATTACHMENT); if ("reference".equals(codeString)) @@ -644,10 +818,8 @@ public class Questionnaire extends MetadataResource { return "text"; if (code == QuestionnaireItemType.URL) return "url"; - if (code == QuestionnaireItemType.CHOICE) - return "choice"; - if (code == QuestionnaireItemType.OPENCHOICE) - return "open-choice"; + if (code == QuestionnaireItemType.CODING) + return "coding"; if (code == QuestionnaireItemType.ATTACHMENT) return "attachment"; if (code == QuestionnaireItemType.REFERENCE) @@ -671,18 +843,10 @@ public class Questionnaire extends MetadataResource { protected StringType linkId; /** - * This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value: - -* code (ElementDefinition.code) -* type (ElementDefinition.type) -* required (ElementDefinition.min) -* repeats (ElementDefinition.max) -* maxLength (ElementDefinition.maxLength) -* answerValueSet (ElementDefinition.binding) -* options (ElementDefinition.binding). + * This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in [Comments](questionnaire.html#definition), below. */ @Child(name = "definition", type = {UriType.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="ElementDefinition - details for the item", formalDefinition="This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value:\n\n* code (ElementDefinition.code) \n* type (ElementDefinition.type) \n* required (ElementDefinition.min) \n* repeats (ElementDefinition.max) \n* maxLength (ElementDefinition.maxLength) \n* answerValueSet (ElementDefinition.binding)\n* options (ElementDefinition.binding)." ) + @Description(shortDefinition="ElementDefinition - details for the item", formalDefinition="This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in [Comments](questionnaire.html#definition), below." ) protected UriType definition; /** @@ -703,15 +867,15 @@ public class Questionnaire extends MetadataResource { /** * The name of a section, the text of a question or text content for a display item. */ - @Child(name = "text", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false) + @Child(name = "text", type = {MarkdownType.class}, order=5, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Primary text for the item", formalDefinition="The name of a section, the text of a question or text content for a display item." ) - protected StringType text; + protected MarkdownType text; /** - * The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.). + * The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, Coding, etc.). */ @Child(name = "type", type = {CodeType.class}, order=6, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="group | display | boolean | decimal | integer | date | dateTime +", formalDefinition="The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.)." ) + @Description(shortDefinition="group | display | boolean | decimal | integer | date | dateTime +", formalDefinition="The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, Coding, etc.)." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/item-type") protected Enumeration type; @@ -730,63 +894,79 @@ public class Questionnaire extends MetadataResource { @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/questionnaire-enable-behavior") protected Enumeration enableBehavior; + /** + * Indicates if and how items that are disabled (because enableWhen evaluates to 'false') should be displayed. + */ + @Child(name = "disabledDisplay", type = {CodeType.class}, order=9, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="hidden | protected", formalDefinition="Indicates if and how items that are disabled (because enableWhen evaluates to 'false') should be displayed." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/questionnaire-disabled-display") + protected Enumeration disabledDisplay; + /** * An indication, if true, that the item must be present in a "completed" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire. */ - @Child(name = "required", type = {BooleanType.class}, order=9, min=0, max=1, modifier=false, summary=false) + @Child(name = "required", type = {BooleanType.class}, order=10, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Whether the item must be included in data results", formalDefinition="An indication, if true, that the item must be present in a \"completed\" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire." ) protected BooleanType required; /** * An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups. */ - @Child(name = "repeats", type = {BooleanType.class}, order=10, min=0, max=1, modifier=false, summary=false) + @Child(name = "repeats", type = {BooleanType.class}, order=11, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Whether the item may repeat", formalDefinition="An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups." ) protected BooleanType repeats; /** * An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire. */ - @Child(name = "readOnly", type = {BooleanType.class}, order=11, min=0, max=1, modifier=false, summary=false) + @Child(name = "readOnly", type = {BooleanType.class}, order=12, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Don't allow human editing", formalDefinition="An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire." ) protected BooleanType readOnly; /** * The maximum number of characters that are permitted in the answer to be considered a "valid" QuestionnaireResponse. */ - @Child(name = "maxLength", type = {IntegerType.class}, order=12, min=0, max=1, modifier=false, summary=false) + @Child(name = "maxLength", type = {IntegerType.class}, order=13, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="No more than this many characters", formalDefinition="The maximum number of characters that are permitted in the answer to be considered a \"valid\" QuestionnaireResponse." ) protected IntegerType maxLength; /** - * A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question. + * For items that have a defined set of allowed answers (via answerOption or answerValueset), indicates whether values *other* than those specified can be selected. */ - @Child(name = "answerValueSet", type = {CanonicalType.class}, order=13, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Valueset containing permitted answers", formalDefinition="A reference to a value set containing a list of codes representing permitted answers for a \"choice\" or \"open-choice\" question." ) + @Child(name = "answerConstraint", type = {CodeType.class}, order=14, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="optionsOnly | optionsOrType | optionsOrString", formalDefinition="For items that have a defined set of allowed answers (via answerOption or answerValueset), indicates whether values *other* than those specified can be selected." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/questionnaire-answer-constraint") + protected Enumeration answerConstraint; + + /** + * A reference to a value set containing a list of values representing permitted answers for a question. + */ + @Child(name = "answerValueSet", type = {CanonicalType.class}, order=15, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Valueset containing permitted answers", formalDefinition="A reference to a value set containing a list of values representing permitted answers for a question." ) protected CanonicalType answerValueSet; /** - * One of the permitted answers for a "choice" or "open-choice" question. + * One of the permitted answers for the question. */ - @Child(name = "answerOption", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Permitted answer", formalDefinition="One of the permitted answers for a \"choice\" or \"open-choice\" question." ) + @Child(name = "answerOption", type = {}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Permitted answer", formalDefinition="One of the permitted answers for the question." ) protected List answerOption; /** * One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input. */ - @Child(name = "initial", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "initial", type = {}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Initial value(s) when item is first rendered", formalDefinition="One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input." ) protected List initial; /** * Text, questions and other groups to be nested beneath a question or group. */ - @Child(name = "item", type = {QuestionnaireItemComponent.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "item", type = {QuestionnaireItemComponent.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Nested questionnaire items", formalDefinition="Text, questions and other groups to be nested beneath a question or group." ) protected List item; - private static final long serialVersionUID = -1503380450L; + private static final long serialVersionUID = 794112941L; /** * Constructor @@ -850,15 +1030,7 @@ public class Questionnaire extends MetadataResource { } /** - * @return {@link #definition} (This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value: - -* code (ElementDefinition.code) -* type (ElementDefinition.type) -* required (ElementDefinition.min) -* repeats (ElementDefinition.max) -* maxLength (ElementDefinition.maxLength) -* answerValueSet (ElementDefinition.binding) -* options (ElementDefinition.binding).). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value + * @return {@link #definition} (This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in [Comments](questionnaire.html#definition), below.). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value */ public UriType getDefinitionElement() { if (this.definition == null) @@ -878,15 +1050,7 @@ public class Questionnaire extends MetadataResource { } /** - * @param value {@link #definition} (This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value: - -* code (ElementDefinition.code) -* type (ElementDefinition.type) -* required (ElementDefinition.min) -* repeats (ElementDefinition.max) -* maxLength (ElementDefinition.maxLength) -* answerValueSet (ElementDefinition.binding) -* options (ElementDefinition.binding).). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value + * @param value {@link #definition} (This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in [Comments](questionnaire.html#definition), below.). This is the underlying object with id, value and extensions. The accessor "getDefinition" gives direct access to the value */ public QuestionnaireItemComponent setDefinitionElement(UriType value) { this.definition = value; @@ -894,30 +1058,14 @@ public class Questionnaire extends MetadataResource { } /** - * @return This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value: - -* code (ElementDefinition.code) -* type (ElementDefinition.type) -* required (ElementDefinition.min) -* repeats (ElementDefinition.max) -* maxLength (ElementDefinition.maxLength) -* answerValueSet (ElementDefinition.binding) -* options (ElementDefinition.binding). + * @return This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in [Comments](questionnaire.html#definition), below. */ public String getDefinition() { return this.definition == null ? null : this.definition.getValue(); } /** - * @param value This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value: - -* code (ElementDefinition.code) -* type (ElementDefinition.type) -* required (ElementDefinition.min) -* repeats (ElementDefinition.max) -* maxLength (ElementDefinition.maxLength) -* answerValueSet (ElementDefinition.binding) -* options (ElementDefinition.binding). + * @param value This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in [Comments](questionnaire.html#definition), below. */ public QuestionnaireItemComponent setDefinition(String value) { if (Utilities.noString(value)) @@ -1035,12 +1183,12 @@ public class Questionnaire extends MetadataResource { /** * @return {@link #text} (The name of a section, the text of a question or text content for a display item.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value */ - public StringType getTextElement() { + public MarkdownType getTextElement() { if (this.text == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create QuestionnaireItemComponent.text"); else if (Configuration.doAutoCreate()) - this.text = new StringType(); // bb + this.text = new MarkdownType(); // bb return this.text; } @@ -1055,7 +1203,7 @@ public class Questionnaire extends MetadataResource { /** * @param value {@link #text} (The name of a section, the text of a question or text content for a display item.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value */ - public QuestionnaireItemComponent setTextElement(StringType value) { + public QuestionnaireItemComponent setTextElement(MarkdownType value) { this.text = value; return this; } @@ -1071,18 +1219,18 @@ public class Questionnaire extends MetadataResource { * @param value The name of a section, the text of a question or text content for a display item. */ public QuestionnaireItemComponent setText(String value) { - if (Utilities.noString(value)) + if (value == null) this.text = null; else { if (this.text == null) - this.text = new StringType(); + this.text = new MarkdownType(); this.text.setValue(value); } return this; } /** - * @return {@link #type} (The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value + * @return {@link #type} (The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, Coding, etc.).). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value */ public Enumeration getTypeElement() { if (this.type == null) @@ -1102,7 +1250,7 @@ public class Questionnaire extends MetadataResource { } /** - * @param value {@link #type} (The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value + * @param value {@link #type} (The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, Coding, etc.).). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value */ public QuestionnaireItemComponent setTypeElement(Enumeration value) { this.type = value; @@ -1110,14 +1258,14 @@ public class Questionnaire extends MetadataResource { } /** - * @return The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.). + * @return The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, Coding, etc.). */ public QuestionnaireItemType getType() { return this.type == null ? null : this.type.getValue(); } /** - * @param value The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.). + * @param value The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, Coding, etc.). */ public QuestionnaireItemComponent setType(QuestionnaireItemType value) { if (this.type == null) @@ -1228,6 +1376,55 @@ public class Questionnaire extends MetadataResource { return this; } + /** + * @return {@link #disabledDisplay} (Indicates if and how items that are disabled (because enableWhen evaluates to 'false') should be displayed.). This is the underlying object with id, value and extensions. The accessor "getDisabledDisplay" gives direct access to the value + */ + public Enumeration getDisabledDisplayElement() { + if (this.disabledDisplay == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create QuestionnaireItemComponent.disabledDisplay"); + else if (Configuration.doAutoCreate()) + this.disabledDisplay = new Enumeration(new QuestionnaireItemDisabledDisplayEnumFactory()); // bb + return this.disabledDisplay; + } + + public boolean hasDisabledDisplayElement() { + return this.disabledDisplay != null && !this.disabledDisplay.isEmpty(); + } + + public boolean hasDisabledDisplay() { + return this.disabledDisplay != null && !this.disabledDisplay.isEmpty(); + } + + /** + * @param value {@link #disabledDisplay} (Indicates if and how items that are disabled (because enableWhen evaluates to 'false') should be displayed.). This is the underlying object with id, value and extensions. The accessor "getDisabledDisplay" gives direct access to the value + */ + public QuestionnaireItemComponent setDisabledDisplayElement(Enumeration value) { + this.disabledDisplay = value; + return this; + } + + /** + * @return Indicates if and how items that are disabled (because enableWhen evaluates to 'false') should be displayed. + */ + public QuestionnaireItemDisabledDisplay getDisabledDisplay() { + return this.disabledDisplay == null ? null : this.disabledDisplay.getValue(); + } + + /** + * @param value Indicates if and how items that are disabled (because enableWhen evaluates to 'false') should be displayed. + */ + public QuestionnaireItemComponent setDisabledDisplay(QuestionnaireItemDisabledDisplay value) { + if (value == null) + this.disabledDisplay = null; + else { + if (this.disabledDisplay == null) + this.disabledDisplay = new Enumeration(new QuestionnaireItemDisabledDisplayEnumFactory()); + this.disabledDisplay.setValue(value); + } + return this; + } + /** * @return {@link #required} (An indication, if true, that the item must be present in a "completed" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.). This is the underlying object with id, value and extensions. The accessor "getRequired" gives direct access to the value */ @@ -1409,7 +1606,56 @@ public class Questionnaire extends MetadataResource { } /** - * @return {@link #answerValueSet} (A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question.). This is the underlying object with id, value and extensions. The accessor "getAnswerValueSet" gives direct access to the value + * @return {@link #answerConstraint} (For items that have a defined set of allowed answers (via answerOption or answerValueset), indicates whether values *other* than those specified can be selected.). This is the underlying object with id, value and extensions. The accessor "getAnswerConstraint" gives direct access to the value + */ + public Enumeration getAnswerConstraintElement() { + if (this.answerConstraint == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create QuestionnaireItemComponent.answerConstraint"); + else if (Configuration.doAutoCreate()) + this.answerConstraint = new Enumeration(new QuestionnaireAnswerConstraintEnumFactory()); // bb + return this.answerConstraint; + } + + public boolean hasAnswerConstraintElement() { + return this.answerConstraint != null && !this.answerConstraint.isEmpty(); + } + + public boolean hasAnswerConstraint() { + return this.answerConstraint != null && !this.answerConstraint.isEmpty(); + } + + /** + * @param value {@link #answerConstraint} (For items that have a defined set of allowed answers (via answerOption or answerValueset), indicates whether values *other* than those specified can be selected.). This is the underlying object with id, value and extensions. The accessor "getAnswerConstraint" gives direct access to the value + */ + public QuestionnaireItemComponent setAnswerConstraintElement(Enumeration value) { + this.answerConstraint = value; + return this; + } + + /** + * @return For items that have a defined set of allowed answers (via answerOption or answerValueset), indicates whether values *other* than those specified can be selected. + */ + public QuestionnaireAnswerConstraint getAnswerConstraint() { + return this.answerConstraint == null ? null : this.answerConstraint.getValue(); + } + + /** + * @param value For items that have a defined set of allowed answers (via answerOption or answerValueset), indicates whether values *other* than those specified can be selected. + */ + public QuestionnaireItemComponent setAnswerConstraint(QuestionnaireAnswerConstraint value) { + if (value == null) + this.answerConstraint = null; + else { + if (this.answerConstraint == null) + this.answerConstraint = new Enumeration(new QuestionnaireAnswerConstraintEnumFactory()); + this.answerConstraint.setValue(value); + } + return this; + } + + /** + * @return {@link #answerValueSet} (A reference to a value set containing a list of values representing permitted answers for a question.). This is the underlying object with id, value and extensions. The accessor "getAnswerValueSet" gives direct access to the value */ public CanonicalType getAnswerValueSetElement() { if (this.answerValueSet == null) @@ -1429,7 +1675,7 @@ public class Questionnaire extends MetadataResource { } /** - * @param value {@link #answerValueSet} (A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question.). This is the underlying object with id, value and extensions. The accessor "getAnswerValueSet" gives direct access to the value + * @param value {@link #answerValueSet} (A reference to a value set containing a list of values representing permitted answers for a question.). This is the underlying object with id, value and extensions. The accessor "getAnswerValueSet" gives direct access to the value */ public QuestionnaireItemComponent setAnswerValueSetElement(CanonicalType value) { this.answerValueSet = value; @@ -1437,14 +1683,14 @@ public class Questionnaire extends MetadataResource { } /** - * @return A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question. + * @return A reference to a value set containing a list of values representing permitted answers for a question. */ public String getAnswerValueSet() { return this.answerValueSet == null ? null : this.answerValueSet.getValue(); } /** - * @param value A reference to a value set containing a list of codes representing permitted answers for a "choice" or "open-choice" question. + * @param value A reference to a value set containing a list of values representing permitted answers for a question. */ public QuestionnaireItemComponent setAnswerValueSet(String value) { if (Utilities.noString(value)) @@ -1458,7 +1704,7 @@ public class Questionnaire extends MetadataResource { } /** - * @return {@link #answerOption} (One of the permitted answers for a "choice" or "open-choice" question.) + * @return {@link #answerOption} (One of the permitted answers for the question.) */ public List getAnswerOption() { if (this.answerOption == null) @@ -1619,19 +1865,21 @@ public class Questionnaire extends MetadataResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("linkId", "string", "An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.", 0, 1, linkId)); - children.add(new Property("definition", "uri", "This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value:\n\n* code (ElementDefinition.code) \n* type (ElementDefinition.type) \n* required (ElementDefinition.min) \n* repeats (ElementDefinition.max) \n* maxLength (ElementDefinition.maxLength) \n* answerValueSet (ElementDefinition.binding)\n* options (ElementDefinition.binding).", 0, 1, definition)); + children.add(new Property("definition", "uri", "This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in [Comments](questionnaire.html#definition), below.", 0, 1, definition)); children.add(new Property("code", "Coding", "A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).", 0, java.lang.Integer.MAX_VALUE, code)); children.add(new Property("prefix", "string", "A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.", 0, 1, prefix)); - children.add(new Property("text", "string", "The name of a section, the text of a question or text content for a display item.", 0, 1, text)); - children.add(new Property("type", "code", "The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).", 0, 1, type)); + children.add(new Property("text", "markdown", "The name of a section, the text of a question or text content for a display item.", 0, 1, text)); + children.add(new Property("type", "code", "The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, Coding, etc.).", 0, 1, type)); children.add(new Property("enableWhen", "", "A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.", 0, java.lang.Integer.MAX_VALUE, enableWhen)); children.add(new Property("enableBehavior", "code", "Controls how multiple enableWhen values are interpreted - whether all or any must be true.", 0, 1, enableBehavior)); + children.add(new Property("disabledDisplay", "code", "Indicates if and how items that are disabled (because enableWhen evaluates to 'false') should be displayed.", 0, 1, disabledDisplay)); children.add(new Property("required", "boolean", "An indication, if true, that the item must be present in a \"completed\" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.", 0, 1, required)); children.add(new Property("repeats", "boolean", "An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups.", 0, 1, repeats)); children.add(new Property("readOnly", "boolean", "An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.", 0, 1, readOnly)); children.add(new Property("maxLength", "integer", "The maximum number of characters that are permitted in the answer to be considered a \"valid\" QuestionnaireResponse.", 0, 1, maxLength)); - children.add(new Property("answerValueSet", "canonical(ValueSet)", "A reference to a value set containing a list of codes representing permitted answers for a \"choice\" or \"open-choice\" question.", 0, 1, answerValueSet)); - children.add(new Property("answerOption", "", "One of the permitted answers for a \"choice\" or \"open-choice\" question.", 0, java.lang.Integer.MAX_VALUE, answerOption)); + children.add(new Property("answerConstraint", "code", "For items that have a defined set of allowed answers (via answerOption or answerValueset), indicates whether values *other* than those specified can be selected.", 0, 1, answerConstraint)); + children.add(new Property("answerValueSet", "canonical(ValueSet)", "A reference to a value set containing a list of values representing permitted answers for a question.", 0, 1, answerValueSet)); + children.add(new Property("answerOption", "", "One of the permitted answers for the question.", 0, java.lang.Integer.MAX_VALUE, answerOption)); children.add(new Property("initial", "", "One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.", 0, java.lang.Integer.MAX_VALUE, initial)); children.add(new Property("item", "@Questionnaire.item", "Text, questions and other groups to be nested beneath a question or group.", 0, java.lang.Integer.MAX_VALUE, item)); } @@ -1640,19 +1888,21 @@ public class Questionnaire extends MetadataResource { public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case -1102667083: /*linkId*/ return new Property("linkId", "string", "An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.", 0, 1, linkId); - case -1014418093: /*definition*/ return new Property("definition", "uri", "This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value:\n\n* code (ElementDefinition.code) \n* type (ElementDefinition.type) \n* required (ElementDefinition.min) \n* repeats (ElementDefinition.max) \n* maxLength (ElementDefinition.maxLength) \n* answerValueSet (ElementDefinition.binding)\n* options (ElementDefinition.binding).", 0, 1, definition); + case -1014418093: /*definition*/ return new Property("definition", "uri", "This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in [Comments](questionnaire.html#definition), below.", 0, 1, definition); case 3059181: /*code*/ return new Property("code", "Coding", "A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).", 0, java.lang.Integer.MAX_VALUE, code); case -980110702: /*prefix*/ return new Property("prefix", "string", "A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.", 0, 1, prefix); - case 3556653: /*text*/ return new Property("text", "string", "The name of a section, the text of a question or text content for a display item.", 0, 1, text); - case 3575610: /*type*/ return new Property("type", "code", "The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).", 0, 1, type); + case 3556653: /*text*/ return new Property("text", "markdown", "The name of a section, the text of a question or text content for a display item.", 0, 1, text); + case 3575610: /*type*/ return new Property("type", "code", "The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, Coding, etc.).", 0, 1, type); case 1893321565: /*enableWhen*/ return new Property("enableWhen", "", "A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.", 0, java.lang.Integer.MAX_VALUE, enableWhen); case 1854802165: /*enableBehavior*/ return new Property("enableBehavior", "code", "Controls how multiple enableWhen values are interpreted - whether all or any must be true.", 0, 1, enableBehavior); + case -1254886746: /*disabledDisplay*/ return new Property("disabledDisplay", "code", "Indicates if and how items that are disabled (because enableWhen evaluates to 'false') should be displayed.", 0, 1, disabledDisplay); case -393139297: /*required*/ return new Property("required", "boolean", "An indication, if true, that the item must be present in a \"completed\" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.", 0, 1, required); case 1094288952: /*repeats*/ return new Property("repeats", "boolean", "An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups.", 0, 1, repeats); case -867683742: /*readOnly*/ return new Property("readOnly", "boolean", "An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.", 0, 1, readOnly); case -791400086: /*maxLength*/ return new Property("maxLength", "integer", "The maximum number of characters that are permitted in the answer to be considered a \"valid\" QuestionnaireResponse.", 0, 1, maxLength); - case -743278833: /*answerValueSet*/ return new Property("answerValueSet", "canonical(ValueSet)", "A reference to a value set containing a list of codes representing permitted answers for a \"choice\" or \"open-choice\" question.", 0, 1, answerValueSet); - case -1527878189: /*answerOption*/ return new Property("answerOption", "", "One of the permitted answers for a \"choice\" or \"open-choice\" question.", 0, java.lang.Integer.MAX_VALUE, answerOption); + case 746396731: /*answerConstraint*/ return new Property("answerConstraint", "code", "For items that have a defined set of allowed answers (via answerOption or answerValueset), indicates whether values *other* than those specified can be selected.", 0, 1, answerConstraint); + case -743278833: /*answerValueSet*/ return new Property("answerValueSet", "canonical(ValueSet)", "A reference to a value set containing a list of values representing permitted answers for a question.", 0, 1, answerValueSet); + case -1527878189: /*answerOption*/ return new Property("answerOption", "", "One of the permitted answers for the question.", 0, java.lang.Integer.MAX_VALUE, answerOption); case 1948342084: /*initial*/ return new Property("initial", "", "One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.", 0, java.lang.Integer.MAX_VALUE, initial); case 3242771: /*item*/ return new Property("item", "@Questionnaire.item", "Text, questions and other groups to be nested beneath a question or group.", 0, java.lang.Integer.MAX_VALUE, item); default: return super.getNamedProperty(_hash, _name, _checkValid); @@ -1667,14 +1917,16 @@ public class Questionnaire extends MetadataResource { case -1014418093: /*definition*/ return this.definition == null ? new Base[0] : new Base[] {this.definition}; // UriType case 3059181: /*code*/ return this.code == null ? new Base[0] : this.code.toArray(new Base[this.code.size()]); // Coding case -980110702: /*prefix*/ return this.prefix == null ? new Base[0] : new Base[] {this.prefix}; // StringType - case 3556653: /*text*/ return this.text == null ? new Base[0] : new Base[] {this.text}; // StringType + case 3556653: /*text*/ return this.text == null ? new Base[0] : new Base[] {this.text}; // MarkdownType case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration case 1893321565: /*enableWhen*/ return this.enableWhen == null ? new Base[0] : this.enableWhen.toArray(new Base[this.enableWhen.size()]); // QuestionnaireItemEnableWhenComponent case 1854802165: /*enableBehavior*/ return this.enableBehavior == null ? new Base[0] : new Base[] {this.enableBehavior}; // Enumeration + case -1254886746: /*disabledDisplay*/ return this.disabledDisplay == null ? new Base[0] : new Base[] {this.disabledDisplay}; // Enumeration case -393139297: /*required*/ return this.required == null ? new Base[0] : new Base[] {this.required}; // BooleanType case 1094288952: /*repeats*/ return this.repeats == null ? new Base[0] : new Base[] {this.repeats}; // BooleanType case -867683742: /*readOnly*/ return this.readOnly == null ? new Base[0] : new Base[] {this.readOnly}; // BooleanType case -791400086: /*maxLength*/ return this.maxLength == null ? new Base[0] : new Base[] {this.maxLength}; // IntegerType + case 746396731: /*answerConstraint*/ return this.answerConstraint == null ? new Base[0] : new Base[] {this.answerConstraint}; // Enumeration case -743278833: /*answerValueSet*/ return this.answerValueSet == null ? new Base[0] : new Base[] {this.answerValueSet}; // CanonicalType case -1527878189: /*answerOption*/ return this.answerOption == null ? new Base[0] : this.answerOption.toArray(new Base[this.answerOption.size()]); // QuestionnaireItemAnswerOptionComponent case 1948342084: /*initial*/ return this.initial == null ? new Base[0] : this.initial.toArray(new Base[this.initial.size()]); // QuestionnaireItemInitialComponent @@ -1700,7 +1952,7 @@ public class Questionnaire extends MetadataResource { this.prefix = TypeConvertor.castToString(value); // StringType return value; case 3556653: // text - this.text = TypeConvertor.castToString(value); // StringType + this.text = TypeConvertor.castToMarkdown(value); // MarkdownType return value; case 3575610: // type value = new QuestionnaireItemTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); @@ -1713,6 +1965,10 @@ public class Questionnaire extends MetadataResource { value = new EnableWhenBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); this.enableBehavior = (Enumeration) value; // Enumeration return value; + case -1254886746: // disabledDisplay + value = new QuestionnaireItemDisabledDisplayEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.disabledDisplay = (Enumeration) value; // Enumeration + return value; case -393139297: // required this.required = TypeConvertor.castToBoolean(value); // BooleanType return value; @@ -1725,6 +1981,10 @@ public class Questionnaire extends MetadataResource { case -791400086: // maxLength this.maxLength = TypeConvertor.castToInteger(value); // IntegerType return value; + case 746396731: // answerConstraint + value = new QuestionnaireAnswerConstraintEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.answerConstraint = (Enumeration) value; // Enumeration + return value; case -743278833: // answerValueSet this.answerValueSet = TypeConvertor.castToCanonical(value); // CanonicalType return value; @@ -1753,7 +2013,7 @@ public class Questionnaire extends MetadataResource { } else if (name.equals("prefix")) { this.prefix = TypeConvertor.castToString(value); // StringType } else if (name.equals("text")) { - this.text = TypeConvertor.castToString(value); // StringType + this.text = TypeConvertor.castToMarkdown(value); // MarkdownType } else if (name.equals("type")) { value = new QuestionnaireItemTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); this.type = (Enumeration) value; // Enumeration @@ -1762,6 +2022,9 @@ public class Questionnaire extends MetadataResource { } else if (name.equals("enableBehavior")) { value = new EnableWhenBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); this.enableBehavior = (Enumeration) value; // Enumeration + } else if (name.equals("disabledDisplay")) { + value = new QuestionnaireItemDisabledDisplayEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.disabledDisplay = (Enumeration) value; // Enumeration } else if (name.equals("required")) { this.required = TypeConvertor.castToBoolean(value); // BooleanType } else if (name.equals("repeats")) { @@ -1770,6 +2033,9 @@ public class Questionnaire extends MetadataResource { this.readOnly = TypeConvertor.castToBoolean(value); // BooleanType } else if (name.equals("maxLength")) { this.maxLength = TypeConvertor.castToInteger(value); // IntegerType + } else if (name.equals("answerConstraint")) { + value = new QuestionnaireAnswerConstraintEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.answerConstraint = (Enumeration) value; // Enumeration } else if (name.equals("answerValueSet")) { this.answerValueSet = TypeConvertor.castToCanonical(value); // CanonicalType } else if (name.equals("answerOption")) { @@ -1794,10 +2060,12 @@ public class Questionnaire extends MetadataResource { case 3575610: return getTypeElement(); case 1893321565: return addEnableWhen(); case 1854802165: return getEnableBehaviorElement(); + case -1254886746: return getDisabledDisplayElement(); case -393139297: return getRequiredElement(); case 1094288952: return getRepeatsElement(); case -867683742: return getReadOnlyElement(); case -791400086: return getMaxLengthElement(); + case 746396731: return getAnswerConstraintElement(); case -743278833: return getAnswerValueSetElement(); case -1527878189: return addAnswerOption(); case 1948342084: return addInitial(); @@ -1814,14 +2082,16 @@ public class Questionnaire extends MetadataResource { case -1014418093: /*definition*/ return new String[] {"uri"}; case 3059181: /*code*/ return new String[] {"Coding"}; case -980110702: /*prefix*/ return new String[] {"string"}; - case 3556653: /*text*/ return new String[] {"string"}; + case 3556653: /*text*/ return new String[] {"markdown"}; case 3575610: /*type*/ return new String[] {"code"}; case 1893321565: /*enableWhen*/ return new String[] {}; case 1854802165: /*enableBehavior*/ return new String[] {"code"}; + case -1254886746: /*disabledDisplay*/ return new String[] {"code"}; case -393139297: /*required*/ return new String[] {"boolean"}; case 1094288952: /*repeats*/ return new String[] {"boolean"}; case -867683742: /*readOnly*/ return new String[] {"boolean"}; case -791400086: /*maxLength*/ return new String[] {"integer"}; + case 746396731: /*answerConstraint*/ return new String[] {"code"}; case -743278833: /*answerValueSet*/ return new String[] {"canonical"}; case -1527878189: /*answerOption*/ return new String[] {}; case 1948342084: /*initial*/ return new String[] {}; @@ -1857,6 +2127,9 @@ public class Questionnaire extends MetadataResource { else if (name.equals("enableBehavior")) { throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.enableBehavior"); } + else if (name.equals("disabledDisplay")) { + throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.disabledDisplay"); + } else if (name.equals("required")) { throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.required"); } @@ -1869,6 +2142,9 @@ public class Questionnaire extends MetadataResource { else if (name.equals("maxLength")) { throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.maxLength"); } + else if (name.equals("answerConstraint")) { + throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.answerConstraint"); + } else if (name.equals("answerValueSet")) { throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.item.answerValueSet"); } @@ -1909,10 +2185,12 @@ public class Questionnaire extends MetadataResource { dst.enableWhen.add(i.copy()); }; dst.enableBehavior = enableBehavior == null ? null : enableBehavior.copy(); + dst.disabledDisplay = disabledDisplay == null ? null : disabledDisplay.copy(); dst.required = required == null ? null : required.copy(); dst.repeats = repeats == null ? null : repeats.copy(); dst.readOnly = readOnly == null ? null : readOnly.copy(); dst.maxLength = maxLength == null ? null : maxLength.copy(); + dst.answerConstraint = answerConstraint == null ? null : answerConstraint.copy(); dst.answerValueSet = answerValueSet == null ? null : answerValueSet.copy(); if (answerOption != null) { dst.answerOption = new ArrayList(); @@ -1941,8 +2219,9 @@ public class Questionnaire extends MetadataResource { return compareDeep(linkId, o.linkId, true) && compareDeep(definition, o.definition, true) && compareDeep(code, o.code, true) && compareDeep(prefix, o.prefix, true) && compareDeep(text, o.text, true) && compareDeep(type, o.type, true) && compareDeep(enableWhen, o.enableWhen, true) && compareDeep(enableBehavior, o.enableBehavior, true) - && compareDeep(required, o.required, true) && compareDeep(repeats, o.repeats, true) && compareDeep(readOnly, o.readOnly, true) - && compareDeep(maxLength, o.maxLength, true) && compareDeep(answerValueSet, o.answerValueSet, true) + && compareDeep(disabledDisplay, o.disabledDisplay, true) && compareDeep(required, o.required, true) + && compareDeep(repeats, o.repeats, true) && compareDeep(readOnly, o.readOnly, true) && compareDeep(maxLength, o.maxLength, true) + && compareDeep(answerConstraint, o.answerConstraint, true) && compareDeep(answerValueSet, o.answerValueSet, true) && compareDeep(answerOption, o.answerOption, true) && compareDeep(initial, o.initial, true) && compareDeep(item, o.item, true) ; } @@ -1956,15 +2235,17 @@ public class Questionnaire extends MetadataResource { QuestionnaireItemComponent o = (QuestionnaireItemComponent) other_; return compareValues(linkId, o.linkId, true) && compareValues(definition, o.definition, true) && compareValues(prefix, o.prefix, true) && compareValues(text, o.text, true) && compareValues(type, o.type, true) && compareValues(enableBehavior, o.enableBehavior, true) - && compareValues(required, o.required, true) && compareValues(repeats, o.repeats, true) && compareValues(readOnly, o.readOnly, true) - && compareValues(maxLength, o.maxLength, true) && compareValues(answerValueSet, o.answerValueSet, true) + && compareValues(disabledDisplay, o.disabledDisplay, true) && compareValues(required, o.required, true) + && compareValues(repeats, o.repeats, true) && compareValues(readOnly, o.readOnly, true) && compareValues(maxLength, o.maxLength, true) + && compareValues(answerConstraint, o.answerConstraint, true) && compareValues(answerValueSet, o.answerValueSet, true) ; } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(linkId, definition, code - , prefix, text, type, enableWhen, enableBehavior, required, repeats, readOnly - , maxLength, answerValueSet, answerOption, initial, item); + , prefix, text, type, enableWhen, enableBehavior, disabledDisplay, required, repeats + , readOnly, maxLength, answerConstraint, answerValueSet, answerOption, initial, item + ); } public String fhirType() { @@ -2029,10 +2310,10 @@ public QuestionnaireItemComponent getQuestion(String linkId) { protected Enumeration operator; /** - * A value that the referenced question is tested using the specified operator in order for the item to be enabled. + * A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension. */ @Child(name = "answer", type = {BooleanType.class, DecimalType.class, IntegerType.class, DateType.class, DateTimeType.class, TimeType.class, StringType.class, Coding.class, Quantity.class, Reference.class}, order=3, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="Value for question comparison based on operator", formalDefinition="A value that the referenced question is tested using the specified operator in order for the item to be enabled." ) + @Description(shortDefinition="Value for question comparison based on operator", formalDefinition="A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/questionnaire-answers") protected DataType answer; @@ -2146,14 +2427,14 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled.) + * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.) */ public DataType getAnswer() { return this.answer; } /** - * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled.) + * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.) */ public BooleanType getAnswerBooleanType() throws FHIRException { if (this.answer == null) @@ -2168,7 +2449,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled.) + * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.) */ public DecimalType getAnswerDecimalType() throws FHIRException { if (this.answer == null) @@ -2183,7 +2464,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled.) + * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.) */ public IntegerType getAnswerIntegerType() throws FHIRException { if (this.answer == null) @@ -2198,7 +2479,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled.) + * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.) */ public DateType getAnswerDateType() throws FHIRException { if (this.answer == null) @@ -2213,7 +2494,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled.) + * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.) */ public DateTimeType getAnswerDateTimeType() throws FHIRException { if (this.answer == null) @@ -2228,7 +2509,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled.) + * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.) */ public TimeType getAnswerTimeType() throws FHIRException { if (this.answer == null) @@ -2243,7 +2524,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled.) + * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.) */ public StringType getAnswerStringType() throws FHIRException { if (this.answer == null) @@ -2258,7 +2539,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled.) + * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.) */ public Coding getAnswerCoding() throws FHIRException { if (this.answer == null) @@ -2273,7 +2554,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled.) + * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.) */ public Quantity getAnswerQuantity() throws FHIRException { if (this.answer == null) @@ -2288,7 +2569,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled.) + * @return {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.) */ public Reference getAnswerReference() throws FHIRException { if (this.answer == null) @@ -2307,7 +2588,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * @param value {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled.) + * @param value {@link #answer} (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.) */ public QuestionnaireItemEnableWhenComponent setAnswer(DataType value) { if (value != null && !(value instanceof BooleanType || value instanceof DecimalType || value instanceof IntegerType || value instanceof DateType || value instanceof DateTimeType || value instanceof TimeType || value instanceof StringType || value instanceof Coding || value instanceof Quantity || value instanceof Reference)) @@ -2320,7 +2601,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) { super.listChildren(children); children.add(new Property("question", "string", "The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.", 0, 1, question)); children.add(new Property("operator", "code", "Specifies the criteria by which the question is enabled.", 0, 1, operator)); - children.add(new Property("answer[x]", "boolean|decimal|integer|date|dateTime|time|string|Coding|Quantity|Reference(Any)", "A value that the referenced question is tested using the specified operator in order for the item to be enabled.", 0, 1, answer)); + children.add(new Property("answer[x]", "boolean|decimal|integer|date|dateTime|time|string|Coding|Quantity|Reference(Any)", "A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.", 0, 1, answer)); } @Override @@ -2328,18 +2609,18 @@ public QuestionnaireItemComponent getQuestion(String linkId) { switch (_hash) { case -1165870106: /*question*/ return new Property("question", "string", "The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.", 0, 1, question); case -500553564: /*operator*/ return new Property("operator", "code", "Specifies the criteria by which the question is enabled.", 0, 1, operator); - case 1693524994: /*answer[x]*/ return new Property("answer[x]", "boolean|decimal|integer|date|dateTime|time|string|Coding|Quantity|Reference(Any)", "A value that the referenced question is tested using the specified operator in order for the item to be enabled.", 0, 1, answer); - case -1412808770: /*answer*/ return new Property("answer[x]", "boolean|decimal|integer|date|dateTime|time|string|Coding|Quantity|Reference(Any)", "A value that the referenced question is tested using the specified operator in order for the item to be enabled.", 0, 1, answer); - case 1194603146: /*answerBoolean*/ return new Property("answer[x]", "boolean", "A value that the referenced question is tested using the specified operator in order for the item to be enabled.", 0, 1, answer); - case -1622812237: /*answerDecimal*/ return new Property("answer[x]", "decimal", "A value that the referenced question is tested using the specified operator in order for the item to be enabled.", 0, 1, answer); - case -1207023712: /*answerInteger*/ return new Property("answer[x]", "integer", "A value that the referenced question is tested using the specified operator in order for the item to be enabled.", 0, 1, answer); - case 958960780: /*answerDate*/ return new Property("answer[x]", "date", "A value that the referenced question is tested using the specified operator in order for the item to be enabled.", 0, 1, answer); - case -1835321991: /*answerDateTime*/ return new Property("answer[x]", "dateTime", "A value that the referenced question is tested using the specified operator in order for the item to be enabled.", 0, 1, answer); - case 959444907: /*answerTime*/ return new Property("answer[x]", "time", "A value that the referenced question is tested using the specified operator in order for the item to be enabled.", 0, 1, answer); - case -1409727121: /*answerString*/ return new Property("answer[x]", "string", "A value that the referenced question is tested using the specified operator in order for the item to be enabled.", 0, 1, answer); - case -1872828216: /*answerCoding*/ return new Property("answer[x]", "Coding", "A value that the referenced question is tested using the specified operator in order for the item to be enabled.", 0, 1, answer); - case -618108311: /*answerQuantity*/ return new Property("answer[x]", "Quantity", "A value that the referenced question is tested using the specified operator in order for the item to be enabled.", 0, 1, answer); - case -1726221011: /*answerReference*/ return new Property("answer[x]", "Reference(Any)", "A value that the referenced question is tested using the specified operator in order for the item to be enabled.", 0, 1, answer); + case 1693524994: /*answer[x]*/ return new Property("answer[x]", "boolean|decimal|integer|date|dateTime|time|string|Coding|Quantity|Reference(Any)", "A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.", 0, 1, answer); + case -1412808770: /*answer*/ return new Property("answer[x]", "boolean|decimal|integer|date|dateTime|time|string|Coding|Quantity|Reference(Any)", "A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.", 0, 1, answer); + case 1194603146: /*answerBoolean*/ return new Property("answer[x]", "boolean", "A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.", 0, 1, answer); + case -1622812237: /*answerDecimal*/ return new Property("answer[x]", "decimal", "A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.", 0, 1, answer); + case -1207023712: /*answerInteger*/ return new Property("answer[x]", "integer", "A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.", 0, 1, answer); + case 958960780: /*answerDate*/ return new Property("answer[x]", "date", "A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.", 0, 1, answer); + case -1835321991: /*answerDateTime*/ return new Property("answer[x]", "dateTime", "A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.", 0, 1, answer); + case 959444907: /*answerTime*/ return new Property("answer[x]", "time", "A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.", 0, 1, answer); + case -1409727121: /*answerString*/ return new Property("answer[x]", "string", "A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.", 0, 1, answer); + case -1872828216: /*answerCoding*/ return new Property("answer[x]", "Coding", "A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.", 0, 1, answer); + case -618108311: /*answerQuantity*/ return new Property("answer[x]", "Quantity", "A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.", 0, 1, answer); + case -1726221011: /*answerReference*/ return new Property("answer[x]", "Reference(Any)", "A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.", 0, 1, answer); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -3255,10 +3536,10 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers. + * An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers. */ @Child(name = "url", type = {UriType.class}, order=0, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Canonical identifier for this questionnaire, represented as a URI (globally unique)", formalDefinition="An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers." ) + @Description(shortDefinition="Canonical identifier for this questionnaire, represented as a URI (globally unique)", formalDefinition="An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers." ) protected UriType url; /** @@ -3323,7 +3604,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) { * The date (and optionally time) when the questionnaire was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the questionnaire changes. */ @Child(name = "date", type = {DateTimeType.class}, order=9, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Date last changed", formalDefinition="The date (and optionally time) when the questionnaire was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the questionnaire changes." ) + @Description(shortDefinition="Date last formally published", formalDefinition="The date (and optionally time) when the questionnaire was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the questionnaire changes." ) protected DateTimeType date; /** @@ -3430,7 +3711,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * @return {@link #url} (An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value + * @return {@link #url} (An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value */ public UriType getUrlElement() { if (this.url == null) @@ -3450,7 +3731,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * @param value {@link #url} (An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value + * @param value {@link #url} (An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value */ public Questionnaire setUrlElement(UriType value) { this.url = value; @@ -3458,14 +3739,14 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * @return An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers. + * @return An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers. */ public String getUrl() { return this.url == null ? null : this.url.getValue(); } /** - * @param value An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers. + * @param value An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers. */ public Questionnaire setUrl(String value) { if (Utilities.noString(value)) @@ -4522,9 +4803,219 @@ public QuestionnaireItemComponent getQuestion(String linkId) { return getItem().get(0); } + /** + * not supported on this implementation + */ + @Override + public int getTopicMax() { + return 0; + } + /** + * @return {@link #topic} (Descriptive topics related to the content of the library. Topics provide a high-level categorization of the library that can be useful for filtering and searching.) + */ + public List getTopic() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public Questionnaire setTopic(List theTopic) { + throw new Error("The resource type \"Questionnaire\" does not implement the property \"topic\""); + } + public boolean hasTopic() { + return false; + } + + public CodeableConcept addTopic() { //3 + throw new Error("The resource type \"Questionnaire\" does not implement the property \"topic\""); + } + public Questionnaire addTopic(CodeableConcept t) { //3 + throw new Error("The resource type \"Questionnaire\" does not implement the property \"topic\""); + } + /** + * @return The first repetition of repeating field {@link #topic}, creating it if it does not already exist {2} + */ + public CodeableConcept getTopicFirstRep() { + throw new Error("The resource type \"Questionnaire\" does not implement the property \"topic\""); + } + /** + * not supported on this implementation + */ + @Override + public int getAuthorMax() { + return 0; + } + /** + * @return {@link #author} (An individiual or organization primarily involved in the creation and maintenance of the questionnaire.) + */ + public List getAuthor() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public Questionnaire setAuthor(List theAuthor) { + throw new Error("The resource type \"Questionnaire\" does not implement the property \"author\""); + } + public boolean hasAuthor() { + return false; + } + + public ContactDetail addAuthor() { //3 + throw new Error("The resource type \"Questionnaire\" does not implement the property \"author\""); + } + public Questionnaire addAuthor(ContactDetail t) { //3 + throw new Error("The resource type \"Questionnaire\" does not implement the property \"author\""); + } + /** + * @return The first repetition of repeating field {@link #author}, creating it if it does not already exist {2} + */ + public ContactDetail getAuthorFirstRep() { + throw new Error("The resource type \"Questionnaire\" does not implement the property \"author\""); + } + /** + * not supported on this implementation + */ + @Override + public int getEditorMax() { + return 0; + } + /** + * @return {@link #editor} (An individual or organization primarily responsible for internal coherence of the questionnaire.) + */ + public List getEditor() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public Questionnaire setEditor(List theEditor) { + throw new Error("The resource type \"Questionnaire\" does not implement the property \"editor\""); + } + public boolean hasEditor() { + return false; + } + + public ContactDetail addEditor() { //3 + throw new Error("The resource type \"Questionnaire\" does not implement the property \"editor\""); + } + public Questionnaire addEditor(ContactDetail t) { //3 + throw new Error("The resource type \"Questionnaire\" does not implement the property \"editor\""); + } + /** + * @return The first repetition of repeating field {@link #editor}, creating it if it does not already exist {2} + */ + public ContactDetail getEditorFirstRep() { + throw new Error("The resource type \"Questionnaire\" does not implement the property \"editor\""); + } + /** + * not supported on this implementation + */ + @Override + public int getReviewerMax() { + return 0; + } + /** + * @return {@link #reviewer} (An individual or organization primarily responsible for review of some aspect of the questionnaire.) + */ + public List getReviewer() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public Questionnaire setReviewer(List theReviewer) { + throw new Error("The resource type \"Questionnaire\" does not implement the property \"reviewer\""); + } + public boolean hasReviewer() { + return false; + } + + public ContactDetail addReviewer() { //3 + throw new Error("The resource type \"Questionnaire\" does not implement the property \"reviewer\""); + } + public Questionnaire addReviewer(ContactDetail t) { //3 + throw new Error("The resource type \"Questionnaire\" does not implement the property \"reviewer\""); + } + /** + * @return The first repetition of repeating field {@link #reviewer}, creating it if it does not already exist {2} + */ + public ContactDetail getReviewerFirstRep() { + throw new Error("The resource type \"Questionnaire\" does not implement the property \"reviewer\""); + } + /** + * not supported on this implementation + */ + @Override + public int getEndorserMax() { + return 0; + } + /** + * @return {@link #endorser} (An individual or organization responsible for officially endorsing the questionnaire for use in some setting.) + */ + public List getEndorser() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public Questionnaire setEndorser(List theEndorser) { + throw new Error("The resource type \"Questionnaire\" does not implement the property \"endorser\""); + } + public boolean hasEndorser() { + return false; + } + + public ContactDetail addEndorser() { //3 + throw new Error("The resource type \"Questionnaire\" does not implement the property \"endorser\""); + } + public Questionnaire addEndorser(ContactDetail t) { //3 + throw new Error("The resource type \"Questionnaire\" does not implement the property \"endorser\""); + } + /** + * @return The first repetition of repeating field {@link #endorser}, creating it if it does not already exist {2} + */ + public ContactDetail getEndorserFirstRep() { + throw new Error("The resource type \"Questionnaire\" does not implement the property \"endorser\""); + } + /** + * not supported on this implementation + */ + @Override + public int getRelatedArtifactMax() { + return 0; + } + /** + * @return {@link #relatedArtifact} (Related artifacts such as additional documentation, justification, dependencies, bibliographic references, and predecessor and successor artifacts.) + */ + public List getRelatedArtifact() { + return new ArrayList<>(); + } + /** + * @return Returns a reference to this for easy method chaining + */ + public Questionnaire setRelatedArtifact(List theRelatedArtifact) { + throw new Error("The resource type \"Questionnaire\" does not implement the property \"relatedArtifact\""); + } + public boolean hasRelatedArtifact() { + return false; + } + + public RelatedArtifact addRelatedArtifact() { //3 + throw new Error("The resource type \"Questionnaire\" does not implement the property \"relatedArtifact\""); + } + public Questionnaire addRelatedArtifact(RelatedArtifact t) { //3 + throw new Error("The resource type \"Questionnaire\" does not implement the property \"relatedArtifact\""); + } + /** + * @return The first repetition of repeating field {@link #relatedArtifact}, creating it if it does not already exist {2} + */ + public RelatedArtifact getRelatedArtifactFirstRep() { + throw new Error("The resource type \"Questionnaire\" does not implement the property \"relatedArtifact\""); + } protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("url", "uri", "An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers.", 0, 1, url)); + children.add(new Property("url", "uri", "An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers.", 0, 1, url)); children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this questionnaire when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier)); children.add(new Property("version", "string", "The identifier that is used to identify this version of the questionnaire when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the questionnaire author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version)); children.add(new Property("name", "string", "A natural language name identifying the questionnaire. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); @@ -4551,7 +5042,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) { @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers.", 0, 1, url); + case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers.", 0, 1, url); case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this questionnaire when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier); case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the questionnaire when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the questionnaire author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version); case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the questionnaire. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); @@ -4987,24 +5478,44 @@ public QuestionnaireItemComponent getQuestion(String linkId) { } /** - * Search parameter: code + * Search parameter: combo-code *

* Description: A code that corresponds to one of its items in the questionnaire
* Type: token
- * Path: Questionnaire.item.code
+ * Path: Questionnaire.code | Questionnaire.item.code
*

*/ - @SearchParamDefinition(name="code", path="Questionnaire.item.code", description="A code that corresponds to one of its items in the questionnaire", type="token" ) - public static final String SP_CODE = "code"; + @SearchParamDefinition(name="combo-code", path="Questionnaire.code | Questionnaire.item.code", description="A code that corresponds to one of its items in the questionnaire", type="token" ) + public static final String SP_COMBO_CODE = "combo-code"; /** - * Fluent Client search parameter constant for code + * Fluent Client search parameter constant for combo-code *

* Description: A code that corresponds to one of its items in the questionnaire
* Type: token
- * Path: Questionnaire.item.code
+ * Path: Questionnaire.code | Questionnaire.item.code
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam COMBO_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_COMBO_CODE); + + /** + * Search parameter: context + *

+ * Description: A use context assigned to the questionnaire
+ * Type: token
+ * Path: (Questionnaire.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(Questionnaire.useContext.value as CodeableConcept)", description="A use context assigned to the questionnaire", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: A use context assigned to the questionnaire
+ * Type: token
+ * Path: (Questionnaire.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); /** * Search parameter: context-quantity @@ -5026,46 +5537,6 @@ public QuestionnaireItemComponent getQuestion(String linkId) { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the questionnaire
- * Type: composite
- * Path: Questionnaire.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="Questionnaire.useContext", description="A use context type and quantity- or range-based value assigned to the questionnaire", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the questionnaire
- * Type: composite
- * Path: Questionnaire.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: A use context type and value assigned to the questionnaire
- * Type: composite
- * Path: Questionnaire.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="Questionnaire.useContext", description="A use context type and value assigned to the questionnaire", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: A use context type and value assigned to the questionnaire
- * Type: composite
- * Path: Questionnaire.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -5086,26 +5557,6 @@ public QuestionnaireItemComponent getQuestion(String linkId) { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: A use context assigned to the questionnaire
- * Type: token
- * Path: (Questionnaire.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(Questionnaire.useContext.value as CodeableConcept)", description="A use context assigned to the questionnaire", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: A use context assigned to the questionnaire
- * Type: token
- * Path: (Questionnaire.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -5206,6 +5657,26 @@ public QuestionnaireItemComponent getQuestion(String linkId) { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + /** + * Search parameter: item-code + *

+ * Description: A code that corresponds to one of the items in the questionnaire
+ * Type: token
+ * Path: Questionnaire.item.code
+ *

+ */ + @SearchParamDefinition(name="item-code", path="Questionnaire.item.code", description="A code that corresponds to one of the items in the questionnaire", type="token" ) + public static final String SP_ITEM_CODE = "item-code"; + /** + * Fluent Client search parameter constant for item-code + *

+ * Description: A code that corresponds to one of the items in the questionnaire
+ * Type: token
+ * Path: Questionnaire.item.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam ITEM_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ITEM_CODE); + /** * Search parameter: jurisdiction *

@@ -5266,6 +5737,26 @@ public QuestionnaireItemComponent getQuestion(String linkId) { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); + /** + * Search parameter: questionnaire-code + *

+ * Description: A code that matches one of the Questionnaire.code codings
+ * Type: token
+ * Path: Questionnaire.code
+ *

+ */ + @SearchParamDefinition(name="questionnaire-code", path="Questionnaire.code", description="A code that matches one of the Questionnaire.code codings", type="token" ) + public static final String SP_QUESTIONNAIRE_CODE = "questionnaire-code"; + /** + * Fluent Client search parameter constant for questionnaire-code + *

+ * Description: A code that matches one of the Questionnaire.code codings
+ * Type: token
+ * Path: Questionnaire.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam QUESTIONNAIRE_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_QUESTIONNAIRE_CODE); + /** * Search parameter: status *

@@ -5366,7 +5857,47 @@ public QuestionnaireItemComponent getQuestion(String linkId) { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); -// Manual code (from Configuration.txt)t: + /** + * Search parameter: context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the questionnaire
+ * Type: composite
+ * Path: Questionnaire.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="Questionnaire.useContext", description="A use context type and quantity- or range-based value assigned to the questionnaire", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the questionnaire
+ * Type: composite
+ * Path: Questionnaire.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: A use context type and value assigned to the questionnaire
+ * Type: composite
+ * Path: Questionnaire.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="Questionnaire.useContext", description="A use context type and value assigned to the questionnaire", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: A use context type and value assigned to the questionnaire
+ * Type: composite
+ * Path: Questionnaire.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + +// Manual code (from Configuration.txt): public QuestionnaireItemComponent getQuestion(String linkId) { if (linkId == null) return null; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/QuestionnaireResponse.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/QuestionnaireResponse.java index ad2676c56..4d87e9a74 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/QuestionnaireResponse.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/QuestionnaireResponse.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -71,7 +71,7 @@ public class QuestionnaireResponse extends DomainResource { */ ENTEREDINERROR, /** - * This QuestionnaireResponse has been partially filled out with answers but has been abandoned. It is unknown whether changes or additions are expected to be made to it. + * This QuestionnaireResponse has been partially filled out with answers but has been abandoned. No subsequent changes can be made. */ STOPPED, /** @@ -103,7 +103,6 @@ public class QuestionnaireResponse extends DomainResource { case AMENDED: return "amended"; case ENTEREDINERROR: return "entered-in-error"; case STOPPED: return "stopped"; - case NULL: return null; default: return "?"; } } @@ -114,7 +113,6 @@ public class QuestionnaireResponse extends DomainResource { case AMENDED: return "http://hl7.org/fhir/questionnaire-answers-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/questionnaire-answers-status"; case STOPPED: return "http://hl7.org/fhir/questionnaire-answers-status"; - case NULL: return null; default: return "?"; } } @@ -124,8 +122,7 @@ public class QuestionnaireResponse extends DomainResource { case COMPLETED: return "This QuestionnaireResponse has been filled out with answers and the current content is regarded as definitive."; case AMENDED: return "This QuestionnaireResponse has been filled out with answers, then marked as complete, yet changes or additions have been made to it afterwards."; case ENTEREDINERROR: return "This QuestionnaireResponse was entered in error and voided."; - case STOPPED: return "This QuestionnaireResponse has been partially filled out with answers but has been abandoned. It is unknown whether changes or additions are expected to be made to it."; - case NULL: return null; + case STOPPED: return "This QuestionnaireResponse has been partially filled out with answers but has been abandoned. No subsequent changes can be made."; default: return "?"; } } @@ -136,7 +133,6 @@ public class QuestionnaireResponse extends DomainResource { case AMENDED: return "Amended"; case ENTEREDINERROR: return "Entered in Error"; case STOPPED: return "Stopped"; - case NULL: return null; default: return "?"; } } @@ -228,10 +224,10 @@ public class QuestionnaireResponse extends DomainResource { protected List answer; /** - * Questions or sub-groups nested beneath a question or group. + * Sub-questions, sub-groups or display items nested beneath a group. */ @Child(name = "item", type = {QuestionnaireResponseItemComponent.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Nested questionnaire response items", formalDefinition="Questions or sub-groups nested beneath a question or group." ) + @Description(shortDefinition="Child items of group item", formalDefinition="Sub-questions, sub-groups or display items nested beneath a group." ) protected List item; private static final long serialVersionUID = -1395483402L; @@ -448,7 +444,7 @@ public class QuestionnaireResponse extends DomainResource { } /** - * @return {@link #item} (Questions or sub-groups nested beneath a question or group.) + * @return {@link #item} (Sub-questions, sub-groups or display items nested beneath a group.) */ public List getItem() { if (this.item == null) @@ -506,7 +502,7 @@ public class QuestionnaireResponse extends DomainResource { children.add(new Property("definition", "uri", "A reference to an [ElementDefinition](elementdefinition.html) that provides the details for the item.", 0, 1, definition)); children.add(new Property("text", "string", "Text that is displayed above the contents of the group or as the text of the question being answered.", 0, 1, text)); children.add(new Property("answer", "", "The respondent's answer(s) to the question.", 0, java.lang.Integer.MAX_VALUE, answer)); - children.add(new Property("item", "@QuestionnaireResponse.item", "Questions or sub-groups nested beneath a question or group.", 0, java.lang.Integer.MAX_VALUE, item)); + children.add(new Property("item", "@QuestionnaireResponse.item", "Sub-questions, sub-groups or display items nested beneath a group.", 0, java.lang.Integer.MAX_VALUE, item)); } @Override @@ -516,7 +512,7 @@ public class QuestionnaireResponse extends DomainResource { case -1014418093: /*definition*/ return new Property("definition", "uri", "A reference to an [ElementDefinition](elementdefinition.html) that provides the details for the item.", 0, 1, definition); case 3556653: /*text*/ return new Property("text", "string", "Text that is displayed above the contents of the group or as the text of the question being answered.", 0, 1, text); case -1412808770: /*answer*/ return new Property("answer", "", "The respondent's answer(s) to the question.", 0, java.lang.Integer.MAX_VALUE, answer); - case 3242771: /*item*/ return new Property("item", "@QuestionnaireResponse.item", "Questions or sub-groups nested beneath a question or group.", 0, java.lang.Integer.MAX_VALUE, item); + case 3242771: /*item*/ return new Property("item", "@QuestionnaireResponse.item", "Sub-questions, sub-groups or display items nested beneath a group.", 0, java.lang.Integer.MAX_VALUE, item); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -693,7 +689,7 @@ public class QuestionnaireResponse extends DomainResource { * Nested groups and/or questions found within this particular answer. */ @Child(name = "item", type = {QuestionnaireResponseItemComponent.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="Nested groups and questions", formalDefinition="Nested groups and/or questions found within this particular answer." ) + @Description(shortDefinition="Child items of question", formalDefinition="Nested groups and/or questions found within this particular answer." ) protected List item; private static final long serialVersionUID = 1790747618L; @@ -2067,6 +2063,32 @@ public class QuestionnaireResponse extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + /** + * Search parameter: item-subject + *

+ * Description: Allows searching for QuestionnaireResponses by item value where the item has isSubject=true
+ * Type: reference
+ * Path: QuestionnaireResponse.item.where(extension('http://hl7.org/fhir/StructureDefinition/questionnaireresponse-isSubject').exists()).answer.value.ofType(Reference)
+ *

+ */ + @SearchParamDefinition(name="item-subject", path="QuestionnaireResponse.item.where(extension('http://hl7.org/fhir/StructureDefinition/questionnaireresponse-isSubject').exists()).answer.value.ofType(Reference)", description="Allows searching for QuestionnaireResponses by item value where the item has isSubject=true", type="reference" ) + public static final String SP_ITEM_SUBJECT = "item-subject"; + /** + * Fluent Client search parameter constant for item-subject + *

+ * Description: Allows searching for QuestionnaireResponses by item value where the item has isSubject=true
+ * Type: reference
+ * Path: QuestionnaireResponse.item.where(extension('http://hl7.org/fhir/StructureDefinition/questionnaireresponse-isSubject').exists()).answer.value.ofType(Reference)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ITEM_SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ITEM_SUBJECT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "QuestionnaireResponse:item-subject". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ITEM_SUBJECT = new ca.uhn.fhir.model.api.Include("QuestionnaireResponse:item-subject").toLocked(); + /** * Search parameter: part-of *

@@ -2101,7 +2123,7 @@ public class QuestionnaireResponse extends DomainResource { * Path: QuestionnaireResponse.subject.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="QuestionnaireResponse.subject.where(resolve() is Patient)", description="The patient that is the subject of the questionnaire response", type="reference", target={Patient.class } ) + @SearchParamDefinition(name="patient", path="QuestionnaireResponse.subject.where(resolve() is Patient)", description="The patient that is the subject of the questionnaire response", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -2199,7 +2221,7 @@ public class QuestionnaireResponse extends DomainResource { * Path: QuestionnaireResponse.subject
*

*/ - @SearchParamDefinition(name="subject", path="QuestionnaireResponse.subject", description="The subject of the questionnaire response", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="subject", path="QuestionnaireResponse.subject", description="The subject of the questionnaire response", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject @@ -2217,32 +2239,6 @@ public class QuestionnaireResponse extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("QuestionnaireResponse:subject").toLocked(); - /** - * Search parameter: item-subject - *

- * Description: Allows searching for QuestionnaireResponses by item value where the item has isSubject=true
- * Type: reference
- * Path: QuestionnaireResponse.item.where(hasExtension('http://hl7.org/fhir/StructureDefinition/questionnaireresponse-isSubject')).answer.value.ofType(Reference)
- *

- */ - @SearchParamDefinition(name="item-subject", path="QuestionnaireResponse.item.where(hasExtension('http://hl7.org/fhir/StructureDefinition/questionnaireresponse-isSubject')).answer.value.ofType(Reference)", description="Allows searching for QuestionnaireResponses by item value where the item has isSubject=true", type="reference" ) - public static final String SP_ITEM_SUBJECT = "item-subject"; - /** - * Fluent Client search parameter constant for item-subject - *

- * Description: Allows searching for QuestionnaireResponses by item value where the item has isSubject=true
- * Type: reference
- * Path: QuestionnaireResponse.item.where(hasExtension('http://hl7.org/fhir/StructureDefinition/questionnaireresponse-isSubject')).answer.value.ofType(Reference)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ITEM_SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ITEM_SUBJECT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "QuestionnaireResponse:item-subject". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ITEM_SUBJECT = new ca.uhn.fhir.model.api.Include("QuestionnaireResponse:item-subject").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Range.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Range.java index a9df92cc5..9069cc1ac 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Range.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Range.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ratio.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ratio.java index d73b174b5..fa256bcba 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ratio.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Ratio.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RatioRange.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RatioRange.java new file mode 100644 index 000000000..1f3946685 --- /dev/null +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RatioRange.java @@ -0,0 +1,304 @@ +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, \ + are permitted provided that the following conditions are met: + + * 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 \ + 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 \ + POSSIBILITY OF SUCH DAMAGE. + */ + +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import org.hl7.fhir.r5.model.Enumerations.*; +import org.hl7.fhir.instance.model.api.IBaseDatatypeElement; +import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.instance.model.api.ICompositeType; +import ca.uhn.fhir.model.api.annotation.Child; +import ca.uhn.fhir.model.api.annotation.ChildOrder; +import ca.uhn.fhir.model.api.annotation.DatatypeDef; +import ca.uhn.fhir.model.api.annotation.Description; +import ca.uhn.fhir.model.api.annotation.Block; + +/** + * Base StructureDefinition for RatioRange Type: A range of ratios expressed as a low and high numerator and a denominator. + */ +@DatatypeDef(name="RatioRange") +public class RatioRange extends DataType implements ICompositeType { + + /** + * The value of the low limit numerator. + */ + @Child(name = "lowNumerator", type = {Quantity.class}, order=0, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Low Numerator limit", formalDefinition="The value of the low limit numerator." ) + protected Quantity lowNumerator; + + /** + * The value of the high limit numerator. + */ + @Child(name = "highNumerator", type = {Quantity.class}, order=1, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="High Numerator limit", formalDefinition="The value of the high limit numerator." ) + protected Quantity highNumerator; + + /** + * The value of the denominator. + */ + @Child(name = "denominator", type = {Quantity.class}, order=2, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Denominator value", formalDefinition="The value of the denominator." ) + protected Quantity denominator; + + private static final long serialVersionUID = -1691080287L; + + /** + * Constructor + */ + public RatioRange() { + super(); + } + + /** + * @return {@link #lowNumerator} (The value of the low limit numerator.) + */ + public Quantity getLowNumerator() { + if (this.lowNumerator == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create RatioRange.lowNumerator"); + else if (Configuration.doAutoCreate()) + this.lowNumerator = new Quantity(); // cc + return this.lowNumerator; + } + + public boolean hasLowNumerator() { + return this.lowNumerator != null && !this.lowNumerator.isEmpty(); + } + + /** + * @param value {@link #lowNumerator} (The value of the low limit numerator.) + */ + public RatioRange setLowNumerator(Quantity value) { + this.lowNumerator = value; + return this; + } + + /** + * @return {@link #highNumerator} (The value of the high limit numerator.) + */ + public Quantity getHighNumerator() { + if (this.highNumerator == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create RatioRange.highNumerator"); + else if (Configuration.doAutoCreate()) + this.highNumerator = new Quantity(); // cc + return this.highNumerator; + } + + public boolean hasHighNumerator() { + return this.highNumerator != null && !this.highNumerator.isEmpty(); + } + + /** + * @param value {@link #highNumerator} (The value of the high limit numerator.) + */ + public RatioRange setHighNumerator(Quantity value) { + this.highNumerator = value; + return this; + } + + /** + * @return {@link #denominator} (The value of the denominator.) + */ + public Quantity getDenominator() { + if (this.denominator == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create RatioRange.denominator"); + else if (Configuration.doAutoCreate()) + this.denominator = new Quantity(); // cc + return this.denominator; + } + + public boolean hasDenominator() { + return this.denominator != null && !this.denominator.isEmpty(); + } + + /** + * @param value {@link #denominator} (The value of the denominator.) + */ + public RatioRange setDenominator(Quantity value) { + this.denominator = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("lowNumerator", "Quantity", "The value of the low limit numerator.", 0, 1, lowNumerator)); + children.add(new Property("highNumerator", "Quantity", "The value of the high limit numerator.", 0, 1, highNumerator)); + children.add(new Property("denominator", "Quantity", "The value of the denominator.", 0, 1, denominator)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 1003958677: /*lowNumerator*/ return new Property("lowNumerator", "Quantity", "The value of the low limit numerator.", 0, 1, lowNumerator); + case 311013127: /*highNumerator*/ return new Property("highNumerator", "Quantity", "The value of the high limit numerator.", 0, 1, highNumerator); + case -1983274394: /*denominator*/ return new Property("denominator", "Quantity", "The value of the denominator.", 0, 1, denominator); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 1003958677: /*lowNumerator*/ return this.lowNumerator == null ? new Base[0] : new Base[] {this.lowNumerator}; // Quantity + case 311013127: /*highNumerator*/ return this.highNumerator == null ? new Base[0] : new Base[] {this.highNumerator}; // Quantity + case -1983274394: /*denominator*/ return this.denominator == null ? new Base[0] : new Base[] {this.denominator}; // Quantity + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 1003958677: // lowNumerator + this.lowNumerator = TypeConvertor.castToQuantity(value); // Quantity + return value; + case 311013127: // highNumerator + this.highNumerator = TypeConvertor.castToQuantity(value); // Quantity + return value; + case -1983274394: // denominator + this.denominator = TypeConvertor.castToQuantity(value); // Quantity + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("lowNumerator")) { + this.lowNumerator = TypeConvertor.castToQuantity(value); // Quantity + } else if (name.equals("highNumerator")) { + this.highNumerator = TypeConvertor.castToQuantity(value); // Quantity + } else if (name.equals("denominator")) { + this.denominator = TypeConvertor.castToQuantity(value); // Quantity + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 1003958677: return getLowNumerator(); + case 311013127: return getHighNumerator(); + case -1983274394: return getDenominator(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 1003958677: /*lowNumerator*/ return new String[] {"Quantity"}; + case 311013127: /*highNumerator*/ return new String[] {"Quantity"}; + case -1983274394: /*denominator*/ return new String[] {"Quantity"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("lowNumerator")) { + this.lowNumerator = new Quantity(); + return this.lowNumerator; + } + else if (name.equals("highNumerator")) { + this.highNumerator = new Quantity(); + return this.highNumerator; + } + else if (name.equals("denominator")) { + this.denominator = new Quantity(); + return this.denominator; + } + else + return super.addChild(name); + } + + public String fhirType() { + return "RatioRange"; + + } + + public RatioRange copy() { + RatioRange dst = new RatioRange(); + copyValues(dst); + return dst; + } + + public void copyValues(RatioRange dst) { + super.copyValues(dst); + dst.lowNumerator = lowNumerator == null ? null : lowNumerator.copy(); + dst.highNumerator = highNumerator == null ? null : highNumerator.copy(); + dst.denominator = denominator == null ? null : denominator.copy(); + } + + protected RatioRange typedCopy() { + return copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof RatioRange)) + return false; + RatioRange o = (RatioRange) other_; + return compareDeep(lowNumerator, o.lowNumerator, true) && compareDeep(highNumerator, o.highNumerator, true) + && compareDeep(denominator, o.denominator, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof RatioRange)) + return false; + RatioRange o = (RatioRange) other_; + return true; + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(lowNumerator, highNumerator + , denominator); + } + + +} + diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Reference.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Reference.java index 2a0180ba2..808360b34 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Reference.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Reference.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -461,7 +461,7 @@ The type is the Canonical URL of Resource Definition that is the type this refer , display); } -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): @Override public String toString() { if (hasReference()) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RegulatedAuthorization.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RegulatedAuthorization.java index c1b572b3e..6f50c1b6d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RegulatedAuthorization.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RegulatedAuthorization.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -47,7 +47,7 @@ import ca.uhn.fhir.model.api.annotation.Description; import ca.uhn.fhir.model.api.annotation.Block; /** - * The regulatory authorization of a medicinal product, device or process. + * Regulatory approval, clearance or licencing related to a regulated product, treatment, facility or activity that is cited in a guidance, regulation, rule or legislative act. An example is Market Authorization relating to a Medicinal Product. */ @ResourceDef(name="RegulatedAuthorization", profile="http://hl7.org/fhir/StructureDefinition/RegulatedAuthorization") public class RegulatedAuthorization extends DomainResource { @@ -62,10 +62,10 @@ public class RegulatedAuthorization extends DomainResource { protected DataType date; /** - * Type of this date, for example the data exclusitity period for a medicinal product. + * The meaning of the related date for a regulated product, treatment, facility or activity. As an example, the data exclusivity period for a regulated product. */ @Child(name = "type", type = {CodeableConcept.class}, order=2, min=1, max=1, modifier=false, summary=true) - @Description(shortDefinition="Type of this date, for example the data exclusitity period for a medicinal product", formalDefinition="Type of this date, for example the data exclusitity period for a medicinal product." ) + @Description(shortDefinition="The meaning of the related date for a regulated product, treatment, facility or activity. As an example, the data exclusivity period for a regulated product", formalDefinition="The meaning of the related date for a regulated product, treatment, facility or activity. As an example, the data exclusivity period for a regulated product." ) protected CodeableConcept type; private static final long serialVersionUID = 950845613L; @@ -138,7 +138,7 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @return {@link #type} (Type of this date, for example the data exclusitity period for a medicinal product.) + * @return {@link #type} (The meaning of the related date for a regulated product, treatment, facility or activity. As an example, the data exclusivity period for a regulated product.) */ public CodeableConcept getType() { if (this.type == null) @@ -154,7 +154,7 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @param value {@link #type} (Type of this date, for example the data exclusitity period for a medicinal product.) + * @param value {@link #type} (The meaning of the related date for a regulated product, treatment, facility or activity. As an example, the data exclusivity period for a regulated product.) */ public RegulatedAuthorizationRelatedDateComponent setType(CodeableConcept value) { this.type = value; @@ -164,7 +164,7 @@ public class RegulatedAuthorization extends DomainResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("date[x]", "Period|dateTime", "Another date associated with the authorization.", 0, 1, date)); - children.add(new Property("type", "CodeableConcept", "Type of this date, for example the data exclusitity period for a medicinal product.", 0, 1, type)); + children.add(new Property("type", "CodeableConcept", "The meaning of the related date for a regulated product, treatment, facility or activity. As an example, the data exclusivity period for a regulated product.", 0, 1, type)); } @Override @@ -174,7 +174,7 @@ public class RegulatedAuthorization extends DomainResource { case 3076014: /*date*/ return new Property("date[x]", "Period|dateTime", "Another date associated with the authorization.", 0, 1, date); case 432297743: /*datePeriod*/ return new Property("date[x]", "Period", "Another date associated with the authorization.", 0, 1, date); case 185136489: /*dateDateTime*/ return new Property("date[x]", "dateTime", "Another date associated with the authorization.", 0, 1, date); - case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Type of this date, for example the data exclusitity period for a medicinal product.", 0, 1, type); + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The meaning of the related date for a regulated product, treatment, facility or activity. As an example, the data exclusivity period for a regulated product.", 0, 1, type); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -328,10 +328,10 @@ public class RegulatedAuthorization extends DomainResource { protected DataType date; /** - * Applcations submitted to obtain a marketing authorization. Steps within the longer running case or procedure. + * Applications submitted to obtain a marketing authorization. Steps within the longer running case or procedure. */ @Child(name = "application", type = {RegulatedAuthorizationCaseComponent.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Applcations submitted to obtain a marketing authorization. Steps within the longer running case or procedure", formalDefinition="Applcations submitted to obtain a marketing authorization. Steps within the longer running case or procedure." ) + @Description(shortDefinition="Applications submitted to obtain a marketing authorization. Steps within the longer running case or procedure", formalDefinition="Applications submitted to obtain a marketing authorization. Steps within the longer running case or procedure." ) protected List application; private static final long serialVersionUID = 2052202113L; @@ -467,7 +467,7 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @return {@link #application} (Applcations submitted to obtain a marketing authorization. Steps within the longer running case or procedure.) + * @return {@link #application} (Applications submitted to obtain a marketing authorization. Steps within the longer running case or procedure.) */ public List getApplication() { if (this.application == null) @@ -525,7 +525,7 @@ public class RegulatedAuthorization extends DomainResource { children.add(new Property("type", "CodeableConcept", "The defining type of case.", 0, 1, type)); children.add(new Property("status", "CodeableConcept", "The status associated with the case.", 0, 1, status)); children.add(new Property("date[x]", "Period|dateTime", "Relevant date for this of case.", 0, 1, date)); - children.add(new Property("application", "@RegulatedAuthorization.case", "Applcations submitted to obtain a marketing authorization. Steps within the longer running case or procedure.", 0, java.lang.Integer.MAX_VALUE, application)); + children.add(new Property("application", "@RegulatedAuthorization.case", "Applications submitted to obtain a marketing authorization. Steps within the longer running case or procedure.", 0, java.lang.Integer.MAX_VALUE, application)); } @Override @@ -538,7 +538,7 @@ public class RegulatedAuthorization extends DomainResource { case 3076014: /*date*/ return new Property("date[x]", "Period|dateTime", "Relevant date for this of case.", 0, 1, date); case 432297743: /*datePeriod*/ return new Property("date[x]", "Period", "Relevant date for this of case.", 0, 1, date); case 185136489: /*dateDateTime*/ return new Property("date[x]", "dateTime", "Relevant date for this of case.", 0, 1, date); - case 1554253136: /*application*/ return new Property("application", "@RegulatedAuthorization.case", "Applcations submitted to obtain a marketing authorization. Steps within the longer running case or procedure.", 0, java.lang.Integer.MAX_VALUE, application); + case 1554253136: /*application*/ return new Property("application", "@RegulatedAuthorization.case", "Applications submitted to obtain a marketing authorization. Steps within the longer running case or procedure.", 0, java.lang.Integer.MAX_VALUE, application); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -706,17 +706,17 @@ public class RegulatedAuthorization extends DomainResource { } /** - * Business identifier for the authorization, typically assigned by the authorizing body. + * Business identifier for the authorization, typically this is assigned by the authorizing body. */ @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Business identifier for the authorization, typically assigned by the authorizing body", formalDefinition="Business identifier for the authorization, typically assigned by the authorizing body." ) + @Description(shortDefinition="Business identifier for the authorization, typically this is assigned by the authorizing body", formalDefinition="Business identifier for the authorization, typically this is assigned by the authorizing body." ) protected List identifier; /** - * The type of product or service that is being authorized. + * The type of regulated product, treatment, facility or activity that is being authorized. */ @Child(name = "subject", type = {MedicinalProductDefinition.class, BiologicallyDerivedProduct.class, NutritionProduct.class, PackagedProductDefinition.class, SubstanceDefinition.class, DeviceDefinition.class, ResearchStudy.class, ActivityDefinition.class, PlanDefinition.class, ObservationDefinition.class, Practitioner.class, Organization.class, Location.class}, order=1, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="The type of product or service that is being authorized", formalDefinition="The type of product or service that is being authorized." ) + @Description(shortDefinition="The type of regulated product, treatment, facility or activity that is being authorized", formalDefinition="The type of regulated product, treatment, facility or activity that is being authorized." ) protected Reference subject; /** @@ -734,10 +734,10 @@ public class RegulatedAuthorization extends DomainResource { protected MarkdownType description; /** - * The region (country, jurisdiction etc.) in which the marketing authorization has been granted. + * The territory (e.g., country, jurisdiction etc.) in which the authorization has been granted. */ @Child(name = "region", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="The region (country, jurisdiction etc.) in which the marketing authorization has been granted", formalDefinition="The region (country, jurisdiction etc.) in which the marketing authorization has been granted." ) + @Description(shortDefinition="The territory (e.g., country, jurisdiction etc.) in which the authorization has been granted", formalDefinition="The territory (e.g., country, jurisdiction etc.) in which the authorization has been granted." ) protected List region; /** @@ -748,25 +748,25 @@ public class RegulatedAuthorization extends DomainResource { protected CodeableConcept status; /** - * The date at which the given status became applicable. + * The date at which the current status was assigned. */ @Child(name = "statusDate", type = {DateTimeType.class}, order=6, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="The date at which the given status became applicable", formalDefinition="The date at which the given status became applicable." ) + @Description(shortDefinition="The date at which the current status was assigned", formalDefinition="The date at which the current status was assigned." ) protected DateTimeType statusDate; /** - * The beginning of the time period in which the marketing authorization is in the specific status shall be specified A complete date consisting of day, month and year shall be specified using the ISO 8601 date format. + * The time period in which the regulatory approval, clearance or licencing is in effect. As an example, a Marketing Authorization includes the date of authorization and/or an expiration date. */ @Child(name = "validityPeriod", type = {Period.class}, order=7, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="The beginning of the time period in which the marketing authorization is in the specific status shall be specified A complete date consisting of day, month and year shall be specified using the ISO 8601 date format", formalDefinition="The beginning of the time period in which the marketing authorization is in the specific status shall be specified A complete date consisting of day, month and year shall be specified using the ISO 8601 date format." ) + @Description(shortDefinition="The time period in which the regulatory approval, clearance or licencing is in effect. As an example, a Marketing Authorization includes the date of authorization and/or an expiration date", formalDefinition="The time period in which the regulatory approval, clearance or licencing is in effect. As an example, a Marketing Authorization includes the date of authorization and/or an expiration date." ) protected Period validityPeriod; /** - * Condition for which the medicinal use applies. + * Condition for which the use of the regulated product applies. */ - @Child(name = "indication", type = {CodeableConcept.class, ClinicalUseIssue.class}, order=8, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Condition for which the medicinal use applies", formalDefinition="Condition for which the medicinal use applies." ) - protected DataType indication; + @Child(name = "indication", type = {CodeableReference.class}, order=8, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Condition for which the use of the regulated product applies", formalDefinition="Condition for which the use of the regulated product applies." ) + protected CodeableReference indication; /** * The intended use of the product, e.g. prevention, treatment. @@ -804,20 +804,27 @@ public class RegulatedAuthorization extends DomainResource { protected Reference holder; /** - * Medicines Regulatory Agency. + * The regulatory authority or authorizing body granting the authorization. For example, European Medicines Agency (EMA), Food and Drug Administration (FDA), Health Canada (HC), etc. */ @Child(name = "regulator", type = {Organization.class}, order=14, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Medicines Regulatory Agency", formalDefinition="Medicines Regulatory Agency." ) + @Description(shortDefinition="The regulatory authority or authorizing body granting the authorization", formalDefinition="The regulatory authority or authorizing body granting the authorization. For example, European Medicines Agency (EMA), Food and Drug Administration (FDA), Health Canada (HC), etc." ) protected Reference regulator; /** - * The case or regulatory procedure for granting or amending a marketing authorization. + * Additional information or supporting documentation about the authorization. */ - @Child(name = "case", type = {}, order=15, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="The case or regulatory procedure for granting or amending a marketing authorization", formalDefinition="The case or regulatory procedure for granting or amending a marketing authorization." ) + @Child(name = "attachedDocument", type = {DocumentReference.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Additional information or supporting documentation about the authorization", formalDefinition="Additional information or supporting documentation about the authorization." ) + protected List attachedDocument; + + /** + * The case or regulatory procedure for granting or amending a marketing authorization. Note: This area is subject to ongoing review and the workgroup is seeking implementer feedback on its use (see link at bottom of page). + */ + @Child(name = "case", type = {}, order=16, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="The case or regulatory procedure for granting or amending a marketing authorization. Note: This area is subject to ongoing review and the workgroup is seeking implementer feedback on its use (see link at bottom of page)", formalDefinition="The case or regulatory procedure for granting or amending a marketing authorization. Note: This area is subject to ongoing review and the workgroup is seeking implementer feedback on its use (see link at bottom of page)." ) protected RegulatedAuthorizationCaseComponent case_; - private static final long serialVersionUID = -896864670L; + private static final long serialVersionUID = 1527940810L; /** * Constructor @@ -827,7 +834,7 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @return {@link #identifier} (Business identifier for the authorization, typically assigned by the authorizing body.) + * @return {@link #identifier} (Business identifier for the authorization, typically this is assigned by the authorizing body.) */ public List getIdentifier() { if (this.identifier == null) @@ -880,7 +887,7 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @return {@link #subject} (The type of product or service that is being authorized.) + * @return {@link #subject} (The type of regulated product, treatment, facility or activity that is being authorized.) */ public Reference getSubject() { if (this.subject == null) @@ -896,7 +903,7 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @param value {@link #subject} (The type of product or service that is being authorized.) + * @param value {@link #subject} (The type of regulated product, treatment, facility or activity that is being authorized.) */ public RegulatedAuthorization setSubject(Reference value) { this.subject = value; @@ -977,7 +984,7 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @return {@link #region} (The region (country, jurisdiction etc.) in which the marketing authorization has been granted.) + * @return {@link #region} (The territory (e.g., country, jurisdiction etc.) in which the authorization has been granted.) */ public List getRegion() { if (this.region == null) @@ -1054,7 +1061,7 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @return {@link #statusDate} (The date at which the given status became applicable.). This is the underlying object with id, value and extensions. The accessor "getStatusDate" gives direct access to the value + * @return {@link #statusDate} (The date at which the current status was assigned.). This is the underlying object with id, value and extensions. The accessor "getStatusDate" gives direct access to the value */ public DateTimeType getStatusDateElement() { if (this.statusDate == null) @@ -1074,7 +1081,7 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @param value {@link #statusDate} (The date at which the given status became applicable.). This is the underlying object with id, value and extensions. The accessor "getStatusDate" gives direct access to the value + * @param value {@link #statusDate} (The date at which the current status was assigned.). This is the underlying object with id, value and extensions. The accessor "getStatusDate" gives direct access to the value */ public RegulatedAuthorization setStatusDateElement(DateTimeType value) { this.statusDate = value; @@ -1082,14 +1089,14 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @return The date at which the given status became applicable. + * @return The date at which the current status was assigned. */ public Date getStatusDate() { return this.statusDate == null ? null : this.statusDate.getValue(); } /** - * @param value The date at which the given status became applicable. + * @param value The date at which the current status was assigned. */ public RegulatedAuthorization setStatusDate(Date value) { if (value == null) @@ -1103,7 +1110,7 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @return {@link #validityPeriod} (The beginning of the time period in which the marketing authorization is in the specific status shall be specified A complete date consisting of day, month and year shall be specified using the ISO 8601 date format.) + * @return {@link #validityPeriod} (The time period in which the regulatory approval, clearance or licencing is in effect. As an example, a Marketing Authorization includes the date of authorization and/or an expiration date.) */ public Period getValidityPeriod() { if (this.validityPeriod == null) @@ -1119,7 +1126,7 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @param value {@link #validityPeriod} (The beginning of the time period in which the marketing authorization is in the specific status shall be specified A complete date consisting of day, month and year shall be specified using the ISO 8601 date format.) + * @param value {@link #validityPeriod} (The time period in which the regulatory approval, clearance or licencing is in effect. As an example, a Marketing Authorization includes the date of authorization and/or an expiration date.) */ public RegulatedAuthorization setValidityPeriod(Period value) { this.validityPeriod = value; @@ -1127,52 +1134,25 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @return {@link #indication} (Condition for which the medicinal use applies.) + * @return {@link #indication} (Condition for which the use of the regulated product applies.) */ - public DataType getIndication() { + public CodeableReference getIndication() { + if (this.indication == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create RegulatedAuthorization.indication"); + else if (Configuration.doAutoCreate()) + this.indication = new CodeableReference(); // cc return this.indication; } - /** - * @return {@link #indication} (Condition for which the medicinal use applies.) - */ - public CodeableConcept getIndicationCodeableConcept() throws FHIRException { - if (this.indication == null) - this.indication = new CodeableConcept(); - if (!(this.indication instanceof CodeableConcept)) - throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.indication.getClass().getName()+" was encountered"); - return (CodeableConcept) this.indication; - } - - public boolean hasIndicationCodeableConcept() { - return this != null && this.indication instanceof CodeableConcept; - } - - /** - * @return {@link #indication} (Condition for which the medicinal use applies.) - */ - public Reference getIndicationReference() throws FHIRException { - if (this.indication == null) - this.indication = new Reference(); - if (!(this.indication instanceof Reference)) - throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.indication.getClass().getName()+" was encountered"); - return (Reference) this.indication; - } - - public boolean hasIndicationReference() { - return this != null && this.indication instanceof Reference; - } - public boolean hasIndication() { return this.indication != null && !this.indication.isEmpty(); } /** - * @param value {@link #indication} (Condition for which the medicinal use applies.) + * @param value {@link #indication} (Condition for which the use of the regulated product applies.) */ - public RegulatedAuthorization setIndication(DataType value) { - if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) - throw new Error("Not the right type for RegulatedAuthorization.indication[x]: "+value.fhirType()); + public RegulatedAuthorization setIndication(CodeableReference value) { this.indication = value; return this; } @@ -1385,7 +1365,7 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @return {@link #regulator} (Medicines Regulatory Agency.) + * @return {@link #regulator} (The regulatory authority or authorizing body granting the authorization. For example, European Medicines Agency (EMA), Food and Drug Administration (FDA), Health Canada (HC), etc.) */ public Reference getRegulator() { if (this.regulator == null) @@ -1401,7 +1381,7 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @param value {@link #regulator} (Medicines Regulatory Agency.) + * @param value {@link #regulator} (The regulatory authority or authorizing body granting the authorization. For example, European Medicines Agency (EMA), Food and Drug Administration (FDA), Health Canada (HC), etc.) */ public RegulatedAuthorization setRegulator(Reference value) { this.regulator = value; @@ -1409,7 +1389,60 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @return {@link #case_} (The case or regulatory procedure for granting or amending a marketing authorization.) + * @return {@link #attachedDocument} (Additional information or supporting documentation about the authorization.) + */ + public List getAttachedDocument() { + if (this.attachedDocument == null) + this.attachedDocument = new ArrayList(); + return this.attachedDocument; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public RegulatedAuthorization setAttachedDocument(List theAttachedDocument) { + this.attachedDocument = theAttachedDocument; + return this; + } + + public boolean hasAttachedDocument() { + if (this.attachedDocument == null) + return false; + for (Reference item : this.attachedDocument) + if (!item.isEmpty()) + return true; + return false; + } + + public Reference addAttachedDocument() { //3 + Reference t = new Reference(); + if (this.attachedDocument == null) + this.attachedDocument = new ArrayList(); + this.attachedDocument.add(t); + return t; + } + + public RegulatedAuthorization addAttachedDocument(Reference t) { //3 + if (t == null) + return this; + if (this.attachedDocument == null) + this.attachedDocument = new ArrayList(); + this.attachedDocument.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #attachedDocument}, creating it if it does not already exist {3} + */ + public Reference getAttachedDocumentFirstRep() { + if (getAttachedDocument().isEmpty()) { + addAttachedDocument(); + } + return getAttachedDocument().get(0); + } + + /** + * @return {@link #case_} (The case or regulatory procedure for granting or amending a marketing authorization. Note: This area is subject to ongoing review and the workgroup is seeking implementer feedback on its use (see link at bottom of page).) */ public RegulatedAuthorizationCaseComponent getCase() { if (this.case_ == null) @@ -1425,7 +1458,7 @@ public class RegulatedAuthorization extends DomainResource { } /** - * @param value {@link #case_} (The case or regulatory procedure for granting or amending a marketing authorization.) + * @param value {@link #case_} (The case or regulatory procedure for granting or amending a marketing authorization. Note: This area is subject to ongoing review and the workgroup is seeking implementer feedback on its use (see link at bottom of page).) */ public RegulatedAuthorization setCase(RegulatedAuthorizationCaseComponent value) { this.case_ = value; @@ -1434,46 +1467,45 @@ public class RegulatedAuthorization extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("identifier", "Identifier", "Business identifier for the authorization, typically assigned by the authorizing body.", 0, java.lang.Integer.MAX_VALUE, identifier)); - children.add(new Property("subject", "Reference(MedicinalProductDefinition|BiologicallyDerivedProduct|NutritionProduct|PackagedProductDefinition|SubstanceDefinition|DeviceDefinition|ResearchStudy|ActivityDefinition|PlanDefinition|ObservationDefinition|Practitioner|Organization|Location)", "The type of product or service that is being authorized.", 0, 1, subject)); + children.add(new Property("identifier", "Identifier", "Business identifier for the authorization, typically this is assigned by the authorizing body.", 0, java.lang.Integer.MAX_VALUE, identifier)); + children.add(new Property("subject", "Reference(MedicinalProductDefinition|BiologicallyDerivedProduct|NutritionProduct|PackagedProductDefinition|SubstanceDefinition|DeviceDefinition|ResearchStudy|ActivityDefinition|PlanDefinition|ObservationDefinition|Practitioner|Organization|Location)", "The type of regulated product, treatment, facility or activity that is being authorized.", 0, 1, subject)); children.add(new Property("type", "CodeableConcept", "Overall type of this authorization, for example drug marketing approval, orphan drug designation.", 0, 1, type)); children.add(new Property("description", "markdown", "General textual supporting information.", 0, 1, description)); - children.add(new Property("region", "CodeableConcept", "The region (country, jurisdiction etc.) in which the marketing authorization has been granted.", 0, java.lang.Integer.MAX_VALUE, region)); + children.add(new Property("region", "CodeableConcept", "The territory (e.g., country, jurisdiction etc.) in which the authorization has been granted.", 0, java.lang.Integer.MAX_VALUE, region)); children.add(new Property("status", "CodeableConcept", "The status that is authorised e.g. approved. Intermediate states can be tracked with cases and applications.", 0, 1, status)); - children.add(new Property("statusDate", "dateTime", "The date at which the given status became applicable.", 0, 1, statusDate)); - children.add(new Property("validityPeriod", "Period", "The beginning of the time period in which the marketing authorization is in the specific status shall be specified A complete date consisting of day, month and year shall be specified using the ISO 8601 date format.", 0, 1, validityPeriod)); - children.add(new Property("indication[x]", "CodeableConcept|Reference(ClinicalUseIssue)", "Condition for which the medicinal use applies.", 0, 1, indication)); + children.add(new Property("statusDate", "dateTime", "The date at which the current status was assigned.", 0, 1, statusDate)); + children.add(new Property("validityPeriod", "Period", "The time period in which the regulatory approval, clearance or licencing is in effect. As an example, a Marketing Authorization includes the date of authorization and/or an expiration date.", 0, 1, validityPeriod)); + children.add(new Property("indication", "CodeableReference(ClinicalUseIssue)", "Condition for which the use of the regulated product applies.", 0, 1, indication)); children.add(new Property("intendedUse", "CodeableConcept", "The intended use of the product, e.g. prevention, treatment.", 0, 1, intendedUse)); children.add(new Property("basis", "CodeableConcept", "The legal or regulatory framework against which this authorization is granted, or other reasons for it.", 0, java.lang.Integer.MAX_VALUE, basis)); children.add(new Property("relatedDate", "", "Other dates associated with the authorization. It is common for an authorization to have renewal dates, initial time limited phases and so on.", 0, java.lang.Integer.MAX_VALUE, relatedDate)); children.add(new Property("jurisdictionalAuthorization", "Reference(RegulatedAuthorization)", "Authorization in areas within a country.", 0, java.lang.Integer.MAX_VALUE, jurisdictionalAuthorization)); children.add(new Property("holder", "Reference(Organization)", "The organization that holds the granted authorization.", 0, 1, holder)); - children.add(new Property("regulator", "Reference(Organization)", "Medicines Regulatory Agency.", 0, 1, regulator)); - children.add(new Property("case", "", "The case or regulatory procedure for granting or amending a marketing authorization.", 0, 1, case_)); + children.add(new Property("regulator", "Reference(Organization)", "The regulatory authority or authorizing body granting the authorization. For example, European Medicines Agency (EMA), Food and Drug Administration (FDA), Health Canada (HC), etc.", 0, 1, regulator)); + children.add(new Property("attachedDocument", "Reference(DocumentReference)", "Additional information or supporting documentation about the authorization.", 0, java.lang.Integer.MAX_VALUE, attachedDocument)); + children.add(new Property("case", "", "The case or regulatory procedure for granting or amending a marketing authorization. Note: This area is subject to ongoing review and the workgroup is seeking implementer feedback on its use (see link at bottom of page).", 0, 1, case_)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifier for the authorization, typically assigned by the authorizing body.", 0, java.lang.Integer.MAX_VALUE, identifier); - case -1867885268: /*subject*/ return new Property("subject", "Reference(MedicinalProductDefinition|BiologicallyDerivedProduct|NutritionProduct|PackagedProductDefinition|SubstanceDefinition|DeviceDefinition|ResearchStudy|ActivityDefinition|PlanDefinition|ObservationDefinition|Practitioner|Organization|Location)", "The type of product or service that is being authorized.", 0, 1, subject); + case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifier for the authorization, typically this is assigned by the authorizing body.", 0, java.lang.Integer.MAX_VALUE, identifier); + case -1867885268: /*subject*/ return new Property("subject", "Reference(MedicinalProductDefinition|BiologicallyDerivedProduct|NutritionProduct|PackagedProductDefinition|SubstanceDefinition|DeviceDefinition|ResearchStudy|ActivityDefinition|PlanDefinition|ObservationDefinition|Practitioner|Organization|Location)", "The type of regulated product, treatment, facility or activity that is being authorized.", 0, 1, subject); case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Overall type of this authorization, for example drug marketing approval, orphan drug designation.", 0, 1, type); case -1724546052: /*description*/ return new Property("description", "markdown", "General textual supporting information.", 0, 1, description); - case -934795532: /*region*/ return new Property("region", "CodeableConcept", "The region (country, jurisdiction etc.) in which the marketing authorization has been granted.", 0, java.lang.Integer.MAX_VALUE, region); + case -934795532: /*region*/ return new Property("region", "CodeableConcept", "The territory (e.g., country, jurisdiction etc.) in which the authorization has been granted.", 0, java.lang.Integer.MAX_VALUE, region); case -892481550: /*status*/ return new Property("status", "CodeableConcept", "The status that is authorised e.g. approved. Intermediate states can be tracked with cases and applications.", 0, 1, status); - case 247524032: /*statusDate*/ return new Property("statusDate", "dateTime", "The date at which the given status became applicable.", 0, 1, statusDate); - case -1434195053: /*validityPeriod*/ return new Property("validityPeriod", "Period", "The beginning of the time period in which the marketing authorization is in the specific status shall be specified A complete date consisting of day, month and year shall be specified using the ISO 8601 date format.", 0, 1, validityPeriod); - case -501208668: /*indication[x]*/ return new Property("indication[x]", "CodeableConcept|Reference(ClinicalUseIssue)", "Condition for which the medicinal use applies.", 0, 1, indication); - case -597168804: /*indication*/ return new Property("indication[x]", "CodeableConcept|Reference(ClinicalUseIssue)", "Condition for which the medicinal use applies.", 0, 1, indication); - case -1094003035: /*indicationCodeableConcept*/ return new Property("indication[x]", "CodeableConcept", "Condition for which the medicinal use applies.", 0, 1, indication); - case 803518799: /*indicationReference*/ return new Property("indication[x]", "Reference(ClinicalUseIssue)", "Condition for which the medicinal use applies.", 0, 1, indication); + case 247524032: /*statusDate*/ return new Property("statusDate", "dateTime", "The date at which the current status was assigned.", 0, 1, statusDate); + case -1434195053: /*validityPeriod*/ return new Property("validityPeriod", "Period", "The time period in which the regulatory approval, clearance or licencing is in effect. As an example, a Marketing Authorization includes the date of authorization and/or an expiration date.", 0, 1, validityPeriod); + case -597168804: /*indication*/ return new Property("indication", "CodeableReference(ClinicalUseIssue)", "Condition for which the use of the regulated product applies.", 0, 1, indication); case -1618671268: /*intendedUse*/ return new Property("intendedUse", "CodeableConcept", "The intended use of the product, e.g. prevention, treatment.", 0, 1, intendedUse); case 93508670: /*basis*/ return new Property("basis", "CodeableConcept", "The legal or regulatory framework against which this authorization is granted, or other reasons for it.", 0, java.lang.Integer.MAX_VALUE, basis); case 1112535673: /*relatedDate*/ return new Property("relatedDate", "", "Other dates associated with the authorization. It is common for an authorization to have renewal dates, initial time limited phases and so on.", 0, java.lang.Integer.MAX_VALUE, relatedDate); case 1459432557: /*jurisdictionalAuthorization*/ return new Property("jurisdictionalAuthorization", "Reference(RegulatedAuthorization)", "Authorization in areas within a country.", 0, java.lang.Integer.MAX_VALUE, jurisdictionalAuthorization); case -1211707988: /*holder*/ return new Property("holder", "Reference(Organization)", "The organization that holds the granted authorization.", 0, 1, holder); - case 414760449: /*regulator*/ return new Property("regulator", "Reference(Organization)", "Medicines Regulatory Agency.", 0, 1, regulator); - case 3046192: /*case*/ return new Property("case", "", "The case or regulatory procedure for granting or amending a marketing authorization.", 0, 1, case_); + case 414760449: /*regulator*/ return new Property("regulator", "Reference(Organization)", "The regulatory authority or authorizing body granting the authorization. For example, European Medicines Agency (EMA), Food and Drug Administration (FDA), Health Canada (HC), etc.", 0, 1, regulator); + case -513945889: /*attachedDocument*/ return new Property("attachedDocument", "Reference(DocumentReference)", "Additional information or supporting documentation about the authorization.", 0, java.lang.Integer.MAX_VALUE, attachedDocument); + case 3046192: /*case*/ return new Property("case", "", "The case or regulatory procedure for granting or amending a marketing authorization. Note: This area is subject to ongoing review and the workgroup is seeking implementer feedback on its use (see link at bottom of page).", 0, 1, case_); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -1490,13 +1522,14 @@ public class RegulatedAuthorization extends DomainResource { case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // CodeableConcept case 247524032: /*statusDate*/ return this.statusDate == null ? new Base[0] : new Base[] {this.statusDate}; // DateTimeType case -1434195053: /*validityPeriod*/ return this.validityPeriod == null ? new Base[0] : new Base[] {this.validityPeriod}; // Period - case -597168804: /*indication*/ return this.indication == null ? new Base[0] : new Base[] {this.indication}; // DataType + case -597168804: /*indication*/ return this.indication == null ? new Base[0] : new Base[] {this.indication}; // CodeableReference case -1618671268: /*intendedUse*/ return this.intendedUse == null ? new Base[0] : new Base[] {this.intendedUse}; // CodeableConcept case 93508670: /*basis*/ return this.basis == null ? new Base[0] : this.basis.toArray(new Base[this.basis.size()]); // CodeableConcept case 1112535673: /*relatedDate*/ return this.relatedDate == null ? new Base[0] : this.relatedDate.toArray(new Base[this.relatedDate.size()]); // RegulatedAuthorizationRelatedDateComponent case 1459432557: /*jurisdictionalAuthorization*/ return this.jurisdictionalAuthorization == null ? new Base[0] : this.jurisdictionalAuthorization.toArray(new Base[this.jurisdictionalAuthorization.size()]); // Reference case -1211707988: /*holder*/ return this.holder == null ? new Base[0] : new Base[] {this.holder}; // Reference case 414760449: /*regulator*/ return this.regulator == null ? new Base[0] : new Base[] {this.regulator}; // Reference + case -513945889: /*attachedDocument*/ return this.attachedDocument == null ? new Base[0] : this.attachedDocument.toArray(new Base[this.attachedDocument.size()]); // Reference case 3046192: /*case*/ return this.case_ == null ? new Base[0] : new Base[] {this.case_}; // RegulatedAuthorizationCaseComponent default: return super.getProperty(hash, name, checkValid); } @@ -1531,7 +1564,7 @@ public class RegulatedAuthorization extends DomainResource { this.validityPeriod = TypeConvertor.castToPeriod(value); // Period return value; case -597168804: // indication - this.indication = TypeConvertor.castToType(value); // DataType + this.indication = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; case -1618671268: // intendedUse this.intendedUse = TypeConvertor.castToCodeableConcept(value); // CodeableConcept @@ -1551,6 +1584,9 @@ public class RegulatedAuthorization extends DomainResource { case 414760449: // regulator this.regulator = TypeConvertor.castToReference(value); // Reference return value; + case -513945889: // attachedDocument + this.getAttachedDocument().add(TypeConvertor.castToReference(value)); // Reference + return value; case 3046192: // case this.case_ = (RegulatedAuthorizationCaseComponent) value; // RegulatedAuthorizationCaseComponent return value; @@ -1577,8 +1613,8 @@ public class RegulatedAuthorization extends DomainResource { this.statusDate = TypeConvertor.castToDateTime(value); // DateTimeType } else if (name.equals("validityPeriod")) { this.validityPeriod = TypeConvertor.castToPeriod(value); // Period - } else if (name.equals("indication[x]")) { - this.indication = TypeConvertor.castToType(value); // DataType + } else if (name.equals("indication")) { + this.indication = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("intendedUse")) { this.intendedUse = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("basis")) { @@ -1591,6 +1627,8 @@ public class RegulatedAuthorization extends DomainResource { this.holder = TypeConvertor.castToReference(value); // Reference } else if (name.equals("regulator")) { this.regulator = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("attachedDocument")) { + this.getAttachedDocument().add(TypeConvertor.castToReference(value)); } else if (name.equals("case")) { this.case_ = (RegulatedAuthorizationCaseComponent) value; // RegulatedAuthorizationCaseComponent } else @@ -1609,7 +1647,6 @@ public class RegulatedAuthorization extends DomainResource { case -892481550: return getStatus(); case 247524032: return getStatusDateElement(); case -1434195053: return getValidityPeriod(); - case -501208668: return getIndication(); case -597168804: return getIndication(); case -1618671268: return getIntendedUse(); case 93508670: return addBasis(); @@ -1617,6 +1654,7 @@ public class RegulatedAuthorization extends DomainResource { case 1459432557: return addJurisdictionalAuthorization(); case -1211707988: return getHolder(); case 414760449: return getRegulator(); + case -513945889: return addAttachedDocument(); case 3046192: return getCase(); default: return super.makeProperty(hash, name); } @@ -1634,13 +1672,14 @@ public class RegulatedAuthorization extends DomainResource { case -892481550: /*status*/ return new String[] {"CodeableConcept"}; case 247524032: /*statusDate*/ return new String[] {"dateTime"}; case -1434195053: /*validityPeriod*/ return new String[] {"Period"}; - case -597168804: /*indication*/ return new String[] {"CodeableConcept", "Reference"}; + case -597168804: /*indication*/ return new String[] {"CodeableReference"}; case -1618671268: /*intendedUse*/ return new String[] {"CodeableConcept"}; case 93508670: /*basis*/ return new String[] {"CodeableConcept"}; case 1112535673: /*relatedDate*/ return new String[] {}; case 1459432557: /*jurisdictionalAuthorization*/ return new String[] {"Reference"}; case -1211707988: /*holder*/ return new String[] {"Reference"}; case 414760449: /*regulator*/ return new String[] {"Reference"}; + case -513945889: /*attachedDocument*/ return new String[] {"Reference"}; case 3046192: /*case*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -1677,12 +1716,8 @@ public class RegulatedAuthorization extends DomainResource { this.validityPeriod = new Period(); return this.validityPeriod; } - else if (name.equals("indicationCodeableConcept")) { - this.indication = new CodeableConcept(); - return this.indication; - } - else if (name.equals("indicationReference")) { - this.indication = new Reference(); + else if (name.equals("indication")) { + this.indication = new CodeableReference(); return this.indication; } else if (name.equals("intendedUse")) { @@ -1706,6 +1741,9 @@ public class RegulatedAuthorization extends DomainResource { this.regulator = new Reference(); return this.regulator; } + else if (name.equals("attachedDocument")) { + return addAttachedDocument(); + } else if (name.equals("case")) { this.case_ = new RegulatedAuthorizationCaseComponent(); return this.case_; @@ -1762,6 +1800,11 @@ public class RegulatedAuthorization extends DomainResource { }; dst.holder = holder == null ? null : holder.copy(); dst.regulator = regulator == null ? null : regulator.copy(); + if (attachedDocument != null) { + dst.attachedDocument = new ArrayList(); + for (Reference i : attachedDocument) + dst.attachedDocument.add(i.copy()); + }; dst.case_ = case_ == null ? null : case_.copy(); } @@ -1781,8 +1824,8 @@ public class RegulatedAuthorization extends DomainResource { && compareDeep(statusDate, o.statusDate, true) && compareDeep(validityPeriod, o.validityPeriod, true) && compareDeep(indication, o.indication, true) && compareDeep(intendedUse, o.intendedUse, true) && compareDeep(basis, o.basis, true) && compareDeep(relatedDate, o.relatedDate, true) && compareDeep(jurisdictionalAuthorization, o.jurisdictionalAuthorization, true) - && compareDeep(holder, o.holder, true) && compareDeep(regulator, o.regulator, true) && compareDeep(case_, o.case_, true) - ; + && compareDeep(holder, o.holder, true) && compareDeep(regulator, o.regulator, true) && compareDeep(attachedDocument, o.attachedDocument, true) + && compareDeep(case_, o.case_, true); } @Override @@ -1799,7 +1842,8 @@ public class RegulatedAuthorization extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, subject, type , description, region, status, statusDate, validityPeriod, indication, intendedUse - , basis, relatedDate, jurisdictionalAuthorization, holder, regulator, case_); + , basis, relatedDate, jurisdictionalAuthorization, holder, regulator, attachedDocument + , case_); } @Override @@ -1807,26 +1851,6 @@ public class RegulatedAuthorization extends DomainResource { return ResourceType.RegulatedAuthorization; } - /** - * Search parameter: case-type - *

- * Description: The defining type of case
- * Type: token
- * Path: RegulatedAuthorization.case.type
- *

- */ - @SearchParamDefinition(name="case-type", path="RegulatedAuthorization.case.type", description="The defining type of case", type="token" ) - public static final String SP_CASE_TYPE = "case-type"; - /** - * Fluent Client search parameter constant for case-type - *

- * Description: The defining type of case
- * Type: token
- * Path: RegulatedAuthorization.case.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CASE_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CASE_TYPE); - /** * Search parameter: case *

@@ -1847,6 +1871,26 @@ public class RegulatedAuthorization extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CASE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CASE); + /** + * Search parameter: case-type + *

+ * Description: The defining type of case
+ * Type: token
+ * Path: RegulatedAuthorization.case.type
+ *

+ */ + @SearchParamDefinition(name="case-type", path="RegulatedAuthorization.case.type", description="The defining type of case", type="token" ) + public static final String SP_CASE_TYPE = "case-type"; + /** + * Fluent Client search parameter constant for case-type + *

+ * Description: The defining type of case
+ * Type: token
+ * Path: RegulatedAuthorization.case.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CASE_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CASE_TYPE); + /** * Search parameter: holder *

@@ -1896,17 +1940,17 @@ public class RegulatedAuthorization extends DomainResource { /** * Search parameter: region *

- * Description: The region (country, jurisdiction etc.) in which the marketing authorization has been granted
+ * Description: The territory (e.g., country, jurisdiction etc.) in which the authorization has been granted
* Type: token
* Path: RegulatedAuthorization.region
*

*/ - @SearchParamDefinition(name="region", path="RegulatedAuthorization.region", description="The region (country, jurisdiction etc.) in which the marketing authorization has been granted", type="token" ) + @SearchParamDefinition(name="region", path="RegulatedAuthorization.region", description="The territory (e.g., country, jurisdiction etc.) in which the authorization has been granted", type="token" ) public static final String SP_REGION = "region"; /** * Fluent Client search parameter constant for region *

- * Description: The region (country, jurisdiction etc.) in which the marketing authorization has been granted
+ * Description: The territory (e.g., country, jurisdiction etc.) in which the authorization has been granted
* Type: token
* Path: RegulatedAuthorization.region
*

@@ -1936,17 +1980,17 @@ public class RegulatedAuthorization extends DomainResource { /** * Search parameter: subject *

- * Description: The type of product or service that is being authorized
+ * Description: The type of regulated product, treatment, facility or activity that is being authorized
* Type: reference
* Path: RegulatedAuthorization.subject
*

*/ - @SearchParamDefinition(name="subject", path="RegulatedAuthorization.subject", description="The type of product or service that is being authorized", type="reference", target={ActivityDefinition.class, BiologicallyDerivedProduct.class, DeviceDefinition.class, Location.class, MedicinalProductDefinition.class, NutritionProduct.class, ObservationDefinition.class, Organization.class, PackagedProductDefinition.class, PlanDefinition.class, Practitioner.class, ResearchStudy.class, SubstanceDefinition.class } ) + @SearchParamDefinition(name="subject", path="RegulatedAuthorization.subject", description="The type of regulated product, treatment, facility or activity that is being authorized", type="reference", target={ActivityDefinition.class, BiologicallyDerivedProduct.class, DeviceDefinition.class, Location.class, MedicinalProductDefinition.class, NutritionProduct.class, ObservationDefinition.class, Organization.class, PackagedProductDefinition.class, PlanDefinition.class, Practitioner.class, ResearchStudy.class, SubstanceDefinition.class } ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject *

- * Description: The type of product or service that is being authorized
+ * Description: The type of regulated product, treatment, facility or activity that is being authorized
* Type: reference
* Path: RegulatedAuthorization.subject
*

diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedArtifact.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedArtifact.java index c96340a65..60b8b5da5 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedArtifact.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedArtifact.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -122,7 +122,6 @@ public class RelatedArtifact extends DataType implements ICompositeType { case DERIVEDFROM: return "derived-from"; case DEPENDSON: return "depends-on"; case COMPOSEDOF: return "composed-of"; - case NULL: return null; default: return "?"; } } @@ -136,7 +135,6 @@ public class RelatedArtifact extends DataType implements ICompositeType { case DERIVEDFROM: return "http://hl7.org/fhir/related-artifact-type"; case DEPENDSON: return "http://hl7.org/fhir/related-artifact-type"; case COMPOSEDOF: return "http://hl7.org/fhir/related-artifact-type"; - case NULL: return null; default: return "?"; } } @@ -150,7 +148,6 @@ public class RelatedArtifact extends DataType implements ICompositeType { case DERIVEDFROM: return "The knowledge resource is derived from the related artifact. This is intended to capture the relationship in which a particular knowledge resource is based on the content of another artifact, but is modified to capture either a different set of overall requirements, or a more specific set of requirements such as those involved in a particular institution or clinical setting."; case DEPENDSON: return "The knowledge resource depends on the given related artifact."; case COMPOSEDOF: return "The knowledge resource is composed of the given related artifact."; - case NULL: return null; default: return "?"; } } @@ -164,7 +161,6 @@ public class RelatedArtifact extends DataType implements ICompositeType { case DERIVEDFROM: return "Derived From"; case DEPENDSON: return "Depends On"; case COMPOSEDOF: return "Composed Of"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedPerson.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedPerson.java index 8e5eeeeeb..2e4bd435c 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedPerson.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RelatedPerson.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -1261,110 +1261,36 @@ public class RelatedPerson extends DomainResource { } /** - * Search parameter: active + * Search parameter: address *

- * Description: Indicates if the related person record is active
- * Type: token
- * Path: RelatedPerson.active
- *

- */ - @SearchParamDefinition(name="active", path="RelatedPerson.active", description="Indicates if the related person record is active", type="token" ) - public static final String SP_ACTIVE = "active"; - /** - * Fluent Client search parameter constant for active - *

- * Description: Indicates if the related person record is active
- * Type: token
- * Path: RelatedPerson.active
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVE); + * Description: Multiple Resources: - /** - * Search parameter: identifier - *

- * Description: An Identifier of the RelatedPerson
- * Type: token
- * Path: RelatedPerson.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="RelatedPerson.identifier", description="An Identifier of the RelatedPerson", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: An Identifier of the RelatedPerson
- * Type: token
- * Path: RelatedPerson.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: name - *

- * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
+* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +

* Type: string
- * Path: RelatedPerson.name
+ * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
*

*/ - @SearchParamDefinition(name="name", path="RelatedPerson.name", description="A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text", type="string" ) - public static final String SP_NAME = "name"; + @SearchParamDefinition(name="address", path="Patient.address | Person.address | Practitioner.address | RelatedPerson.address", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n", type="string" ) + public static final String SP_ADDRESS = "address"; /** - * Fluent Client search parameter constant for name + * Fluent Client search parameter constant for address *

- * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
+ * Description: Multiple Resources: + +* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text +
* Type: string
- * Path: RelatedPerson.name
+ * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
*

*/ - public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); - - /** - * Search parameter: patient - *

- * Description: The patient this related person is related to
- * Type: reference
- * Path: RelatedPerson.patient
- *

- */ - @SearchParamDefinition(name="patient", path="RelatedPerson.patient", description="The patient this related person is related to", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: The patient this related person is related to
- * Type: reference
- * Path: RelatedPerson.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "RelatedPerson:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("RelatedPerson:patient").toLocked(); - - /** - * Search parameter: relationship - *

- * Description: The relationship between the patient and the relatedperson
- * Type: token
- * Path: RelatedPerson.relationship
- *

- */ - @SearchParamDefinition(name="relationship", path="RelatedPerson.relationship", description="The relationship between the patient and the relatedperson", type="token" ) - public static final String SP_RELATIONSHIP = "relationship"; - /** - * Fluent Client search parameter constant for relationship - *

- * Description: The relationship between the patient and the relatedperson
- * Type: token
- * Path: RelatedPerson.relationship
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam RELATIONSHIP = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RELATIONSHIP); + public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); /** * Search parameter: address-city @@ -1526,38 +1452,6 @@ public class RelatedPerson extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam ADDRESS_USE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ADDRESS_USE); - /** - * Search parameter: address - *

- * Description: Multiple Resources: - -* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -
- * Type: string
- * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
- *

- */ - @SearchParamDefinition(name="address", path="Patient.address | Person.address | Practitioner.address | RelatedPerson.address", description="Multiple Resources: \r\n\r\n* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text\r\n", type="string" ) - public static final String SP_ADDRESS = "address"; - /** - * Fluent Client search parameter constant for address - *

- * Description: Multiple Resources: - -* [Patient](patient.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Person](person.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [Practitioner](practitioner.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -* [RelatedPerson](relatedperson.html): A server defined search that may match any of the string fields in the Address, including line, city, district, state, country, postalCode, and/or text -
- * Type: string
- * Path: Patient.address | Person.address | Practitioner.address | RelatedPerson.address
- *

- */ - public static final ca.uhn.fhir.rest.gclient.StringClientParam ADDRESS = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ADDRESS); - /** * Search parameter: birthdate *

@@ -1754,6 +1648,112 @@ public class RelatedPerson extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam TELECOM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TELECOM); + /** + * Search parameter: active + *

+ * Description: Indicates if the related person record is active
+ * Type: token
+ * Path: RelatedPerson.active
+ *

+ */ + @SearchParamDefinition(name="active", path="RelatedPerson.active", description="Indicates if the related person record is active", type="token" ) + public static final String SP_ACTIVE = "active"; + /** + * Fluent Client search parameter constant for active + *

+ * Description: Indicates if the related person record is active
+ * Type: token
+ * Path: RelatedPerson.active
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVE); + + /** + * Search parameter: identifier + *

+ * Description: An Identifier of the RelatedPerson
+ * Type: token
+ * Path: RelatedPerson.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="RelatedPerson.identifier", description="An Identifier of the RelatedPerson", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: An Identifier of the RelatedPerson
+ * Type: token
+ * Path: RelatedPerson.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: name + *

+ * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
+ * Type: string
+ * Path: RelatedPerson.name
+ *

+ */ + @SearchParamDefinition(name="name", path="RelatedPerson.name", description="A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text", type="string" ) + public static final String SP_NAME = "name"; + /** + * Fluent Client search parameter constant for name + *

+ * Description: A server defined search that may match any of the string fields in the HumanName, including family, give, prefix, suffix, suffix, and/or text
+ * Type: string
+ * Path: RelatedPerson.name
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME); + + /** + * Search parameter: patient + *

+ * Description: The patient this related person is related to
+ * Type: reference
+ * Path: RelatedPerson.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="RelatedPerson.patient", description="The patient this related person is related to", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: The patient this related person is related to
+ * Type: reference
+ * Path: RelatedPerson.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "RelatedPerson:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("RelatedPerson:patient").toLocked(); + + /** + * Search parameter: relationship + *

+ * Description: The relationship between the patient and the relatedperson
+ * Type: token
+ * Path: RelatedPerson.relationship
+ *

+ */ + @SearchParamDefinition(name="relationship", path="RelatedPerson.relationship", description="The relationship between the patient and the relatedperson", type="token" ) + public static final String SP_RELATIONSHIP = "relationship"; + /** + * Fluent Client search parameter constant for relationship + *

+ * Description: The relationship between the patient and the relatedperson
+ * Type: token
+ * Path: RelatedPerson.relationship
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam RELATIONSHIP = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RELATIONSHIP); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RequestGroup.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RequestGroup.java index c7ca91d22..22da493f3 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RequestGroup.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RequestGroup.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,6 +96,7 @@ public class RequestGroup extends DomainResource { */ @Child(name = "code", type = {CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Code representing the meaning of the action or sub-actions", formalDefinition="A code that provides meaning for the action or action group. For example, a section may have a LOINC code for a section of a documentation template." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-code") protected List code; /** @@ -126,17 +127,24 @@ public class RequestGroup extends DomainResource { @Description(shortDefinition="When the action should take place", formalDefinition="An optional value describing when the action should be performed." ) protected DataType timing; + /** + * Identifies the facility where the action will occur; e.g. home, hospital, specific clinic, etc. + */ + @Child(name = "location", type = {CodeableReference.class}, order=11, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Where it should happen", formalDefinition="Identifies the facility where the action will occur; e.g. home, hospital, specific clinic, etc." ) + protected CodeableReference location; + /** * The participant that should perform or be responsible for this action. */ - @Child(name = "participant", type = {Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class, Device.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "participant", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Who should perform the action", formalDefinition="The participant that should perform or be responsible for this action." ) - protected List participant; + protected List participant; /** * The type of action to perform (create, update, remove). */ - @Child(name = "type", type = {CodeableConcept.class}, order=12, min=0, max=1, modifier=false, summary=false) + @Child(name = "type", type = {CodeableConcept.class}, order=13, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="create | update | remove | fire-event", formalDefinition="The type of action to perform (create, update, remove)." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-type") protected CodeableConcept type; @@ -144,7 +152,7 @@ public class RequestGroup extends DomainResource { /** * Defines the grouping behavior for the action and its children. */ - @Child(name = "groupingBehavior", type = {CodeType.class}, order=13, min=0, max=1, modifier=false, summary=false) + @Child(name = "groupingBehavior", type = {CodeType.class}, order=14, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="visual-group | logical-group | sentence-group", formalDefinition="Defines the grouping behavior for the action and its children." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-grouping-behavior") protected Enumeration groupingBehavior; @@ -152,7 +160,7 @@ public class RequestGroup extends DomainResource { /** * Defines the selection behavior for the action and its children. */ - @Child(name = "selectionBehavior", type = {CodeType.class}, order=14, min=0, max=1, modifier=false, summary=false) + @Child(name = "selectionBehavior", type = {CodeType.class}, order=15, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="any | all | all-or-none | exactly-one | at-most-one | one-or-more", formalDefinition="Defines the selection behavior for the action and its children." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-selection-behavior") protected Enumeration selectionBehavior; @@ -160,7 +168,7 @@ public class RequestGroup extends DomainResource { /** * Defines expectations around whether an action is required. */ - @Child(name = "requiredBehavior", type = {CodeType.class}, order=15, min=0, max=1, modifier=false, summary=false) + @Child(name = "requiredBehavior", type = {CodeType.class}, order=16, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="must | could | must-unless-documented", formalDefinition="Defines expectations around whether an action is required." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-required-behavior") protected Enumeration requiredBehavior; @@ -168,7 +176,7 @@ public class RequestGroup extends DomainResource { /** * Defines whether the action should usually be preselected. */ - @Child(name = "precheckBehavior", type = {CodeType.class}, order=16, min=0, max=1, modifier=false, summary=false) + @Child(name = "precheckBehavior", type = {CodeType.class}, order=17, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="yes | no", formalDefinition="Defines whether the action should usually be preselected." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-precheck-behavior") protected Enumeration precheckBehavior; @@ -176,7 +184,7 @@ public class RequestGroup extends DomainResource { /** * Defines whether the action can be selected multiple times. */ - @Child(name = "cardinalityBehavior", type = {CodeType.class}, order=17, min=0, max=1, modifier=false, summary=false) + @Child(name = "cardinalityBehavior", type = {CodeType.class}, order=18, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="single | multiple", formalDefinition="Defines whether the action can be selected multiple times." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-cardinality-behavior") protected Enumeration cardinalityBehavior; @@ -184,18 +192,18 @@ public class RequestGroup extends DomainResource { /** * The resource that is the target of the action (e.g. CommunicationRequest). */ - @Child(name = "resource", type = {Reference.class}, order=18, min=0, max=1, modifier=false, summary=false) + @Child(name = "resource", type = {Reference.class}, order=19, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="The target of the action", formalDefinition="The resource that is the target of the action (e.g. CommunicationRequest)." ) protected Reference resource; /** * Sub actions. */ - @Child(name = "action", type = {RequestGroupActionComponent.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "action", type = {RequestGroupActionComponent.class}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Sub action", formalDefinition="Sub actions." ) protected List action; - private static final long serialVersionUID = -919880448L; + private static final long serialVersionUID = -1065764728L; /** * Constructor @@ -772,19 +780,43 @@ public class RequestGroup extends DomainResource { return this; } + /** + * @return {@link #location} (Identifies the facility where the action will occur; e.g. home, hospital, specific clinic, etc.) + */ + public CodeableReference getLocation() { + if (this.location == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create RequestGroupActionComponent.location"); + else if (Configuration.doAutoCreate()) + this.location = new CodeableReference(); // cc + return this.location; + } + + public boolean hasLocation() { + return this.location != null && !this.location.isEmpty(); + } + + /** + * @param value {@link #location} (Identifies the facility where the action will occur; e.g. home, hospital, specific clinic, etc.) + */ + public RequestGroupActionComponent setLocation(CodeableReference value) { + this.location = value; + return this; + } + /** * @return {@link #participant} (The participant that should perform or be responsible for this action.) */ - public List getParticipant() { + public List getParticipant() { if (this.participant == null) - this.participant = new ArrayList(); + this.participant = new ArrayList(); return this.participant; } /** * @return Returns a reference to this for easy method chaining */ - public RequestGroupActionComponent setParticipant(List theParticipant) { + public RequestGroupActionComponent setParticipant(List theParticipant) { this.participant = theParticipant; return this; } @@ -792,25 +824,25 @@ public class RequestGroup extends DomainResource { public boolean hasParticipant() { if (this.participant == null) return false; - for (Reference item : this.participant) + for (RequestGroupActionParticipantComponent item : this.participant) if (!item.isEmpty()) return true; return false; } - public Reference addParticipant() { //3 - Reference t = new Reference(); + public RequestGroupActionParticipantComponent addParticipant() { //3 + RequestGroupActionParticipantComponent t = new RequestGroupActionParticipantComponent(); if (this.participant == null) - this.participant = new ArrayList(); + this.participant = new ArrayList(); this.participant.add(t); return t; } - public RequestGroupActionComponent addParticipant(Reference t) { //3 + public RequestGroupActionComponent addParticipant(RequestGroupActionParticipantComponent t) { //3 if (t == null) return this; if (this.participant == null) - this.participant = new ArrayList(); + this.participant = new ArrayList(); this.participant.add(t); return this; } @@ -818,7 +850,7 @@ public class RequestGroup extends DomainResource { /** * @return The first repetition of repeating field {@link #participant}, creating it if it does not already exist {3} */ - public Reference getParticipantFirstRep() { + public RequestGroupActionParticipantComponent getParticipantFirstRep() { if (getParticipant().isEmpty()) { addParticipant(); } @@ -1183,7 +1215,8 @@ public class RequestGroup extends DomainResource { children.add(new Property("condition", "", "An expression that describes applicability criteria, or start/stop conditions for the action.", 0, java.lang.Integer.MAX_VALUE, condition)); children.add(new Property("relatedAction", "", "A relationship to another action such as \"before\" or \"30-60 minutes after start of\".", 0, java.lang.Integer.MAX_VALUE, relatedAction)); children.add(new Property("timing[x]", "dateTime|Age|Period|Duration|Range|Timing", "An optional value describing when the action should be performed.", 0, 1, timing)); - children.add(new Property("participant", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|Device)", "The participant that should perform or be responsible for this action.", 0, java.lang.Integer.MAX_VALUE, participant)); + children.add(new Property("location", "CodeableReference(Location)", "Identifies the facility where the action will occur; e.g. home, hospital, specific clinic, etc.", 0, 1, location)); + children.add(new Property("participant", "", "The participant that should perform or be responsible for this action.", 0, java.lang.Integer.MAX_VALUE, participant)); children.add(new Property("type", "CodeableConcept", "The type of action to perform (create, update, remove).", 0, 1, type)); children.add(new Property("groupingBehavior", "code", "Defines the grouping behavior for the action and its children.", 0, 1, groupingBehavior)); children.add(new Property("selectionBehavior", "code", "Defines the selection behavior for the action and its children.", 0, 1, selectionBehavior)); @@ -1214,7 +1247,8 @@ public class RequestGroup extends DomainResource { case -1327253506: /*timingDuration*/ return new Property("timing[x]", "Duration", "An optional value describing when the action should be performed.", 0, 1, timing); case -710871277: /*timingRange*/ return new Property("timing[x]", "Range", "An optional value describing when the action should be performed.", 0, 1, timing); case -497554124: /*timingTiming*/ return new Property("timing[x]", "Timing", "An optional value describing when the action should be performed.", 0, 1, timing); - case 767422259: /*participant*/ return new Property("participant", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson|Device)", "The participant that should perform or be responsible for this action.", 0, java.lang.Integer.MAX_VALUE, participant); + case 1901043637: /*location*/ return new Property("location", "CodeableReference(Location)", "Identifies the facility where the action will occur; e.g. home, hospital, specific clinic, etc.", 0, 1, location); + case 767422259: /*participant*/ return new Property("participant", "", "The participant that should perform or be responsible for this action.", 0, java.lang.Integer.MAX_VALUE, participant); case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The type of action to perform (create, update, remove).", 0, 1, type); case 586678389: /*groupingBehavior*/ return new Property("groupingBehavior", "code", "Defines the grouping behavior for the action and its children.", 0, 1, groupingBehavior); case 168639486: /*selectionBehavior*/ return new Property("selectionBehavior", "code", "Defines the selection behavior for the action and its children.", 0, 1, selectionBehavior); @@ -1241,7 +1275,8 @@ public class RequestGroup extends DomainResource { case -861311717: /*condition*/ return this.condition == null ? new Base[0] : this.condition.toArray(new Base[this.condition.size()]); // RequestGroupActionConditionComponent case -384107967: /*relatedAction*/ return this.relatedAction == null ? new Base[0] : this.relatedAction.toArray(new Base[this.relatedAction.size()]); // RequestGroupActionRelatedActionComponent case -873664438: /*timing*/ return this.timing == null ? new Base[0] : new Base[] {this.timing}; // DataType - case 767422259: /*participant*/ return this.participant == null ? new Base[0] : this.participant.toArray(new Base[this.participant.size()]); // Reference + case 1901043637: /*location*/ return this.location == null ? new Base[0] : new Base[] {this.location}; // CodeableReference + case 767422259: /*participant*/ return this.participant == null ? new Base[0] : this.participant.toArray(new Base[this.participant.size()]); // RequestGroupActionParticipantComponent case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept case 586678389: /*groupingBehavior*/ return this.groupingBehavior == null ? new Base[0] : new Base[] {this.groupingBehavior}; // Enumeration case 168639486: /*selectionBehavior*/ return this.selectionBehavior == null ? new Base[0] : new Base[] {this.selectionBehavior}; // Enumeration @@ -1289,8 +1324,11 @@ public class RequestGroup extends DomainResource { case -873664438: // timing this.timing = TypeConvertor.castToType(value); // DataType return value; + case 1901043637: // location + this.location = TypeConvertor.castToCodeableReference(value); // CodeableReference + return value; case 767422259: // participant - this.getParticipant().add(TypeConvertor.castToReference(value)); // Reference + this.getParticipant().add((RequestGroupActionParticipantComponent) value); // RequestGroupActionParticipantComponent return value; case 3575610: // type this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept @@ -1349,8 +1387,10 @@ public class RequestGroup extends DomainResource { this.getRelatedAction().add((RequestGroupActionRelatedActionComponent) value); } else if (name.equals("timing[x]")) { this.timing = TypeConvertor.castToType(value); // DataType + } else if (name.equals("location")) { + this.location = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("participant")) { - this.getParticipant().add(TypeConvertor.castToReference(value)); + this.getParticipant().add((RequestGroupActionParticipantComponent) value); } else if (name.equals("type")) { this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("groupingBehavior")) { @@ -1391,6 +1431,7 @@ public class RequestGroup extends DomainResource { case -384107967: return addRelatedAction(); case 164632566: return getTiming(); case -873664438: return getTiming(); + case 1901043637: return getLocation(); case 767422259: return addParticipant(); case 3575610: return getType(); case 586678389: return getGroupingBehaviorElement(); @@ -1418,7 +1459,8 @@ public class RequestGroup extends DomainResource { case -861311717: /*condition*/ return new String[] {}; case -384107967: /*relatedAction*/ return new String[] {}; case -873664438: /*timing*/ return new String[] {"dateTime", "Age", "Period", "Duration", "Range", "Timing"}; - case 767422259: /*participant*/ return new String[] {"Reference"}; + case 1901043637: /*location*/ return new String[] {"CodeableReference"}; + case 767422259: /*participant*/ return new String[] {}; case 3575610: /*type*/ return new String[] {"CodeableConcept"}; case 586678389: /*groupingBehavior*/ return new String[] {"code"}; case 168639486: /*selectionBehavior*/ return new String[] {"code"}; @@ -1485,6 +1527,10 @@ public class RequestGroup extends DomainResource { this.timing = new Timing(); return this.timing; } + else if (name.equals("location")) { + this.location = new CodeableReference(); + return this.location; + } else if (name.equals("participant")) { return addParticipant(); } @@ -1552,9 +1598,10 @@ public class RequestGroup extends DomainResource { dst.relatedAction.add(i.copy()); }; dst.timing = timing == null ? null : timing.copy(); + dst.location = location == null ? null : location.copy(); if (participant != null) { - dst.participant = new ArrayList(); - for (Reference i : participant) + dst.participant = new ArrayList(); + for (RequestGroupActionParticipantComponent i : participant) dst.participant.add(i.copy()); }; dst.type = type == null ? null : type.copy(); @@ -1581,11 +1628,11 @@ public class RequestGroup extends DomainResource { return compareDeep(prefix, o.prefix, true) && compareDeep(title, o.title, true) && compareDeep(description, o.description, true) && compareDeep(textEquivalent, o.textEquivalent, true) && compareDeep(priority, o.priority, true) && compareDeep(code, o.code, true) && compareDeep(documentation, o.documentation, true) && compareDeep(condition, o.condition, true) - && compareDeep(relatedAction, o.relatedAction, true) && compareDeep(timing, o.timing, true) && compareDeep(participant, o.participant, true) - && compareDeep(type, o.type, true) && compareDeep(groupingBehavior, o.groupingBehavior, true) && compareDeep(selectionBehavior, o.selectionBehavior, true) - && compareDeep(requiredBehavior, o.requiredBehavior, true) && compareDeep(precheckBehavior, o.precheckBehavior, true) - && compareDeep(cardinalityBehavior, o.cardinalityBehavior, true) && compareDeep(resource, o.resource, true) - && compareDeep(action, o.action, true); + && compareDeep(relatedAction, o.relatedAction, true) && compareDeep(timing, o.timing, true) && compareDeep(location, o.location, true) + && compareDeep(participant, o.participant, true) && compareDeep(type, o.type, true) && compareDeep(groupingBehavior, o.groupingBehavior, true) + && compareDeep(selectionBehavior, o.selectionBehavior, true) && compareDeep(requiredBehavior, o.requiredBehavior, true) + && compareDeep(precheckBehavior, o.precheckBehavior, true) && compareDeep(cardinalityBehavior, o.cardinalityBehavior, true) + && compareDeep(resource, o.resource, true) && compareDeep(action, o.action, true); } @Override @@ -1605,8 +1652,8 @@ public class RequestGroup extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(prefix, title, description , textEquivalent, priority, code, documentation, condition, relatedAction, timing - , participant, type, groupingBehavior, selectionBehavior, requiredBehavior, precheckBehavior - , cardinalityBehavior, resource, action); + , location, participant, type, groupingBehavior, selectionBehavior, requiredBehavior + , precheckBehavior, cardinalityBehavior, resource, action); } public String fhirType() { @@ -1851,11 +1898,11 @@ public class RequestGroup extends DomainResource { @Block() public static class RequestGroupActionRelatedActionComponent extends BackboneElement implements IBaseBackboneElement { /** - * The element id of the action this is related to. + * The element id of the target related action. */ - @Child(name = "actionId", type = {IdType.class}, order=1, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="What action this is related to", formalDefinition="The element id of the action this is related to." ) - protected IdType actionId; + @Child(name = "targetId", type = {IdType.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="What action this is related to", formalDefinition="The element id of the target related action." ) + protected IdType targetId; /** * The relationship of this action to the related action. @@ -1872,7 +1919,7 @@ public class RequestGroup extends DomainResource { @Description(shortDefinition="Time offset for the relationship", formalDefinition="A duration or range of durations to apply to the relationship. For example, 30-60 minutes before." ) protected DataType offset; - private static final long serialVersionUID = 621784796L; + private static final long serialVersionUID = -462773513L; /** * Constructor @@ -1884,54 +1931,54 @@ public class RequestGroup extends DomainResource { /** * Constructor */ - public RequestGroupActionRelatedActionComponent(String actionId, ActionRelationshipType relationship) { + public RequestGroupActionRelatedActionComponent(String targetId, ActionRelationshipType relationship) { super(); - this.setActionId(actionId); + this.setTargetId(targetId); this.setRelationship(relationship); } /** - * @return {@link #actionId} (The element id of the action this is related to.). This is the underlying object with id, value and extensions. The accessor "getActionId" gives direct access to the value + * @return {@link #targetId} (The element id of the target related action.). This is the underlying object with id, value and extensions. The accessor "getTargetId" gives direct access to the value */ - public IdType getActionIdElement() { - if (this.actionId == null) + public IdType getTargetIdElement() { + if (this.targetId == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create RequestGroupActionRelatedActionComponent.actionId"); + throw new Error("Attempt to auto-create RequestGroupActionRelatedActionComponent.targetId"); else if (Configuration.doAutoCreate()) - this.actionId = new IdType(); // bb - return this.actionId; + this.targetId = new IdType(); // bb + return this.targetId; } - public boolean hasActionIdElement() { - return this.actionId != null && !this.actionId.isEmpty(); + public boolean hasTargetIdElement() { + return this.targetId != null && !this.targetId.isEmpty(); } - public boolean hasActionId() { - return this.actionId != null && !this.actionId.isEmpty(); + public boolean hasTargetId() { + return this.targetId != null && !this.targetId.isEmpty(); } /** - * @param value {@link #actionId} (The element id of the action this is related to.). This is the underlying object with id, value and extensions. The accessor "getActionId" gives direct access to the value + * @param value {@link #targetId} (The element id of the target related action.). This is the underlying object with id, value and extensions. The accessor "getTargetId" gives direct access to the value */ - public RequestGroupActionRelatedActionComponent setActionIdElement(IdType value) { - this.actionId = value; + public RequestGroupActionRelatedActionComponent setTargetIdElement(IdType value) { + this.targetId = value; return this; } /** - * @return The element id of the action this is related to. + * @return The element id of the target related action. */ - public String getActionId() { - return this.actionId == null ? null : this.actionId.getValue(); + public String getTargetId() { + return this.targetId == null ? null : this.targetId.getValue(); } /** - * @param value The element id of the action this is related to. + * @param value The element id of the target related action. */ - public RequestGroupActionRelatedActionComponent setActionId(String value) { - if (this.actionId == null) - this.actionId = new IdType(); - this.actionId.setValue(value); + public RequestGroupActionRelatedActionComponent setTargetId(String value) { + if (this.targetId == null) + this.targetId = new IdType(); + this.targetId.setValue(value); return this; } @@ -2033,7 +2080,7 @@ public class RequestGroup extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("actionId", "id", "The element id of the action this is related to.", 0, 1, actionId)); + children.add(new Property("targetId", "id", "The element id of the target related action.", 0, 1, targetId)); children.add(new Property("relationship", "code", "The relationship of this action to the related action.", 0, 1, relationship)); children.add(new Property("offset[x]", "Duration|Range", "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.", 0, 1, offset)); } @@ -2041,7 +2088,7 @@ public class RequestGroup extends DomainResource { @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -1656172047: /*actionId*/ return new Property("actionId", "id", "The element id of the action this is related to.", 0, 1, actionId); + case -441951604: /*targetId*/ return new Property("targetId", "id", "The element id of the target related action.", 0, 1, targetId); case -261851592: /*relationship*/ return new Property("relationship", "code", "The relationship of this action to the related action.", 0, 1, relationship); case -1960684787: /*offset[x]*/ return new Property("offset[x]", "Duration|Range", "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.", 0, 1, offset); case -1019779949: /*offset*/ return new Property("offset[x]", "Duration|Range", "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before.", 0, 1, offset); @@ -2055,7 +2102,7 @@ public class RequestGroup extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { - case -1656172047: /*actionId*/ return this.actionId == null ? new Base[0] : new Base[] {this.actionId}; // IdType + case -441951604: /*targetId*/ return this.targetId == null ? new Base[0] : new Base[] {this.targetId}; // IdType case -261851592: /*relationship*/ return this.relationship == null ? new Base[0] : new Base[] {this.relationship}; // Enumeration case -1019779949: /*offset*/ return this.offset == null ? new Base[0] : new Base[] {this.offset}; // DataType default: return super.getProperty(hash, name, checkValid); @@ -2066,8 +2113,8 @@ public class RequestGroup extends DomainResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { - case -1656172047: // actionId - this.actionId = TypeConvertor.castToId(value); // IdType + case -441951604: // targetId + this.targetId = TypeConvertor.castToId(value); // IdType return value; case -261851592: // relationship value = new ActionRelationshipTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); @@ -2083,8 +2130,8 @@ public class RequestGroup extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("actionId")) { - this.actionId = TypeConvertor.castToId(value); // IdType + if (name.equals("targetId")) { + this.targetId = TypeConvertor.castToId(value); // IdType } else if (name.equals("relationship")) { value = new ActionRelationshipTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); this.relationship = (Enumeration) value; // Enumeration @@ -2098,7 +2145,7 @@ public class RequestGroup extends DomainResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { - case -1656172047: return getActionIdElement(); + case -441951604: return getTargetIdElement(); case -261851592: return getRelationshipElement(); case -1960684787: return getOffset(); case -1019779949: return getOffset(); @@ -2110,7 +2157,7 @@ public class RequestGroup extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { - case -1656172047: /*actionId*/ return new String[] {"id"}; + case -441951604: /*targetId*/ return new String[] {"id"}; case -261851592: /*relationship*/ return new String[] {"code"}; case -1019779949: /*offset*/ return new String[] {"Duration", "Range"}; default: return super.getTypesForProperty(hash, name); @@ -2120,8 +2167,8 @@ public class RequestGroup extends DomainResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("actionId")) { - throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.relatedAction.actionId"); + if (name.equals("targetId")) { + throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.relatedAction.targetId"); } else if (name.equals("relationship")) { throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.relatedAction.relationship"); @@ -2146,7 +2193,7 @@ public class RequestGroup extends DomainResource { public void copyValues(RequestGroupActionRelatedActionComponent dst) { super.copyValues(dst); - dst.actionId = actionId == null ? null : actionId.copy(); + dst.targetId = targetId == null ? null : targetId.copy(); dst.relationship = relationship == null ? null : relationship.copy(); dst.offset = offset == null ? null : offset.copy(); } @@ -2158,7 +2205,7 @@ public class RequestGroup extends DomainResource { if (!(other_ instanceof RequestGroupActionRelatedActionComponent)) return false; RequestGroupActionRelatedActionComponent o = (RequestGroupActionRelatedActionComponent) other_; - return compareDeep(actionId, o.actionId, true) && compareDeep(relationship, o.relationship, true) + return compareDeep(targetId, o.targetId, true) && compareDeep(relationship, o.relationship, true) && compareDeep(offset, o.offset, true); } @@ -2169,12 +2216,12 @@ public class RequestGroup extends DomainResource { if (!(other_ instanceof RequestGroupActionRelatedActionComponent)) return false; RequestGroupActionRelatedActionComponent o = (RequestGroupActionRelatedActionComponent) other_; - return compareValues(actionId, o.actionId, true) && compareValues(relationship, o.relationship, true) + return compareValues(targetId, o.targetId, true) && compareValues(relationship, o.relationship, true) ; } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(actionId, relationship, offset + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(targetId, relationship, offset ); } @@ -2183,6 +2230,376 @@ public class RequestGroup extends DomainResource { } + } + + @Block() + public static class RequestGroupActionParticipantComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The type of participant in the action. + */ + @Child(name = "type", type = {CodeType.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="careteam | device | group | healthcareservice | location | organization | patient | practitioner | practitionerrole | relatedperson", formalDefinition="The type of participant in the action." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-participant-type") + protected Enumeration type; + + /** + * The type of participant in the action. + */ + @Child(name = "typeReference", type = {CareTeam.class, Device.class, Group.class, HealthcareService.class, Location.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Who or what can participate", formalDefinition="The type of participant in the action." ) + protected Reference typeReference; + + /** + * The role the participant should play in performing the described action. + */ + @Child(name = "role", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="E.g. Nurse, Surgeon, Parent, etc.", formalDefinition="The role the participant should play in performing the described action." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://terminology.hl7.org/ValueSet/action-participant-role") + protected CodeableConcept role; + + /** + * Indicates how the actor will be involved in the action - author, reviewer, witness, etc. + */ + @Child(name = "function", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="E.g. Author, Reviewer, Witness, etc.", formalDefinition="Indicates how the actor will be involved in the action - author, reviewer, witness, etc." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-participant-function") + protected CodeableConcept function; + + /** + * A reference to the actual participant. + */ + @Child(name = "actor", type = {CareTeam.class, Device.class, Group.class, HealthcareService.class, Location.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class}, order=5, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Who/what is participating?", formalDefinition="A reference to the actual participant." ) + protected Reference actor; + + private static final long serialVersionUID = -2026277374L; + + /** + * Constructor + */ + public RequestGroupActionParticipantComponent() { + super(); + } + + /** + * @return {@link #type} (The type of participant in the action.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value + */ + public Enumeration getTypeElement() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create RequestGroupActionParticipantComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new Enumeration(new ActionParticipantTypeEnumFactory()); // bb + return this.type; + } + + public boolean hasTypeElement() { + return this.type != null && !this.type.isEmpty(); + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (The type of participant in the action.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value + */ + public RequestGroupActionParticipantComponent setTypeElement(Enumeration value) { + this.type = value; + return this; + } + + /** + * @return The type of participant in the action. + */ + public ActionParticipantType getType() { + return this.type == null ? null : this.type.getValue(); + } + + /** + * @param value The type of participant in the action. + */ + public RequestGroupActionParticipantComponent setType(ActionParticipantType value) { + if (value == null) + this.type = null; + else { + if (this.type == null) + this.type = new Enumeration(new ActionParticipantTypeEnumFactory()); + this.type.setValue(value); + } + return this; + } + + /** + * @return {@link #typeReference} (The type of participant in the action.) + */ + public Reference getTypeReference() { + if (this.typeReference == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create RequestGroupActionParticipantComponent.typeReference"); + else if (Configuration.doAutoCreate()) + this.typeReference = new Reference(); // cc + return this.typeReference; + } + + public boolean hasTypeReference() { + return this.typeReference != null && !this.typeReference.isEmpty(); + } + + /** + * @param value {@link #typeReference} (The type of participant in the action.) + */ + public RequestGroupActionParticipantComponent setTypeReference(Reference value) { + this.typeReference = value; + return this; + } + + /** + * @return {@link #role} (The role the participant should play in performing the described action.) + */ + public CodeableConcept getRole() { + if (this.role == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create RequestGroupActionParticipantComponent.role"); + else if (Configuration.doAutoCreate()) + this.role = new CodeableConcept(); // cc + return this.role; + } + + public boolean hasRole() { + return this.role != null && !this.role.isEmpty(); + } + + /** + * @param value {@link #role} (The role the participant should play in performing the described action.) + */ + public RequestGroupActionParticipantComponent setRole(CodeableConcept value) { + this.role = value; + return this; + } + + /** + * @return {@link #function} (Indicates how the actor will be involved in the action - author, reviewer, witness, etc.) + */ + public CodeableConcept getFunction() { + if (this.function == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create RequestGroupActionParticipantComponent.function"); + else if (Configuration.doAutoCreate()) + this.function = new CodeableConcept(); // cc + return this.function; + } + + public boolean hasFunction() { + return this.function != null && !this.function.isEmpty(); + } + + /** + * @param value {@link #function} (Indicates how the actor will be involved in the action - author, reviewer, witness, etc.) + */ + public RequestGroupActionParticipantComponent setFunction(CodeableConcept value) { + this.function = value; + return this; + } + + /** + * @return {@link #actor} (A reference to the actual participant.) + */ + public Reference getActor() { + if (this.actor == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create RequestGroupActionParticipantComponent.actor"); + else if (Configuration.doAutoCreate()) + this.actor = new Reference(); // cc + return this.actor; + } + + public boolean hasActor() { + return this.actor != null && !this.actor.isEmpty(); + } + + /** + * @param value {@link #actor} (A reference to the actual participant.) + */ + public RequestGroupActionParticipantComponent setActor(Reference value) { + this.actor = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("type", "code", "The type of participant in the action.", 0, 1, type)); + children.add(new Property("typeReference", "Reference(CareTeam|Device|Group|HealthcareService|Location|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson)", "The type of participant in the action.", 0, 1, typeReference)); + children.add(new Property("role", "CodeableConcept", "The role the participant should play in performing the described action.", 0, 1, role)); + children.add(new Property("function", "CodeableConcept", "Indicates how the actor will be involved in the action - author, reviewer, witness, etc.", 0, 1, function)); + children.add(new Property("actor", "Reference(CareTeam|Device|Group|HealthcareService|Location|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson)", "A reference to the actual participant.", 0, 1, actor)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3575610: /*type*/ return new Property("type", "code", "The type of participant in the action.", 0, 1, type); + case 2074825009: /*typeReference*/ return new Property("typeReference", "Reference(CareTeam|Device|Group|HealthcareService|Location|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson)", "The type of participant in the action.", 0, 1, typeReference); + case 3506294: /*role*/ return new Property("role", "CodeableConcept", "The role the participant should play in performing the described action.", 0, 1, role); + case 1380938712: /*function*/ return new Property("function", "CodeableConcept", "Indicates how the actor will be involved in the action - author, reviewer, witness, etc.", 0, 1, function); + case 92645877: /*actor*/ return new Property("actor", "Reference(CareTeam|Device|Group|HealthcareService|Location|Organization|Patient|Practitioner|PractitionerRole|RelatedPerson)", "A reference to the actual participant.", 0, 1, actor); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration + case 2074825009: /*typeReference*/ return this.typeReference == null ? new Base[0] : new Base[] {this.typeReference}; // Reference + case 3506294: /*role*/ return this.role == null ? new Base[0] : new Base[] {this.role}; // CodeableConcept + case 1380938712: /*function*/ return this.function == null ? new Base[0] : new Base[] {this.function}; // CodeableConcept + case 92645877: /*actor*/ return this.actor == null ? new Base[0] : new Base[] {this.actor}; // Reference + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3575610: // type + value = new ActionParticipantTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + return value; + case 2074825009: // typeReference + this.typeReference = TypeConvertor.castToReference(value); // Reference + return value; + case 3506294: // role + this.role = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 1380938712: // function + this.function = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 92645877: // actor + this.actor = TypeConvertor.castToReference(value); // Reference + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("type")) { + value = new ActionParticipantTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.type = (Enumeration) value; // Enumeration + } else if (name.equals("typeReference")) { + this.typeReference = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("role")) { + this.role = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("function")) { + this.function = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("actor")) { + this.actor = TypeConvertor.castToReference(value); // Reference + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: return getTypeElement(); + case 2074825009: return getTypeReference(); + case 3506294: return getRole(); + case 1380938712: return getFunction(); + case 92645877: return getActor(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return new String[] {"code"}; + case 2074825009: /*typeReference*/ return new String[] {"Reference"}; + case 3506294: /*role*/ return new String[] {"CodeableConcept"}; + case 1380938712: /*function*/ return new String[] {"CodeableConcept"}; + case 92645877: /*actor*/ return new String[] {"Reference"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("type")) { + throw new FHIRException("Cannot call addChild on a primitive type RequestGroup.action.participant.type"); + } + else if (name.equals("typeReference")) { + this.typeReference = new Reference(); + return this.typeReference; + } + else if (name.equals("role")) { + this.role = new CodeableConcept(); + return this.role; + } + else if (name.equals("function")) { + this.function = new CodeableConcept(); + return this.function; + } + else if (name.equals("actor")) { + this.actor = new Reference(); + return this.actor; + } + else + return super.addChild(name); + } + + public RequestGroupActionParticipantComponent copy() { + RequestGroupActionParticipantComponent dst = new RequestGroupActionParticipantComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(RequestGroupActionParticipantComponent dst) { + super.copyValues(dst); + dst.type = type == null ? null : type.copy(); + dst.typeReference = typeReference == null ? null : typeReference.copy(); + dst.role = role == null ? null : role.copy(); + dst.function = function == null ? null : function.copy(); + dst.actor = actor == null ? null : actor.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof RequestGroupActionParticipantComponent)) + return false; + RequestGroupActionParticipantComponent o = (RequestGroupActionParticipantComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(typeReference, o.typeReference, true) && compareDeep(role, o.role, true) + && compareDeep(function, o.function, true) && compareDeep(actor, o.actor, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof RequestGroupActionParticipantComponent)) + return false; + RequestGroupActionParticipantComponent o = (RequestGroupActionParticipantComponent) other_; + return compareValues(type, o.type, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, typeReference, role + , function, actor); + } + + public String fhirType() { + return "RequestGroup.action.participant"; + + } + } /** @@ -2256,6 +2673,7 @@ public class RequestGroup extends DomainResource { */ @Child(name = "code", type = {CodeableConcept.class}, order=9, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="What's being requested/ordered", formalDefinition="A code that identifies what the overall request group is." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-code") protected CodeableConcept code; /** @@ -2291,6 +2709,7 @@ public class RequestGroup extends DomainResource { */ @Child(name = "reason", type = {CodeableReference.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Why the request group is needed", formalDefinition="Describes the reason for the request group in coded or textual form." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/action-reason-code") protected List reason; /** @@ -3672,17 +4091,17 @@ public class RequestGroup extends DomainResource { *

* Description: The participant in the requests in the group
* Type: reference
- * Path: RequestGroup.action.participant
+ * Path: RequestGroup.action.participant.actor
*

*/ - @SearchParamDefinition(name="participant", path="RequestGroup.action.participant", description="The participant in the requests in the group", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Device.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) + @SearchParamDefinition(name="participant", path="RequestGroup.action.participant.actor", description="The participant in the requests in the group", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={CareTeam.class, Device.class, Group.class, HealthcareService.class, Location.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) public static final String SP_PARTICIPANT = "participant"; /** * Fluent Client search parameter constant for participant *

* Description: The participant in the requests in the group
* Type: reference
- * Path: RequestGroup.action.participant
+ * Path: RequestGroup.action.participant.actor
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARTICIPANT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PARTICIPANT); @@ -3701,7 +4120,7 @@ public class RequestGroup extends DomainResource { * Path: RequestGroup.subject.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="RequestGroup.subject.where(resolve() is Patient)", description="The identity of a patient to search for request groups", type="reference", target={Patient.class } ) + @SearchParamDefinition(name="patient", path="RequestGroup.subject.where(resolve() is Patient)", description="The identity of a patient to search for request groups", type="reference", target={Group.class, Patient.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchStudy.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchStudy.java index 223168134..b87a7035c 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchStudy.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchStudy.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -53,293 +53,829 @@ import ca.uhn.fhir.model.api.annotation.Block; @ResourceDef(name="ResearchStudy", profile="http://hl7.org/fhir/StructureDefinition/ResearchStudy") public class ResearchStudy extends DomainResource { - public enum ResearchStudyStatus { - /** - * Study is opened for accrual. - */ - ACTIVE, - /** - * Study is completed prematurely and will not resume; patients are no longer examined nor treated. - */ - ADMINISTRATIVELYCOMPLETED, - /** - * Protocol is approved by the review board. - */ - APPROVED, - /** - * Study is closed for accrual; patients can be examined and treated. - */ - CLOSEDTOACCRUAL, - /** - * Study is closed to accrual and intervention, i.e. the study is closed to enrollment, all study subjects have completed treatment or intervention but are still being followed according to the primary objective of the study. - */ - CLOSEDTOACCRUALANDINTERVENTION, - /** - * Study is closed to accrual and intervention, i.e. the study is closed to enrollment, all study subjects have completed treatment\nor intervention but are still being followed according to the primary objective of the study. - */ - COMPLETED, - /** - * Protocol was disapproved by the review board. - */ - DISAPPROVED, - /** - * Protocol is submitted to the review board for approval. - */ - INREVIEW, - /** - * Study is temporarily closed for accrual; can be potentially resumed in the future; patients can be examined and treated. - */ - TEMPORARILYCLOSEDTOACCRUAL, - /** - * Study is temporarily closed for accrual and intervention and potentially can be resumed in the future. - */ - TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION, - /** - * Protocol was withdrawn by the lead organization. - */ - WITHDRAWN, - /** - * added to help the parsers with the generic types - */ - NULL; - public static ResearchStudyStatus fromCode(String codeString) throws FHIRException { - if (codeString == null || "".equals(codeString)) - return null; - if ("active".equals(codeString)) - return ACTIVE; - if ("administratively-completed".equals(codeString)) - return ADMINISTRATIVELYCOMPLETED; - if ("approved".equals(codeString)) - return APPROVED; - if ("closed-to-accrual".equals(codeString)) - return CLOSEDTOACCRUAL; - if ("closed-to-accrual-and-intervention".equals(codeString)) - return CLOSEDTOACCRUALANDINTERVENTION; - if ("completed".equals(codeString)) - return COMPLETED; - if ("disapproved".equals(codeString)) - return DISAPPROVED; - if ("in-review".equals(codeString)) - return INREVIEW; - if ("temporarily-closed-to-accrual".equals(codeString)) - return TEMPORARILYCLOSEDTOACCRUAL; - if ("temporarily-closed-to-accrual-and-intervention".equals(codeString)) - return TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION; - if ("withdrawn".equals(codeString)) - return WITHDRAWN; - if (Configuration.isAcceptInvalidEnums()) - return null; - else - throw new FHIRException("Unknown ResearchStudyStatus code '"+codeString+"'"); - } - public String toCode() { - switch (this) { - case ACTIVE: return "active"; - case ADMINISTRATIVELYCOMPLETED: return "administratively-completed"; - case APPROVED: return "approved"; - case CLOSEDTOACCRUAL: return "closed-to-accrual"; - case CLOSEDTOACCRUALANDINTERVENTION: return "closed-to-accrual-and-intervention"; - case COMPLETED: return "completed"; - case DISAPPROVED: return "disapproved"; - case INREVIEW: return "in-review"; - case TEMPORARILYCLOSEDTOACCRUAL: return "temporarily-closed-to-accrual"; - case TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION: return "temporarily-closed-to-accrual-and-intervention"; - case WITHDRAWN: return "withdrawn"; - case NULL: return null; - default: return "?"; - } - } - public String getSystem() { - switch (this) { - case ACTIVE: return "http://hl7.org/fhir/research-study-status"; - case ADMINISTRATIVELYCOMPLETED: return "http://hl7.org/fhir/research-study-status"; - case APPROVED: return "http://hl7.org/fhir/research-study-status"; - case CLOSEDTOACCRUAL: return "http://hl7.org/fhir/research-study-status"; - case CLOSEDTOACCRUALANDINTERVENTION: return "http://hl7.org/fhir/research-study-status"; - case COMPLETED: return "http://hl7.org/fhir/research-study-status"; - case DISAPPROVED: return "http://hl7.org/fhir/research-study-status"; - case INREVIEW: return "http://hl7.org/fhir/research-study-status"; - case TEMPORARILYCLOSEDTOACCRUAL: return "http://hl7.org/fhir/research-study-status"; - case TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION: return "http://hl7.org/fhir/research-study-status"; - case WITHDRAWN: return "http://hl7.org/fhir/research-study-status"; - case NULL: return null; - default: return "?"; - } - } - public String getDefinition() { - switch (this) { - case ACTIVE: return "Study is opened for accrual."; - case ADMINISTRATIVELYCOMPLETED: return "Study is completed prematurely and will not resume; patients are no longer examined nor treated."; - case APPROVED: return "Protocol is approved by the review board."; - case CLOSEDTOACCRUAL: return "Study is closed for accrual; patients can be examined and treated."; - case CLOSEDTOACCRUALANDINTERVENTION: return "Study is closed to accrual and intervention, i.e. the study is closed to enrollment, all study subjects have completed treatment or intervention but are still being followed according to the primary objective of the study."; - case COMPLETED: return "Study is closed to accrual and intervention, i.e. the study is closed to enrollment, all study subjects have completed treatment\nor intervention but are still being followed according to the primary objective of the study."; - case DISAPPROVED: return "Protocol was disapproved by the review board."; - case INREVIEW: return "Protocol is submitted to the review board for approval."; - case TEMPORARILYCLOSEDTOACCRUAL: return "Study is temporarily closed for accrual; can be potentially resumed in the future; patients can be examined and treated."; - case TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION: return "Study is temporarily closed for accrual and intervention and potentially can be resumed in the future."; - case WITHDRAWN: return "Protocol was withdrawn by the lead organization."; - case NULL: return null; - default: return "?"; - } - } - public String getDisplay() { - switch (this) { - case ACTIVE: return "Active"; - case ADMINISTRATIVELYCOMPLETED: return "Administratively Completed"; - case APPROVED: return "Approved"; - case CLOSEDTOACCRUAL: return "Closed to Accrual"; - case CLOSEDTOACCRUALANDINTERVENTION: return "Closed to Accrual and Intervention"; - case COMPLETED: return "Completed"; - case DISAPPROVED: return "Disapproved"; - case INREVIEW: return "In Review"; - case TEMPORARILYCLOSEDTOACCRUAL: return "Temporarily Closed to Accrual"; - case TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION: return "Temporarily Closed to Accrual and Intervention"; - case WITHDRAWN: return "Withdrawn"; - case NULL: return null; - default: return "?"; - } - } - } - - public static class ResearchStudyStatusEnumFactory implements EnumFactory { - public ResearchStudyStatus fromCode(String codeString) throws IllegalArgumentException { - if (codeString == null || "".equals(codeString)) - if (codeString == null || "".equals(codeString)) - return null; - if ("active".equals(codeString)) - return ResearchStudyStatus.ACTIVE; - if ("administratively-completed".equals(codeString)) - return ResearchStudyStatus.ADMINISTRATIVELYCOMPLETED; - if ("approved".equals(codeString)) - return ResearchStudyStatus.APPROVED; - if ("closed-to-accrual".equals(codeString)) - return ResearchStudyStatus.CLOSEDTOACCRUAL; - if ("closed-to-accrual-and-intervention".equals(codeString)) - return ResearchStudyStatus.CLOSEDTOACCRUALANDINTERVENTION; - if ("completed".equals(codeString)) - return ResearchStudyStatus.COMPLETED; - if ("disapproved".equals(codeString)) - return ResearchStudyStatus.DISAPPROVED; - if ("in-review".equals(codeString)) - return ResearchStudyStatus.INREVIEW; - if ("temporarily-closed-to-accrual".equals(codeString)) - return ResearchStudyStatus.TEMPORARILYCLOSEDTOACCRUAL; - if ("temporarily-closed-to-accrual-and-intervention".equals(codeString)) - return ResearchStudyStatus.TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION; - if ("withdrawn".equals(codeString)) - return ResearchStudyStatus.WITHDRAWN; - throw new IllegalArgumentException("Unknown ResearchStudyStatus code '"+codeString+"'"); - } - public Enumeration fromType(Base code) throws FHIRException { - if (code == null) - return null; - if (code.isEmpty()) - return new Enumeration(this); - String codeString = ((PrimitiveType) code).asStringValue(); - if (codeString == null || "".equals(codeString)) - return null; - if ("active".equals(codeString)) - return new Enumeration(this, ResearchStudyStatus.ACTIVE); - if ("administratively-completed".equals(codeString)) - return new Enumeration(this, ResearchStudyStatus.ADMINISTRATIVELYCOMPLETED); - if ("approved".equals(codeString)) - return new Enumeration(this, ResearchStudyStatus.APPROVED); - if ("closed-to-accrual".equals(codeString)) - return new Enumeration(this, ResearchStudyStatus.CLOSEDTOACCRUAL); - if ("closed-to-accrual-and-intervention".equals(codeString)) - return new Enumeration(this, ResearchStudyStatus.CLOSEDTOACCRUALANDINTERVENTION); - if ("completed".equals(codeString)) - return new Enumeration(this, ResearchStudyStatus.COMPLETED); - if ("disapproved".equals(codeString)) - return new Enumeration(this, ResearchStudyStatus.DISAPPROVED); - if ("in-review".equals(codeString)) - return new Enumeration(this, ResearchStudyStatus.INREVIEW); - if ("temporarily-closed-to-accrual".equals(codeString)) - return new Enumeration(this, ResearchStudyStatus.TEMPORARILYCLOSEDTOACCRUAL); - if ("temporarily-closed-to-accrual-and-intervention".equals(codeString)) - return new Enumeration(this, ResearchStudyStatus.TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION); - if ("withdrawn".equals(codeString)) - return new Enumeration(this, ResearchStudyStatus.WITHDRAWN); - throw new FHIRException("Unknown ResearchStudyStatus code '"+codeString+"'"); - } - public String toCode(ResearchStudyStatus code) { - if (code == ResearchStudyStatus.ACTIVE) - return "active"; - if (code == ResearchStudyStatus.ADMINISTRATIVELYCOMPLETED) - return "administratively-completed"; - if (code == ResearchStudyStatus.APPROVED) - return "approved"; - if (code == ResearchStudyStatus.CLOSEDTOACCRUAL) - return "closed-to-accrual"; - if (code == ResearchStudyStatus.CLOSEDTOACCRUALANDINTERVENTION) - return "closed-to-accrual-and-intervention"; - if (code == ResearchStudyStatus.COMPLETED) - return "completed"; - if (code == ResearchStudyStatus.DISAPPROVED) - return "disapproved"; - if (code == ResearchStudyStatus.INREVIEW) - return "in-review"; - if (code == ResearchStudyStatus.TEMPORARILYCLOSEDTOACCRUAL) - return "temporarily-closed-to-accrual"; - if (code == ResearchStudyStatus.TEMPORARILYCLOSEDTOACCRUALANDINTERVENTION) - return "temporarily-closed-to-accrual-and-intervention"; - if (code == ResearchStudyStatus.WITHDRAWN) - return "withdrawn"; - return "?"; - } - public String toSystem(ResearchStudyStatus code) { - return code.getSystem(); - } - } - @Block() - public static class ResearchStudyArmComponent extends BackboneElement implements IBaseBackboneElement { + public static class ResearchStudyLabelComponent extends BackboneElement implements IBaseBackboneElement { /** - * Unique, human-readable label for this arm of the study. + * Kind of name. */ - @Child(name = "name", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="Label for study arm", formalDefinition="Unique, human-readable label for this arm of the study." ) - protected StringType name; - - /** - * Categorization of study arm, e.g. experimental, active comparator, placebo comparater. - */ - @Child(name = "type", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Categorization of study arm", formalDefinition="Categorization of study arm, e.g. experimental, active comparator, placebo comparater." ) + @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="short | public | scientific", formalDefinition="Kind of name." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-title-type") protected CodeableConcept type; /** - * A succinct description of the path through the study that would be followed by a subject adhering to this arm. + * The name. */ - @Child(name = "description", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Short explanation of study path", formalDefinition="A succinct description of the path through the study that would be followed by a subject adhering to this arm." ) - protected StringType description; + @Child(name = "value", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="The name", formalDefinition="The name." ) + protected StringType value; - private static final long serialVersionUID = 311445244L; + private static final long serialVersionUID = 944223389L; /** * Constructor */ - public ResearchStudyArmComponent() { + public ResearchStudyLabelComponent() { super(); } - /** - * Constructor - */ - public ResearchStudyArmComponent(String name) { - super(); - this.setName(name); - } - /** - * @return {@link #name} (Unique, human-readable label for this arm of the study.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + * @return {@link #type} (Kind of name.) + */ + public CodeableConcept getType() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyLabelComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new CodeableConcept(); // cc + return this.type; + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (Kind of name.) + */ + public ResearchStudyLabelComponent setType(CodeableConcept value) { + this.type = value; + return this; + } + + /** + * @return {@link #value} (The name.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value + */ + public StringType getValueElement() { + if (this.value == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyLabelComponent.value"); + else if (Configuration.doAutoCreate()) + this.value = new StringType(); // bb + return this.value; + } + + public boolean hasValueElement() { + return this.value != null && !this.value.isEmpty(); + } + + public boolean hasValue() { + return this.value != null && !this.value.isEmpty(); + } + + /** + * @param value {@link #value} (The name.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value + */ + public ResearchStudyLabelComponent setValueElement(StringType value) { + this.value = value; + return this; + } + + /** + * @return The name. + */ + public String getValue() { + return this.value == null ? null : this.value.getValue(); + } + + /** + * @param value The name. + */ + public ResearchStudyLabelComponent setValue(String value) { + if (Utilities.noString(value)) + this.value = null; + else { + if (this.value == null) + this.value = new StringType(); + this.value.setValue(value); + } + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("type", "CodeableConcept", "Kind of name.", 0, 1, type)); + children.add(new Property("value", "string", "The name.", 0, 1, value)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Kind of name.", 0, 1, type); + case 111972721: /*value*/ return new Property("value", "string", "The name.", 0, 1, value); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // StringType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3575610: // type + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 111972721: // value + this.value = TypeConvertor.castToString(value); // StringType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("value")) { + this.value = TypeConvertor.castToString(value); // StringType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: return getType(); + case 111972721: return getValueElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case 111972721: /*value*/ return new String[] {"string"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("type")) { + this.type = new CodeableConcept(); + return this.type; + } + else if (name.equals("value")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.label.value"); + } + else + return super.addChild(name); + } + + public ResearchStudyLabelComponent copy() { + ResearchStudyLabelComponent dst = new ResearchStudyLabelComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ResearchStudyLabelComponent dst) { + super.copyValues(dst); + dst.type = type == null ? null : type.copy(); + dst.value = value == null ? null : value.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ResearchStudyLabelComponent)) + return false; + ResearchStudyLabelComponent o = (ResearchStudyLabelComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(value, o.value, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ResearchStudyLabelComponent)) + return false; + ResearchStudyLabelComponent o = (ResearchStudyLabelComponent) other_; + return compareValues(value, o.value, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, value); + } + + public String fhirType() { + return "ResearchStudy.label"; + + } + + } + + @Block() + public static class ResearchStudyFocusComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Identification of product under study. This may be any combination of code and/or name. + */ + @Child(name = "productCode", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Identification of product under study", formalDefinition="Identification of product under study. This may be any combination of code and/or name." ) + protected CodeableConcept productCode; + + /** + * Indicates whether the focus is a medication, a device, a procedure, a specific factor or some other intervention or characteristic. + */ + @Child(name = "focusType", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="medication | device | intervention | factor", formalDefinition="Indicates whether the focus is a medication, a device, a procedure, a specific factor or some other intervention or characteristic." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-focus-type") + protected List focusType; + + /** + * A factor corresponds to an independent variable manipulated by the experimentalist with the intention to affect biological systems in a way that can be measured by an assay. + */ + @Child(name = "factor", type = {MarkdownType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="An independent variable manipulated by the experimentalist", formalDefinition="A factor corresponds to an independent variable manipulated by the experimentalist with the intention to affect biological systems in a way that can be measured by an assay." ) + protected MarkdownType factor; + + private static final long serialVersionUID = 1526347182L; + + /** + * Constructor + */ + public ResearchStudyFocusComponent() { + super(); + } + + /** + * @return {@link #productCode} (Identification of product under study. This may be any combination of code and/or name.) + */ + public CodeableConcept getProductCode() { + if (this.productCode == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyFocusComponent.productCode"); + else if (Configuration.doAutoCreate()) + this.productCode = new CodeableConcept(); // cc + return this.productCode; + } + + public boolean hasProductCode() { + return this.productCode != null && !this.productCode.isEmpty(); + } + + /** + * @param value {@link #productCode} (Identification of product under study. This may be any combination of code and/or name.) + */ + public ResearchStudyFocusComponent setProductCode(CodeableConcept value) { + this.productCode = value; + return this; + } + + /** + * @return {@link #focusType} (Indicates whether the focus is a medication, a device, a procedure, a specific factor or some other intervention or characteristic.) + */ + public List getFocusType() { + if (this.focusType == null) + this.focusType = new ArrayList(); + return this.focusType; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResearchStudyFocusComponent setFocusType(List theFocusType) { + this.focusType = theFocusType; + return this; + } + + public boolean hasFocusType() { + if (this.focusType == null) + return false; + for (CodeableConcept item : this.focusType) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addFocusType() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.focusType == null) + this.focusType = new ArrayList(); + this.focusType.add(t); + return t; + } + + public ResearchStudyFocusComponent addFocusType(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.focusType == null) + this.focusType = new ArrayList(); + this.focusType.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #focusType}, creating it if it does not already exist {3} + */ + public CodeableConcept getFocusTypeFirstRep() { + if (getFocusType().isEmpty()) { + addFocusType(); + } + return getFocusType().get(0); + } + + /** + * @return {@link #factor} (A factor corresponds to an independent variable manipulated by the experimentalist with the intention to affect biological systems in a way that can be measured by an assay.). This is the underlying object with id, value and extensions. The accessor "getFactor" gives direct access to the value + */ + public MarkdownType getFactorElement() { + if (this.factor == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyFocusComponent.factor"); + else if (Configuration.doAutoCreate()) + this.factor = new MarkdownType(); // bb + return this.factor; + } + + public boolean hasFactorElement() { + return this.factor != null && !this.factor.isEmpty(); + } + + public boolean hasFactor() { + return this.factor != null && !this.factor.isEmpty(); + } + + /** + * @param value {@link #factor} (A factor corresponds to an independent variable manipulated by the experimentalist with the intention to affect biological systems in a way that can be measured by an assay.). This is the underlying object with id, value and extensions. The accessor "getFactor" gives direct access to the value + */ + public ResearchStudyFocusComponent setFactorElement(MarkdownType value) { + this.factor = value; + return this; + } + + /** + * @return A factor corresponds to an independent variable manipulated by the experimentalist with the intention to affect biological systems in a way that can be measured by an assay. + */ + public String getFactor() { + return this.factor == null ? null : this.factor.getValue(); + } + + /** + * @param value A factor corresponds to an independent variable manipulated by the experimentalist with the intention to affect biological systems in a way that can be measured by an assay. + */ + public ResearchStudyFocusComponent setFactor(String value) { + if (value == null) + this.factor = null; + else { + if (this.factor == null) + this.factor = new MarkdownType(); + this.factor.setValue(value); + } + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("productCode", "CodeableConcept", "Identification of product under study. This may be any combination of code and/or name.", 0, 1, productCode)); + children.add(new Property("focusType", "CodeableConcept", "Indicates whether the focus is a medication, a device, a procedure, a specific factor or some other intervention or characteristic.", 0, java.lang.Integer.MAX_VALUE, focusType)); + children.add(new Property("factor", "markdown", "A factor corresponds to an independent variable manipulated by the experimentalist with the intention to affect biological systems in a way that can be measured by an assay.", 0, 1, factor)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -1492131972: /*productCode*/ return new Property("productCode", "CodeableConcept", "Identification of product under study. This may be any combination of code and/or name.", 0, 1, productCode); + case 1628646450: /*focusType*/ return new Property("focusType", "CodeableConcept", "Indicates whether the focus is a medication, a device, a procedure, a specific factor or some other intervention or characteristic.", 0, java.lang.Integer.MAX_VALUE, focusType); + case -1282148017: /*factor*/ return new Property("factor", "markdown", "A factor corresponds to an independent variable manipulated by the experimentalist with the intention to affect biological systems in a way that can be measured by an assay.", 0, 1, factor); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -1492131972: /*productCode*/ return this.productCode == null ? new Base[0] : new Base[] {this.productCode}; // CodeableConcept + case 1628646450: /*focusType*/ return this.focusType == null ? new Base[0] : this.focusType.toArray(new Base[this.focusType.size()]); // CodeableConcept + case -1282148017: /*factor*/ return this.factor == null ? new Base[0] : new Base[] {this.factor}; // MarkdownType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -1492131972: // productCode + this.productCode = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 1628646450: // focusType + this.getFocusType().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + case -1282148017: // factor + this.factor = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("productCode")) { + this.productCode = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("focusType")) { + this.getFocusType().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("factor")) { + this.factor = TypeConvertor.castToMarkdown(value); // MarkdownType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1492131972: return getProductCode(); + case 1628646450: return addFocusType(); + case -1282148017: return getFactorElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1492131972: /*productCode*/ return new String[] {"CodeableConcept"}; + case 1628646450: /*focusType*/ return new String[] {"CodeableConcept"}; + case -1282148017: /*factor*/ return new String[] {"markdown"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("productCode")) { + this.productCode = new CodeableConcept(); + return this.productCode; + } + else if (name.equals("focusType")) { + return addFocusType(); + } + else if (name.equals("factor")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.focus.factor"); + } + else + return super.addChild(name); + } + + public ResearchStudyFocusComponent copy() { + ResearchStudyFocusComponent dst = new ResearchStudyFocusComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ResearchStudyFocusComponent dst) { + super.copyValues(dst); + dst.productCode = productCode == null ? null : productCode.copy(); + if (focusType != null) { + dst.focusType = new ArrayList(); + for (CodeableConcept i : focusType) + dst.focusType.add(i.copy()); + }; + dst.factor = factor == null ? null : factor.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ResearchStudyFocusComponent)) + return false; + ResearchStudyFocusComponent o = (ResearchStudyFocusComponent) other_; + return compareDeep(productCode, o.productCode, true) && compareDeep(focusType, o.focusType, true) + && compareDeep(factor, o.factor, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ResearchStudyFocusComponent)) + return false; + ResearchStudyFocusComponent o = (ResearchStudyFocusComponent) other_; + return compareValues(factor, o.factor, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(productCode, focusType, factor + ); + } + + public String fhirType() { + return "ResearchStudy.focus"; + + } + + } + + @Block() + public static class ResearchStudyClassificationComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Type of classifier. + */ + @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="phase | category | keyword ", formalDefinition="Type of classifier." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-classification-type") + protected CodeableConcept type; + + /** + * Value of classifier. + */ + @Child(name = "classifier", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="n-a | early-phase-1 | phase-1 | phase-1-phase-2 | phase-2 | phase-2-phase-3 | phase-3 | phase-4", formalDefinition="Value of classifier." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-classification-classifier") + protected List classifier; + + private static final long serialVersionUID = -283121869L; + + /** + * Constructor + */ + public ResearchStudyClassificationComponent() { + super(); + } + + /** + * @return {@link #type} (Type of classifier.) + */ + public CodeableConcept getType() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyClassificationComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new CodeableConcept(); // cc + return this.type; + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (Type of classifier.) + */ + public ResearchStudyClassificationComponent setType(CodeableConcept value) { + this.type = value; + return this; + } + + /** + * @return {@link #classifier} (Value of classifier.) + */ + public List getClassifier() { + if (this.classifier == null) + this.classifier = new ArrayList(); + return this.classifier; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResearchStudyClassificationComponent setClassifier(List theClassifier) { + this.classifier = theClassifier; + return this; + } + + public boolean hasClassifier() { + if (this.classifier == null) + return false; + for (CodeableConcept item : this.classifier) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addClassifier() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.classifier == null) + this.classifier = new ArrayList(); + this.classifier.add(t); + return t; + } + + public ResearchStudyClassificationComponent addClassifier(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.classifier == null) + this.classifier = new ArrayList(); + this.classifier.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #classifier}, creating it if it does not already exist {3} + */ + public CodeableConcept getClassifierFirstRep() { + if (getClassifier().isEmpty()) { + addClassifier(); + } + return getClassifier().get(0); + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("type", "CodeableConcept", "Type of classifier.", 0, 1, type)); + children.add(new Property("classifier", "CodeableConcept", "Value of classifier.", 0, java.lang.Integer.MAX_VALUE, classifier)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Type of classifier.", 0, 1, type); + case -281470431: /*classifier*/ return new Property("classifier", "CodeableConcept", "Value of classifier.", 0, java.lang.Integer.MAX_VALUE, classifier); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case -281470431: /*classifier*/ return this.classifier == null ? new Base[0] : this.classifier.toArray(new Base[this.classifier.size()]); // CodeableConcept + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3575610: // type + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -281470431: // classifier + this.getClassifier().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("classifier")) { + this.getClassifier().add(TypeConvertor.castToCodeableConcept(value)); + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: return getType(); + case -281470431: return addClassifier(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case -281470431: /*classifier*/ return new String[] {"CodeableConcept"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("type")) { + this.type = new CodeableConcept(); + return this.type; + } + else if (name.equals("classifier")) { + return addClassifier(); + } + else + return super.addChild(name); + } + + public ResearchStudyClassificationComponent copy() { + ResearchStudyClassificationComponent dst = new ResearchStudyClassificationComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ResearchStudyClassificationComponent dst) { + super.copyValues(dst); + dst.type = type == null ? null : type.copy(); + if (classifier != null) { + dst.classifier = new ArrayList(); + for (CodeableConcept i : classifier) + dst.classifier.add(i.copy()); + }; + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ResearchStudyClassificationComponent)) + return false; + ResearchStudyClassificationComponent o = (ResearchStudyClassificationComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(classifier, o.classifier, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ResearchStudyClassificationComponent)) + return false; + ResearchStudyClassificationComponent o = (ResearchStudyClassificationComponent) other_; + return true; + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, classifier); + } + + public String fhirType() { + return "ResearchStudy.classification"; + + } + + } + + @Block() + public static class ResearchStudyAssociatedPartyComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Name of associated party. + */ + @Child(name = "name", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Name of associated party", formalDefinition="Name of associated party." ) + protected StringType name; + + /** + * Type of association. + */ + @Child(name = "role", type = {CodeableConcept.class}, order=2, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="sponsor | sponsor-investigator | primary-investigator | collaborator | funding-source | recruitment-contact | sub-investigator | study-director | study-chair", formalDefinition="Type of association." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-party-type") + protected CodeableConcept role; + + /** + * Organisational type of association. + */ + @Child(name = "classifier", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="nih | fda", formalDefinition="Organisational type of association." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-party-org-type") + protected List classifier; + + /** + * Individual or organization associated with study (use practitionerRole to specify their organisation). + */ + @Child(name = "party", type = {Practitioner.class, PractitionerRole.class, Organization.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Individual or organization associated with study (use practitionerRole to specify their organisation)", formalDefinition="Individual or organization associated with study (use practitionerRole to specify their organisation)." ) + protected Reference party; + + private static final long serialVersionUID = 2116155954L; + + /** + * Constructor + */ + public ResearchStudyAssociatedPartyComponent() { + super(); + } + + /** + * Constructor + */ + public ResearchStudyAssociatedPartyComponent(CodeableConcept role) { + super(); + this.setRole(role); + } + + /** + * @return {@link #name} (Name of associated party.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value */ public StringType getNameElement() { if (this.name == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ResearchStudyArmComponent.name"); + throw new Error("Attempt to auto-create ResearchStudyAssociatedPartyComponent.name"); else if (Configuration.doAutoCreate()) this.name = new StringType(); // bb return this.name; @@ -354,24 +890,1065 @@ public class ResearchStudy extends DomainResource { } /** - * @param value {@link #name} (Unique, human-readable label for this arm of the study.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + * @param value {@link #name} (Name of associated party.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value */ - public ResearchStudyArmComponent setNameElement(StringType value) { + public ResearchStudyAssociatedPartyComponent setNameElement(StringType value) { this.name = value; return this; } /** - * @return Unique, human-readable label for this arm of the study. + * @return Name of associated party. */ public String getName() { return this.name == null ? null : this.name.getValue(); } /** - * @param value Unique, human-readable label for this arm of the study. + * @param value Name of associated party. */ - public ResearchStudyArmComponent setName(String value) { + public ResearchStudyAssociatedPartyComponent setName(String value) { + if (Utilities.noString(value)) + this.name = null; + else { + if (this.name == null) + this.name = new StringType(); + this.name.setValue(value); + } + return this; + } + + /** + * @return {@link #role} (Type of association.) + */ + public CodeableConcept getRole() { + if (this.role == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyAssociatedPartyComponent.role"); + else if (Configuration.doAutoCreate()) + this.role = new CodeableConcept(); // cc + return this.role; + } + + public boolean hasRole() { + return this.role != null && !this.role.isEmpty(); + } + + /** + * @param value {@link #role} (Type of association.) + */ + public ResearchStudyAssociatedPartyComponent setRole(CodeableConcept value) { + this.role = value; + return this; + } + + /** + * @return {@link #classifier} (Organisational type of association.) + */ + public List getClassifier() { + if (this.classifier == null) + this.classifier = new ArrayList(); + return this.classifier; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResearchStudyAssociatedPartyComponent setClassifier(List theClassifier) { + this.classifier = theClassifier; + return this; + } + + public boolean hasClassifier() { + if (this.classifier == null) + return false; + for (CodeableConcept item : this.classifier) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addClassifier() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.classifier == null) + this.classifier = new ArrayList(); + this.classifier.add(t); + return t; + } + + public ResearchStudyAssociatedPartyComponent addClassifier(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.classifier == null) + this.classifier = new ArrayList(); + this.classifier.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #classifier}, creating it if it does not already exist {3} + */ + public CodeableConcept getClassifierFirstRep() { + if (getClassifier().isEmpty()) { + addClassifier(); + } + return getClassifier().get(0); + } + + /** + * @return {@link #party} (Individual or organization associated with study (use practitionerRole to specify their organisation).) + */ + public Reference getParty() { + if (this.party == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyAssociatedPartyComponent.party"); + else if (Configuration.doAutoCreate()) + this.party = new Reference(); // cc + return this.party; + } + + public boolean hasParty() { + return this.party != null && !this.party.isEmpty(); + } + + /** + * @param value {@link #party} (Individual or organization associated with study (use practitionerRole to specify their organisation).) + */ + public ResearchStudyAssociatedPartyComponent setParty(Reference value) { + this.party = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("name", "string", "Name of associated party.", 0, 1, name)); + children.add(new Property("role", "CodeableConcept", "Type of association.", 0, 1, role)); + children.add(new Property("classifier", "CodeableConcept", "Organisational type of association.", 0, java.lang.Integer.MAX_VALUE, classifier)); + children.add(new Property("party", "Reference(Practitioner|PractitionerRole|Organization)", "Individual or organization associated with study (use practitionerRole to specify their organisation).", 0, 1, party)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3373707: /*name*/ return new Property("name", "string", "Name of associated party.", 0, 1, name); + case 3506294: /*role*/ return new Property("role", "CodeableConcept", "Type of association.", 0, 1, role); + case -281470431: /*classifier*/ return new Property("classifier", "CodeableConcept", "Organisational type of association.", 0, java.lang.Integer.MAX_VALUE, classifier); + case 106437350: /*party*/ return new Property("party", "Reference(Practitioner|PractitionerRole|Organization)", "Individual or organization associated with study (use practitionerRole to specify their organisation).", 0, 1, party); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType + case 3506294: /*role*/ return this.role == null ? new Base[0] : new Base[] {this.role}; // CodeableConcept + case -281470431: /*classifier*/ return this.classifier == null ? new Base[0] : this.classifier.toArray(new Base[this.classifier.size()]); // CodeableConcept + case 106437350: /*party*/ return this.party == null ? new Base[0] : new Base[] {this.party}; // Reference + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3373707: // name + this.name = TypeConvertor.castToString(value); // StringType + return value; + case 3506294: // role + this.role = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -281470431: // classifier + this.getClassifier().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + case 106437350: // party + this.party = TypeConvertor.castToReference(value); // Reference + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = TypeConvertor.castToString(value); // StringType + } else if (name.equals("role")) { + this.role = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("classifier")) { + this.getClassifier().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("party")) { + this.party = TypeConvertor.castToReference(value); // Reference + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3373707: return getNameElement(); + case 3506294: return getRole(); + case -281470431: return addClassifier(); + case 106437350: return getParty(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3373707: /*name*/ return new String[] {"string"}; + case 3506294: /*role*/ return new String[] {"CodeableConcept"}; + case -281470431: /*classifier*/ return new String[] {"CodeableConcept"}; + case 106437350: /*party*/ return new String[] {"Reference"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("name")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.associatedParty.name"); + } + else if (name.equals("role")) { + this.role = new CodeableConcept(); + return this.role; + } + else if (name.equals("classifier")) { + return addClassifier(); + } + else if (name.equals("party")) { + this.party = new Reference(); + return this.party; + } + else + return super.addChild(name); + } + + public ResearchStudyAssociatedPartyComponent copy() { + ResearchStudyAssociatedPartyComponent dst = new ResearchStudyAssociatedPartyComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ResearchStudyAssociatedPartyComponent dst) { + super.copyValues(dst); + dst.name = name == null ? null : name.copy(); + dst.role = role == null ? null : role.copy(); + if (classifier != null) { + dst.classifier = new ArrayList(); + for (CodeableConcept i : classifier) + dst.classifier.add(i.copy()); + }; + dst.party = party == null ? null : party.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ResearchStudyAssociatedPartyComponent)) + return false; + ResearchStudyAssociatedPartyComponent o = (ResearchStudyAssociatedPartyComponent) other_; + return compareDeep(name, o.name, true) && compareDeep(role, o.role, true) && compareDeep(classifier, o.classifier, true) + && compareDeep(party, o.party, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ResearchStudyAssociatedPartyComponent)) + return false; + ResearchStudyAssociatedPartyComponent o = (ResearchStudyAssociatedPartyComponent) other_; + return compareValues(name, o.name, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, role, classifier, party + ); + } + + public String fhirType() { + return "ResearchStudy.associatedParty"; + + } + + } + + @Block() + public static class ResearchStudyStatusDateComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Label for status or state. + */ + @Child(name = "activity", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="Record-Verification | Overall-Study | Primary-Outcome-Data-Collection | Registration-Submission | Registration-Submission-QC | Registration-Posting | Results-Submission | Results-Submission-QC | Results-Posting | Disposition-Submission | Disposition-Submission-QC | Disposition-Posting | Update-Submission | Update-Posting", formalDefinition="Label for status or state." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-statusDate-activity") + protected CodeableConcept activity; + + /** + * Actual if true else anticipated. + */ + @Child(name = "actual", type = {BooleanType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Actual if true else anticipated", formalDefinition="Actual if true else anticipated." ) + protected BooleanType actual; + + /** + * Date range. + */ + @Child(name = "period", type = {Period.class}, order=3, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="Date range", formalDefinition="Date range." ) + protected Period period; + + private static final long serialVersionUID = 1123586924L; + + /** + * Constructor + */ + public ResearchStudyStatusDateComponent() { + super(); + } + + /** + * Constructor + */ + public ResearchStudyStatusDateComponent(CodeableConcept activity, Period period) { + super(); + this.setActivity(activity); + this.setPeriod(period); + } + + /** + * @return {@link #activity} (Label for status or state.) + */ + public CodeableConcept getActivity() { + if (this.activity == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyStatusDateComponent.activity"); + else if (Configuration.doAutoCreate()) + this.activity = new CodeableConcept(); // cc + return this.activity; + } + + public boolean hasActivity() { + return this.activity != null && !this.activity.isEmpty(); + } + + /** + * @param value {@link #activity} (Label for status or state.) + */ + public ResearchStudyStatusDateComponent setActivity(CodeableConcept value) { + this.activity = value; + return this; + } + + /** + * @return {@link #actual} (Actual if true else anticipated.). This is the underlying object with id, value and extensions. The accessor "getActual" gives direct access to the value + */ + public BooleanType getActualElement() { + if (this.actual == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyStatusDateComponent.actual"); + else if (Configuration.doAutoCreate()) + this.actual = new BooleanType(); // bb + return this.actual; + } + + public boolean hasActualElement() { + return this.actual != null && !this.actual.isEmpty(); + } + + public boolean hasActual() { + return this.actual != null && !this.actual.isEmpty(); + } + + /** + * @param value {@link #actual} (Actual if true else anticipated.). This is the underlying object with id, value and extensions. The accessor "getActual" gives direct access to the value + */ + public ResearchStudyStatusDateComponent setActualElement(BooleanType value) { + this.actual = value; + return this; + } + + /** + * @return Actual if true else anticipated. + */ + public boolean getActual() { + return this.actual == null || this.actual.isEmpty() ? false : this.actual.getValue(); + } + + /** + * @param value Actual if true else anticipated. + */ + public ResearchStudyStatusDateComponent setActual(boolean value) { + if (this.actual == null) + this.actual = new BooleanType(); + this.actual.setValue(value); + return this; + } + + /** + * @return {@link #period} (Date range.) + */ + public Period getPeriod() { + if (this.period == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyStatusDateComponent.period"); + else if (Configuration.doAutoCreate()) + this.period = new Period(); // cc + return this.period; + } + + public boolean hasPeriod() { + return this.period != null && !this.period.isEmpty(); + } + + /** + * @param value {@link #period} (Date range.) + */ + public ResearchStudyStatusDateComponent setPeriod(Period value) { + this.period = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("activity", "CodeableConcept", "Label for status or state.", 0, 1, activity)); + children.add(new Property("actual", "boolean", "Actual if true else anticipated.", 0, 1, actual)); + children.add(new Property("period", "Period", "Date range.", 0, 1, period)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -1655966961: /*activity*/ return new Property("activity", "CodeableConcept", "Label for status or state.", 0, 1, activity); + case -1422939762: /*actual*/ return new Property("actual", "boolean", "Actual if true else anticipated.", 0, 1, actual); + case -991726143: /*period*/ return new Property("period", "Period", "Date range.", 0, 1, period); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -1655966961: /*activity*/ return this.activity == null ? new Base[0] : new Base[] {this.activity}; // CodeableConcept + case -1422939762: /*actual*/ return this.actual == null ? new Base[0] : new Base[] {this.actual}; // BooleanType + case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -1655966961: // activity + this.activity = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -1422939762: // actual + this.actual = TypeConvertor.castToBoolean(value); // BooleanType + return value; + case -991726143: // period + this.period = TypeConvertor.castToPeriod(value); // Period + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("activity")) { + this.activity = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("actual")) { + this.actual = TypeConvertor.castToBoolean(value); // BooleanType + } else if (name.equals("period")) { + this.period = TypeConvertor.castToPeriod(value); // Period + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1655966961: return getActivity(); + case -1422939762: return getActualElement(); + case -991726143: return getPeriod(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1655966961: /*activity*/ return new String[] {"CodeableConcept"}; + case -1422939762: /*actual*/ return new String[] {"boolean"}; + case -991726143: /*period*/ return new String[] {"Period"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("activity")) { + this.activity = new CodeableConcept(); + return this.activity; + } + else if (name.equals("actual")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.statusDate.actual"); + } + else if (name.equals("period")) { + this.period = new Period(); + return this.period; + } + else + return super.addChild(name); + } + + public ResearchStudyStatusDateComponent copy() { + ResearchStudyStatusDateComponent dst = new ResearchStudyStatusDateComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ResearchStudyStatusDateComponent dst) { + super.copyValues(dst); + dst.activity = activity == null ? null : activity.copy(); + dst.actual = actual == null ? null : actual.copy(); + dst.period = period == null ? null : period.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ResearchStudyStatusDateComponent)) + return false; + ResearchStudyStatusDateComponent o = (ResearchStudyStatusDateComponent) other_; + return compareDeep(activity, o.activity, true) && compareDeep(actual, o.actual, true) && compareDeep(period, o.period, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ResearchStudyStatusDateComponent)) + return false; + ResearchStudyStatusDateComponent o = (ResearchStudyStatusDateComponent) other_; + return compareValues(actual, o.actual, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(activity, actual, period + ); + } + + public String fhirType() { + return "ResearchStudy.statusDate"; + + } + + } + + @Block() + public static class ResearchStudyRecruitmentComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Estimated total number of participants to be enrolled. + */ + @Child(name = "targetNumber", type = {UnsignedIntType.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Estimated total number of participants to be enrolled", formalDefinition="Estimated total number of participants to be enrolled." ) + protected UnsignedIntType targetNumber; + + /** + * Actual total number of participants enrolled in study. + */ + @Child(name = "actualNumber", type = {UnsignedIntType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Actual total number of participants enrolled in study", formalDefinition="Actual total number of participants enrolled in study." ) + protected UnsignedIntType actualNumber; + + /** + * Inclusion and exclusion criteria. + */ + @Child(name = "eligibility", type = {Group.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Inclusion and exclusion criteria", formalDefinition="Inclusion and exclusion criteria." ) + protected Reference eligibility; + + /** + * Group of participants who were enrolled in study. + */ + @Child(name = "actualGroup", type = {Group.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Group of participants who were enrolled in study", formalDefinition="Group of participants who were enrolled in study." ) + protected Reference actualGroup; + + private static final long serialVersionUID = 1483229827L; + + /** + * Constructor + */ + public ResearchStudyRecruitmentComponent() { + super(); + } + + /** + * @return {@link #targetNumber} (Estimated total number of participants to be enrolled.). This is the underlying object with id, value and extensions. The accessor "getTargetNumber" gives direct access to the value + */ + public UnsignedIntType getTargetNumberElement() { + if (this.targetNumber == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyRecruitmentComponent.targetNumber"); + else if (Configuration.doAutoCreate()) + this.targetNumber = new UnsignedIntType(); // bb + return this.targetNumber; + } + + public boolean hasTargetNumberElement() { + return this.targetNumber != null && !this.targetNumber.isEmpty(); + } + + public boolean hasTargetNumber() { + return this.targetNumber != null && !this.targetNumber.isEmpty(); + } + + /** + * @param value {@link #targetNumber} (Estimated total number of participants to be enrolled.). This is the underlying object with id, value and extensions. The accessor "getTargetNumber" gives direct access to the value + */ + public ResearchStudyRecruitmentComponent setTargetNumberElement(UnsignedIntType value) { + this.targetNumber = value; + return this; + } + + /** + * @return Estimated total number of participants to be enrolled. + */ + public int getTargetNumber() { + return this.targetNumber == null || this.targetNumber.isEmpty() ? 0 : this.targetNumber.getValue(); + } + + /** + * @param value Estimated total number of participants to be enrolled. + */ + public ResearchStudyRecruitmentComponent setTargetNumber(int value) { + if (this.targetNumber == null) + this.targetNumber = new UnsignedIntType(); + this.targetNumber.setValue(value); + return this; + } + + /** + * @return {@link #actualNumber} (Actual total number of participants enrolled in study.). This is the underlying object with id, value and extensions. The accessor "getActualNumber" gives direct access to the value + */ + public UnsignedIntType getActualNumberElement() { + if (this.actualNumber == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyRecruitmentComponent.actualNumber"); + else if (Configuration.doAutoCreate()) + this.actualNumber = new UnsignedIntType(); // bb + return this.actualNumber; + } + + public boolean hasActualNumberElement() { + return this.actualNumber != null && !this.actualNumber.isEmpty(); + } + + public boolean hasActualNumber() { + return this.actualNumber != null && !this.actualNumber.isEmpty(); + } + + /** + * @param value {@link #actualNumber} (Actual total number of participants enrolled in study.). This is the underlying object with id, value and extensions. The accessor "getActualNumber" gives direct access to the value + */ + public ResearchStudyRecruitmentComponent setActualNumberElement(UnsignedIntType value) { + this.actualNumber = value; + return this; + } + + /** + * @return Actual total number of participants enrolled in study. + */ + public int getActualNumber() { + return this.actualNumber == null || this.actualNumber.isEmpty() ? 0 : this.actualNumber.getValue(); + } + + /** + * @param value Actual total number of participants enrolled in study. + */ + public ResearchStudyRecruitmentComponent setActualNumber(int value) { + if (this.actualNumber == null) + this.actualNumber = new UnsignedIntType(); + this.actualNumber.setValue(value); + return this; + } + + /** + * @return {@link #eligibility} (Inclusion and exclusion criteria.) + */ + public Reference getEligibility() { + if (this.eligibility == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyRecruitmentComponent.eligibility"); + else if (Configuration.doAutoCreate()) + this.eligibility = new Reference(); // cc + return this.eligibility; + } + + public boolean hasEligibility() { + return this.eligibility != null && !this.eligibility.isEmpty(); + } + + /** + * @param value {@link #eligibility} (Inclusion and exclusion criteria.) + */ + public ResearchStudyRecruitmentComponent setEligibility(Reference value) { + this.eligibility = value; + return this; + } + + /** + * @return {@link #actualGroup} (Group of participants who were enrolled in study.) + */ + public Reference getActualGroup() { + if (this.actualGroup == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyRecruitmentComponent.actualGroup"); + else if (Configuration.doAutoCreate()) + this.actualGroup = new Reference(); // cc + return this.actualGroup; + } + + public boolean hasActualGroup() { + return this.actualGroup != null && !this.actualGroup.isEmpty(); + } + + /** + * @param value {@link #actualGroup} (Group of participants who were enrolled in study.) + */ + public ResearchStudyRecruitmentComponent setActualGroup(Reference value) { + this.actualGroup = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("targetNumber", "unsignedInt", "Estimated total number of participants to be enrolled.", 0, 1, targetNumber)); + children.add(new Property("actualNumber", "unsignedInt", "Actual total number of participants enrolled in study.", 0, 1, actualNumber)); + children.add(new Property("eligibility", "Reference(Group)", "Inclusion and exclusion criteria.", 0, 1, eligibility)); + children.add(new Property("actualGroup", "Reference(Group)", "Group of participants who were enrolled in study.", 0, 1, actualGroup)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -682948550: /*targetNumber*/ return new Property("targetNumber", "unsignedInt", "Estimated total number of participants to be enrolled.", 0, 1, targetNumber); + case 746557047: /*actualNumber*/ return new Property("actualNumber", "unsignedInt", "Actual total number of participants enrolled in study.", 0, 1, actualNumber); + case -930847859: /*eligibility*/ return new Property("eligibility", "Reference(Group)", "Inclusion and exclusion criteria.", 0, 1, eligibility); + case 1403004305: /*actualGroup*/ return new Property("actualGroup", "Reference(Group)", "Group of participants who were enrolled in study.", 0, 1, actualGroup); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -682948550: /*targetNumber*/ return this.targetNumber == null ? new Base[0] : new Base[] {this.targetNumber}; // UnsignedIntType + case 746557047: /*actualNumber*/ return this.actualNumber == null ? new Base[0] : new Base[] {this.actualNumber}; // UnsignedIntType + case -930847859: /*eligibility*/ return this.eligibility == null ? new Base[0] : new Base[] {this.eligibility}; // Reference + case 1403004305: /*actualGroup*/ return this.actualGroup == null ? new Base[0] : new Base[] {this.actualGroup}; // Reference + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -682948550: // targetNumber + this.targetNumber = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType + return value; + case 746557047: // actualNumber + this.actualNumber = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType + return value; + case -930847859: // eligibility + this.eligibility = TypeConvertor.castToReference(value); // Reference + return value; + case 1403004305: // actualGroup + this.actualGroup = TypeConvertor.castToReference(value); // Reference + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("targetNumber")) { + this.targetNumber = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType + } else if (name.equals("actualNumber")) { + this.actualNumber = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType + } else if (name.equals("eligibility")) { + this.eligibility = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("actualGroup")) { + this.actualGroup = TypeConvertor.castToReference(value); // Reference + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -682948550: return getTargetNumberElement(); + case 746557047: return getActualNumberElement(); + case -930847859: return getEligibility(); + case 1403004305: return getActualGroup(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -682948550: /*targetNumber*/ return new String[] {"unsignedInt"}; + case 746557047: /*actualNumber*/ return new String[] {"unsignedInt"}; + case -930847859: /*eligibility*/ return new String[] {"Reference"}; + case 1403004305: /*actualGroup*/ return new String[] {"Reference"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("targetNumber")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.recruitment.targetNumber"); + } + else if (name.equals("actualNumber")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.recruitment.actualNumber"); + } + else if (name.equals("eligibility")) { + this.eligibility = new Reference(); + return this.eligibility; + } + else if (name.equals("actualGroup")) { + this.actualGroup = new Reference(); + return this.actualGroup; + } + else + return super.addChild(name); + } + + public ResearchStudyRecruitmentComponent copy() { + ResearchStudyRecruitmentComponent dst = new ResearchStudyRecruitmentComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ResearchStudyRecruitmentComponent dst) { + super.copyValues(dst); + dst.targetNumber = targetNumber == null ? null : targetNumber.copy(); + dst.actualNumber = actualNumber == null ? null : actualNumber.copy(); + dst.eligibility = eligibility == null ? null : eligibility.copy(); + dst.actualGroup = actualGroup == null ? null : actualGroup.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ResearchStudyRecruitmentComponent)) + return false; + ResearchStudyRecruitmentComponent o = (ResearchStudyRecruitmentComponent) other_; + return compareDeep(targetNumber, o.targetNumber, true) && compareDeep(actualNumber, o.actualNumber, true) + && compareDeep(eligibility, o.eligibility, true) && compareDeep(actualGroup, o.actualGroup, true) + ; + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ResearchStudyRecruitmentComponent)) + return false; + ResearchStudyRecruitmentComponent o = (ResearchStudyRecruitmentComponent) other_; + return compareValues(targetNumber, o.targetNumber, true) && compareValues(actualNumber, o.actualNumber, true) + ; + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(targetNumber, actualNumber + , eligibility, actualGroup); + } + + public String fhirType() { + return "ResearchStudy.recruitment"; + + } + + } + + @Block() + public static class ResearchStudyComparisonGroupComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Allows the comparisonGroup for the study and the comparisonGroup for the subject to be linked easily. + */ + @Child(name = "identifier", type = {UriType.class, Identifier.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Allows the comparisonGroup for the study and the comparisonGroup for the subject to be linked easily", formalDefinition="Allows the comparisonGroup for the study and the comparisonGroup for the subject to be linked easily." ) + protected DataType identifier; + + /** + * Unique, human-readable label for this comparisonGroup of the study. + */ + @Child(name = "name", type = {StringType.class}, order=2, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="Label for study comparisonGroup", formalDefinition="Unique, human-readable label for this comparisonGroup of the study." ) + protected StringType name; + + /** + * Categorization of study comparisonGroup, e.g. experimental, active comparator, placebo comparater. + */ + @Child(name = "type", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Categorization of study comparisonGroup", formalDefinition="Categorization of study comparisonGroup, e.g. experimental, active comparator, placebo comparater." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-arm-type") + protected CodeableConcept type; + + /** + * A succinct description of the path through the study that would be followed by a subject adhering to this comparisonGroup. + */ + @Child(name = "description", type = {MarkdownType.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Short explanation of study path", formalDefinition="A succinct description of the path through the study that would be followed by a subject adhering to this comparisonGroup." ) + protected MarkdownType description; + + /** + * Interventions or exposures in this comparisonGroup or cohort. + */ + @Child(name = "intendedExposure", type = {EvidenceVariable.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Interventions or exposures in this comparisonGroup or cohort", formalDefinition="Interventions or exposures in this comparisonGroup or cohort." ) + protected List intendedExposure; + + /** + * Group of participants who were enrolled in study comparisonGroup. + */ + @Child(name = "observedGroup", type = {Group.class}, order=6, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Group of participants who were enrolled in study comparisonGroup", formalDefinition="Group of participants who were enrolled in study comparisonGroup." ) + protected Reference observedGroup; + + private static final long serialVersionUID = -600196662L; + + /** + * Constructor + */ + public ResearchStudyComparisonGroupComponent() { + super(); + } + + /** + * Constructor + */ + public ResearchStudyComparisonGroupComponent(String name) { + super(); + this.setName(name); + } + + /** + * @return {@link #identifier} (Allows the comparisonGroup for the study and the comparisonGroup for the subject to be linked easily.) + */ + public DataType getIdentifier() { + return this.identifier; + } + + /** + * @return {@link #identifier} (Allows the comparisonGroup for the study and the comparisonGroup for the subject to be linked easily.) + */ + public UriType getIdentifierUriType() throws FHIRException { + if (this.identifier == null) + this.identifier = new UriType(); + if (!(this.identifier instanceof UriType)) + throw new FHIRException("Type mismatch: the type UriType was expected, but "+this.identifier.getClass().getName()+" was encountered"); + return (UriType) this.identifier; + } + + public boolean hasIdentifierUriType() { + return this != null && this.identifier instanceof UriType; + } + + /** + * @return {@link #identifier} (Allows the comparisonGroup for the study and the comparisonGroup for the subject to be linked easily.) + */ + public Identifier getIdentifierIdentifier() throws FHIRException { + if (this.identifier == null) + this.identifier = new Identifier(); + if (!(this.identifier instanceof Identifier)) + throw new FHIRException("Type mismatch: the type Identifier was expected, but "+this.identifier.getClass().getName()+" was encountered"); + return (Identifier) this.identifier; + } + + public boolean hasIdentifierIdentifier() { + return this != null && this.identifier instanceof Identifier; + } + + public boolean hasIdentifier() { + return this.identifier != null && !this.identifier.isEmpty(); + } + + /** + * @param value {@link #identifier} (Allows the comparisonGroup for the study and the comparisonGroup for the subject to be linked easily.) + */ + public ResearchStudyComparisonGroupComponent setIdentifier(DataType value) { + if (value != null && !(value instanceof UriType || value instanceof Identifier)) + throw new Error("Not the right type for ResearchStudy.comparisonGroup.identifier[x]: "+value.fhirType()); + this.identifier = value; + return this; + } + + /** + * @return {@link #name} (Unique, human-readable label for this comparisonGroup of the study.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public StringType getNameElement() { + if (this.name == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyComparisonGroupComponent.name"); + else if (Configuration.doAutoCreate()) + this.name = new StringType(); // bb + return this.name; + } + + public boolean hasNameElement() { + return this.name != null && !this.name.isEmpty(); + } + + public boolean hasName() { + return this.name != null && !this.name.isEmpty(); + } + + /** + * @param value {@link #name} (Unique, human-readable label for this comparisonGroup of the study.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public ResearchStudyComparisonGroupComponent setNameElement(StringType value) { + this.name = value; + return this; + } + + /** + * @return Unique, human-readable label for this comparisonGroup of the study. + */ + public String getName() { + return this.name == null ? null : this.name.getValue(); + } + + /** + * @param value Unique, human-readable label for this comparisonGroup of the study. + */ + public ResearchStudyComparisonGroupComponent setName(String value) { if (this.name == null) this.name = new StringType(); this.name.setValue(value); @@ -379,12 +1956,12 @@ public class ResearchStudy extends DomainResource { } /** - * @return {@link #type} (Categorization of study arm, e.g. experimental, active comparator, placebo comparater.) + * @return {@link #type} (Categorization of study comparisonGroup, e.g. experimental, active comparator, placebo comparater.) */ public CodeableConcept getType() { if (this.type == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ResearchStudyArmComponent.type"); + throw new Error("Attempt to auto-create ResearchStudyComparisonGroupComponent.type"); else if (Configuration.doAutoCreate()) this.type = new CodeableConcept(); // cc return this.type; @@ -395,22 +1972,22 @@ public class ResearchStudy extends DomainResource { } /** - * @param value {@link #type} (Categorization of study arm, e.g. experimental, active comparator, placebo comparater.) + * @param value {@link #type} (Categorization of study comparisonGroup, e.g. experimental, active comparator, placebo comparater.) */ - public ResearchStudyArmComponent setType(CodeableConcept value) { + public ResearchStudyComparisonGroupComponent setType(CodeableConcept value) { this.type = value; return this; } /** - * @return {@link #description} (A succinct description of the path through the study that would be followed by a subject adhering to this arm.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + * @return {@link #description} (A succinct description of the path through the study that would be followed by a subject adhering to this comparisonGroup.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value */ - public StringType getDescriptionElement() { + public MarkdownType getDescriptionElement() { if (this.description == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ResearchStudyArmComponent.description"); + throw new Error("Attempt to auto-create ResearchStudyComparisonGroupComponent.description"); else if (Configuration.doAutoCreate()) - this.description = new StringType(); // bb + this.description = new MarkdownType(); // bb return this.description; } @@ -423,47 +2000,133 @@ public class ResearchStudy extends DomainResource { } /** - * @param value {@link #description} (A succinct description of the path through the study that would be followed by a subject adhering to this arm.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + * @param value {@link #description} (A succinct description of the path through the study that would be followed by a subject adhering to this comparisonGroup.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value */ - public ResearchStudyArmComponent setDescriptionElement(StringType value) { + public ResearchStudyComparisonGroupComponent setDescriptionElement(MarkdownType value) { this.description = value; return this; } /** - * @return A succinct description of the path through the study that would be followed by a subject adhering to this arm. + * @return A succinct description of the path through the study that would be followed by a subject adhering to this comparisonGroup. */ public String getDescription() { return this.description == null ? null : this.description.getValue(); } /** - * @param value A succinct description of the path through the study that would be followed by a subject adhering to this arm. + * @param value A succinct description of the path through the study that would be followed by a subject adhering to this comparisonGroup. */ - public ResearchStudyArmComponent setDescription(String value) { - if (Utilities.noString(value)) + public ResearchStudyComparisonGroupComponent setDescription(String value) { + if (value == null) this.description = null; else { if (this.description == null) - this.description = new StringType(); + this.description = new MarkdownType(); this.description.setValue(value); } return this; } + /** + * @return {@link #intendedExposure} (Interventions or exposures in this comparisonGroup or cohort.) + */ + public List getIntendedExposure() { + if (this.intendedExposure == null) + this.intendedExposure = new ArrayList(); + return this.intendedExposure; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResearchStudyComparisonGroupComponent setIntendedExposure(List theIntendedExposure) { + this.intendedExposure = theIntendedExposure; + return this; + } + + public boolean hasIntendedExposure() { + if (this.intendedExposure == null) + return false; + for (Reference item : this.intendedExposure) + if (!item.isEmpty()) + return true; + return false; + } + + public Reference addIntendedExposure() { //3 + Reference t = new Reference(); + if (this.intendedExposure == null) + this.intendedExposure = new ArrayList(); + this.intendedExposure.add(t); + return t; + } + + public ResearchStudyComparisonGroupComponent addIntendedExposure(Reference t) { //3 + if (t == null) + return this; + if (this.intendedExposure == null) + this.intendedExposure = new ArrayList(); + this.intendedExposure.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #intendedExposure}, creating it if it does not already exist {3} + */ + public Reference getIntendedExposureFirstRep() { + if (getIntendedExposure().isEmpty()) { + addIntendedExposure(); + } + return getIntendedExposure().get(0); + } + + /** + * @return {@link #observedGroup} (Group of participants who were enrolled in study comparisonGroup.) + */ + public Reference getObservedGroup() { + if (this.observedGroup == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyComparisonGroupComponent.observedGroup"); + else if (Configuration.doAutoCreate()) + this.observedGroup = new Reference(); // cc + return this.observedGroup; + } + + public boolean hasObservedGroup() { + return this.observedGroup != null && !this.observedGroup.isEmpty(); + } + + /** + * @param value {@link #observedGroup} (Group of participants who were enrolled in study comparisonGroup.) + */ + public ResearchStudyComparisonGroupComponent setObservedGroup(Reference value) { + this.observedGroup = value; + return this; + } + protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("name", "string", "Unique, human-readable label for this arm of the study.", 0, 1, name)); - children.add(new Property("type", "CodeableConcept", "Categorization of study arm, e.g. experimental, active comparator, placebo comparater.", 0, 1, type)); - children.add(new Property("description", "string", "A succinct description of the path through the study that would be followed by a subject adhering to this arm.", 0, 1, description)); + children.add(new Property("identifier[x]", "uri|Identifier", "Allows the comparisonGroup for the study and the comparisonGroup for the subject to be linked easily.", 0, 1, identifier)); + children.add(new Property("name", "string", "Unique, human-readable label for this comparisonGroup of the study.", 0, 1, name)); + children.add(new Property("type", "CodeableConcept", "Categorization of study comparisonGroup, e.g. experimental, active comparator, placebo comparater.", 0, 1, type)); + children.add(new Property("description", "markdown", "A succinct description of the path through the study that would be followed by a subject adhering to this comparisonGroup.", 0, 1, description)); + children.add(new Property("intendedExposure", "Reference(EvidenceVariable)", "Interventions or exposures in this comparisonGroup or cohort.", 0, java.lang.Integer.MAX_VALUE, intendedExposure)); + children.add(new Property("observedGroup", "Reference(Group)", "Group of participants who were enrolled in study comparisonGroup.", 0, 1, observedGroup)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 3373707: /*name*/ return new Property("name", "string", "Unique, human-readable label for this arm of the study.", 0, 1, name); - case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Categorization of study arm, e.g. experimental, active comparator, placebo comparater.", 0, 1, type); - case -1724546052: /*description*/ return new Property("description", "string", "A succinct description of the path through the study that would be followed by a subject adhering to this arm.", 0, 1, description); + case 569772855: /*identifier[x]*/ return new Property("identifier[x]", "uri|Identifier", "Allows the comparisonGroup for the study and the comparisonGroup for the subject to be linked easily.", 0, 1, identifier); + case -1618432855: /*identifier*/ return new Property("identifier[x]", "uri|Identifier", "Allows the comparisonGroup for the study and the comparisonGroup for the subject to be linked easily.", 0, 1, identifier); + case 569766915: /*identifierUri*/ return new Property("identifier[x]", "uri", "Allows the comparisonGroup for the study and the comparisonGroup for the subject to be linked easily.", 0, 1, identifier); + case -554289614: /*identifierIdentifier*/ return new Property("identifier[x]", "Identifier", "Allows the comparisonGroup for the study and the comparisonGroup for the subject to be linked easily.", 0, 1, identifier); + case 3373707: /*name*/ return new Property("name", "string", "Unique, human-readable label for this comparisonGroup of the study.", 0, 1, name); + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Categorization of study comparisonGroup, e.g. experimental, active comparator, placebo comparater.", 0, 1, type); + case -1724546052: /*description*/ return new Property("description", "markdown", "A succinct description of the path through the study that would be followed by a subject adhering to this comparisonGroup.", 0, 1, description); + case -407218606: /*intendedExposure*/ return new Property("intendedExposure", "Reference(EvidenceVariable)", "Interventions or exposures in this comparisonGroup or cohort.", 0, java.lang.Integer.MAX_VALUE, intendedExposure); + case 375599255: /*observedGroup*/ return new Property("observedGroup", "Reference(Group)", "Group of participants who were enrolled in study comparisonGroup.", 0, 1, observedGroup); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -472,9 +2135,12 @@ public class ResearchStudy extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { + case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // DataType case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept - case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType + case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType + case -407218606: /*intendedExposure*/ return this.intendedExposure == null ? new Base[0] : this.intendedExposure.toArray(new Base[this.intendedExposure.size()]); // Reference + case 375599255: /*observedGroup*/ return this.observedGroup == null ? new Base[0] : new Base[] {this.observedGroup}; // Reference default: return super.getProperty(hash, name, checkValid); } @@ -483,6 +2149,9 @@ public class ResearchStudy extends DomainResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { + case -1618432855: // identifier + this.identifier = TypeConvertor.castToType(value); // DataType + return value; case 3373707: // name this.name = TypeConvertor.castToString(value); // StringType return value; @@ -490,7 +2159,13 @@ public class ResearchStudy extends DomainResource { this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; case -1724546052: // description - this.description = TypeConvertor.castToString(value); // StringType + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + case -407218606: // intendedExposure + this.getIntendedExposure().add(TypeConvertor.castToReference(value)); // Reference + return value; + case 375599255: // observedGroup + this.observedGroup = TypeConvertor.castToReference(value); // Reference return value; default: return super.setProperty(hash, name, value); } @@ -499,12 +2174,18 @@ public class ResearchStudy extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("name")) { + if (name.equals("identifier[x]")) { + this.identifier = TypeConvertor.castToType(value); // DataType + } else if (name.equals("name")) { this.name = TypeConvertor.castToString(value); // StringType } else if (name.equals("type")) { this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("description")) { - this.description = TypeConvertor.castToString(value); // StringType + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("intendedExposure")) { + this.getIntendedExposure().add(TypeConvertor.castToReference(value)); + } else if (name.equals("observedGroup")) { + this.observedGroup = TypeConvertor.castToReference(value); // Reference } else return super.setProperty(name, value); return value; @@ -513,9 +2194,13 @@ public class ResearchStudy extends DomainResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { + case 569772855: return getIdentifier(); + case -1618432855: return getIdentifier(); case 3373707: return getNameElement(); case 3575610: return getType(); case -1724546052: return getDescriptionElement(); + case -407218606: return addIntendedExposure(); + case 375599255: return getObservedGroup(); default: return super.makeProperty(hash, name); } @@ -524,9 +2209,12 @@ public class ResearchStudy extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { + case -1618432855: /*identifier*/ return new String[] {"uri", "Identifier"}; case 3373707: /*name*/ return new String[] {"string"}; case 3575610: /*type*/ return new String[] {"CodeableConcept"}; - case -1724546052: /*description*/ return new String[] {"string"}; + case -1724546052: /*description*/ return new String[] {"markdown"}; + case -407218606: /*intendedExposure*/ return new String[] {"Reference"}; + case 375599255: /*observedGroup*/ return new String[] {"Reference"}; default: return super.getTypesForProperty(hash, name); } @@ -534,61 +2222,84 @@ public class ResearchStudy extends DomainResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("name")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.arm.name"); + if (name.equals("identifierUri")) { + this.identifier = new UriType(); + return this.identifier; + } + else if (name.equals("identifierIdentifier")) { + this.identifier = new Identifier(); + return this.identifier; + } + else if (name.equals("name")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.comparisonGroup.name"); } else if (name.equals("type")) { this.type = new CodeableConcept(); return this.type; } else if (name.equals("description")) { - throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.arm.description"); + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.comparisonGroup.description"); + } + else if (name.equals("intendedExposure")) { + return addIntendedExposure(); + } + else if (name.equals("observedGroup")) { + this.observedGroup = new Reference(); + return this.observedGroup; } else return super.addChild(name); } - public ResearchStudyArmComponent copy() { - ResearchStudyArmComponent dst = new ResearchStudyArmComponent(); + public ResearchStudyComparisonGroupComponent copy() { + ResearchStudyComparisonGroupComponent dst = new ResearchStudyComparisonGroupComponent(); copyValues(dst); return dst; } - public void copyValues(ResearchStudyArmComponent dst) { + public void copyValues(ResearchStudyComparisonGroupComponent dst) { super.copyValues(dst); + dst.identifier = identifier == null ? null : identifier.copy(); dst.name = name == null ? null : name.copy(); dst.type = type == null ? null : type.copy(); dst.description = description == null ? null : description.copy(); + if (intendedExposure != null) { + dst.intendedExposure = new ArrayList(); + for (Reference i : intendedExposure) + dst.intendedExposure.add(i.copy()); + }; + dst.observedGroup = observedGroup == null ? null : observedGroup.copy(); } @Override public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof ResearchStudyArmComponent)) + if (!(other_ instanceof ResearchStudyComparisonGroupComponent)) return false; - ResearchStudyArmComponent o = (ResearchStudyArmComponent) other_; - return compareDeep(name, o.name, true) && compareDeep(type, o.type, true) && compareDeep(description, o.description, true) - ; + ResearchStudyComparisonGroupComponent o = (ResearchStudyComparisonGroupComponent) other_; + return compareDeep(identifier, o.identifier, true) && compareDeep(name, o.name, true) && compareDeep(type, o.type, true) + && compareDeep(description, o.description, true) && compareDeep(intendedExposure, o.intendedExposure, true) + && compareDeep(observedGroup, o.observedGroup, true); } @Override public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof ResearchStudyArmComponent)) + if (!(other_ instanceof ResearchStudyComparisonGroupComponent)) return false; - ResearchStudyArmComponent o = (ResearchStudyArmComponent) other_; + ResearchStudyComparisonGroupComponent o = (ResearchStudyComparisonGroupComponent) other_; return compareValues(name, o.name, true) && compareValues(description, o.description, true); } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, type, description - ); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, name, type, description + , intendedExposure, observedGroup); } public String fhirType() { - return "ResearchStudy.arm"; + return "ResearchStudy.comparisonGroup"; } @@ -611,7 +2322,14 @@ public class ResearchStudy extends DomainResource { @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-objective-type") protected CodeableConcept type; - private static final long serialVersionUID = -1935215997L; + /** + * Free text description of the objective of the study. This is what the study is trying to achieve rather than how it is going to achieve it (see ResearchStudy.description). + */ + @Child(name = "description", type = {MarkdownType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Description of the objective", formalDefinition="Free text description of the objective of the study. This is what the study is trying to achieve rather than how it is going to achieve it (see ResearchStudy.description)." ) + protected MarkdownType description; + + private static final long serialVersionUID = -1976083810L; /** * Constructor @@ -693,10 +2411,60 @@ public class ResearchStudy extends DomainResource { return this; } + /** + * @return {@link #description} (Free text description of the objective of the study. This is what the study is trying to achieve rather than how it is going to achieve it (see ResearchStudy.description).). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public MarkdownType getDescriptionElement() { + if (this.description == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyObjectiveComponent.description"); + else if (Configuration.doAutoCreate()) + this.description = new MarkdownType(); // bb + return this.description; + } + + public boolean hasDescriptionElement() { + return this.description != null && !this.description.isEmpty(); + } + + public boolean hasDescription() { + return this.description != null && !this.description.isEmpty(); + } + + /** + * @param value {@link #description} (Free text description of the objective of the study. This is what the study is trying to achieve rather than how it is going to achieve it (see ResearchStudy.description).). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public ResearchStudyObjectiveComponent setDescriptionElement(MarkdownType value) { + this.description = value; + return this; + } + + /** + * @return Free text description of the objective of the study. This is what the study is trying to achieve rather than how it is going to achieve it (see ResearchStudy.description). + */ + public String getDescription() { + return this.description == null ? null : this.description.getValue(); + } + + /** + * @param value Free text description of the objective of the study. This is what the study is trying to achieve rather than how it is going to achieve it (see ResearchStudy.description). + */ + public ResearchStudyObjectiveComponent setDescription(String value) { + if (value == null) + this.description = null; + else { + if (this.description == null) + this.description = new MarkdownType(); + this.description.setValue(value); + } + return this; + } + protected void listChildren(List children) { super.listChildren(children); children.add(new Property("name", "string", "Unique, human-readable label for this objective of the study.", 0, 1, name)); children.add(new Property("type", "CodeableConcept", "The kind of study objective.", 0, 1, type)); + children.add(new Property("description", "markdown", "Free text description of the objective of the study. This is what the study is trying to achieve rather than how it is going to achieve it (see ResearchStudy.description).", 0, 1, description)); } @Override @@ -704,6 +2472,7 @@ public class ResearchStudy extends DomainResource { switch (_hash) { case 3373707: /*name*/ return new Property("name", "string", "Unique, human-readable label for this objective of the study.", 0, 1, name); case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The kind of study objective.", 0, 1, type); + case -1724546052: /*description*/ return new Property("description", "markdown", "Free text description of the objective of the study. This is what the study is trying to achieve rather than how it is going to achieve it (see ResearchStudy.description).", 0, 1, description); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -714,6 +2483,7 @@ public class ResearchStudy extends DomainResource { switch (hash) { case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType default: return super.getProperty(hash, name, checkValid); } @@ -728,6 +2498,9 @@ public class ResearchStudy extends DomainResource { case 3575610: // type this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; + case -1724546052: // description + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; default: return super.setProperty(hash, name, value); } @@ -739,6 +2512,8 @@ public class ResearchStudy extends DomainResource { this.name = TypeConvertor.castToString(value); // StringType } else if (name.equals("type")) { this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("description")) { + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType } else return super.setProperty(name, value); return value; @@ -749,6 +2524,7 @@ public class ResearchStudy extends DomainResource { switch (hash) { case 3373707: return getNameElement(); case 3575610: return getType(); + case -1724546052: return getDescriptionElement(); default: return super.makeProperty(hash, name); } @@ -759,6 +2535,7 @@ public class ResearchStudy extends DomainResource { switch (hash) { case 3373707: /*name*/ return new String[] {"string"}; case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case -1724546052: /*description*/ return new String[] {"markdown"}; default: return super.getTypesForProperty(hash, name); } @@ -773,6 +2550,9 @@ public class ResearchStudy extends DomainResource { this.type = new CodeableConcept(); return this.type; } + else if (name.equals("description")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.objective.description"); + } else return super.addChild(name); } @@ -787,6 +2567,7 @@ public class ResearchStudy extends DomainResource { super.copyValues(dst); dst.name = name == null ? null : name.copy(); dst.type = type == null ? null : type.copy(); + dst.description = description == null ? null : description.copy(); } @Override @@ -796,7 +2577,8 @@ public class ResearchStudy extends DomainResource { if (!(other_ instanceof ResearchStudyObjectiveComponent)) return false; ResearchStudyObjectiveComponent o = (ResearchStudyObjectiveComponent) other_; - return compareDeep(name, o.name, true) && compareDeep(type, o.type, true); + return compareDeep(name, o.name, true) && compareDeep(type, o.type, true) && compareDeep(description, o.description, true) + ; } @Override @@ -806,11 +2588,12 @@ public class ResearchStudy extends DomainResource { if (!(other_ instanceof ResearchStudyObjectiveComponent)) return false; ResearchStudyObjectiveComponent o = (ResearchStudyObjectiveComponent) other_; - return compareValues(name, o.name, true); + return compareValues(name, o.name, true) && compareValues(description, o.description, true); } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, type); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, type, description + ); } public String fhirType() { @@ -820,54 +2603,702 @@ public class ResearchStudy extends DomainResource { } + @Block() + public static class ResearchStudyOutcomeMeasureComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Label for the outcome. + */ + @Child(name = "name", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Label for the outcome", formalDefinition="Label for the outcome." ) + protected StringType name; + + /** + * The parameter or characteristic being assessed as one of the values by which the study is assessed. + */ + @Child(name = "type", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="primary | secondary | exploratory", formalDefinition="The parameter or characteristic being assessed as one of the values by which the study is assessed." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-objective-type") + protected List type; + + /** + * Description of the outcome. + */ + @Child(name = "description", type = {MarkdownType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Description of the outcome", formalDefinition="Description of the outcome." ) + protected MarkdownType description; + + /** + * Structured outcome definition. + */ + @Child(name = "reference", type = {EvidenceVariable.class}, order=4, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Structured outcome definition", formalDefinition="Structured outcome definition." ) + protected Reference reference; + + private static final long serialVersionUID = 1786559672L; + + /** + * Constructor + */ + public ResearchStudyOutcomeMeasureComponent() { + super(); + } + + /** + * @return {@link #name} (Label for the outcome.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public StringType getNameElement() { + if (this.name == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyOutcomeMeasureComponent.name"); + else if (Configuration.doAutoCreate()) + this.name = new StringType(); // bb + return this.name; + } + + public boolean hasNameElement() { + return this.name != null && !this.name.isEmpty(); + } + + public boolean hasName() { + return this.name != null && !this.name.isEmpty(); + } + + /** + * @param value {@link #name} (Label for the outcome.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public ResearchStudyOutcomeMeasureComponent setNameElement(StringType value) { + this.name = value; + return this; + } + + /** + * @return Label for the outcome. + */ + public String getName() { + return this.name == null ? null : this.name.getValue(); + } + + /** + * @param value Label for the outcome. + */ + public ResearchStudyOutcomeMeasureComponent setName(String value) { + if (Utilities.noString(value)) + this.name = null; + else { + if (this.name == null) + this.name = new StringType(); + this.name.setValue(value); + } + return this; + } + + /** + * @return {@link #type} (The parameter or characteristic being assessed as one of the values by which the study is assessed.) + */ + public List getType() { + if (this.type == null) + this.type = new ArrayList(); + return this.type; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResearchStudyOutcomeMeasureComponent setType(List theType) { + this.type = theType; + return this; + } + + public boolean hasType() { + if (this.type == null) + return false; + for (CodeableConcept item : this.type) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addType() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.type == null) + this.type = new ArrayList(); + this.type.add(t); + return t; + } + + public ResearchStudyOutcomeMeasureComponent addType(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.type == null) + this.type = new ArrayList(); + this.type.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #type}, creating it if it does not already exist {3} + */ + public CodeableConcept getTypeFirstRep() { + if (getType().isEmpty()) { + addType(); + } + return getType().get(0); + } + + /** + * @return {@link #description} (Description of the outcome.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public MarkdownType getDescriptionElement() { + if (this.description == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyOutcomeMeasureComponent.description"); + else if (Configuration.doAutoCreate()) + this.description = new MarkdownType(); // bb + return this.description; + } + + public boolean hasDescriptionElement() { + return this.description != null && !this.description.isEmpty(); + } + + public boolean hasDescription() { + return this.description != null && !this.description.isEmpty(); + } + + /** + * @param value {@link #description} (Description of the outcome.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + */ + public ResearchStudyOutcomeMeasureComponent setDescriptionElement(MarkdownType value) { + this.description = value; + return this; + } + + /** + * @return Description of the outcome. + */ + public String getDescription() { + return this.description == null ? null : this.description.getValue(); + } + + /** + * @param value Description of the outcome. + */ + public ResearchStudyOutcomeMeasureComponent setDescription(String value) { + if (value == null) + this.description = null; + else { + if (this.description == null) + this.description = new MarkdownType(); + this.description.setValue(value); + } + return this; + } + + /** + * @return {@link #reference} (Structured outcome definition.) + */ + public Reference getReference() { + if (this.reference == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyOutcomeMeasureComponent.reference"); + else if (Configuration.doAutoCreate()) + this.reference = new Reference(); // cc + return this.reference; + } + + public boolean hasReference() { + return this.reference != null && !this.reference.isEmpty(); + } + + /** + * @param value {@link #reference} (Structured outcome definition.) + */ + public ResearchStudyOutcomeMeasureComponent setReference(Reference value) { + this.reference = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("name", "string", "Label for the outcome.", 0, 1, name)); + children.add(new Property("type", "CodeableConcept", "The parameter or characteristic being assessed as one of the values by which the study is assessed.", 0, java.lang.Integer.MAX_VALUE, type)); + children.add(new Property("description", "markdown", "Description of the outcome.", 0, 1, description)); + children.add(new Property("reference", "Reference(EvidenceVariable)", "Structured outcome definition.", 0, 1, reference)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3373707: /*name*/ return new Property("name", "string", "Label for the outcome.", 0, 1, name); + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The parameter or characteristic being assessed as one of the values by which the study is assessed.", 0, java.lang.Integer.MAX_VALUE, type); + case -1724546052: /*description*/ return new Property("description", "markdown", "Description of the outcome.", 0, 1, description); + case -925155509: /*reference*/ return new Property("reference", "Reference(EvidenceVariable)", "Structured outcome definition.", 0, 1, reference); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType + case 3575610: /*type*/ return this.type == null ? new Base[0] : this.type.toArray(new Base[this.type.size()]); // CodeableConcept + case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType + case -925155509: /*reference*/ return this.reference == null ? new Base[0] : new Base[] {this.reference}; // Reference + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3373707: // name + this.name = TypeConvertor.castToString(value); // StringType + return value; + case 3575610: // type + this.getType().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + case -1724546052: // description + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; + case -925155509: // reference + this.reference = TypeConvertor.castToReference(value); // Reference + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("name")) { + this.name = TypeConvertor.castToString(value); // StringType + } else if (name.equals("type")) { + this.getType().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("description")) { + this.description = TypeConvertor.castToMarkdown(value); // MarkdownType + } else if (name.equals("reference")) { + this.reference = TypeConvertor.castToReference(value); // Reference + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3373707: return getNameElement(); + case 3575610: return addType(); + case -1724546052: return getDescriptionElement(); + case -925155509: return getReference(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3373707: /*name*/ return new String[] {"string"}; + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case -1724546052: /*description*/ return new String[] {"markdown"}; + case -925155509: /*reference*/ return new String[] {"Reference"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("name")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.outcomeMeasure.name"); + } + else if (name.equals("type")) { + return addType(); + } + else if (name.equals("description")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.outcomeMeasure.description"); + } + else if (name.equals("reference")) { + this.reference = new Reference(); + return this.reference; + } + else + return super.addChild(name); + } + + public ResearchStudyOutcomeMeasureComponent copy() { + ResearchStudyOutcomeMeasureComponent dst = new ResearchStudyOutcomeMeasureComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ResearchStudyOutcomeMeasureComponent dst) { + super.copyValues(dst); + dst.name = name == null ? null : name.copy(); + if (type != null) { + dst.type = new ArrayList(); + for (CodeableConcept i : type) + dst.type.add(i.copy()); + }; + dst.description = description == null ? null : description.copy(); + dst.reference = reference == null ? null : reference.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ResearchStudyOutcomeMeasureComponent)) + return false; + ResearchStudyOutcomeMeasureComponent o = (ResearchStudyOutcomeMeasureComponent) other_; + return compareDeep(name, o.name, true) && compareDeep(type, o.type, true) && compareDeep(description, o.description, true) + && compareDeep(reference, o.reference, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ResearchStudyOutcomeMeasureComponent)) + return false; + ResearchStudyOutcomeMeasureComponent o = (ResearchStudyOutcomeMeasureComponent) other_; + return compareValues(name, o.name, true) && compareValues(description, o.description, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, type, description + , reference); + } + + public String fhirType() { + return "ResearchStudy.outcomeMeasure"; + + } + + } + + @Block() + public static class ResearchStudyWebLocationComponent extends BackboneElement implements IBaseBackboneElement { + /** + * Describes the nature of the location being specified. + */ + @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="registry-page|recruitment-page|contact-page", formalDefinition="Describes the nature of the location being specified." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-url-type") + protected CodeableConcept type; + + /** + * The location address. + */ + @Child(name = "url", type = {UriType.class}, order=2, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The location address", formalDefinition="The location address." ) + protected UriType url; + + private static final long serialVersionUID = 397204034L; + + /** + * Constructor + */ + public ResearchStudyWebLocationComponent() { + super(); + } + + /** + * Constructor + */ + public ResearchStudyWebLocationComponent(String url) { + super(); + this.setUrl(url); + } + + /** + * @return {@link #type} (Describes the nature of the location being specified.) + */ + public CodeableConcept getType() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyWebLocationComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new CodeableConcept(); // cc + return this.type; + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (Describes the nature of the location being specified.) + */ + public ResearchStudyWebLocationComponent setType(CodeableConcept value) { + this.type = value; + return this; + } + + /** + * @return {@link #url} (The location address.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value + */ + public UriType getUrlElement() { + if (this.url == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudyWebLocationComponent.url"); + else if (Configuration.doAutoCreate()) + this.url = new UriType(); // bb + return this.url; + } + + public boolean hasUrlElement() { + return this.url != null && !this.url.isEmpty(); + } + + public boolean hasUrl() { + return this.url != null && !this.url.isEmpty(); + } + + /** + * @param value {@link #url} (The location address.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value + */ + public ResearchStudyWebLocationComponent setUrlElement(UriType value) { + this.url = value; + return this; + } + + /** + * @return The location address. + */ + public String getUrl() { + return this.url == null ? null : this.url.getValue(); + } + + /** + * @param value The location address. + */ + public ResearchStudyWebLocationComponent setUrl(String value) { + if (this.url == null) + this.url = new UriType(); + this.url.setValue(value); + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("type", "CodeableConcept", "Describes the nature of the location being specified.", 0, 1, type)); + children.add(new Property("url", "uri", "The location address.", 0, 1, url)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Describes the nature of the location being specified.", 0, 1, type); + case 116079: /*url*/ return new Property("url", "uri", "The location address.", 0, 1, url); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3575610: // type + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 116079: // url + this.url = TypeConvertor.castToUri(value); // UriType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("url")) { + this.url = TypeConvertor.castToUri(value); // UriType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: return getType(); + case 116079: return getUrlElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case 116079: /*url*/ return new String[] {"uri"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("type")) { + this.type = new CodeableConcept(); + return this.type; + } + else if (name.equals("url")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.webLocation.url"); + } + else + return super.addChild(name); + } + + public ResearchStudyWebLocationComponent copy() { + ResearchStudyWebLocationComponent dst = new ResearchStudyWebLocationComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ResearchStudyWebLocationComponent dst) { + super.copyValues(dst); + dst.type = type == null ? null : type.copy(); + dst.url = url == null ? null : url.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ResearchStudyWebLocationComponent)) + return false; + ResearchStudyWebLocationComponent o = (ResearchStudyWebLocationComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(url, o.url, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ResearchStudyWebLocationComponent)) + return false; + ResearchStudyWebLocationComponent o = (ResearchStudyWebLocationComponent) other_; + return compareValues(url, o.url, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, url); + } + + public String fhirType() { + return "ResearchStudy.webLocation"; + + } + + } + + /** + * Canonical identifier for this study resource, represented as a globally unique URI. + */ + @Child(name = "url", type = {UriType.class}, order=0, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Canonical identifier for this study resource", formalDefinition="Canonical identifier for this study resource, represented as a globally unique URI." ) + protected UriType url; + /** * Identifiers assigned to this research study by the sponsor or other systems. */ - @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Business Identifier for study", formalDefinition="Identifiers assigned to this research study by the sponsor or other systems." ) protected List identifier; /** - * A short, descriptive user-friendly label for the study. + * Business identifier for the study record. */ - @Child(name = "title", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Name for this study", formalDefinition="A short, descriptive user-friendly label for the study." ) + @Child(name = "version", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Business identifier for the study record", formalDefinition="Business identifier for the study record." ) + protected StringType version; + + /** + * Name for this study (computer friendly). + */ + @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Name for this study (computer friendly)", formalDefinition="Name for this study (computer friendly)." ) + protected StringType name; + + /** + * A short, descriptive label for the study particularly for compouter use. + */ + @Child(name = "title", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Name for this study (for computers)", formalDefinition="A short, descriptive label for the study particularly for compouter use." ) protected StringType title; + /** + * Additional names for the study. + */ + @Child(name = "label", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Additional names for the study", formalDefinition="Additional names for the study." ) + protected List label; + /** * The set of steps expected to be performed as part of the execution of the study. */ - @Child(name = "protocol", type = {PlanDefinition.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "protocol", type = {PlanDefinition.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Steps followed in executing study", formalDefinition="The set of steps expected to be performed as part of the execution of the study." ) protected List protocol; /** * A larger research study of which this particular study is a component or step. */ - @Child(name = "partOf", type = {ResearchStudy.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "partOf", type = {ResearchStudy.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Part of larger study", formalDefinition="A larger research study of which this particular study is a component or step." ) protected List partOf; /** - * The current state of the study. + * Citations, references and other related documents. */ - @Child(name = "status", type = {CodeType.class}, order=4, min=1, max=1, modifier=true, summary=true) - @Description(shortDefinition="active | administratively-completed | approved | closed-to-accrual | closed-to-accrual-and-intervention | completed | disapproved | in-review | temporarily-closed-to-accrual | temporarily-closed-to-accrual-and-intervention | withdrawn", formalDefinition="The current state of the study." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-status") - protected Enumeration status; + @Child(name = "relatedArtifact", type = {RelatedArtifact.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="References and dependencies", formalDefinition="Citations, references and other related documents." ) + protected List relatedArtifact; /** - * The type of study based upon the intent of the study's activities. A classification of the intent of the study. + * Date the resource last changed. */ - @Child(name = "primaryPurposeType", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="treatment | prevention | diagnostic | supportive-care | screening | health-services-research | basic-science | device-feasibility", formalDefinition="The type of study based upon the intent of the study's activities. A classification of the intent of the study." ) + @Child(name = "date", type = {DateTimeType.class}, order=9, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Date the resource last changed", formalDefinition="Date the resource last changed." ) + protected DateTimeType date; + + /** + * The publication state of the resource (not of the study). + */ + @Child(name = "status", type = {CodeType.class}, order=10, min=1, max=1, modifier=true, summary=true) + @Description(shortDefinition="draft | active | retired | unknown", formalDefinition="The publication state of the resource (not of the study)." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/publication-status") + protected Enumeration status; + + /** + * The type of study based upon the intent of the study activities. A classification of the intent of the study. + */ + @Child(name = "primaryPurposeType", type = {CodeableConcept.class}, order=11, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="treatment | prevention | diagnostic | supportive-care | screening | health-services-research | basic-science | device-feasibility", formalDefinition="The type of study based upon the intent of the study activities. A classification of the intent of the study." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-prim-purp-type") protected CodeableConcept primaryPurposeType; /** * The stage in the progression of a therapy from initial experimental use in humans in clinical trials to post-market evaluation. */ - @Child(name = "phase", type = {CodeableConcept.class}, order=6, min=0, max=1, modifier=false, summary=true) + @Child(name = "phase", type = {CodeableConcept.class}, order=12, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="n-a | early-phase-1 | phase-1 | phase-1-phase-2 | phase-2 | phase-2-phase-3 | phase-3 | phase-4", formalDefinition="The stage in the progression of a therapy from initial experimental use in humans in clinical trials to post-market evaluation." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-phase") protected CodeableConcept phase; @@ -875,126 +3306,176 @@ public class ResearchStudy extends DomainResource { /** * Codes categorizing the type of study such as investigational vs. observational, type of blinding, type of randomization, safety vs. efficacy, etc. */ - @Child(name = "category", type = {CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "category", type = {CodeableConcept.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Classifications for the study", formalDefinition="Codes categorizing the type of study such as investigational vs. observational, type of blinding, type of randomization, safety vs. efficacy, etc." ) protected List category; /** * The medication(s), food(s), therapy(ies), device(s) or other concerns or interventions that the study is seeking to gain more information about. */ - @Child(name = "focus", type = {CodeableConcept.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "focus", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Drugs, devices, etc. under study", formalDefinition="The medication(s), food(s), therapy(ies), device(s) or other concerns or interventions that the study is seeking to gain more information about." ) - protected List focus; + protected List focus; /** * The condition that is the focus of the study. For example, In a study to examine risk factors for Lupus, might have as an inclusion criterion "healthy volunteer", but the target condition code would be a Lupus SNOMED code. */ - @Child(name = "condition", type = {CodeableConcept.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "condition", type = {CodeableConcept.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Condition being studied", formalDefinition="The condition that is the focus of the study. For example, In a study to examine risk factors for Lupus, might have as an inclusion criterion \"healthy volunteer\", but the target condition code would be a Lupus SNOMED code." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-code") protected List condition; - /** - * Contact details to assist a user in learning more about or engaging with the study. - */ - @Child(name = "contact", type = {ContactDetail.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Contact details for the study", formalDefinition="Contact details to assist a user in learning more about or engaging with the study." ) - protected List contact; - - /** - * Citations, references and other related documents. - */ - @Child(name = "relatedArtifact", type = {RelatedArtifact.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) - @Description(shortDefinition="References and dependencies", formalDefinition="Citations, references and other related documents." ) - protected List relatedArtifact; - /** * Key terms to aid in searching for or filtering the study. */ - @Child(name = "keyword", type = {CodeableConcept.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "keyword", type = {CodeableConcept.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Used to search for the study", formalDefinition="Key terms to aid in searching for or filtering the study." ) protected List keyword; /** * Indicates a country, state or other region where the study is taking place. */ - @Child(name = "location", type = {CodeableConcept.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "location", type = {CodeableConcept.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Geographic region(s) for study", formalDefinition="Indicates a country, state or other region where the study is taking place." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/jurisdiction") protected List location; /** - * A full description of how the study is being conducted. + * A brief summary of the study description. */ - @Child(name = "description", type = {MarkdownType.class}, order=14, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="What this is study doing", formalDefinition="A full description of how the study is being conducted." ) - protected MarkdownType description; + @Child(name = "descriptionSummary", type = {MarkdownType.class}, order=18, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="A brief summary of the study description", formalDefinition="A brief summary of the study description." ) + protected MarkdownType descriptionSummary; /** - * Reference to a Group that defines the criteria for and quantity of subjects participating in the study. E.g. " 200 female Europeans between the ages of 20 and 45 with early onset diabetes". + * A full description of how the study is being conducted. For a description of what the study objectives are see ResearchStudy.objective.description. */ - @Child(name = "enrollment", type = {Group.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Inclusion & exclusion criteria", formalDefinition="Reference to a Group that defines the criteria for and quantity of subjects participating in the study. E.g. \" 200 female Europeans between the ages of 20 and 45 with early onset diabetes\"." ) - protected List enrollment; + @Child(name = "description", type = {MarkdownType.class}, order=19, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="What this is study doing", formalDefinition="A full description of how the study is being conducted. For a description of what the study objectives are see ResearchStudy.objective.description." ) + protected MarkdownType description; /** * Identifies the start date and the expected (or actual, depending on status) end date for the study. */ - @Child(name = "period", type = {Period.class}, order=16, min=0, max=1, modifier=false, summary=true) + @Child(name = "period", type = {Period.class}, order=20, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="When the study began and ended", formalDefinition="Identifies the start date and the expected (or actual, depending on status) end date for the study." ) protected Period period; + /** + * Contact details to assist a user in learning more about or engaging with the study. + */ + @Child(name = "contact", type = {ContactDetail.class}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Contact details for the study", formalDefinition="Contact details to assist a user in learning more about or engaging with the study." ) + protected List contact; + /** * An organization that initiates the investigation and is legally responsible for the study. */ - @Child(name = "sponsor", type = {Organization.class}, order=17, min=0, max=1, modifier=false, summary=true) + @Child(name = "sponsor", type = {Organization.class}, order=22, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Organization that initiates and is legally responsible for the study", formalDefinition="An organization that initiates the investigation and is legally responsible for the study." ) protected Reference sponsor; /** * A researcher in a study who oversees multiple aspects of the study, such as concept development, protocol writing, protocol submission for IRB approval, participant recruitment, informed consent, data collection, analysis, interpretation and presentation. */ - @Child(name = "principalInvestigator", type = {Practitioner.class, PractitionerRole.class}, order=18, min=0, max=1, modifier=false, summary=true) + @Child(name = "principalInvestigator", type = {Practitioner.class, PractitionerRole.class}, order=23, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Researcher who oversees multiple aspects of the study", formalDefinition="A researcher in a study who oversees multiple aspects of the study, such as concept development, protocol writing, protocol submission for IRB approval, participant recruitment, informed consent, data collection, analysis, interpretation and presentation." ) protected Reference principalInvestigator; /** * A facility in which study activities are conducted. */ - @Child(name = "site", type = {Location.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "site", type = {Location.class, ResearchStudy.class, Organization.class}, order=24, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Facility where study activities are conducted", formalDefinition="A facility in which study activities are conducted." ) protected List site; - /** - * A description and/or code explaining the premature termination of the study. - */ - @Child(name = "reasonStopped", type = {CodeableConcept.class}, order=20, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="accrual-goal-met | closed-due-to-toxicity | closed-due-to-lack-of-study-progress | temporarily-closed-per-study-design", formalDefinition="A description and/or code explaining the premature termination of the study." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-reason-stopped") - protected CodeableConcept reasonStopped; - /** * Comments made about the study by the performer, 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=25, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Comments made about the study", formalDefinition="Comments made about the study by the performer, subject or other participants." ) protected List note; + /** + * Classification for the study. + */ + @Child(name = "classification", type = {}, order=26, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Classification for the study", formalDefinition="Classification for the study." ) + protected List classification; + + /** + * Sponsors, collaborators, and other parties. + */ + @Child(name = "associatedParty", type = {}, order=27, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Sponsors, collaborators, and other parties", formalDefinition="Sponsors, collaborators, and other parties." ) + protected List associatedParty; + + /** + * Current status of the study. + */ + @Child(name = "currentState", type = {CodeableConcept.class}, order=28, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="active | administratively-completed | approved | closed-to-accrual | closed-to-accrual-and-intervention | completed | disapproved | in-review | temporarily-closed-to-accrual | temporarily-closed-to-accrual-and-intervention | withdrawn", formalDefinition="Current status of the study." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-status") + protected List currentState; + + /** + * Status of study with time for that status. + */ + @Child(name = "statusDate", type = {}, order=29, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Status of study with time for that status", formalDefinition="Status of study with time for that status." ) + protected List statusDate; + + /** + * A description and/or code explaining the premature termination of the study. + */ + @Child(name = "whyStopped", type = {CodeableConcept.class}, order=30, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="accrual-goal-met | closed-due-to-toxicity | closed-due-to-lack-of-study-progress | temporarily-closed-per-study-design", formalDefinition="A description and/or code explaining the premature termination of the study." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-study-reason-stopped") + protected CodeableConcept whyStopped; + + /** + * Target or actual group of participants enrolled in study. + */ + @Child(name = "recruitment", type = {}, order=31, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Target or actual group of participants enrolled in study", formalDefinition="Target or actual group of participants enrolled in study." ) + protected ResearchStudyRecruitmentComponent recruitment; + /** * Describes an expected sequence of events for one of the participants of a study. E.g. Exposure to drug A, wash-out, exposure to drug B, wash-out, follow-up. */ - @Child(name = "arm", type = {}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "comparisonGroup", type = {}, order=32, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Defined path through the study for a subject", formalDefinition="Describes an expected sequence of events for one of the participants of a study. E.g. Exposure to drug A, wash-out, exposure to drug B, wash-out, follow-up." ) - protected List arm; + protected List comparisonGroup; /** * A goal that the study is aiming to achieve in terms of a scientific question to be answered by the analysis of data collected during the study. */ - @Child(name = "objective", type = {}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "objective", type = {}, order=33, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="A goal for the study", formalDefinition="A goal that the study is aiming to achieve in terms of a scientific question to be answered by the analysis of data collected during the study." ) protected List objective; - private static final long serialVersionUID = 513596370L; + /** + * An outcome or planned variable to measure during the study. + */ + @Child(name = "outcomeMeasure", type = {}, order=34, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="An outcome or planned variable to measure during the study", formalDefinition="An outcome or planned variable to measure during the study." ) + protected List outcomeMeasure; + + /** + * Link to one or more sets of results generated by the study. Could also link to a research registry holding the results such as ClinicalTrials.gov. + */ + @Child(name = "result", type = {EvidenceReport.class, Citation.class, DiagnosticReport.class}, order=35, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Link to results generated during the study", formalDefinition="Link to one or more sets of results generated by the study. Could also link to a research registry holding the results such as ClinicalTrials.gov." ) + protected List result; + + /** + * A general storage or archive location for the study. This may contain an assortment of content which is not specified in advance. + */ + @Child(name = "webLocation", type = {}, order=36, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Archive location for the study", formalDefinition="A general storage or archive location for the study. This may contain an assortment of content which is not specified in advance." ) + protected List webLocation; + + private static final long serialVersionUID = 1378717503L; /** * Constructor @@ -1006,11 +3487,60 @@ public class ResearchStudy extends DomainResource { /** * Constructor */ - public ResearchStudy(ResearchStudyStatus status) { + public ResearchStudy(PublicationStatus status) { super(); this.setStatus(status); } + /** + * @return {@link #url} (Canonical identifier for this study resource, represented as a globally unique URI.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value + */ + public UriType getUrlElement() { + if (this.url == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudy.url"); + else if (Configuration.doAutoCreate()) + this.url = new UriType(); // bb + return this.url; + } + + public boolean hasUrlElement() { + return this.url != null && !this.url.isEmpty(); + } + + public boolean hasUrl() { + return this.url != null && !this.url.isEmpty(); + } + + /** + * @param value {@link #url} (Canonical identifier for this study resource, represented as a globally unique URI.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value + */ + public ResearchStudy setUrlElement(UriType value) { + this.url = value; + return this; + } + + /** + * @return Canonical identifier for this study resource, represented as a globally unique URI. + */ + public String getUrl() { + return this.url == null ? null : this.url.getValue(); + } + + /** + * @param value Canonical identifier for this study resource, represented as a globally unique URI. + */ + public ResearchStudy setUrl(String value) { + if (Utilities.noString(value)) + this.url = null; + else { + if (this.url == null) + this.url = new UriType(); + this.url.setValue(value); + } + return this; + } + /** * @return {@link #identifier} (Identifiers assigned to this research study by the sponsor or other systems.) */ @@ -1065,7 +3595,105 @@ public class ResearchStudy extends DomainResource { } /** - * @return {@link #title} (A short, descriptive user-friendly label for the study.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + * @return {@link #version} (Business identifier for the study record.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value + */ + public StringType getVersionElement() { + if (this.version == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudy.version"); + else if (Configuration.doAutoCreate()) + this.version = new StringType(); // bb + return this.version; + } + + public boolean hasVersionElement() { + return this.version != null && !this.version.isEmpty(); + } + + public boolean hasVersion() { + return this.version != null && !this.version.isEmpty(); + } + + /** + * @param value {@link #version} (Business identifier for the study record.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value + */ + public ResearchStudy setVersionElement(StringType value) { + this.version = value; + return this; + } + + /** + * @return Business identifier for the study record. + */ + public String getVersion() { + return this.version == null ? null : this.version.getValue(); + } + + /** + * @param value Business identifier for the study record. + */ + public ResearchStudy setVersion(String value) { + if (Utilities.noString(value)) + this.version = null; + else { + if (this.version == null) + this.version = new StringType(); + this.version.setValue(value); + } + return this; + } + + /** + * @return {@link #name} (Name for this study (computer friendly).). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public StringType getNameElement() { + if (this.name == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudy.name"); + else if (Configuration.doAutoCreate()) + this.name = new StringType(); // bb + return this.name; + } + + public boolean hasNameElement() { + return this.name != null && !this.name.isEmpty(); + } + + public boolean hasName() { + return this.name != null && !this.name.isEmpty(); + } + + /** + * @param value {@link #name} (Name for this study (computer friendly).). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value + */ + public ResearchStudy setNameElement(StringType value) { + this.name = value; + return this; + } + + /** + * @return Name for this study (computer friendly). + */ + public String getName() { + return this.name == null ? null : this.name.getValue(); + } + + /** + * @param value Name for this study (computer friendly). + */ + public ResearchStudy setName(String value) { + if (Utilities.noString(value)) + this.name = null; + else { + if (this.name == null) + this.name = new StringType(); + this.name.setValue(value); + } + return this; + } + + /** + * @return {@link #title} (A short, descriptive label for the study particularly for compouter use.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value */ public StringType getTitleElement() { if (this.title == null) @@ -1085,7 +3713,7 @@ public class ResearchStudy extends DomainResource { } /** - * @param value {@link #title} (A short, descriptive user-friendly label for the study.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value + * @param value {@link #title} (A short, descriptive label for the study particularly for compouter use.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value */ public ResearchStudy setTitleElement(StringType value) { this.title = value; @@ -1093,14 +3721,14 @@ public class ResearchStudy extends DomainResource { } /** - * @return A short, descriptive user-friendly label for the study. + * @return A short, descriptive label for the study particularly for compouter use. */ public String getTitle() { return this.title == null ? null : this.title.getValue(); } /** - * @param value A short, descriptive user-friendly label for the study. + * @param value A short, descriptive label for the study particularly for compouter use. */ public ResearchStudy setTitle(String value) { if (Utilities.noString(value)) @@ -1113,6 +3741,59 @@ public class ResearchStudy extends DomainResource { return this; } + /** + * @return {@link #label} (Additional names for the study.) + */ + public List getLabel() { + if (this.label == null) + this.label = new ArrayList(); + return this.label; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResearchStudy setLabel(List theLabel) { + this.label = theLabel; + return this; + } + + public boolean hasLabel() { + if (this.label == null) + return false; + for (ResearchStudyLabelComponent item : this.label) + if (!item.isEmpty()) + return true; + return false; + } + + public ResearchStudyLabelComponent addLabel() { //3 + ResearchStudyLabelComponent t = new ResearchStudyLabelComponent(); + if (this.label == null) + this.label = new ArrayList(); + this.label.add(t); + return t; + } + + public ResearchStudy addLabel(ResearchStudyLabelComponent t) { //3 + if (t == null) + return this; + if (this.label == null) + this.label = new ArrayList(); + this.label.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #label}, creating it if it does not already exist {3} + */ + public ResearchStudyLabelComponent getLabelFirstRep() { + if (getLabel().isEmpty()) { + addLabel(); + } + return getLabel().get(0); + } + /** * @return {@link #protocol} (The set of steps expected to be performed as part of the execution of the study.) */ @@ -1220,14 +3901,116 @@ public class ResearchStudy extends DomainResource { } /** - * @return {@link #status} (The current state of the study.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value + * @return {@link #relatedArtifact} (Citations, references and other related documents.) */ - public Enumeration getStatusElement() { + public List getRelatedArtifact() { + if (this.relatedArtifact == null) + this.relatedArtifact = new ArrayList(); + return this.relatedArtifact; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResearchStudy setRelatedArtifact(List theRelatedArtifact) { + this.relatedArtifact = theRelatedArtifact; + return this; + } + + public boolean hasRelatedArtifact() { + if (this.relatedArtifact == null) + return false; + for (RelatedArtifact item : this.relatedArtifact) + if (!item.isEmpty()) + return true; + return false; + } + + public RelatedArtifact addRelatedArtifact() { //3 + RelatedArtifact t = new RelatedArtifact(); + if (this.relatedArtifact == null) + this.relatedArtifact = new ArrayList(); + this.relatedArtifact.add(t); + return t; + } + + public ResearchStudy addRelatedArtifact(RelatedArtifact t) { //3 + if (t == null) + return this; + if (this.relatedArtifact == null) + this.relatedArtifact = new ArrayList(); + this.relatedArtifact.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #relatedArtifact}, creating it if it does not already exist {3} + */ + public RelatedArtifact getRelatedArtifactFirstRep() { + if (getRelatedArtifact().isEmpty()) { + addRelatedArtifact(); + } + return getRelatedArtifact().get(0); + } + + /** + * @return {@link #date} (Date the resource last changed.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value + */ + public DateTimeType getDateElement() { + if (this.date == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudy.date"); + else if (Configuration.doAutoCreate()) + this.date = new DateTimeType(); // bb + return this.date; + } + + public boolean hasDateElement() { + return this.date != null && !this.date.isEmpty(); + } + + public boolean hasDate() { + return this.date != null && !this.date.isEmpty(); + } + + /** + * @param value {@link #date} (Date the resource last changed.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value + */ + public ResearchStudy setDateElement(DateTimeType value) { + this.date = value; + return this; + } + + /** + * @return Date the resource last changed. + */ + public Date getDate() { + return this.date == null ? null : this.date.getValue(); + } + + /** + * @param value Date the resource last changed. + */ + public ResearchStudy setDate(Date value) { + if (value == null) + this.date = null; + else { + if (this.date == null) + this.date = new DateTimeType(); + this.date.setValue(value); + } + return this; + } + + /** + * @return {@link #status} (The publication state of the resource (not of the study).). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value + */ + public Enumeration getStatusElement() { if (this.status == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ResearchStudy.status"); else if (Configuration.doAutoCreate()) - this.status = new Enumeration(new ResearchStudyStatusEnumFactory()); // bb + this.status = new Enumeration(new PublicationStatusEnumFactory()); // bb return this.status; } @@ -1240,32 +4023,32 @@ public class ResearchStudy extends DomainResource { } /** - * @param value {@link #status} (The current state of the study.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value + * @param value {@link #status} (The publication state of the resource (not of the study).). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ - public ResearchStudy setStatusElement(Enumeration value) { + public ResearchStudy setStatusElement(Enumeration value) { this.status = value; return this; } /** - * @return The current state of the study. + * @return The publication state of the resource (not of the study). */ - public ResearchStudyStatus getStatus() { + public PublicationStatus getStatus() { return this.status == null ? null : this.status.getValue(); } /** - * @param value The current state of the study. + * @param value The publication state of the resource (not of the study). */ - public ResearchStudy setStatus(ResearchStudyStatus value) { + public ResearchStudy setStatus(PublicationStatus value) { if (this.status == null) - this.status = new Enumeration(new ResearchStudyStatusEnumFactory()); + this.status = new Enumeration(new PublicationStatusEnumFactory()); this.status.setValue(value); return this; } /** - * @return {@link #primaryPurposeType} (The type of study based upon the intent of the study's activities. A classification of the intent of the study.) + * @return {@link #primaryPurposeType} (The type of study based upon the intent of the study activities. A classification of the intent of the study.) */ public CodeableConcept getPrimaryPurposeType() { if (this.primaryPurposeType == null) @@ -1281,7 +4064,7 @@ public class ResearchStudy extends DomainResource { } /** - * @param value {@link #primaryPurposeType} (The type of study based upon the intent of the study's activities. A classification of the intent of the study.) + * @param value {@link #primaryPurposeType} (The type of study based upon the intent of the study activities. A classification of the intent of the study.) */ public ResearchStudy setPrimaryPurposeType(CodeableConcept value) { this.primaryPurposeType = value; @@ -1368,16 +4151,16 @@ public class ResearchStudy extends DomainResource { /** * @return {@link #focus} (The medication(s), food(s), therapy(ies), device(s) or other concerns or interventions that the study is seeking to gain more information about.) */ - public List getFocus() { + public List getFocus() { if (this.focus == null) - this.focus = new ArrayList(); + this.focus = new ArrayList(); return this.focus; } /** * @return Returns a reference to this for easy method chaining */ - public ResearchStudy setFocus(List theFocus) { + public ResearchStudy setFocus(List theFocus) { this.focus = theFocus; return this; } @@ -1385,25 +4168,25 @@ public class ResearchStudy extends DomainResource { public boolean hasFocus() { if (this.focus == null) return false; - for (CodeableConcept item : this.focus) + for (ResearchStudyFocusComponent item : this.focus) if (!item.isEmpty()) return true; return false; } - public CodeableConcept addFocus() { //3 - CodeableConcept t = new CodeableConcept(); + public ResearchStudyFocusComponent addFocus() { //3 + ResearchStudyFocusComponent t = new ResearchStudyFocusComponent(); if (this.focus == null) - this.focus = new ArrayList(); + this.focus = new ArrayList(); this.focus.add(t); return t; } - public ResearchStudy addFocus(CodeableConcept t) { //3 + public ResearchStudy addFocus(ResearchStudyFocusComponent t) { //3 if (t == null) return this; if (this.focus == null) - this.focus = new ArrayList(); + this.focus = new ArrayList(); this.focus.add(t); return this; } @@ -1411,7 +4194,7 @@ public class ResearchStudy extends DomainResource { /** * @return The first repetition of repeating field {@link #focus}, creating it if it does not already exist {3} */ - public CodeableConcept getFocusFirstRep() { + public ResearchStudyFocusComponent getFocusFirstRep() { if (getFocus().isEmpty()) { addFocus(); } @@ -1471,112 +4254,6 @@ public class ResearchStudy extends DomainResource { return getCondition().get(0); } - /** - * @return {@link #contact} (Contact details to assist a user in learning more about or engaging with the study.) - */ - public List getContact() { - if (this.contact == null) - this.contact = new ArrayList(); - return this.contact; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ResearchStudy setContact(List theContact) { - this.contact = theContact; - return this; - } - - public boolean hasContact() { - if (this.contact == null) - return false; - for (ContactDetail item : this.contact) - if (!item.isEmpty()) - return true; - return false; - } - - public ContactDetail addContact() { //3 - ContactDetail t = new ContactDetail(); - if (this.contact == null) - this.contact = new ArrayList(); - this.contact.add(t); - return t; - } - - public ResearchStudy addContact(ContactDetail t) { //3 - if (t == null) - return this; - if (this.contact == null) - this.contact = new ArrayList(); - this.contact.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist {3} - */ - public ContactDetail getContactFirstRep() { - if (getContact().isEmpty()) { - addContact(); - } - return getContact().get(0); - } - - /** - * @return {@link #relatedArtifact} (Citations, references and other related documents.) - */ - public List getRelatedArtifact() { - if (this.relatedArtifact == null) - this.relatedArtifact = new ArrayList(); - return this.relatedArtifact; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ResearchStudy setRelatedArtifact(List theRelatedArtifact) { - this.relatedArtifact = theRelatedArtifact; - return this; - } - - public boolean hasRelatedArtifact() { - if (this.relatedArtifact == null) - return false; - for (RelatedArtifact item : this.relatedArtifact) - if (!item.isEmpty()) - return true; - return false; - } - - public RelatedArtifact addRelatedArtifact() { //3 - RelatedArtifact t = new RelatedArtifact(); - if (this.relatedArtifact == null) - this.relatedArtifact = new ArrayList(); - this.relatedArtifact.add(t); - return t; - } - - public ResearchStudy addRelatedArtifact(RelatedArtifact t) { //3 - if (t == null) - return this; - if (this.relatedArtifact == null) - this.relatedArtifact = new ArrayList(); - this.relatedArtifact.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #relatedArtifact}, creating it if it does not already exist {3} - */ - public RelatedArtifact getRelatedArtifactFirstRep() { - if (getRelatedArtifact().isEmpty()) { - addRelatedArtifact(); - } - return getRelatedArtifact().get(0); - } - /** * @return {@link #keyword} (Key terms to aid in searching for or filtering the study.) */ @@ -1684,7 +4361,56 @@ public class ResearchStudy extends DomainResource { } /** - * @return {@link #description} (A full description of how the study is being conducted.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + * @return {@link #descriptionSummary} (A brief summary of the study description.). This is the underlying object with id, value and extensions. The accessor "getDescriptionSummary" gives direct access to the value + */ + public MarkdownType getDescriptionSummaryElement() { + if (this.descriptionSummary == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudy.descriptionSummary"); + else if (Configuration.doAutoCreate()) + this.descriptionSummary = new MarkdownType(); // bb + return this.descriptionSummary; + } + + public boolean hasDescriptionSummaryElement() { + return this.descriptionSummary != null && !this.descriptionSummary.isEmpty(); + } + + public boolean hasDescriptionSummary() { + return this.descriptionSummary != null && !this.descriptionSummary.isEmpty(); + } + + /** + * @param value {@link #descriptionSummary} (A brief summary of the study description.). This is the underlying object with id, value and extensions. The accessor "getDescriptionSummary" gives direct access to the value + */ + public ResearchStudy setDescriptionSummaryElement(MarkdownType value) { + this.descriptionSummary = value; + return this; + } + + /** + * @return A brief summary of the study description. + */ + public String getDescriptionSummary() { + return this.descriptionSummary == null ? null : this.descriptionSummary.getValue(); + } + + /** + * @param value A brief summary of the study description. + */ + public ResearchStudy setDescriptionSummary(String value) { + if (value == null) + this.descriptionSummary = null; + else { + if (this.descriptionSummary == null) + this.descriptionSummary = new MarkdownType(); + this.descriptionSummary.setValue(value); + } + return this; + } + + /** + * @return {@link #description} (A full description of how the study is being conducted. For a description of what the study objectives are see ResearchStudy.objective.description.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value */ public MarkdownType getDescriptionElement() { if (this.description == null) @@ -1704,7 +4430,7 @@ public class ResearchStudy extends DomainResource { } /** - * @param value {@link #description} (A full description of how the study is being conducted.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value + * @param value {@link #description} (A full description of how the study is being conducted. For a description of what the study objectives are see ResearchStudy.objective.description.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value */ public ResearchStudy setDescriptionElement(MarkdownType value) { this.description = value; @@ -1712,14 +4438,14 @@ public class ResearchStudy extends DomainResource { } /** - * @return A full description of how the study is being conducted. + * @return A full description of how the study is being conducted. For a description of what the study objectives are see ResearchStudy.objective.description. */ public String getDescription() { return this.description == null ? null : this.description.getValue(); } /** - * @param value A full description of how the study is being conducted. + * @param value A full description of how the study is being conducted. For a description of what the study objectives are see ResearchStudy.objective.description. */ public ResearchStudy setDescription(String value) { if (value == null) @@ -1732,59 +4458,6 @@ public class ResearchStudy extends DomainResource { return this; } - /** - * @return {@link #enrollment} (Reference to a Group that defines the criteria for and quantity of subjects participating in the study. E.g. " 200 female Europeans between the ages of 20 and 45 with early onset diabetes".) - */ - public List getEnrollment() { - if (this.enrollment == null) - this.enrollment = new ArrayList(); - return this.enrollment; - } - - /** - * @return Returns a reference to this for easy method chaining - */ - public ResearchStudy setEnrollment(List theEnrollment) { - this.enrollment = theEnrollment; - return this; - } - - public boolean hasEnrollment() { - if (this.enrollment == null) - return false; - for (Reference item : this.enrollment) - if (!item.isEmpty()) - return true; - return false; - } - - public Reference addEnrollment() { //3 - Reference t = new Reference(); - if (this.enrollment == null) - this.enrollment = new ArrayList(); - this.enrollment.add(t); - return t; - } - - public ResearchStudy addEnrollment(Reference t) { //3 - if (t == null) - return this; - if (this.enrollment == null) - this.enrollment = new ArrayList(); - this.enrollment.add(t); - return this; - } - - /** - * @return The first repetition of repeating field {@link #enrollment}, creating it if it does not already exist {3} - */ - public Reference getEnrollmentFirstRep() { - if (getEnrollment().isEmpty()) { - addEnrollment(); - } - return getEnrollment().get(0); - } - /** * @return {@link #period} (Identifies the start date and the expected (or actual, depending on status) end date for the study.) */ @@ -1809,6 +4482,59 @@ public class ResearchStudy extends DomainResource { return this; } + /** + * @return {@link #contact} (Contact details to assist a user in learning more about or engaging with the study.) + */ + public List getContact() { + if (this.contact == null) + this.contact = new ArrayList(); + return this.contact; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResearchStudy setContact(List theContact) { + this.contact = theContact; + return this; + } + + public boolean hasContact() { + if (this.contact == null) + return false; + for (ContactDetail item : this.contact) + if (!item.isEmpty()) + return true; + return false; + } + + public ContactDetail addContact() { //3 + ContactDetail t = new ContactDetail(); + if (this.contact == null) + this.contact = new ArrayList(); + this.contact.add(t); + return t; + } + + public ResearchStudy addContact(ContactDetail t) { //3 + if (t == null) + return this; + if (this.contact == null) + this.contact = new ArrayList(); + this.contact.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist {3} + */ + public ContactDetail getContactFirstRep() { + if (getContact().isEmpty()) { + addContact(); + } + return getContact().get(0); + } + /** * @return {@link #sponsor} (An organization that initiates the investigation and is legally responsible for the study.) */ @@ -1910,30 +4636,6 @@ public class ResearchStudy extends DomainResource { return getSite().get(0); } - /** - * @return {@link #reasonStopped} (A description and/or code explaining the premature termination of the study.) - */ - public CodeableConcept getReasonStopped() { - if (this.reasonStopped == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ResearchStudy.reasonStopped"); - else if (Configuration.doAutoCreate()) - this.reasonStopped = new CodeableConcept(); // cc - return this.reasonStopped; - } - - public boolean hasReasonStopped() { - return this.reasonStopped != null && !this.reasonStopped.isEmpty(); - } - - /** - * @param value {@link #reasonStopped} (A description and/or code explaining the premature termination of the study.) - */ - public ResearchStudy setReasonStopped(CodeableConcept value) { - this.reasonStopped = value; - return this; - } - /** * @return {@link #note} (Comments made about the study by the performer, subject or other participants.) */ @@ -1988,56 +4690,316 @@ public class ResearchStudy extends DomainResource { } /** - * @return {@link #arm} (Describes an expected sequence of events for one of the participants of a study. E.g. Exposure to drug A, wash-out, exposure to drug B, wash-out, follow-up.) + * @return {@link #classification} (Classification for the study.) */ - public List getArm() { - if (this.arm == null) - this.arm = new ArrayList(); - return this.arm; + public List getClassification() { + if (this.classification == null) + this.classification = new ArrayList(); + return this.classification; } /** * @return Returns a reference to this for easy method chaining */ - public ResearchStudy setArm(List theArm) { - this.arm = theArm; + public ResearchStudy setClassification(List theClassification) { + this.classification = theClassification; return this; } - public boolean hasArm() { - if (this.arm == null) + public boolean hasClassification() { + if (this.classification == null) return false; - for (ResearchStudyArmComponent item : this.arm) + for (ResearchStudyClassificationComponent item : this.classification) if (!item.isEmpty()) return true; return false; } - public ResearchStudyArmComponent addArm() { //3 - ResearchStudyArmComponent t = new ResearchStudyArmComponent(); - if (this.arm == null) - this.arm = new ArrayList(); - this.arm.add(t); + public ResearchStudyClassificationComponent addClassification() { //3 + ResearchStudyClassificationComponent t = new ResearchStudyClassificationComponent(); + if (this.classification == null) + this.classification = new ArrayList(); + this.classification.add(t); return t; } - public ResearchStudy addArm(ResearchStudyArmComponent t) { //3 + public ResearchStudy addClassification(ResearchStudyClassificationComponent t) { //3 if (t == null) return this; - if (this.arm == null) - this.arm = new ArrayList(); - this.arm.add(t); + if (this.classification == null) + this.classification = new ArrayList(); + this.classification.add(t); return this; } /** - * @return The first repetition of repeating field {@link #arm}, creating it if it does not already exist {3} + * @return The first repetition of repeating field {@link #classification}, creating it if it does not already exist {3} */ - public ResearchStudyArmComponent getArmFirstRep() { - if (getArm().isEmpty()) { - addArm(); + public ResearchStudyClassificationComponent getClassificationFirstRep() { + if (getClassification().isEmpty()) { + addClassification(); } - return getArm().get(0); + return getClassification().get(0); + } + + /** + * @return {@link #associatedParty} (Sponsors, collaborators, and other parties.) + */ + public List getAssociatedParty() { + if (this.associatedParty == null) + this.associatedParty = new ArrayList(); + return this.associatedParty; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResearchStudy setAssociatedParty(List theAssociatedParty) { + this.associatedParty = theAssociatedParty; + return this; + } + + public boolean hasAssociatedParty() { + if (this.associatedParty == null) + return false; + for (ResearchStudyAssociatedPartyComponent item : this.associatedParty) + if (!item.isEmpty()) + return true; + return false; + } + + public ResearchStudyAssociatedPartyComponent addAssociatedParty() { //3 + ResearchStudyAssociatedPartyComponent t = new ResearchStudyAssociatedPartyComponent(); + if (this.associatedParty == null) + this.associatedParty = new ArrayList(); + this.associatedParty.add(t); + return t; + } + + public ResearchStudy addAssociatedParty(ResearchStudyAssociatedPartyComponent t) { //3 + if (t == null) + return this; + if (this.associatedParty == null) + this.associatedParty = new ArrayList(); + this.associatedParty.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #associatedParty}, creating it if it does not already exist {3} + */ + public ResearchStudyAssociatedPartyComponent getAssociatedPartyFirstRep() { + if (getAssociatedParty().isEmpty()) { + addAssociatedParty(); + } + return getAssociatedParty().get(0); + } + + /** + * @return {@link #currentState} (Current status of the study.) + */ + public List getCurrentState() { + if (this.currentState == null) + this.currentState = new ArrayList(); + return this.currentState; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResearchStudy setCurrentState(List theCurrentState) { + this.currentState = theCurrentState; + return this; + } + + public boolean hasCurrentState() { + if (this.currentState == null) + return false; + for (CodeableConcept item : this.currentState) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addCurrentState() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.currentState == null) + this.currentState = new ArrayList(); + this.currentState.add(t); + return t; + } + + public ResearchStudy addCurrentState(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.currentState == null) + this.currentState = new ArrayList(); + this.currentState.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #currentState}, creating it if it does not already exist {3} + */ + public CodeableConcept getCurrentStateFirstRep() { + if (getCurrentState().isEmpty()) { + addCurrentState(); + } + return getCurrentState().get(0); + } + + /** + * @return {@link #statusDate} (Status of study with time for that status.) + */ + public List getStatusDate() { + if (this.statusDate == null) + this.statusDate = new ArrayList(); + return this.statusDate; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResearchStudy setStatusDate(List theStatusDate) { + this.statusDate = theStatusDate; + return this; + } + + public boolean hasStatusDate() { + if (this.statusDate == null) + return false; + for (ResearchStudyStatusDateComponent item : this.statusDate) + if (!item.isEmpty()) + return true; + return false; + } + + public ResearchStudyStatusDateComponent addStatusDate() { //3 + ResearchStudyStatusDateComponent t = new ResearchStudyStatusDateComponent(); + if (this.statusDate == null) + this.statusDate = new ArrayList(); + this.statusDate.add(t); + return t; + } + + public ResearchStudy addStatusDate(ResearchStudyStatusDateComponent t) { //3 + if (t == null) + return this; + if (this.statusDate == null) + this.statusDate = new ArrayList(); + this.statusDate.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #statusDate}, creating it if it does not already exist {3} + */ + public ResearchStudyStatusDateComponent getStatusDateFirstRep() { + if (getStatusDate().isEmpty()) { + addStatusDate(); + } + return getStatusDate().get(0); + } + + /** + * @return {@link #whyStopped} (A description and/or code explaining the premature termination of the study.) + */ + public CodeableConcept getWhyStopped() { + if (this.whyStopped == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudy.whyStopped"); + else if (Configuration.doAutoCreate()) + this.whyStopped = new CodeableConcept(); // cc + return this.whyStopped; + } + + public boolean hasWhyStopped() { + return this.whyStopped != null && !this.whyStopped.isEmpty(); + } + + /** + * @param value {@link #whyStopped} (A description and/or code explaining the premature termination of the study.) + */ + public ResearchStudy setWhyStopped(CodeableConcept value) { + this.whyStopped = value; + return this; + } + + /** + * @return {@link #recruitment} (Target or actual group of participants enrolled in study.) + */ + public ResearchStudyRecruitmentComponent getRecruitment() { + if (this.recruitment == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchStudy.recruitment"); + else if (Configuration.doAutoCreate()) + this.recruitment = new ResearchStudyRecruitmentComponent(); // cc + return this.recruitment; + } + + public boolean hasRecruitment() { + return this.recruitment != null && !this.recruitment.isEmpty(); + } + + /** + * @param value {@link #recruitment} (Target or actual group of participants enrolled in study.) + */ + public ResearchStudy setRecruitment(ResearchStudyRecruitmentComponent value) { + this.recruitment = value; + return this; + } + + /** + * @return {@link #comparisonGroup} (Describes an expected sequence of events for one of the participants of a study. E.g. Exposure to drug A, wash-out, exposure to drug B, wash-out, follow-up.) + */ + public List getComparisonGroup() { + if (this.comparisonGroup == null) + this.comparisonGroup = new ArrayList(); + return this.comparisonGroup; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResearchStudy setComparisonGroup(List theComparisonGroup) { + this.comparisonGroup = theComparisonGroup; + return this; + } + + public boolean hasComparisonGroup() { + if (this.comparisonGroup == null) + return false; + for (ResearchStudyComparisonGroupComponent item : this.comparisonGroup) + if (!item.isEmpty()) + return true; + return false; + } + + public ResearchStudyComparisonGroupComponent addComparisonGroup() { //3 + ResearchStudyComparisonGroupComponent t = new ResearchStudyComparisonGroupComponent(); + if (this.comparisonGroup == null) + this.comparisonGroup = new ArrayList(); + this.comparisonGroup.add(t); + return t; + } + + public ResearchStudy addComparisonGroup(ResearchStudyComparisonGroupComponent t) { //3 + if (t == null) + return this; + if (this.comparisonGroup == null) + this.comparisonGroup = new ArrayList(); + this.comparisonGroup.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #comparisonGroup}, creating it if it does not already exist {3} + */ + public ResearchStudyComparisonGroupComponent getComparisonGroupFirstRep() { + if (getComparisonGroup().isEmpty()) { + addComparisonGroup(); + } + return getComparisonGroup().get(0); } /** @@ -2093,61 +5055,246 @@ public class ResearchStudy extends DomainResource { return getObjective().get(0); } + /** + * @return {@link #outcomeMeasure} (An outcome or planned variable to measure during the study.) + */ + public List getOutcomeMeasure() { + if (this.outcomeMeasure == null) + this.outcomeMeasure = new ArrayList(); + return this.outcomeMeasure; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResearchStudy setOutcomeMeasure(List theOutcomeMeasure) { + this.outcomeMeasure = theOutcomeMeasure; + return this; + } + + public boolean hasOutcomeMeasure() { + if (this.outcomeMeasure == null) + return false; + for (ResearchStudyOutcomeMeasureComponent item : this.outcomeMeasure) + if (!item.isEmpty()) + return true; + return false; + } + + public ResearchStudyOutcomeMeasureComponent addOutcomeMeasure() { //3 + ResearchStudyOutcomeMeasureComponent t = new ResearchStudyOutcomeMeasureComponent(); + if (this.outcomeMeasure == null) + this.outcomeMeasure = new ArrayList(); + this.outcomeMeasure.add(t); + return t; + } + + public ResearchStudy addOutcomeMeasure(ResearchStudyOutcomeMeasureComponent t) { //3 + if (t == null) + return this; + if (this.outcomeMeasure == null) + this.outcomeMeasure = new ArrayList(); + this.outcomeMeasure.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #outcomeMeasure}, creating it if it does not already exist {3} + */ + public ResearchStudyOutcomeMeasureComponent getOutcomeMeasureFirstRep() { + if (getOutcomeMeasure().isEmpty()) { + addOutcomeMeasure(); + } + return getOutcomeMeasure().get(0); + } + + /** + * @return {@link #result} (Link to one or more sets of results generated by the study. Could also link to a research registry holding the results such as ClinicalTrials.gov.) + */ + public List getResult() { + if (this.result == null) + this.result = new ArrayList(); + return this.result; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResearchStudy setResult(List theResult) { + this.result = theResult; + return this; + } + + public boolean hasResult() { + if (this.result == null) + return false; + for (Reference item : this.result) + if (!item.isEmpty()) + return true; + return false; + } + + public Reference addResult() { //3 + Reference t = new Reference(); + if (this.result == null) + this.result = new ArrayList(); + this.result.add(t); + return t; + } + + public ResearchStudy addResult(Reference t) { //3 + if (t == null) + return this; + if (this.result == null) + this.result = new ArrayList(); + this.result.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #result}, creating it if it does not already exist {3} + */ + public Reference getResultFirstRep() { + if (getResult().isEmpty()) { + addResult(); + } + return getResult().get(0); + } + + /** + * @return {@link #webLocation} (A general storage or archive location for the study. This may contain an assortment of content which is not specified in advance.) + */ + public List getWebLocation() { + if (this.webLocation == null) + this.webLocation = new ArrayList(); + return this.webLocation; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public ResearchStudy setWebLocation(List theWebLocation) { + this.webLocation = theWebLocation; + return this; + } + + public boolean hasWebLocation() { + if (this.webLocation == null) + return false; + for (ResearchStudyWebLocationComponent item : this.webLocation) + if (!item.isEmpty()) + return true; + return false; + } + + public ResearchStudyWebLocationComponent addWebLocation() { //3 + ResearchStudyWebLocationComponent t = new ResearchStudyWebLocationComponent(); + if (this.webLocation == null) + this.webLocation = new ArrayList(); + this.webLocation.add(t); + return t; + } + + public ResearchStudy addWebLocation(ResearchStudyWebLocationComponent t) { //3 + if (t == null) + return this; + if (this.webLocation == null) + this.webLocation = new ArrayList(); + this.webLocation.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #webLocation}, creating it if it does not already exist {3} + */ + public ResearchStudyWebLocationComponent getWebLocationFirstRep() { + if (getWebLocation().isEmpty()) { + addWebLocation(); + } + return getWebLocation().get(0); + } + protected void listChildren(List children) { super.listChildren(children); + children.add(new Property("url", "uri", "Canonical identifier for this study resource, represented as a globally unique URI.", 0, 1, url)); children.add(new Property("identifier", "Identifier", "Identifiers assigned to this research study by the sponsor or other systems.", 0, java.lang.Integer.MAX_VALUE, identifier)); - children.add(new Property("title", "string", "A short, descriptive user-friendly label for the study.", 0, 1, title)); + children.add(new Property("version", "string", "Business identifier for the study record.", 0, 1, version)); + children.add(new Property("name", "string", "Name for this study (computer friendly).", 0, 1, name)); + children.add(new Property("title", "string", "A short, descriptive label for the study particularly for compouter use.", 0, 1, title)); + children.add(new Property("label", "", "Additional names for the study.", 0, java.lang.Integer.MAX_VALUE, label)); children.add(new Property("protocol", "Reference(PlanDefinition)", "The set of steps expected to be performed as part of the execution of the study.", 0, java.lang.Integer.MAX_VALUE, protocol)); children.add(new Property("partOf", "Reference(ResearchStudy)", "A larger research study of which this particular study is a component or step.", 0, java.lang.Integer.MAX_VALUE, partOf)); - children.add(new Property("status", "code", "The current state of the study.", 0, 1, status)); - children.add(new Property("primaryPurposeType", "CodeableConcept", "The type of study based upon the intent of the study's activities. A classification of the intent of the study.", 0, 1, primaryPurposeType)); + children.add(new Property("relatedArtifact", "RelatedArtifact", "Citations, references and other related documents.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact)); + children.add(new Property("date", "dateTime", "Date the resource last changed.", 0, 1, date)); + children.add(new Property("status", "code", "The publication state of the resource (not of the study).", 0, 1, status)); + children.add(new Property("primaryPurposeType", "CodeableConcept", "The type of study based upon the intent of the study activities. A classification of the intent of the study.", 0, 1, primaryPurposeType)); children.add(new Property("phase", "CodeableConcept", "The stage in the progression of a therapy from initial experimental use in humans in clinical trials to post-market evaluation.", 0, 1, phase)); children.add(new Property("category", "CodeableConcept", "Codes categorizing the type of study such as investigational vs. observational, type of blinding, type of randomization, safety vs. efficacy, etc.", 0, java.lang.Integer.MAX_VALUE, category)); - children.add(new Property("focus", "CodeableConcept", "The medication(s), food(s), therapy(ies), device(s) or other concerns or interventions that the study is seeking to gain more information about.", 0, java.lang.Integer.MAX_VALUE, focus)); + children.add(new Property("focus", "", "The medication(s), food(s), therapy(ies), device(s) or other concerns or interventions that the study is seeking to gain more information about.", 0, java.lang.Integer.MAX_VALUE, focus)); children.add(new Property("condition", "CodeableConcept", "The condition that is the focus of the study. For example, In a study to examine risk factors for Lupus, might have as an inclusion criterion \"healthy volunteer\", but the target condition code would be a Lupus SNOMED code.", 0, java.lang.Integer.MAX_VALUE, condition)); - children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in learning more about or engaging with the study.", 0, java.lang.Integer.MAX_VALUE, contact)); - children.add(new Property("relatedArtifact", "RelatedArtifact", "Citations, references and other related documents.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact)); children.add(new Property("keyword", "CodeableConcept", "Key terms to aid in searching for or filtering the study.", 0, java.lang.Integer.MAX_VALUE, keyword)); children.add(new Property("location", "CodeableConcept", "Indicates a country, state or other region where the study is taking place.", 0, java.lang.Integer.MAX_VALUE, location)); - children.add(new Property("description", "markdown", "A full description of how the study is being conducted.", 0, 1, description)); - children.add(new Property("enrollment", "Reference(Group)", "Reference to a Group that defines the criteria for and quantity of subjects participating in the study. E.g. \" 200 female Europeans between the ages of 20 and 45 with early onset diabetes\".", 0, java.lang.Integer.MAX_VALUE, enrollment)); + children.add(new Property("descriptionSummary", "markdown", "A brief summary of the study description.", 0, 1, descriptionSummary)); + children.add(new Property("description", "markdown", "A full description of how the study is being conducted. For a description of what the study objectives are see ResearchStudy.objective.description.", 0, 1, description)); children.add(new Property("period", "Period", "Identifies the start date and the expected (or actual, depending on status) end date for the study.", 0, 1, period)); + children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in learning more about or engaging with the study.", 0, java.lang.Integer.MAX_VALUE, contact)); children.add(new Property("sponsor", "Reference(Organization)", "An organization that initiates the investigation and is legally responsible for the study.", 0, 1, sponsor)); children.add(new Property("principalInvestigator", "Reference(Practitioner|PractitionerRole)", "A researcher in a study who oversees multiple aspects of the study, such as concept development, protocol writing, protocol submission for IRB approval, participant recruitment, informed consent, data collection, analysis, interpretation and presentation.", 0, 1, principalInvestigator)); - children.add(new Property("site", "Reference(Location)", "A facility in which study activities are conducted.", 0, java.lang.Integer.MAX_VALUE, site)); - children.add(new Property("reasonStopped", "CodeableConcept", "A description and/or code explaining the premature termination of the study.", 0, 1, reasonStopped)); + children.add(new Property("site", "Reference(Location|ResearchStudy|Organization)", "A facility in which study activities are conducted.", 0, java.lang.Integer.MAX_VALUE, site)); children.add(new Property("note", "Annotation", "Comments made about the study by the performer, subject or other participants.", 0, java.lang.Integer.MAX_VALUE, note)); - children.add(new Property("arm", "", "Describes an expected sequence of events for one of the participants of a study. E.g. Exposure to drug A, wash-out, exposure to drug B, wash-out, follow-up.", 0, java.lang.Integer.MAX_VALUE, arm)); + children.add(new Property("classification", "", "Classification for the study.", 0, java.lang.Integer.MAX_VALUE, classification)); + children.add(new Property("associatedParty", "", "Sponsors, collaborators, and other parties.", 0, java.lang.Integer.MAX_VALUE, associatedParty)); + children.add(new Property("currentState", "CodeableConcept", "Current status of the study.", 0, java.lang.Integer.MAX_VALUE, currentState)); + children.add(new Property("statusDate", "", "Status of study with time for that status.", 0, java.lang.Integer.MAX_VALUE, statusDate)); + children.add(new Property("whyStopped", "CodeableConcept", "A description and/or code explaining the premature termination of the study.", 0, 1, whyStopped)); + children.add(new Property("recruitment", "", "Target or actual group of participants enrolled in study.", 0, 1, recruitment)); + children.add(new Property("comparisonGroup", "", "Describes an expected sequence of events for one of the participants of a study. E.g. Exposure to drug A, wash-out, exposure to drug B, wash-out, follow-up.", 0, java.lang.Integer.MAX_VALUE, comparisonGroup)); children.add(new Property("objective", "", "A goal that the study is aiming to achieve in terms of a scientific question to be answered by the analysis of data collected during the study.", 0, java.lang.Integer.MAX_VALUE, objective)); + children.add(new Property("outcomeMeasure", "", "An outcome or planned variable to measure during the study.", 0, java.lang.Integer.MAX_VALUE, outcomeMeasure)); + children.add(new Property("result", "Reference(EvidenceReport|Citation|DiagnosticReport)", "Link to one or more sets of results generated by the study. Could also link to a research registry holding the results such as ClinicalTrials.gov.", 0, java.lang.Integer.MAX_VALUE, result)); + children.add(new Property("webLocation", "", "A general storage or archive location for the study. This may contain an assortment of content which is not specified in advance.", 0, java.lang.Integer.MAX_VALUE, webLocation)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { + case 116079: /*url*/ return new Property("url", "uri", "Canonical identifier for this study resource, represented as a globally unique URI.", 0, 1, url); case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifiers assigned to this research study by the sponsor or other systems.", 0, java.lang.Integer.MAX_VALUE, identifier); - case 110371416: /*title*/ return new Property("title", "string", "A short, descriptive user-friendly label for the study.", 0, 1, title); + case 351608024: /*version*/ return new Property("version", "string", "Business identifier for the study record.", 0, 1, version); + case 3373707: /*name*/ return new Property("name", "string", "Name for this study (computer friendly).", 0, 1, name); + case 110371416: /*title*/ return new Property("title", "string", "A short, descriptive label for the study particularly for compouter use.", 0, 1, title); + case 102727412: /*label*/ return new Property("label", "", "Additional names for the study.", 0, java.lang.Integer.MAX_VALUE, label); case -989163880: /*protocol*/ return new Property("protocol", "Reference(PlanDefinition)", "The set of steps expected to be performed as part of the execution of the study.", 0, java.lang.Integer.MAX_VALUE, protocol); case -995410646: /*partOf*/ return new Property("partOf", "Reference(ResearchStudy)", "A larger research study of which this particular study is a component or step.", 0, java.lang.Integer.MAX_VALUE, partOf); - case -892481550: /*status*/ return new Property("status", "code", "The current state of the study.", 0, 1, status); - case -2132842986: /*primaryPurposeType*/ return new Property("primaryPurposeType", "CodeableConcept", "The type of study based upon the intent of the study's activities. A classification of the intent of the study.", 0, 1, primaryPurposeType); + case 666807069: /*relatedArtifact*/ return new Property("relatedArtifact", "RelatedArtifact", "Citations, references and other related documents.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact); + case 3076014: /*date*/ return new Property("date", "dateTime", "Date the resource last changed.", 0, 1, date); + case -892481550: /*status*/ return new Property("status", "code", "The publication state of the resource (not of the study).", 0, 1, status); + case -2132842986: /*primaryPurposeType*/ return new Property("primaryPurposeType", "CodeableConcept", "The type of study based upon the intent of the study activities. A classification of the intent of the study.", 0, 1, primaryPurposeType); case 106629499: /*phase*/ return new Property("phase", "CodeableConcept", "The stage in the progression of a therapy from initial experimental use in humans in clinical trials to post-market evaluation.", 0, 1, phase); case 50511102: /*category*/ return new Property("category", "CodeableConcept", "Codes categorizing the type of study such as investigational vs. observational, type of blinding, type of randomization, safety vs. efficacy, etc.", 0, java.lang.Integer.MAX_VALUE, category); - case 97604824: /*focus*/ return new Property("focus", "CodeableConcept", "The medication(s), food(s), therapy(ies), device(s) or other concerns or interventions that the study is seeking to gain more information about.", 0, java.lang.Integer.MAX_VALUE, focus); + case 97604824: /*focus*/ return new Property("focus", "", "The medication(s), food(s), therapy(ies), device(s) or other concerns or interventions that the study is seeking to gain more information about.", 0, java.lang.Integer.MAX_VALUE, focus); case -861311717: /*condition*/ return new Property("condition", "CodeableConcept", "The condition that is the focus of the study. For example, In a study to examine risk factors for Lupus, might have as an inclusion criterion \"healthy volunteer\", but the target condition code would be a Lupus SNOMED code.", 0, java.lang.Integer.MAX_VALUE, condition); - case 951526432: /*contact*/ return new Property("contact", "ContactDetail", "Contact details to assist a user in learning more about or engaging with the study.", 0, java.lang.Integer.MAX_VALUE, contact); - case 666807069: /*relatedArtifact*/ return new Property("relatedArtifact", "RelatedArtifact", "Citations, references and other related documents.", 0, java.lang.Integer.MAX_VALUE, relatedArtifact); case -814408215: /*keyword*/ return new Property("keyword", "CodeableConcept", "Key terms to aid in searching for or filtering the study.", 0, java.lang.Integer.MAX_VALUE, keyword); case 1901043637: /*location*/ return new Property("location", "CodeableConcept", "Indicates a country, state or other region where the study is taking place.", 0, java.lang.Integer.MAX_VALUE, location); - case -1724546052: /*description*/ return new Property("description", "markdown", "A full description of how the study is being conducted.", 0, 1, description); - case 116089604: /*enrollment*/ return new Property("enrollment", "Reference(Group)", "Reference to a Group that defines the criteria for and quantity of subjects participating in the study. E.g. \" 200 female Europeans between the ages of 20 and 45 with early onset diabetes\".", 0, java.lang.Integer.MAX_VALUE, enrollment); + case 21530634: /*descriptionSummary*/ return new Property("descriptionSummary", "markdown", "A brief summary of the study description.", 0, 1, descriptionSummary); + case -1724546052: /*description*/ return new Property("description", "markdown", "A full description of how the study is being conducted. For a description of what the study objectives are see ResearchStudy.objective.description.", 0, 1, description); case -991726143: /*period*/ return new Property("period", "Period", "Identifies the start date and the expected (or actual, depending on status) end date for the study.", 0, 1, period); + case 951526432: /*contact*/ return new Property("contact", "ContactDetail", "Contact details to assist a user in learning more about or engaging with the study.", 0, java.lang.Integer.MAX_VALUE, contact); case -1998892262: /*sponsor*/ return new Property("sponsor", "Reference(Organization)", "An organization that initiates the investigation and is legally responsible for the study.", 0, 1, sponsor); case 1437117175: /*principalInvestigator*/ return new Property("principalInvestigator", "Reference(Practitioner|PractitionerRole)", "A researcher in a study who oversees multiple aspects of the study, such as concept development, protocol writing, protocol submission for IRB approval, participant recruitment, informed consent, data collection, analysis, interpretation and presentation.", 0, 1, principalInvestigator); - case 3530567: /*site*/ return new Property("site", "Reference(Location)", "A facility in which study activities are conducted.", 0, java.lang.Integer.MAX_VALUE, site); - case 1181369065: /*reasonStopped*/ return new Property("reasonStopped", "CodeableConcept", "A description and/or code explaining the premature termination of the study.", 0, 1, reasonStopped); + case 3530567: /*site*/ return new Property("site", "Reference(Location|ResearchStudy|Organization)", "A facility in which study activities are conducted.", 0, java.lang.Integer.MAX_VALUE, site); case 3387378: /*note*/ return new Property("note", "Annotation", "Comments made about the study by the performer, subject or other participants.", 0, java.lang.Integer.MAX_VALUE, note); - case 96860: /*arm*/ return new Property("arm", "", "Describes an expected sequence of events for one of the participants of a study. E.g. Exposure to drug A, wash-out, exposure to drug B, wash-out, follow-up.", 0, java.lang.Integer.MAX_VALUE, arm); + case 382350310: /*classification*/ return new Property("classification", "", "Classification for the study.", 0, java.lang.Integer.MAX_VALUE, classification); + case -1841460864: /*associatedParty*/ return new Property("associatedParty", "", "Sponsors, collaborators, and other parties.", 0, java.lang.Integer.MAX_VALUE, associatedParty); + case 1457822360: /*currentState*/ return new Property("currentState", "CodeableConcept", "Current status of the study.", 0, java.lang.Integer.MAX_VALUE, currentState); + case 247524032: /*statusDate*/ return new Property("statusDate", "", "Status of study with time for that status.", 0, java.lang.Integer.MAX_VALUE, statusDate); + case -699986715: /*whyStopped*/ return new Property("whyStopped", "CodeableConcept", "A description and/or code explaining the premature termination of the study.", 0, 1, whyStopped); + case 780783004: /*recruitment*/ return new Property("recruitment", "", "Target or actual group of participants enrolled in study.", 0, 1, recruitment); + case -138266634: /*comparisonGroup*/ return new Property("comparisonGroup", "", "Describes an expected sequence of events for one of the participants of a study. E.g. Exposure to drug A, wash-out, exposure to drug B, wash-out, follow-up.", 0, java.lang.Integer.MAX_VALUE, comparisonGroup); case -1489585863: /*objective*/ return new Property("objective", "", "A goal that the study is aiming to achieve in terms of a scientific question to be answered by the analysis of data collected during the study.", 0, java.lang.Integer.MAX_VALUE, objective); + case -1510689364: /*outcomeMeasure*/ return new Property("outcomeMeasure", "", "An outcome or planned variable to measure during the study.", 0, java.lang.Integer.MAX_VALUE, outcomeMeasure); + case -934426595: /*result*/ return new Property("result", "Reference(EvidenceReport|Citation|DiagnosticReport)", "Link to one or more sets of results generated by the study. Could also link to a research registry holding the results such as ClinicalTrials.gov.", 0, java.lang.Integer.MAX_VALUE, result); + case -828032215: /*webLocation*/ return new Property("webLocation", "", "A general storage or archive location for the study. This may contain an assortment of content which is not specified in advance.", 0, java.lang.Integer.MAX_VALUE, webLocation); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -2156,30 +5303,43 @@ public class ResearchStudy extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { + case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier + case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType + case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType + case 102727412: /*label*/ return this.label == null ? new Base[0] : this.label.toArray(new Base[this.label.size()]); // ResearchStudyLabelComponent case -989163880: /*protocol*/ return this.protocol == null ? new Base[0] : this.protocol.toArray(new Base[this.protocol.size()]); // Reference case -995410646: /*partOf*/ return this.partOf == null ? new Base[0] : this.partOf.toArray(new Base[this.partOf.size()]); // Reference - case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration + case 666807069: /*relatedArtifact*/ return this.relatedArtifact == null ? new Base[0] : this.relatedArtifact.toArray(new Base[this.relatedArtifact.size()]); // RelatedArtifact + case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType + case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration case -2132842986: /*primaryPurposeType*/ return this.primaryPurposeType == null ? new Base[0] : new Base[] {this.primaryPurposeType}; // CodeableConcept case 106629499: /*phase*/ return this.phase == null ? new Base[0] : new Base[] {this.phase}; // CodeableConcept case 50511102: /*category*/ return this.category == null ? new Base[0] : this.category.toArray(new Base[this.category.size()]); // CodeableConcept - case 97604824: /*focus*/ return this.focus == null ? new Base[0] : this.focus.toArray(new Base[this.focus.size()]); // CodeableConcept + case 97604824: /*focus*/ return this.focus == null ? new Base[0] : this.focus.toArray(new Base[this.focus.size()]); // ResearchStudyFocusComponent case -861311717: /*condition*/ return this.condition == null ? new Base[0] : this.condition.toArray(new Base[this.condition.size()]); // CodeableConcept - case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail - case 666807069: /*relatedArtifact*/ return this.relatedArtifact == null ? new Base[0] : this.relatedArtifact.toArray(new Base[this.relatedArtifact.size()]); // RelatedArtifact case -814408215: /*keyword*/ return this.keyword == null ? new Base[0] : this.keyword.toArray(new Base[this.keyword.size()]); // CodeableConcept case 1901043637: /*location*/ return this.location == null ? new Base[0] : this.location.toArray(new Base[this.location.size()]); // CodeableConcept + case 21530634: /*descriptionSummary*/ return this.descriptionSummary == null ? new Base[0] : new Base[] {this.descriptionSummary}; // MarkdownType case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType - case 116089604: /*enrollment*/ return this.enrollment == null ? new Base[0] : this.enrollment.toArray(new Base[this.enrollment.size()]); // Reference case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period + case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail case -1998892262: /*sponsor*/ return this.sponsor == null ? new Base[0] : new Base[] {this.sponsor}; // Reference case 1437117175: /*principalInvestigator*/ return this.principalInvestigator == null ? new Base[0] : new Base[] {this.principalInvestigator}; // Reference case 3530567: /*site*/ return this.site == null ? new Base[0] : this.site.toArray(new Base[this.site.size()]); // Reference - case 1181369065: /*reasonStopped*/ return this.reasonStopped == null ? new Base[0] : new Base[] {this.reasonStopped}; // CodeableConcept case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation - case 96860: /*arm*/ return this.arm == null ? new Base[0] : this.arm.toArray(new Base[this.arm.size()]); // ResearchStudyArmComponent + case 382350310: /*classification*/ return this.classification == null ? new Base[0] : this.classification.toArray(new Base[this.classification.size()]); // ResearchStudyClassificationComponent + case -1841460864: /*associatedParty*/ return this.associatedParty == null ? new Base[0] : this.associatedParty.toArray(new Base[this.associatedParty.size()]); // ResearchStudyAssociatedPartyComponent + case 1457822360: /*currentState*/ return this.currentState == null ? new Base[0] : this.currentState.toArray(new Base[this.currentState.size()]); // CodeableConcept + case 247524032: /*statusDate*/ return this.statusDate == null ? new Base[0] : this.statusDate.toArray(new Base[this.statusDate.size()]); // ResearchStudyStatusDateComponent + case -699986715: /*whyStopped*/ return this.whyStopped == null ? new Base[0] : new Base[] {this.whyStopped}; // CodeableConcept + case 780783004: /*recruitment*/ return this.recruitment == null ? new Base[0] : new Base[] {this.recruitment}; // ResearchStudyRecruitmentComponent + case -138266634: /*comparisonGroup*/ return this.comparisonGroup == null ? new Base[0] : this.comparisonGroup.toArray(new Base[this.comparisonGroup.size()]); // ResearchStudyComparisonGroupComponent case -1489585863: /*objective*/ return this.objective == null ? new Base[0] : this.objective.toArray(new Base[this.objective.size()]); // ResearchStudyObjectiveComponent + case -1510689364: /*outcomeMeasure*/ return this.outcomeMeasure == null ? new Base[0] : this.outcomeMeasure.toArray(new Base[this.outcomeMeasure.size()]); // ResearchStudyOutcomeMeasureComponent + case -934426595: /*result*/ return this.result == null ? new Base[0] : this.result.toArray(new Base[this.result.size()]); // Reference + case -828032215: /*webLocation*/ return this.webLocation == null ? new Base[0] : this.webLocation.toArray(new Base[this.webLocation.size()]); // ResearchStudyWebLocationComponent default: return super.getProperty(hash, name, checkValid); } @@ -2188,21 +5348,39 @@ public class ResearchStudy extends DomainResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { + case 116079: // url + this.url = TypeConvertor.castToUri(value); // UriType + return value; case -1618432855: // identifier this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier return value; + case 351608024: // version + this.version = TypeConvertor.castToString(value); // StringType + return value; + case 3373707: // name + this.name = TypeConvertor.castToString(value); // StringType + return value; case 110371416: // title this.title = TypeConvertor.castToString(value); // StringType return value; + case 102727412: // label + this.getLabel().add((ResearchStudyLabelComponent) value); // ResearchStudyLabelComponent + return value; case -989163880: // protocol this.getProtocol().add(TypeConvertor.castToReference(value)); // Reference return value; case -995410646: // partOf this.getPartOf().add(TypeConvertor.castToReference(value)); // Reference return value; + case 666807069: // relatedArtifact + this.getRelatedArtifact().add(TypeConvertor.castToRelatedArtifact(value)); // RelatedArtifact + return value; + case 3076014: // date + this.date = TypeConvertor.castToDateTime(value); // DateTimeType + return value; case -892481550: // status - value = new ResearchStudyStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.status = (Enumeration) value; // Enumeration + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration return value; case -2132842986: // primaryPurposeType this.primaryPurposeType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept @@ -2214,32 +5392,29 @@ public class ResearchStudy extends DomainResource { this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept return value; case 97604824: // focus - this.getFocus().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + this.getFocus().add((ResearchStudyFocusComponent) value); // ResearchStudyFocusComponent return value; case -861311717: // condition this.getCondition().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept return value; - case 951526432: // contact - this.getContact().add(TypeConvertor.castToContactDetail(value)); // ContactDetail - return value; - case 666807069: // relatedArtifact - this.getRelatedArtifact().add(TypeConvertor.castToRelatedArtifact(value)); // RelatedArtifact - return value; case -814408215: // keyword this.getKeyword().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept return value; case 1901043637: // location this.getLocation().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept return value; + case 21530634: // descriptionSummary + this.descriptionSummary = TypeConvertor.castToMarkdown(value); // MarkdownType + return value; case -1724546052: // description this.description = TypeConvertor.castToMarkdown(value); // MarkdownType return value; - case 116089604: // enrollment - this.getEnrollment().add(TypeConvertor.castToReference(value)); // Reference - return value; case -991726143: // period this.period = TypeConvertor.castToPeriod(value); // Period return value; + case 951526432: // contact + this.getContact().add(TypeConvertor.castToContactDetail(value)); // ContactDetail + return value; case -1998892262: // sponsor this.sponsor = TypeConvertor.castToReference(value); // Reference return value; @@ -2249,18 +5424,42 @@ public class ResearchStudy extends DomainResource { case 3530567: // site this.getSite().add(TypeConvertor.castToReference(value)); // Reference return value; - case 1181369065: // reasonStopped - this.reasonStopped = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - return value; case 3387378: // note this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation return value; - case 96860: // arm - this.getArm().add((ResearchStudyArmComponent) value); // ResearchStudyArmComponent + case 382350310: // classification + this.getClassification().add((ResearchStudyClassificationComponent) value); // ResearchStudyClassificationComponent + return value; + case -1841460864: // associatedParty + this.getAssociatedParty().add((ResearchStudyAssociatedPartyComponent) value); // ResearchStudyAssociatedPartyComponent + return value; + case 1457822360: // currentState + this.getCurrentState().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + case 247524032: // statusDate + this.getStatusDate().add((ResearchStudyStatusDateComponent) value); // ResearchStudyStatusDateComponent + return value; + case -699986715: // whyStopped + this.whyStopped = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 780783004: // recruitment + this.recruitment = (ResearchStudyRecruitmentComponent) value; // ResearchStudyRecruitmentComponent + return value; + case -138266634: // comparisonGroup + this.getComparisonGroup().add((ResearchStudyComparisonGroupComponent) value); // ResearchStudyComparisonGroupComponent return value; case -1489585863: // objective this.getObjective().add((ResearchStudyObjectiveComponent) value); // ResearchStudyObjectiveComponent return value; + case -1510689364: // outcomeMeasure + this.getOutcomeMeasure().add((ResearchStudyOutcomeMeasureComponent) value); // ResearchStudyOutcomeMeasureComponent + return value; + case -934426595: // result + this.getResult().add(TypeConvertor.castToReference(value)); // Reference + return value; + case -828032215: // webLocation + this.getWebLocation().add((ResearchStudyWebLocationComponent) value); // ResearchStudyWebLocationComponent + return value; default: return super.setProperty(hash, name, value); } @@ -2268,17 +5467,29 @@ public class ResearchStudy extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("identifier")) { + if (name.equals("url")) { + this.url = TypeConvertor.castToUri(value); // UriType + } else if (name.equals("identifier")) { this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); + } else if (name.equals("version")) { + this.version = TypeConvertor.castToString(value); // StringType + } else if (name.equals("name")) { + this.name = TypeConvertor.castToString(value); // StringType } else if (name.equals("title")) { this.title = TypeConvertor.castToString(value); // StringType + } else if (name.equals("label")) { + this.getLabel().add((ResearchStudyLabelComponent) value); } else if (name.equals("protocol")) { this.getProtocol().add(TypeConvertor.castToReference(value)); } else if (name.equals("partOf")) { this.getPartOf().add(TypeConvertor.castToReference(value)); + } else if (name.equals("relatedArtifact")) { + this.getRelatedArtifact().add(TypeConvertor.castToRelatedArtifact(value)); + } else if (name.equals("date")) { + this.date = TypeConvertor.castToDateTime(value); // DateTimeType } else if (name.equals("status")) { - value = new ResearchStudyStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.status = (Enumeration) value; // Enumeration + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration } else if (name.equals("primaryPurposeType")) { this.primaryPurposeType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("phase")) { @@ -2286,37 +5497,51 @@ public class ResearchStudy extends DomainResource { } else if (name.equals("category")) { this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); } else if (name.equals("focus")) { - this.getFocus().add(TypeConvertor.castToCodeableConcept(value)); + this.getFocus().add((ResearchStudyFocusComponent) value); } else if (name.equals("condition")) { this.getCondition().add(TypeConvertor.castToCodeableConcept(value)); - } else if (name.equals("contact")) { - this.getContact().add(TypeConvertor.castToContactDetail(value)); - } else if (name.equals("relatedArtifact")) { - this.getRelatedArtifact().add(TypeConvertor.castToRelatedArtifact(value)); } else if (name.equals("keyword")) { this.getKeyword().add(TypeConvertor.castToCodeableConcept(value)); } else if (name.equals("location")) { this.getLocation().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("descriptionSummary")) { + this.descriptionSummary = TypeConvertor.castToMarkdown(value); // MarkdownType } else if (name.equals("description")) { this.description = TypeConvertor.castToMarkdown(value); // MarkdownType - } else if (name.equals("enrollment")) { - this.getEnrollment().add(TypeConvertor.castToReference(value)); } else if (name.equals("period")) { this.period = TypeConvertor.castToPeriod(value); // Period + } else if (name.equals("contact")) { + this.getContact().add(TypeConvertor.castToContactDetail(value)); } else if (name.equals("sponsor")) { this.sponsor = TypeConvertor.castToReference(value); // Reference } else if (name.equals("principalInvestigator")) { this.principalInvestigator = TypeConvertor.castToReference(value); // Reference } else if (name.equals("site")) { this.getSite().add(TypeConvertor.castToReference(value)); - } else if (name.equals("reasonStopped")) { - this.reasonStopped = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("note")) { this.getNote().add(TypeConvertor.castToAnnotation(value)); - } else if (name.equals("arm")) { - this.getArm().add((ResearchStudyArmComponent) value); + } else if (name.equals("classification")) { + this.getClassification().add((ResearchStudyClassificationComponent) value); + } else if (name.equals("associatedParty")) { + this.getAssociatedParty().add((ResearchStudyAssociatedPartyComponent) value); + } else if (name.equals("currentState")) { + this.getCurrentState().add(TypeConvertor.castToCodeableConcept(value)); + } else if (name.equals("statusDate")) { + this.getStatusDate().add((ResearchStudyStatusDateComponent) value); + } else if (name.equals("whyStopped")) { + this.whyStopped = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("recruitment")) { + this.recruitment = (ResearchStudyRecruitmentComponent) value; // ResearchStudyRecruitmentComponent + } else if (name.equals("comparisonGroup")) { + this.getComparisonGroup().add((ResearchStudyComparisonGroupComponent) value); } else if (name.equals("objective")) { this.getObjective().add((ResearchStudyObjectiveComponent) value); + } else if (name.equals("outcomeMeasure")) { + this.getOutcomeMeasure().add((ResearchStudyOutcomeMeasureComponent) value); + } else if (name.equals("result")) { + this.getResult().add(TypeConvertor.castToReference(value)); + } else if (name.equals("webLocation")) { + this.getWebLocation().add((ResearchStudyWebLocationComponent) value); } else return super.setProperty(name, value); return value; @@ -2325,30 +5550,43 @@ public class ResearchStudy extends DomainResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { + case 116079: return getUrlElement(); case -1618432855: return addIdentifier(); + case 351608024: return getVersionElement(); + case 3373707: return getNameElement(); case 110371416: return getTitleElement(); + case 102727412: return addLabel(); case -989163880: return addProtocol(); case -995410646: return addPartOf(); + case 666807069: return addRelatedArtifact(); + case 3076014: return getDateElement(); case -892481550: return getStatusElement(); case -2132842986: return getPrimaryPurposeType(); case 106629499: return getPhase(); case 50511102: return addCategory(); case 97604824: return addFocus(); case -861311717: return addCondition(); - case 951526432: return addContact(); - case 666807069: return addRelatedArtifact(); case -814408215: return addKeyword(); case 1901043637: return addLocation(); + case 21530634: return getDescriptionSummaryElement(); case -1724546052: return getDescriptionElement(); - case 116089604: return addEnrollment(); case -991726143: return getPeriod(); + case 951526432: return addContact(); case -1998892262: return getSponsor(); case 1437117175: return getPrincipalInvestigator(); case 3530567: return addSite(); - case 1181369065: return getReasonStopped(); case 3387378: return addNote(); - case 96860: return addArm(); + case 382350310: return addClassification(); + case -1841460864: return addAssociatedParty(); + case 1457822360: return addCurrentState(); + case 247524032: return addStatusDate(); + case -699986715: return getWhyStopped(); + case 780783004: return getRecruitment(); + case -138266634: return addComparisonGroup(); case -1489585863: return addObjective(); + case -1510689364: return addOutcomeMeasure(); + case -934426595: return addResult(); + case -828032215: return addWebLocation(); default: return super.makeProperty(hash, name); } @@ -2357,30 +5595,43 @@ public class ResearchStudy extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { + case 116079: /*url*/ return new String[] {"uri"}; case -1618432855: /*identifier*/ return new String[] {"Identifier"}; + case 351608024: /*version*/ return new String[] {"string"}; + case 3373707: /*name*/ return new String[] {"string"}; case 110371416: /*title*/ return new String[] {"string"}; + case 102727412: /*label*/ return new String[] {}; case -989163880: /*protocol*/ return new String[] {"Reference"}; case -995410646: /*partOf*/ return new String[] {"Reference"}; + case 666807069: /*relatedArtifact*/ return new String[] {"RelatedArtifact"}; + case 3076014: /*date*/ return new String[] {"dateTime"}; case -892481550: /*status*/ return new String[] {"code"}; case -2132842986: /*primaryPurposeType*/ return new String[] {"CodeableConcept"}; case 106629499: /*phase*/ return new String[] {"CodeableConcept"}; case 50511102: /*category*/ return new String[] {"CodeableConcept"}; - case 97604824: /*focus*/ return new String[] {"CodeableConcept"}; + case 97604824: /*focus*/ return new String[] {}; case -861311717: /*condition*/ return new String[] {"CodeableConcept"}; - case 951526432: /*contact*/ return new String[] {"ContactDetail"}; - case 666807069: /*relatedArtifact*/ return new String[] {"RelatedArtifact"}; case -814408215: /*keyword*/ return new String[] {"CodeableConcept"}; case 1901043637: /*location*/ return new String[] {"CodeableConcept"}; + case 21530634: /*descriptionSummary*/ return new String[] {"markdown"}; case -1724546052: /*description*/ return new String[] {"markdown"}; - case 116089604: /*enrollment*/ return new String[] {"Reference"}; case -991726143: /*period*/ return new String[] {"Period"}; + case 951526432: /*contact*/ return new String[] {"ContactDetail"}; case -1998892262: /*sponsor*/ return new String[] {"Reference"}; case 1437117175: /*principalInvestigator*/ return new String[] {"Reference"}; case 3530567: /*site*/ return new String[] {"Reference"}; - case 1181369065: /*reasonStopped*/ return new String[] {"CodeableConcept"}; case 3387378: /*note*/ return new String[] {"Annotation"}; - case 96860: /*arm*/ return new String[] {}; + case 382350310: /*classification*/ return new String[] {}; + case -1841460864: /*associatedParty*/ return new String[] {}; + case 1457822360: /*currentState*/ return new String[] {"CodeableConcept"}; + case 247524032: /*statusDate*/ return new String[] {}; + case -699986715: /*whyStopped*/ return new String[] {"CodeableConcept"}; + case 780783004: /*recruitment*/ return new String[] {}; + case -138266634: /*comparisonGroup*/ return new String[] {}; case -1489585863: /*objective*/ return new String[] {}; + case -1510689364: /*outcomeMeasure*/ return new String[] {}; + case -934426595: /*result*/ return new String[] {"Reference"}; + case -828032215: /*webLocation*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -2388,18 +5639,36 @@ public class ResearchStudy extends DomainResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("identifier")) { + if (name.equals("url")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.url"); + } + else if (name.equals("identifier")) { return addIdentifier(); } + else if (name.equals("version")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.version"); + } + else if (name.equals("name")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.name"); + } else if (name.equals("title")) { throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.title"); } + else if (name.equals("label")) { + return addLabel(); + } else if (name.equals("protocol")) { return addProtocol(); } else if (name.equals("partOf")) { return addPartOf(); } + else if (name.equals("relatedArtifact")) { + return addRelatedArtifact(); + } + else if (name.equals("date")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.date"); + } else if (name.equals("status")) { throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.status"); } @@ -2420,28 +5689,25 @@ public class ResearchStudy extends DomainResource { else if (name.equals("condition")) { return addCondition(); } - else if (name.equals("contact")) { - return addContact(); - } - else if (name.equals("relatedArtifact")) { - return addRelatedArtifact(); - } else if (name.equals("keyword")) { return addKeyword(); } else if (name.equals("location")) { return addLocation(); } + else if (name.equals("descriptionSummary")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.descriptionSummary"); + } else if (name.equals("description")) { throw new FHIRException("Cannot call addChild on a primitive type ResearchStudy.description"); } - else if (name.equals("enrollment")) { - return addEnrollment(); - } else if (name.equals("period")) { this.period = new Period(); return this.period; } + else if (name.equals("contact")) { + return addContact(); + } else if (name.equals("sponsor")) { this.sponsor = new Reference(); return this.sponsor; @@ -2453,19 +5719,44 @@ public class ResearchStudy extends DomainResource { else if (name.equals("site")) { return addSite(); } - else if (name.equals("reasonStopped")) { - this.reasonStopped = new CodeableConcept(); - return this.reasonStopped; - } else if (name.equals("note")) { return addNote(); } - else if (name.equals("arm")) { - return addArm(); + else if (name.equals("classification")) { + return addClassification(); + } + else if (name.equals("associatedParty")) { + return addAssociatedParty(); + } + else if (name.equals("currentState")) { + return addCurrentState(); + } + else if (name.equals("statusDate")) { + return addStatusDate(); + } + else if (name.equals("whyStopped")) { + this.whyStopped = new CodeableConcept(); + return this.whyStopped; + } + else if (name.equals("recruitment")) { + this.recruitment = new ResearchStudyRecruitmentComponent(); + return this.recruitment; + } + else if (name.equals("comparisonGroup")) { + return addComparisonGroup(); } else if (name.equals("objective")) { return addObjective(); } + else if (name.equals("outcomeMeasure")) { + return addOutcomeMeasure(); + } + else if (name.equals("result")) { + return addResult(); + } + else if (name.equals("webLocation")) { + return addWebLocation(); + } else return super.addChild(name); } @@ -2483,12 +5774,20 @@ public class ResearchStudy extends DomainResource { public void copyValues(ResearchStudy dst) { super.copyValues(dst); + dst.url = url == null ? null : url.copy(); if (identifier != null) { dst.identifier = new ArrayList(); for (Identifier i : identifier) dst.identifier.add(i.copy()); }; + dst.version = version == null ? null : version.copy(); + dst.name = name == null ? null : name.copy(); dst.title = title == null ? null : title.copy(); + if (label != null) { + dst.label = new ArrayList(); + for (ResearchStudyLabelComponent i : label) + dst.label.add(i.copy()); + }; if (protocol != null) { dst.protocol = new ArrayList(); for (Reference i : protocol) @@ -2499,6 +5798,12 @@ public class ResearchStudy extends DomainResource { for (Reference i : partOf) dst.partOf.add(i.copy()); }; + if (relatedArtifact != null) { + dst.relatedArtifact = new ArrayList(); + for (RelatedArtifact i : relatedArtifact) + dst.relatedArtifact.add(i.copy()); + }; + dst.date = date == null ? null : date.copy(); dst.status = status == null ? null : status.copy(); dst.primaryPurposeType = primaryPurposeType == null ? null : primaryPurposeType.copy(); dst.phase = phase == null ? null : phase.copy(); @@ -2508,8 +5813,8 @@ public class ResearchStudy extends DomainResource { dst.category.add(i.copy()); }; if (focus != null) { - dst.focus = new ArrayList(); - for (CodeableConcept i : focus) + dst.focus = new ArrayList(); + for (ResearchStudyFocusComponent i : focus) dst.focus.add(i.copy()); }; if (condition != null) { @@ -2517,16 +5822,6 @@ public class ResearchStudy extends DomainResource { for (CodeableConcept i : condition) dst.condition.add(i.copy()); }; - if (contact != null) { - dst.contact = new ArrayList(); - for (ContactDetail i : contact) - dst.contact.add(i.copy()); - }; - if (relatedArtifact != null) { - dst.relatedArtifact = new ArrayList(); - for (RelatedArtifact i : relatedArtifact) - dst.relatedArtifact.add(i.copy()); - }; if (keyword != null) { dst.keyword = new ArrayList(); for (CodeableConcept i : keyword) @@ -2537,13 +5832,14 @@ public class ResearchStudy extends DomainResource { for (CodeableConcept i : location) dst.location.add(i.copy()); }; + dst.descriptionSummary = descriptionSummary == null ? null : descriptionSummary.copy(); dst.description = description == null ? null : description.copy(); - if (enrollment != null) { - dst.enrollment = new ArrayList(); - for (Reference i : enrollment) - dst.enrollment.add(i.copy()); - }; dst.period = period == null ? null : period.copy(); + if (contact != null) { + dst.contact = new ArrayList(); + for (ContactDetail i : contact) + dst.contact.add(i.copy()); + }; dst.sponsor = sponsor == null ? null : sponsor.copy(); dst.principalInvestigator = principalInvestigator == null ? null : principalInvestigator.copy(); if (site != null) { @@ -2551,22 +5847,58 @@ public class ResearchStudy extends DomainResource { for (Reference i : site) dst.site.add(i.copy()); }; - dst.reasonStopped = reasonStopped == null ? null : reasonStopped.copy(); if (note != null) { dst.note = new ArrayList(); for (Annotation i : note) dst.note.add(i.copy()); }; - if (arm != null) { - dst.arm = new ArrayList(); - for (ResearchStudyArmComponent i : arm) - dst.arm.add(i.copy()); + if (classification != null) { + dst.classification = new ArrayList(); + for (ResearchStudyClassificationComponent i : classification) + dst.classification.add(i.copy()); + }; + if (associatedParty != null) { + dst.associatedParty = new ArrayList(); + for (ResearchStudyAssociatedPartyComponent i : associatedParty) + dst.associatedParty.add(i.copy()); + }; + if (currentState != null) { + dst.currentState = new ArrayList(); + for (CodeableConcept i : currentState) + dst.currentState.add(i.copy()); + }; + if (statusDate != null) { + dst.statusDate = new ArrayList(); + for (ResearchStudyStatusDateComponent i : statusDate) + dst.statusDate.add(i.copy()); + }; + dst.whyStopped = whyStopped == null ? null : whyStopped.copy(); + dst.recruitment = recruitment == null ? null : recruitment.copy(); + if (comparisonGroup != null) { + dst.comparisonGroup = new ArrayList(); + for (ResearchStudyComparisonGroupComponent i : comparisonGroup) + dst.comparisonGroup.add(i.copy()); }; if (objective != null) { dst.objective = new ArrayList(); for (ResearchStudyObjectiveComponent i : objective) dst.objective.add(i.copy()); }; + if (outcomeMeasure != null) { + dst.outcomeMeasure = new ArrayList(); + for (ResearchStudyOutcomeMeasureComponent i : outcomeMeasure) + dst.outcomeMeasure.add(i.copy()); + }; + if (result != null) { + dst.result = new ArrayList(); + for (Reference i : result) + dst.result.add(i.copy()); + }; + if (webLocation != null) { + dst.webLocation = new ArrayList(); + for (ResearchStudyWebLocationComponent i : webLocation) + dst.webLocation.add(i.copy()); + }; } protected ResearchStudy typedCopy() { @@ -2580,15 +5912,21 @@ public class ResearchStudy extends DomainResource { if (!(other_ instanceof ResearchStudy)) return false; ResearchStudy o = (ResearchStudy) other_; - return compareDeep(identifier, o.identifier, true) && compareDeep(title, o.title, true) && compareDeep(protocol, o.protocol, true) - && compareDeep(partOf, o.partOf, true) && compareDeep(status, o.status, true) && compareDeep(primaryPurposeType, o.primaryPurposeType, true) + return compareDeep(url, o.url, true) && compareDeep(identifier, o.identifier, true) && compareDeep(version, o.version, true) + && compareDeep(name, o.name, true) && compareDeep(title, o.title, true) && compareDeep(label, o.label, true) + && compareDeep(protocol, o.protocol, true) && compareDeep(partOf, o.partOf, true) && compareDeep(relatedArtifact, o.relatedArtifact, true) + && compareDeep(date, o.date, true) && compareDeep(status, o.status, true) && compareDeep(primaryPurposeType, o.primaryPurposeType, true) && compareDeep(phase, o.phase, true) && compareDeep(category, o.category, true) && compareDeep(focus, o.focus, true) - && compareDeep(condition, o.condition, true) && compareDeep(contact, o.contact, true) && compareDeep(relatedArtifact, o.relatedArtifact, true) - && compareDeep(keyword, o.keyword, true) && compareDeep(location, o.location, true) && compareDeep(description, o.description, true) - && compareDeep(enrollment, o.enrollment, true) && compareDeep(period, o.period, true) && compareDeep(sponsor, o.sponsor, true) + && compareDeep(condition, o.condition, true) && compareDeep(keyword, o.keyword, true) && compareDeep(location, o.location, true) + && compareDeep(descriptionSummary, o.descriptionSummary, true) && compareDeep(description, o.description, true) + && compareDeep(period, o.period, true) && compareDeep(contact, o.contact, true) && compareDeep(sponsor, o.sponsor, true) && compareDeep(principalInvestigator, o.principalInvestigator, true) && compareDeep(site, o.site, true) - && compareDeep(reasonStopped, o.reasonStopped, true) && compareDeep(note, o.note, true) && compareDeep(arm, o.arm, true) - && compareDeep(objective, o.objective, true); + && compareDeep(note, o.note, true) && compareDeep(classification, o.classification, true) && compareDeep(associatedParty, o.associatedParty, true) + && compareDeep(currentState, o.currentState, true) && compareDeep(statusDate, o.statusDate, true) + && compareDeep(whyStopped, o.whyStopped, true) && compareDeep(recruitment, o.recruitment, true) + && compareDeep(comparisonGroup, o.comparisonGroup, true) && compareDeep(objective, o.objective, true) + && compareDeep(outcomeMeasure, o.outcomeMeasure, true) && compareDeep(result, o.result, true) && compareDeep(webLocation, o.webLocation, true) + ; } @Override @@ -2598,15 +5936,19 @@ public class ResearchStudy extends DomainResource { if (!(other_ instanceof ResearchStudy)) return false; ResearchStudy o = (ResearchStudy) other_; - return compareValues(title, o.title, true) && compareValues(status, o.status, true) && compareValues(description, o.description, true) + return compareValues(url, o.url, true) && compareValues(version, o.version, true) && compareValues(name, o.name, true) + && compareValues(title, o.title, true) && compareValues(date, o.date, true) && compareValues(status, o.status, true) + && compareValues(descriptionSummary, o.descriptionSummary, true) && compareValues(description, o.description, true) ; } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, title, protocol - , partOf, status, primaryPurposeType, phase, category, focus, condition, contact - , relatedArtifact, keyword, location, description, enrollment, period, sponsor - , principalInvestigator, site, reasonStopped, note, arm, objective); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, identifier, version + , name, title, label, protocol, partOf, relatedArtifact, date, status, primaryPurposeType + , phase, category, focus, condition, keyword, location, descriptionSummary, description + , period, contact, sponsor, principalInvestigator, site, note, classification + , associatedParty, currentState, statusDate, whyStopped, recruitment, comparisonGroup + , objective, outcomeMeasure, result, webLocation); } @Override @@ -2634,6 +5976,26 @@ public class ResearchStudy extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CATEGORY); + /** + * Search parameter: condition + *

+ * Description: Condition being studied
+ * Type: token
+ * Path: ResearchStudy.condition
+ *

+ */ + @SearchParamDefinition(name="condition", path="ResearchStudy.condition", description="Condition being studied", type="token" ) + public static final String SP_CONDITION = "condition"; + /** + * Fluent Client search parameter constant for condition + *

+ * Description: Condition being studied
+ * Type: token
+ * Path: ResearchStudy.condition
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONDITION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONDITION); + /** * Search parameter: date *

@@ -2812,6 +6174,46 @@ public class ResearchStudy extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_PROTOCOL = new ca.uhn.fhir.model.api.Include("ResearchStudy:protocol").toLocked(); + /** + * Search parameter: recruitment_actual + *

+ * Description: Actual number of participants enrolled in study across all groups
+ * Type: number
+ * Path: ResearchStudy.recruitment.actualNumber
+ *

+ */ + @SearchParamDefinition(name="recruitment_actual", path="ResearchStudy.recruitment.actualNumber", description="Actual number of participants enrolled in study across all groups", type="number" ) + public static final String SP_RECRUITMENTACTUAL = "recruitment_actual"; + /** + * Fluent Client search parameter constant for recruitment_actual + *

+ * Description: Actual number of participants enrolled in study across all groups
+ * Type: number
+ * Path: ResearchStudy.recruitment.actualNumber
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.NumberClientParam RECRUITMENTACTUAL = new ca.uhn.fhir.rest.gclient.NumberClientParam(SP_RECRUITMENTACTUAL); + + /** + * Search parameter: recruitment_target + *

+ * Description: Target number of participants enrolled in study across all groups
+ * Type: number
+ * Path: ResearchStudy.recruitment.targetNumber
+ *

+ */ + @SearchParamDefinition(name="recruitment_target", path="ResearchStudy.recruitment.targetNumber", description="Target number of participants enrolled in study across all groups", type="number" ) + public static final String SP_RECRUITMENTTARGET = "recruitment_target"; + /** + * Fluent Client search parameter constant for recruitment_target + *

+ * Description: Target number of participants enrolled in study across all groups
+ * Type: number
+ * Path: ResearchStudy.recruitment.targetNumber
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.NumberClientParam RECRUITMENTTARGET = new ca.uhn.fhir.rest.gclient.NumberClientParam(SP_RECRUITMENTTARGET); + /** * Search parameter: site *

@@ -2820,7 +6222,7 @@ public class ResearchStudy extends DomainResource { * Path: ResearchStudy.site
*

*/ - @SearchParamDefinition(name="site", path="ResearchStudy.site", description="Facility where study activities are conducted", type="reference", target={Location.class } ) + @SearchParamDefinition(name="site", path="ResearchStudy.site", description="Facility where study activities are conducted", type="reference", target={Location.class, Organization.class, ResearchStudy.class } ) public static final String SP_SITE = "site"; /** * Fluent Client search parameter constant for site diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchSubject.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchSubject.java index 30b8df364..b6d1a172d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchSubject.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResearchSubject.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -53,295 +53,23 @@ import ca.uhn.fhir.model.api.annotation.Block; @ResourceDef(name="ResearchSubject", profile="http://hl7.org/fhir/StructureDefinition/ResearchSubject") public class ResearchSubject extends DomainResource { - public enum ResearchSubjectStatus { - /** - * An identified person that can be considered for inclusion in a study. - */ - CANDIDATE, - /** - * A person that has met the eligibility criteria for inclusion in a study. - */ - ELIGIBLE, - /** - * A person is no longer receiving study intervention and/or being evaluated with tests and procedures according to the protocol, but they are being monitored on a protocol-prescribed schedule. - */ - FOLLOWUP, - /** - * A person who did not meet one or more criteria required for participation in a study is considered to have failed screening or\nis ineligible for the study. - */ - INELIGIBLE, - /** - * A person for whom registration was not completed. - */ - NOTREGISTERED, - /** - * A person that has ended their participation on a study either because their treatment/observation is complete or through not\nresponding, withdrawal, non-compliance and/or adverse event. - */ - OFFSTUDY, - /** - * A person that is enrolled or registered on a study. - */ - ONSTUDY, - /** - * The person is receiving the treatment or participating in an activity (e.g. yoga, diet, etc.) that the study is evaluating. - */ - ONSTUDYINTERVENTION, - /** - * The subject is being evaluated via tests and assessments according to the study calendar, but is not receiving any intervention. Note that this state is study-dependent and might not exist in all studies. A synonym for this is \"short-term follow-up\". - */ - ONSTUDYOBSERVATION, - /** - * A person is pre-registered for a study. - */ - PENDINGONSTUDY, - /** - * A person that is potentially eligible for participation in the study. - */ - POTENTIALCANDIDATE, - /** - * A person who is being evaluated for eligibility for a study. - */ - SCREENING, - /** - * The person has withdrawn their participation in the study before registration. - */ - WITHDRAWN, - /** - * added to help the parsers with the generic types - */ - NULL; - public static ResearchSubjectStatus fromCode(String codeString) throws FHIRException { - if (codeString == null || "".equals(codeString)) - return null; - if ("candidate".equals(codeString)) - return CANDIDATE; - if ("eligible".equals(codeString)) - return ELIGIBLE; - if ("follow-up".equals(codeString)) - return FOLLOWUP; - if ("ineligible".equals(codeString)) - return INELIGIBLE; - if ("not-registered".equals(codeString)) - return NOTREGISTERED; - if ("off-study".equals(codeString)) - return OFFSTUDY; - if ("on-study".equals(codeString)) - return ONSTUDY; - if ("on-study-intervention".equals(codeString)) - return ONSTUDYINTERVENTION; - if ("on-study-observation".equals(codeString)) - return ONSTUDYOBSERVATION; - if ("pending-on-study".equals(codeString)) - return PENDINGONSTUDY; - if ("potential-candidate".equals(codeString)) - return POTENTIALCANDIDATE; - if ("screening".equals(codeString)) - return SCREENING; - if ("withdrawn".equals(codeString)) - return WITHDRAWN; - if (Configuration.isAcceptInvalidEnums()) - return null; - else - throw new FHIRException("Unknown ResearchSubjectStatus code '"+codeString+"'"); - } - public String toCode() { - switch (this) { - case CANDIDATE: return "candidate"; - case ELIGIBLE: return "eligible"; - case FOLLOWUP: return "follow-up"; - case INELIGIBLE: return "ineligible"; - case NOTREGISTERED: return "not-registered"; - case OFFSTUDY: return "off-study"; - case ONSTUDY: return "on-study"; - case ONSTUDYINTERVENTION: return "on-study-intervention"; - case ONSTUDYOBSERVATION: return "on-study-observation"; - case PENDINGONSTUDY: return "pending-on-study"; - case POTENTIALCANDIDATE: return "potential-candidate"; - case SCREENING: return "screening"; - case WITHDRAWN: return "withdrawn"; - case NULL: return null; - default: return "?"; - } - } - public String getSystem() { - switch (this) { - case CANDIDATE: return "http://hl7.org/fhir/research-subject-status"; - case ELIGIBLE: return "http://hl7.org/fhir/research-subject-status"; - case FOLLOWUP: return "http://hl7.org/fhir/research-subject-status"; - case INELIGIBLE: return "http://hl7.org/fhir/research-subject-status"; - case NOTREGISTERED: return "http://hl7.org/fhir/research-subject-status"; - case OFFSTUDY: return "http://hl7.org/fhir/research-subject-status"; - case ONSTUDY: return "http://hl7.org/fhir/research-subject-status"; - case ONSTUDYINTERVENTION: return "http://hl7.org/fhir/research-subject-status"; - case ONSTUDYOBSERVATION: return "http://hl7.org/fhir/research-subject-status"; - case PENDINGONSTUDY: return "http://hl7.org/fhir/research-subject-status"; - case POTENTIALCANDIDATE: return "http://hl7.org/fhir/research-subject-status"; - case SCREENING: return "http://hl7.org/fhir/research-subject-status"; - case WITHDRAWN: return "http://hl7.org/fhir/research-subject-status"; - case NULL: return null; - default: return "?"; - } - } - public String getDefinition() { - switch (this) { - case CANDIDATE: return "An identified person that can be considered for inclusion in a study."; - case ELIGIBLE: return "A person that has met the eligibility criteria for inclusion in a study."; - case FOLLOWUP: return "A person is no longer receiving study intervention and/or being evaluated with tests and procedures according to the protocol, but they are being monitored on a protocol-prescribed schedule."; - case INELIGIBLE: return "A person who did not meet one or more criteria required for participation in a study is considered to have failed screening or\nis ineligible for the study."; - case NOTREGISTERED: return "A person for whom registration was not completed."; - case OFFSTUDY: return "A person that has ended their participation on a study either because their treatment/observation is complete or through not\nresponding, withdrawal, non-compliance and/or adverse event."; - case ONSTUDY: return "A person that is enrolled or registered on a study."; - case ONSTUDYINTERVENTION: return "The person is receiving the treatment or participating in an activity (e.g. yoga, diet, etc.) that the study is evaluating."; - case ONSTUDYOBSERVATION: return "The subject is being evaluated via tests and assessments according to the study calendar, but is not receiving any intervention. Note that this state is study-dependent and might not exist in all studies. A synonym for this is \"short-term follow-up\"."; - case PENDINGONSTUDY: return "A person is pre-registered for a study."; - case POTENTIALCANDIDATE: return "A person that is potentially eligible for participation in the study."; - case SCREENING: return "A person who is being evaluated for eligibility for a study."; - case WITHDRAWN: return "The person has withdrawn their participation in the study before registration."; - case NULL: return null; - default: return "?"; - } - } - public String getDisplay() { - switch (this) { - case CANDIDATE: return "Candidate"; - case ELIGIBLE: return "Eligible"; - case FOLLOWUP: return "Follow-up"; - case INELIGIBLE: return "Ineligible"; - case NOTREGISTERED: return "Not Registered"; - case OFFSTUDY: return "Off-study"; - case ONSTUDY: return "On-study"; - case ONSTUDYINTERVENTION: return "On-study-intervention"; - case ONSTUDYOBSERVATION: return "On-study-observation"; - case PENDINGONSTUDY: return "Pending on-study"; - case POTENTIALCANDIDATE: return "Potential Candidate"; - case SCREENING: return "Screening"; - case WITHDRAWN: return "Withdrawn"; - case NULL: return null; - default: return "?"; - } - } - } - - public static class ResearchSubjectStatusEnumFactory implements EnumFactory { - public ResearchSubjectStatus fromCode(String codeString) throws IllegalArgumentException { - if (codeString == null || "".equals(codeString)) - if (codeString == null || "".equals(codeString)) - return null; - if ("candidate".equals(codeString)) - return ResearchSubjectStatus.CANDIDATE; - if ("eligible".equals(codeString)) - return ResearchSubjectStatus.ELIGIBLE; - if ("follow-up".equals(codeString)) - return ResearchSubjectStatus.FOLLOWUP; - if ("ineligible".equals(codeString)) - return ResearchSubjectStatus.INELIGIBLE; - if ("not-registered".equals(codeString)) - return ResearchSubjectStatus.NOTREGISTERED; - if ("off-study".equals(codeString)) - return ResearchSubjectStatus.OFFSTUDY; - if ("on-study".equals(codeString)) - return ResearchSubjectStatus.ONSTUDY; - if ("on-study-intervention".equals(codeString)) - return ResearchSubjectStatus.ONSTUDYINTERVENTION; - if ("on-study-observation".equals(codeString)) - return ResearchSubjectStatus.ONSTUDYOBSERVATION; - if ("pending-on-study".equals(codeString)) - return ResearchSubjectStatus.PENDINGONSTUDY; - if ("potential-candidate".equals(codeString)) - return ResearchSubjectStatus.POTENTIALCANDIDATE; - if ("screening".equals(codeString)) - return ResearchSubjectStatus.SCREENING; - if ("withdrawn".equals(codeString)) - return ResearchSubjectStatus.WITHDRAWN; - throw new IllegalArgumentException("Unknown ResearchSubjectStatus code '"+codeString+"'"); - } - public Enumeration fromType(Base code) throws FHIRException { - if (code == null) - return null; - if (code.isEmpty()) - return new Enumeration(this); - String codeString = ((PrimitiveType) code).asStringValue(); - if (codeString == null || "".equals(codeString)) - return null; - if ("candidate".equals(codeString)) - return new Enumeration(this, ResearchSubjectStatus.CANDIDATE); - if ("eligible".equals(codeString)) - return new Enumeration(this, ResearchSubjectStatus.ELIGIBLE); - if ("follow-up".equals(codeString)) - return new Enumeration(this, ResearchSubjectStatus.FOLLOWUP); - if ("ineligible".equals(codeString)) - return new Enumeration(this, ResearchSubjectStatus.INELIGIBLE); - if ("not-registered".equals(codeString)) - return new Enumeration(this, ResearchSubjectStatus.NOTREGISTERED); - if ("off-study".equals(codeString)) - return new Enumeration(this, ResearchSubjectStatus.OFFSTUDY); - if ("on-study".equals(codeString)) - return new Enumeration(this, ResearchSubjectStatus.ONSTUDY); - if ("on-study-intervention".equals(codeString)) - return new Enumeration(this, ResearchSubjectStatus.ONSTUDYINTERVENTION); - if ("on-study-observation".equals(codeString)) - return new Enumeration(this, ResearchSubjectStatus.ONSTUDYOBSERVATION); - if ("pending-on-study".equals(codeString)) - return new Enumeration(this, ResearchSubjectStatus.PENDINGONSTUDY); - if ("potential-candidate".equals(codeString)) - return new Enumeration(this, ResearchSubjectStatus.POTENTIALCANDIDATE); - if ("screening".equals(codeString)) - return new Enumeration(this, ResearchSubjectStatus.SCREENING); - if ("withdrawn".equals(codeString)) - return new Enumeration(this, ResearchSubjectStatus.WITHDRAWN); - throw new FHIRException("Unknown ResearchSubjectStatus code '"+codeString+"'"); - } - public String toCode(ResearchSubjectStatus code) { - if (code == ResearchSubjectStatus.CANDIDATE) - return "candidate"; - if (code == ResearchSubjectStatus.ELIGIBLE) - return "eligible"; - if (code == ResearchSubjectStatus.FOLLOWUP) - return "follow-up"; - if (code == ResearchSubjectStatus.INELIGIBLE) - return "ineligible"; - if (code == ResearchSubjectStatus.NOTREGISTERED) - return "not-registered"; - if (code == ResearchSubjectStatus.OFFSTUDY) - return "off-study"; - if (code == ResearchSubjectStatus.ONSTUDY) - return "on-study"; - if (code == ResearchSubjectStatus.ONSTUDYINTERVENTION) - return "on-study-intervention"; - if (code == ResearchSubjectStatus.ONSTUDYOBSERVATION) - return "on-study-observation"; - if (code == ResearchSubjectStatus.PENDINGONSTUDY) - return "pending-on-study"; - if (code == ResearchSubjectStatus.POTENTIALCANDIDATE) - return "potential-candidate"; - if (code == ResearchSubjectStatus.SCREENING) - return "screening"; - if (code == ResearchSubjectStatus.WITHDRAWN) - return "withdrawn"; - return "?"; - } - public String toSystem(ResearchSubjectStatus code) { - return code.getSystem(); - } - } - @Block() public static class ResearchSubjectProgressComponent extends BackboneElement implements IBaseBackboneElement { /** * Identifies the aspect of the subject's journey that the state refers to. */ @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Kind of state that is being described", formalDefinition="Identifies the aspect of the subject's journey that the state refers to." ) + @Description(shortDefinition="state | milestone", formalDefinition="Identifies the aspect of the subject's journey that the state refers to." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-subject-state-type") protected CodeableConcept type; /** * The current state of the subject. */ - @Child(name = "state", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Child(name = "subjectState", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="candidate | eligible | follow-up | ineligible | not-registered | off-study | on-study | on-study-intervention | on-study-observation | pending-on-study | potential-candidate | screening | withdrawn", formalDefinition="The current state of the subject." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-subject-state") - protected CodeableConcept state; + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-subject-progress") + protected CodeableConcept subjectState; /** * The milestones the subject has passed through. @@ -360,13 +88,20 @@ public class ResearchSubject extends DomainResource { protected CodeableConcept reason; /** - * The date when the change in status occurred. + * The date when the new status started. */ - @Child(name = "startDate", type = {DateTimeType.class}, order=5, min=1, max=1, modifier=false, summary=false) - @Description(shortDefinition="State change date", formalDefinition="The date when the change in status occurred." ) + @Child(name = "startDate", type = {DateTimeType.class}, order=5, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="State change date", formalDefinition="The date when the new status started." ) protected DateTimeType startDate; - private static final long serialVersionUID = -29864900L; + /** + * The date when the state ended. + */ + @Child(name = "endDate", type = {DateTimeType.class}, order=6, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="State change date", formalDefinition="The date when the state ended." ) + protected DateTimeType endDate; + + private static final long serialVersionUID = -330838916L; /** * Constructor @@ -375,14 +110,6 @@ public class ResearchSubject extends DomainResource { super(); } - /** - * Constructor - */ - public ResearchSubjectProgressComponent(Date startDate) { - super(); - this.setStartDate(startDate); - } - /** * @return {@link #type} (Identifies the aspect of the subject's journey that the state refers to.) */ @@ -408,26 +135,26 @@ public class ResearchSubject extends DomainResource { } /** - * @return {@link #state} (The current state of the subject.) + * @return {@link #subjectState} (The current state of the subject.) */ - public CodeableConcept getState() { - if (this.state == null) + public CodeableConcept getSubjectState() { + if (this.subjectState == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ResearchSubjectProgressComponent.state"); + throw new Error("Attempt to auto-create ResearchSubjectProgressComponent.subjectState"); else if (Configuration.doAutoCreate()) - this.state = new CodeableConcept(); // cc - return this.state; + this.subjectState = new CodeableConcept(); // cc + return this.subjectState; } - public boolean hasState() { - return this.state != null && !this.state.isEmpty(); + public boolean hasSubjectState() { + return this.subjectState != null && !this.subjectState.isEmpty(); } /** - * @param value {@link #state} (The current state of the subject.) + * @param value {@link #subjectState} (The current state of the subject.) */ - public ResearchSubjectProgressComponent setState(CodeableConcept value) { - this.state = value; + public ResearchSubjectProgressComponent setSubjectState(CodeableConcept value) { + this.subjectState = value; return this; } @@ -480,7 +207,7 @@ public class ResearchSubject extends DomainResource { } /** - * @return {@link #startDate} (The date when the change in status occurred.). This is the underlying object with id, value and extensions. The accessor "getStartDate" gives direct access to the value + * @return {@link #startDate} (The date when the new status started.). This is the underlying object with id, value and extensions. The accessor "getStartDate" gives direct access to the value */ public DateTimeType getStartDateElement() { if (this.startDate == null) @@ -500,7 +227,7 @@ public class ResearchSubject extends DomainResource { } /** - * @param value {@link #startDate} (The date when the change in status occurred.). This is the underlying object with id, value and extensions. The accessor "getStartDate" gives direct access to the value + * @param value {@link #startDate} (The date when the new status started.). This is the underlying object with id, value and extensions. The accessor "getStartDate" gives direct access to the value */ public ResearchSubjectProgressComponent setStartDateElement(DateTimeType value) { this.startDate = value; @@ -508,39 +235,94 @@ public class ResearchSubject extends DomainResource { } /** - * @return The date when the change in status occurred. + * @return The date when the new status started. */ public Date getStartDate() { return this.startDate == null ? null : this.startDate.getValue(); } /** - * @param value The date when the change in status occurred. + * @param value The date when the new status started. */ public ResearchSubjectProgressComponent setStartDate(Date value) { + if (value == null) + this.startDate = null; + else { if (this.startDate == null) this.startDate = new DateTimeType(); this.startDate.setValue(value); + } + return this; + } + + /** + * @return {@link #endDate} (The date when the state ended.). This is the underlying object with id, value and extensions. The accessor "getEndDate" gives direct access to the value + */ + public DateTimeType getEndDateElement() { + if (this.endDate == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ResearchSubjectProgressComponent.endDate"); + else if (Configuration.doAutoCreate()) + this.endDate = new DateTimeType(); // bb + return this.endDate; + } + + public boolean hasEndDateElement() { + return this.endDate != null && !this.endDate.isEmpty(); + } + + public boolean hasEndDate() { + return this.endDate != null && !this.endDate.isEmpty(); + } + + /** + * @param value {@link #endDate} (The date when the state ended.). This is the underlying object with id, value and extensions. The accessor "getEndDate" gives direct access to the value + */ + public ResearchSubjectProgressComponent setEndDateElement(DateTimeType value) { + this.endDate = value; + return this; + } + + /** + * @return The date when the state ended. + */ + public Date getEndDate() { + return this.endDate == null ? null : this.endDate.getValue(); + } + + /** + * @param value The date when the state ended. + */ + public ResearchSubjectProgressComponent setEndDate(Date value) { + if (value == null) + this.endDate = null; + else { + if (this.endDate == null) + this.endDate = new DateTimeType(); + this.endDate.setValue(value); + } return this; } protected void listChildren(List children) { super.listChildren(children); children.add(new Property("type", "CodeableConcept", "Identifies the aspect of the subject's journey that the state refers to.", 0, 1, type)); - children.add(new Property("state", "CodeableConcept", "The current state of the subject.", 0, 1, state)); + children.add(new Property("subjectState", "CodeableConcept", "The current state of the subject.", 0, 1, subjectState)); children.add(new Property("milestone", "CodeableConcept", "The milestones the subject has passed through.", 0, 1, milestone)); children.add(new Property("reason", "CodeableConcept", "The reason for the state change. If coded it should follow the formal subject state model.", 0, 1, reason)); - children.add(new Property("startDate", "dateTime", "The date when the change in status occurred.", 0, 1, startDate)); + children.add(new Property("startDate", "dateTime", "The date when the new status started.", 0, 1, startDate)); + children.add(new Property("endDate", "dateTime", "The date when the state ended.", 0, 1, endDate)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case 3575610: /*type*/ return new Property("type", "CodeableConcept", "Identifies the aspect of the subject's journey that the state refers to.", 0, 1, type); - case 109757585: /*state*/ return new Property("state", "CodeableConcept", "The current state of the subject.", 0, 1, state); + case -1520444731: /*subjectState*/ return new Property("subjectState", "CodeableConcept", "The current state of the subject.", 0, 1, subjectState); case -1065084560: /*milestone*/ return new Property("milestone", "CodeableConcept", "The milestones the subject has passed through.", 0, 1, milestone); case -934964668: /*reason*/ return new Property("reason", "CodeableConcept", "The reason for the state change. If coded it should follow the formal subject state model.", 0, 1, reason); - case -2129778896: /*startDate*/ return new Property("startDate", "dateTime", "The date when the change in status occurred.", 0, 1, startDate); + case -2129778896: /*startDate*/ return new Property("startDate", "dateTime", "The date when the new status started.", 0, 1, startDate); + case -1607727319: /*endDate*/ return new Property("endDate", "dateTime", "The date when the state ended.", 0, 1, endDate); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -550,10 +332,11 @@ public class ResearchSubject extends DomainResource { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept - case 109757585: /*state*/ return this.state == null ? new Base[0] : new Base[] {this.state}; // CodeableConcept + case -1520444731: /*subjectState*/ return this.subjectState == null ? new Base[0] : new Base[] {this.subjectState}; // CodeableConcept case -1065084560: /*milestone*/ return this.milestone == null ? new Base[0] : new Base[] {this.milestone}; // CodeableConcept case -934964668: /*reason*/ return this.reason == null ? new Base[0] : new Base[] {this.reason}; // CodeableConcept case -2129778896: /*startDate*/ return this.startDate == null ? new Base[0] : new Base[] {this.startDate}; // DateTimeType + case -1607727319: /*endDate*/ return this.endDate == null ? new Base[0] : new Base[] {this.endDate}; // DateTimeType default: return super.getProperty(hash, name, checkValid); } @@ -565,8 +348,8 @@ public class ResearchSubject extends DomainResource { case 3575610: // type this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; - case 109757585: // state - this.state = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + case -1520444731: // subjectState + this.subjectState = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; case -1065084560: // milestone this.milestone = TypeConvertor.castToCodeableConcept(value); // CodeableConcept @@ -577,6 +360,9 @@ public class ResearchSubject extends DomainResource { case -2129778896: // startDate this.startDate = TypeConvertor.castToDateTime(value); // DateTimeType return value; + case -1607727319: // endDate + this.endDate = TypeConvertor.castToDateTime(value); // DateTimeType + return value; default: return super.setProperty(hash, name, value); } @@ -586,14 +372,16 @@ public class ResearchSubject extends DomainResource { public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("type")) { this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("state")) { - this.state = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("subjectState")) { + this.subjectState = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("milestone")) { this.milestone = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("reason")) { this.reason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("startDate")) { this.startDate = TypeConvertor.castToDateTime(value); // DateTimeType + } else if (name.equals("endDate")) { + this.endDate = TypeConvertor.castToDateTime(value); // DateTimeType } else return super.setProperty(name, value); return value; @@ -603,10 +391,11 @@ public class ResearchSubject extends DomainResource { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: return getType(); - case 109757585: return getState(); + case -1520444731: return getSubjectState(); case -1065084560: return getMilestone(); case -934964668: return getReason(); case -2129778896: return getStartDateElement(); + case -1607727319: return getEndDateElement(); default: return super.makeProperty(hash, name); } @@ -616,10 +405,11 @@ public class ResearchSubject extends DomainResource { public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 3575610: /*type*/ return new String[] {"CodeableConcept"}; - case 109757585: /*state*/ return new String[] {"CodeableConcept"}; + case -1520444731: /*subjectState*/ return new String[] {"CodeableConcept"}; case -1065084560: /*milestone*/ return new String[] {"CodeableConcept"}; case -934964668: /*reason*/ return new String[] {"CodeableConcept"}; case -2129778896: /*startDate*/ return new String[] {"dateTime"}; + case -1607727319: /*endDate*/ return new String[] {"dateTime"}; default: return super.getTypesForProperty(hash, name); } @@ -631,9 +421,9 @@ public class ResearchSubject extends DomainResource { this.type = new CodeableConcept(); return this.type; } - else if (name.equals("state")) { - this.state = new CodeableConcept(); - return this.state; + else if (name.equals("subjectState")) { + this.subjectState = new CodeableConcept(); + return this.subjectState; } else if (name.equals("milestone")) { this.milestone = new CodeableConcept(); @@ -646,6 +436,9 @@ public class ResearchSubject extends DomainResource { else if (name.equals("startDate")) { throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.progress.startDate"); } + else if (name.equals("endDate")) { + throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.progress.endDate"); + } else return super.addChild(name); } @@ -659,10 +452,11 @@ public class ResearchSubject extends DomainResource { public void copyValues(ResearchSubjectProgressComponent dst) { super.copyValues(dst); dst.type = type == null ? null : type.copy(); - dst.state = state == null ? null : state.copy(); + dst.subjectState = subjectState == null ? null : subjectState.copy(); dst.milestone = milestone == null ? null : milestone.copy(); dst.reason = reason == null ? null : reason.copy(); dst.startDate = startDate == null ? null : startDate.copy(); + dst.endDate = endDate == null ? null : endDate.copy(); } @Override @@ -672,8 +466,9 @@ public class ResearchSubject extends DomainResource { if (!(other_ instanceof ResearchSubjectProgressComponent)) return false; ResearchSubjectProgressComponent o = (ResearchSubjectProgressComponent) other_; - return compareDeep(type, o.type, true) && compareDeep(state, o.state, true) && compareDeep(milestone, o.milestone, true) - && compareDeep(reason, o.reason, true) && compareDeep(startDate, o.startDate, true); + return compareDeep(type, o.type, true) && compareDeep(subjectState, o.subjectState, true) && compareDeep(milestone, o.milestone, true) + && compareDeep(reason, o.reason, true) && compareDeep(startDate, o.startDate, true) && compareDeep(endDate, o.endDate, true) + ; } @Override @@ -683,12 +478,12 @@ public class ResearchSubject extends DomainResource { if (!(other_ instanceof ResearchSubjectProgressComponent)) return false; ResearchSubjectProgressComponent o = (ResearchSubjectProgressComponent) other_; - return compareValues(startDate, o.startDate, true); + return compareValues(startDate, o.startDate, true) && compareValues(endDate, o.endDate, true); } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, state, milestone, reason - , startDate); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, subjectState, milestone + , reason, startDate, endDate); } public String fhirType() { @@ -706,12 +501,12 @@ public class ResearchSubject extends DomainResource { protected List identifier; /** - * The current state of the subject. + * The publication state of the resource (not of the subject). */ @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) - @Description(shortDefinition="candidate | eligible | follow-up | ineligible | not-registered | off-study | on-study | on-study-intervention | on-study-observation | pending-on-study | potential-candidate | screening | withdrawn", formalDefinition="The current state of the subject." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/research-subject-status") - protected Enumeration status; + @Description(shortDefinition="draft | active | retired | unknown", formalDefinition="The publication state of the resource (not of the subject)." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/publication-status") + protected Enumeration status; /** * The current state (status) of the subject and resons for status change where appropriate. @@ -735,11 +530,11 @@ public class ResearchSubject extends DomainResource { protected Reference study; /** - * The record of the person or animal who is involved in the study. + * The record of the person, animal or other entity involved in the study. */ - @Child(name = "individual", type = {Patient.class}, order=5, min=1, max=1, modifier=false, summary=true) - @Description(shortDefinition="Who is part of study", formalDefinition="The record of the person or animal who is involved in the study." ) - protected Reference individual; + @Child(name = "subject", type = {Patient.class, Group.class, Specimen.class, Device.class, Medication.class, Substance.class, BiologicallyDerivedProduct.class}, order=5, min=1, max=1, modifier=false, summary=true) + @Description(shortDefinition="Who or what is part of study", formalDefinition="The record of the person, animal or other entity involved in the study." ) + protected Reference subject; /** * The name of the arm in the study the subject is expected to follow as part of this study. @@ -762,7 +557,7 @@ public class ResearchSubject extends DomainResource { @Description(shortDefinition="Agreement to participate in study", formalDefinition="A record of the patient's informed agreement to participate in the study." ) protected Reference consent; - private static final long serialVersionUID = 2110072351L; + private static final long serialVersionUID = -398870757L; /** * Constructor @@ -774,11 +569,11 @@ public class ResearchSubject extends DomainResource { /** * Constructor */ - public ResearchSubject(ResearchSubjectStatus status, Reference study, Reference individual) { + public ResearchSubject(PublicationStatus status, Reference study, Reference subject) { super(); this.setStatus(status); this.setStudy(study); - this.setIndividual(individual); + this.setSubject(subject); } /** @@ -835,14 +630,14 @@ public class ResearchSubject extends DomainResource { } /** - * @return {@link #status} (The current state of the subject.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value + * @return {@link #status} (The publication state of the resource (not of the subject).). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ - public Enumeration getStatusElement() { + public Enumeration getStatusElement() { if (this.status == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ResearchSubject.status"); else if (Configuration.doAutoCreate()) - this.status = new Enumeration(new ResearchSubjectStatusEnumFactory()); // bb + this.status = new Enumeration(new PublicationStatusEnumFactory()); // bb return this.status; } @@ -855,26 +650,26 @@ public class ResearchSubject extends DomainResource { } /** - * @param value {@link #status} (The current state of the subject.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value + * @param value {@link #status} (The publication state of the resource (not of the subject).). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ - public ResearchSubject setStatusElement(Enumeration value) { + public ResearchSubject setStatusElement(Enumeration value) { this.status = value; return this; } /** - * @return The current state of the subject. + * @return The publication state of the resource (not of the subject). */ - public ResearchSubjectStatus getStatus() { + public PublicationStatus getStatus() { return this.status == null ? null : this.status.getValue(); } /** - * @param value The current state of the subject. + * @param value The publication state of the resource (not of the subject). */ - public ResearchSubject setStatus(ResearchSubjectStatus value) { + public ResearchSubject setStatus(PublicationStatus value) { if (this.status == null) - this.status = new Enumeration(new ResearchSubjectStatusEnumFactory()); + this.status = new Enumeration(new PublicationStatusEnumFactory()); this.status.setValue(value); return this; } @@ -981,26 +776,26 @@ public class ResearchSubject extends DomainResource { } /** - * @return {@link #individual} (The record of the person or animal who is involved in the study.) + * @return {@link #subject} (The record of the person, animal or other entity involved in the study.) */ - public Reference getIndividual() { - if (this.individual == null) + public Reference getSubject() { + if (this.subject == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create ResearchSubject.individual"); + throw new Error("Attempt to auto-create ResearchSubject.subject"); else if (Configuration.doAutoCreate()) - this.individual = new Reference(); // cc - return this.individual; + this.subject = new Reference(); // cc + return this.subject; } - public boolean hasIndividual() { - return this.individual != null && !this.individual.isEmpty(); + public boolean hasSubject() { + return this.subject != null && !this.subject.isEmpty(); } /** - * @param value {@link #individual} (The record of the person or animal who is involved in the study.) + * @param value {@link #subject} (The record of the person, animal or other entity involved in the study.) */ - public ResearchSubject setIndividual(Reference value) { - this.individual = value; + public ResearchSubject setSubject(Reference value) { + this.subject = value; return this; } @@ -1129,11 +924,11 @@ public class ResearchSubject extends DomainResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("identifier", "Identifier", "Identifiers assigned to this research subject for a study.", 0, java.lang.Integer.MAX_VALUE, identifier)); - children.add(new Property("status", "code", "The current state of the subject.", 0, 1, status)); + children.add(new Property("status", "code", "The publication state of the resource (not of the subject).", 0, 1, status)); children.add(new Property("progress", "", "The current state (status) of the subject and resons for status change where appropriate.", 0, java.lang.Integer.MAX_VALUE, progress)); children.add(new Property("period", "Period", "The dates the subject began and ended their participation in the study.", 0, 1, period)); children.add(new Property("study", "Reference(ResearchStudy)", "Reference to the study the subject is participating in.", 0, 1, study)); - children.add(new Property("individual", "Reference(Patient)", "The record of the person or animal who is involved in the study.", 0, 1, individual)); + children.add(new Property("subject", "Reference(Patient|Group|Specimen|Device|Medication|Substance|BiologicallyDerivedProduct)", "The record of the person, animal or other entity involved in the study.", 0, 1, subject)); children.add(new Property("assignedArm", "string", "The name of the arm in the study the subject is expected to follow as part of this study.", 0, 1, assignedArm)); children.add(new Property("actualArm", "string", "The name of the arm in the study the subject actually followed as part of this study.", 0, 1, actualArm)); children.add(new Property("consent", "Reference(Consent)", "A record of the patient's informed agreement to participate in the study.", 0, 1, consent)); @@ -1143,11 +938,11 @@ public class ResearchSubject extends DomainResource { public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifiers assigned to this research subject for a study.", 0, java.lang.Integer.MAX_VALUE, identifier); - case -892481550: /*status*/ return new Property("status", "code", "The current state of the subject.", 0, 1, status); + case -892481550: /*status*/ return new Property("status", "code", "The publication state of the resource (not of the subject).", 0, 1, status); case -1001078227: /*progress*/ return new Property("progress", "", "The current state (status) of the subject and resons for status change where appropriate.", 0, java.lang.Integer.MAX_VALUE, progress); case -991726143: /*period*/ return new Property("period", "Period", "The dates the subject began and ended their participation in the study.", 0, 1, period); case 109776329: /*study*/ return new Property("study", "Reference(ResearchStudy)", "Reference to the study the subject is participating in.", 0, 1, study); - case -46292327: /*individual*/ return new Property("individual", "Reference(Patient)", "The record of the person or animal who is involved in the study.", 0, 1, individual); + case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group|Specimen|Device|Medication|Substance|BiologicallyDerivedProduct)", "The record of the person, animal or other entity involved in the study.", 0, 1, subject); case 1741912494: /*assignedArm*/ return new Property("assignedArm", "string", "The name of the arm in the study the subject is expected to follow as part of this study.", 0, 1, assignedArm); case 528827886: /*actualArm*/ return new Property("actualArm", "string", "The name of the arm in the study the subject actually followed as part of this study.", 0, 1, actualArm); case 951500826: /*consent*/ return new Property("consent", "Reference(Consent)", "A record of the patient's informed agreement to participate in the study.", 0, 1, consent); @@ -1160,11 +955,11 @@ public class ResearchSubject extends DomainResource { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier - case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration + case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration case -1001078227: /*progress*/ return this.progress == null ? new Base[0] : this.progress.toArray(new Base[this.progress.size()]); // ResearchSubjectProgressComponent case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period case 109776329: /*study*/ return this.study == null ? new Base[0] : new Base[] {this.study}; // Reference - case -46292327: /*individual*/ return this.individual == null ? new Base[0] : new Base[] {this.individual}; // Reference + case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference case 1741912494: /*assignedArm*/ return this.assignedArm == null ? new Base[0] : new Base[] {this.assignedArm}; // StringType case 528827886: /*actualArm*/ return this.actualArm == null ? new Base[0] : new Base[] {this.actualArm}; // StringType case 951500826: /*consent*/ return this.consent == null ? new Base[0] : new Base[] {this.consent}; // Reference @@ -1180,8 +975,8 @@ public class ResearchSubject extends DomainResource { this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier return value; case -892481550: // status - value = new ResearchSubjectStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.status = (Enumeration) value; // Enumeration + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration return value; case -1001078227: // progress this.getProgress().add((ResearchSubjectProgressComponent) value); // ResearchSubjectProgressComponent @@ -1192,8 +987,8 @@ public class ResearchSubject extends DomainResource { case 109776329: // study this.study = TypeConvertor.castToReference(value); // Reference return value; - case -46292327: // individual - this.individual = TypeConvertor.castToReference(value); // Reference + case -1867885268: // subject + this.subject = TypeConvertor.castToReference(value); // Reference return value; case 1741912494: // assignedArm this.assignedArm = TypeConvertor.castToString(value); // StringType @@ -1214,16 +1009,16 @@ public class ResearchSubject extends DomainResource { if (name.equals("identifier")) { this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); } else if (name.equals("status")) { - value = new ResearchSubjectStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.status = (Enumeration) value; // Enumeration + value = new PublicationStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration } else if (name.equals("progress")) { this.getProgress().add((ResearchSubjectProgressComponent) value); } else if (name.equals("period")) { this.period = TypeConvertor.castToPeriod(value); // Period } else if (name.equals("study")) { this.study = TypeConvertor.castToReference(value); // Reference - } else if (name.equals("individual")) { - this.individual = TypeConvertor.castToReference(value); // Reference + } else if (name.equals("subject")) { + this.subject = TypeConvertor.castToReference(value); // Reference } else if (name.equals("assignedArm")) { this.assignedArm = TypeConvertor.castToString(value); // StringType } else if (name.equals("actualArm")) { @@ -1243,7 +1038,7 @@ public class ResearchSubject extends DomainResource { case -1001078227: return addProgress(); case -991726143: return getPeriod(); case 109776329: return getStudy(); - case -46292327: return getIndividual(); + case -1867885268: return getSubject(); case 1741912494: return getAssignedArmElement(); case 528827886: return getActualArmElement(); case 951500826: return getConsent(); @@ -1260,7 +1055,7 @@ public class ResearchSubject extends DomainResource { case -1001078227: /*progress*/ return new String[] {}; case -991726143: /*period*/ return new String[] {"Period"}; case 109776329: /*study*/ return new String[] {"Reference"}; - case -46292327: /*individual*/ return new String[] {"Reference"}; + case -1867885268: /*subject*/ return new String[] {"Reference"}; case 1741912494: /*assignedArm*/ return new String[] {"string"}; case 528827886: /*actualArm*/ return new String[] {"string"}; case 951500826: /*consent*/ return new String[] {"Reference"}; @@ -1288,9 +1083,9 @@ public class ResearchSubject extends DomainResource { this.study = new Reference(); return this.study; } - else if (name.equals("individual")) { - this.individual = new Reference(); - return this.individual; + else if (name.equals("subject")) { + this.subject = new Reference(); + return this.subject; } else if (name.equals("assignedArm")) { throw new FHIRException("Cannot call addChild on a primitive type ResearchSubject.assignedArm"); @@ -1332,7 +1127,7 @@ public class ResearchSubject extends DomainResource { }; dst.period = period == null ? null : period.copy(); dst.study = study == null ? null : study.copy(); - dst.individual = individual == null ? null : individual.copy(); + dst.subject = subject == null ? null : subject.copy(); dst.assignedArm = assignedArm == null ? null : assignedArm.copy(); dst.actualArm = actualArm == null ? null : actualArm.copy(); dst.consent = consent == null ? null : consent.copy(); @@ -1350,7 +1145,7 @@ public class ResearchSubject extends DomainResource { return false; ResearchSubject o = (ResearchSubject) other_; return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(progress, o.progress, true) - && compareDeep(period, o.period, true) && compareDeep(study, o.study, true) && compareDeep(individual, o.individual, true) + && compareDeep(period, o.period, true) && compareDeep(study, o.study, true) && compareDeep(subject, o.subject, true) && compareDeep(assignedArm, o.assignedArm, true) && compareDeep(actualArm, o.actualArm, true) && compareDeep(consent, o.consent, true) ; } @@ -1368,7 +1163,7 @@ public class ResearchSubject extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, progress - , period, study, individual, assignedArm, actualArm, consent); + , period, study, subject, assignedArm, actualArm, consent); } @Override @@ -1416,48 +1211,22 @@ public class ResearchSubject extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - /** - * Search parameter: individual - *

- * Description: Who is part of study
- * Type: reference
- * Path: ResearchSubject.individual
- *

- */ - @SearchParamDefinition(name="individual", path="ResearchSubject.individual", description="Who is part of study", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Patient.class } ) - public static final String SP_INDIVIDUAL = "individual"; - /** - * Fluent Client search parameter constant for individual - *

- * Description: Who is part of study
- * Type: reference
- * Path: ResearchSubject.individual
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INDIVIDUAL = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INDIVIDUAL); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ResearchSubject:individual". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_INDIVIDUAL = new ca.uhn.fhir.model.api.Include("ResearchSubject:individual").toLocked(); - /** * Search parameter: patient *

- * Description: Who is part of study
+ * Description: Who or what is part of study
* Type: reference
- * Path: ResearchSubject.individual
+ * Path: ResearchSubject.subject
*

*/ - @SearchParamDefinition(name="patient", path="ResearchSubject.individual", description="Who is part of study", type="reference", target={Patient.class } ) + @SearchParamDefinition(name="patient", path="ResearchSubject.subject", description="Who or what is part of study", type="reference", target={BiologicallyDerivedProduct.class, Device.class, Group.class, Medication.class, Patient.class, Specimen.class, Substance.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient *

- * Description: Who is part of study
+ * Description: Who or what is part of study
* Type: reference
- * Path: ResearchSubject.individual
+ * Path: ResearchSubject.subject
*

*/ public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); @@ -1468,40 +1237,20 @@ public class ResearchSubject extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("ResearchSubject:patient").toLocked(); - /** - * Search parameter: state - *

- * Description: candidate | eligible | follow-up | ineligible | not-registered | off-study | on-study | on-study-intervention | on-study-observation | pending-on-study | potential-candidate | screening | withdrawn
- * Type: token
- * Path: ResearchSubject.progress.state
- *

- */ - @SearchParamDefinition(name="state", path="ResearchSubject.progress.state", description="candidate | eligible | follow-up | ineligible | not-registered | off-study | on-study | on-study-intervention | on-study-observation | pending-on-study | potential-candidate | screening | withdrawn", type="token" ) - public static final String SP_STATE = "state"; - /** - * Fluent Client search parameter constant for state - *

- * Description: candidate | eligible | follow-up | ineligible | not-registered | off-study | on-study | on-study-intervention | on-study-observation | pending-on-study | potential-candidate | screening | withdrawn
- * Type: token
- * Path: ResearchSubject.progress.state
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATE); - /** * Search parameter: status *

- * Description: candidate | eligible | follow-up | ineligible | not-registered | off-study | on-study | on-study-intervention | on-study-observation | pending-on-study | potential-candidate | screening | withdrawn
+ * Description: draft | active | retired | unknown
* Type: token
* Path: ResearchSubject.status
*

*/ - @SearchParamDefinition(name="status", path="ResearchSubject.status", description="candidate | eligible | follow-up | ineligible | not-registered | off-study | on-study | on-study-intervention | on-study-observation | pending-on-study | potential-candidate | screening | withdrawn", type="token" ) + @SearchParamDefinition(name="status", path="ResearchSubject.status", description="draft | active | retired | unknown", type="token" ) public static final String SP_STATUS = "status"; /** * Fluent Client search parameter constant for status *

- * Description: candidate | eligible | follow-up | ineligible | not-registered | off-study | on-study | on-study-intervention | on-study-observation | pending-on-study | potential-candidate | screening | withdrawn
+ * Description: draft | active | retired | unknown
* Type: token
* Path: ResearchSubject.status
*

@@ -1534,6 +1283,52 @@ public class ResearchSubject extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_STUDY = new ca.uhn.fhir.model.api.Include("ResearchSubject:study").toLocked(); + /** + * Search parameter: subject + *

+ * Description: Who or what is part of study
+ * Type: reference
+ * Path: ResearchSubject.subject
+ *

+ */ + @SearchParamDefinition(name="subject", path="ResearchSubject.subject", description="Who or what is part of study", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={BiologicallyDerivedProduct.class, Device.class, Group.class, Medication.class, Patient.class, Specimen.class, Substance.class } ) + public static final String SP_SUBJECT = "subject"; + /** + * Fluent Client search parameter constant for subject + *

+ * Description: Who or what is part of study
+ * Type: reference
+ * Path: ResearchSubject.subject
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ResearchSubject:subject". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("ResearchSubject:subject").toLocked(); + + /** + * Search parameter: subject_state + *

+ * Description: candidate | eligible | follow-up | ineligible | not-registered | off-study | on-study | on-study-intervention | on-study-observation | pending-on-study | potential-candidate | screening | withdrawn
+ * Type: token
+ * Path: ResearchSubject.progress.subjectState
+ *

+ */ + @SearchParamDefinition(name="subject_state", path="ResearchSubject.progress.subjectState", description="candidate | eligible | follow-up | ineligible | not-registered | off-study | on-study | on-study-intervention | on-study-observation | pending-on-study | potential-candidate | screening | withdrawn", type="token" ) + public static final String SP_SUBJECTSTATE = "subject_state"; + /** + * Fluent Client search parameter constant for subject_state + *

+ * Description: candidate | eligible | follow-up | ineligible | not-registered | off-study | on-study | on-study-intervention | on-study-observation | pending-on-study | potential-candidate | screening | withdrawn
+ * Type: token
+ * Path: ResearchSubject.progress.subjectState
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUBJECTSTATE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SUBJECTSTATE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Resource.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Resource.java index 9873980a1..665cf3fd2 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Resource.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Resource.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -414,7 +414,7 @@ public abstract class Resource extends BaseResource implements IAnyResource { , language); } -// Manual code (from Configuration.txt)t: +// Manual code (from Configuration.txt): @Override public String getIdBase() { return getId(); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResourceFactory.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResourceFactory.java index 821dbf809..606f08abb 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResourceFactory.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResourceFactory.java @@ -28,7 +28,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 @@ -123,8 +123,8 @@ public class ResourceFactory extends Factory { return new DeviceMetric(); if ("DeviceRequest".equals(name)) return new DeviceRequest(); - if ("DeviceUseStatement".equals(name)) - return new DeviceUseStatement(); + if ("DeviceUsage".equals(name)) + return new DeviceUsage(); if ("DiagnosticReport".equals(name)) return new DiagnosticReport(); if ("DocumentManifest".equals(name)) @@ -181,6 +181,8 @@ public class ResourceFactory extends Factory { return new Ingredient(); if ("InsurancePlan".equals(name)) return new InsurancePlan(); + if ("InventoryReport".equals(name)) + return new InventoryReport(); if ("Invoice".equals(name)) return new Invoice(); if ("Library".equals(name)) @@ -443,6 +445,8 @@ public class ResourceFactory extends Factory { return new Range(); if ("Ratio".equals(name)) return new Ratio(); + if ("RatioRange".equals(name)) + return new RatioRange(); if ("Reference".equals(name)) return new Reference(); if ("RelatedArtifact".equals(name)) @@ -527,7 +531,7 @@ public class ResourceFactory extends Factory { case 1083244649: return new DeviceDefinition(); case -949306426: return new DeviceMetric(); case 776138553: return new DeviceRequest(); - case 491858238: return new DeviceUseStatement(); + case 115711179: return new DeviceUsage(); case -1122842661: return new DiagnosticReport(); case 1922784394: return new DocumentManifest(); case -1202791344: return new DocumentReference(); @@ -556,6 +560,7 @@ public class ResourceFactory extends Factory { case 1410262602: return new ImplementationGuide(); case 1787055601: return new Ingredient(); case -1503864573: return new InsurancePlan(); + case 1884986768: return new InventoryReport(); case -670115059: return new Invoice(); case 1830861979: return new Library(); case 1841735333: return new Linkage(); @@ -664,6 +669,7 @@ public class ResourceFactory extends Factory { case -1220360021: return new Quantity(); case 78727453: return new Range(); case 78733291: return new Ratio(); + case -200924142: return new RatioRange(); case 1078812459: return new Reference(); case -330210563: return new RelatedArtifact(); case 1824308900: return new SampledData(); @@ -678,32 +684,5 @@ public class ResourceFactory extends Factory { } } - public static DataType createPrimitive(String type, String value) { - switch (type) { - case "boolean": return new BooleanType(value); - case "integer": return new IntegerType(value); - case "integer64": return new Integer64Type(value); - case "string": return new StringType(value); - case "decimal": return new DecimalType(value); - case "uri": return new UriType(value); - case "url": return new UrlType(value); - case "canonical": return new CanonicalType(value); - case "base64Binary": return new Base64BinaryType(value); - case "instant": return new InstantType(value); - case "date": return new DateType(value); - case "dateTime": return new DateTimeType(value); - case "time": return new TimeType(value); - case "code": return new CodeType(value); - case "oid": return new OidType(value); - case "id": return new IdType(value); - case "markdown": return new MarkdownType(value); - case "unsignedInt": return new UnsignedIntType(value); - case "positiveInt": return new PositiveIntType(value); - case "uuid": return new UuidType(value); - default: - throw new FHIRException("Unknown Primitive Type '"+type+"'"); - } - } - } \ No newline at end of file diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResourceType.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResourceType.java index 9cbcffa2b..22ad68461 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResourceType.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ResourceType.java @@ -28,7 +28,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 @@ -78,7 +78,7 @@ Account, DeviceDefinition, DeviceMetric, DeviceRequest, - DeviceUseStatement, + DeviceUsage, DiagnosticReport, DocumentManifest, DocumentReference, @@ -107,6 +107,7 @@ Account, ImplementationGuide, Ingredient, InsurancePlan, + InventoryReport, Invoice, Library, Linkage, @@ -272,8 +273,8 @@ Account, return "devicemetric"; case DeviceRequest: return "devicerequest"; - case DeviceUseStatement: - return "deviceusestatement"; + case DeviceUsage: + return "deviceusage"; case DiagnosticReport: return "diagnosticreport"; case DocumentManifest: @@ -330,6 +331,8 @@ Account, return "ingredient"; case InsurancePlan: return "insuranceplan"; + case InventoryReport: + return "inventoryreport"; case Invoice: return "invoice"; case Library: @@ -573,8 +576,8 @@ Account, return DeviceMetric; if ("DeviceRequest".equals(code)) return DeviceRequest; - if ("DeviceUseStatement".equals(code)) - return DeviceUseStatement; + if ("DeviceUsage".equals(code)) + return DeviceUsage; if ("DiagnosticReport".equals(code)) return DiagnosticReport; if ("DocumentManifest".equals(code)) @@ -631,6 +634,8 @@ Account, return Ingredient; if ("InsurancePlan".equals(code)) return InsurancePlan; + if ("InventoryReport".equals(code)) + return InventoryReport; if ("Invoice".equals(code)) return Invoice; if ("Library".equals(code)) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RiskAssessment.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RiskAssessment.java index cfc214c2f..c92461d1a 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RiskAssessment.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/RiskAssessment.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -1688,6 +1688,296 @@ public class RiskAssessment extends DomainResource { return ResourceType.RiskAssessment; } + /** + * Search parameter: date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) + public static final String SP_DATE = "date"; + /** + * Fluent Client search parameter constant for date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "RiskAssessment:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("RiskAssessment:patient").toLocked(); + + /** + * Search parameter: encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", target={Encounter.class } ) + public static final String SP_ENCOUNTER = "encounter"; + /** + * Fluent Client search parameter constant for encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "RiskAssessment:encounter". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("RiskAssessment:encounter").toLocked(); + /** * Search parameter: condition *

@@ -1826,296 +2116,6 @@ public class RiskAssessment extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("RiskAssessment:subject").toLocked(); - /** - * Search parameter: date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) - public static final String SP_DATE = "date"; - /** - * Fluent Client search parameter constant for date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); - - /** - * Search parameter: encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", target={Encounter.class } ) - public static final String SP_ENCOUNTER = "encounter"; - /** - * Fluent Client search parameter constant for encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "RiskAssessment:encounter". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("RiskAssessment:encounter").toLocked(); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "RiskAssessment:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("RiskAssessment:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SampledData.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SampledData.java index af67d67fe..04a11c9ae 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SampledData.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SampledData.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Schedule.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Schedule.java index 9a3dccbc4..76a4e6394 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Schedule.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Schedule.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SearchParameter.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SearchParameter.java index e5a8278cb..e13153272 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SearchParameter.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SearchParameter.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -131,7 +131,6 @@ public class SearchParameter extends CanonicalResource { case SA: return "sa"; case EB: return "eb"; case AP: return "ap"; - case NULL: return null; default: return "?"; } } @@ -146,7 +145,6 @@ public class SearchParameter extends CanonicalResource { case SA: return "http://hl7.org/fhir/search-comparator"; case EB: return "http://hl7.org/fhir/search-comparator"; case AP: return "http://hl7.org/fhir/search-comparator"; - case NULL: return null; default: return "?"; } } @@ -161,7 +159,6 @@ public class SearchParameter extends CanonicalResource { case SA: return "the value for the parameter in the resource starts after the provided value."; case EB: return "the value for the parameter in the resource ends before the provided value."; case AP: return "the value for the parameter in the resource is approximately the same to the provided value."; - case NULL: return null; default: return "?"; } } @@ -176,7 +173,6 @@ public class SearchParameter extends CanonicalResource { case SA: return "Starts After"; case EB: return "Ends Before"; case AP: return "Approximately"; - case NULL: return null; default: return "?"; } } @@ -360,7 +356,6 @@ public class SearchParameter extends CanonicalResource { case TYPE: return "type"; case IDENTIFIER: return "identifier"; case OFTYPE: return "ofType"; - case NULL: return null; default: return "?"; } } @@ -378,7 +373,6 @@ public class SearchParameter extends CanonicalResource { case TYPE: return "http://hl7.org/fhir/search-modifier-code"; case IDENTIFIER: return "http://hl7.org/fhir/search-modifier-code"; case OFTYPE: return "http://hl7.org/fhir/search-modifier-code"; - case NULL: return null; default: return "?"; } } @@ -396,7 +390,6 @@ public class SearchParameter extends CanonicalResource { case TYPE: return "The search parameter only applies to the Resource Type specified as a modifier (e.g. the modifier is not actually :type, but :Patient etc.)."; case IDENTIFIER: return "The search parameter applies to the identifier on the resource, not the reference."; case OFTYPE: return "The search parameter has the format system|code|value, where the system and code refer to an Identifier.type.coding.system and .code, and match if any of the type codes match. All 3 parts must be present."; - case NULL: return null; default: return "?"; } } @@ -414,7 +407,6 @@ public class SearchParameter extends CanonicalResource { case TYPE: return "Type"; case IDENTIFIER: return "Identifier"; case OFTYPE: return "Of Type"; - case NULL: return null; default: return "?"; } } @@ -567,7 +559,6 @@ public class SearchParameter extends CanonicalResource { case NEARBY: return "nearby"; case DISTANCE: return "distance"; case OTHER: return "other"; - case NULL: return null; default: return "?"; } } @@ -578,7 +569,6 @@ public class SearchParameter extends CanonicalResource { case NEARBY: return "http://hl7.org/fhir/search-xpath-usage"; case DISTANCE: return "http://hl7.org/fhir/search-xpath-usage"; case OTHER: return "http://hl7.org/fhir/search-xpath-usage"; - case NULL: return null; default: return "?"; } } @@ -589,7 +579,6 @@ public class SearchParameter extends CanonicalResource { case NEARBY: return "The search parameter is based on a spatial transform of the selected nodes."; case DISTANCE: return "The search parameter is based on a spatial transform of the selected nodes, using physical distance from the middle."; case OTHER: return "The interpretation of the xpath statement is unknown (and can't be automated)."; - case NULL: return null; default: return "?"; } } @@ -600,7 +589,6 @@ public class SearchParameter extends CanonicalResource { case NEARBY: return "Nearby"; case DISTANCE: return "Distance"; case OTHER: return "Other"; - case NULL: return null; default: return "?"; } } @@ -3082,136 +3070,56 @@ public class SearchParameter extends CanonicalResource { } /** - * Search parameter: base + * Search parameter: context *

- * Description: The resource type(s) this search parameter applies to
- * Type: token
- * Path: SearchParameter.base
- *

- */ - @SearchParamDefinition(name="base", path="SearchParameter.base", description="The resource type(s) this search parameter applies to", type="token" ) - public static final String SP_BASE = "base"; - /** - * Fluent Client search parameter constant for base - *

- * Description: The resource type(s) this search parameter applies to
- * Type: token
- * Path: SearchParameter.base
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam BASE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_BASE); + * Description: Multiple Resources: - /** - * Search parameter: code - *

- * Description: Code used in URL
+* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +

* Type: token
- * Path: SearchParameter.code
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="code", path="SearchParameter.code", description="Code used in URL", type="token" ) - public static final String SP_CODE = "code"; + @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) + public static final String SP_CONTEXT = "context"; /** - * Fluent Client search parameter constant for code + * Fluent Client search parameter constant for context *

- * Description: Code used in URL
+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +
* Type: token
- * Path: SearchParameter.code
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); - - /** - * Search parameter: component - *

- * Description: Defines how the part works
- * Type: reference
- * Path: SearchParameter.component.definition
- *

- */ - @SearchParamDefinition(name="component", path="SearchParameter.component.definition", description="Defines how the part works", type="reference", target={SearchParameter.class } ) - public static final String SP_COMPONENT = "component"; - /** - * Fluent Client search parameter constant for component - *

- * Description: Defines how the part works
- * Type: reference
- * Path: SearchParameter.component.definition
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam COMPONENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_COMPONENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "SearchParameter:component". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_COMPONENT = new ca.uhn.fhir.model.api.Include("SearchParameter:component").toLocked(); - - /** - * Search parameter: derived-from - *

- * Description: Original definition for the search parameter
- * Type: reference
- * Path: SearchParameter.derivedFrom
- *

- */ - @SearchParamDefinition(name="derived-from", path="SearchParameter.derivedFrom", description="Original definition for the search parameter", type="reference", target={SearchParameter.class } ) - public static final String SP_DERIVED_FROM = "derived-from"; - /** - * Fluent Client search parameter constant for derived-from - *

- * Description: Original definition for the search parameter
- * Type: reference
- * Path: SearchParameter.derivedFrom
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DERIVED_FROM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DERIVED_FROM); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "SearchParameter:derived-from". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_DERIVED_FROM = new ca.uhn.fhir.model.api.Include("SearchParameter:derived-from").toLocked(); - - /** - * Search parameter: target - *

- * Description: Types of resource (if a resource reference)
- * Type: token
- * Path: SearchParameter.target
- *

- */ - @SearchParamDefinition(name="target", path="SearchParameter.target", description="Types of resource (if a resource reference)", type="token" ) - public static final String SP_TARGET = "target"; - /** - * Fluent Client search parameter constant for target - *

- * Description: Types of resource (if a resource reference)
- * Type: token
- * Path: SearchParameter.target
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam TARGET = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TARGET); - - /** - * Search parameter: type - *

- * Description: number | date | string | token | reference | composite | quantity | uri | special
- * Type: token
- * Path: SearchParameter.type
- *

- */ - @SearchParamDefinition(name="type", path="SearchParameter.type", description="number | date | string | token | reference | composite | quantity | uri | special", type="token" ) - public static final String SP_TYPE = "type"; - /** - * Fluent Client search parameter constant for type - *

- * Description: number | date | string | token | reference | composite | quantity | uri | special
- * Type: token
- * Path: SearchParameter.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); /** * Search parameter: context-quantity @@ -3265,110 +3173,6 @@ public class SearchParameter extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -3421,58 +3225,6 @@ public class SearchParameter extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -3887,8 +3639,248 @@ public class SearchParameter extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + + /** + * Search parameter: base + *

+ * Description: The resource type(s) this search parameter applies to
+ * Type: token
+ * Path: SearchParameter.base
+ *

+ */ + @SearchParamDefinition(name="base", path="SearchParameter.base", description="The resource type(s) this search parameter applies to", type="token" ) + public static final String SP_BASE = "base"; + /** + * Fluent Client search parameter constant for base + *

+ * Description: The resource type(s) this search parameter applies to
+ * Type: token
+ * Path: SearchParameter.base
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam BASE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_BASE); + + /** + * Search parameter: code + *

+ * Description: Code used in URL
+ * Type: token
+ * Path: SearchParameter.code
+ *

+ */ + @SearchParamDefinition(name="code", path="SearchParameter.code", description="Code used in URL", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: Code used in URL
+ * Type: token
+ * Path: SearchParameter.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + + /** + * Search parameter: component + *

+ * Description: Defines how the part works
+ * Type: reference
+ * Path: SearchParameter.component.definition
+ *

+ */ + @SearchParamDefinition(name="component", path="SearchParameter.component.definition", description="Defines how the part works", type="reference", target={SearchParameter.class } ) + public static final String SP_COMPONENT = "component"; + /** + * Fluent Client search parameter constant for component + *

+ * Description: Defines how the part works
+ * Type: reference
+ * Path: SearchParameter.component.definition
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam COMPONENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_COMPONENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "SearchParameter:component". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_COMPONENT = new ca.uhn.fhir.model.api.Include("SearchParameter:component").toLocked(); + + /** + * Search parameter: derived-from + *

+ * Description: Original definition for the search parameter
+ * Type: reference
+ * Path: SearchParameter.derivedFrom
+ *

+ */ + @SearchParamDefinition(name="derived-from", path="SearchParameter.derivedFrom", description="Original definition for the search parameter", type="reference", target={SearchParameter.class } ) + public static final String SP_DERIVED_FROM = "derived-from"; + /** + * Fluent Client search parameter constant for derived-from + *

+ * Description: Original definition for the search parameter
+ * Type: reference
+ * Path: SearchParameter.derivedFrom
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DERIVED_FROM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DERIVED_FROM); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "SearchParameter:derived-from". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_DERIVED_FROM = new ca.uhn.fhir.model.api.Include("SearchParameter:derived-from").toLocked(); + + /** + * Search parameter: target + *

+ * Description: Types of resource (if a resource reference)
+ * Type: token
+ * Path: SearchParameter.target
+ *

+ */ + @SearchParamDefinition(name="target", path="SearchParameter.target", description="Types of resource (if a resource reference)", type="token" ) + public static final String SP_TARGET = "target"; + /** + * Fluent Client search parameter constant for target + *

+ * Description: Types of resource (if a resource reference)
+ * Type: token
+ * Path: SearchParameter.target
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam TARGET = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TARGET); + + /** + * Search parameter: type + *

+ * Description: number | date | string | token | reference | composite | quantity | uri | special
+ * Type: token
+ * Path: SearchParameter.type
+ *

+ */ + @SearchParamDefinition(name="type", path="SearchParameter.type", description="number | date | string | token | reference | composite | quantity | uri | special", type="token" ) + public static final String SP_TYPE = "type"; + /** + * Fluent Client search parameter constant for type + *

+ * Description: number | date | string | token | reference | composite | quantity | uri | special
+ * Type: token
+ * Path: SearchParameter.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); + +// Manual code (from Configuration.txt): public boolean supportsCopyright() { return false; } + +// end addition + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ServiceRequest.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ServiceRequest.java index 1fdcbbff9..21f2f7c7e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ServiceRequest.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ServiceRequest.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -2445,6 +2445,290 @@ public class ServiceRequest extends DomainResource { return ResourceType.ServiceRequest; } + /** + * Search parameter: code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance +* [Condition](condition.html): Code for the condition +* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered +* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result +* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code +* [List](list.html): What the purpose of this list is +* [Medication](medication.html): Returns medications for a specific code +* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code +* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code +* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code +* [MedicationUsage](medicationusage.html): Return statements of this medication code +* [Observation](observation.html): The code of the observation type +* [Procedure](procedure.html): A code to identify a procedure +* [ServiceRequest](servicerequest.html): What is being requested/ordered +
+ * Type: token
+ * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ServiceRequest:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("ServiceRequest:patient").toLocked(); + + /** + * Search parameter: encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) + public static final String SP_ENCOUNTER = "encounter"; + /** + * Fluent Client search parameter constant for encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "ServiceRequest:encounter". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("ServiceRequest:encounter").toLocked(); + /** * Search parameter: authored *

@@ -2617,26 +2901,6 @@ public class ServiceRequest extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.DateClientParam OCCURRENCE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_OCCURRENCE); - /** - * Search parameter: performer-type - *

- * Description: Performer role
- * Type: token
- * Path: ServiceRequest.performerType
- *

- */ - @SearchParamDefinition(name="performer-type", path="ServiceRequest.performerType", description="Performer role", type="token" ) - public static final String SP_PERFORMER_TYPE = "performer-type"; - /** - * Fluent Client search parameter constant for performer-type - *

- * Description: Performer role
- * Type: token
- * Path: ServiceRequest.performerType
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam PERFORMER_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PERFORMER_TYPE); - /** * Search parameter: performer *

@@ -2663,6 +2927,26 @@ public class ServiceRequest extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_PERFORMER = new ca.uhn.fhir.model.api.Include("ServiceRequest:performer").toLocked(); + /** + * Search parameter: performer-type + *

+ * Description: Performer role
+ * Type: token
+ * Path: ServiceRequest.performerType
+ *

+ */ + @SearchParamDefinition(name="performer-type", path="ServiceRequest.performerType", description="Performer role", type="token" ) + public static final String SP_PERFORMER_TYPE = "performer-type"; + /** + * Fluent Client search parameter constant for performer-type + *

+ * Description: Performer role
+ * Type: token
+ * Path: ServiceRequest.performerType
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam PERFORMER_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PERFORMER_TYPE); + /** * Search parameter: priority *

@@ -2827,290 +3111,6 @@ public class ServiceRequest extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("ServiceRequest:subject").toLocked(); - /** - * Search parameter: code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - @SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance\r\n* [Condition](condition.html): Code for the condition\r\n* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered\r\n* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code\r\n* [List](list.html): What the purpose of this list is\r\n* [Medication](medication.html): Returns medications for a specific code\r\n* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code\r\n* [MedicationUsage](medicationusage.html): Return statements of this medication code\r\n* [Observation](observation.html): The code of the observation type\r\n* [Procedure](procedure.html): A code to identify a procedure\r\n* [ServiceRequest](servicerequest.html): What is being requested/ordered\r\n", type="token" ) - public static final String SP_CODE = "code"; - /** - * Fluent Client search parameter constant for code - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Code that identifies the allergy or intolerance -* [Condition](condition.html): Code for the condition -* [DeviceRequest](devicerequest.html): Code for what is being requested/ordered -* [DiagnosticReport](diagnosticreport.html): The code for the report, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result -* [FamilyMemberHistory](familymemberhistory.html): A search by a condition code -* [List](list.html): What the purpose of this list is -* [Medication](medication.html): Returns medications for a specific code -* [MedicationAdministration](medicationadministration.html): Return administrations of this medication code -* [MedicationDispense](medicationdispense.html): Returns dispenses of this medicine code -* [MedicationRequest](medicationrequest.html): Return prescriptions of this medication code -* [MedicationUsage](medicationusage.html): Return statements of this medication code -* [Observation](observation.html): The code of the observation type -* [Procedure](procedure.html): A code to identify a procedure -* [ServiceRequest](servicerequest.html): What is being requested/ordered -
- * Type: token
- * Path: AllergyIntolerance.code | AllergyIntolerance.reaction.substance | Condition.code | DeviceRequest.code.concept | DiagnosticReport.code | FamilyMemberHistory.condition.code | List.code | Medication.code | MedicationAdministration.medication.concept | MedicationDispense.medication.concept | MedicationRequest.medication.concept | MedicationUsage.medication.concept | Observation.code | Procedure.code | ServiceRequest.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); - - /** - * Search parameter: encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) - public static final String SP_ENCOUNTER = "encounter"; - /** - * Fluent Client search parameter constant for encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ServiceRequest:encounter". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("ServiceRequest:encounter").toLocked(); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "ServiceRequest:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("ServiceRequest:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Signature.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Signature.java index 63b4fe568..5c26277b8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Signature.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Signature.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Slot.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Slot.java index ac81fad6f..b634b0f3a 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Slot.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Slot.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -103,7 +103,6 @@ public class Slot extends DomainResource { case BUSYUNAVAILABLE: return "busy-unavailable"; case BUSYTENTATIVE: return "busy-tentative"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -114,7 +113,6 @@ public class Slot extends DomainResource { case BUSYUNAVAILABLE: return "http://hl7.org/fhir/slotstatus"; case BUSYTENTATIVE: return "http://hl7.org/fhir/slotstatus"; case ENTEREDINERROR: return "http://hl7.org/fhir/slotstatus"; - case NULL: return null; default: return "?"; } } @@ -125,7 +123,6 @@ public class Slot extends DomainResource { case BUSYUNAVAILABLE: return "Indicates that the time interval is busy and that the interval cannot be scheduled."; case BUSYTENTATIVE: return "Indicates that the time interval is busy because one or more events have been tentatively scheduled for that interval."; case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record."; - case NULL: return null; default: return "?"; } } @@ -136,7 +133,6 @@ public class Slot extends DomainResource { case BUSYUNAVAILABLE: return "Busy (Unavailable)"; case BUSYTENTATIVE: return "Busy (Tentative)"; case ENTEREDINERROR: return "Entered in error"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Specimen.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Specimen.java index c69201163..9bb719d17 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Specimen.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Specimen.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class Specimen extends DomainResource { case UNAVAILABLE: return "unavailable"; case UNSATISFACTORY: return "unsatisfactory"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class Specimen extends DomainResource { case UNAVAILABLE: return "http://hl7.org/fhir/specimen-status"; case UNSATISFACTORY: return "http://hl7.org/fhir/specimen-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/specimen-status"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class Specimen extends DomainResource { case UNAVAILABLE: return "There is no physical specimen because it is either lost, destroyed or consumed."; case UNSATISFACTORY: return "The specimen cannot be used because of a quality issue such as a broken container, contamination, or too old."; case ENTEREDINERROR: return "The specimen was entered in error and therefore nullified."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class Specimen extends DomainResource { case UNAVAILABLE: return "Unavailable"; case UNSATISFACTORY: return "Unsatisfactory"; case ENTEREDINERROR: return "Entered in Error"; - case NULL: return null; default: return "?"; } } @@ -2637,26 +2633,6 @@ public class Specimen extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_COLLECTOR = new ca.uhn.fhir.model.api.Include("Specimen:collector").toLocked(); - /** - * Search parameter: container-id - *

- * Description: The unique identifier associated with the specimen container
- * Type: token
- * Path: Specimen.container.identifier
- *

- */ - @SearchParamDefinition(name="container-id", path="Specimen.container.identifier", description="The unique identifier associated with the specimen container", type="token" ) - public static final String SP_CONTAINER_ID = "container-id"; - /** - * Fluent Client search parameter constant for container-id - *

- * Description: The unique identifier associated with the specimen container
- * Type: token
- * Path: Specimen.container.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTAINER_ID = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTAINER_ID); - /** * Search parameter: container *

@@ -2677,6 +2653,26 @@ public class Specimen extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTAINER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTAINER); + /** + * Search parameter: container-id + *

+ * Description: The unique identifier associated with the specimen container
+ * Type: token
+ * Path: Specimen.container.identifier
+ *

+ */ + @SearchParamDefinition(name="container-id", path="Specimen.container.identifier", description="The unique identifier associated with the specimen container", type="token" ) + public static final String SP_CONTAINER_ID = "container-id"; + /** + * Fluent Client search parameter constant for container-id + *

+ * Description: The unique identifier associated with the specimen container
+ * Type: token
+ * Path: Specimen.container.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTAINER_ID = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTAINER_ID); + /** * Search parameter: identifier *

@@ -2731,7 +2727,7 @@ public class Specimen extends DomainResource { * Path: Specimen.subject.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="Specimen.subject.where(resolve() is Patient)", description="The patient the specimen comes from", type="reference", target={Patient.class } ) + @SearchParamDefinition(name="patient", path="Specimen.subject.where(resolve() is Patient)", description="The patient the specimen comes from", type="reference", target={Device.class, Group.class, Location.class, Patient.class, Substance.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SpecimenDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SpecimenDefinition.java index 7cf126c59..9f1852a35 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SpecimenDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SpecimenDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -82,7 +82,6 @@ public class SpecimenDefinition extends DomainResource { switch (this) { case PREFERRED: return "preferred"; case ALTERNATE: return "alternate"; - case NULL: return null; default: return "?"; } } @@ -90,7 +89,6 @@ public class SpecimenDefinition extends DomainResource { switch (this) { case PREFERRED: return "http://hl7.org/fhir/specimen-contained-preference"; case ALTERNATE: return "http://hl7.org/fhir/specimen-contained-preference"; - case NULL: return null; default: return "?"; } } @@ -98,7 +96,6 @@ public class SpecimenDefinition extends DomainResource { switch (this) { case PREFERRED: return "This type of contained specimen is preferred to collect this kind of specimen."; case ALTERNATE: return "This type of conditioned specimen is an alternate."; - case NULL: return null; default: return "?"; } } @@ -106,7 +103,6 @@ public class SpecimenDefinition extends DomainResource { switch (this) { case PREFERRED: return "Preferred"; case ALTERNATE: return "Alternate"; - case NULL: return null; default: return "?"; } } @@ -4042,26 +4038,6 @@ public class SpecimenDefinition extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE); - /** - * Search parameter: type-tested - *

- * Description: The type of specimen conditioned for testing
- * Type: token
- * Path: SpecimenDefinition.typeTested.type
- *

- */ - @SearchParamDefinition(name="type-tested", path="SpecimenDefinition.typeTested.type", description="The type of specimen conditioned for testing", type="token" ) - public static final String SP_TYPE_TESTED = "type-tested"; - /** - * Fluent Client search parameter constant for type-tested - *

- * Description: The type of specimen conditioned for testing
- * Type: token
- * Path: SpecimenDefinition.typeTested.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE_TESTED = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE_TESTED); - /** * Search parameter: type *

@@ -4082,6 +4058,26 @@ public class SpecimenDefinition extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE); + /** + * Search parameter: type-tested + *

+ * Description: The type of specimen conditioned for testing
+ * Type: token
+ * Path: SpecimenDefinition.typeTested.type
+ *

+ */ + @SearchParamDefinition(name="type-tested", path="SpecimenDefinition.typeTested.type", description="The type of specimen conditioned for testing", type="token" ) + public static final String SP_TYPE_TESTED = "type-tested"; + /** + * Fluent Client search parameter constant for type-tested + *

+ * Description: The type of specimen conditioned for testing
+ * Type: token
+ * Path: SpecimenDefinition.typeTested.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE_TESTED = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE_TESTED); + /** * Search parameter: url *

diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Statistic.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Statistic.java index e58254510..a0a91ed2f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Statistic.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Statistic.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -71,25 +71,25 @@ public class Statistic extends BackboneType implements ICompositeType { /** * Number of participants in the population. */ - @Child(name = "numberOfStudies", type = {IntegerType.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Child(name = "numberOfStudies", type = {UnsignedIntType.class}, order=3, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Number of contributing studies", formalDefinition="Number of participants in the population." ) - protected IntegerType numberOfStudies; + protected UnsignedIntType numberOfStudies; /** * A human-readable string to clarify or explain concepts about the sample size. */ - @Child(name = "numberOfParticipants", type = {IntegerType.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Child(name = "numberOfParticipants", type = {UnsignedIntType.class}, order=4, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Cumulative number of participants", formalDefinition="A human-readable string to clarify or explain concepts about the sample size." ) - protected IntegerType numberOfParticipants; + protected UnsignedIntType numberOfParticipants; /** * Number of participants with known results for measured variables. */ - @Child(name = "knownDataCount", type = {IntegerType.class}, order=5, min=0, max=1, modifier=false, summary=true) + @Child(name = "knownDataCount", type = {UnsignedIntType.class}, order=5, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Number of participants with known results for measured variables", formalDefinition="Number of participants with known results for measured variables." ) - protected IntegerType knownDataCount; + protected UnsignedIntType knownDataCount; - private static final long serialVersionUID = -2042101071L; + private static final long serialVersionUID = -1870635979L; /** * Constructor @@ -203,12 +203,12 @@ public class Statistic extends BackboneType implements ICompositeType { /** * @return {@link #numberOfStudies} (Number of participants in the population.). This is the underlying object with id, value and extensions. The accessor "getNumberOfStudies" gives direct access to the value */ - public IntegerType getNumberOfStudiesElement() { + public UnsignedIntType getNumberOfStudiesElement() { if (this.numberOfStudies == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create StatisticSampleSizeComponent.numberOfStudies"); else if (Configuration.doAutoCreate()) - this.numberOfStudies = new IntegerType(); // bb + this.numberOfStudies = new UnsignedIntType(); // bb return this.numberOfStudies; } @@ -223,7 +223,7 @@ public class Statistic extends BackboneType implements ICompositeType { /** * @param value {@link #numberOfStudies} (Number of participants in the population.). This is the underlying object with id, value and extensions. The accessor "getNumberOfStudies" gives direct access to the value */ - public StatisticSampleSizeComponent setNumberOfStudiesElement(IntegerType value) { + public StatisticSampleSizeComponent setNumberOfStudiesElement(UnsignedIntType value) { this.numberOfStudies = value; return this; } @@ -240,7 +240,7 @@ public class Statistic extends BackboneType implements ICompositeType { */ public StatisticSampleSizeComponent setNumberOfStudies(int value) { if (this.numberOfStudies == null) - this.numberOfStudies = new IntegerType(); + this.numberOfStudies = new UnsignedIntType(); this.numberOfStudies.setValue(value); return this; } @@ -248,12 +248,12 @@ public class Statistic extends BackboneType implements ICompositeType { /** * @return {@link #numberOfParticipants} (A human-readable string to clarify or explain concepts about the sample size.). This is the underlying object with id, value and extensions. The accessor "getNumberOfParticipants" gives direct access to the value */ - public IntegerType getNumberOfParticipantsElement() { + public UnsignedIntType getNumberOfParticipantsElement() { if (this.numberOfParticipants == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create StatisticSampleSizeComponent.numberOfParticipants"); else if (Configuration.doAutoCreate()) - this.numberOfParticipants = new IntegerType(); // bb + this.numberOfParticipants = new UnsignedIntType(); // bb return this.numberOfParticipants; } @@ -268,7 +268,7 @@ public class Statistic extends BackboneType implements ICompositeType { /** * @param value {@link #numberOfParticipants} (A human-readable string to clarify or explain concepts about the sample size.). This is the underlying object with id, value and extensions. The accessor "getNumberOfParticipants" gives direct access to the value */ - public StatisticSampleSizeComponent setNumberOfParticipantsElement(IntegerType value) { + public StatisticSampleSizeComponent setNumberOfParticipantsElement(UnsignedIntType value) { this.numberOfParticipants = value; return this; } @@ -285,7 +285,7 @@ public class Statistic extends BackboneType implements ICompositeType { */ public StatisticSampleSizeComponent setNumberOfParticipants(int value) { if (this.numberOfParticipants == null) - this.numberOfParticipants = new IntegerType(); + this.numberOfParticipants = new UnsignedIntType(); this.numberOfParticipants.setValue(value); return this; } @@ -293,12 +293,12 @@ public class Statistic extends BackboneType implements ICompositeType { /** * @return {@link #knownDataCount} (Number of participants with known results for measured variables.). This is the underlying object with id, value and extensions. The accessor "getKnownDataCount" gives direct access to the value */ - public IntegerType getKnownDataCountElement() { + public UnsignedIntType getKnownDataCountElement() { if (this.knownDataCount == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create StatisticSampleSizeComponent.knownDataCount"); else if (Configuration.doAutoCreate()) - this.knownDataCount = new IntegerType(); // bb + this.knownDataCount = new UnsignedIntType(); // bb return this.knownDataCount; } @@ -313,7 +313,7 @@ public class Statistic extends BackboneType implements ICompositeType { /** * @param value {@link #knownDataCount} (Number of participants with known results for measured variables.). This is the underlying object with id, value and extensions. The accessor "getKnownDataCount" gives direct access to the value */ - public StatisticSampleSizeComponent setKnownDataCountElement(IntegerType value) { + public StatisticSampleSizeComponent setKnownDataCountElement(UnsignedIntType value) { this.knownDataCount = value; return this; } @@ -330,7 +330,7 @@ public class Statistic extends BackboneType implements ICompositeType { */ public StatisticSampleSizeComponent setKnownDataCount(int value) { if (this.knownDataCount == null) - this.knownDataCount = new IntegerType(); + this.knownDataCount = new UnsignedIntType(); this.knownDataCount.setValue(value); return this; } @@ -339,9 +339,9 @@ public class Statistic extends BackboneType implements ICompositeType { super.listChildren(children); children.add(new Property("description", "string", "Human-readable summary of population sample size.", 0, 1, description)); children.add(new Property("note", "Annotation", "Footnote or explanatory note about the sample size.", 0, java.lang.Integer.MAX_VALUE, note)); - children.add(new Property("numberOfStudies", "integer", "Number of participants in the population.", 0, 1, numberOfStudies)); - children.add(new Property("numberOfParticipants", "integer", "A human-readable string to clarify or explain concepts about the sample size.", 0, 1, numberOfParticipants)); - children.add(new Property("knownDataCount", "integer", "Number of participants with known results for measured variables.", 0, 1, knownDataCount)); + children.add(new Property("numberOfStudies", "unsignedInt", "Number of participants in the population.", 0, 1, numberOfStudies)); + children.add(new Property("numberOfParticipants", "unsignedInt", "A human-readable string to clarify or explain concepts about the sample size.", 0, 1, numberOfParticipants)); + children.add(new Property("knownDataCount", "unsignedInt", "Number of participants with known results for measured variables.", 0, 1, knownDataCount)); } @Override @@ -349,9 +349,9 @@ public class Statistic extends BackboneType implements ICompositeType { switch (_hash) { case -1724546052: /*description*/ return new Property("description", "string", "Human-readable summary of population sample size.", 0, 1, description); case 3387378: /*note*/ return new Property("note", "Annotation", "Footnote or explanatory note about the sample size.", 0, java.lang.Integer.MAX_VALUE, note); - case -177467129: /*numberOfStudies*/ return new Property("numberOfStudies", "integer", "Number of participants in the population.", 0, 1, numberOfStudies); - case 1799357120: /*numberOfParticipants*/ return new Property("numberOfParticipants", "integer", "A human-readable string to clarify or explain concepts about the sample size.", 0, 1, numberOfParticipants); - case -937344126: /*knownDataCount*/ return new Property("knownDataCount", "integer", "Number of participants with known results for measured variables.", 0, 1, knownDataCount); + case -177467129: /*numberOfStudies*/ return new Property("numberOfStudies", "unsignedInt", "Number of participants in the population.", 0, 1, numberOfStudies); + case 1799357120: /*numberOfParticipants*/ return new Property("numberOfParticipants", "unsignedInt", "A human-readable string to clarify or explain concepts about the sample size.", 0, 1, numberOfParticipants); + case -937344126: /*knownDataCount*/ return new Property("knownDataCount", "unsignedInt", "Number of participants with known results for measured variables.", 0, 1, knownDataCount); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -362,9 +362,9 @@ public class Statistic extends BackboneType implements ICompositeType { switch (hash) { case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation - case -177467129: /*numberOfStudies*/ return this.numberOfStudies == null ? new Base[0] : new Base[] {this.numberOfStudies}; // IntegerType - case 1799357120: /*numberOfParticipants*/ return this.numberOfParticipants == null ? new Base[0] : new Base[] {this.numberOfParticipants}; // IntegerType - case -937344126: /*knownDataCount*/ return this.knownDataCount == null ? new Base[0] : new Base[] {this.knownDataCount}; // IntegerType + case -177467129: /*numberOfStudies*/ return this.numberOfStudies == null ? new Base[0] : new Base[] {this.numberOfStudies}; // UnsignedIntType + case 1799357120: /*numberOfParticipants*/ return this.numberOfParticipants == null ? new Base[0] : new Base[] {this.numberOfParticipants}; // UnsignedIntType + case -937344126: /*knownDataCount*/ return this.knownDataCount == null ? new Base[0] : new Base[] {this.knownDataCount}; // UnsignedIntType default: return super.getProperty(hash, name, checkValid); } @@ -380,13 +380,13 @@ public class Statistic extends BackboneType implements ICompositeType { this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation return value; case -177467129: // numberOfStudies - this.numberOfStudies = TypeConvertor.castToInteger(value); // IntegerType + this.numberOfStudies = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType return value; case 1799357120: // numberOfParticipants - this.numberOfParticipants = TypeConvertor.castToInteger(value); // IntegerType + this.numberOfParticipants = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType return value; case -937344126: // knownDataCount - this.knownDataCount = TypeConvertor.castToInteger(value); // IntegerType + this.knownDataCount = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType return value; default: return super.setProperty(hash, name, value); } @@ -400,11 +400,11 @@ public class Statistic extends BackboneType implements ICompositeType { } else if (name.equals("note")) { this.getNote().add(TypeConvertor.castToAnnotation(value)); } else if (name.equals("numberOfStudies")) { - this.numberOfStudies = TypeConvertor.castToInteger(value); // IntegerType + this.numberOfStudies = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType } else if (name.equals("numberOfParticipants")) { - this.numberOfParticipants = TypeConvertor.castToInteger(value); // IntegerType + this.numberOfParticipants = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType } else if (name.equals("knownDataCount")) { - this.knownDataCount = TypeConvertor.castToInteger(value); // IntegerType + this.knownDataCount = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType } else return super.setProperty(name, value); return value; @@ -428,9 +428,9 @@ public class Statistic extends BackboneType implements ICompositeType { switch (hash) { case -1724546052: /*description*/ return new String[] {"string"}; case 3387378: /*note*/ return new String[] {"Annotation"}; - case -177467129: /*numberOfStudies*/ return new String[] {"integer"}; - case 1799357120: /*numberOfParticipants*/ return new String[] {"integer"}; - case -937344126: /*knownDataCount*/ return new String[] {"integer"}; + case -177467129: /*numberOfStudies*/ return new String[] {"unsignedInt"}; + case 1799357120: /*numberOfParticipants*/ return new String[] {"unsignedInt"}; + case -937344126: /*knownDataCount*/ return new String[] {"unsignedInt"}; default: return super.getTypesForProperty(hash, name); } @@ -1569,18 +1569,17 @@ public class Statistic extends BackboneType implements ICompositeType { /** * Description of a component of the method to generate the statistic. */ - @Child(name = "code", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) + @Child(name = "code", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="Model specification", formalDefinition="Description of a component of the method to generate the statistic." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/statistic-model-code") protected CodeableConcept code; /** - * Further specification of a component of the method to generate the statistic. + * Further specification of the quantified value of the component of the method to generate the statistic. */ - @Child(name = "value", type = {CodeableConcept.class, BooleanType.class, Quantity.class, Range.class}, order=2, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Model specification details", formalDefinition="Further specification of a component of the method to generate the statistic." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/statistic-model-method") - protected DataType value; + @Child(name = "value", type = {Quantity.class}, order=2, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Numerical value to complete model specification", formalDefinition="Further specification of the quantified value of the component of the method to generate the statistic." ) + protected Quantity value; /** * A variable adjusted for in the adjusted analysis. @@ -1589,7 +1588,7 @@ public class Statistic extends BackboneType implements ICompositeType { @Description(shortDefinition="A variable adjusted for in the adjusted analysis", formalDefinition="A variable adjusted for in the adjusted analysis." ) protected List variable; - private static final long serialVersionUID = 215509186L; + private static final long serialVersionUID = 1539071113L; /** * Constructor @@ -1598,6 +1597,14 @@ public class Statistic extends BackboneType implements ICompositeType { super(); } + /** + * Constructor + */ + public StatisticModelCharacteristicComponent(CodeableConcept code) { + super(); + this.setCode(code); + } + /** * @return {@link #code} (Description of a component of the method to generate the statistic.) */ @@ -1623,82 +1630,25 @@ public class Statistic extends BackboneType implements ICompositeType { } /** - * @return {@link #value} (Further specification of a component of the method to generate the statistic.) + * @return {@link #value} (Further specification of the quantified value of the component of the method to generate the statistic.) */ - public DataType getValue() { + public Quantity getValue() { + if (this.value == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create StatisticModelCharacteristicComponent.value"); + else if (Configuration.doAutoCreate()) + this.value = new Quantity(); // cc return this.value; } - /** - * @return {@link #value} (Further specification of a component of the method to generate the statistic.) - */ - public CodeableConcept getValueCodeableConcept() throws FHIRException { - if (this.value == null) - this.value = new CodeableConcept(); - if (!(this.value instanceof CodeableConcept)) - throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.value.getClass().getName()+" was encountered"); - return (CodeableConcept) this.value; - } - - public boolean hasValueCodeableConcept() { - return this != null && this.value instanceof CodeableConcept; - } - - /** - * @return {@link #value} (Further specification of a component of the method to generate the statistic.) - */ - public BooleanType getValueBooleanType() throws FHIRException { - if (this.value == null) - this.value = new BooleanType(); - if (!(this.value instanceof BooleanType)) - throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.value.getClass().getName()+" was encountered"); - return (BooleanType) this.value; - } - - public boolean hasValueBooleanType() { - return this != null && this.value instanceof BooleanType; - } - - /** - * @return {@link #value} (Further specification of a component of the method to generate the statistic.) - */ - public Quantity getValueQuantity() throws FHIRException { - if (this.value == null) - this.value = new Quantity(); - if (!(this.value instanceof Quantity)) - throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.value.getClass().getName()+" was encountered"); - return (Quantity) this.value; - } - - public boolean hasValueQuantity() { - return this != null && this.value instanceof Quantity; - } - - /** - * @return {@link #value} (Further specification of a component of the method to generate the statistic.) - */ - public Range getValueRange() throws FHIRException { - if (this.value == null) - this.value = new Range(); - if (!(this.value instanceof Range)) - throw new FHIRException("Type mismatch: the type Range was expected, but "+this.value.getClass().getName()+" was encountered"); - return (Range) this.value; - } - - public boolean hasValueRange() { - return this != null && this.value instanceof Range; - } - public boolean hasValue() { return this.value != null && !this.value.isEmpty(); } /** - * @param value {@link #value} (Further specification of a component of the method to generate the statistic.) + * @param value {@link #value} (Further specification of the quantified value of the component of the method to generate the statistic.) */ - public StatisticModelCharacteristicComponent setValue(DataType value) { - if (value != null && !(value instanceof CodeableConcept || value instanceof BooleanType || value instanceof Quantity || value instanceof Range)) - throw new Error("Not the right type for Statistic.modelCharacteristic.value[x]: "+value.fhirType()); + public StatisticModelCharacteristicComponent setValue(Quantity value) { this.value = value; return this; } @@ -1759,7 +1709,7 @@ public class Statistic extends BackboneType implements ICompositeType { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("code", "CodeableConcept", "Description of a component of the method to generate the statistic.", 0, 1, code)); - children.add(new Property("value[x]", "CodeableConcept|boolean|Quantity|Range", "Further specification of a component of the method to generate the statistic.", 0, 1, value)); + children.add(new Property("value", "Quantity", "Further specification of the quantified value of the component of the method to generate the statistic.", 0, 1, value)); children.add(new Property("variable", "", "A variable adjusted for in the adjusted analysis.", 0, java.lang.Integer.MAX_VALUE, variable)); } @@ -1767,12 +1717,7 @@ public class Statistic extends BackboneType implements ICompositeType { public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Description of a component of the method to generate the statistic.", 0, 1, code); - case -1410166417: /*value[x]*/ return new Property("value[x]", "CodeableConcept|boolean|Quantity|Range", "Further specification of a component of the method to generate the statistic.", 0, 1, value); - case 111972721: /*value*/ return new Property("value[x]", "CodeableConcept|boolean|Quantity|Range", "Further specification of a component of the method to generate the statistic.", 0, 1, value); - case 924902896: /*valueCodeableConcept*/ return new Property("value[x]", "CodeableConcept", "Further specification of a component of the method to generate the statistic.", 0, 1, value); - case 733421943: /*valueBoolean*/ return new Property("value[x]", "boolean", "Further specification of a component of the method to generate the statistic.", 0, 1, value); - case -2029823716: /*valueQuantity*/ return new Property("value[x]", "Quantity", "Further specification of a component of the method to generate the statistic.", 0, 1, value); - case 2030761548: /*valueRange*/ return new Property("value[x]", "Range", "Further specification of a component of the method to generate the statistic.", 0, 1, value); + case 111972721: /*value*/ return new Property("value", "Quantity", "Further specification of the quantified value of the component of the method to generate the statistic.", 0, 1, value); case -1249586564: /*variable*/ return new Property("variable", "", "A variable adjusted for in the adjusted analysis.", 0, java.lang.Integer.MAX_VALUE, variable); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -1783,7 +1728,7 @@ public class Statistic extends BackboneType implements ICompositeType { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept - case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // DataType + case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // Quantity case -1249586564: /*variable*/ return this.variable == null ? new Base[0] : this.variable.toArray(new Base[this.variable.size()]); // StatisticModelCharacteristicVariableComponent default: return super.getProperty(hash, name, checkValid); } @@ -1797,7 +1742,7 @@ public class Statistic extends BackboneType implements ICompositeType { this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; case 111972721: // value - this.value = TypeConvertor.castToType(value); // DataType + this.value = TypeConvertor.castToQuantity(value); // Quantity return value; case -1249586564: // variable this.getVariable().add((StatisticModelCharacteristicVariableComponent) value); // StatisticModelCharacteristicVariableComponent @@ -1811,8 +1756,8 @@ public class Statistic extends BackboneType implements ICompositeType { public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("code")) { this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept - } else if (name.equals("value[x]")) { - this.value = TypeConvertor.castToType(value); // DataType + } else if (name.equals("value")) { + this.value = TypeConvertor.castToQuantity(value); // Quantity } else if (name.equals("variable")) { this.getVariable().add((StatisticModelCharacteristicVariableComponent) value); } else @@ -1824,7 +1769,6 @@ public class Statistic extends BackboneType implements ICompositeType { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: return getCode(); - case -1410166417: return getValue(); case 111972721: return getValue(); case -1249586564: return addVariable(); default: return super.makeProperty(hash, name); @@ -1836,7 +1780,7 @@ public class Statistic extends BackboneType implements ICompositeType { public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: /*code*/ return new String[] {"CodeableConcept"}; - case 111972721: /*value*/ return new String[] {"CodeableConcept", "boolean", "Quantity", "Range"}; + case 111972721: /*value*/ return new String[] {"Quantity"}; case -1249586564: /*variable*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -1849,22 +1793,10 @@ public class Statistic extends BackboneType implements ICompositeType { this.code = new CodeableConcept(); return this.code; } - else if (name.equals("valueCodeableConcept")) { - this.value = new CodeableConcept(); - return this.value; - } - else if (name.equals("valueBoolean")) { - this.value = new BooleanType(); - return this.value; - } - else if (name.equals("valueQuantity")) { + else if (name.equals("value")) { this.value = new Quantity(); return this.value; } - else if (name.equals("valueRange")) { - this.value = new Range(); - return this.value; - } else if (name.equals("variable")) { return addVariable(); } @@ -2416,42 +2348,56 @@ public class Statistic extends BackboneType implements ICompositeType { @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/statistic-type") protected CodeableConcept statisticType; + /** + * When the measured variable is handled categorically, the category element is used to define which category the statistic is reporting. + */ + @Child(name = "category", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Associated category for categorical variable\"", formalDefinition="When the measured variable is handled categorically, the category element is used to define which category the statistic is reporting." ) + protected CodeableConcept category; + /** * Statistic value. */ - @Child(name = "quantity", type = {Quantity.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Child(name = "quantity", type = {Quantity.class}, order=4, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Statistic value", formalDefinition="Statistic value." ) protected Quantity quantity; /** - * The number of events associated with the statistic. + * The number of events associated with the statistic, where the unit of analysis is different from numberAffected, sampleSize.knownDataCount and sampleSize.numberOfParticipants. */ - @Child(name = "numberOfEvents", type = {IntegerType.class}, order=4, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="The number of events associated with the statistic", formalDefinition="The number of events associated with the statistic." ) - protected IntegerType numberOfEvents; + @Child(name = "numberOfEvents", type = {UnsignedIntType.class}, order=5, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="The number of events associated with the statistic", formalDefinition="The number of events associated with the statistic, where the unit of analysis is different from numberAffected, sampleSize.knownDataCount and sampleSize.numberOfParticipants." ) + protected UnsignedIntType numberOfEvents; + + /** + * The number of participants affected where the unit of analysis is the same as sampleSize.knownDataCount and sampleSize.numberOfParticipants. + */ + @Child(name = "numberAffected", type = {UnsignedIntType.class}, order=6, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="The number of participants affected", formalDefinition="The number of participants affected where the unit of analysis is the same as sampleSize.knownDataCount and sampleSize.numberOfParticipants." ) + protected UnsignedIntType numberAffected; /** * Number of samples in the statistic. */ - @Child(name = "sampleSize", type = {}, order=5, min=0, max=1, modifier=false, summary=true) + @Child(name = "sampleSize", type = {}, order=7, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Number of samples in the statistic", formalDefinition="Number of samples in the statistic." ) protected StatisticSampleSizeComponent sampleSize; /** * A statistical attribute of the statistic such as a measure of heterogeneity. */ - @Child(name = "attributeEstimate", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "attributeEstimate", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="An attribute of the Statistic", formalDefinition="A statistical attribute of the statistic such as a measure of heterogeneity." ) protected List attributeEstimate; /** * A component of the method to generate the statistic. */ - @Child(name = "modelCharacteristic", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "modelCharacteristic", type = {}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Model characteristic", formalDefinition="A component of the method to generate the statistic." ) protected List modelCharacteristic; - private static final long serialVersionUID = -1410335525L; + private static final long serialVersionUID = -1861373489L; /** * Constructor @@ -2586,6 +2532,30 @@ public class Statistic extends BackboneType implements ICompositeType { return this; } + /** + * @return {@link #category} (When the measured variable is handled categorically, the category element is used to define which category the statistic is reporting.) + */ + public CodeableConcept getCategory() { + if (this.category == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Statistic.category"); + else if (Configuration.doAutoCreate()) + this.category = new CodeableConcept(); // cc + return this.category; + } + + public boolean hasCategory() { + return this.category != null && !this.category.isEmpty(); + } + + /** + * @param value {@link #category} (When the measured variable is handled categorically, the category element is used to define which category the statistic is reporting.) + */ + public Statistic setCategory(CodeableConcept value) { + this.category = value; + return this; + } + /** * @return {@link #quantity} (Statistic value.) */ @@ -2611,14 +2581,14 @@ public class Statistic extends BackboneType implements ICompositeType { } /** - * @return {@link #numberOfEvents} (The number of events associated with the statistic.). This is the underlying object with id, value and extensions. The accessor "getNumberOfEvents" gives direct access to the value + * @return {@link #numberOfEvents} (The number of events associated with the statistic, where the unit of analysis is different from numberAffected, sampleSize.knownDataCount and sampleSize.numberOfParticipants.). This is the underlying object with id, value and extensions. The accessor "getNumberOfEvents" gives direct access to the value */ - public IntegerType getNumberOfEventsElement() { + public UnsignedIntType getNumberOfEventsElement() { if (this.numberOfEvents == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Statistic.numberOfEvents"); else if (Configuration.doAutoCreate()) - this.numberOfEvents = new IntegerType(); // bb + this.numberOfEvents = new UnsignedIntType(); // bb return this.numberOfEvents; } @@ -2631,30 +2601,75 @@ public class Statistic extends BackboneType implements ICompositeType { } /** - * @param value {@link #numberOfEvents} (The number of events associated with the statistic.). This is the underlying object with id, value and extensions. The accessor "getNumberOfEvents" gives direct access to the value + * @param value {@link #numberOfEvents} (The number of events associated with the statistic, where the unit of analysis is different from numberAffected, sampleSize.knownDataCount and sampleSize.numberOfParticipants.). This is the underlying object with id, value and extensions. The accessor "getNumberOfEvents" gives direct access to the value */ - public Statistic setNumberOfEventsElement(IntegerType value) { + public Statistic setNumberOfEventsElement(UnsignedIntType value) { this.numberOfEvents = value; return this; } /** - * @return The number of events associated with the statistic. + * @return The number of events associated with the statistic, where the unit of analysis is different from numberAffected, sampleSize.knownDataCount and sampleSize.numberOfParticipants. */ public int getNumberOfEvents() { return this.numberOfEvents == null || this.numberOfEvents.isEmpty() ? 0 : this.numberOfEvents.getValue(); } /** - * @param value The number of events associated with the statistic. + * @param value The number of events associated with the statistic, where the unit of analysis is different from numberAffected, sampleSize.knownDataCount and sampleSize.numberOfParticipants. */ public Statistic setNumberOfEvents(int value) { if (this.numberOfEvents == null) - this.numberOfEvents = new IntegerType(); + this.numberOfEvents = new UnsignedIntType(); this.numberOfEvents.setValue(value); return this; } + /** + * @return {@link #numberAffected} (The number of participants affected where the unit of analysis is the same as sampleSize.knownDataCount and sampleSize.numberOfParticipants.). This is the underlying object with id, value and extensions. The accessor "getNumberAffected" gives direct access to the value + */ + public UnsignedIntType getNumberAffectedElement() { + if (this.numberAffected == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Statistic.numberAffected"); + else if (Configuration.doAutoCreate()) + this.numberAffected = new UnsignedIntType(); // bb + return this.numberAffected; + } + + public boolean hasNumberAffectedElement() { + return this.numberAffected != null && !this.numberAffected.isEmpty(); + } + + public boolean hasNumberAffected() { + return this.numberAffected != null && !this.numberAffected.isEmpty(); + } + + /** + * @param value {@link #numberAffected} (The number of participants affected where the unit of analysis is the same as sampleSize.knownDataCount and sampleSize.numberOfParticipants.). This is the underlying object with id, value and extensions. The accessor "getNumberAffected" gives direct access to the value + */ + public Statistic setNumberAffectedElement(UnsignedIntType value) { + this.numberAffected = value; + return this; + } + + /** + * @return The number of participants affected where the unit of analysis is the same as sampleSize.knownDataCount and sampleSize.numberOfParticipants. + */ + public int getNumberAffected() { + return this.numberAffected == null || this.numberAffected.isEmpty() ? 0 : this.numberAffected.getValue(); + } + + /** + * @param value The number of participants affected where the unit of analysis is the same as sampleSize.knownDataCount and sampleSize.numberOfParticipants. + */ + public Statistic setNumberAffected(int value) { + if (this.numberAffected == null) + this.numberAffected = new UnsignedIntType(); + this.numberAffected.setValue(value); + return this; + } + /** * @return {@link #sampleSize} (Number of samples in the statistic.) */ @@ -2790,8 +2805,10 @@ public class Statistic extends BackboneType implements ICompositeType { children.add(new Property("description", "string", "A description of the content value of the statistic.", 0, 1, description)); children.add(new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, note)); children.add(new Property("statisticType", "CodeableConcept", "Type of statistic, eg relative risk.", 0, 1, statisticType)); + children.add(new Property("category", "CodeableConcept", "When the measured variable is handled categorically, the category element is used to define which category the statistic is reporting.", 0, 1, category)); children.add(new Property("quantity", "Quantity", "Statistic value.", 0, 1, quantity)); - children.add(new Property("numberOfEvents", "integer", "The number of events associated with the statistic.", 0, 1, numberOfEvents)); + children.add(new Property("numberOfEvents", "unsignedInt", "The number of events associated with the statistic, where the unit of analysis is different from numberAffected, sampleSize.knownDataCount and sampleSize.numberOfParticipants.", 0, 1, numberOfEvents)); + children.add(new Property("numberAffected", "unsignedInt", "The number of participants affected where the unit of analysis is the same as sampleSize.knownDataCount and sampleSize.numberOfParticipants.", 0, 1, numberAffected)); children.add(new Property("sampleSize", "", "Number of samples in the statistic.", 0, 1, sampleSize)); children.add(new Property("attributeEstimate", "", "A statistical attribute of the statistic such as a measure of heterogeneity.", 0, java.lang.Integer.MAX_VALUE, attributeEstimate)); children.add(new Property("modelCharacteristic", "", "A component of the method to generate the statistic.", 0, java.lang.Integer.MAX_VALUE, modelCharacteristic)); @@ -2803,8 +2820,10 @@ public class Statistic extends BackboneType implements ICompositeType { case -1724546052: /*description*/ return new Property("description", "string", "A description of the content value of the statistic.", 0, 1, description); case 3387378: /*note*/ return new Property("note", "Annotation", "Footnotes and/or explanatory notes.", 0, java.lang.Integer.MAX_VALUE, note); case -392342358: /*statisticType*/ return new Property("statisticType", "CodeableConcept", "Type of statistic, eg relative risk.", 0, 1, statisticType); + case 50511102: /*category*/ return new Property("category", "CodeableConcept", "When the measured variable is handled categorically, the category element is used to define which category the statistic is reporting.", 0, 1, category); case -1285004149: /*quantity*/ return new Property("quantity", "Quantity", "Statistic value.", 0, 1, quantity); - case 1534510137: /*numberOfEvents*/ return new Property("numberOfEvents", "integer", "The number of events associated with the statistic.", 0, 1, numberOfEvents); + case 1534510137: /*numberOfEvents*/ return new Property("numberOfEvents", "unsignedInt", "The number of events associated with the statistic, where the unit of analysis is different from numberAffected, sampleSize.knownDataCount and sampleSize.numberOfParticipants.", 0, 1, numberOfEvents); + case -460990243: /*numberAffected*/ return new Property("numberAffected", "unsignedInt", "The number of participants affected where the unit of analysis is the same as sampleSize.knownDataCount and sampleSize.numberOfParticipants.", 0, 1, numberAffected); case 143123659: /*sampleSize*/ return new Property("sampleSize", "", "Number of samples in the statistic.", 0, 1, sampleSize); case -1539581980: /*attributeEstimate*/ return new Property("attributeEstimate", "", "A statistical attribute of the statistic such as a measure of heterogeneity.", 0, java.lang.Integer.MAX_VALUE, attributeEstimate); case 274795812: /*modelCharacteristic*/ return new Property("modelCharacteristic", "", "A component of the method to generate the statistic.", 0, java.lang.Integer.MAX_VALUE, modelCharacteristic); @@ -2819,8 +2838,10 @@ public class Statistic extends BackboneType implements ICompositeType { case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation case -392342358: /*statisticType*/ return this.statisticType == null ? new Base[0] : new Base[] {this.statisticType}; // CodeableConcept + case 50511102: /*category*/ return this.category == null ? new Base[0] : new Base[] {this.category}; // CodeableConcept case -1285004149: /*quantity*/ return this.quantity == null ? new Base[0] : new Base[] {this.quantity}; // Quantity - case 1534510137: /*numberOfEvents*/ return this.numberOfEvents == null ? new Base[0] : new Base[] {this.numberOfEvents}; // IntegerType + case 1534510137: /*numberOfEvents*/ return this.numberOfEvents == null ? new Base[0] : new Base[] {this.numberOfEvents}; // UnsignedIntType + case -460990243: /*numberAffected*/ return this.numberAffected == null ? new Base[0] : new Base[] {this.numberAffected}; // UnsignedIntType case 143123659: /*sampleSize*/ return this.sampleSize == null ? new Base[0] : new Base[] {this.sampleSize}; // StatisticSampleSizeComponent case -1539581980: /*attributeEstimate*/ return this.attributeEstimate == null ? new Base[0] : this.attributeEstimate.toArray(new Base[this.attributeEstimate.size()]); // StatisticAttributeEstimateComponent case 274795812: /*modelCharacteristic*/ return this.modelCharacteristic == null ? new Base[0] : this.modelCharacteristic.toArray(new Base[this.modelCharacteristic.size()]); // StatisticModelCharacteristicComponent @@ -2841,11 +2862,17 @@ public class Statistic extends BackboneType implements ICompositeType { case -392342358: // statisticType this.statisticType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; + case 50511102: // category + this.category = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; case -1285004149: // quantity this.quantity = TypeConvertor.castToQuantity(value); // Quantity return value; case 1534510137: // numberOfEvents - this.numberOfEvents = TypeConvertor.castToInteger(value); // IntegerType + this.numberOfEvents = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType + return value; + case -460990243: // numberAffected + this.numberAffected = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType return value; case 143123659: // sampleSize this.sampleSize = (StatisticSampleSizeComponent) value; // StatisticSampleSizeComponent @@ -2869,10 +2896,14 @@ public class Statistic extends BackboneType implements ICompositeType { this.getNote().add(TypeConvertor.castToAnnotation(value)); } else if (name.equals("statisticType")) { this.statisticType = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("category")) { + this.category = TypeConvertor.castToCodeableConcept(value); // CodeableConcept } else if (name.equals("quantity")) { this.quantity = TypeConvertor.castToQuantity(value); // Quantity } else if (name.equals("numberOfEvents")) { - this.numberOfEvents = TypeConvertor.castToInteger(value); // IntegerType + this.numberOfEvents = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType + } else if (name.equals("numberAffected")) { + this.numberAffected = TypeConvertor.castToUnsignedInt(value); // UnsignedIntType } else if (name.equals("sampleSize")) { this.sampleSize = (StatisticSampleSizeComponent) value; // StatisticSampleSizeComponent } else if (name.equals("attributeEstimate")) { @@ -2890,8 +2921,10 @@ public class Statistic extends BackboneType implements ICompositeType { case -1724546052: return getDescriptionElement(); case 3387378: return addNote(); case -392342358: return getStatisticType(); + case 50511102: return getCategory(); case -1285004149: return getQuantity(); case 1534510137: return getNumberOfEventsElement(); + case -460990243: return getNumberAffectedElement(); case 143123659: return getSampleSize(); case -1539581980: return addAttributeEstimate(); case 274795812: return addModelCharacteristic(); @@ -2906,8 +2939,10 @@ public class Statistic extends BackboneType implements ICompositeType { case -1724546052: /*description*/ return new String[] {"string"}; case 3387378: /*note*/ return new String[] {"Annotation"}; case -392342358: /*statisticType*/ return new String[] {"CodeableConcept"}; + case 50511102: /*category*/ return new String[] {"CodeableConcept"}; case -1285004149: /*quantity*/ return new String[] {"Quantity"}; - case 1534510137: /*numberOfEvents*/ return new String[] {"integer"}; + case 1534510137: /*numberOfEvents*/ return new String[] {"unsignedInt"}; + case -460990243: /*numberAffected*/ return new String[] {"unsignedInt"}; case 143123659: /*sampleSize*/ return new String[] {}; case -1539581980: /*attributeEstimate*/ return new String[] {}; case 274795812: /*modelCharacteristic*/ return new String[] {}; @@ -2928,6 +2963,10 @@ public class Statistic extends BackboneType implements ICompositeType { this.statisticType = new CodeableConcept(); return this.statisticType; } + else if (name.equals("category")) { + this.category = new CodeableConcept(); + return this.category; + } else if (name.equals("quantity")) { this.quantity = new Quantity(); return this.quantity; @@ -2935,6 +2974,9 @@ public class Statistic extends BackboneType implements ICompositeType { else if (name.equals("numberOfEvents")) { throw new FHIRException("Cannot call addChild on a primitive type Statistic.numberOfEvents"); } + else if (name.equals("numberAffected")) { + throw new FHIRException("Cannot call addChild on a primitive type Statistic.numberAffected"); + } else if (name.equals("sampleSize")) { this.sampleSize = new StatisticSampleSizeComponent(); return this.sampleSize; @@ -2969,8 +3011,10 @@ public class Statistic extends BackboneType implements ICompositeType { dst.note.add(i.copy()); }; dst.statisticType = statisticType == null ? null : statisticType.copy(); + dst.category = category == null ? null : category.copy(); dst.quantity = quantity == null ? null : quantity.copy(); dst.numberOfEvents = numberOfEvents == null ? null : numberOfEvents.copy(); + dst.numberAffected = numberAffected == null ? null : numberAffected.copy(); dst.sampleSize = sampleSize == null ? null : sampleSize.copy(); if (attributeEstimate != null) { dst.attributeEstimate = new ArrayList(); @@ -2996,9 +3040,10 @@ public class Statistic extends BackboneType implements ICompositeType { return false; Statistic o = (Statistic) other_; return compareDeep(description, o.description, true) && compareDeep(note, o.note, true) && compareDeep(statisticType, o.statisticType, true) - && compareDeep(quantity, o.quantity, true) && compareDeep(numberOfEvents, o.numberOfEvents, true) - && compareDeep(sampleSize, o.sampleSize, true) && compareDeep(attributeEstimate, o.attributeEstimate, true) - && compareDeep(modelCharacteristic, o.modelCharacteristic, true); + && compareDeep(category, o.category, true) && compareDeep(quantity, o.quantity, true) && compareDeep(numberOfEvents, o.numberOfEvents, true) + && compareDeep(numberAffected, o.numberAffected, true) && compareDeep(sampleSize, o.sampleSize, true) + && compareDeep(attributeEstimate, o.attributeEstimate, true) && compareDeep(modelCharacteristic, o.modelCharacteristic, true) + ; } @Override @@ -3009,12 +3054,13 @@ public class Statistic extends BackboneType implements ICompositeType { return false; Statistic o = (Statistic) other_; return compareValues(description, o.description, true) && compareValues(numberOfEvents, o.numberOfEvents, true) - ; + && compareValues(numberAffected, o.numberAffected, true); } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(description, note, statisticType - , quantity, numberOfEvents, sampleSize, attributeEstimate, modelCharacteristic); + , category, quantity, numberOfEvents, numberAffected, sampleSize, attributeEstimate + , modelCharacteristic); } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureDefinition.java index 522a474b7..4378730ed 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -89,7 +89,6 @@ public class StructureDefinition extends CanonicalResource { case FHIRPATH: return "fhirpath"; case ELEMENT: return "element"; case EXTENSION: return "extension"; - case NULL: return null; default: return "?"; } } @@ -98,7 +97,6 @@ public class StructureDefinition extends CanonicalResource { case FHIRPATH: return "http://hl7.org/fhir/extension-context-type"; case ELEMENT: return "http://hl7.org/fhir/extension-context-type"; case EXTENSION: return "http://hl7.org/fhir/extension-context-type"; - case NULL: return null; default: return "?"; } } @@ -107,7 +105,6 @@ public class StructureDefinition extends CanonicalResource { case FHIRPATH: return "The context is all elements that match the FHIRPath query found in the expression."; case ELEMENT: return "The context is any element that has an ElementDefinition.id that matches that found in the expression. This includes ElementDefinition Ids that have slicing identifiers. The full path for the element is [url]#[elementid]. If there is no #, the Element id is one defined in the base specification."; case EXTENSION: return "The context is a particular extension from a particular StructureDefinition, and the expression is just a uri that identifies the extension."; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class StructureDefinition extends CanonicalResource { case FHIRPATH: return "FHIRPath"; case ELEMENT: return "Element ID"; case EXTENSION: return "Extension URL"; - case NULL: return null; default: return "?"; } } @@ -208,7 +204,6 @@ public class StructureDefinition extends CanonicalResource { case COMPLEXTYPE: return "complex-type"; case RESOURCE: return "resource"; case LOGICAL: return "logical"; - case NULL: return null; default: return "?"; } } @@ -218,7 +213,6 @@ public class StructureDefinition extends CanonicalResource { case COMPLEXTYPE: return "http://hl7.org/fhir/structure-definition-kind"; case RESOURCE: return "http://hl7.org/fhir/structure-definition-kind"; case LOGICAL: return "http://hl7.org/fhir/structure-definition-kind"; - case NULL: return null; default: return "?"; } } @@ -228,7 +222,6 @@ public class StructureDefinition extends CanonicalResource { case COMPLEXTYPE: return "A complex structure that defines a set of data elements that is suitable for use in 'resources'. The base specification defines a number of complex types, and other specifications can define additional types. These structures do not have a maintained identity."; case RESOURCE: return "A 'resource' - a directed acyclic graph of elements that aggregrates other types into an identifiable entity. The base FHIR resources are defined by the FHIR specification itself but other 'resources' can be defined in additional specifications (though these will not be recognised as 'resources' by the FHIR specification (i.e. they do not get end-points etc, or act as the targets of references in FHIR defined resources - though other specificatiosn can treat them this way)."; case LOGICAL: return "A pattern or a template that is not intended to be a real resource or complex type."; - case NULL: return null; default: return "?"; } } @@ -238,7 +231,6 @@ public class StructureDefinition extends CanonicalResource { case COMPLEXTYPE: return "Complex Data Type"; case RESOURCE: return "Resource"; case LOGICAL: return "Logical"; - case NULL: return null; default: return "?"; } } @@ -322,7 +314,6 @@ public class StructureDefinition extends CanonicalResource { switch (this) { case SPECIALIZATION: return "specialization"; case CONSTRAINT: return "constraint"; - case NULL: return null; default: return "?"; } } @@ -330,7 +321,6 @@ public class StructureDefinition extends CanonicalResource { switch (this) { case SPECIALIZATION: return "http://hl7.org/fhir/type-derivation-rule"; case CONSTRAINT: return "http://hl7.org/fhir/type-derivation-rule"; - case NULL: return null; default: return "?"; } } @@ -338,7 +328,6 @@ public class StructureDefinition extends CanonicalResource { switch (this) { case SPECIALIZATION: return "This definition defines a new type that adds additional elements to the base type."; case CONSTRAINT: return "This definition adds additional rules to an existing concrete type."; - case NULL: return null; default: return "?"; } } @@ -346,7 +335,6 @@ public class StructureDefinition extends CanonicalResource { switch (this) { case SPECIALIZATION: return "Specialization"; case CONSTRAINT: return "Constraint"; - case NULL: return null; default: return "?"; } } @@ -1544,10 +1532,10 @@ public class StructureDefinition extends CanonicalResource { protected List keyword; /** - * The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version. + * The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version. */ @Child(name = "fhirVersion", type = {CodeType.class}, order=16, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="FHIR Version this StructureDefinition targets", formalDefinition="The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version." ) + @Description(shortDefinition="FHIR Version this StructureDefinition targets", formalDefinition="The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/FHIR-version") protected Enumeration fhirVersion; @@ -2435,7 +2423,7 @@ public class StructureDefinition extends CanonicalResource { } /** - * @return {@link #fhirVersion} (The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version.). This is the underlying object with id, value and extensions. The accessor "getFhirVersion" gives direct access to the value + * @return {@link #fhirVersion} (The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version.). This is the underlying object with id, value and extensions. The accessor "getFhirVersion" gives direct access to the value */ public Enumeration getFhirVersionElement() { if (this.fhirVersion == null) @@ -2455,7 +2443,7 @@ public class StructureDefinition extends CanonicalResource { } /** - * @param value {@link #fhirVersion} (The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version.). This is the underlying object with id, value and extensions. The accessor "getFhirVersion" gives direct access to the value + * @param value {@link #fhirVersion} (The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version.). This is the underlying object with id, value and extensions. The accessor "getFhirVersion" gives direct access to the value */ public StructureDefinition setFhirVersionElement(Enumeration value) { this.fhirVersion = value; @@ -2463,14 +2451,14 @@ public class StructureDefinition extends CanonicalResource { } /** - * @return The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version. + * @return The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version. */ public FHIRVersion getFhirVersion() { return this.fhirVersion == null ? null : this.fhirVersion.getValue(); } /** - * @param value The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version. + * @param value The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version. */ public StructureDefinition setFhirVersion(FHIRVersion value) { if (value == null) @@ -2949,7 +2937,7 @@ public class StructureDefinition extends CanonicalResource { children.add(new Property("purpose", "markdown", "Explanation of why this structure definition is needed and why it has been designed as it has.", 0, 1, purpose)); children.add(new Property("copyright", "markdown", "A copyright statement relating to the structure definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the structure definition.", 0, 1, copyright)); children.add(new Property("keyword", "Coding", "A set of key words or terms from external terminologies that may be used to assist with indexing and searching of templates nby describing the use of this structure definition, or the content it describes.", 0, java.lang.Integer.MAX_VALUE, keyword)); - children.add(new Property("fhirVersion", "code", "The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version.", 0, 1, fhirVersion)); + children.add(new Property("fhirVersion", "code", "The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version.", 0, 1, fhirVersion)); children.add(new Property("mapping", "", "An external specification that the content is mapped to.", 0, java.lang.Integer.MAX_VALUE, mapping)); children.add(new Property("kind", "code", "Defines the kind of structure that this definition is describing.", 0, 1, kind)); children.add(new Property("abstract", "boolean", "Whether structure this definition describes is abstract or not - that is, whether the structure is not intended to be instantiated. For Resources and Data types, abstract types will never be exchanged between systems.", 0, 1, abstract_)); @@ -2981,7 +2969,7 @@ public class StructureDefinition extends CanonicalResource { case -220463842: /*purpose*/ return new Property("purpose", "markdown", "Explanation of why this structure definition is needed and why it has been designed as it has.", 0, 1, purpose); case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "A copyright statement relating to the structure definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the structure definition.", 0, 1, copyright); case -814408215: /*keyword*/ return new Property("keyword", "Coding", "A set of key words or terms from external terminologies that may be used to assist with indexing and searching of templates nby describing the use of this structure definition, or the content it describes.", 0, java.lang.Integer.MAX_VALUE, keyword); - case 461006061: /*fhirVersion*/ return new Property("fhirVersion", "code", "The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.5.0. for this version.", 0, 1, fhirVersion); + case 461006061: /*fhirVersion*/ return new Property("fhirVersion", "code", "The version of the FHIR specification on which this StructureDefinition is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.6.0. for this version.", 0, 1, fhirVersion); case 837556430: /*mapping*/ return new Property("mapping", "", "An external specification that the content is mapped to.", 0, java.lang.Integer.MAX_VALUE, mapping); case 3292052: /*kind*/ return new Property("kind", "code", "Defines the kind of structure that this definition is describing.", 0, 1, kind); case 1732898850: /*abstract*/ return new Property("abstract", "boolean", "Whether structure this definition describes is abstract or not - that is, whether the structure is not intended to be instantiated. For Resources and Data types, abstract types will never be exchanged between systems.", 0, 1, abstract_); @@ -3476,236 +3464,56 @@ public class StructureDefinition extends CanonicalResource { } /** - * Search parameter: abstract + * Search parameter: context *

- * Description: Whether the structure is abstract
- * Type: token
- * Path: StructureDefinition.abstract
- *

- */ - @SearchParamDefinition(name="abstract", path="StructureDefinition.abstract", description="Whether the structure is abstract", type="token" ) - public static final String SP_ABSTRACT = "abstract"; - /** - * Fluent Client search parameter constant for abstract - *

- * Description: Whether the structure is abstract
- * Type: token
- * Path: StructureDefinition.abstract
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam ABSTRACT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ABSTRACT); + * Description: Multiple Resources: - /** - * Search parameter: base-path - *

- * Description: Path that identifies the base element
+* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +

* Type: token
- * Path: StructureDefinition.snapshot.element.base.path | StructureDefinition.differential.element.base.path
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="base-path", path="StructureDefinition.snapshot.element.base.path | StructureDefinition.differential.element.base.path", description="Path that identifies the base element", type="token" ) - public static final String SP_BASE_PATH = "base-path"; + @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) + public static final String SP_CONTEXT = "context"; /** - * Fluent Client search parameter constant for base-path + * Fluent Client search parameter constant for context *

- * Description: Path that identifies the base element
- * Type: token
- * Path: StructureDefinition.snapshot.element.base.path | StructureDefinition.differential.element.base.path
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam BASE_PATH = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_BASE_PATH); + * Description: Multiple Resources: - /** - * Search parameter: base - *

- * Description: Definition that this type is constrained/specialized from
- * Type: reference
- * Path: StructureDefinition.baseDefinition
- *

- */ - @SearchParamDefinition(name="base", path="StructureDefinition.baseDefinition", description="Definition that this type is constrained/specialized from", type="reference", target={StructureDefinition.class } ) - public static final String SP_BASE = "base"; - /** - * Fluent Client search parameter constant for base - *

- * Description: Definition that this type is constrained/specialized from
- * Type: reference
- * Path: StructureDefinition.baseDefinition
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASE); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "StructureDefinition:base". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_BASE = new ca.uhn.fhir.model.api.Include("StructureDefinition:base").toLocked(); - - /** - * Search parameter: derivation - *

- * Description: specialization | constraint - How relates to base definition
+* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +

* Type: token
- * Path: StructureDefinition.derivation
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="derivation", path="StructureDefinition.derivation", description="specialization | constraint - How relates to base definition", type="token" ) - public static final String SP_DERIVATION = "derivation"; - /** - * Fluent Client search parameter constant for derivation - *

- * Description: specialization | constraint - How relates to base definition
- * Type: token
- * Path: StructureDefinition.derivation
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam DERIVATION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_DERIVATION); - - /** - * Search parameter: experimental - *

- * Description: For testing purposes, not real usage
- * Type: token
- * Path: StructureDefinition.experimental
- *

- */ - @SearchParamDefinition(name="experimental", path="StructureDefinition.experimental", description="For testing purposes, not real usage", type="token" ) - public static final String SP_EXPERIMENTAL = "experimental"; - /** - * Fluent Client search parameter constant for experimental - *

- * Description: For testing purposes, not real usage
- * Type: token
- * Path: StructureDefinition.experimental
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam EXPERIMENTAL = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EXPERIMENTAL); - - /** - * Search parameter: ext-context - *

- * Description: The system is the URL for the context-type: e.g. http://hl7.org/fhir/extension-context-type#element|CodeableConcept.text
- * Type: token
- * Path: StructureDefinition.context
- *

- */ - @SearchParamDefinition(name="ext-context", path="StructureDefinition.context", description="The system is the URL for the context-type: e.g. http://hl7.org/fhir/extension-context-type#element|CodeableConcept.text", type="token" ) - public static final String SP_EXT_CONTEXT = "ext-context"; - /** - * Fluent Client search parameter constant for ext-context - *

- * Description: The system is the URL for the context-type: e.g. http://hl7.org/fhir/extension-context-type#element|CodeableConcept.text
- * Type: token
- * Path: StructureDefinition.context
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam EXT_CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EXT_CONTEXT); - - /** - * Search parameter: keyword - *

- * Description: A code for the StructureDefinition
- * Type: token
- * Path: StructureDefinition.keyword
- *

- */ - @SearchParamDefinition(name="keyword", path="StructureDefinition.keyword", description="A code for the StructureDefinition", type="token" ) - public static final String SP_KEYWORD = "keyword"; - /** - * Fluent Client search parameter constant for keyword - *

- * Description: A code for the StructureDefinition
- * Type: token
- * Path: StructureDefinition.keyword
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam KEYWORD = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_KEYWORD); - - /** - * Search parameter: kind - *

- * Description: primitive-type | complex-type | resource | logical
- * Type: token
- * Path: StructureDefinition.kind
- *

- */ - @SearchParamDefinition(name="kind", path="StructureDefinition.kind", description="primitive-type | complex-type | resource | logical", type="token" ) - public static final String SP_KIND = "kind"; - /** - * Fluent Client search parameter constant for kind - *

- * Description: primitive-type | complex-type | resource | logical
- * Type: token
- * Path: StructureDefinition.kind
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam KIND = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_KIND); - - /** - * Search parameter: path - *

- * Description: A path that is constrained in the StructureDefinition
- * Type: token
- * Path: StructureDefinition.snapshot.element.path | StructureDefinition.differential.element.path
- *

- */ - @SearchParamDefinition(name="path", path="StructureDefinition.snapshot.element.path | StructureDefinition.differential.element.path", description="A path that is constrained in the StructureDefinition", type="token" ) - public static final String SP_PATH = "path"; - /** - * Fluent Client search parameter constant for path - *

- * Description: A path that is constrained in the StructureDefinition
- * Type: token
- * Path: StructureDefinition.snapshot.element.path | StructureDefinition.differential.element.path
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam PATH = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PATH); - - /** - * Search parameter: type - *

- * Description: Type defined or constrained by this structure
- * Type: uri
- * Path: StructureDefinition.type
- *

- */ - @SearchParamDefinition(name="type", path="StructureDefinition.type", description="Type defined or constrained by this structure", type="uri" ) - public static final String SP_TYPE = "type"; - /** - * Fluent Client search parameter constant for type - *

- * Description: Type defined or constrained by this structure
- * Type: uri
- * Path: StructureDefinition.type
- *

- */ - public static final ca.uhn.fhir.rest.gclient.UriClientParam TYPE = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_TYPE); - - /** - * Search parameter: valueset - *

- * Description: A vocabulary binding reference
- * Type: reference
- * Path: StructureDefinition.snapshot.element.binding.valueSet
- *

- */ - @SearchParamDefinition(name="valueset", path="StructureDefinition.snapshot.element.binding.valueSet", description="A vocabulary binding reference", type="reference", target={ValueSet.class } ) - public static final String SP_VALUESET = "valueset"; - /** - * Fluent Client search parameter constant for valueset - *

- * Description: A vocabulary binding reference
- * Type: reference
- * Path: StructureDefinition.snapshot.element.binding.valueSet
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam VALUESET = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_VALUESET); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "StructureDefinition:valueset". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_VALUESET = new ca.uhn.fhir.model.api.Include("StructureDefinition:valueset").toLocked(); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); /** * Search parameter: context-quantity @@ -3759,110 +3567,6 @@ public class StructureDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -3915,58 +3619,6 @@ public class StructureDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -4071,44 +3723,6 @@ public class StructureDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [CodeSystem](codesystem.html): External identifier for the code system -* [ConceptMap](conceptmap.html): External identifier for the concept map -* [MessageDefinition](messagedefinition.html): External identifier for the message definition -* [StructureDefinition](structuredefinition.html): External identifier for the structure definition -* [StructureMap](structuremap.html): External identifier for the structure map -* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities -* [ValueSet](valueset.html): External identifier for the value set -
- * Type: token
- * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier", description="Multiple Resources: \r\n\r\n* [CodeSystem](codesystem.html): External identifier for the code system\r\n* [ConceptMap](conceptmap.html): External identifier for the concept map\r\n* [MessageDefinition](messagedefinition.html): External identifier for the message definition\r\n* [StructureDefinition](structuredefinition.html): External identifier for the structure definition\r\n* [StructureMap](structuremap.html): External identifier for the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities\r\n* [ValueSet](valueset.html): External identifier for the value set\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [CodeSystem](codesystem.html): External identifier for the code system -* [ConceptMap](conceptmap.html): External identifier for the concept map -* [MessageDefinition](messagedefinition.html): External identifier for the message definition -* [StructureDefinition](structuredefinition.html): External identifier for the structure definition -* [StructureMap](structuremap.html): External identifier for the structure map -* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities -* [ValueSet](valueset.html): External identifier for the value set -
- * Type: token
- * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - /** * Search parameter: jurisdiction *

@@ -4463,7 +4077,381 @@ public class StructureDefinition extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); -// Manual code (from Configuration.txt)t: + /** + * Search parameter: context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [CodeSystem](codesystem.html): External identifier for the code system +* [ConceptMap](conceptmap.html): External identifier for the concept map +* [MessageDefinition](messagedefinition.html): External identifier for the message definition +* [StructureDefinition](structuredefinition.html): External identifier for the structure definition +* [StructureMap](structuremap.html): External identifier for the structure map +* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities +* [ValueSet](valueset.html): External identifier for the value set +
+ * Type: token
+ * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier", description="Multiple Resources: \r\n\r\n* [CodeSystem](codesystem.html): External identifier for the code system\r\n* [ConceptMap](conceptmap.html): External identifier for the concept map\r\n* [MessageDefinition](messagedefinition.html): External identifier for the message definition\r\n* [StructureDefinition](structuredefinition.html): External identifier for the structure definition\r\n* [StructureMap](structuremap.html): External identifier for the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities\r\n* [ValueSet](valueset.html): External identifier for the value set\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [CodeSystem](codesystem.html): External identifier for the code system +* [ConceptMap](conceptmap.html): External identifier for the concept map +* [MessageDefinition](messagedefinition.html): External identifier for the message definition +* [StructureDefinition](structuredefinition.html): External identifier for the structure definition +* [StructureMap](structuremap.html): External identifier for the structure map +* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities +* [ValueSet](valueset.html): External identifier for the value set +
+ * Type: token
+ * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: abstract + *

+ * Description: Whether the structure is abstract
+ * Type: token
+ * Path: StructureDefinition.abstract
+ *

+ */ + @SearchParamDefinition(name="abstract", path="StructureDefinition.abstract", description="Whether the structure is abstract", type="token" ) + public static final String SP_ABSTRACT = "abstract"; + /** + * Fluent Client search parameter constant for abstract + *

+ * Description: Whether the structure is abstract
+ * Type: token
+ * Path: StructureDefinition.abstract
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam ABSTRACT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ABSTRACT); + + /** + * Search parameter: base + *

+ * Description: Definition that this type is constrained/specialized from
+ * Type: reference
+ * Path: StructureDefinition.baseDefinition
+ *

+ */ + @SearchParamDefinition(name="base", path="StructureDefinition.baseDefinition", description="Definition that this type is constrained/specialized from", type="reference", target={StructureDefinition.class } ) + public static final String SP_BASE = "base"; + /** + * Fluent Client search parameter constant for base + *

+ * Description: Definition that this type is constrained/specialized from
+ * Type: reference
+ * Path: StructureDefinition.baseDefinition
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "StructureDefinition:base". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_BASE = new ca.uhn.fhir.model.api.Include("StructureDefinition:base").toLocked(); + + /** + * Search parameter: base-path + *

+ * Description: Path that identifies the base element
+ * Type: token
+ * Path: StructureDefinition.snapshot.element.base.path | StructureDefinition.differential.element.base.path
+ *

+ */ + @SearchParamDefinition(name="base-path", path="StructureDefinition.snapshot.element.base.path | StructureDefinition.differential.element.base.path", description="Path that identifies the base element", type="token" ) + public static final String SP_BASE_PATH = "base-path"; + /** + * Fluent Client search parameter constant for base-path + *

+ * Description: Path that identifies the base element
+ * Type: token
+ * Path: StructureDefinition.snapshot.element.base.path | StructureDefinition.differential.element.base.path
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam BASE_PATH = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_BASE_PATH); + + /** + * Search parameter: derivation + *

+ * Description: specialization | constraint - How relates to base definition
+ * Type: token
+ * Path: StructureDefinition.derivation
+ *

+ */ + @SearchParamDefinition(name="derivation", path="StructureDefinition.derivation", description="specialization | constraint - How relates to base definition", type="token" ) + public static final String SP_DERIVATION = "derivation"; + /** + * Fluent Client search parameter constant for derivation + *

+ * Description: specialization | constraint - How relates to base definition
+ * Type: token
+ * Path: StructureDefinition.derivation
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam DERIVATION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_DERIVATION); + + /** + * Search parameter: experimental + *

+ * Description: For testing purposes, not real usage
+ * Type: token
+ * Path: StructureDefinition.experimental
+ *

+ */ + @SearchParamDefinition(name="experimental", path="StructureDefinition.experimental", description="For testing purposes, not real usage", type="token" ) + public static final String SP_EXPERIMENTAL = "experimental"; + /** + * Fluent Client search parameter constant for experimental + *

+ * Description: For testing purposes, not real usage
+ * Type: token
+ * Path: StructureDefinition.experimental
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam EXPERIMENTAL = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EXPERIMENTAL); + + /** + * Search parameter: ext-context + *

+ * Description: The system is the URL for the context-type: e.g. http://hl7.org/fhir/extension-context-type#element|CodeableConcept.text
+ * Type: token
+ * Path: StructureDefinition.context
+ *

+ */ + @SearchParamDefinition(name="ext-context", path="StructureDefinition.context", description="The system is the URL for the context-type: e.g. http://hl7.org/fhir/extension-context-type#element|CodeableConcept.text", type="token" ) + public static final String SP_EXT_CONTEXT = "ext-context"; + /** + * Fluent Client search parameter constant for ext-context + *

+ * Description: The system is the URL for the context-type: e.g. http://hl7.org/fhir/extension-context-type#element|CodeableConcept.text
+ * Type: token
+ * Path: StructureDefinition.context
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam EXT_CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EXT_CONTEXT); + + /** + * Search parameter: keyword + *

+ * Description: A code for the StructureDefinition
+ * Type: token
+ * Path: StructureDefinition.keyword
+ *

+ */ + @SearchParamDefinition(name="keyword", path="StructureDefinition.keyword", description="A code for the StructureDefinition", type="token" ) + public static final String SP_KEYWORD = "keyword"; + /** + * Fluent Client search parameter constant for keyword + *

+ * Description: A code for the StructureDefinition
+ * Type: token
+ * Path: StructureDefinition.keyword
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam KEYWORD = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_KEYWORD); + + /** + * Search parameter: kind + *

+ * Description: primitive-type | complex-type | resource | logical
+ * Type: token
+ * Path: StructureDefinition.kind
+ *

+ */ + @SearchParamDefinition(name="kind", path="StructureDefinition.kind", description="primitive-type | complex-type | resource | logical", type="token" ) + public static final String SP_KIND = "kind"; + /** + * Fluent Client search parameter constant for kind + *

+ * Description: primitive-type | complex-type | resource | logical
+ * Type: token
+ * Path: StructureDefinition.kind
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam KIND = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_KIND); + + /** + * Search parameter: path + *

+ * Description: A path that is constrained in the StructureDefinition
+ * Type: token
+ * Path: StructureDefinition.snapshot.element.path | StructureDefinition.differential.element.path
+ *

+ */ + @SearchParamDefinition(name="path", path="StructureDefinition.snapshot.element.path | StructureDefinition.differential.element.path", description="A path that is constrained in the StructureDefinition", type="token" ) + public static final String SP_PATH = "path"; + /** + * Fluent Client search parameter constant for path + *

+ * Description: A path that is constrained in the StructureDefinition
+ * Type: token
+ * Path: StructureDefinition.snapshot.element.path | StructureDefinition.differential.element.path
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam PATH = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PATH); + + /** + * Search parameter: type + *

+ * Description: Type defined or constrained by this structure
+ * Type: uri
+ * Path: StructureDefinition.type
+ *

+ */ + @SearchParamDefinition(name="type", path="StructureDefinition.type", description="Type defined or constrained by this structure", type="uri" ) + public static final String SP_TYPE = "type"; + /** + * Fluent Client search parameter constant for type + *

+ * Description: Type defined or constrained by this structure
+ * Type: uri
+ * Path: StructureDefinition.type
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.UriClientParam TYPE = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_TYPE); + + /** + * Search parameter: valueset + *

+ * Description: A vocabulary binding reference
+ * Type: reference
+ * Path: StructureDefinition.snapshot.element.binding.valueSet
+ *

+ */ + @SearchParamDefinition(name="valueset", path="StructureDefinition.snapshot.element.binding.valueSet", description="A vocabulary binding reference", type="reference", target={ValueSet.class } ) + public static final String SP_VALUESET = "valueset"; + /** + * Fluent Client search parameter constant for valueset + *

+ * Description: A vocabulary binding reference
+ * Type: reference
+ * Path: StructureDefinition.snapshot.element.binding.valueSet
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam VALUESET = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_VALUESET); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "StructureDefinition:valueset". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_VALUESET = new ca.uhn.fhir.model.api.Include("StructureDefinition:valueset").toLocked(); + +// Manual code (from Configuration.txt): public String describeType() { if ("Extension".equals(getType())) return "Extension" ; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureMap.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureMap.java index 719f82bdd..54c7be9cc 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureMap.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/StructureMap.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -38,9 +38,12 @@ import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.r5.model.Enumerations.*; import org.hl7.fhir.instance.model.api.IBaseBackboneElement; import org.hl7.fhir.exceptions.FHIRException; +import org.hl7.fhir.instance.model.api.ICompositeType; import ca.uhn.fhir.model.api.annotation.ResourceDef; import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; +import org.hl7.fhir.instance.model.api.IBaseBackboneElement; import ca.uhn.fhir.model.api.annotation.Child; +import ca.uhn.fhir.model.api.annotation.ChildOrder; import ca.uhn.fhir.model.api.annotation.Description; import ca.uhn.fhir.model.api.annotation.Block; @@ -51,102 +54,6 @@ import org.hl7.fhir.r5.utils.structuremap.StructureMapUtilities; @ResourceDef(name="StructureMap", profile="http://hl7.org/fhir/StructureDefinition/StructureMap") public class StructureMap extends CanonicalResource { - public enum StructureMapContextType { - /** - * The context specifies a type. - */ - TYPE, - /** - * The context specifies a variable. - */ - VARIABLE, - /** - * added to help the parsers with the generic types - */ - NULL; - public static StructureMapContextType fromCode(String codeString) throws FHIRException { - if (codeString == null || "".equals(codeString)) - return null; - if ("type".equals(codeString)) - return TYPE; - if ("variable".equals(codeString)) - return VARIABLE; - if (Configuration.isAcceptInvalidEnums()) - return null; - else - throw new FHIRException("Unknown StructureMapContextType code '"+codeString+"'"); - } - public String toCode() { - switch (this) { - case TYPE: return "type"; - case VARIABLE: return "variable"; - case NULL: return null; - default: return "?"; - } - } - public String getSystem() { - switch (this) { - case TYPE: return "http://hl7.org/fhir/map-context-type"; - case VARIABLE: return "http://hl7.org/fhir/map-context-type"; - case NULL: return null; - default: return "?"; - } - } - public String getDefinition() { - switch (this) { - case TYPE: return "The context specifies a type."; - case VARIABLE: return "The context specifies a variable."; - case NULL: return null; - default: return "?"; - } - } - public String getDisplay() { - switch (this) { - case TYPE: return "Type"; - case VARIABLE: return "Variable"; - case NULL: return null; - default: return "?"; - } - } - } - - public static class StructureMapContextTypeEnumFactory implements EnumFactory { - public StructureMapContextType fromCode(String codeString) throws IllegalArgumentException { - if (codeString == null || "".equals(codeString)) - if (codeString == null || "".equals(codeString)) - return null; - if ("type".equals(codeString)) - return StructureMapContextType.TYPE; - if ("variable".equals(codeString)) - return StructureMapContextType.VARIABLE; - throw new IllegalArgumentException("Unknown StructureMapContextType code '"+codeString+"'"); - } - public Enumeration fromType(Base code) throws FHIRException { - if (code == null) - return null; - if (code.isEmpty()) - return new Enumeration(this); - String codeString = ((PrimitiveType) code).asStringValue(); - if (codeString == null || "".equals(codeString)) - return null; - if ("type".equals(codeString)) - return new Enumeration(this, StructureMapContextType.TYPE); - if ("variable".equals(codeString)) - return new Enumeration(this, StructureMapContextType.VARIABLE); - throw new FHIRException("Unknown StructureMapContextType code '"+codeString+"'"); - } - public String toCode(StructureMapContextType code) { - if (code == StructureMapContextType.TYPE) - return "type"; - if (code == StructureMapContextType.VARIABLE) - return "variable"; - return "?"; - } - public String toSystem(StructureMapContextType code) { - return code.getSystem(); - } - } - public enum StructureMapGroupTypeMode { /** * This group is a default mapping group for the specified types and for the primary source type. @@ -176,7 +83,6 @@ public class StructureMap extends CanonicalResource { switch (this) { case TYPES: return "types"; case TYPEANDTYPES: return "type-and-types"; - case NULL: return null; default: return "?"; } } @@ -184,7 +90,6 @@ public class StructureMap extends CanonicalResource { switch (this) { case TYPES: return "http://hl7.org/fhir/map-group-type-mode"; case TYPEANDTYPES: return "http://hl7.org/fhir/map-group-type-mode"; - case NULL: return null; default: return "?"; } } @@ -192,7 +97,6 @@ public class StructureMap extends CanonicalResource { switch (this) { case TYPES: return "This group is a default mapping group for the specified types and for the primary source type."; case TYPEANDTYPES: return "This group is a default mapping group for the specified types."; - case NULL: return null; default: return "?"; } } @@ -200,7 +104,6 @@ public class StructureMap extends CanonicalResource { switch (this) { case TYPES: return "Default for Type Combination"; case TYPEANDTYPES: return "Default for type + combination"; - case NULL: return null; default: return "?"; } } @@ -272,7 +175,6 @@ public class StructureMap extends CanonicalResource { switch (this) { case SOURCE: return "source"; case TARGET: return "target"; - case NULL: return null; default: return "?"; } } @@ -280,7 +182,6 @@ public class StructureMap extends CanonicalResource { switch (this) { case SOURCE: return "http://hl7.org/fhir/map-input-mode"; case TARGET: return "http://hl7.org/fhir/map-input-mode"; - case NULL: return null; default: return "?"; } } @@ -288,7 +189,6 @@ public class StructureMap extends CanonicalResource { switch (this) { case SOURCE: return "Names an input instance used a source for mapping."; case TARGET: return "Names an instance that is being populated."; - case NULL: return null; default: return "?"; } } @@ -296,7 +196,6 @@ public class StructureMap extends CanonicalResource { switch (this) { case SOURCE: return "Source Instance"; case TARGET: return "Target Instance"; - case NULL: return null; default: return "?"; } } @@ -382,7 +281,6 @@ public class StructureMap extends CanonicalResource { case QUERIED: return "queried"; case TARGET: return "target"; case PRODUCED: return "produced"; - case NULL: return null; default: return "?"; } } @@ -392,7 +290,6 @@ public class StructureMap extends CanonicalResource { case QUERIED: return "http://hl7.org/fhir/map-model-mode"; case TARGET: return "http://hl7.org/fhir/map-model-mode"; case PRODUCED: return "http://hl7.org/fhir/map-model-mode"; - case NULL: return null; default: return "?"; } } @@ -402,7 +299,6 @@ public class StructureMap extends CanonicalResource { case QUERIED: return "This structure describes an instance that the mapping engine may ask for that is used a source of data."; case TARGET: return "This structure describes an instance passed to the mapping engine that is used a target of data."; case PRODUCED: return "This structure describes an instance that the mapping engine may ask to create that is used a target of data."; - case NULL: return null; default: return "?"; } } @@ -412,7 +308,6 @@ public class StructureMap extends CanonicalResource { case QUERIED: return "Queried Structure Definition"; case TARGET: return "Target Structure Definition"; case PRODUCED: return "Produced Structure Definition"; - case NULL: return null; default: return "?"; } } @@ -517,7 +412,6 @@ public class StructureMap extends CanonicalResource { case LAST: return "last"; case NOTLAST: return "not_last"; case ONLYONE: return "only_one"; - case NULL: return null; default: return "?"; } } @@ -528,7 +422,6 @@ public class StructureMap extends CanonicalResource { case LAST: return "http://hl7.org/fhir/map-source-list-mode"; case NOTLAST: return "http://hl7.org/fhir/map-source-list-mode"; case ONLYONE: return "http://hl7.org/fhir/map-source-list-mode"; - case NULL: return null; default: return "?"; } } @@ -539,7 +432,6 @@ public class StructureMap extends CanonicalResource { case LAST: return "Only process this rule for the last in the list."; case NOTLAST: return "Process this rule for all but the last."; case ONLYONE: return "Only process this rule is there is only item."; - case NULL: return null; default: return "?"; } } @@ -550,7 +442,6 @@ public class StructureMap extends CanonicalResource { case LAST: return "Last"; case NOTLAST: return "All but the last"; case ONLYONE: return "Enforce only one"; - case NULL: return null; default: return "?"; } } @@ -654,7 +545,6 @@ public class StructureMap extends CanonicalResource { case SHARE: return "share"; case LAST: return "last"; case COLLATE: return "collate"; - case NULL: return null; default: return "?"; } } @@ -664,7 +554,6 @@ public class StructureMap extends CanonicalResource { case SHARE: return "http://hl7.org/fhir/map-target-list-mode"; case LAST: return "http://hl7.org/fhir/map-target-list-mode"; case COLLATE: return "http://hl7.org/fhir/map-target-list-mode"; - case NULL: return null; default: return "?"; } } @@ -674,7 +563,6 @@ public class StructureMap extends CanonicalResource { case SHARE: return "the target instance is shared with the target instances generated by another rule (up to the first common n items, then create new ones)."; case LAST: return "when the target list is being assembled, the items for this rule go last. If more than one rule defines a last item (for a given instance of mapping) then this is an error."; case COLLATE: return "re-use the first item in the list, and keep adding content to it."; - case NULL: return null; default: return "?"; } } @@ -684,7 +572,6 @@ public class StructureMap extends CanonicalResource { case SHARE: return "Share"; case LAST: return "Last"; case COLLATE: return "Collate"; - case NULL: return null; default: return "?"; } } @@ -873,7 +760,6 @@ public class StructureMap extends CanonicalResource { case QTY: return "qty"; case ID: return "id"; case CP: return "cp"; - case NULL: return null; default: return "?"; } } @@ -896,7 +782,6 @@ public class StructureMap extends CanonicalResource { case QTY: return "http://hl7.org/fhir/map-transform"; case ID: return "http://hl7.org/fhir/map-transform"; case CP: return "http://hl7.org/fhir/map-transform"; - case NULL: return null; default: return "?"; } } @@ -919,7 +804,6 @@ public class StructureMap extends CanonicalResource { case QTY: return "Create a quantity. Parameters = (text) or (value, unit, [system, code]) where text is the natural representation e.g. [comparator]value[space]unit."; case ID: return "Create an identifier. Parameters = (system, value[, type]) where type is a code from the identifier type value set."; case CP: return "Create a contact details. Parameters = (value) or (system, value). If no system is provided, the system should be inferred from the content of the value."; - case NULL: return null; default: return "?"; } } @@ -942,7 +826,6 @@ public class StructureMap extends CanonicalResource { case QTY: return "qty"; case ID: return "id"; case CP: return "cp"; - case NULL: return null; default: return "?"; } } @@ -4894,38 +4777,30 @@ public String toString() { @Block() public static class StructureMapGroupRuleTargetComponent extends BackboneElement implements IBaseBackboneElement { /** - * Type or variable this rule applies to. + * Variable this rule applies to. */ @Child(name = "context", type = {IdType.class}, order=1, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Type or variable this rule applies to", formalDefinition="Type or variable this rule applies to." ) + @Description(shortDefinition="Variable this rule applies to", formalDefinition="Variable this rule applies to." ) protected IdType context; - /** - * How to interpret the context. - */ - @Child(name = "contextType", type = {CodeType.class}, order=2, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="type | variable", formalDefinition="How to interpret the context." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/map-context-type") - protected Enumeration contextType; - /** * Field to create in the context. */ - @Child(name = "element", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Child(name = "element", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Field to create in the context", formalDefinition="Field to create in the context." ) protected StringType element; /** * Named context for field, if desired, and a field is specified. */ - @Child(name = "variable", type = {IdType.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Child(name = "variable", type = {IdType.class}, order=3, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Named context for field, if desired, and a field is specified", formalDefinition="Named context for field, if desired, and a field is specified." ) protected IdType variable; /** * If field is a list, how to manage the list. */ - @Child(name = "listMode", type = {CodeType.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "listMode", type = {CodeType.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="first | share | last | collate", formalDefinition="If field is a list, how to manage the list." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/map-target-list-mode") protected List> listMode; @@ -4933,14 +4808,14 @@ public String toString() { /** * Internal rule reference for shared list items. */ - @Child(name = "listRuleId", type = {IdType.class}, order=6, min=0, max=1, modifier=false, summary=true) + @Child(name = "listRuleId", type = {IdType.class}, order=5, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Internal rule reference for shared list items", formalDefinition="Internal rule reference for shared list items." ) protected IdType listRuleId; /** * How the data is copied / created. */ - @Child(name = "transform", type = {CodeType.class}, order=7, min=0, max=1, modifier=false, summary=true) + @Child(name = "transform", type = {CodeType.class}, order=6, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="create | copy +", formalDefinition="How the data is copied / created." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/map-transform") protected Enumeration transform; @@ -4948,11 +4823,11 @@ public String toString() { /** * Parameters to the transform. */ - @Child(name = "parameter", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "parameter", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Parameters to the transform", formalDefinition="Parameters to the transform." ) protected List parameter; - private static final long serialVersionUID = -1441766429L; + private static final long serialVersionUID = 1225668521L; /** * Constructor @@ -4962,7 +4837,7 @@ public String toString() { } /** - * @return {@link #context} (Type or variable this rule applies to.). This is the underlying object with id, value and extensions. The accessor "getContext" gives direct access to the value + * @return {@link #context} (Variable this rule applies to.). This is the underlying object with id, value and extensions. The accessor "getContext" gives direct access to the value */ public IdType getContextElement() { if (this.context == null) @@ -4982,7 +4857,7 @@ public String toString() { } /** - * @param value {@link #context} (Type or variable this rule applies to.). This is the underlying object with id, value and extensions. The accessor "getContext" gives direct access to the value + * @param value {@link #context} (Variable this rule applies to.). This is the underlying object with id, value and extensions. The accessor "getContext" gives direct access to the value */ public StructureMapGroupRuleTargetComponent setContextElement(IdType value) { this.context = value; @@ -4990,14 +4865,14 @@ public String toString() { } /** - * @return Type or variable this rule applies to. + * @return Variable this rule applies to. */ public String getContext() { return this.context == null ? null : this.context.getValue(); } /** - * @param value Type or variable this rule applies to. + * @param value Variable this rule applies to. */ public StructureMapGroupRuleTargetComponent setContext(String value) { if (Utilities.noString(value)) @@ -5010,55 +4885,6 @@ public String toString() { return this; } - /** - * @return {@link #contextType} (How to interpret the context.). This is the underlying object with id, value and extensions. The accessor "getContextType" gives direct access to the value - */ - public Enumeration getContextTypeElement() { - if (this.contextType == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create StructureMapGroupRuleTargetComponent.contextType"); - else if (Configuration.doAutoCreate()) - this.contextType = new Enumeration(new StructureMapContextTypeEnumFactory()); // bb - return this.contextType; - } - - public boolean hasContextTypeElement() { - return this.contextType != null && !this.contextType.isEmpty(); - } - - public boolean hasContextType() { - return this.contextType != null && !this.contextType.isEmpty(); - } - - /** - * @param value {@link #contextType} (How to interpret the context.). This is the underlying object with id, value and extensions. The accessor "getContextType" gives direct access to the value - */ - public StructureMapGroupRuleTargetComponent setContextTypeElement(Enumeration value) { - this.contextType = value; - return this; - } - - /** - * @return How to interpret the context. - */ - public StructureMapContextType getContextType() { - return this.contextType == null ? null : this.contextType.getValue(); - } - - /** - * @param value How to interpret the context. - */ - public StructureMapGroupRuleTargetComponent setContextType(StructureMapContextType value) { - if (value == null) - this.contextType = null; - else { - if (this.contextType == null) - this.contextType = new Enumeration(new StructureMapContextTypeEnumFactory()); - this.contextType.setValue(value); - } - return this; - } - /** * @return {@link #element} (Field to create in the context.). This is the underlying object with id, value and extensions. The accessor "getElement" gives direct access to the value */ @@ -5371,8 +5197,7 @@ public String toString() { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("context", "id", "Type or variable this rule applies to.", 0, 1, context)); - children.add(new Property("contextType", "code", "How to interpret the context.", 0, 1, contextType)); + children.add(new Property("context", "id", "Variable this rule applies to.", 0, 1, context)); children.add(new Property("element", "string", "Field to create in the context.", 0, 1, element)); children.add(new Property("variable", "id", "Named context for field, if desired, and a field is specified.", 0, 1, variable)); children.add(new Property("listMode", "code", "If field is a list, how to manage the list.", 0, java.lang.Integer.MAX_VALUE, listMode)); @@ -5384,8 +5209,7 @@ public String toString() { @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 951530927: /*context*/ return new Property("context", "id", "Type or variable this rule applies to.", 0, 1, context); - case -102839927: /*contextType*/ return new Property("contextType", "code", "How to interpret the context.", 0, 1, contextType); + case 951530927: /*context*/ return new Property("context", "id", "Variable this rule applies to.", 0, 1, context); case -1662836996: /*element*/ return new Property("element", "string", "Field to create in the context.", 0, 1, element); case -1249586564: /*variable*/ return new Property("variable", "id", "Named context for field, if desired, and a field is specified.", 0, 1, variable); case 1345445729: /*listMode*/ return new Property("listMode", "code", "If field is a list, how to manage the list.", 0, java.lang.Integer.MAX_VALUE, listMode); @@ -5401,7 +5225,6 @@ public String toString() { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case 951530927: /*context*/ return this.context == null ? new Base[0] : new Base[] {this.context}; // IdType - case -102839927: /*contextType*/ return this.contextType == null ? new Base[0] : new Base[] {this.contextType}; // Enumeration case -1662836996: /*element*/ return this.element == null ? new Base[0] : new Base[] {this.element}; // StringType case -1249586564: /*variable*/ return this.variable == null ? new Base[0] : new Base[] {this.variable}; // IdType case 1345445729: /*listMode*/ return this.listMode == null ? new Base[0] : this.listMode.toArray(new Base[this.listMode.size()]); // Enumeration @@ -5419,10 +5242,6 @@ public String toString() { case 951530927: // context this.context = TypeConvertor.castToId(value); // IdType return value; - case -102839927: // contextType - value = new StructureMapContextTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.contextType = (Enumeration) value; // Enumeration - return value; case -1662836996: // element this.element = TypeConvertor.castToString(value); // StringType return value; @@ -5452,9 +5271,6 @@ public String toString() { public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("context")) { this.context = TypeConvertor.castToId(value); // IdType - } else if (name.equals("contextType")) { - value = new StructureMapContextTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.contextType = (Enumeration) value; // Enumeration } else if (name.equals("element")) { this.element = TypeConvertor.castToString(value); // StringType } else if (name.equals("variable")) { @@ -5478,7 +5294,6 @@ public String toString() { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 951530927: return getContextElement(); - case -102839927: return getContextTypeElement(); case -1662836996: return getElementElement(); case -1249586564: return getVariableElement(); case 1345445729: return addListModeElement(); @@ -5494,7 +5309,6 @@ public String toString() { public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case 951530927: /*context*/ return new String[] {"id"}; - case -102839927: /*contextType*/ return new String[] {"code"}; case -1662836996: /*element*/ return new String[] {"string"}; case -1249586564: /*variable*/ return new String[] {"id"}; case 1345445729: /*listMode*/ return new String[] {"code"}; @@ -5511,9 +5325,6 @@ public String toString() { if (name.equals("context")) { throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.context"); } - else if (name.equals("contextType")) { - throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.contextType"); - } else if (name.equals("element")) { throw new FHIRException("Cannot call addChild on a primitive type StructureMap.group.rule.target.element"); } @@ -5545,7 +5356,6 @@ public String toString() { public void copyValues(StructureMapGroupRuleTargetComponent dst) { super.copyValues(dst); dst.context = context == null ? null : context.copy(); - dst.contextType = contextType == null ? null : contextType.copy(); dst.element = element == null ? null : element.copy(); dst.variable = variable == null ? null : variable.copy(); if (listMode != null) { @@ -5569,9 +5379,9 @@ public String toString() { if (!(other_ instanceof StructureMapGroupRuleTargetComponent)) return false; StructureMapGroupRuleTargetComponent o = (StructureMapGroupRuleTargetComponent) other_; - return compareDeep(context, o.context, true) && compareDeep(contextType, o.contextType, true) && compareDeep(element, o.element, true) - && compareDeep(variable, o.variable, true) && compareDeep(listMode, o.listMode, true) && compareDeep(listRuleId, o.listRuleId, true) - && compareDeep(transform, o.transform, true) && compareDeep(parameter, o.parameter, true); + return compareDeep(context, o.context, true) && compareDeep(element, o.element, true) && compareDeep(variable, o.variable, true) + && compareDeep(listMode, o.listMode, true) && compareDeep(listRuleId, o.listRuleId, true) && compareDeep(transform, o.transform, true) + && compareDeep(parameter, o.parameter, true); } @Override @@ -5581,14 +5391,14 @@ public String toString() { if (!(other_ instanceof StructureMapGroupRuleTargetComponent)) return false; StructureMapGroupRuleTargetComponent o = (StructureMapGroupRuleTargetComponent) other_; - return compareValues(context, o.context, true) && compareValues(contextType, o.contextType, true) && compareValues(element, o.element, true) - && compareValues(variable, o.variable, true) && compareValues(listMode, o.listMode, true) && compareValues(listRuleId, o.listRuleId, true) - && compareValues(transform, o.transform, true); + return compareValues(context, o.context, true) && compareValues(element, o.element, true) && compareValues(variable, o.variable, true) + && compareValues(listMode, o.listMode, true) && compareValues(listRuleId, o.listRuleId, true) && compareValues(transform, o.transform, true) + ; } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(context, contextType, element - , variable, listMode, listRuleId, transform, parameter); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(context, element, variable + , listMode, listRuleId, transform, parameter); } public String fhirType() { @@ -7585,6 +7395,58 @@ public String toString() { return ResourceType.StructureMap; } + /** + * Search parameter: context + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +
+ * Type: token
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +
+ * Type: token
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -7637,110 +7499,6 @@ public String toString() { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -7793,58 +7551,6 @@ public String toString() { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -7949,44 +7655,6 @@ public String toString() { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [CodeSystem](codesystem.html): External identifier for the code system -* [ConceptMap](conceptmap.html): External identifier for the concept map -* [MessageDefinition](messagedefinition.html): External identifier for the message definition -* [StructureDefinition](structuredefinition.html): External identifier for the structure definition -* [StructureMap](structuremap.html): External identifier for the structure map -* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities -* [ValueSet](valueset.html): External identifier for the value set -
- * Type: token
- * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier", description="Multiple Resources: \r\n\r\n* [CodeSystem](codesystem.html): External identifier for the code system\r\n* [ConceptMap](conceptmap.html): External identifier for the concept map\r\n* [MessageDefinition](messagedefinition.html): External identifier for the message definition\r\n* [StructureDefinition](structuredefinition.html): External identifier for the structure definition\r\n* [StructureMap](structuremap.html): External identifier for the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities\r\n* [ValueSet](valueset.html): External identifier for the value set\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [CodeSystem](codesystem.html): External identifier for the code system -* [ConceptMap](conceptmap.html): External identifier for the concept map -* [MessageDefinition](messagedefinition.html): External identifier for the message definition -* [StructureDefinition](structuredefinition.html): External identifier for the structure definition -* [StructureMap](structuremap.html): External identifier for the structure map -* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities -* [ValueSet](valueset.html): External identifier for the value set -
- * Type: token
- * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - /** * Search parameter: jurisdiction *

@@ -8341,7 +8009,149 @@ public String toString() { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); -// Manual code (from Configuration.txt)t: + /** + * Search parameter: context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [CodeSystem](codesystem.html): External identifier for the code system +* [ConceptMap](conceptmap.html): External identifier for the concept map +* [MessageDefinition](messagedefinition.html): External identifier for the message definition +* [StructureDefinition](structuredefinition.html): External identifier for the structure definition +* [StructureMap](structuremap.html): External identifier for the structure map +* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities +* [ValueSet](valueset.html): External identifier for the value set +
+ * Type: token
+ * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier", description="Multiple Resources: \r\n\r\n* [CodeSystem](codesystem.html): External identifier for the code system\r\n* [ConceptMap](conceptmap.html): External identifier for the concept map\r\n* [MessageDefinition](messagedefinition.html): External identifier for the message definition\r\n* [StructureDefinition](structuredefinition.html): External identifier for the structure definition\r\n* [StructureMap](structuremap.html): External identifier for the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities\r\n* [ValueSet](valueset.html): External identifier for the value set\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [CodeSystem](codesystem.html): External identifier for the code system +* [ConceptMap](conceptmap.html): External identifier for the concept map +* [MessageDefinition](messagedefinition.html): External identifier for the message definition +* [StructureDefinition](structuredefinition.html): External identifier for the structure definition +* [StructureMap](structuremap.html): External identifier for the structure map +* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities +* [ValueSet](valueset.html): External identifier for the value set +
+ * Type: token
+ * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + +// Manual code (from Configuration.txt): public String toString() { return StructureMapUtilities.render(this); } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Subscription.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Subscription.java index 97c44ffbc..d8c91650c 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Subscription.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Subscription.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -89,7 +89,6 @@ public class Subscription extends DomainResource { case EMPTY: return "empty"; case IDONLY: return "id-only"; case FULLRESOURCE: return "full-resource"; - case NULL: return null; default: return "?"; } } @@ -98,7 +97,6 @@ public class Subscription extends DomainResource { case EMPTY: return "http://hl7.org/fhir/subscription-payload-content"; case IDONLY: return "http://hl7.org/fhir/subscription-payload-content"; case FULLRESOURCE: return "http://hl7.org/fhir/subscription-payload-content"; - case NULL: return null; default: return "?"; } } @@ -107,7 +105,6 @@ public class Subscription extends DomainResource { case EMPTY: return "No resource content is transacted in the notification payload."; case IDONLY: return "Only the resource id is transacted in the notification payload."; case FULLRESOURCE: return "The entire resource is transacted in the notification payload."; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class Subscription extends DomainResource { case EMPTY: return "empty"; case IDONLY: return "id-only"; case FULLRESOURCE: return "full-resource"; - case NULL: return null; default: return "?"; } } @@ -165,19 +161,151 @@ public class Subscription extends DomainResource { } } + public enum SubscriptionUrlLocation { + /** + * URLs should NOT be included in notifications. + */ + NONE, + /** + * URLs should be placed in Bundle.entry.fullUrl. + */ + FULLURL, + /** + * URLs should be placed in Bundle.entry.request and/or Bundle.entry.response. + */ + REQUESTRESPONSE, + /** + * URLS should be filled out in all available locations. + */ + ALL, + /** + * added to help the parsers with the generic types + */ + NULL; + public static SubscriptionUrlLocation fromCode(String codeString) throws FHIRException { + if (codeString == null || "".equals(codeString)) + return null; + if ("none".equals(codeString)) + return NONE; + if ("full-url".equals(codeString)) + return FULLURL; + if ("request-response".equals(codeString)) + return REQUESTRESPONSE; + if ("all".equals(codeString)) + return ALL; + if (Configuration.isAcceptInvalidEnums()) + return null; + else + throw new FHIRException("Unknown SubscriptionUrlLocation code '"+codeString+"'"); + } + public String toCode() { + switch (this) { + case NONE: return "none"; + case FULLURL: return "full-url"; + case REQUESTRESPONSE: return "request-response"; + case ALL: return "all"; + default: return "?"; + } + } + public String getSystem() { + switch (this) { + case NONE: return "http://hl7.org/fhir/subscription-url-location"; + case FULLURL: return "http://hl7.org/fhir/subscription-url-location"; + case REQUESTRESPONSE: return "http://hl7.org/fhir/subscription-url-location"; + case ALL: return "http://hl7.org/fhir/subscription-url-location"; + default: return "?"; + } + } + public String getDefinition() { + switch (this) { + case NONE: return "URLs should NOT be included in notifications."; + case FULLURL: return "URLs should be placed in Bundle.entry.fullUrl."; + case REQUESTRESPONSE: return "URLs should be placed in Bundle.entry.request and/or Bundle.entry.response."; + case ALL: return "URLS should be filled out in all available locations."; + default: return "?"; + } + } + public String getDisplay() { + switch (this) { + case NONE: return "none"; + case FULLURL: return "full-url"; + case REQUESTRESPONSE: return "request-response"; + case ALL: return "all"; + default: return "?"; + } + } + } + + public static class SubscriptionUrlLocationEnumFactory implements EnumFactory { + public SubscriptionUrlLocation fromCode(String codeString) throws IllegalArgumentException { + if (codeString == null || "".equals(codeString)) + if (codeString == null || "".equals(codeString)) + return null; + if ("none".equals(codeString)) + return SubscriptionUrlLocation.NONE; + if ("full-url".equals(codeString)) + return SubscriptionUrlLocation.FULLURL; + if ("request-response".equals(codeString)) + return SubscriptionUrlLocation.REQUESTRESPONSE; + if ("all".equals(codeString)) + return SubscriptionUrlLocation.ALL; + throw new IllegalArgumentException("Unknown SubscriptionUrlLocation code '"+codeString+"'"); + } + public Enumeration fromType(Base code) throws FHIRException { + if (code == null) + return null; + if (code.isEmpty()) + return new Enumeration(this); + String codeString = ((PrimitiveType) code).asStringValue(); + if (codeString == null || "".equals(codeString)) + return null; + if ("none".equals(codeString)) + return new Enumeration(this, SubscriptionUrlLocation.NONE); + if ("full-url".equals(codeString)) + return new Enumeration(this, SubscriptionUrlLocation.FULLURL); + if ("request-response".equals(codeString)) + return new Enumeration(this, SubscriptionUrlLocation.REQUESTRESPONSE); + if ("all".equals(codeString)) + return new Enumeration(this, SubscriptionUrlLocation.ALL); + throw new FHIRException("Unknown SubscriptionUrlLocation code '"+codeString+"'"); + } + public String toCode(SubscriptionUrlLocation code) { + if (code == SubscriptionUrlLocation.NONE) + return "none"; + if (code == SubscriptionUrlLocation.FULLURL) + return "full-url"; + if (code == SubscriptionUrlLocation.REQUESTRESPONSE) + return "request-response"; + if (code == SubscriptionUrlLocation.ALL) + return "all"; + return "?"; + } + public String toSystem(SubscriptionUrlLocation code) { + return code.getSystem(); + } + } + @Block() public static class SubscriptionFilterByComponent extends BackboneElement implements IBaseBackboneElement { + /** + * If the element is a reference to another resource, this element contains "Reference", and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient). + */ + @Child(name = "resourceType", type = {UriType.class}, order=1, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Allowed Data type or Resource (reference to definition) for this Subscription", formalDefinition="If the element is a reference to another resource, this element contains \"Reference\", and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient)." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/defined-types") + protected UriType resourceType; + /** * The filter label (=key) as defined in the `SubscriptionTopic.canfilterBy.searchParamName` element. */ - @Child(name = "searchParamName", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=true) + @Child(name = "searchParamName", type = {StringType.class}, order=2, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="Filter label defined in SubscriptionTopic", formalDefinition="The filter label (=key) as defined in the `SubscriptionTopic.canfilterBy.searchParamName` element." ) protected StringType searchParamName; /** * The operator to apply to the filter value when determining matches (Search modifiers). */ - @Child(name = "searchModifier", type = {CodeType.class}, order=2, min=0, max=1, modifier=false, summary=true) + @Child(name = "searchModifier", type = {CodeType.class}, order=3, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="= | eq | ne | gt | lt | ge | le | sa | eb | ap | above | below | in | not-in | of-type", formalDefinition="The operator to apply to the filter value when determining matches (Search modifiers)." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subscription-search-modifier") protected Enumeration searchModifier; @@ -185,11 +313,11 @@ public class Subscription extends DomainResource { /** * The literal value or resource path as is legal in search - for example, "Patient/123" or "le1950". */ - @Child(name = "value", type = {StringType.class}, order=3, min=1, max=1, modifier=false, summary=true) + @Child(name = "value", type = {StringType.class}, order=4, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="Literal value or resource path", formalDefinition="The literal value or resource path as is legal in search - for example, \"Patient/123\" or \"le1950\"." ) protected StringType value; - private static final long serialVersionUID = -1346206527L; + private static final long serialVersionUID = 1179250301L; /** * Constructor @@ -207,6 +335,55 @@ public class Subscription extends DomainResource { this.setValue(value); } + /** + * @return {@link #resourceType} (If the element is a reference to another resource, this element contains "Reference", and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient).). This is the underlying object with id, value and extensions. The accessor "getResourceType" gives direct access to the value + */ + public UriType getResourceTypeElement() { + if (this.resourceType == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create SubscriptionFilterByComponent.resourceType"); + else if (Configuration.doAutoCreate()) + this.resourceType = new UriType(); // bb + return this.resourceType; + } + + public boolean hasResourceTypeElement() { + return this.resourceType != null && !this.resourceType.isEmpty(); + } + + public boolean hasResourceType() { + return this.resourceType != null && !this.resourceType.isEmpty(); + } + + /** + * @param value {@link #resourceType} (If the element is a reference to another resource, this element contains "Reference", and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient).). This is the underlying object with id, value and extensions. The accessor "getResourceType" gives direct access to the value + */ + public SubscriptionFilterByComponent setResourceTypeElement(UriType value) { + this.resourceType = value; + return this; + } + + /** + * @return If the element is a reference to another resource, this element contains "Reference", and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient). + */ + public String getResourceType() { + return this.resourceType == null ? null : this.resourceType.getValue(); + } + + /** + * @param value If the element is a reference to another resource, this element contains "Reference", and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient). + */ + public SubscriptionFilterByComponent setResourceType(String value) { + if (Utilities.noString(value)) + this.resourceType = null; + else { + if (this.resourceType == null) + this.resourceType = new UriType(); + this.resourceType.setValue(value); + } + return this; + } + /** * @return {@link #searchParamName} (The filter label (=key) as defined in the `SubscriptionTopic.canfilterBy.searchParamName` element.). This is the underlying object with id, value and extensions. The accessor "getSearchParamName" gives direct access to the value */ @@ -348,6 +525,7 @@ public class Subscription extends DomainResource { protected void listChildren(List children) { super.listChildren(children); + children.add(new Property("resourceType", "uri", "If the element is a reference to another resource, this element contains \"Reference\", and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient).", 0, 1, resourceType)); children.add(new Property("searchParamName", "string", "The filter label (=key) as defined in the `SubscriptionTopic.canfilterBy.searchParamName` element.", 0, 1, searchParamName)); children.add(new Property("searchModifier", "code", "The operator to apply to the filter value when determining matches (Search modifiers).", 0, 1, searchModifier)); children.add(new Property("value", "string", "The literal value or resource path as is legal in search - for example, \"Patient/123\" or \"le1950\".", 0, 1, value)); @@ -356,6 +534,7 @@ public class Subscription extends DomainResource { @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { + case -384364440: /*resourceType*/ return new Property("resourceType", "uri", "If the element is a reference to another resource, this element contains \"Reference\", and the targetProfile element defines what resources can be referenced. The targetProfile may be a reference to the general definition of a resource (e.g. http://hl7.org/fhir/StructureDefinition/Patient).", 0, 1, resourceType); case 83857392: /*searchParamName*/ return new Property("searchParamName", "string", "The filter label (=key) as defined in the `SubscriptionTopic.canfilterBy.searchParamName` element.", 0, 1, searchParamName); case 1540924575: /*searchModifier*/ return new Property("searchModifier", "code", "The operator to apply to the filter value when determining matches (Search modifiers).", 0, 1, searchModifier); case 111972721: /*value*/ return new Property("value", "string", "The literal value or resource path as is legal in search - for example, \"Patient/123\" or \"le1950\".", 0, 1, value); @@ -367,6 +546,7 @@ public class Subscription extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { + case -384364440: /*resourceType*/ return this.resourceType == null ? new Base[0] : new Base[] {this.resourceType}; // UriType case 83857392: /*searchParamName*/ return this.searchParamName == null ? new Base[0] : new Base[] {this.searchParamName}; // StringType case 1540924575: /*searchModifier*/ return this.searchModifier == null ? new Base[0] : new Base[] {this.searchModifier}; // Enumeration case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // StringType @@ -378,6 +558,9 @@ public class Subscription extends DomainResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { + case -384364440: // resourceType + this.resourceType = TypeConvertor.castToUri(value); // UriType + return value; case 83857392: // searchParamName this.searchParamName = TypeConvertor.castToString(value); // StringType return value; @@ -395,7 +578,9 @@ public class Subscription extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("searchParamName")) { + if (name.equals("resourceType")) { + this.resourceType = TypeConvertor.castToUri(value); // UriType + } else if (name.equals("searchParamName")) { this.searchParamName = TypeConvertor.castToString(value); // StringType } else if (name.equals("searchModifier")) { value = new SubscriptionSearchModifierEnumFactory().fromType(TypeConvertor.castToCode(value)); @@ -410,6 +595,7 @@ public class Subscription extends DomainResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { + case -384364440: return getResourceTypeElement(); case 83857392: return getSearchParamNameElement(); case 1540924575: return getSearchModifierElement(); case 111972721: return getValueElement(); @@ -421,6 +607,7 @@ public class Subscription extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { + case -384364440: /*resourceType*/ return new String[] {"uri"}; case 83857392: /*searchParamName*/ return new String[] {"string"}; case 1540924575: /*searchModifier*/ return new String[] {"code"}; case 111972721: /*value*/ return new String[] {"string"}; @@ -431,7 +618,10 @@ public class Subscription extends DomainResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("searchParamName")) { + if (name.equals("resourceType")) { + throw new FHIRException("Cannot call addChild on a primitive type Subscription.filterBy.resourceType"); + } + else if (name.equals("searchParamName")) { throw new FHIRException("Cannot call addChild on a primitive type Subscription.filterBy.searchParamName"); } else if (name.equals("searchModifier")) { @@ -452,6 +642,7 @@ public class Subscription extends DomainResource { public void copyValues(SubscriptionFilterByComponent dst) { super.copyValues(dst); + dst.resourceType = resourceType == null ? null : resourceType.copy(); dst.searchParamName = searchParamName == null ? null : searchParamName.copy(); dst.searchModifier = searchModifier == null ? null : searchModifier.copy(); dst.value = value == null ? null : value.copy(); @@ -464,8 +655,8 @@ public class Subscription extends DomainResource { if (!(other_ instanceof SubscriptionFilterByComponent)) return false; SubscriptionFilterByComponent o = (SubscriptionFilterByComponent) other_; - return compareDeep(searchParamName, o.searchParamName, true) && compareDeep(searchModifier, o.searchModifier, true) - && compareDeep(value, o.value, true); + return compareDeep(resourceType, o.resourceType, true) && compareDeep(searchParamName, o.searchParamName, true) + && compareDeep(searchModifier, o.searchModifier, true) && compareDeep(value, o.value, true); } @Override @@ -475,13 +666,13 @@ public class Subscription extends DomainResource { if (!(other_ instanceof SubscriptionFilterByComponent)) return false; SubscriptionFilterByComponent o = (SubscriptionFilterByComponent) other_; - return compareValues(searchParamName, o.searchParamName, true) && compareValues(searchModifier, o.searchModifier, true) - && compareValues(value, o.value, true); + return compareValues(resourceType, o.resourceType, true) && compareValues(searchParamName, o.searchParamName, true) + && compareValues(searchModifier, o.searchModifier, true) && compareValues(value, o.value, true); } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(searchParamName, searchModifier - , value); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(resourceType, searchParamName + , searchModifier, value); } public String fhirType() { @@ -509,16 +700,16 @@ public class Subscription extends DomainResource { * The status of the subscription, which marks the server state for managing the subscription. */ @Child(name = "status", type = {CodeType.class}, order=2, min=1, max=1, modifier=true, summary=true) - @Description(shortDefinition="requested | active | error | off", formalDefinition="The status of the subscription, which marks the server state for managing the subscription." ) + @Description(shortDefinition="requested | active | error | off | entered-in-error", formalDefinition="The status of the subscription, which marks the server state for managing the subscription." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subscription-state") protected Enumeration status; /** * The reference to the subscription topic to be notified about. */ - @Child(name = "topic", type = {SubscriptionTopic.class}, order=3, min=1, max=1, modifier=false, summary=true) + @Child(name = "topic", type = {CanonicalType.class}, order=3, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="Reference to the subscription topic being subscribed to", formalDefinition="The reference to the subscription topic to be notified about." ) - protected Reference topic; + protected CanonicalType topic; /** * Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting. @@ -600,7 +791,22 @@ public class Subscription extends DomainResource { @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subscription-payload-content") protected Enumeration content; - private static final long serialVersionUID = 753899441L; + /** + * If present, where to place URLs of resources in notifications. + */ + @Child(name = "notificationUrlLocation", type = {CodeType.class}, order=15, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="none | full-url | request-response | all", formalDefinition="If present, where to place URLs of resources in notifications." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subscription-url-location") + protected Enumeration notificationUrlLocation; + + /** + * If present, the maximum number of triggering resources that will be included in a notification bundle (e.g., a server will not include more than this number of trigger resources in a single notification). Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included. + */ + @Child(name = "maxCount", type = {PositiveIntType.class}, order=16, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Maximum number of triggering resources included in notification bundles", formalDefinition="If present, the maximum number of triggering resources that will be included in a notification bundle (e.g., a server will not include more than this number of trigger resources in a single notification). Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included." ) + protected PositiveIntType maxCount; + + private static final long serialVersionUID = -1188922658L; /** * Constructor @@ -612,7 +818,7 @@ public class Subscription extends DomainResource { /** * Constructor */ - public Subscription(SubscriptionState status, Reference topic, Coding channelType) { + public Subscription(SubscriptionState status, String topic, Coding channelType) { super(); this.setStatus(status); this.setTopic(topic); @@ -767,29 +973,50 @@ public class Subscription extends DomainResource { } /** - * @return {@link #topic} (The reference to the subscription topic to be notified about.) + * @return {@link #topic} (The reference to the subscription topic to be notified about.). This is the underlying object with id, value and extensions. The accessor "getTopic" gives direct access to the value */ - public Reference getTopic() { + public CanonicalType getTopicElement() { if (this.topic == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Subscription.topic"); else if (Configuration.doAutoCreate()) - this.topic = new Reference(); // cc + this.topic = new CanonicalType(); // bb return this.topic; } + public boolean hasTopicElement() { + return this.topic != null && !this.topic.isEmpty(); + } + public boolean hasTopic() { return this.topic != null && !this.topic.isEmpty(); } /** - * @param value {@link #topic} (The reference to the subscription topic to be notified about.) + * @param value {@link #topic} (The reference to the subscription topic to be notified about.). This is the underlying object with id, value and extensions. The accessor "getTopic" gives direct access to the value */ - public Subscription setTopic(Reference value) { + public Subscription setTopicElement(CanonicalType value) { this.topic = value; return this; } + /** + * @return The reference to the subscription topic to be notified about. + */ + public String getTopic() { + return this.topic == null ? null : this.topic.getValue(); + } + + /** + * @param value The reference to the subscription topic to be notified about. + */ + public Subscription setTopic(String value) { + if (this.topic == null) + this.topic = new CanonicalType(); + this.topic.setValue(value); + return this; + } + /** * @return {@link #contact} (Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.) */ @@ -1316,12 +1543,106 @@ public class Subscription extends DomainResource { return this; } + /** + * @return {@link #notificationUrlLocation} (If present, where to place URLs of resources in notifications.). This is the underlying object with id, value and extensions. The accessor "getNotificationUrlLocation" gives direct access to the value + */ + public Enumeration getNotificationUrlLocationElement() { + if (this.notificationUrlLocation == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Subscription.notificationUrlLocation"); + else if (Configuration.doAutoCreate()) + this.notificationUrlLocation = new Enumeration(new SubscriptionUrlLocationEnumFactory()); // bb + return this.notificationUrlLocation; + } + + public boolean hasNotificationUrlLocationElement() { + return this.notificationUrlLocation != null && !this.notificationUrlLocation.isEmpty(); + } + + public boolean hasNotificationUrlLocation() { + return this.notificationUrlLocation != null && !this.notificationUrlLocation.isEmpty(); + } + + /** + * @param value {@link #notificationUrlLocation} (If present, where to place URLs of resources in notifications.). This is the underlying object with id, value and extensions. The accessor "getNotificationUrlLocation" gives direct access to the value + */ + public Subscription setNotificationUrlLocationElement(Enumeration value) { + this.notificationUrlLocation = value; + return this; + } + + /** + * @return If present, where to place URLs of resources in notifications. + */ + public SubscriptionUrlLocation getNotificationUrlLocation() { + return this.notificationUrlLocation == null ? null : this.notificationUrlLocation.getValue(); + } + + /** + * @param value If present, where to place URLs of resources in notifications. + */ + public Subscription setNotificationUrlLocation(SubscriptionUrlLocation value) { + if (value == null) + this.notificationUrlLocation = null; + else { + if (this.notificationUrlLocation == null) + this.notificationUrlLocation = new Enumeration(new SubscriptionUrlLocationEnumFactory()); + this.notificationUrlLocation.setValue(value); + } + return this; + } + + /** + * @return {@link #maxCount} (If present, the maximum number of triggering resources that will be included in a notification bundle (e.g., a server will not include more than this number of trigger resources in a single notification). Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included.). This is the underlying object with id, value and extensions. The accessor "getMaxCount" gives direct access to the value + */ + public PositiveIntType getMaxCountElement() { + if (this.maxCount == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Subscription.maxCount"); + else if (Configuration.doAutoCreate()) + this.maxCount = new PositiveIntType(); // bb + return this.maxCount; + } + + public boolean hasMaxCountElement() { + return this.maxCount != null && !this.maxCount.isEmpty(); + } + + public boolean hasMaxCount() { + return this.maxCount != null && !this.maxCount.isEmpty(); + } + + /** + * @param value {@link #maxCount} (If present, the maximum number of triggering resources that will be included in a notification bundle (e.g., a server will not include more than this number of trigger resources in a single notification). Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included.). This is the underlying object with id, value and extensions. The accessor "getMaxCount" gives direct access to the value + */ + public Subscription setMaxCountElement(PositiveIntType value) { + this.maxCount = value; + return this; + } + + /** + * @return If present, the maximum number of triggering resources that will be included in a notification bundle (e.g., a server will not include more than this number of trigger resources in a single notification). Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included. + */ + public int getMaxCount() { + return this.maxCount == null || this.maxCount.isEmpty() ? 0 : this.maxCount.getValue(); + } + + /** + * @param value If present, the maximum number of triggering resources that will be included in a notification bundle (e.g., a server will not include more than this number of trigger resources in a single notification). Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included. + */ + public Subscription setMaxCount(int value) { + if (this.maxCount == null) + this.maxCount = new PositiveIntType(); + this.maxCount.setValue(value); + return this; + } + protected void listChildren(List children) { super.listChildren(children); children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this code system when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier)); children.add(new Property("name", "string", "A natural language name identifying the subscription.", 0, 1, name)); children.add(new Property("status", "code", "The status of the subscription, which marks the server state for managing the subscription.", 0, 1, status)); - children.add(new Property("topic", "Reference(SubscriptionTopic)", "The reference to the subscription topic to be notified about.", 0, 1, topic)); + children.add(new Property("topic", "canonical(SubscriptionTopic)", "The reference to the subscription topic to be notified about.", 0, 1, topic)); children.add(new Property("contact", "ContactPoint", "Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.", 0, java.lang.Integer.MAX_VALUE, contact)); children.add(new Property("end", "instant", "The time for the server to turn the subscription off.", 0, 1, end)); children.add(new Property("reason", "string", "A description of why this subscription is defined.", 0, 1, reason)); @@ -1333,6 +1654,8 @@ public class Subscription extends DomainResource { children.add(new Property("timeout", "unsignedInt", "If present, the maximum amount of time a server will allow before failing a notification attempt.", 0, 1, timeout)); children.add(new Property("contentType", "code", "The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. The MIME types \"text/plain\" and \"text/html\" may also be used for Email subscriptions.", 0, 1, contentType)); children.add(new Property("content", "code", "How much of the resource content to deliver in the notification payload. The choices are an empty payload, only the resource id, or the full resource content.", 0, 1, content)); + children.add(new Property("notificationUrlLocation", "code", "If present, where to place URLs of resources in notifications.", 0, 1, notificationUrlLocation)); + children.add(new Property("maxCount", "positiveInt", "If present, the maximum number of triggering resources that will be included in a notification bundle (e.g., a server will not include more than this number of trigger resources in a single notification). Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included.", 0, 1, maxCount)); } @Override @@ -1341,7 +1664,7 @@ public class Subscription extends DomainResource { case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this code system when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier); case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the subscription.", 0, 1, name); case -892481550: /*status*/ return new Property("status", "code", "The status of the subscription, which marks the server state for managing the subscription.", 0, 1, status); - case 110546223: /*topic*/ return new Property("topic", "Reference(SubscriptionTopic)", "The reference to the subscription topic to be notified about.", 0, 1, topic); + case 110546223: /*topic*/ return new Property("topic", "canonical(SubscriptionTopic)", "The reference to the subscription topic to be notified about.", 0, 1, topic); case 951526432: /*contact*/ return new Property("contact", "ContactPoint", "Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting.", 0, java.lang.Integer.MAX_VALUE, contact); case 100571: /*end*/ return new Property("end", "instant", "The time for the server to turn the subscription off.", 0, 1, end); case -934964668: /*reason*/ return new Property("reason", "string", "A description of why this subscription is defined.", 0, 1, reason); @@ -1353,6 +1676,8 @@ public class Subscription extends DomainResource { case -1313911455: /*timeout*/ return new Property("timeout", "unsignedInt", "If present, the maximum amount of time a server will allow before failing a notification attempt.", 0, 1, timeout); case -389131437: /*contentType*/ return new Property("contentType", "code", "The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. The MIME types \"text/plain\" and \"text/html\" may also be used for Email subscriptions.", 0, 1, contentType); case 951530617: /*content*/ return new Property("content", "code", "How much of the resource content to deliver in the notification payload. The choices are an empty payload, only the resource id, or the full resource content.", 0, 1, content); + case 1994381401: /*notificationUrlLocation*/ return new Property("notificationUrlLocation", "code", "If present, where to place URLs of resources in notifications.", 0, 1, notificationUrlLocation); + case 382106123: /*maxCount*/ return new Property("maxCount", "positiveInt", "If present, the maximum number of triggering resources that will be included in a notification bundle (e.g., a server will not include more than this number of trigger resources in a single notification). Note that this is not a strict limit on the number of entries in a bundle, as dependent resources can be included.", 0, 1, maxCount); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -1364,7 +1689,7 @@ public class Subscription extends DomainResource { case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration - case 110546223: /*topic*/ return this.topic == null ? new Base[0] : new Base[] {this.topic}; // Reference + case 110546223: /*topic*/ return this.topic == null ? new Base[0] : new Base[] {this.topic}; // CanonicalType case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactPoint case 100571: /*end*/ return this.end == null ? new Base[0] : new Base[] {this.end}; // InstantType case -934964668: /*reason*/ return this.reason == null ? new Base[0] : new Base[] {this.reason}; // StringType @@ -1376,6 +1701,8 @@ public class Subscription extends DomainResource { case -1313911455: /*timeout*/ return this.timeout == null ? new Base[0] : new Base[] {this.timeout}; // UnsignedIntType case -389131437: /*contentType*/ return this.contentType == null ? new Base[0] : new Base[] {this.contentType}; // CodeType case 951530617: /*content*/ return this.content == null ? new Base[0] : new Base[] {this.content}; // Enumeration + case 1994381401: /*notificationUrlLocation*/ return this.notificationUrlLocation == null ? new Base[0] : new Base[] {this.notificationUrlLocation}; // Enumeration + case 382106123: /*maxCount*/ return this.maxCount == null ? new Base[0] : new Base[] {this.maxCount}; // PositiveIntType default: return super.getProperty(hash, name, checkValid); } @@ -1395,7 +1722,7 @@ public class Subscription extends DomainResource { this.status = (Enumeration) value; // Enumeration return value; case 110546223: // topic - this.topic = TypeConvertor.castToReference(value); // Reference + this.topic = TypeConvertor.castToCanonical(value); // CanonicalType return value; case 951526432: // contact this.getContact().add(TypeConvertor.castToContactPoint(value)); // ContactPoint @@ -1431,6 +1758,13 @@ public class Subscription extends DomainResource { value = new SubscriptionPayloadContentEnumFactory().fromType(TypeConvertor.castToCode(value)); this.content = (Enumeration) value; // Enumeration return value; + case 1994381401: // notificationUrlLocation + value = new SubscriptionUrlLocationEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.notificationUrlLocation = (Enumeration) value; // Enumeration + return value; + case 382106123: // maxCount + this.maxCount = TypeConvertor.castToPositiveInt(value); // PositiveIntType + return value; default: return super.setProperty(hash, name, value); } @@ -1446,7 +1780,7 @@ public class Subscription extends DomainResource { value = new SubscriptionStateEnumFactory().fromType(TypeConvertor.castToCode(value)); this.status = (Enumeration) value; // Enumeration } else if (name.equals("topic")) { - this.topic = TypeConvertor.castToReference(value); // Reference + this.topic = TypeConvertor.castToCanonical(value); // CanonicalType } else if (name.equals("contact")) { this.getContact().add(TypeConvertor.castToContactPoint(value)); } else if (name.equals("end")) { @@ -1470,6 +1804,11 @@ public class Subscription extends DomainResource { } else if (name.equals("content")) { value = new SubscriptionPayloadContentEnumFactory().fromType(TypeConvertor.castToCode(value)); this.content = (Enumeration) value; // Enumeration + } else if (name.equals("notificationUrlLocation")) { + value = new SubscriptionUrlLocationEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.notificationUrlLocation = (Enumeration) value; // Enumeration + } else if (name.equals("maxCount")) { + this.maxCount = TypeConvertor.castToPositiveInt(value); // PositiveIntType } else return super.setProperty(name, value); return value; @@ -1481,7 +1820,7 @@ public class Subscription extends DomainResource { case -1618432855: return addIdentifier(); case 3373707: return getNameElement(); case -892481550: return getStatusElement(); - case 110546223: return getTopic(); + case 110546223: return getTopicElement(); case 951526432: return addContact(); case 100571: return getEndElement(); case -934964668: return getReasonElement(); @@ -1493,6 +1832,8 @@ public class Subscription extends DomainResource { case -1313911455: return getTimeoutElement(); case -389131437: return getContentTypeElement(); case 951530617: return getContentElement(); + case 1994381401: return getNotificationUrlLocationElement(); + case 382106123: return getMaxCountElement(); default: return super.makeProperty(hash, name); } @@ -1504,7 +1845,7 @@ public class Subscription extends DomainResource { case -1618432855: /*identifier*/ return new String[] {"Identifier"}; case 3373707: /*name*/ return new String[] {"string"}; case -892481550: /*status*/ return new String[] {"code"}; - case 110546223: /*topic*/ return new String[] {"Reference"}; + case 110546223: /*topic*/ return new String[] {"canonical"}; case 951526432: /*contact*/ return new String[] {"ContactPoint"}; case 100571: /*end*/ return new String[] {"instant"}; case -934964668: /*reason*/ return new String[] {"string"}; @@ -1516,6 +1857,8 @@ public class Subscription extends DomainResource { case -1313911455: /*timeout*/ return new String[] {"unsignedInt"}; case -389131437: /*contentType*/ return new String[] {"code"}; case 951530617: /*content*/ return new String[] {"code"}; + case 1994381401: /*notificationUrlLocation*/ return new String[] {"code"}; + case 382106123: /*maxCount*/ return new String[] {"positiveInt"}; default: return super.getTypesForProperty(hash, name); } @@ -1533,8 +1876,7 @@ public class Subscription extends DomainResource { throw new FHIRException("Cannot call addChild on a primitive type Subscription.status"); } else if (name.equals("topic")) { - this.topic = new Reference(); - return this.topic; + throw new FHIRException("Cannot call addChild on a primitive type Subscription.topic"); } else if (name.equals("contact")) { return addContact(); @@ -1570,6 +1912,12 @@ public class Subscription extends DomainResource { else if (name.equals("content")) { throw new FHIRException("Cannot call addChild on a primitive type Subscription.content"); } + else if (name.equals("notificationUrlLocation")) { + throw new FHIRException("Cannot call addChild on a primitive type Subscription.notificationUrlLocation"); + } + else if (name.equals("maxCount")) { + throw new FHIRException("Cannot call addChild on a primitive type Subscription.maxCount"); + } else return super.addChild(name); } @@ -1618,6 +1966,8 @@ public class Subscription extends DomainResource { dst.timeout = timeout == null ? null : timeout.copy(); dst.contentType = contentType == null ? null : contentType.copy(); dst.content = content == null ? null : content.copy(); + dst.notificationUrlLocation = notificationUrlLocation == null ? null : notificationUrlLocation.copy(); + dst.maxCount = maxCount == null ? null : maxCount.copy(); } protected Subscription typedCopy() { @@ -1636,6 +1986,7 @@ public class Subscription extends DomainResource { && compareDeep(reason, o.reason, true) && compareDeep(filterBy, o.filterBy, true) && compareDeep(channelType, o.channelType, true) && compareDeep(endpoint, o.endpoint, true) && compareDeep(header, o.header, true) && compareDeep(heartbeatPeriod, o.heartbeatPeriod, true) && compareDeep(timeout, o.timeout, true) && compareDeep(contentType, o.contentType, true) && compareDeep(content, o.content, true) + && compareDeep(notificationUrlLocation, o.notificationUrlLocation, true) && compareDeep(maxCount, o.maxCount, true) ; } @@ -1646,16 +1997,18 @@ public class Subscription extends DomainResource { if (!(other_ instanceof Subscription)) return false; Subscription o = (Subscription) other_; - return compareValues(name, o.name, true) && compareValues(status, o.status, true) && compareValues(end, o.end, true) - && compareValues(reason, o.reason, true) && compareValues(endpoint, o.endpoint, true) && compareValues(header, o.header, true) - && compareValues(heartbeatPeriod, o.heartbeatPeriod, true) && compareValues(timeout, o.timeout, true) - && compareValues(contentType, o.contentType, true) && compareValues(content, o.content, true); + return compareValues(name, o.name, true) && compareValues(status, o.status, true) && compareValues(topic, o.topic, true) + && compareValues(end, o.end, true) && compareValues(reason, o.reason, true) && compareValues(endpoint, o.endpoint, true) + && compareValues(header, o.header, true) && compareValues(heartbeatPeriod, o.heartbeatPeriod, true) + && compareValues(timeout, o.timeout, true) && compareValues(contentType, o.contentType, true) && compareValues(content, o.content, true) + && compareValues(notificationUrlLocation, o.notificationUrlLocation, true) && compareValues(maxCount, o.maxCount, true) + ; } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, name, status , topic, contact, end, reason, filterBy, channelType, endpoint, header, heartbeatPeriod - , timeout, contentType, content); + , timeout, contentType, content, notificationUrlLocation, maxCount); } @Override @@ -1683,6 +2036,26 @@ public class Subscription extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTACT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTACT); + /** + * Search parameter: identifier + *

+ * Description: A subscription identifier
+ * Type: token
+ * Path: Subscription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="Subscription.identifier", description="A subscription identifier", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: A subscription identifier
+ * Type: token
+ * Path: Subscription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + /** * Search parameter: payload *

diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionStatus.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionStatus.java index 9c3f57a34..eb7381657 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionStatus.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionStatus.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class SubscriptionStatus extends DomainResource { case HEARTBEAT: return "heartbeat"; case EVENTNOTIFICATION: return "event-notification"; case QUERYSTATUS: return "query-status"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class SubscriptionStatus extends DomainResource { case HEARTBEAT: return "http://hl7.org/fhir/subscription-notification-type"; case EVENTNOTIFICATION: return "http://hl7.org/fhir/subscription-notification-type"; case QUERYSTATUS: return "http://hl7.org/fhir/subscription-notification-type"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class SubscriptionStatus extends DomainResource { case HEARTBEAT: return "The status was generated to perform a heartbeat notification to the subscriber."; case EVENTNOTIFICATION: return "The status was generated for an event to the subscriber."; case QUERYSTATUS: return "The status was generated in response to a query/request."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class SubscriptionStatus extends DomainResource { case HEARTBEAT: return "Heartbeat"; case EVENTNOTIFICATION: return "Event Notification"; case QUERYSTATUS: return "Query Status"; - case NULL: return null; default: return "?"; } } @@ -181,10 +177,18 @@ public class SubscriptionStatus extends DomainResource { } } + /** + * The status of the subscription, which marks the server state for managing the subscription. + */ + @Child(name = "status", type = {CodeType.class}, order=0, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="requested | active | error | off | entered-in-error", formalDefinition="The status of the subscription, which marks the server state for managing the subscription." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subscription-state") + protected Enumeration status; + /** * The type of event being conveyed with this notificaiton. */ - @Child(name = "type", type = {CodeType.class}, order=0, min=1, max=1, modifier=true, summary=true) + @Child(name = "type", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) @Description(shortDefinition="handshake | heartbeat | event-notification | query-status", formalDefinition="The type of event being conveyed with this notificaiton." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subscription-notification-type") protected Enumeration type; @@ -192,32 +196,24 @@ public class SubscriptionStatus extends DomainResource { /** * The total number of actual events which have been generated since the Subscription was created (inclusive of this notification) - regardless of how many have been successfully communicated. This number is NOT incremented for handshake and heartbeat notifications. */ - @Child(name = "eventsSinceSubscriptionStart", type = {Integer64Type.class}, order=1, min=0, max=1, modifier=false, summary=true) + @Child(name = "eventsSinceSubscriptionStart", type = {Integer64Type.class}, order=2, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Events since the Subscription was created", formalDefinition="The total number of actual events which have been generated since the Subscription was created (inclusive of this notification) - regardless of how many have been successfully communicated. This number is NOT incremented for handshake and heartbeat notifications." ) protected Integer64Type eventsSinceSubscriptionStart; /** * The total number of actual events represented within this notification. For handshake and heartbeat notifications, this will be zero or not present. For event-notifications, this number may be one or more, depending on server batching. */ - @Child(name = "eventsInNotification", type = {IntegerType.class}, order=2, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Events in this notification", formalDefinition="The total number of actual events represented within this notification. For handshake and heartbeat notifications, this will be zero or not present. For event-notifications, this number may be one or more, depending on server batching." ) + @Child(name = "eventsInNotification", type = {IntegerType.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="The number of actual notifications represented by this bundle", formalDefinition="The total number of actual events represented within this notification. For handshake and heartbeat notifications, this will be zero or not present. For event-notifications, this number may be one or more, depending on server batching." ) protected IntegerType eventsInNotification; /** * The reference to the Subscription which generated this notification. */ - @Child(name = "subscription", type = {Subscription.class}, order=3, min=1, max=1, modifier=false, summary=true) + @Child(name = "subscription", type = {Subscription.class}, order=4, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="Reference to the Subscription responsible for this notification", formalDefinition="The reference to the Subscription which generated this notification." ) protected Reference subscription; - /** - * The status of the subscription, which marks the server state for managing the subscription. - */ - @Child(name = "status", type = {CodeType.class}, order=4, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="requested | active | error | off", formalDefinition="The status of the subscription, which marks the server state for managing the subscription." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subscription-state") - protected Enumeration status; - /** * The reference to the SubscriptionTopic for the Subscription which generated this notification. */ @@ -233,7 +229,7 @@ public class SubscriptionStatus extends DomainResource { @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subscription-error") protected List error; - private static final long serialVersionUID = 259495855L; + private static final long serialVersionUID = -1787731217L; /** * Constructor @@ -252,6 +248,55 @@ public class SubscriptionStatus extends DomainResource { this.setTopic(topic); } + /** + * @return {@link #status} (The status of the subscription, which marks the server state for managing the subscription.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value + */ + public Enumeration getStatusElement() { + if (this.status == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create SubscriptionStatus.status"); + else if (Configuration.doAutoCreate()) + this.status = new Enumeration(new SubscriptionStateEnumFactory()); // bb + return this.status; + } + + public boolean hasStatusElement() { + return this.status != null && !this.status.isEmpty(); + } + + public boolean hasStatus() { + return this.status != null && !this.status.isEmpty(); + } + + /** + * @param value {@link #status} (The status of the subscription, which marks the server state for managing the subscription.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value + */ + public SubscriptionStatus setStatusElement(Enumeration value) { + this.status = value; + return this; + } + + /** + * @return The status of the subscription, which marks the server state for managing the subscription. + */ + public SubscriptionState getStatus() { + return this.status == null ? null : this.status.getValue(); + } + + /** + * @param value The status of the subscription, which marks the server state for managing the subscription. + */ + public SubscriptionStatus setStatus(SubscriptionState value) { + if (value == null) + this.status = null; + else { + if (this.status == null) + this.status = new Enumeration(new SubscriptionStateEnumFactory()); + this.status.setValue(value); + } + return this; + } + /** * @return {@link #type} (The type of event being conveyed with this notificaiton.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value */ @@ -410,55 +455,6 @@ public class SubscriptionStatus extends DomainResource { return this; } - /** - * @return {@link #status} (The status of the subscription, which marks the server state for managing the subscription.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value - */ - public Enumeration getStatusElement() { - if (this.status == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create SubscriptionStatus.status"); - else if (Configuration.doAutoCreate()) - this.status = new Enumeration(new SubscriptionStateEnumFactory()); // bb - return this.status; - } - - public boolean hasStatusElement() { - return this.status != null && !this.status.isEmpty(); - } - - public boolean hasStatus() { - return this.status != null && !this.status.isEmpty(); - } - - /** - * @param value {@link #status} (The status of the subscription, which marks the server state for managing the subscription.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value - */ - public SubscriptionStatus setStatusElement(Enumeration value) { - this.status = value; - return this; - } - - /** - * @return The status of the subscription, which marks the server state for managing the subscription. - */ - public SubscriptionState getStatus() { - return this.status == null ? null : this.status.getValue(); - } - - /** - * @param value The status of the subscription, which marks the server state for managing the subscription. - */ - public SubscriptionStatus setStatus(SubscriptionState value) { - if (value == null) - this.status = null; - else { - if (this.status == null) - this.status = new Enumeration(new SubscriptionStateEnumFactory()); - this.status.setValue(value); - } - return this; - } - /** * @return {@link #topic} (The reference to the SubscriptionTopic for the Subscription which generated this notification.). This is the underlying object with id, value and extensions. The accessor "getTopic" gives direct access to the value */ @@ -559,11 +555,11 @@ public class SubscriptionStatus extends DomainResource { protected void listChildren(List children) { super.listChildren(children); + children.add(new Property("status", "code", "The status of the subscription, which marks the server state for managing the subscription.", 0, 1, status)); children.add(new Property("type", "code", "The type of event being conveyed with this notificaiton.", 0, 1, type)); children.add(new Property("eventsSinceSubscriptionStart", "integer64", "The total number of actual events which have been generated since the Subscription was created (inclusive of this notification) - regardless of how many have been successfully communicated. This number is NOT incremented for handshake and heartbeat notifications.", 0, 1, eventsSinceSubscriptionStart)); children.add(new Property("eventsInNotification", "integer", "The total number of actual events represented within this notification. For handshake and heartbeat notifications, this will be zero or not present. For event-notifications, this number may be one or more, depending on server batching.", 0, 1, eventsInNotification)); children.add(new Property("subscription", "Reference(Subscription)", "The reference to the Subscription which generated this notification.", 0, 1, subscription)); - children.add(new Property("status", "code", "The status of the subscription, which marks the server state for managing the subscription.", 0, 1, status)); children.add(new Property("topic", "canonical(SubscriptionTopic)", "The reference to the SubscriptionTopic for the Subscription which generated this notification.", 0, 1, topic)); children.add(new Property("error", "CodeableConcept", "A record of errors that occurred when the server processed a notification.", 0, java.lang.Integer.MAX_VALUE, error)); } @@ -571,11 +567,11 @@ public class SubscriptionStatus extends DomainResource { @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { + case -892481550: /*status*/ return new Property("status", "code", "The status of the subscription, which marks the server state for managing the subscription.", 0, 1, status); case 3575610: /*type*/ return new Property("type", "code", "The type of event being conveyed with this notificaiton.", 0, 1, type); case 304566692: /*eventsSinceSubscriptionStart*/ return new Property("eventsSinceSubscriptionStart", "integer64", "The total number of actual events which have been generated since the Subscription was created (inclusive of this notification) - regardless of how many have been successfully communicated. This number is NOT incremented for handshake and heartbeat notifications.", 0, 1, eventsSinceSubscriptionStart); case 191408169: /*eventsInNotification*/ return new Property("eventsInNotification", "integer", "The total number of actual events represented within this notification. For handshake and heartbeat notifications, this will be zero or not present. For event-notifications, this number may be one or more, depending on server batching.", 0, 1, eventsInNotification); case 341203229: /*subscription*/ return new Property("subscription", "Reference(Subscription)", "The reference to the Subscription which generated this notification.", 0, 1, subscription); - case -892481550: /*status*/ return new Property("status", "code", "The status of the subscription, which marks the server state for managing the subscription.", 0, 1, status); case 110546223: /*topic*/ return new Property("topic", "canonical(SubscriptionTopic)", "The reference to the SubscriptionTopic for the Subscription which generated this notification.", 0, 1, topic); case 96784904: /*error*/ return new Property("error", "CodeableConcept", "A record of errors that occurred when the server processed a notification.", 0, java.lang.Integer.MAX_VALUE, error); default: return super.getNamedProperty(_hash, _name, _checkValid); @@ -586,11 +582,11 @@ public class SubscriptionStatus extends DomainResource { @Override public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { + case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration case 304566692: /*eventsSinceSubscriptionStart*/ return this.eventsSinceSubscriptionStart == null ? new Base[0] : new Base[] {this.eventsSinceSubscriptionStart}; // Integer64Type case 191408169: /*eventsInNotification*/ return this.eventsInNotification == null ? new Base[0] : new Base[] {this.eventsInNotification}; // IntegerType case 341203229: /*subscription*/ return this.subscription == null ? new Base[0] : new Base[] {this.subscription}; // Reference - case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration case 110546223: /*topic*/ return this.topic == null ? new Base[0] : new Base[] {this.topic}; // CanonicalType case 96784904: /*error*/ return this.error == null ? new Base[0] : this.error.toArray(new Base[this.error.size()]); // CodeableConcept default: return super.getProperty(hash, name, checkValid); @@ -601,6 +597,10 @@ public class SubscriptionStatus extends DomainResource { @Override public Base setProperty(int hash, String name, Base value) throws FHIRException { switch (hash) { + case -892481550: // status + value = new SubscriptionStateEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + return value; case 3575610: // type value = new SubscriptionNotificationTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); this.type = (Enumeration) value; // Enumeration @@ -614,10 +614,6 @@ public class SubscriptionStatus extends DomainResource { case 341203229: // subscription this.subscription = TypeConvertor.castToReference(value); // Reference return value; - case -892481550: // status - value = new SubscriptionStateEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.status = (Enumeration) value; // Enumeration - return value; case 110546223: // topic this.topic = TypeConvertor.castToCanonical(value); // CanonicalType return value; @@ -631,7 +627,10 @@ public class SubscriptionStatus extends DomainResource { @Override public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("type")) { + if (name.equals("status")) { + value = new SubscriptionStateEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.status = (Enumeration) value; // Enumeration + } else if (name.equals("type")) { value = new SubscriptionNotificationTypeEnumFactory().fromType(TypeConvertor.castToCode(value)); this.type = (Enumeration) value; // Enumeration } else if (name.equals("eventsSinceSubscriptionStart")) { @@ -640,9 +639,6 @@ public class SubscriptionStatus extends DomainResource { this.eventsInNotification = TypeConvertor.castToInteger(value); // IntegerType } else if (name.equals("subscription")) { this.subscription = TypeConvertor.castToReference(value); // Reference - } else if (name.equals("status")) { - value = new SubscriptionStateEnumFactory().fromType(TypeConvertor.castToCode(value)); - this.status = (Enumeration) value; // Enumeration } else if (name.equals("topic")) { this.topic = TypeConvertor.castToCanonical(value); // CanonicalType } else if (name.equals("error")) { @@ -655,11 +651,11 @@ public class SubscriptionStatus extends DomainResource { @Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { + case -892481550: return getStatusElement(); case 3575610: return getTypeElement(); case 304566692: return getEventsSinceSubscriptionStartElement(); case 191408169: return getEventsInNotificationElement(); case 341203229: return getSubscription(); - case -892481550: return getStatusElement(); case 110546223: return getTopicElement(); case 96784904: return addError(); default: return super.makeProperty(hash, name); @@ -670,11 +666,11 @@ public class SubscriptionStatus extends DomainResource { @Override public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { + case -892481550: /*status*/ return new String[] {"code"}; case 3575610: /*type*/ return new String[] {"code"}; case 304566692: /*eventsSinceSubscriptionStart*/ return new String[] {"integer64"}; case 191408169: /*eventsInNotification*/ return new String[] {"integer"}; case 341203229: /*subscription*/ return new String[] {"Reference"}; - case -892481550: /*status*/ return new String[] {"code"}; case 110546223: /*topic*/ return new String[] {"canonical"}; case 96784904: /*error*/ return new String[] {"CodeableConcept"}; default: return super.getTypesForProperty(hash, name); @@ -684,7 +680,10 @@ public class SubscriptionStatus extends DomainResource { @Override public Base addChild(String name) throws FHIRException { - if (name.equals("type")) { + if (name.equals("status")) { + throw new FHIRException("Cannot call addChild on a primitive type SubscriptionStatus.status"); + } + else if (name.equals("type")) { throw new FHIRException("Cannot call addChild on a primitive type SubscriptionStatus.type"); } else if (name.equals("eventsSinceSubscriptionStart")) { @@ -697,9 +696,6 @@ public class SubscriptionStatus extends DomainResource { this.subscription = new Reference(); return this.subscription; } - else if (name.equals("status")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionStatus.status"); - } else if (name.equals("topic")) { throw new FHIRException("Cannot call addChild on a primitive type SubscriptionStatus.topic"); } @@ -723,11 +719,11 @@ public class SubscriptionStatus extends DomainResource { public void copyValues(SubscriptionStatus dst) { super.copyValues(dst); + dst.status = status == null ? null : status.copy(); dst.type = type == null ? null : type.copy(); dst.eventsSinceSubscriptionStart = eventsSinceSubscriptionStart == null ? null : eventsSinceSubscriptionStart.copy(); dst.eventsInNotification = eventsInNotification == null ? null : eventsInNotification.copy(); dst.subscription = subscription == null ? null : subscription.copy(); - dst.status = status == null ? null : status.copy(); dst.topic = topic == null ? null : topic.copy(); if (error != null) { dst.error = new ArrayList(); @@ -747,10 +743,9 @@ public class SubscriptionStatus extends DomainResource { if (!(other_ instanceof SubscriptionStatus)) return false; SubscriptionStatus o = (SubscriptionStatus) other_; - return compareDeep(type, o.type, true) && compareDeep(eventsSinceSubscriptionStart, o.eventsSinceSubscriptionStart, true) + return compareDeep(status, o.status, true) && compareDeep(type, o.type, true) && compareDeep(eventsSinceSubscriptionStart, o.eventsSinceSubscriptionStart, true) && compareDeep(eventsInNotification, o.eventsInNotification, true) && compareDeep(subscription, o.subscription, true) - && compareDeep(status, o.status, true) && compareDeep(topic, o.topic, true) && compareDeep(error, o.error, true) - ; + && compareDeep(topic, o.topic, true) && compareDeep(error, o.error, true); } @Override @@ -760,14 +755,14 @@ public class SubscriptionStatus extends DomainResource { if (!(other_ instanceof SubscriptionStatus)) return false; SubscriptionStatus o = (SubscriptionStatus) other_; - return compareValues(type, o.type, true) && compareValues(eventsSinceSubscriptionStart, o.eventsSinceSubscriptionStart, true) - && compareValues(eventsInNotification, o.eventsInNotification, true) && compareValues(status, o.status, true) - && compareValues(topic, o.topic, true); + return compareValues(status, o.status, true) && compareValues(type, o.type, true) && compareValues(eventsSinceSubscriptionStart, o.eventsSinceSubscriptionStart, true) + && compareValues(eventsInNotification, o.eventsInNotification, true) && compareValues(topic, o.topic, true) + ; } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, eventsSinceSubscriptionStart - , eventsInNotification, subscription, status, topic, error); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(status, type, eventsSinceSubscriptionStart + , eventsInNotification, subscription, topic, error); } @Override diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionTopic.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionTopic.java index cd9cbeb86..b90879553 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionTopic.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubscriptionTopic.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -53,6 +53,98 @@ import ca.uhn.fhir.model.api.annotation.Block; @ResourceDef(name="SubscriptionTopic", profile="http://hl7.org/fhir/StructureDefinition/SubscriptionTopic") public class SubscriptionTopic extends DomainResource { + public enum CriteriaNotExistsBehavior { + /** + * The requested conditional statement will pass if a matching state does not exist (e.g., previous state during create). + */ + TESTPASSES, + /** + * The requested conditional statement will fail if a matching state does not exist (e.g., previous state during create). + */ + TESTFAILS, + /** + * added to help the parsers with the generic types + */ + NULL; + public static CriteriaNotExistsBehavior fromCode(String codeString) throws FHIRException { + if (codeString == null || "".equals(codeString)) + return null; + if ("test-passes".equals(codeString)) + return TESTPASSES; + if ("test-fails".equals(codeString)) + return TESTFAILS; + if (Configuration.isAcceptInvalidEnums()) + return null; + else + throw new FHIRException("Unknown CriteriaNotExistsBehavior code '"+codeString+"'"); + } + public String toCode() { + switch (this) { + case TESTPASSES: return "test-passes"; + case TESTFAILS: return "test-fails"; + default: return "?"; + } + } + public String getSystem() { + switch (this) { + case TESTPASSES: return "http://hl7.org/fhir/subscriptiontopic-cr-behavior"; + case TESTFAILS: return "http://hl7.org/fhir/subscriptiontopic-cr-behavior"; + default: return "?"; + } + } + public String getDefinition() { + switch (this) { + case TESTPASSES: return "The requested conditional statement will pass if a matching state does not exist (e.g., previous state during create)."; + case TESTFAILS: return "The requested conditional statement will fail if a matching state does not exist (e.g., previous state during create)."; + default: return "?"; + } + } + public String getDisplay() { + switch (this) { + case TESTPASSES: return "test passes"; + case TESTFAILS: return "test fails"; + default: return "?"; + } + } + } + + public static class CriteriaNotExistsBehaviorEnumFactory implements EnumFactory { + public CriteriaNotExistsBehavior fromCode(String codeString) throws IllegalArgumentException { + if (codeString == null || "".equals(codeString)) + if (codeString == null || "".equals(codeString)) + return null; + if ("test-passes".equals(codeString)) + return CriteriaNotExistsBehavior.TESTPASSES; + if ("test-fails".equals(codeString)) + return CriteriaNotExistsBehavior.TESTFAILS; + throw new IllegalArgumentException("Unknown CriteriaNotExistsBehavior code '"+codeString+"'"); + } + public Enumeration fromType(Base code) throws FHIRException { + if (code == null) + return null; + if (code.isEmpty()) + return new Enumeration(this); + String codeString = ((PrimitiveType) code).asStringValue(); + if (codeString == null || "".equals(codeString)) + return null; + if ("test-passes".equals(codeString)) + return new Enumeration(this, CriteriaNotExistsBehavior.TESTPASSES); + if ("test-fails".equals(codeString)) + return new Enumeration(this, CriteriaNotExistsBehavior.TESTFAILS); + throw new FHIRException("Unknown CriteriaNotExistsBehavior code '"+codeString+"'"); + } + public String toCode(CriteriaNotExistsBehavior code) { + if (code == CriteriaNotExistsBehavior.TESTPASSES) + return "test-passes"; + if (code == CriteriaNotExistsBehavior.TESTFAILS) + return "test-fails"; + return "?"; + } + public String toSystem(CriteriaNotExistsBehavior code) { + return code.getSystem(); + } + } + public enum InteractionTrigger { /** * Create a new resource with a server assigned id. @@ -89,7 +181,6 @@ public class SubscriptionTopic extends DomainResource { case CREATE: return "create"; case UPDATE: return "update"; case DELETE: return "delete"; - case NULL: return null; default: return "?"; } } @@ -98,7 +189,6 @@ public class SubscriptionTopic extends DomainResource { case CREATE: return "http://hl7.org/fhir/restful-interaction"; case UPDATE: return "http://hl7.org/fhir/restful-interaction"; case DELETE: return "http://hl7.org/fhir/restful-interaction"; - case NULL: return null; default: return "?"; } } @@ -107,7 +197,6 @@ public class SubscriptionTopic extends DomainResource { case CREATE: return "Create a new resource with a server assigned id."; case UPDATE: return "Update an existing resource by its id (or create it if it is new)."; case DELETE: return "Delete a resource."; - case NULL: return null; default: return "?"; } } @@ -116,7 +205,6 @@ public class SubscriptionTopic extends DomainResource { case CREATE: return "create"; case UPDATE: return "update"; case DELETE: return "delete"; - case NULL: return null; default: return "?"; } } @@ -175,12 +263,12 @@ public class SubscriptionTopic extends DomainResource { protected StringType description; /** - * The list of resource types that are candidates for this subscription topic. For example, the Encounter resource is updated in an 'admission' subscription topic. + * URL of the Resource that is the type used in this trigger. Relative URLs are relative to the StructureDefinition root of the implemented FHIR version (e.g., http://hl7.org/fhir/StructureDefinition). For example, "Patient" maps to http://hl7.org/fhir/StructureDefinition/Patient. For more information, see ElementDefinition.type.code. */ - @Child(name = "resourceType", type = {CodeType.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Candidate types for this subscription topic", formalDefinition="The list of resource types that are candidates for this subscription topic. For example, the Encounter resource is updated in an 'admission' subscription topic." ) - @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/resource-types") - protected List resourceType; + @Child(name = "resourceType", type = {UriType.class}, order=2, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Allowed Data type or Resource (reference to definition) for this definition", formalDefinition="URL of the Resource that is the type used in this trigger. Relative URLs are relative to the StructureDefinition root of the implemented FHIR version (e.g., http://hl7.org/fhir/StructureDefinition). For example, \"Patient\" maps to http://hl7.org/fhir/StructureDefinition/Patient. For more information, see ElementDefinition.type.code." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/defined-types") + protected UriType resourceType; /** * The REST interaction based rules that the server should use to determine when to trigger a notification for this topic. @@ -204,7 +292,14 @@ public class SubscriptionTopic extends DomainResource { @Description(shortDefinition="FHIRPath based trigger rule", formalDefinition="The FHIRPath based rules that the server should use to determine when to trigger a notification for this topic. If there are multiple, FHIRPath filters are joined with AND." ) protected List fhirPathCriteria; - private static final long serialVersionUID = -265026948L; + /** + * List of properties by which Subscriptions on the subscription topic can be filtered. + */ + @Child(name = "canFilterBy", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Properties by which a Subscription can further filter a SubscriptionTopic", formalDefinition="List of properties by which Subscriptions on the subscription topic can be filtered." ) + protected List canFilterBy; + + private static final long serialVersionUID = 111786998L; /** * Constructor @@ -263,64 +358,52 @@ public class SubscriptionTopic extends DomainResource { } /** - * @return {@link #resourceType} (The list of resource types that are candidates for this subscription topic. For example, the Encounter resource is updated in an 'admission' subscription topic.) + * @return {@link #resourceType} (URL of the Resource that is the type used in this trigger. Relative URLs are relative to the StructureDefinition root of the implemented FHIR version (e.g., http://hl7.org/fhir/StructureDefinition). For example, "Patient" maps to http://hl7.org/fhir/StructureDefinition/Patient. For more information, see ElementDefinition.type.code.). This is the underlying object with id, value and extensions. The accessor "getResourceType" gives direct access to the value */ - public List getResourceType() { + public UriType getResourceTypeElement() { if (this.resourceType == null) - this.resourceType = new ArrayList(); + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create SubscriptionTopicResourceTriggerComponent.resourceType"); + else if (Configuration.doAutoCreate()) + this.resourceType = new UriType(); // bb return this.resourceType; } - /** - * @return Returns a reference to this for easy method chaining - */ - public SubscriptionTopicResourceTriggerComponent setResourceType(List theResourceType) { - this.resourceType = theResourceType; - return this; + public boolean hasResourceTypeElement() { + return this.resourceType != null && !this.resourceType.isEmpty(); } public boolean hasResourceType() { - if (this.resourceType == null) - return false; - for (CodeType item : this.resourceType) - if (!item.isEmpty()) - return true; - return false; + return this.resourceType != null && !this.resourceType.isEmpty(); } /** - * @return {@link #resourceType} (The list of resource types that are candidates for this subscription topic. For example, the Encounter resource is updated in an 'admission' subscription topic.) + * @param value {@link #resourceType} (URL of the Resource that is the type used in this trigger. Relative URLs are relative to the StructureDefinition root of the implemented FHIR version (e.g., http://hl7.org/fhir/StructureDefinition). For example, "Patient" maps to http://hl7.org/fhir/StructureDefinition/Patient. For more information, see ElementDefinition.type.code.). This is the underlying object with id, value and extensions. The accessor "getResourceType" gives direct access to the value */ - public CodeType addResourceTypeElement() {//2 - CodeType t = new CodeType(); - if (this.resourceType == null) - this.resourceType = new ArrayList(); - this.resourceType.add(t); - return t; - } - - /** - * @param value {@link #resourceType} (The list of resource types that are candidates for this subscription topic. For example, the Encounter resource is updated in an 'admission' subscription topic.) - */ - public SubscriptionTopicResourceTriggerComponent addResourceType(String value) { //1 - CodeType t = new CodeType(); - t.setValue(value); - if (this.resourceType == null) - this.resourceType = new ArrayList(); - this.resourceType.add(t); + public SubscriptionTopicResourceTriggerComponent setResourceTypeElement(UriType value) { + this.resourceType = value; return this; } /** - * @param value {@link #resourceType} (The list of resource types that are candidates for this subscription topic. For example, the Encounter resource is updated in an 'admission' subscription topic.) + * @return URL of the Resource that is the type used in this trigger. Relative URLs are relative to the StructureDefinition root of the implemented FHIR version (e.g., http://hl7.org/fhir/StructureDefinition). For example, "Patient" maps to http://hl7.org/fhir/StructureDefinition/Patient. For more information, see ElementDefinition.type.code. */ - public boolean hasResourceType(String value) { - if (this.resourceType == null) - return false; - for (CodeType v : this.resourceType) - if (v.getValue().equals(value)) // code - return true; - return false; + public String getResourceType() { + return this.resourceType == null ? null : this.resourceType.getValue(); + } + + /** + * @param value URL of the Resource that is the type used in this trigger. Relative URLs are relative to the StructureDefinition root of the implemented FHIR version (e.g., http://hl7.org/fhir/StructureDefinition). For example, "Patient" maps to http://hl7.org/fhir/StructureDefinition/Patient. For more information, see ElementDefinition.type.code. + */ + public SubscriptionTopicResourceTriggerComponent setResourceType(String value) { + if (Utilities.noString(value)) + this.resourceType = null; + else { + if (this.resourceType == null) + this.resourceType = new UriType(); + this.resourceType.setValue(value); + } + return this; } /** @@ -469,23 +552,78 @@ public class SubscriptionTopic extends DomainResource { return false; } + /** + * @return {@link #canFilterBy} (List of properties by which Subscriptions on the subscription topic can be filtered.) + */ + public List getCanFilterBy() { + if (this.canFilterBy == null) + this.canFilterBy = new ArrayList(); + return this.canFilterBy; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public SubscriptionTopicResourceTriggerComponent setCanFilterBy(List theCanFilterBy) { + this.canFilterBy = theCanFilterBy; + return this; + } + + public boolean hasCanFilterBy() { + if (this.canFilterBy == null) + return false; + for (SubscriptionTopicResourceTriggerCanFilterByComponent item : this.canFilterBy) + if (!item.isEmpty()) + return true; + return false; + } + + public SubscriptionTopicResourceTriggerCanFilterByComponent addCanFilterBy() { //3 + SubscriptionTopicResourceTriggerCanFilterByComponent t = new SubscriptionTopicResourceTriggerCanFilterByComponent(); + if (this.canFilterBy == null) + this.canFilterBy = new ArrayList(); + this.canFilterBy.add(t); + return t; + } + + public SubscriptionTopicResourceTriggerComponent addCanFilterBy(SubscriptionTopicResourceTriggerCanFilterByComponent t) { //3 + if (t == null) + return this; + if (this.canFilterBy == null) + this.canFilterBy = new ArrayList(); + this.canFilterBy.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #canFilterBy}, creating it if it does not already exist {3} + */ + public SubscriptionTopicResourceTriggerCanFilterByComponent getCanFilterByFirstRep() { + if (getCanFilterBy().isEmpty()) { + addCanFilterBy(); + } + return getCanFilterBy().get(0); + } + protected void listChildren(List children) { super.listChildren(children); children.add(new Property("description", "string", "The human readable description of what triggers inclusion into this subscription topic - for example, \"Beginning of a clinical encounter\".", 0, 1, description)); - children.add(new Property("resourceType", "code", "The list of resource types that are candidates for this subscription topic. For example, the Encounter resource is updated in an 'admission' subscription topic.", 0, java.lang.Integer.MAX_VALUE, resourceType)); + children.add(new Property("resourceType", "uri", "URL of the Resource that is the type used in this trigger. Relative URLs are relative to the StructureDefinition root of the implemented FHIR version (e.g., http://hl7.org/fhir/StructureDefinition). For example, \"Patient\" maps to http://hl7.org/fhir/StructureDefinition/Patient. For more information, see ElementDefinition.type.code.", 0, 1, resourceType)); children.add(new Property("methodCriteria", "code", "The REST interaction based rules that the server should use to determine when to trigger a notification for this topic.", 0, java.lang.Integer.MAX_VALUE, methodCriteria)); children.add(new Property("queryCriteria", "", "The FHIR query based rules that the server should use to determine when to trigger a notification for this subscription topic.", 0, 1, queryCriteria)); children.add(new Property("fhirPathCriteria", "string", "The FHIRPath based rules that the server should use to determine when to trigger a notification for this topic. If there are multiple, FHIRPath filters are joined with AND.", 0, java.lang.Integer.MAX_VALUE, fhirPathCriteria)); + children.add(new Property("canFilterBy", "", "List of properties by which Subscriptions on the subscription topic can be filtered.", 0, java.lang.Integer.MAX_VALUE, canFilterBy)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case -1724546052: /*description*/ return new Property("description", "string", "The human readable description of what triggers inclusion into this subscription topic - for example, \"Beginning of a clinical encounter\".", 0, 1, description); - case -384364440: /*resourceType*/ return new Property("resourceType", "code", "The list of resource types that are candidates for this subscription topic. For example, the Encounter resource is updated in an 'admission' subscription topic.", 0, java.lang.Integer.MAX_VALUE, resourceType); + case -384364440: /*resourceType*/ return new Property("resourceType", "uri", "URL of the Resource that is the type used in this trigger. Relative URLs are relative to the StructureDefinition root of the implemented FHIR version (e.g., http://hl7.org/fhir/StructureDefinition). For example, \"Patient\" maps to http://hl7.org/fhir/StructureDefinition/Patient. For more information, see ElementDefinition.type.code.", 0, 1, resourceType); case -1924160672: /*methodCriteria*/ return new Property("methodCriteria", "code", "The REST interaction based rules that the server should use to determine when to trigger a notification for this topic.", 0, java.lang.Integer.MAX_VALUE, methodCriteria); case -545123257: /*queryCriteria*/ return new Property("queryCriteria", "", "The FHIR query based rules that the server should use to determine when to trigger a notification for this subscription topic.", 0, 1, queryCriteria); case 1929785263: /*fhirPathCriteria*/ return new Property("fhirPathCriteria", "string", "The FHIRPath based rules that the server should use to determine when to trigger a notification for this topic. If there are multiple, FHIRPath filters are joined with AND.", 0, java.lang.Integer.MAX_VALUE, fhirPathCriteria); + case -1299519009: /*canFilterBy*/ return new Property("canFilterBy", "", "List of properties by which Subscriptions on the subscription topic can be filtered.", 0, java.lang.Integer.MAX_VALUE, canFilterBy); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -495,10 +633,11 @@ public class SubscriptionTopic extends DomainResource { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType - case -384364440: /*resourceType*/ return this.resourceType == null ? new Base[0] : this.resourceType.toArray(new Base[this.resourceType.size()]); // CodeType + case -384364440: /*resourceType*/ return this.resourceType == null ? new Base[0] : new Base[] {this.resourceType}; // UriType case -1924160672: /*methodCriteria*/ return this.methodCriteria == null ? new Base[0] : this.methodCriteria.toArray(new Base[this.methodCriteria.size()]); // Enumeration case -545123257: /*queryCriteria*/ return this.queryCriteria == null ? new Base[0] : new Base[] {this.queryCriteria}; // SubscriptionTopicResourceTriggerQueryCriteriaComponent case 1929785263: /*fhirPathCriteria*/ return this.fhirPathCriteria == null ? new Base[0] : this.fhirPathCriteria.toArray(new Base[this.fhirPathCriteria.size()]); // StringType + case -1299519009: /*canFilterBy*/ return this.canFilterBy == null ? new Base[0] : this.canFilterBy.toArray(new Base[this.canFilterBy.size()]); // SubscriptionTopicResourceTriggerCanFilterByComponent default: return super.getProperty(hash, name, checkValid); } @@ -511,7 +650,7 @@ public class SubscriptionTopic extends DomainResource { this.description = TypeConvertor.castToString(value); // StringType return value; case -384364440: // resourceType - this.getResourceType().add(TypeConvertor.castToCode(value)); // CodeType + this.resourceType = TypeConvertor.castToUri(value); // UriType return value; case -1924160672: // methodCriteria value = new InteractionTriggerEnumFactory().fromType(TypeConvertor.castToCode(value)); @@ -523,6 +662,9 @@ public class SubscriptionTopic extends DomainResource { case 1929785263: // fhirPathCriteria this.getFhirPathCriteria().add(TypeConvertor.castToString(value)); // StringType return value; + case -1299519009: // canFilterBy + this.getCanFilterBy().add((SubscriptionTopicResourceTriggerCanFilterByComponent) value); // SubscriptionTopicResourceTriggerCanFilterByComponent + return value; default: return super.setProperty(hash, name, value); } @@ -533,7 +675,7 @@ public class SubscriptionTopic extends DomainResource { if (name.equals("description")) { this.description = TypeConvertor.castToString(value); // StringType } else if (name.equals("resourceType")) { - this.getResourceType().add(TypeConvertor.castToCode(value)); + this.resourceType = TypeConvertor.castToUri(value); // UriType } else if (name.equals("methodCriteria")) { value = new InteractionTriggerEnumFactory().fromType(TypeConvertor.castToCode(value)); this.getMethodCriteria().add((Enumeration) value); @@ -541,6 +683,8 @@ public class SubscriptionTopic extends DomainResource { this.queryCriteria = (SubscriptionTopicResourceTriggerQueryCriteriaComponent) value; // SubscriptionTopicResourceTriggerQueryCriteriaComponent } else if (name.equals("fhirPathCriteria")) { this.getFhirPathCriteria().add(TypeConvertor.castToString(value)); + } else if (name.equals("canFilterBy")) { + this.getCanFilterBy().add((SubscriptionTopicResourceTriggerCanFilterByComponent) value); } else return super.setProperty(name, value); return value; @@ -550,10 +694,11 @@ public class SubscriptionTopic extends DomainResource { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1724546052: return getDescriptionElement(); - case -384364440: return addResourceTypeElement(); + case -384364440: return getResourceTypeElement(); case -1924160672: return addMethodCriteriaElement(); case -545123257: return getQueryCriteria(); case 1929785263: return addFhirPathCriteriaElement(); + case -1299519009: return addCanFilterBy(); default: return super.makeProperty(hash, name); } @@ -563,10 +708,11 @@ public class SubscriptionTopic extends DomainResource { public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case -1724546052: /*description*/ return new String[] {"string"}; - case -384364440: /*resourceType*/ return new String[] {"code"}; + case -384364440: /*resourceType*/ return new String[] {"uri"}; case -1924160672: /*methodCriteria*/ return new String[] {"code"}; case -545123257: /*queryCriteria*/ return new String[] {}; case 1929785263: /*fhirPathCriteria*/ return new String[] {"string"}; + case -1299519009: /*canFilterBy*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -590,6 +736,9 @@ public class SubscriptionTopic extends DomainResource { else if (name.equals("fhirPathCriteria")) { throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.fhirPathCriteria"); } + else if (name.equals("canFilterBy")) { + return addCanFilterBy(); + } else return super.addChild(name); } @@ -603,11 +752,7 @@ public class SubscriptionTopic extends DomainResource { public void copyValues(SubscriptionTopicResourceTriggerComponent dst) { super.copyValues(dst); dst.description = description == null ? null : description.copy(); - if (resourceType != null) { - dst.resourceType = new ArrayList(); - for (CodeType i : resourceType) - dst.resourceType.add(i.copy()); - }; + dst.resourceType = resourceType == null ? null : resourceType.copy(); if (methodCriteria != null) { dst.methodCriteria = new ArrayList>(); for (Enumeration i : methodCriteria) @@ -619,6 +764,11 @@ public class SubscriptionTopic extends DomainResource { for (StringType i : fhirPathCriteria) dst.fhirPathCriteria.add(i.copy()); }; + if (canFilterBy != null) { + dst.canFilterBy = new ArrayList(); + for (SubscriptionTopicResourceTriggerCanFilterByComponent i : canFilterBy) + dst.canFilterBy.add(i.copy()); + }; } @Override @@ -630,7 +780,8 @@ public class SubscriptionTopic extends DomainResource { SubscriptionTopicResourceTriggerComponent o = (SubscriptionTopicResourceTriggerComponent) other_; return compareDeep(description, o.description, true) && compareDeep(resourceType, o.resourceType, true) && compareDeep(methodCriteria, o.methodCriteria, true) && compareDeep(queryCriteria, o.queryCriteria, true) - && compareDeep(fhirPathCriteria, o.fhirPathCriteria, true); + && compareDeep(fhirPathCriteria, o.fhirPathCriteria, true) && compareDeep(canFilterBy, o.canFilterBy, true) + ; } @Override @@ -647,7 +798,7 @@ public class SubscriptionTopic extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(description, resourceType - , methodCriteria, queryCriteria, fhirPathCriteria); + , methodCriteria, queryCriteria, fhirPathCriteria, canFilterBy); } public String fhirType() { @@ -666,21 +817,37 @@ public class SubscriptionTopic extends DomainResource { @Description(shortDefinition="Rule applied to previous resource state", formalDefinition="The FHIR query based rules are applied to the previous resource state." ) protected StringType previous; + /** + * What behavior a server will exhibit if the previous state of a resource does NOT exist (e.g., during a CREATE). + */ + @Child(name = "resultForCreate", type = {CodeType.class}, order=2, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="test-passes | test-fails", formalDefinition="What behavior a server will exhibit if the previous state of a resource does NOT exist (e.g., during a CREATE)." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subscriptiontopic-cr-behavior") + protected Enumeration resultForCreate; + /** * The FHIR query based rules are applied to the current resource state. */ - @Child(name = "current", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true) + @Child(name = "current", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Rule applied to current resource state", formalDefinition="The FHIR query based rules are applied to the current resource state." ) protected StringType current; + /** + * What behavior a server will exhibit if the current state of a resource does NOT exist (e.g., during a DELETE). + */ + @Child(name = "resultForDelete", type = {CodeType.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="test-passes | test-fails", formalDefinition="What behavior a server will exhibit if the current state of a resource does NOT exist (e.g., during a DELETE)." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/subscriptiontopic-cr-behavior") + protected Enumeration resultForDelete; + /** * If set to true, both current and previous criteria must evaluate true to trigger a notification for this topic. Otherwise a notification for this topic will be triggered if either one evaluates to true. */ - @Child(name = "requireBoth", type = {BooleanType.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Child(name = "requireBoth", type = {BooleanType.class}, order=5, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Both must be true flag", formalDefinition="If set to true, both current and previous criteria must evaluate true to trigger a notification for this topic. Otherwise a notification for this topic will be triggered if either one evaluates to true." ) protected BooleanType requireBoth; - private static final long serialVersionUID = -1611265114L; + private static final long serialVersionUID = -291746067L; /** * Constructor @@ -738,6 +905,55 @@ public class SubscriptionTopic extends DomainResource { return this; } + /** + * @return {@link #resultForCreate} (What behavior a server will exhibit if the previous state of a resource does NOT exist (e.g., during a CREATE).). This is the underlying object with id, value and extensions. The accessor "getResultForCreate" gives direct access to the value + */ + public Enumeration getResultForCreateElement() { + if (this.resultForCreate == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create SubscriptionTopicResourceTriggerQueryCriteriaComponent.resultForCreate"); + else if (Configuration.doAutoCreate()) + this.resultForCreate = new Enumeration(new CriteriaNotExistsBehaviorEnumFactory()); // bb + return this.resultForCreate; + } + + public boolean hasResultForCreateElement() { + return this.resultForCreate != null && !this.resultForCreate.isEmpty(); + } + + public boolean hasResultForCreate() { + return this.resultForCreate != null && !this.resultForCreate.isEmpty(); + } + + /** + * @param value {@link #resultForCreate} (What behavior a server will exhibit if the previous state of a resource does NOT exist (e.g., during a CREATE).). This is the underlying object with id, value and extensions. The accessor "getResultForCreate" gives direct access to the value + */ + public SubscriptionTopicResourceTriggerQueryCriteriaComponent setResultForCreateElement(Enumeration value) { + this.resultForCreate = value; + return this; + } + + /** + * @return What behavior a server will exhibit if the previous state of a resource does NOT exist (e.g., during a CREATE). + */ + public CriteriaNotExistsBehavior getResultForCreate() { + return this.resultForCreate == null ? null : this.resultForCreate.getValue(); + } + + /** + * @param value What behavior a server will exhibit if the previous state of a resource does NOT exist (e.g., during a CREATE). + */ + public SubscriptionTopicResourceTriggerQueryCriteriaComponent setResultForCreate(CriteriaNotExistsBehavior value) { + if (value == null) + this.resultForCreate = null; + else { + if (this.resultForCreate == null) + this.resultForCreate = new Enumeration(new CriteriaNotExistsBehaviorEnumFactory()); + this.resultForCreate.setValue(value); + } + return this; + } + /** * @return {@link #current} (The FHIR query based rules are applied to the current resource state.). This is the underlying object with id, value and extensions. The accessor "getCurrent" gives direct access to the value */ @@ -787,6 +1003,55 @@ public class SubscriptionTopic extends DomainResource { return this; } + /** + * @return {@link #resultForDelete} (What behavior a server will exhibit if the current state of a resource does NOT exist (e.g., during a DELETE).). This is the underlying object with id, value and extensions. The accessor "getResultForDelete" gives direct access to the value + */ + public Enumeration getResultForDeleteElement() { + if (this.resultForDelete == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create SubscriptionTopicResourceTriggerQueryCriteriaComponent.resultForDelete"); + else if (Configuration.doAutoCreate()) + this.resultForDelete = new Enumeration(new CriteriaNotExistsBehaviorEnumFactory()); // bb + return this.resultForDelete; + } + + public boolean hasResultForDeleteElement() { + return this.resultForDelete != null && !this.resultForDelete.isEmpty(); + } + + public boolean hasResultForDelete() { + return this.resultForDelete != null && !this.resultForDelete.isEmpty(); + } + + /** + * @param value {@link #resultForDelete} (What behavior a server will exhibit if the current state of a resource does NOT exist (e.g., during a DELETE).). This is the underlying object with id, value and extensions. The accessor "getResultForDelete" gives direct access to the value + */ + public SubscriptionTopicResourceTriggerQueryCriteriaComponent setResultForDeleteElement(Enumeration value) { + this.resultForDelete = value; + return this; + } + + /** + * @return What behavior a server will exhibit if the current state of a resource does NOT exist (e.g., during a DELETE). + */ + public CriteriaNotExistsBehavior getResultForDelete() { + return this.resultForDelete == null ? null : this.resultForDelete.getValue(); + } + + /** + * @param value What behavior a server will exhibit if the current state of a resource does NOT exist (e.g., during a DELETE). + */ + public SubscriptionTopicResourceTriggerQueryCriteriaComponent setResultForDelete(CriteriaNotExistsBehavior value) { + if (value == null) + this.resultForDelete = null; + else { + if (this.resultForDelete == null) + this.resultForDelete = new Enumeration(new CriteriaNotExistsBehaviorEnumFactory()); + this.resultForDelete.setValue(value); + } + return this; + } + /** * @return {@link #requireBoth} (If set to true, both current and previous criteria must evaluate true to trigger a notification for this topic. Otherwise a notification for this topic will be triggered if either one evaluates to true.). This is the underlying object with id, value and extensions. The accessor "getRequireBoth" gives direct access to the value */ @@ -835,7 +1100,9 @@ public class SubscriptionTopic extends DomainResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("previous", "string", "The FHIR query based rules are applied to the previous resource state.", 0, 1, previous)); + children.add(new Property("resultForCreate", "code", "What behavior a server will exhibit if the previous state of a resource does NOT exist (e.g., during a CREATE).", 0, 1, resultForCreate)); children.add(new Property("current", "string", "The FHIR query based rules are applied to the current resource state.", 0, 1, current)); + children.add(new Property("resultForDelete", "code", "What behavior a server will exhibit if the current state of a resource does NOT exist (e.g., during a DELETE).", 0, 1, resultForDelete)); children.add(new Property("requireBoth", "boolean", "If set to true, both current and previous criteria must evaluate true to trigger a notification for this topic. Otherwise a notification for this topic will be triggered if either one evaluates to true.", 0, 1, requireBoth)); } @@ -843,7 +1110,9 @@ public class SubscriptionTopic extends DomainResource { public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { case -1273775369: /*previous*/ return new Property("previous", "string", "The FHIR query based rules are applied to the previous resource state.", 0, 1, previous); + case -407976056: /*resultForCreate*/ return new Property("resultForCreate", "code", "What behavior a server will exhibit if the previous state of a resource does NOT exist (e.g., during a CREATE).", 0, 1, resultForCreate); case 1126940025: /*current*/ return new Property("current", "string", "The FHIR query based rules are applied to the current resource state.", 0, 1, current); + case -391140297: /*resultForDelete*/ return new Property("resultForDelete", "code", "What behavior a server will exhibit if the current state of a resource does NOT exist (e.g., during a DELETE).", 0, 1, resultForDelete); case 362116742: /*requireBoth*/ return new Property("requireBoth", "boolean", "If set to true, both current and previous criteria must evaluate true to trigger a notification for this topic. Otherwise a notification for this topic will be triggered if either one evaluates to true.", 0, 1, requireBoth); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -854,7 +1123,9 @@ public class SubscriptionTopic extends DomainResource { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case -1273775369: /*previous*/ return this.previous == null ? new Base[0] : new Base[] {this.previous}; // StringType + case -407976056: /*resultForCreate*/ return this.resultForCreate == null ? new Base[0] : new Base[] {this.resultForCreate}; // Enumeration case 1126940025: /*current*/ return this.current == null ? new Base[0] : new Base[] {this.current}; // StringType + case -391140297: /*resultForDelete*/ return this.resultForDelete == null ? new Base[0] : new Base[] {this.resultForDelete}; // Enumeration case 362116742: /*requireBoth*/ return this.requireBoth == null ? new Base[0] : new Base[] {this.requireBoth}; // BooleanType default: return super.getProperty(hash, name, checkValid); } @@ -867,9 +1138,17 @@ public class SubscriptionTopic extends DomainResource { case -1273775369: // previous this.previous = TypeConvertor.castToString(value); // StringType return value; + case -407976056: // resultForCreate + value = new CriteriaNotExistsBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.resultForCreate = (Enumeration) value; // Enumeration + return value; case 1126940025: // current this.current = TypeConvertor.castToString(value); // StringType return value; + case -391140297: // resultForDelete + value = new CriteriaNotExistsBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.resultForDelete = (Enumeration) value; // Enumeration + return value; case 362116742: // requireBoth this.requireBoth = TypeConvertor.castToBoolean(value); // BooleanType return value; @@ -882,8 +1161,14 @@ public class SubscriptionTopic extends DomainResource { public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("previous")) { this.previous = TypeConvertor.castToString(value); // StringType + } else if (name.equals("resultForCreate")) { + value = new CriteriaNotExistsBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.resultForCreate = (Enumeration) value; // Enumeration } else if (name.equals("current")) { this.current = TypeConvertor.castToString(value); // StringType + } else if (name.equals("resultForDelete")) { + value = new CriteriaNotExistsBehaviorEnumFactory().fromType(TypeConvertor.castToCode(value)); + this.resultForDelete = (Enumeration) value; // Enumeration } else if (name.equals("requireBoth")) { this.requireBoth = TypeConvertor.castToBoolean(value); // BooleanType } else @@ -895,7 +1180,9 @@ public class SubscriptionTopic extends DomainResource { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1273775369: return getPreviousElement(); + case -407976056: return getResultForCreateElement(); case 1126940025: return getCurrentElement(); + case -391140297: return getResultForDeleteElement(); case 362116742: return getRequireBothElement(); default: return super.makeProperty(hash, name); } @@ -906,7 +1193,9 @@ public class SubscriptionTopic extends DomainResource { public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case -1273775369: /*previous*/ return new String[] {"string"}; + case -407976056: /*resultForCreate*/ return new String[] {"code"}; case 1126940025: /*current*/ return new String[] {"string"}; + case -391140297: /*resultForDelete*/ return new String[] {"code"}; case 362116742: /*requireBoth*/ return new String[] {"boolean"}; default: return super.getTypesForProperty(hash, name); } @@ -918,9 +1207,15 @@ public class SubscriptionTopic extends DomainResource { if (name.equals("previous")) { throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.queryCriteria.previous"); } + else if (name.equals("resultForCreate")) { + throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.queryCriteria.resultForCreate"); + } else if (name.equals("current")) { throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.queryCriteria.current"); } + else if (name.equals("resultForDelete")) { + throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.queryCriteria.resultForDelete"); + } else if (name.equals("requireBoth")) { throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.queryCriteria.requireBoth"); } @@ -937,7 +1232,9 @@ public class SubscriptionTopic extends DomainResource { public void copyValues(SubscriptionTopicResourceTriggerQueryCriteriaComponent dst) { super.copyValues(dst); dst.previous = previous == null ? null : previous.copy(); + dst.resultForCreate = resultForCreate == null ? null : resultForCreate.copy(); dst.current = current == null ? null : current.copy(); + dst.resultForDelete = resultForDelete == null ? null : resultForDelete.copy(); dst.requireBoth = requireBoth == null ? null : requireBoth.copy(); } @@ -948,8 +1245,9 @@ public class SubscriptionTopic extends DomainResource { if (!(other_ instanceof SubscriptionTopicResourceTriggerQueryCriteriaComponent)) return false; SubscriptionTopicResourceTriggerQueryCriteriaComponent o = (SubscriptionTopicResourceTriggerQueryCriteriaComponent) other_; - return compareDeep(previous, o.previous, true) && compareDeep(current, o.current, true) && compareDeep(requireBoth, o.requireBoth, true) - ; + return compareDeep(previous, o.previous, true) && compareDeep(resultForCreate, o.resultForCreate, true) + && compareDeep(current, o.current, true) && compareDeep(resultForDelete, o.resultForDelete, true) + && compareDeep(requireBoth, o.requireBoth, true); } @Override @@ -959,13 +1257,14 @@ public class SubscriptionTopic extends DomainResource { if (!(other_ instanceof SubscriptionTopicResourceTriggerQueryCriteriaComponent)) return false; SubscriptionTopicResourceTriggerQueryCriteriaComponent o = (SubscriptionTopicResourceTriggerQueryCriteriaComponent) other_; - return compareValues(previous, o.previous, true) && compareValues(current, o.current, true) && compareValues(requireBoth, o.requireBoth, true) - ; + return compareValues(previous, o.previous, true) && compareValues(resultForCreate, o.resultForCreate, true) + && compareValues(current, o.current, true) && compareValues(resultForDelete, o.resultForDelete, true) + && compareValues(requireBoth, o.requireBoth, true); } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(previous, current, requireBoth - ); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(previous, resultForCreate + , current, resultForDelete, requireBoth); } public String fhirType() { @@ -976,7 +1275,7 @@ public class SubscriptionTopic extends DomainResource { } @Block() - public static class SubscriptionTopicCanFilterByComponent extends BackboneElement implements IBaseBackboneElement { + public static class SubscriptionTopicResourceTriggerCanFilterByComponent extends BackboneElement implements IBaseBackboneElement { /** * A search parameter (like "patient") which is a label for the filter. */ @@ -1004,7 +1303,7 @@ public class SubscriptionTopic extends DomainResource { /** * Constructor */ - public SubscriptionTopicCanFilterByComponent() { + public SubscriptionTopicResourceTriggerCanFilterByComponent() { super(); } @@ -1014,7 +1313,7 @@ public class SubscriptionTopic extends DomainResource { public StringType getSearchParamNameElement() { if (this.searchParamName == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create SubscriptionTopicCanFilterByComponent.searchParamName"); + throw new Error("Attempt to auto-create SubscriptionTopicResourceTriggerCanFilterByComponent.searchParamName"); else if (Configuration.doAutoCreate()) this.searchParamName = new StringType(); // bb return this.searchParamName; @@ -1031,7 +1330,7 @@ public class SubscriptionTopic extends DomainResource { /** * @param value {@link #searchParamName} (A search parameter (like "patient") which is a label for the filter.). This is the underlying object with id, value and extensions. The accessor "getSearchParamName" gives direct access to the value */ - public SubscriptionTopicCanFilterByComponent setSearchParamNameElement(StringType value) { + public SubscriptionTopicResourceTriggerCanFilterByComponent setSearchParamNameElement(StringType value) { this.searchParamName = value; return this; } @@ -1046,7 +1345,7 @@ public class SubscriptionTopic extends DomainResource { /** * @param value A search parameter (like "patient") which is a label for the filter. */ - public SubscriptionTopicCanFilterByComponent setSearchParamName(String value) { + public SubscriptionTopicResourceTriggerCanFilterByComponent setSearchParamName(String value) { if (Utilities.noString(value)) this.searchParamName = null; else { @@ -1069,7 +1368,7 @@ public class SubscriptionTopic extends DomainResource { /** * @return Returns a reference to this for easy method chaining */ - public SubscriptionTopicCanFilterByComponent setSearchModifier(List> theSearchModifier) { + public SubscriptionTopicResourceTriggerCanFilterByComponent setSearchModifier(List> theSearchModifier) { this.searchModifier = theSearchModifier; return this; } @@ -1097,7 +1396,7 @@ public class SubscriptionTopic extends DomainResource { /** * @param value {@link #searchModifier} (Allowable operators to apply when determining matches (Search Modifiers).) */ - public SubscriptionTopicCanFilterByComponent addSearchModifier(SubscriptionSearchModifier value) { //1 + public SubscriptionTopicResourceTriggerCanFilterByComponent addSearchModifier(SubscriptionSearchModifier value) { //1 Enumeration t = new Enumeration(new SubscriptionSearchModifierEnumFactory()); t.setValue(value); if (this.searchModifier == null) @@ -1124,7 +1423,7 @@ public class SubscriptionTopic extends DomainResource { public MarkdownType getDocumentationElement() { if (this.documentation == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create SubscriptionTopicCanFilterByComponent.documentation"); + throw new Error("Attempt to auto-create SubscriptionTopicResourceTriggerCanFilterByComponent.documentation"); else if (Configuration.doAutoCreate()) this.documentation = new MarkdownType(); // bb return this.documentation; @@ -1141,7 +1440,7 @@ public class SubscriptionTopic extends DomainResource { /** * @param value {@link #documentation} (Description of how this filter parameter is intended to be used.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value */ - public SubscriptionTopicCanFilterByComponent setDocumentationElement(MarkdownType value) { + public SubscriptionTopicResourceTriggerCanFilterByComponent setDocumentationElement(MarkdownType value) { this.documentation = value; return this; } @@ -1156,7 +1455,7 @@ public class SubscriptionTopic extends DomainResource { /** * @param value Description of how this filter parameter is intended to be used. */ - public SubscriptionTopicCanFilterByComponent setDocumentation(String value) { + public SubscriptionTopicResourceTriggerCanFilterByComponent setDocumentation(String value) { if (value == null) this.documentation = null; else { @@ -1253,25 +1552,25 @@ public class SubscriptionTopic extends DomainResource { @Override public Base addChild(String name) throws FHIRException { if (name.equals("searchParamName")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.canFilterBy.searchParamName"); + throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.canFilterBy.searchParamName"); } else if (name.equals("searchModifier")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.canFilterBy.searchModifier"); + throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.canFilterBy.searchModifier"); } else if (name.equals("documentation")) { - throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.canFilterBy.documentation"); + throw new FHIRException("Cannot call addChild on a primitive type SubscriptionTopic.resourceTrigger.canFilterBy.documentation"); } else return super.addChild(name); } - public SubscriptionTopicCanFilterByComponent copy() { - SubscriptionTopicCanFilterByComponent dst = new SubscriptionTopicCanFilterByComponent(); + public SubscriptionTopicResourceTriggerCanFilterByComponent copy() { + SubscriptionTopicResourceTriggerCanFilterByComponent dst = new SubscriptionTopicResourceTriggerCanFilterByComponent(); copyValues(dst); return dst; } - public void copyValues(SubscriptionTopicCanFilterByComponent dst) { + public void copyValues(SubscriptionTopicResourceTriggerCanFilterByComponent dst) { super.copyValues(dst); dst.searchParamName = searchParamName == null ? null : searchParamName.copy(); if (searchModifier != null) { @@ -1286,9 +1585,9 @@ public class SubscriptionTopic extends DomainResource { public boolean equalsDeep(Base other_) { if (!super.equalsDeep(other_)) return false; - if (!(other_ instanceof SubscriptionTopicCanFilterByComponent)) + if (!(other_ instanceof SubscriptionTopicResourceTriggerCanFilterByComponent)) return false; - SubscriptionTopicCanFilterByComponent o = (SubscriptionTopicCanFilterByComponent) other_; + SubscriptionTopicResourceTriggerCanFilterByComponent o = (SubscriptionTopicResourceTriggerCanFilterByComponent) other_; return compareDeep(searchParamName, o.searchParamName, true) && compareDeep(searchModifier, o.searchModifier, true) && compareDeep(documentation, o.documentation, true); } @@ -1297,9 +1596,9 @@ public class SubscriptionTopic extends DomainResource { public boolean equalsShallow(Base other_) { if (!super.equalsShallow(other_)) return false; - if (!(other_ instanceof SubscriptionTopicCanFilterByComponent)) + if (!(other_ instanceof SubscriptionTopicResourceTriggerCanFilterByComponent)) return false; - SubscriptionTopicCanFilterByComponent o = (SubscriptionTopicCanFilterByComponent) other_; + SubscriptionTopicResourceTriggerCanFilterByComponent o = (SubscriptionTopicResourceTriggerCanFilterByComponent) other_; return compareValues(searchParamName, o.searchParamName, true) && compareValues(searchModifier, o.searchModifier, true) && compareValues(documentation, o.documentation, true); } @@ -1310,7 +1609,7 @@ public class SubscriptionTopic extends DomainResource { } public String fhirType() { - return "SubscriptionTopic.canFilterBy"; + return "SubscriptionTopic.resourceTrigger.canFilterBy"; } @@ -1434,7 +1733,7 @@ public class SubscriptionTopic extends DomainResource { * The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date. */ @Child(name = "lastReviewDate", type = {DateType.class}, order=16, min=0, max=1, modifier=false, summary=false) - @Description(shortDefinition="Last review date for the SubscriptionTopic", formalDefinition="The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date." ) + @Description(shortDefinition="Date the Subscription Topic was last reviewed by the publisher", formalDefinition="The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date." ) protected DateType lastReviewDate; /** @@ -1447,18 +1746,11 @@ public class SubscriptionTopic extends DomainResource { /** * The criteria for including updates to a nominated resource in the subscription topic. Thie criteria may be just a human readable description and/or a full FHIR search string or FHIRPath expression. */ - @Child(name = "resourceTrigger", type = {}, order=18, min=0, max=1, modifier=false, summary=true) + @Child(name = "resourceTrigger", type = {}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Criteria for including a resource update in the subscription topic", formalDefinition="The criteria for including updates to a nominated resource in the subscription topic. Thie criteria may be just a human readable description and/or a full FHIR search string or FHIRPath expression." ) - protected SubscriptionTopicResourceTriggerComponent resourceTrigger; + protected List resourceTrigger; - /** - * List of properties by which Subscriptions on the subscription topic can be filtered. - */ - @Child(name = "canFilterBy", type = {}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Properties by which a Subscription can further filter a SubscriptionTopic", formalDefinition="List of properties by which Subscriptions on the subscription topic can be filtered." ) - protected List canFilterBy; - - private static final long serialVersionUID = 1023095226L; + private static final long serialVersionUID = 1629931785L; /** * Constructor @@ -2327,78 +2619,54 @@ public class SubscriptionTopic extends DomainResource { /** * @return {@link #resourceTrigger} (The criteria for including updates to a nominated resource in the subscription topic. Thie criteria may be just a human readable description and/or a full FHIR search string or FHIRPath expression.) */ - public SubscriptionTopicResourceTriggerComponent getResourceTrigger() { + public List getResourceTrigger() { if (this.resourceTrigger == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create SubscriptionTopic.resourceTrigger"); - else if (Configuration.doAutoCreate()) - this.resourceTrigger = new SubscriptionTopicResourceTriggerComponent(); // cc + this.resourceTrigger = new ArrayList(); return this.resourceTrigger; } - public boolean hasResourceTrigger() { - return this.resourceTrigger != null && !this.resourceTrigger.isEmpty(); - } - - /** - * @param value {@link #resourceTrigger} (The criteria for including updates to a nominated resource in the subscription topic. Thie criteria may be just a human readable description and/or a full FHIR search string or FHIRPath expression.) - */ - public SubscriptionTopic setResourceTrigger(SubscriptionTopicResourceTriggerComponent value) { - this.resourceTrigger = value; - return this; - } - - /** - * @return {@link #canFilterBy} (List of properties by which Subscriptions on the subscription topic can be filtered.) - */ - public List getCanFilterBy() { - if (this.canFilterBy == null) - this.canFilterBy = new ArrayList(); - return this.canFilterBy; - } - /** * @return Returns a reference to this for easy method chaining */ - public SubscriptionTopic setCanFilterBy(List theCanFilterBy) { - this.canFilterBy = theCanFilterBy; + public SubscriptionTopic setResourceTrigger(List theResourceTrigger) { + this.resourceTrigger = theResourceTrigger; return this; } - public boolean hasCanFilterBy() { - if (this.canFilterBy == null) + public boolean hasResourceTrigger() { + if (this.resourceTrigger == null) return false; - for (SubscriptionTopicCanFilterByComponent item : this.canFilterBy) + for (SubscriptionTopicResourceTriggerComponent item : this.resourceTrigger) if (!item.isEmpty()) return true; return false; } - public SubscriptionTopicCanFilterByComponent addCanFilterBy() { //3 - SubscriptionTopicCanFilterByComponent t = new SubscriptionTopicCanFilterByComponent(); - if (this.canFilterBy == null) - this.canFilterBy = new ArrayList(); - this.canFilterBy.add(t); + public SubscriptionTopicResourceTriggerComponent addResourceTrigger() { //3 + SubscriptionTopicResourceTriggerComponent t = new SubscriptionTopicResourceTriggerComponent(); + if (this.resourceTrigger == null) + this.resourceTrigger = new ArrayList(); + this.resourceTrigger.add(t); return t; } - public SubscriptionTopic addCanFilterBy(SubscriptionTopicCanFilterByComponent t) { //3 + public SubscriptionTopic addResourceTrigger(SubscriptionTopicResourceTriggerComponent t) { //3 if (t == null) return this; - if (this.canFilterBy == null) - this.canFilterBy = new ArrayList(); - this.canFilterBy.add(t); + if (this.resourceTrigger == null) + this.resourceTrigger = new ArrayList(); + this.resourceTrigger.add(t); return this; } /** - * @return The first repetition of repeating field {@link #canFilterBy}, creating it if it does not already exist {3} + * @return The first repetition of repeating field {@link #resourceTrigger}, creating it if it does not already exist {3} */ - public SubscriptionTopicCanFilterByComponent getCanFilterByFirstRep() { - if (getCanFilterBy().isEmpty()) { - addCanFilterBy(); + public SubscriptionTopicResourceTriggerComponent getResourceTriggerFirstRep() { + if (getResourceTrigger().isEmpty()) { + addResourceTrigger(); } - return getCanFilterBy().get(0); + return getResourceTrigger().get(0); } protected void listChildren(List children) { @@ -2421,8 +2689,7 @@ public class SubscriptionTopic extends DomainResource { children.add(new Property("approvalDate", "date", "The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate)); children.add(new Property("lastReviewDate", "date", "The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date.", 0, 1, lastReviewDate)); children.add(new Property("effectivePeriod", "Period", "The period during which the SubscriptionTopic content was or is planned to be effective.", 0, 1, effectivePeriod)); - children.add(new Property("resourceTrigger", "", "The criteria for including updates to a nominated resource in the subscription topic. Thie criteria may be just a human readable description and/or a full FHIR search string or FHIRPath expression.", 0, 1, resourceTrigger)); - children.add(new Property("canFilterBy", "", "List of properties by which Subscriptions on the subscription topic can be filtered.", 0, java.lang.Integer.MAX_VALUE, canFilterBy)); + children.add(new Property("resourceTrigger", "", "The criteria for including updates to a nominated resource in the subscription topic. Thie criteria may be just a human readable description and/or a full FHIR search string or FHIRPath expression.", 0, java.lang.Integer.MAX_VALUE, resourceTrigger)); } @Override @@ -2446,8 +2713,7 @@ public class SubscriptionTopic extends DomainResource { case 223539345: /*approvalDate*/ return new Property("approvalDate", "date", "The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage.", 0, 1, approvalDate); case -1687512484: /*lastReviewDate*/ return new Property("lastReviewDate", "date", "The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date.", 0, 1, lastReviewDate); case -403934648: /*effectivePeriod*/ return new Property("effectivePeriod", "Period", "The period during which the SubscriptionTopic content was or is planned to be effective.", 0, 1, effectivePeriod); - case -424927798: /*resourceTrigger*/ return new Property("resourceTrigger", "", "The criteria for including updates to a nominated resource in the subscription topic. Thie criteria may be just a human readable description and/or a full FHIR search string or FHIRPath expression.", 0, 1, resourceTrigger); - case -1299519009: /*canFilterBy*/ return new Property("canFilterBy", "", "List of properties by which Subscriptions on the subscription topic can be filtered.", 0, java.lang.Integer.MAX_VALUE, canFilterBy); + case -424927798: /*resourceTrigger*/ return new Property("resourceTrigger", "", "The criteria for including updates to a nominated resource in the subscription topic. Thie criteria may be just a human readable description and/or a full FHIR search string or FHIRPath expression.", 0, java.lang.Integer.MAX_VALUE, resourceTrigger); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -2474,8 +2740,7 @@ public class SubscriptionTopic extends DomainResource { case 223539345: /*approvalDate*/ return this.approvalDate == null ? new Base[0] : new Base[] {this.approvalDate}; // DateType case -1687512484: /*lastReviewDate*/ return this.lastReviewDate == null ? new Base[0] : new Base[] {this.lastReviewDate}; // DateType case -403934648: /*effectivePeriod*/ return this.effectivePeriod == null ? new Base[0] : new Base[] {this.effectivePeriod}; // Period - case -424927798: /*resourceTrigger*/ return this.resourceTrigger == null ? new Base[0] : new Base[] {this.resourceTrigger}; // SubscriptionTopicResourceTriggerComponent - case -1299519009: /*canFilterBy*/ return this.canFilterBy == null ? new Base[0] : this.canFilterBy.toArray(new Base[this.canFilterBy.size()]); // SubscriptionTopicCanFilterByComponent + case -424927798: /*resourceTrigger*/ return this.resourceTrigger == null ? new Base[0] : this.resourceTrigger.toArray(new Base[this.resourceTrigger.size()]); // SubscriptionTopicResourceTriggerComponent default: return super.getProperty(hash, name, checkValid); } @@ -2540,10 +2805,7 @@ public class SubscriptionTopic extends DomainResource { this.effectivePeriod = TypeConvertor.castToPeriod(value); // Period return value; case -424927798: // resourceTrigger - this.resourceTrigger = (SubscriptionTopicResourceTriggerComponent) value; // SubscriptionTopicResourceTriggerComponent - return value; - case -1299519009: // canFilterBy - this.getCanFilterBy().add((SubscriptionTopicCanFilterByComponent) value); // SubscriptionTopicCanFilterByComponent + this.getResourceTrigger().add((SubscriptionTopicResourceTriggerComponent) value); // SubscriptionTopicResourceTriggerComponent return value; default: return super.setProperty(hash, name, value); } @@ -2590,9 +2852,7 @@ public class SubscriptionTopic extends DomainResource { } else if (name.equals("effectivePeriod")) { this.effectivePeriod = TypeConvertor.castToPeriod(value); // Period } else if (name.equals("resourceTrigger")) { - this.resourceTrigger = (SubscriptionTopicResourceTriggerComponent) value; // SubscriptionTopicResourceTriggerComponent - } else if (name.equals("canFilterBy")) { - this.getCanFilterBy().add((SubscriptionTopicCanFilterByComponent) value); + this.getResourceTrigger().add((SubscriptionTopicResourceTriggerComponent) value); } else return super.setProperty(name, value); return value; @@ -2619,8 +2879,7 @@ public class SubscriptionTopic extends DomainResource { case 223539345: return getApprovalDateElement(); case -1687512484: return getLastReviewDateElement(); case -403934648: return getEffectivePeriod(); - case -424927798: return getResourceTrigger(); - case -1299519009: return addCanFilterBy(); + case -424927798: return addResourceTrigger(); default: return super.makeProperty(hash, name); } @@ -2648,7 +2907,6 @@ public class SubscriptionTopic extends DomainResource { case -1687512484: /*lastReviewDate*/ return new String[] {"date"}; case -403934648: /*effectivePeriod*/ return new String[] {"Period"}; case -424927798: /*resourceTrigger*/ return new String[] {}; - case -1299519009: /*canFilterBy*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -2713,11 +2971,7 @@ public class SubscriptionTopic extends DomainResource { return this.effectivePeriod; } else if (name.equals("resourceTrigger")) { - this.resourceTrigger = new SubscriptionTopicResourceTriggerComponent(); - return this.resourceTrigger; - } - else if (name.equals("canFilterBy")) { - return addCanFilterBy(); + return addResourceTrigger(); } else return super.addChild(name); @@ -2774,11 +3028,10 @@ public class SubscriptionTopic extends DomainResource { dst.approvalDate = approvalDate == null ? null : approvalDate.copy(); dst.lastReviewDate = lastReviewDate == null ? null : lastReviewDate.copy(); dst.effectivePeriod = effectivePeriod == null ? null : effectivePeriod.copy(); - dst.resourceTrigger = resourceTrigger == null ? null : resourceTrigger.copy(); - if (canFilterBy != null) { - dst.canFilterBy = new ArrayList(); - for (SubscriptionTopicCanFilterByComponent i : canFilterBy) - dst.canFilterBy.add(i.copy()); + if (resourceTrigger != null) { + dst.resourceTrigger = new ArrayList(); + for (SubscriptionTopicResourceTriggerComponent i : resourceTrigger) + dst.resourceTrigger.add(i.copy()); }; } @@ -2800,7 +3053,7 @@ public class SubscriptionTopic extends DomainResource { && compareDeep(jurisdiction, o.jurisdiction, true) && compareDeep(purpose, o.purpose, true) && compareDeep(copyright, o.copyright, true) && compareDeep(approvalDate, o.approvalDate, true) && compareDeep(lastReviewDate, o.lastReviewDate, true) && compareDeep(effectivePeriod, o.effectivePeriod, true) && compareDeep(resourceTrigger, o.resourceTrigger, true) - && compareDeep(canFilterBy, o.canFilterBy, true); + ; } @Override @@ -2821,7 +3074,7 @@ public class SubscriptionTopic extends DomainResource { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, identifier, version , title, derivedFrom, status, experimental, date, publisher, contact, description , useContext, jurisdiction, purpose, copyright, approvalDate, lastReviewDate, effectivePeriod - , resourceTrigger, canFilterBy); + , resourceTrigger); } @Override @@ -2918,22 +3171,22 @@ public class SubscriptionTopic extends DomainResource { /** * Search parameter: resource-type *

- * Description: Candidate types for this subscription topic
- * Type: token
+ * Description: Allowed Data type or Resource (reference to definition) for this definition
+ * Type: uri
* Path: SubscriptionTopic.resourceTrigger.resourceType
*

*/ - @SearchParamDefinition(name="resource-type", path="SubscriptionTopic.resourceTrigger.resourceType", description="Candidate types for this subscription topic", type="token" ) + @SearchParamDefinition(name="resource-type", path="SubscriptionTopic.resourceTrigger.resourceType", description="Allowed Data type or Resource (reference to definition) for this definition", type="uri" ) public static final String SP_RESOURCE_TYPE = "resource-type"; /** * Fluent Client search parameter constant for resource-type *

- * Description: Candidate types for this subscription topic
- * Type: token
+ * Description: Allowed Data type or Resource (reference to definition) for this definition
+ * Type: uri
* Path: SubscriptionTopic.resourceTrigger.resourceType
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam RESOURCE_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RESOURCE_TYPE); + public static final ca.uhn.fhir.rest.gclient.UriClientParam RESOURCE_TYPE = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_RESOURCE_TYPE); /** * Search parameter: status diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Substance.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Substance.java index 6407927ab..54ddcd2be 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Substance.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Substance.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -89,7 +89,6 @@ public class Substance extends DomainResource { case ACTIVE: return "active"; case INACTIVE: return "inactive"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -98,7 +97,6 @@ public class Substance extends DomainResource { case ACTIVE: return "http://hl7.org/fhir/substance-status"; case INACTIVE: return "http://hl7.org/fhir/substance-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/substance-status"; - case NULL: return null; default: return "?"; } } @@ -107,7 +105,6 @@ public class Substance extends DomainResource { case ACTIVE: return "The substance is considered for use or reference."; case INACTIVE: return "The substance is considered for reference, but not for use."; case ENTEREDINERROR: return "The substance was entered in error."; - case NULL: return null; default: return "?"; } } @@ -116,7 +113,6 @@ public class Substance extends DomainResource { case ACTIVE: return "Active"; case INACTIVE: return "Inactive"; case ENTEREDINERROR: return "Entered in Error"; - case NULL: return null; default: return "?"; } } @@ -165,279 +161,6 @@ public class Substance extends DomainResource { } } - @Block() - public static class SubstanceInstanceComponent extends BackboneElement implements IBaseBackboneElement { - /** - * Identifier associated with the package/container (usually a label affixed directly). - */ - @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Identifier of the package/container", formalDefinition="Identifier associated with the package/container (usually a label affixed directly)." ) - protected Identifier identifier; - - /** - * When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry. - */ - @Child(name = "expiry", type = {DateTimeType.class}, order=2, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="When no longer valid to use", formalDefinition="When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry." ) - protected DateTimeType expiry; - - /** - * The amount of the substance. - */ - @Child(name = "quantity", type = {Quantity.class}, order=3, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Amount of substance in the package", formalDefinition="The amount of the substance." ) - protected Quantity quantity; - - private static final long serialVersionUID = -1474380480L; - - /** - * Constructor - */ - public SubstanceInstanceComponent() { - super(); - } - - /** - * @return {@link #identifier} (Identifier associated with the package/container (usually a label affixed directly).) - */ - public Identifier getIdentifier() { - if (this.identifier == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create SubstanceInstanceComponent.identifier"); - else if (Configuration.doAutoCreate()) - this.identifier = new Identifier(); // cc - return this.identifier; - } - - public boolean hasIdentifier() { - return this.identifier != null && !this.identifier.isEmpty(); - } - - /** - * @param value {@link #identifier} (Identifier associated with the package/container (usually a label affixed directly).) - */ - public SubstanceInstanceComponent setIdentifier(Identifier value) { - this.identifier = value; - return this; - } - - /** - * @return {@link #expiry} (When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.). This is the underlying object with id, value and extensions. The accessor "getExpiry" gives direct access to the value - */ - public DateTimeType getExpiryElement() { - if (this.expiry == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create SubstanceInstanceComponent.expiry"); - else if (Configuration.doAutoCreate()) - this.expiry = new DateTimeType(); // bb - return this.expiry; - } - - public boolean hasExpiryElement() { - return this.expiry != null && !this.expiry.isEmpty(); - } - - public boolean hasExpiry() { - return this.expiry != null && !this.expiry.isEmpty(); - } - - /** - * @param value {@link #expiry} (When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.). This is the underlying object with id, value and extensions. The accessor "getExpiry" gives direct access to the value - */ - public SubstanceInstanceComponent setExpiryElement(DateTimeType value) { - this.expiry = value; - return this; - } - - /** - * @return When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry. - */ - public Date getExpiry() { - return this.expiry == null ? null : this.expiry.getValue(); - } - - /** - * @param value When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry. - */ - public SubstanceInstanceComponent setExpiry(Date value) { - if (value == null) - this.expiry = null; - else { - if (this.expiry == null) - this.expiry = new DateTimeType(); - this.expiry.setValue(value); - } - return this; - } - - /** - * @return {@link #quantity} (The amount of the substance.) - */ - public Quantity getQuantity() { - if (this.quantity == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create SubstanceInstanceComponent.quantity"); - else if (Configuration.doAutoCreate()) - this.quantity = new Quantity(); // cc - return this.quantity; - } - - public boolean hasQuantity() { - return this.quantity != null && !this.quantity.isEmpty(); - } - - /** - * @param value {@link #quantity} (The amount of the substance.) - */ - public SubstanceInstanceComponent setQuantity(Quantity value) { - this.quantity = value; - return this; - } - - protected void listChildren(List children) { - super.listChildren(children); - children.add(new Property("identifier", "Identifier", "Identifier associated with the package/container (usually a label affixed directly).", 0, 1, identifier)); - children.add(new Property("expiry", "dateTime", "When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.", 0, 1, expiry)); - children.add(new Property("quantity", "Quantity", "The amount of the substance.", 0, 1, quantity)); - } - - @Override - public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { - switch (_hash) { - case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Identifier associated with the package/container (usually a label affixed directly).", 0, 1, identifier); - case -1289159373: /*expiry*/ return new Property("expiry", "dateTime", "When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.", 0, 1, expiry); - case -1285004149: /*quantity*/ return new Property("quantity", "Quantity", "The amount of the substance.", 0, 1, quantity); - default: return super.getNamedProperty(_hash, _name, _checkValid); - } - - } - - @Override - public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { - switch (hash) { - case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier - case -1289159373: /*expiry*/ return this.expiry == null ? new Base[0] : new Base[] {this.expiry}; // DateTimeType - case -1285004149: /*quantity*/ return this.quantity == null ? new Base[0] : new Base[] {this.quantity}; // Quantity - default: return super.getProperty(hash, name, checkValid); - } - - } - - @Override - public Base setProperty(int hash, String name, Base value) throws FHIRException { - switch (hash) { - case -1618432855: // identifier - this.identifier = TypeConvertor.castToIdentifier(value); // Identifier - return value; - case -1289159373: // expiry - this.expiry = TypeConvertor.castToDateTime(value); // DateTimeType - return value; - case -1285004149: // quantity - this.quantity = TypeConvertor.castToQuantity(value); // Quantity - return value; - default: return super.setProperty(hash, name, value); - } - - } - - @Override - public Base setProperty(String name, Base value) throws FHIRException { - if (name.equals("identifier")) { - this.identifier = TypeConvertor.castToIdentifier(value); // Identifier - } else if (name.equals("expiry")) { - this.expiry = TypeConvertor.castToDateTime(value); // DateTimeType - } else if (name.equals("quantity")) { - this.quantity = TypeConvertor.castToQuantity(value); // Quantity - } else - return super.setProperty(name, value); - return value; - } - - @Override - public Base makeProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -1618432855: return getIdentifier(); - case -1289159373: return getExpiryElement(); - case -1285004149: return getQuantity(); - default: return super.makeProperty(hash, name); - } - - } - - @Override - public String[] getTypesForProperty(int hash, String name) throws FHIRException { - switch (hash) { - case -1618432855: /*identifier*/ return new String[] {"Identifier"}; - case -1289159373: /*expiry*/ return new String[] {"dateTime"}; - case -1285004149: /*quantity*/ return new String[] {"Quantity"}; - default: return super.getTypesForProperty(hash, name); - } - - } - - @Override - public Base addChild(String name) throws FHIRException { - if (name.equals("identifier")) { - this.identifier = new Identifier(); - return this.identifier; - } - else if (name.equals("expiry")) { - throw new FHIRException("Cannot call addChild on a primitive type Substance.instance.expiry"); - } - else if (name.equals("quantity")) { - this.quantity = new Quantity(); - return this.quantity; - } - else - return super.addChild(name); - } - - public SubstanceInstanceComponent copy() { - SubstanceInstanceComponent dst = new SubstanceInstanceComponent(); - copyValues(dst); - return dst; - } - - public void copyValues(SubstanceInstanceComponent dst) { - super.copyValues(dst); - dst.identifier = identifier == null ? null : identifier.copy(); - dst.expiry = expiry == null ? null : expiry.copy(); - dst.quantity = quantity == null ? null : quantity.copy(); - } - - @Override - public boolean equalsDeep(Base other_) { - if (!super.equalsDeep(other_)) - return false; - if (!(other_ instanceof SubstanceInstanceComponent)) - return false; - SubstanceInstanceComponent o = (SubstanceInstanceComponent) other_; - return compareDeep(identifier, o.identifier, true) && compareDeep(expiry, o.expiry, true) && compareDeep(quantity, o.quantity, true) - ; - } - - @Override - public boolean equalsShallow(Base other_) { - if (!super.equalsShallow(other_)) - return false; - if (!(other_ instanceof SubstanceInstanceComponent)) - return false; - SubstanceInstanceComponent o = (SubstanceInstanceComponent) other_; - return compareValues(expiry, o.expiry, true); - } - - public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, expiry, quantity - ); - } - - public String fhirType() { - return "Substance.instance"; - - } - - } - @Block() public static class SubstanceIngredientComponent extends BackboneElement implements IBaseBackboneElement { /** @@ -684,16 +407,23 @@ public class Substance extends DomainResource { } /** - * Unique identifier for the substance. + * Unique identifier for the substance. For an instance, an identifier associated with the package/container (usually a label affixed directly). */ @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Unique identifier", formalDefinition="Unique identifier for the substance." ) + @Description(shortDefinition="Unique identifier", formalDefinition="Unique identifier for the substance. For an instance, an identifier associated with the package/container (usually a label affixed directly)." ) protected List identifier; + /** + * A boolean to indicate if this an instance of a substance or a kind of one (a definition). + */ + @Child(name = "instance", type = {BooleanType.class}, order=1, min=1, max=1, modifier=true, summary=true) + @Description(shortDefinition="Is this an instance of a substance or a kind of one", formalDefinition="A boolean to indicate if this an instance of a substance or a kind of one (a definition)." ) + protected BooleanType instance; + /** * A code to indicate if the substance is actively used. */ - @Child(name = "status", type = {CodeType.class}, order=1, min=0, max=1, modifier=true, summary=true) + @Child(name = "status", type = {CodeType.class}, order=2, min=0, max=1, modifier=true, summary=true) @Description(shortDefinition="active | inactive | entered-in-error", formalDefinition="A code to indicate if the substance is actively used." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/substance-status") protected Enumeration status; @@ -701,7 +431,7 @@ public class Substance extends DomainResource { /** * A code that classifies the general type of substance. This is used for searching, sorting and display purposes. */ - @Child(name = "category", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "category", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="What class/type of substance this is", formalDefinition="A code that classifies the general type of substance. This is used for searching, sorting and display purposes." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/substance-category") protected List category; @@ -709,33 +439,40 @@ public class Substance extends DomainResource { /** * A code (or set of codes) that identify this substance. */ - @Child(name = "code", type = {CodeableConcept.class}, order=3, min=1, max=1, modifier=false, summary=true) + @Child(name = "code", type = {CodeableReference.class}, order=4, min=1, max=1, modifier=false, summary=true) @Description(shortDefinition="What substance this is", formalDefinition="A code (or set of codes) that identify this substance." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/substance-code") - protected CodeableConcept code; + protected CodeableReference code; /** * A description of the substance - its appearance, handling requirements, and other usage notes. */ - @Child(name = "description", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Child(name = "description", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Textual description of the substance, comments", formalDefinition="A description of the substance - its appearance, handling requirements, and other usage notes." ) protected StringType description; /** - * Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance. + * When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry. */ - @Child(name = "instance", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="If this describes a specific package/container of the substance", formalDefinition="Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance." ) - protected List instance; + @Child(name = "expiry", type = {DateTimeType.class}, order=6, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="When no longer valid to use", formalDefinition="When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry." ) + protected DateTimeType expiry; + + /** + * The amount of the substance. + */ + @Child(name = "quantity", type = {Quantity.class}, order=7, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="Amount of substance in the package", formalDefinition="The amount of the substance." ) + protected Quantity quantity; /** * A substance can be composed of other substances. */ - @Child(name = "ingredient", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "ingredient", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Composition information about the substance", formalDefinition="A substance can be composed of other substances." ) protected List ingredient; - private static final long serialVersionUID = -1467626602L; + private static final long serialVersionUID = -15918775L; /** * Constructor @@ -747,13 +484,14 @@ public class Substance extends DomainResource { /** * Constructor */ - public Substance(CodeableConcept code) { + public Substance(boolean instance, CodeableReference code) { super(); + this.setInstance(instance); this.setCode(code); } /** - * @return {@link #identifier} (Unique identifier for the substance.) + * @return {@link #identifier} (Unique identifier for the substance. For an instance, an identifier associated with the package/container (usually a label affixed directly).) */ public List getIdentifier() { if (this.identifier == null) @@ -805,6 +543,51 @@ public class Substance extends DomainResource { return getIdentifier().get(0); } + /** + * @return {@link #instance} (A boolean to indicate if this an instance of a substance or a kind of one (a definition).). This is the underlying object with id, value and extensions. The accessor "getInstance" gives direct access to the value + */ + public BooleanType getInstanceElement() { + if (this.instance == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Substance.instance"); + else if (Configuration.doAutoCreate()) + this.instance = new BooleanType(); // bb + return this.instance; + } + + public boolean hasInstanceElement() { + return this.instance != null && !this.instance.isEmpty(); + } + + public boolean hasInstance() { + return this.instance != null && !this.instance.isEmpty(); + } + + /** + * @param value {@link #instance} (A boolean to indicate if this an instance of a substance or a kind of one (a definition).). This is the underlying object with id, value and extensions. The accessor "getInstance" gives direct access to the value + */ + public Substance setInstanceElement(BooleanType value) { + this.instance = value; + return this; + } + + /** + * @return A boolean to indicate if this an instance of a substance or a kind of one (a definition). + */ + public boolean getInstance() { + return this.instance == null || this.instance.isEmpty() ? false : this.instance.getValue(); + } + + /** + * @param value A boolean to indicate if this an instance of a substance or a kind of one (a definition). + */ + public Substance setInstance(boolean value) { + if (this.instance == null) + this.instance = new BooleanType(); + this.instance.setValue(value); + return this; + } + /** * @return {@link #status} (A code to indicate if the substance is actively used.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ @@ -910,12 +693,12 @@ public class Substance extends DomainResource { /** * @return {@link #code} (A code (or set of codes) that identify this substance.) */ - public CodeableConcept getCode() { + public CodeableReference getCode() { if (this.code == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create Substance.code"); else if (Configuration.doAutoCreate()) - this.code = new CodeableConcept(); // cc + this.code = new CodeableReference(); // cc return this.code; } @@ -926,7 +709,7 @@ public class Substance extends DomainResource { /** * @param value {@link #code} (A code (or set of codes) that identify this substance.) */ - public Substance setCode(CodeableConcept value) { + public Substance setCode(CodeableReference value) { this.code = value; return this; } @@ -981,56 +764,76 @@ public class Substance extends DomainResource { } /** - * @return {@link #instance} (Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.) + * @return {@link #expiry} (When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.). This is the underlying object with id, value and extensions. The accessor "getExpiry" gives direct access to the value */ - public List getInstance() { - if (this.instance == null) - this.instance = new ArrayList(); - return this.instance; + public DateTimeType getExpiryElement() { + if (this.expiry == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Substance.expiry"); + else if (Configuration.doAutoCreate()) + this.expiry = new DateTimeType(); // bb + return this.expiry; + } + + public boolean hasExpiryElement() { + return this.expiry != null && !this.expiry.isEmpty(); + } + + public boolean hasExpiry() { + return this.expiry != null && !this.expiry.isEmpty(); } /** - * @return Returns a reference to this for easy method chaining + * @param value {@link #expiry} (When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.). This is the underlying object with id, value and extensions. The accessor "getExpiry" gives direct access to the value */ - public Substance setInstance(List theInstance) { - this.instance = theInstance; - return this; - } - - public boolean hasInstance() { - if (this.instance == null) - return false; - for (SubstanceInstanceComponent item : this.instance) - if (!item.isEmpty()) - return true; - return false; - } - - public SubstanceInstanceComponent addInstance() { //3 - SubstanceInstanceComponent t = new SubstanceInstanceComponent(); - if (this.instance == null) - this.instance = new ArrayList(); - this.instance.add(t); - return t; - } - - public Substance addInstance(SubstanceInstanceComponent t) { //3 - if (t == null) - return this; - if (this.instance == null) - this.instance = new ArrayList(); - this.instance.add(t); + public Substance setExpiryElement(DateTimeType value) { + this.expiry = value; return this; } /** - * @return The first repetition of repeating field {@link #instance}, creating it if it does not already exist {3} + * @return When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry. */ - public SubstanceInstanceComponent getInstanceFirstRep() { - if (getInstance().isEmpty()) { - addInstance(); + public Date getExpiry() { + return this.expiry == null ? null : this.expiry.getValue(); + } + + /** + * @param value When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry. + */ + public Substance setExpiry(Date value) { + if (value == null) + this.expiry = null; + else { + if (this.expiry == null) + this.expiry = new DateTimeType(); + this.expiry.setValue(value); } - return getInstance().get(0); + return this; + } + + /** + * @return {@link #quantity} (The amount of the substance.) + */ + public Quantity getQuantity() { + if (this.quantity == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create Substance.quantity"); + else if (Configuration.doAutoCreate()) + this.quantity = new Quantity(); // cc + return this.quantity; + } + + public boolean hasQuantity() { + return this.quantity != null && !this.quantity.isEmpty(); + } + + /** + * @param value {@link #quantity} (The amount of the substance.) + */ + public Substance setQuantity(Quantity value) { + this.quantity = value; + return this; } /** @@ -1088,24 +891,28 @@ public class Substance extends DomainResource { protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("identifier", "Identifier", "Unique identifier for the substance.", 0, java.lang.Integer.MAX_VALUE, identifier)); + children.add(new Property("identifier", "Identifier", "Unique identifier for the substance. For an instance, an identifier associated with the package/container (usually a label affixed directly).", 0, java.lang.Integer.MAX_VALUE, identifier)); + children.add(new Property("instance", "boolean", "A boolean to indicate if this an instance of a substance or a kind of one (a definition).", 0, 1, instance)); children.add(new Property("status", "code", "A code to indicate if the substance is actively used.", 0, 1, status)); children.add(new Property("category", "CodeableConcept", "A code that classifies the general type of substance. This is used for searching, sorting and display purposes.", 0, java.lang.Integer.MAX_VALUE, category)); - children.add(new Property("code", "CodeableConcept", "A code (or set of codes) that identify this substance.", 0, 1, code)); + children.add(new Property("code", "CodeableReference(SubstanceDefinition)", "A code (or set of codes) that identify this substance.", 0, 1, code)); children.add(new Property("description", "string", "A description of the substance - its appearance, handling requirements, and other usage notes.", 0, 1, description)); - children.add(new Property("instance", "", "Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.", 0, java.lang.Integer.MAX_VALUE, instance)); + children.add(new Property("expiry", "dateTime", "When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.", 0, 1, expiry)); + children.add(new Property("quantity", "Quantity", "The amount of the substance.", 0, 1, quantity)); children.add(new Property("ingredient", "", "A substance can be composed of other substances.", 0, java.lang.Integer.MAX_VALUE, ingredient)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Unique identifier for the substance.", 0, java.lang.Integer.MAX_VALUE, identifier); + case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Unique identifier for the substance. For an instance, an identifier associated with the package/container (usually a label affixed directly).", 0, java.lang.Integer.MAX_VALUE, identifier); + case 555127957: /*instance*/ return new Property("instance", "boolean", "A boolean to indicate if this an instance of a substance or a kind of one (a definition).", 0, 1, instance); case -892481550: /*status*/ return new Property("status", "code", "A code to indicate if the substance is actively used.", 0, 1, status); case 50511102: /*category*/ return new Property("category", "CodeableConcept", "A code that classifies the general type of substance. This is used for searching, sorting and display purposes.", 0, java.lang.Integer.MAX_VALUE, category); - case 3059181: /*code*/ return new Property("code", "CodeableConcept", "A code (or set of codes) that identify this substance.", 0, 1, code); + case 3059181: /*code*/ return new Property("code", "CodeableReference(SubstanceDefinition)", "A code (or set of codes) that identify this substance.", 0, 1, code); case -1724546052: /*description*/ return new Property("description", "string", "A description of the substance - its appearance, handling requirements, and other usage notes.", 0, 1, description); - case 555127957: /*instance*/ return new Property("instance", "", "Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.", 0, java.lang.Integer.MAX_VALUE, instance); + case -1289159373: /*expiry*/ return new Property("expiry", "dateTime", "When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.", 0, 1, expiry); + case -1285004149: /*quantity*/ return new Property("quantity", "Quantity", "The amount of the substance.", 0, 1, quantity); case -206409263: /*ingredient*/ return new Property("ingredient", "", "A substance can be composed of other substances.", 0, java.lang.Integer.MAX_VALUE, ingredient); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -1116,11 +923,13 @@ public class Substance extends DomainResource { public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { switch (hash) { case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier + case 555127957: /*instance*/ return this.instance == null ? new Base[0] : new Base[] {this.instance}; // BooleanType case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration case 50511102: /*category*/ return this.category == null ? new Base[0] : this.category.toArray(new Base[this.category.size()]); // CodeableConcept - case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept + case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableReference case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType - case 555127957: /*instance*/ return this.instance == null ? new Base[0] : this.instance.toArray(new Base[this.instance.size()]); // SubstanceInstanceComponent + case -1289159373: /*expiry*/ return this.expiry == null ? new Base[0] : new Base[] {this.expiry}; // DateTimeType + case -1285004149: /*quantity*/ return this.quantity == null ? new Base[0] : new Base[] {this.quantity}; // Quantity case -206409263: /*ingredient*/ return this.ingredient == null ? new Base[0] : this.ingredient.toArray(new Base[this.ingredient.size()]); // SubstanceIngredientComponent default: return super.getProperty(hash, name, checkValid); } @@ -1133,6 +942,9 @@ public class Substance extends DomainResource { case -1618432855: // identifier this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier return value; + case 555127957: // instance + this.instance = TypeConvertor.castToBoolean(value); // BooleanType + return value; case -892481550: // status value = new FHIRSubstanceStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); this.status = (Enumeration) value; // Enumeration @@ -1141,13 +953,16 @@ public class Substance extends DomainResource { this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept return value; case 3059181: // code - this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.code = TypeConvertor.castToCodeableReference(value); // CodeableReference return value; case -1724546052: // description this.description = TypeConvertor.castToString(value); // StringType return value; - case 555127957: // instance - this.getInstance().add((SubstanceInstanceComponent) value); // SubstanceInstanceComponent + case -1289159373: // expiry + this.expiry = TypeConvertor.castToDateTime(value); // DateTimeType + return value; + case -1285004149: // quantity + this.quantity = TypeConvertor.castToQuantity(value); // Quantity return value; case -206409263: // ingredient this.getIngredient().add((SubstanceIngredientComponent) value); // SubstanceIngredientComponent @@ -1161,17 +976,21 @@ public class Substance extends DomainResource { public Base setProperty(String name, Base value) throws FHIRException { if (name.equals("identifier")) { this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); + } else if (name.equals("instance")) { + this.instance = TypeConvertor.castToBoolean(value); // BooleanType } else if (name.equals("status")) { value = new FHIRSubstanceStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); this.status = (Enumeration) value; // Enumeration } else if (name.equals("category")) { this.getCategory().add(TypeConvertor.castToCodeableConcept(value)); } else if (name.equals("code")) { - this.code = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + this.code = TypeConvertor.castToCodeableReference(value); // CodeableReference } else if (name.equals("description")) { this.description = TypeConvertor.castToString(value); // StringType - } else if (name.equals("instance")) { - this.getInstance().add((SubstanceInstanceComponent) value); + } else if (name.equals("expiry")) { + this.expiry = TypeConvertor.castToDateTime(value); // DateTimeType + } else if (name.equals("quantity")) { + this.quantity = TypeConvertor.castToQuantity(value); // Quantity } else if (name.equals("ingredient")) { this.getIngredient().add((SubstanceIngredientComponent) value); } else @@ -1183,11 +1002,13 @@ public class Substance extends DomainResource { public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case -1618432855: return addIdentifier(); + case 555127957: return getInstanceElement(); case -892481550: return getStatusElement(); case 50511102: return addCategory(); case 3059181: return getCode(); case -1724546052: return getDescriptionElement(); - case 555127957: return addInstance(); + case -1289159373: return getExpiryElement(); + case -1285004149: return getQuantity(); case -206409263: return addIngredient(); default: return super.makeProperty(hash, name); } @@ -1198,11 +1019,13 @@ public class Substance extends DomainResource { public String[] getTypesForProperty(int hash, String name) throws FHIRException { switch (hash) { case -1618432855: /*identifier*/ return new String[] {"Identifier"}; + case 555127957: /*instance*/ return new String[] {"boolean"}; case -892481550: /*status*/ return new String[] {"code"}; case 50511102: /*category*/ return new String[] {"CodeableConcept"}; - case 3059181: /*code*/ return new String[] {"CodeableConcept"}; + case 3059181: /*code*/ return new String[] {"CodeableReference"}; case -1724546052: /*description*/ return new String[] {"string"}; - case 555127957: /*instance*/ return new String[] {}; + case -1289159373: /*expiry*/ return new String[] {"dateTime"}; + case -1285004149: /*quantity*/ return new String[] {"Quantity"}; case -206409263: /*ingredient*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -1214,6 +1037,9 @@ public class Substance extends DomainResource { if (name.equals("identifier")) { return addIdentifier(); } + else if (name.equals("instance")) { + throw new FHIRException("Cannot call addChild on a primitive type Substance.instance"); + } else if (name.equals("status")) { throw new FHIRException("Cannot call addChild on a primitive type Substance.status"); } @@ -1221,14 +1047,18 @@ public class Substance extends DomainResource { return addCategory(); } else if (name.equals("code")) { - this.code = new CodeableConcept(); + this.code = new CodeableReference(); return this.code; } else if (name.equals("description")) { throw new FHIRException("Cannot call addChild on a primitive type Substance.description"); } - else if (name.equals("instance")) { - return addInstance(); + else if (name.equals("expiry")) { + throw new FHIRException("Cannot call addChild on a primitive type Substance.expiry"); + } + else if (name.equals("quantity")) { + this.quantity = new Quantity(); + return this.quantity; } else if (name.equals("ingredient")) { return addIngredient(); @@ -1255,6 +1085,7 @@ public class Substance extends DomainResource { for (Identifier i : identifier) dst.identifier.add(i.copy()); }; + dst.instance = instance == null ? null : instance.copy(); dst.status = status == null ? null : status.copy(); if (category != null) { dst.category = new ArrayList(); @@ -1263,11 +1094,8 @@ public class Substance extends DomainResource { }; dst.code = code == null ? null : code.copy(); dst.description = description == null ? null : description.copy(); - if (instance != null) { - dst.instance = new ArrayList(); - for (SubstanceInstanceComponent i : instance) - dst.instance.add(i.copy()); - }; + dst.expiry = expiry == null ? null : expiry.copy(); + dst.quantity = quantity == null ? null : quantity.copy(); if (ingredient != null) { dst.ingredient = new ArrayList(); for (SubstanceIngredientComponent i : ingredient) @@ -1286,9 +1114,10 @@ public class Substance extends DomainResource { if (!(other_ instanceof Substance)) return false; Substance o = (Substance) other_; - return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(category, o.category, true) - && compareDeep(code, o.code, true) && compareDeep(description, o.description, true) && compareDeep(instance, o.instance, true) - && compareDeep(ingredient, o.ingredient, true); + return compareDeep(identifier, o.identifier, true) && compareDeep(instance, o.instance, true) && compareDeep(status, o.status, true) + && compareDeep(category, o.category, true) && compareDeep(code, o.code, true) && compareDeep(description, o.description, true) + && compareDeep(expiry, o.expiry, true) && compareDeep(quantity, o.quantity, true) && compareDeep(ingredient, o.ingredient, true) + ; } @Override @@ -1298,12 +1127,13 @@ public class Substance extends DomainResource { if (!(other_ instanceof Substance)) return false; Substance o = (Substance) other_; - return compareValues(status, o.status, true) && compareValues(description, o.description, true); + return compareValues(instance, o.instance, true) && compareValues(status, o.status, true) && compareValues(description, o.description, true) + && compareValues(expiry, o.expiry, true); } public boolean isEmpty() { - return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, category - , code, description, instance, ingredient); + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, instance, status + , category, code, description, expiry, quantity, ingredient); } @Override @@ -1336,57 +1166,63 @@ public class Substance extends DomainResource { *

* Description: The code of the substance or ingredient
* Type: token
- * Path: Substance.code | (Substance.ingredient.substance as CodeableConcept)
+ * Path: Substance.code.concept | (Substance.ingredient.substance as CodeableConcept)
*

*/ - @SearchParamDefinition(name="code", path="Substance.code | (Substance.ingredient.substance as CodeableConcept)", description="The code of the substance or ingredient", type="token" ) + @SearchParamDefinition(name="code", path="Substance.code.concept | (Substance.ingredient.substance as CodeableConcept)", description="The code of the substance or ingredient", type="token" ) public static final String SP_CODE = "code"; /** * Fluent Client search parameter constant for code *

* Description: The code of the substance or ingredient
* Type: token
- * Path: Substance.code | (Substance.ingredient.substance as CodeableConcept)
+ * Path: Substance.code.concept | (Substance.ingredient.substance as CodeableConcept)
*

*/ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); /** - * Search parameter: container-identifier + * Search parameter: code-reference *

- * Description: Identifier of the package/container
- * Type: token
- * Path: Substance.instance.identifier
+ * Description: A reference to the defining substance
+ * Type: reference
+ * Path: Substance.code.reference
*

*/ - @SearchParamDefinition(name="container-identifier", path="Substance.instance.identifier", description="Identifier of the package/container", type="token" ) - public static final String SP_CONTAINER_IDENTIFIER = "container-identifier"; + @SearchParamDefinition(name="code-reference", path="Substance.code.reference", description="A reference to the defining substance", type="reference" ) + public static final String SP_CODE_REFERENCE = "code-reference"; /** - * Fluent Client search parameter constant for container-identifier + * Fluent Client search parameter constant for code-reference *

- * Description: Identifier of the package/container
- * Type: token
- * Path: Substance.instance.identifier
+ * Description: A reference to the defining substance
+ * Type: reference
+ * Path: Substance.code.reference
*

*/ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTAINER_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTAINER_IDENTIFIER); + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam CODE_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_CODE_REFERENCE); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "Substance:code-reference". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_CODE_REFERENCE = new ca.uhn.fhir.model.api.Include("Substance:code-reference").toLocked(); /** * Search parameter: expiry *

* Description: Expiry date of package or container of substance
* Type: date
- * Path: Substance.instance.expiry
+ * Path: Substance.expiry
*

*/ - @SearchParamDefinition(name="expiry", path="Substance.instance.expiry", description="Expiry date of package or container of substance", type="date" ) + @SearchParamDefinition(name="expiry", path="Substance.expiry", description="Expiry date of package or container of substance", type="date" ) public static final String SP_EXPIRY = "expiry"; /** * Fluent Client search parameter constant for expiry *

* Description: Expiry date of package or container of substance
* Type: date
- * Path: Substance.instance.expiry
+ * Path: Substance.expiry
*

*/ public static final ca.uhn.fhir.rest.gclient.DateClientParam EXPIRY = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_EXPIRY); @@ -1416,17 +1252,17 @@ public class Substance extends DomainResource { *

* Description: Amount of substance in the package
* Type: quantity
- * Path: Substance.instance.quantity
+ * Path: Substance.quantity
*

*/ - @SearchParamDefinition(name="quantity", path="Substance.instance.quantity", description="Amount of substance in the package", type="quantity" ) + @SearchParamDefinition(name="quantity", path="Substance.quantity", description="Amount of substance in the package", type="quantity" ) public static final String SP_QUANTITY = "quantity"; /** * Fluent Client search parameter constant for quantity *

* Description: Amount of substance in the package
* Type: quantity
- * Path: Substance.instance.quantity
+ * Path: Substance.quantity
*

*/ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_QUANTITY); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceDefinition.java index 8cf60f271..e66097462 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -4361,10 +4361,10 @@ public class SubstanceDefinition extends DomainResource { protected DataType substanceDefinition; /** - * For example "salt to parent", "active moiety", "starting material", "polymorph". + * For example "salt to parent", "active moiety", "starting material", "polymorph", "impurity of". */ @Child(name = "type", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\"", formalDefinition="For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\"." ) + @Description(shortDefinition="For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\", \"impurity of\"", formalDefinition="For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\", \"impurity of\"." ) protected CodeableConcept type; /** @@ -4463,7 +4463,7 @@ public class SubstanceDefinition extends DomainResource { } /** - * @return {@link #type} (For example "salt to parent", "active moiety", "starting material", "polymorph".) + * @return {@link #type} (For example "salt to parent", "active moiety", "starting material", "polymorph", "impurity of".) */ public CodeableConcept getType() { if (this.type == null) @@ -4479,7 +4479,7 @@ public class SubstanceDefinition extends DomainResource { } /** - * @param value {@link #type} (For example "salt to parent", "active moiety", "starting material", "polymorph".) + * @param value {@link #type} (For example "salt to parent", "active moiety", "starting material", "polymorph", "impurity of".) */ public SubstanceDefinitionRelationshipComponent setType(CodeableConcept value) { this.type = value; @@ -4716,7 +4716,7 @@ public class SubstanceDefinition extends DomainResource { protected void listChildren(List children) { super.listChildren(children); children.add(new Property("substanceDefinition[x]", "Reference(SubstanceDefinition)|CodeableConcept", "A pointer to another substance, as a resource or just a representational code.", 0, 1, substanceDefinition)); - children.add(new Property("type", "CodeableConcept", "For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\".", 0, 1, type)); + children.add(new Property("type", "CodeableConcept", "For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\", \"impurity of\".", 0, 1, type)); children.add(new Property("isDefining", "boolean", "For example where an enzyme strongly bonds with a particular substance, this is a defining relationship for that enzyme, out of several possible substance relationships.", 0, 1, isDefining)); children.add(new Property("amount[x]", "Quantity|Range|Ratio|string", "A numeric factor for the relationship, for instance to express that the salt of a substance has some percentage of the active substance in relation to some other.", 0, 1, amount)); children.add(new Property("amountRatioHighLimit", "Ratio", "For use when the numeric has an uncertain range.", 0, 1, amountRatioHighLimit)); @@ -4731,7 +4731,7 @@ public class SubstanceDefinition extends DomainResource { case 718195427: /*substanceDefinition*/ return new Property("substanceDefinition[x]", "Reference(SubstanceDefinition)|CodeableConcept", "A pointer to another substance, as a resource or just a representational code.", 0, 1, substanceDefinition); case -308206680: /*substanceDefinitionReference*/ return new Property("substanceDefinition[x]", "Reference(SubstanceDefinition)", "A pointer to another substance, as a resource or just a representational code.", 0, 1, substanceDefinition); case -132490690: /*substanceDefinitionCodeableConcept*/ return new Property("substanceDefinition[x]", "CodeableConcept", "A pointer to another substance, as a resource or just a representational code.", 0, 1, substanceDefinition); - case 3575610: /*type*/ return new Property("type", "CodeableConcept", "For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\".", 0, 1, type); + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "For example \"salt to parent\", \"active moiety\", \"starting material\", \"polymorph\", \"impurity of\".", 0, 1, type); case -141812990: /*isDefining*/ return new Property("isDefining", "boolean", "For example where an enzyme strongly bonds with a particular substance, this is a defining relationship for that enzyme, out of several possible substance relationships.", 0, 1, isDefining); case 646780200: /*amount[x]*/ return new Property("amount[x]", "Quantity|Range|Ratio|string", "A numeric factor for the relationship, for instance to express that the salt of a substance has some percentage of the active substance in relation to some other.", 0, 1, amount); case -1413853096: /*amount*/ return new Property("amount[x]", "Quantity|Range|Ratio|string", "A numeric factor for the relationship, for instance to express that the salt of a substance has some percentage of the active substance in relation to some other.", 0, 1, amount); @@ -4945,6 +4945,379 @@ public class SubstanceDefinition extends DomainResource { } + } + + @Block() + public static class SubstanceDefinitionSourceMaterialComponent extends BackboneElement implements IBaseBackboneElement { + /** + * A classification that provides the origin of the raw material. Example: cat hair would be an Animal source type. + */ + @Child(name = "type", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="A classification that provides the origin of the raw material. Example: cat hair would be an Animal source type", formalDefinition="A classification that provides the origin of the raw material. Example: cat hair would be an Animal source type." ) + protected CodeableConcept type; + + /** + * The genus of an organism, typically referring to the Latin epithet of the genus element of the plant/animal scientific name. + */ + @Child(name = "genus", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="The genus of an organism, typically referring to the Latin epithet of the genus element of the plant/animal scientific name", formalDefinition="The genus of an organism, typically referring to the Latin epithet of the genus element of the plant/animal scientific name." ) + protected CodeableConcept genus; + + /** + * The species of an organism, typically referring to the Latin epithet of the species of the plant/animal. + */ + @Child(name = "species", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="The species of an organism, typically referring to the Latin epithet of the species of the plant/animal", formalDefinition="The species of an organism, typically referring to the Latin epithet of the species of the plant/animal." ) + protected CodeableConcept species; + + /** + * An anatomical origin of the source material within an organism. + */ + @Child(name = "part", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=true) + @Description(shortDefinition="An anatomical origin of the source material within an organism", formalDefinition="An anatomical origin of the source material within an organism." ) + protected CodeableConcept part; + + /** + * The country or countries where the material is harvested. + */ + @Child(name = "countryOfOrigin", type = {CodeableConcept.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="The country or countries where the material is harvested", formalDefinition="The country or countries where the material is harvested." ) + protected List countryOfOrigin; + + private static final long serialVersionUID = 569352795L; + + /** + * Constructor + */ + public SubstanceDefinitionSourceMaterialComponent() { + super(); + } + + /** + * @return {@link #type} (A classification that provides the origin of the raw material. Example: cat hair would be an Animal source type.) + */ + public CodeableConcept getType() { + if (this.type == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create SubstanceDefinitionSourceMaterialComponent.type"); + else if (Configuration.doAutoCreate()) + this.type = new CodeableConcept(); // cc + return this.type; + } + + public boolean hasType() { + return this.type != null && !this.type.isEmpty(); + } + + /** + * @param value {@link #type} (A classification that provides the origin of the raw material. Example: cat hair would be an Animal source type.) + */ + public SubstanceDefinitionSourceMaterialComponent setType(CodeableConcept value) { + this.type = value; + return this; + } + + /** + * @return {@link #genus} (The genus of an organism, typically referring to the Latin epithet of the genus element of the plant/animal scientific name.) + */ + public CodeableConcept getGenus() { + if (this.genus == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create SubstanceDefinitionSourceMaterialComponent.genus"); + else if (Configuration.doAutoCreate()) + this.genus = new CodeableConcept(); // cc + return this.genus; + } + + public boolean hasGenus() { + return this.genus != null && !this.genus.isEmpty(); + } + + /** + * @param value {@link #genus} (The genus of an organism, typically referring to the Latin epithet of the genus element of the plant/animal scientific name.) + */ + public SubstanceDefinitionSourceMaterialComponent setGenus(CodeableConcept value) { + this.genus = value; + return this; + } + + /** + * @return {@link #species} (The species of an organism, typically referring to the Latin epithet of the species of the plant/animal.) + */ + public CodeableConcept getSpecies() { + if (this.species == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create SubstanceDefinitionSourceMaterialComponent.species"); + else if (Configuration.doAutoCreate()) + this.species = new CodeableConcept(); // cc + return this.species; + } + + public boolean hasSpecies() { + return this.species != null && !this.species.isEmpty(); + } + + /** + * @param value {@link #species} (The species of an organism, typically referring to the Latin epithet of the species of the plant/animal.) + */ + public SubstanceDefinitionSourceMaterialComponent setSpecies(CodeableConcept value) { + this.species = value; + return this; + } + + /** + * @return {@link #part} (An anatomical origin of the source material within an organism.) + */ + public CodeableConcept getPart() { + if (this.part == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create SubstanceDefinitionSourceMaterialComponent.part"); + else if (Configuration.doAutoCreate()) + this.part = new CodeableConcept(); // cc + return this.part; + } + + public boolean hasPart() { + return this.part != null && !this.part.isEmpty(); + } + + /** + * @param value {@link #part} (An anatomical origin of the source material within an organism.) + */ + public SubstanceDefinitionSourceMaterialComponent setPart(CodeableConcept value) { + this.part = value; + return this; + } + + /** + * @return {@link #countryOfOrigin} (The country or countries where the material is harvested.) + */ + public List getCountryOfOrigin() { + if (this.countryOfOrigin == null) + this.countryOfOrigin = new ArrayList(); + return this.countryOfOrigin; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public SubstanceDefinitionSourceMaterialComponent setCountryOfOrigin(List theCountryOfOrigin) { + this.countryOfOrigin = theCountryOfOrigin; + return this; + } + + public boolean hasCountryOfOrigin() { + if (this.countryOfOrigin == null) + return false; + for (CodeableConcept item : this.countryOfOrigin) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addCountryOfOrigin() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.countryOfOrigin == null) + this.countryOfOrigin = new ArrayList(); + this.countryOfOrigin.add(t); + return t; + } + + public SubstanceDefinitionSourceMaterialComponent addCountryOfOrigin(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.countryOfOrigin == null) + this.countryOfOrigin = new ArrayList(); + this.countryOfOrigin.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #countryOfOrigin}, creating it if it does not already exist {3} + */ + public CodeableConcept getCountryOfOriginFirstRep() { + if (getCountryOfOrigin().isEmpty()) { + addCountryOfOrigin(); + } + return getCountryOfOrigin().get(0); + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("type", "CodeableConcept", "A classification that provides the origin of the raw material. Example: cat hair would be an Animal source type.", 0, 1, type)); + children.add(new Property("genus", "CodeableConcept", "The genus of an organism, typically referring to the Latin epithet of the genus element of the plant/animal scientific name.", 0, 1, genus)); + children.add(new Property("species", "CodeableConcept", "The species of an organism, typically referring to the Latin epithet of the species of the plant/animal.", 0, 1, species)); + children.add(new Property("part", "CodeableConcept", "An anatomical origin of the source material within an organism.", 0, 1, part)); + children.add(new Property("countryOfOrigin", "CodeableConcept", "The country or countries where the material is harvested.", 0, java.lang.Integer.MAX_VALUE, countryOfOrigin)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 3575610: /*type*/ return new Property("type", "CodeableConcept", "A classification that provides the origin of the raw material. Example: cat hair would be an Animal source type.", 0, 1, type); + case 98241006: /*genus*/ return new Property("genus", "CodeableConcept", "The genus of an organism, typically referring to the Latin epithet of the genus element of the plant/animal scientific name.", 0, 1, genus); + case -2008465092: /*species*/ return new Property("species", "CodeableConcept", "The species of an organism, typically referring to the Latin epithet of the species of the plant/animal.", 0, 1, species); + case 3433459: /*part*/ return new Property("part", "CodeableConcept", "An anatomical origin of the source material within an organism.", 0, 1, part); + case 57176467: /*countryOfOrigin*/ return new Property("countryOfOrigin", "CodeableConcept", "The country or countries where the material is harvested.", 0, java.lang.Integer.MAX_VALUE, countryOfOrigin); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept + case 98241006: /*genus*/ return this.genus == null ? new Base[0] : new Base[] {this.genus}; // CodeableConcept + case -2008465092: /*species*/ return this.species == null ? new Base[0] : new Base[] {this.species}; // CodeableConcept + case 3433459: /*part*/ return this.part == null ? new Base[0] : new Base[] {this.part}; // CodeableConcept + case 57176467: /*countryOfOrigin*/ return this.countryOfOrigin == null ? new Base[0] : this.countryOfOrigin.toArray(new Base[this.countryOfOrigin.size()]); // CodeableConcept + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 3575610: // type + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 98241006: // genus + this.genus = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case -2008465092: // species + this.species = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 3433459: // part + this.part = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 57176467: // countryOfOrigin + this.getCountryOfOrigin().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("type")) { + this.type = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("genus")) { + this.genus = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("species")) { + this.species = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("part")) { + this.part = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("countryOfOrigin")) { + this.getCountryOfOrigin().add(TypeConvertor.castToCodeableConcept(value)); + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: return getType(); + case 98241006: return getGenus(); + case -2008465092: return getSpecies(); + case 3433459: return getPart(); + case 57176467: return addCountryOfOrigin(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 3575610: /*type*/ return new String[] {"CodeableConcept"}; + case 98241006: /*genus*/ return new String[] {"CodeableConcept"}; + case -2008465092: /*species*/ return new String[] {"CodeableConcept"}; + case 3433459: /*part*/ return new String[] {"CodeableConcept"}; + case 57176467: /*countryOfOrigin*/ return new String[] {"CodeableConcept"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("type")) { + this.type = new CodeableConcept(); + return this.type; + } + else if (name.equals("genus")) { + this.genus = new CodeableConcept(); + return this.genus; + } + else if (name.equals("species")) { + this.species = new CodeableConcept(); + return this.species; + } + else if (name.equals("part")) { + this.part = new CodeableConcept(); + return this.part; + } + else if (name.equals("countryOfOrigin")) { + return addCountryOfOrigin(); + } + else + return super.addChild(name); + } + + public SubstanceDefinitionSourceMaterialComponent copy() { + SubstanceDefinitionSourceMaterialComponent dst = new SubstanceDefinitionSourceMaterialComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(SubstanceDefinitionSourceMaterialComponent dst) { + super.copyValues(dst); + dst.type = type == null ? null : type.copy(); + dst.genus = genus == null ? null : genus.copy(); + dst.species = species == null ? null : species.copy(); + dst.part = part == null ? null : part.copy(); + if (countryOfOrigin != null) { + dst.countryOfOrigin = new ArrayList(); + for (CodeableConcept i : countryOfOrigin) + dst.countryOfOrigin.add(i.copy()); + }; + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof SubstanceDefinitionSourceMaterialComponent)) + return false; + SubstanceDefinitionSourceMaterialComponent o = (SubstanceDefinitionSourceMaterialComponent) other_; + return compareDeep(type, o.type, true) && compareDeep(genus, o.genus, true) && compareDeep(species, o.species, true) + && compareDeep(part, o.part, true) && compareDeep(countryOfOrigin, o.countryOfOrigin, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof SubstanceDefinitionSourceMaterialComponent)) + return false; + SubstanceDefinitionSourceMaterialComponent o = (SubstanceDefinitionSourceMaterialComponent) other_; + return true; + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, genus, species, part + , countryOfOrigin); + } + + public String fhirType() { + return "SubstanceDefinition.sourceMaterial"; + + } + } /** @@ -4989,126 +5362,133 @@ public class SubstanceDefinition extends DomainResource { @Description(shortDefinition="If the substance applies to only human or veterinary use", formalDefinition="If the substance applies to only human or veterinary use." ) protected CodeableConcept domain; + /** + * The quality standard, established benchmark, to which substance complies (e.g. USP/NF, Ph. Eur, JP, BP, Company Standard). + */ + @Child(name = "grade", type = {CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="The quality standard, established benchmark, to which substance complies (e.g. USP/NF, Ph. Eur, JP, BP, Company Standard)", formalDefinition="The quality standard, established benchmark, to which substance complies (e.g. USP/NF, Ph. Eur, JP, BP, Company Standard)." ) + protected List grade; + /** * Textual description of the substance. */ - @Child(name = "description", type = {MarkdownType.class}, order=6, min=0, max=1, modifier=false, summary=true) + @Child(name = "description", type = {MarkdownType.class}, order=7, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Textual description of the substance", formalDefinition="Textual description of the substance." ) protected MarkdownType description; /** * Supporting literature. */ - @Child(name = "source", type = {DocumentReference.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "source", type = {DocumentReference.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Supporting literature", formalDefinition="Supporting literature." ) protected List source; /** - * Textual comment about this record of a substance. + * Textual comment about the substance's catalogue or registry record. */ - @Child(name = "note", type = {Annotation.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Textual comment about this record of a substance", formalDefinition="Textual comment about this record of a substance." ) + @Child(name = "note", type = {Annotation.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Description(shortDefinition="Textual comment about the substance's catalogue or registry record", formalDefinition="Textual comment about the substance's catalogue or registry record." ) protected List note; /** * A company that makes this substance. */ - @Child(name = "manufacturer", type = {Organization.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "manufacturer", type = {Organization.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="A company that makes this substance", formalDefinition="A company that makes this substance." ) protected List manufacturer; /** * A company that supplies this substance. */ - @Child(name = "supplier", type = {Organization.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "supplier", type = {Organization.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="A company that supplies this substance", formalDefinition="A company that supplies this substance." ) protected List supplier; /** * Moiety, for structural modifications. */ - @Child(name = "moiety", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "moiety", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Moiety, for structural modifications", formalDefinition="Moiety, for structural modifications." ) protected List moiety; /** * General specifications for this substance, including how it is related to other substances. */ - @Child(name = "property", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "property", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="General specifications for this substance, including how it is related to other substances", formalDefinition="General specifications for this substance, including how it is related to other substances." ) protected List property; /** * General information detailing this substance. */ - @Child(name = "referenceInformation", type = {SubstanceReferenceInformation.class}, order=13, min=0, max=1, modifier=false, summary=true) + @Child(name = "referenceInformation", type = {SubstanceReferenceInformation.class}, order=14, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="General information detailing this substance", formalDefinition="General information detailing this substance." ) protected Reference referenceInformation; /** * Structural information. */ - @Child(name = "structure", type = {}, order=14, min=0, max=1, modifier=false, summary=true) + @Child(name = "structure", type = {}, order=15, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Structural information", formalDefinition="Structural information." ) protected SubstanceDefinitionStructureComponent structure; /** * Codes associated with the substance. */ - @Child(name = "code", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "code", type = {}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Codes associated with the substance", formalDefinition="Codes associated with the substance." ) protected List code; /** * Names applicable to this substance. */ - @Child(name = "name", type = {}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "name", type = {}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="Names applicable to this substance", formalDefinition="Names applicable to this substance." ) protected List name; /** * The molecular weight or weight range (for proteins, polymers or nucleic acids). */ - @Child(name = "molecularWeight", type = {SubstanceDefinitionStructureIsotopeMolecularWeightComponent.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "molecularWeight", type = {SubstanceDefinitionStructureIsotopeMolecularWeightComponent.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="The molecular weight or weight range (for proteins, polymers or nucleic acids)", formalDefinition="The molecular weight or weight range (for proteins, polymers or nucleic acids)." ) protected List molecularWeight; /** * A link between this substance and another, with details of the relationship. */ - @Child(name = "relationship", type = {}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) + @Child(name = "relationship", type = {}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) @Description(shortDefinition="A link between this substance and another, with details of the relationship", formalDefinition="A link between this substance and another, with details of the relationship." ) protected List relationship; /** * Data items specific to nucleic acids. */ - @Child(name = "nucleicAcid", type = {SubstanceNucleicAcid.class}, order=19, min=0, max=1, modifier=false, summary=true) + @Child(name = "nucleicAcid", type = {SubstanceNucleicAcid.class}, order=20, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Data items specific to nucleic acids", formalDefinition="Data items specific to nucleic acids." ) protected Reference nucleicAcid; /** * Data items specific to polymers. */ - @Child(name = "polymer", type = {SubstancePolymer.class}, order=20, min=0, max=1, modifier=false, summary=true) + @Child(name = "polymer", type = {SubstancePolymer.class}, order=21, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Data items specific to polymers", formalDefinition="Data items specific to polymers." ) protected Reference polymer; /** * Data items specific to proteins. */ - @Child(name = "protein", type = {SubstanceProtein.class}, order=21, min=0, max=1, modifier=false, summary=true) + @Child(name = "protein", type = {SubstanceProtein.class}, order=22, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Data items specific to proteins", formalDefinition="Data items specific to proteins." ) protected Reference protein; /** * Material or taxonomic/anatomical source for the substance. */ - @Child(name = "sourceMaterial", type = {SubstanceSourceMaterial.class}, order=22, min=0, max=1, modifier=false, summary=true) + @Child(name = "sourceMaterial", type = {}, order=23, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Material or taxonomic/anatomical source for the substance", formalDefinition="Material or taxonomic/anatomical source for the substance." ) - protected Reference sourceMaterial; + protected SubstanceDefinitionSourceMaterialComponent sourceMaterial; - private static final long serialVersionUID = 1928000355L; + private static final long serialVersionUID = 1189421044L; /** * Constructor @@ -5315,6 +5695,59 @@ public class SubstanceDefinition extends DomainResource { return this; } + /** + * @return {@link #grade} (The quality standard, established benchmark, to which substance complies (e.g. USP/NF, Ph. Eur, JP, BP, Company Standard).) + */ + public List getGrade() { + if (this.grade == null) + this.grade = new ArrayList(); + return this.grade; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public SubstanceDefinition setGrade(List theGrade) { + this.grade = theGrade; + return this; + } + + public boolean hasGrade() { + if (this.grade == null) + return false; + for (CodeableConcept item : this.grade) + if (!item.isEmpty()) + return true; + return false; + } + + public CodeableConcept addGrade() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.grade == null) + this.grade = new ArrayList(); + this.grade.add(t); + return t; + } + + public SubstanceDefinition addGrade(CodeableConcept t) { //3 + if (t == null) + return this; + if (this.grade == null) + this.grade = new ArrayList(); + this.grade.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #grade}, creating it if it does not already exist {3} + */ + public CodeableConcept getGradeFirstRep() { + if (getGrade().isEmpty()) { + addGrade(); + } + return getGrade().get(0); + } + /** * @return {@link #description} (Textual description of the substance.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value */ @@ -5418,7 +5851,7 @@ public class SubstanceDefinition extends DomainResource { } /** - * @return {@link #note} (Textual comment about this record of a substance.) + * @return {@link #note} (Textual comment about the substance's catalogue or registry record.) */ public List getNote() { if (this.note == null) @@ -6017,12 +6450,12 @@ public class SubstanceDefinition extends DomainResource { /** * @return {@link #sourceMaterial} (Material or taxonomic/anatomical source for the substance.) */ - public Reference getSourceMaterial() { + public SubstanceDefinitionSourceMaterialComponent getSourceMaterial() { if (this.sourceMaterial == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create SubstanceDefinition.sourceMaterial"); else if (Configuration.doAutoCreate()) - this.sourceMaterial = new Reference(); // cc + this.sourceMaterial = new SubstanceDefinitionSourceMaterialComponent(); // cc return this.sourceMaterial; } @@ -6033,7 +6466,7 @@ public class SubstanceDefinition extends DomainResource { /** * @param value {@link #sourceMaterial} (Material or taxonomic/anatomical source for the substance.) */ - public SubstanceDefinition setSourceMaterial(Reference value) { + public SubstanceDefinition setSourceMaterial(SubstanceDefinitionSourceMaterialComponent value) { this.sourceMaterial = value; return this; } @@ -6046,9 +6479,10 @@ public class SubstanceDefinition extends DomainResource { children.add(new Property("category", "CodeableConcept", "High level categorization, e.g. polymer or nucleic acid, or food, chemical, biological.", 0, 1, category)); children.add(new Property("classification", "CodeableConcept", "A lower level classification than category, such as the general types of polymer (linear or branch chain) or type of impurity (process related or contaminant).", 0, java.lang.Integer.MAX_VALUE, classification)); children.add(new Property("domain", "CodeableConcept", "If the substance applies to only human or veterinary use.", 0, 1, domain)); + children.add(new Property("grade", "CodeableConcept", "The quality standard, established benchmark, to which substance complies (e.g. USP/NF, Ph. Eur, JP, BP, Company Standard).", 0, java.lang.Integer.MAX_VALUE, grade)); children.add(new Property("description", "markdown", "Textual description of the substance.", 0, 1, description)); children.add(new Property("source", "Reference(DocumentReference)", "Supporting literature.", 0, java.lang.Integer.MAX_VALUE, source)); - children.add(new Property("note", "Annotation", "Textual comment about this record of a substance.", 0, java.lang.Integer.MAX_VALUE, note)); + children.add(new Property("note", "Annotation", "Textual comment about the substance's catalogue or registry record.", 0, java.lang.Integer.MAX_VALUE, note)); children.add(new Property("manufacturer", "Reference(Organization)", "A company that makes this substance.", 0, java.lang.Integer.MAX_VALUE, manufacturer)); children.add(new Property("supplier", "Reference(Organization)", "A company that supplies this substance.", 0, java.lang.Integer.MAX_VALUE, supplier)); children.add(new Property("moiety", "", "Moiety, for structural modifications.", 0, java.lang.Integer.MAX_VALUE, moiety)); @@ -6062,7 +6496,7 @@ public class SubstanceDefinition extends DomainResource { children.add(new Property("nucleicAcid", "Reference(SubstanceNucleicAcid)", "Data items specific to nucleic acids.", 0, 1, nucleicAcid)); children.add(new Property("polymer", "Reference(SubstancePolymer)", "Data items specific to polymers.", 0, 1, polymer)); children.add(new Property("protein", "Reference(SubstanceProtein)", "Data items specific to proteins.", 0, 1, protein)); - children.add(new Property("sourceMaterial", "Reference(SubstanceSourceMaterial)", "Material or taxonomic/anatomical source for the substance.", 0, 1, sourceMaterial)); + children.add(new Property("sourceMaterial", "", "Material or taxonomic/anatomical source for the substance.", 0, 1, sourceMaterial)); } @Override @@ -6074,9 +6508,10 @@ public class SubstanceDefinition extends DomainResource { case 50511102: /*category*/ return new Property("category", "CodeableConcept", "High level categorization, e.g. polymer or nucleic acid, or food, chemical, biological.", 0, 1, category); case 382350310: /*classification*/ return new Property("classification", "CodeableConcept", "A lower level classification than category, such as the general types of polymer (linear or branch chain) or type of impurity (process related or contaminant).", 0, java.lang.Integer.MAX_VALUE, classification); case -1326197564: /*domain*/ return new Property("domain", "CodeableConcept", "If the substance applies to only human or veterinary use.", 0, 1, domain); + case 98615255: /*grade*/ return new Property("grade", "CodeableConcept", "The quality standard, established benchmark, to which substance complies (e.g. USP/NF, Ph. Eur, JP, BP, Company Standard).", 0, java.lang.Integer.MAX_VALUE, grade); case -1724546052: /*description*/ return new Property("description", "markdown", "Textual description of the substance.", 0, 1, description); case -896505829: /*source*/ return new Property("source", "Reference(DocumentReference)", "Supporting literature.", 0, java.lang.Integer.MAX_VALUE, source); - case 3387378: /*note*/ return new Property("note", "Annotation", "Textual comment about this record of a substance.", 0, java.lang.Integer.MAX_VALUE, note); + case 3387378: /*note*/ return new Property("note", "Annotation", "Textual comment about the substance's catalogue or registry record.", 0, java.lang.Integer.MAX_VALUE, note); case -1969347631: /*manufacturer*/ return new Property("manufacturer", "Reference(Organization)", "A company that makes this substance.", 0, java.lang.Integer.MAX_VALUE, manufacturer); case -1663305268: /*supplier*/ return new Property("supplier", "Reference(Organization)", "A company that supplies this substance.", 0, java.lang.Integer.MAX_VALUE, supplier); case -1068650173: /*moiety*/ return new Property("moiety", "", "Moiety, for structural modifications.", 0, java.lang.Integer.MAX_VALUE, moiety); @@ -6090,7 +6525,7 @@ public class SubstanceDefinition extends DomainResource { case 1625275180: /*nucleicAcid*/ return new Property("nucleicAcid", "Reference(SubstanceNucleicAcid)", "Data items specific to nucleic acids.", 0, 1, nucleicAcid); case -397514098: /*polymer*/ return new Property("polymer", "Reference(SubstancePolymer)", "Data items specific to polymers.", 0, 1, polymer); case -309012605: /*protein*/ return new Property("protein", "Reference(SubstanceProtein)", "Data items specific to proteins.", 0, 1, protein); - case -1064442270: /*sourceMaterial*/ return new Property("sourceMaterial", "Reference(SubstanceSourceMaterial)", "Material or taxonomic/anatomical source for the substance.", 0, 1, sourceMaterial); + case -1064442270: /*sourceMaterial*/ return new Property("sourceMaterial", "", "Material or taxonomic/anatomical source for the substance.", 0, 1, sourceMaterial); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -6105,6 +6540,7 @@ public class SubstanceDefinition extends DomainResource { case 50511102: /*category*/ return this.category == null ? new Base[0] : new Base[] {this.category}; // CodeableConcept case 382350310: /*classification*/ return this.classification == null ? new Base[0] : this.classification.toArray(new Base[this.classification.size()]); // CodeableConcept case -1326197564: /*domain*/ return this.domain == null ? new Base[0] : new Base[] {this.domain}; // CodeableConcept + case 98615255: /*grade*/ return this.grade == null ? new Base[0] : this.grade.toArray(new Base[this.grade.size()]); // CodeableConcept case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType case -896505829: /*source*/ return this.source == null ? new Base[0] : this.source.toArray(new Base[this.source.size()]); // Reference case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation @@ -6121,7 +6557,7 @@ public class SubstanceDefinition extends DomainResource { case 1625275180: /*nucleicAcid*/ return this.nucleicAcid == null ? new Base[0] : new Base[] {this.nucleicAcid}; // Reference case -397514098: /*polymer*/ return this.polymer == null ? new Base[0] : new Base[] {this.polymer}; // Reference case -309012605: /*protein*/ return this.protein == null ? new Base[0] : new Base[] {this.protein}; // Reference - case -1064442270: /*sourceMaterial*/ return this.sourceMaterial == null ? new Base[0] : new Base[] {this.sourceMaterial}; // Reference + case -1064442270: /*sourceMaterial*/ return this.sourceMaterial == null ? new Base[0] : new Base[] {this.sourceMaterial}; // SubstanceDefinitionSourceMaterialComponent default: return super.getProperty(hash, name, checkValid); } @@ -6148,6 +6584,9 @@ public class SubstanceDefinition extends DomainResource { case -1326197564: // domain this.domain = TypeConvertor.castToCodeableConcept(value); // CodeableConcept return value; + case 98615255: // grade + this.getGrade().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept + return value; case -1724546052: // description this.description = TypeConvertor.castToMarkdown(value); // MarkdownType return value; @@ -6197,7 +6636,7 @@ public class SubstanceDefinition extends DomainResource { this.protein = TypeConvertor.castToReference(value); // Reference return value; case -1064442270: // sourceMaterial - this.sourceMaterial = TypeConvertor.castToReference(value); // Reference + this.sourceMaterial = (SubstanceDefinitionSourceMaterialComponent) value; // SubstanceDefinitionSourceMaterialComponent return value; default: return super.setProperty(hash, name, value); } @@ -6218,6 +6657,8 @@ public class SubstanceDefinition extends DomainResource { this.getClassification().add(TypeConvertor.castToCodeableConcept(value)); } else if (name.equals("domain")) { this.domain = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("grade")) { + this.getGrade().add(TypeConvertor.castToCodeableConcept(value)); } else if (name.equals("description")) { this.description = TypeConvertor.castToMarkdown(value); // MarkdownType } else if (name.equals("source")) { @@ -6251,7 +6692,7 @@ public class SubstanceDefinition extends DomainResource { } else if (name.equals("protein")) { this.protein = TypeConvertor.castToReference(value); // Reference } else if (name.equals("sourceMaterial")) { - this.sourceMaterial = TypeConvertor.castToReference(value); // Reference + this.sourceMaterial = (SubstanceDefinitionSourceMaterialComponent) value; // SubstanceDefinitionSourceMaterialComponent } else return super.setProperty(name, value); return value; @@ -6266,6 +6707,7 @@ public class SubstanceDefinition extends DomainResource { case 50511102: return getCategory(); case 382350310: return addClassification(); case -1326197564: return getDomain(); + case 98615255: return addGrade(); case -1724546052: return getDescriptionElement(); case -896505829: return addSource(); case 3387378: return addNote(); @@ -6297,6 +6739,7 @@ public class SubstanceDefinition extends DomainResource { case 50511102: /*category*/ return new String[] {"CodeableConcept"}; case 382350310: /*classification*/ return new String[] {"CodeableConcept"}; case -1326197564: /*domain*/ return new String[] {"CodeableConcept"}; + case 98615255: /*grade*/ return new String[] {"CodeableConcept"}; case -1724546052: /*description*/ return new String[] {"markdown"}; case -896505829: /*source*/ return new String[] {"Reference"}; case 3387378: /*note*/ return new String[] {"Annotation"}; @@ -6313,7 +6756,7 @@ public class SubstanceDefinition extends DomainResource { case 1625275180: /*nucleicAcid*/ return new String[] {"Reference"}; case -397514098: /*polymer*/ return new String[] {"Reference"}; case -309012605: /*protein*/ return new String[] {"Reference"}; - case -1064442270: /*sourceMaterial*/ return new String[] {"Reference"}; + case -1064442270: /*sourceMaterial*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -6343,6 +6786,9 @@ public class SubstanceDefinition extends DomainResource { this.domain = new CodeableConcept(); return this.domain; } + else if (name.equals("grade")) { + return addGrade(); + } else if (name.equals("description")) { throw new FHIRException("Cannot call addChild on a primitive type SubstanceDefinition.description"); } @@ -6397,7 +6843,7 @@ public class SubstanceDefinition extends DomainResource { return this.protein; } else if (name.equals("sourceMaterial")) { - this.sourceMaterial = new Reference(); + this.sourceMaterial = new SubstanceDefinitionSourceMaterialComponent(); return this.sourceMaterial; } else @@ -6427,6 +6873,11 @@ public class SubstanceDefinition extends DomainResource { dst.classification.add(i.copy()); }; dst.domain = domain == null ? null : domain.copy(); + if (grade != null) { + dst.grade = new ArrayList(); + for (CodeableConcept i : grade) + dst.grade.add(i.copy()); + }; dst.description = description == null ? null : description.copy(); if (source != null) { dst.source = new ArrayList(); @@ -6499,13 +6950,14 @@ public class SubstanceDefinition extends DomainResource { SubstanceDefinition o = (SubstanceDefinition) other_; return compareDeep(identifier, o.identifier, true) && compareDeep(version, o.version, true) && compareDeep(status, o.status, true) && compareDeep(category, o.category, true) && compareDeep(classification, o.classification, true) - && compareDeep(domain, o.domain, true) && compareDeep(description, o.description, true) && compareDeep(source, o.source, true) - && compareDeep(note, o.note, true) && compareDeep(manufacturer, o.manufacturer, true) && compareDeep(supplier, o.supplier, true) - && compareDeep(moiety, o.moiety, true) && compareDeep(property, o.property, true) && compareDeep(referenceInformation, o.referenceInformation, true) - && compareDeep(structure, o.structure, true) && compareDeep(code, o.code, true) && compareDeep(name, o.name, true) - && compareDeep(molecularWeight, o.molecularWeight, true) && compareDeep(relationship, o.relationship, true) - && compareDeep(nucleicAcid, o.nucleicAcid, true) && compareDeep(polymer, o.polymer, true) && compareDeep(protein, o.protein, true) - && compareDeep(sourceMaterial, o.sourceMaterial, true); + && compareDeep(domain, o.domain, true) && compareDeep(grade, o.grade, true) && compareDeep(description, o.description, true) + && compareDeep(source, o.source, true) && compareDeep(note, o.note, true) && compareDeep(manufacturer, o.manufacturer, true) + && compareDeep(supplier, o.supplier, true) && compareDeep(moiety, o.moiety, true) && compareDeep(property, o.property, true) + && compareDeep(referenceInformation, o.referenceInformation, true) && compareDeep(structure, o.structure, true) + && compareDeep(code, o.code, true) && compareDeep(name, o.name, true) && compareDeep(molecularWeight, o.molecularWeight, true) + && compareDeep(relationship, o.relationship, true) && compareDeep(nucleicAcid, o.nucleicAcid, true) + && compareDeep(polymer, o.polymer, true) && compareDeep(protein, o.protein, true) && compareDeep(sourceMaterial, o.sourceMaterial, true) + ; } @Override @@ -6520,8 +6972,8 @@ public class SubstanceDefinition extends DomainResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, version, status - , category, classification, domain, description, source, note, manufacturer, supplier - , moiety, property, referenceInformation, structure, code, name, molecularWeight + , category, classification, domain, grade, description, source, note, manufacturer + , supplier, moiety, property, referenceInformation, structure, code, name, molecularWeight , relationship, nucleicAcid, polymer, protein, sourceMaterial); } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceNucleicAcid.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceNucleicAcid.java index bf15629b6..72f554830 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceNucleicAcid.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceNucleicAcid.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstancePolymer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstancePolymer.java index 5463e6bf0..d993bc284 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstancePolymer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstancePolymer.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceProtein.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceProtein.java index 1ef2d30f3..736a1a578 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceProtein.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceProtein.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceReferenceInformation.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceReferenceInformation.java index 5e41c9f3d..afc7ff34f 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceReferenceInformation.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceReferenceInformation.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceSourceMaterial.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceSourceMaterial.java index 1cc5a3e1d..de03313bd 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceSourceMaterial.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SubstanceSourceMaterial.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyDelivery.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyDelivery.java index 39f0e81f3..1aba03171 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyDelivery.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyDelivery.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -96,7 +96,6 @@ public class SupplyDelivery extends DomainResource { case COMPLETED: return "completed"; case ABANDONED: return "abandoned"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -106,7 +105,6 @@ public class SupplyDelivery extends DomainResource { case COMPLETED: return "http://hl7.org/fhir/supplydelivery-status"; case ABANDONED: return "http://hl7.org/fhir/supplydelivery-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/supplydelivery-status"; - case NULL: return null; default: return "?"; } } @@ -116,7 +114,6 @@ public class SupplyDelivery extends DomainResource { case COMPLETED: return "Supply has been delivered (\"completed\")."; case ABANDONED: return "Delivery was not completed."; case ENTEREDINERROR: return "This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"abandoned\" rather than \"entered-in-error\".)."; - case NULL: return null; default: return "?"; } } @@ -126,7 +123,6 @@ public class SupplyDelivery extends DomainResource { case COMPLETED: return "Delivered"; case ABANDONED: return "Abandoned"; case ENTEREDINERROR: return "Entered In Error"; - case NULL: return null; default: return "?"; } } @@ -1255,6 +1251,184 @@ public class SupplyDelivery extends DomainResource { return ResourceType.SupplyDelivery; } + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "SupplyDelivery:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("SupplyDelivery:patient").toLocked(); + /** * Search parameter: receiver *

@@ -1327,184 +1501,6 @@ public class SupplyDelivery extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUPPLIER = new ca.uhn.fhir.model.api.Include("SupplyDelivery:supplier").toLocked(); - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "SupplyDelivery:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("SupplyDelivery:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyRequest.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyRequest.java index b3421c774..21cf30a34 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyRequest.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/SupplyRequest.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -117,7 +117,6 @@ public class SupplyRequest extends DomainResource { case COMPLETED: return "completed"; case ENTEREDINERROR: return "entered-in-error"; case UNKNOWN: return "unknown"; - case NULL: return null; default: return "?"; } } @@ -130,7 +129,6 @@ public class SupplyRequest extends DomainResource { case COMPLETED: return "http://hl7.org/fhir/supplyrequest-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/supplyrequest-status"; case UNKNOWN: return "http://hl7.org/fhir/supplyrequest-status"; - case NULL: return null; default: return "?"; } } @@ -143,7 +141,6 @@ public class SupplyRequest extends DomainResource { case COMPLETED: return "Activity against the request has been sufficiently completed to the satisfaction of the requester."; case ENTEREDINERROR: return "This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)."; case UNKNOWN: return "The authoring/source system does not know which of the status values currently applies for this observation. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, but the authoring/source system does not know which."; - case NULL: return null; default: return "?"; } } @@ -156,7 +153,6 @@ public class SupplyRequest extends DomainResource { case COMPLETED: return "Completed"; case ENTEREDINERROR: return "Entered in Error"; case UNKNOWN: return "Unknown"; - case NULL: return null; default: return "?"; } } @@ -575,7 +571,7 @@ public class SupplyRequest extends DomainResource { /** * The device, practitioner, etc. who initiated the request. */ - @Child(name = "requester", type = {Practitioner.class, PractitionerRole.class, Organization.class, Patient.class, RelatedPerson.class, Device.class}, order=9, min=0, max=1, modifier=false, summary=true) + @Child(name = "requester", type = {Practitioner.class, PractitionerRole.class, Organization.class, Patient.class, RelatedPerson.class, Device.class, CareTeam.class}, order=9, min=0, max=1, modifier=false, summary=true) @Description(shortDefinition="Individual making the request", formalDefinition="The device, practitioner, etc. who initiated the request." ) protected Reference requester; @@ -1206,7 +1202,7 @@ public class SupplyRequest extends DomainResource { children.add(new Property("parameter", "", "Specific parameters for the ordered item. For example, the size of the indicated item.", 0, java.lang.Integer.MAX_VALUE, parameter)); children.add(new Property("occurrence[x]", "dateTime|Period|Timing", "When the request should be fulfilled.", 0, 1, occurrence)); children.add(new Property("authoredOn", "dateTime", "When the request was made.", 0, 1, authoredOn)); - children.add(new Property("requester", "Reference(Practitioner|PractitionerRole|Organization|Patient|RelatedPerson|Device)", "The device, practitioner, etc. who initiated the request.", 0, 1, requester)); + children.add(new Property("requester", "Reference(Practitioner|PractitionerRole|Organization|Patient|RelatedPerson|Device|CareTeam)", "The device, practitioner, etc. who initiated the request.", 0, 1, requester)); children.add(new Property("supplier", "Reference(Organization|HealthcareService)", "Who is intended to fulfill the request.", 0, java.lang.Integer.MAX_VALUE, supplier)); children.add(new Property("reason", "CodeableReference(Condition|Observation|DiagnosticReport|DocumentReference)", "The reason why the supply item was requested.", 0, java.lang.Integer.MAX_VALUE, reason)); children.add(new Property("deliverFrom", "Reference(Organization|Location)", "Where the supply is expected to come from.", 0, 1, deliverFrom)); @@ -1229,7 +1225,7 @@ public class SupplyRequest extends DomainResource { case 1397156594: /*occurrencePeriod*/ return new Property("occurrence[x]", "Period", "When the request should be fulfilled.", 0, 1, occurrence); case 1515218299: /*occurrenceTiming*/ return new Property("occurrence[x]", "Timing", "When the request should be fulfilled.", 0, 1, occurrence); case -1500852503: /*authoredOn*/ return new Property("authoredOn", "dateTime", "When the request was made.", 0, 1, authoredOn); - case 693933948: /*requester*/ return new Property("requester", "Reference(Practitioner|PractitionerRole|Organization|Patient|RelatedPerson|Device)", "The device, practitioner, etc. who initiated the request.", 0, 1, requester); + case 693933948: /*requester*/ return new Property("requester", "Reference(Practitioner|PractitionerRole|Organization|Patient|RelatedPerson|Device|CareTeam)", "The device, practitioner, etc. who initiated the request.", 0, 1, requester); case -1663305268: /*supplier*/ return new Property("supplier", "Reference(Organization|HealthcareService)", "Who is intended to fulfill the request.", 0, java.lang.Integer.MAX_VALUE, supplier); case -934964668: /*reason*/ return new Property("reason", "CodeableReference(Condition|Observation|DiagnosticReport|DocumentReference)", "The reason why the supply item was requested.", 0, java.lang.Integer.MAX_VALUE, reason); case -949323153: /*deliverFrom*/ return new Property("deliverFrom", "Reference(Organization|Location)", "Where the supply is expected to come from.", 0, 1, deliverFrom); @@ -1543,6 +1539,148 @@ public class SupplyRequest extends DomainResource { return ResourceType.SupplyRequest; } + /** + * Search parameter: date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) + public static final String SP_DATE = "date"; + /** + * Fluent Client search parameter constant for date + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded +* [CarePlan](careplan.html): Time period plan covers +* [CareTeam](careteam.html): A date within the coverage time period. +* [ClinicalImpression](clinicalimpression.html): When the assessment was documented +* [Composition](composition.html): Composition editing time +* [Consent](consent.html): When consent was agreed to +* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report +* [Encounter](encounter.html): A date within the period the Encounter lasted +* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period +* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated +* [Flag](flag.html): Time period when flag is active +* [Immunization](immunization.html): Vaccination (non)-Administration Date +* [List](list.html): When the list was prepared +* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period +* [Procedure](procedure.html): When the procedure occurred or is occurring +* [RiskAssessment](riskassessment.html): When was assessment made? +* [SupplyRequest](supplyrequest.html): When the request was made +
+ * Type: date
+ * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + /** * Search parameter: category *

@@ -1571,7 +1709,7 @@ public class SupplyRequest extends DomainResource { * Path: SupplyRequest.requester
*

*/ - @SearchParamDefinition(name="requester", path="SupplyRequest.requester", description="Individual making the request", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) + @SearchParamDefinition(name="requester", path="SupplyRequest.requester", description="Individual making the request", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for RelatedPerson") }, target={CareTeam.class, Device.class, Organization.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) public static final String SP_REQUESTER = "requester"; /** * Fluent Client search parameter constant for requester @@ -1661,148 +1799,6 @@ public class SupplyRequest extends DomainResource { */ public static final ca.uhn.fhir.model.api.Include INCLUDE_SUPPLIER = new ca.uhn.fhir.model.api.Include("SupplyRequest:supplier").toLocked(); - /** - * Search parameter: date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) - public static final String SP_DATE = "date"; - /** - * Fluent Client search parameter constant for date - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded -* [CarePlan](careplan.html): Time period plan covers -* [CareTeam](careteam.html): A date within the coverage time period. -* [ClinicalImpression](clinicalimpression.html): When the assessment was documented -* [Composition](composition.html): Composition editing time -* [Consent](consent.html): When consent was agreed to -* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report -* [Encounter](encounter.html): A date within the period the Encounter lasted -* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period -* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated -* [Flag](flag.html): Time period when flag is active -* [Immunization](immunization.html): Vaccination (non)-Administration Date -* [List](list.html): When the list was prepared -* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period -* [Procedure](procedure.html): When the procedure occurred or is occurring -* [RiskAssessment](riskassessment.html): When was assessment made? -* [SupplyRequest](supplyrequest.html): When the request was made -
- * Type: date
- * Path: AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | (Immunization.occurrence as dateTime) | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn
- *

- */ - public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Task.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Task.java index d51332e78..f75b2e472 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Task.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Task.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -131,7 +131,6 @@ public class Task extends DomainResource { case FILLERORDER: return "filler-order"; case INSTANCEORDER: return "instance-order"; case OPTION: return "option"; - case NULL: return null; default: return "?"; } } @@ -146,7 +145,6 @@ public class Task extends DomainResource { case FILLERORDER: return "http://hl7.org/fhir/request-intent"; case INSTANCEORDER: return "http://hl7.org/fhir/request-intent"; case OPTION: return "http://hl7.org/fhir/request-intent"; - case NULL: return null; default: return "?"; } } @@ -161,7 +159,6 @@ public class Task extends DomainResource { case FILLERORDER: return "The request represents the view of an authorization instantiated by a fulfilling system representing the details of the fulfiller's intention to act upon a submitted order."; case INSTANCEORDER: return "An order created in fulfillment of a broader order that represents the authorization for a single activity occurrence. E.g. The administration of a single dose of a drug."; case OPTION: return "The request represents a component or option for a RequestGroup that establishes timing, conditionality and/or other constraints among a set of requests. Refer to [[[RequestGroup]]] for additional information on how this status is used."; - case NULL: return null; default: return "?"; } } @@ -176,7 +173,6 @@ public class Task extends DomainResource { case FILLERORDER: return "Filler Order"; case INSTANCEORDER: return "Instance Order"; case OPTION: return "Option"; - case NULL: return null; default: return "?"; } } @@ -360,7 +356,6 @@ public class Task extends DomainResource { case FAILED: return "failed"; case COMPLETED: return "completed"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -378,7 +373,6 @@ public class Task extends DomainResource { case FAILED: return "http://hl7.org/fhir/task-status"; case COMPLETED: return "http://hl7.org/fhir/task-status"; case ENTEREDINERROR: return "http://hl7.org/fhir/task-status"; - case NULL: return null; default: return "?"; } } @@ -396,7 +390,6 @@ public class Task extends DomainResource { case FAILED: return "The task was attempted but could not be completed due to some error."; case COMPLETED: return "The task has been completed."; case ENTEREDINERROR: return "The task should never have existed and is retained only because of the possibility it may have used."; - case NULL: return null; default: return "?"; } } @@ -414,7 +407,6 @@ public class Task extends DomainResource { case FAILED: return "Failed"; case COMPLETED: return "Completed"; case ENTEREDINERROR: return "Entered in Error"; - case NULL: return null; default: return "?"; } } @@ -5348,7 +5340,7 @@ public class Task extends DomainResource { * Path: Task.basedOn
*

*/ - @SearchParamDefinition(name="based-on", path="Task.basedOn", description="Search by requests this task is based on", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="based-on", path="Task.basedOn", description="Search by requests this task is based on", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_BASED_ON = "based-on"; /** * Fluent Client search parameter constant for based-on @@ -5440,7 +5432,7 @@ public class Task extends DomainResource { * Path: Task.focus
*

*/ - @SearchParamDefinition(name="focus", path="Task.focus", description="Search by task focus", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="focus", path="Task.focus", description="Search by task focus", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_FOCUS = "focus"; /** * Fluent Client search parameter constant for focus @@ -5598,7 +5590,7 @@ public class Task extends DomainResource { * Path: Task.for.where(resolve() is Patient)
*

*/ - @SearchParamDefinition(name="patient", path="Task.for.where(resolve() is Patient)", description="Search by patient", type="reference", target={Patient.class } ) + @SearchParamDefinition(name="patient", path="Task.for.where(resolve() is Patient)", description="Search by patient", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_PATIENT = "patient"; /** * Fluent Client search parameter constant for patient @@ -5730,7 +5722,7 @@ public class Task extends DomainResource { * Path: Task.for
*

*/ - @SearchParamDefinition(name="subject", path="Task.for", description="Search by subject", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="subject", path="Task.for", description="Search by subject", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TerminologyCapabilities.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TerminologyCapabilities.java index 332bfa93d..011a9dad8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TerminologyCapabilities.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TerminologyCapabilities.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -82,7 +82,6 @@ public class TerminologyCapabilities extends CanonicalResource { switch (this) { case EXPLICIT: return "explicit"; case ALL: return "all"; - case NULL: return null; default: return "?"; } } @@ -90,7 +89,6 @@ public class TerminologyCapabilities extends CanonicalResource { switch (this) { case EXPLICIT: return "http://hl7.org/fhir/code-search-support"; case ALL: return "http://hl7.org/fhir/code-search-support"; - case NULL: return null; default: return "?"; } } @@ -98,7 +96,6 @@ public class TerminologyCapabilities extends CanonicalResource { switch (this) { case EXPLICIT: return "The search for code on ValueSet only includes codes explicitly detailed on includes or expansions."; case ALL: return "The search for code on ValueSet only includes all codes based on the expansion of the value set."; - case NULL: return null; default: return "?"; } } @@ -106,7 +103,6 @@ public class TerminologyCapabilities extends CanonicalResource { switch (this) { case EXPLICIT: return "Explicit Codes"; case ALL: return "Implicit Codes"; - case NULL: return null; default: return "?"; } } @@ -4842,6 +4838,58 @@ public class TerminologyCapabilities extends CanonicalResource { return ResourceType.TerminologyCapabilities; } + /** + * Search parameter: context + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +
+ * Type: token
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +
+ * Type: token
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -4894,110 +4942,6 @@ public class TerminologyCapabilities extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -5050,58 +4994,6 @@ public class TerminologyCapabilities extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -5206,44 +5098,6 @@ public class TerminologyCapabilities extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [CodeSystem](codesystem.html): External identifier for the code system -* [ConceptMap](conceptmap.html): External identifier for the concept map -* [MessageDefinition](messagedefinition.html): External identifier for the message definition -* [StructureDefinition](structuredefinition.html): External identifier for the structure definition -* [StructureMap](structuremap.html): External identifier for the structure map -* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities -* [ValueSet](valueset.html): External identifier for the value set -
- * Type: token
- * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier", description="Multiple Resources: \r\n\r\n* [CodeSystem](codesystem.html): External identifier for the code system\r\n* [ConceptMap](conceptmap.html): External identifier for the concept map\r\n* [MessageDefinition](messagedefinition.html): External identifier for the message definition\r\n* [StructureDefinition](structuredefinition.html): External identifier for the structure definition\r\n* [StructureMap](structuremap.html): External identifier for the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities\r\n* [ValueSet](valueset.html): External identifier for the value set\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [CodeSystem](codesystem.html): External identifier for the code system -* [ConceptMap](conceptmap.html): External identifier for the concept map -* [MessageDefinition](messagedefinition.html): External identifier for the message definition -* [StructureDefinition](structuredefinition.html): External identifier for the structure definition -* [StructureMap](structuremap.html): External identifier for the structure map -* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities -* [ValueSet](valueset.html): External identifier for the value set -
- * Type: token
- * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - /** * Search parameter: jurisdiction *

@@ -5598,6 +5452,148 @@ public class TerminologyCapabilities extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [CodeSystem](codesystem.html): External identifier for the code system +* [ConceptMap](conceptmap.html): External identifier for the concept map +* [MessageDefinition](messagedefinition.html): External identifier for the message definition +* [StructureDefinition](structuredefinition.html): External identifier for the structure definition +* [StructureMap](structuremap.html): External identifier for the structure map +* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities +* [ValueSet](valueset.html): External identifier for the value set +
+ * Type: token
+ * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier", description="Multiple Resources: \r\n\r\n* [CodeSystem](codesystem.html): External identifier for the code system\r\n* [ConceptMap](conceptmap.html): External identifier for the concept map\r\n* [MessageDefinition](messagedefinition.html): External identifier for the message definition\r\n* [StructureDefinition](structuredefinition.html): External identifier for the structure definition\r\n* [StructureMap](structuremap.html): External identifier for the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities\r\n* [ValueSet](valueset.html): External identifier for the value set\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [CodeSystem](codesystem.html): External identifier for the code system +* [ConceptMap](conceptmap.html): External identifier for the concept map +* [MessageDefinition](messagedefinition.html): External identifier for the message definition +* [StructureDefinition](structuredefinition.html): External identifier for the structure definition +* [StructureMap](structuremap.html): External identifier for the structure map +* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities +* [ValueSet](valueset.html): External identifier for the value set +
+ * Type: token
+ * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestReport.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestReport.java index b237143e5..a3e0b7b96 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestReport.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestReport.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -104,7 +104,6 @@ public class TestReport extends DomainResource { case FAIL: return "fail"; case WARNING: return "warning"; case ERROR: return "error"; - case NULL: return null; default: return "?"; } } @@ -115,7 +114,6 @@ public class TestReport extends DomainResource { case FAIL: return "http://hl7.org/fhir/report-action-result-codes"; case WARNING: return "http://hl7.org/fhir/report-action-result-codes"; case ERROR: return "http://hl7.org/fhir/report-action-result-codes"; - case NULL: return null; default: return "?"; } } @@ -126,7 +124,6 @@ public class TestReport extends DomainResource { case FAIL: return "The action failed."; case WARNING: return "The action passed but with warnings."; case ERROR: return "The action encountered a fatal error and the engine was unable to process."; - case NULL: return null; default: return "?"; } } @@ -137,7 +134,6 @@ public class TestReport extends DomainResource { case FAIL: return "Fail"; case WARNING: return "Warning"; case ERROR: return "Error"; - case NULL: return null; default: return "?"; } } @@ -234,7 +230,6 @@ public class TestReport extends DomainResource { case TESTENGINE: return "test-engine"; case CLIENT: return "client"; case SERVER: return "server"; - case NULL: return null; default: return "?"; } } @@ -243,7 +238,6 @@ public class TestReport extends DomainResource { case TESTENGINE: return "http://hl7.org/fhir/report-participant-type"; case CLIENT: return "http://hl7.org/fhir/report-participant-type"; case SERVER: return "http://hl7.org/fhir/report-participant-type"; - case NULL: return null; default: return "?"; } } @@ -252,7 +246,6 @@ public class TestReport extends DomainResource { case TESTENGINE: return "The test execution engine."; case CLIENT: return "A FHIR Client."; case SERVER: return "A FHIR Server."; - case NULL: return null; default: return "?"; } } @@ -261,7 +254,6 @@ public class TestReport extends DomainResource { case TESTENGINE: return "Test Engine"; case CLIENT: return "Client"; case SERVER: return "Server"; - case NULL: return null; default: return "?"; } } @@ -346,7 +338,6 @@ public class TestReport extends DomainResource { case PASS: return "pass"; case FAIL: return "fail"; case PENDING: return "pending"; - case NULL: return null; default: return "?"; } } @@ -355,7 +346,6 @@ public class TestReport extends DomainResource { case PASS: return "http://hl7.org/fhir/report-result-codes"; case FAIL: return "http://hl7.org/fhir/report-result-codes"; case PENDING: return "http://hl7.org/fhir/report-result-codes"; - case NULL: return null; default: return "?"; } } @@ -364,7 +354,6 @@ public class TestReport extends DomainResource { case PASS: return "All test operations successfully passed all asserts."; case FAIL: return "One or more test operations failed one or more asserts."; case PENDING: return "One or more test operations is pending execution completion."; - case NULL: return null; default: return "?"; } } @@ -373,7 +362,6 @@ public class TestReport extends DomainResource { case PASS: return "Pass"; case FAIL: return "Fail"; case PENDING: return "Pending"; - case NULL: return null; default: return "?"; } } @@ -472,7 +460,6 @@ public class TestReport extends DomainResource { case WAITING: return "waiting"; case STOPPED: return "stopped"; case ENTEREDINERROR: return "entered-in-error"; - case NULL: return null; default: return "?"; } } @@ -483,7 +470,6 @@ public class TestReport extends DomainResource { case WAITING: return "http://hl7.org/fhir/report-status-codes"; case STOPPED: return "http://hl7.org/fhir/report-status-codes"; case ENTEREDINERROR: return "http://hl7.org/fhir/report-status-codes"; - case NULL: return null; default: return "?"; } } @@ -494,7 +480,6 @@ public class TestReport extends DomainResource { case WAITING: return "A test operation is waiting for an external client request."; case STOPPED: return "The test script execution was manually stopped."; case ENTEREDINERROR: return "This test report was entered or created in error."; - case NULL: return null; default: return "?"; } } @@ -505,7 +490,6 @@ public class TestReport extends DomainResource { case WAITING: return "Waiting"; case STOPPED: return "Stopped"; case ENTEREDINERROR: return "Entered In Error"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestScript.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestScript.java index 5e63e42c9..bec8ae4f4 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestScript.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TestScript.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -82,7 +82,6 @@ public class TestScript extends CanonicalResource { switch (this) { case RESPONSE: return "response"; case REQUEST: return "request"; - case NULL: return null; default: return "?"; } } @@ -90,7 +89,6 @@ public class TestScript extends CanonicalResource { switch (this) { case RESPONSE: return "http://hl7.org/fhir/assert-direction-codes"; case REQUEST: return "http://hl7.org/fhir/assert-direction-codes"; - case NULL: return null; default: return "?"; } } @@ -98,7 +96,6 @@ public class TestScript extends CanonicalResource { switch (this) { case RESPONSE: return "The assertion is evaluated on the response. This is the default value."; case REQUEST: return "The assertion is evaluated on the request."; - case NULL: return null; default: return "?"; } } @@ -106,7 +103,6 @@ public class TestScript extends CanonicalResource { switch (this) { case RESPONSE: return "response"; case REQUEST: return "request"; - case NULL: return null; default: return "?"; } } @@ -241,7 +237,6 @@ public class TestScript extends CanonicalResource { case CONTAINS: return "contains"; case NOTCONTAINS: return "notContains"; case EVAL: return "eval"; - case NULL: return null; default: return "?"; } } @@ -258,7 +253,6 @@ public class TestScript extends CanonicalResource { case CONTAINS: return "http://hl7.org/fhir/assert-operator-codes"; case NOTCONTAINS: return "http://hl7.org/fhir/assert-operator-codes"; case EVAL: return "http://hl7.org/fhir/assert-operator-codes"; - case NULL: return null; default: return "?"; } } @@ -275,7 +269,6 @@ public class TestScript extends CanonicalResource { case CONTAINS: return "Compare value string contains a known value."; case NOTCONTAINS: return "Compare value string does not contain a known value."; case EVAL: return "Evaluate the FHIRPath expression as a boolean condition."; - case NULL: return null; default: return "?"; } } @@ -292,7 +285,6 @@ public class TestScript extends CanonicalResource { case CONTAINS: return "contains"; case NOTCONTAINS: return "notContains"; case EVAL: return "evaluate"; - case NULL: return null; default: return "?"; } } @@ -488,7 +480,6 @@ public class TestScript extends CanonicalResource { case GONE: return "gone"; case PRECONDITIONFAILED: return "preconditionFailed"; case UNPROCESSABLE: return "unprocessable"; - case NULL: return null; default: return "?"; } } @@ -506,7 +497,6 @@ public class TestScript extends CanonicalResource { case GONE: return "http://hl7.org/fhir/assert-response-code-types"; case PRECONDITIONFAILED: return "http://hl7.org/fhir/assert-response-code-types"; case UNPROCESSABLE: return "http://hl7.org/fhir/assert-response-code-types"; - case NULL: return null; default: return "?"; } } @@ -524,7 +514,6 @@ public class TestScript extends CanonicalResource { case GONE: return "Response code is 410."; case PRECONDITIONFAILED: return "Response code is 412."; case UNPROCESSABLE: return "Response code is 422."; - case NULL: return null; default: return "?"; } } @@ -542,7 +531,6 @@ public class TestScript extends CanonicalResource { case GONE: return "gone"; case PRECONDITIONFAILED: return "preconditionFailed"; case UNPROCESSABLE: return "unprocessable"; - case NULL: return null; default: return "?"; } } @@ -806,6 +794,10 @@ public class TestScript extends CanonicalResource { * A relationship of two Quantity values - expressed as a numerator and a denominator. */ RATIO, + /** + * A range of ratios expressed as a low and high numerator and a denominator. + */ + RATIORANGE, /** * A reference from one resource to another. */ @@ -859,11 +851,11 @@ public class TestScript extends CanonicalResource { */ CODE, /** - * A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates. + * A date or partial date (e.g. just year or year + month). There is no UTC offset. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates. */ DATE, /** - * A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates. + * A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a UTC offset SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates. */ DATETIME, /** @@ -935,7 +927,7 @@ public class TestScript extends CanonicalResource { */ ACTIVITYDEFINITION, /** - * A pharmaceutical product described in terms of its composition and dose form. + * A medicinal product in the final form which is suitable for administering to a patient (after any mixing of multiple components, dissolution etc. has been performed). */ ADMINISTRABLEPRODUCTDEFINITION, /** @@ -978,6 +970,10 @@ public class TestScript extends CanonicalResource { * A container for a collection of resources. */ BUNDLE, + /** + * Common Ancestor declaration for conformance and knowledge artifact resources. + */ + CANONICALRESOURCE, /** * A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation. */ @@ -1007,7 +1003,7 @@ public class TestScript extends CanonicalResource { */ CHARGEITEMDEFINITION, /** - * The Citation. + * The Citation Resource enables reference to any knowledge artifact for purposes of identification and attribution. The Citation Resource supports existing reference structures and developing publication practices such as versioning, expressing complex contributorship roles, and referencing computable resources. */ CITATION, /** @@ -1023,7 +1019,7 @@ public class TestScript extends CanonicalResource { */ CLINICALIMPRESSION, /** - * A single usage issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure. + * A single issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure. */ CLINICALUSEISSUE, /** @@ -1101,9 +1097,9 @@ public class TestScript extends CanonicalResource { /** * A record of a device being used by a patient where the record is the result of a report from the patient or a clinician. */ - DEVICEUSESTATEMENT, + DEVICEUSAGE, /** - * The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. + * The findings and interpretation of diagnostic tests performed on patients, groups of patients, products, substances, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. The report also includes non-clinical context such as batch analysis and stability reporting of products and substances. */ DIAGNOSTICREPORT, /** @@ -1143,11 +1139,11 @@ public class TestScript extends CanonicalResource { */ EVENTDEFINITION, /** - * This represents statistics, certainty, both the intended and actual population, and evidence variables. + * The Evidence Resource provides a machine-interpretable expression of an evidence concept including the evidence variables (eg population, exposures/interventions, comparators, outcomes, measured variables, confounding variables), the statistics, and the certainty of this evidence. */ EVIDENCE, /** - * The EvidenceReport. + * The EvidenceReport Resource is a specialized container for a collection of resources and codable concepts, adapted to support compositions of Evidence, EvidenceVariable, and Citation resources and related concepts. */ EVIDENCEREPORT, /** @@ -1218,6 +1214,10 @@ public class TestScript extends CanonicalResource { * Details of a Health Insurance product/plan provided by an organization. */ INSURANCEPLAN, + /** + * A report of inventory or stock items. + */ + INVENTORYREPORT, /** * Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose. */ @@ -1271,11 +1271,11 @@ public class TestScript extends CanonicalResource { */ MEDICATIONREQUEST, /** - * A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information. + * A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information.\n\nThe MedicationUsage resource was previously called MedicationStatement. */ MEDICATIONUSAGE, /** - * Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use). + * Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use, drug catalogs). */ MEDICINALPRODUCTDEFINITION, /** @@ -1286,6 +1286,10 @@ public class TestScript extends CanonicalResource { * The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle. */ MESSAGEHEADER, + /** + * Common Ancestor declaration for conformance and knowledge artifact resources. + */ + METADATARESOURCE, /** * Raw data describing a biological sequence. */ @@ -1359,7 +1363,7 @@ public class TestScript extends CanonicalResource { */ PERSON, /** - * This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols. + * This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical and non-clinical artifacts such as clinical decision support rules, order sets, protocols, and drug quality specifications. */ PLANDEFINITION, /** @@ -1371,7 +1375,7 @@ public class TestScript extends CanonicalResource { */ PRACTITIONERROLE, /** - * An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy. + * An action that is or was performed on or for a patient, practitioner, device, organization, or location. For example, this can be a physical intervention on a patient like an operation, or less invasive like long term services, counseling, or hypnotherapy. This can be a quality or safety inspection for a location, organization, or device. This can be an accreditation procedure on a practitioner for licensing. */ PROCEDURE, /** @@ -1387,7 +1391,7 @@ public class TestScript extends CanonicalResource { */ QUESTIONNAIRERESPONSE, /** - * The regulatory authorization of a medicinal product, device or process. + * Regulatory approval, clearance or licencing related to a regulated product, treatment, facility or activity that is cited in a guidance, regulation, rule or legislative act. An example is Market Authorization relating to a Medicinal Product. */ REGULATEDAUTHORIZATION, /** @@ -1399,7 +1403,7 @@ public class TestScript extends CanonicalResource { */ REQUESTGROUP, /** - * A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects. + * A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects or stability data about drug products or drug substances. */ RESEARCHSTUDY, /** @@ -1511,7 +1515,7 @@ public class TestScript extends CanonicalResource { */ TESTSCRIPT, /** - * A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html). + * A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [CodeSystem](codesystem.html) definitions and their use in [coded elements](terminologies.html). */ VALUESET, /** @@ -1609,6 +1613,8 @@ public class TestScript extends CanonicalResource { return RANGE; if ("Ratio".equals(codeString)) return RATIO; + if ("RatioRange".equals(codeString)) + return RATIORANGE; if ("Reference".equals(codeString)) return REFERENCE; if ("RelatedArtifact".equals(codeString)) @@ -1695,6 +1701,8 @@ public class TestScript extends CanonicalResource { return BODYSTRUCTURE; if ("Bundle".equals(codeString)) return BUNDLE; + if ("CanonicalResource".equals(codeString)) + return CANONICALRESOURCE; if ("CapabilityStatement".equals(codeString)) return CAPABILITYSTATEMENT; if ("CapabilityStatement2".equals(codeString)) @@ -1755,8 +1763,8 @@ public class TestScript extends CanonicalResource { return DEVICEMETRIC; if ("DeviceRequest".equals(codeString)) return DEVICEREQUEST; - if ("DeviceUseStatement".equals(codeString)) - return DEVICEUSESTATEMENT; + if ("DeviceUsage".equals(codeString)) + return DEVICEUSAGE; if ("DiagnosticReport".equals(codeString)) return DIAGNOSTICREPORT; if ("DocumentManifest".equals(codeString)) @@ -1815,6 +1823,8 @@ public class TestScript extends CanonicalResource { return INGREDIENT; if ("InsurancePlan".equals(codeString)) return INSURANCEPLAN; + if ("InventoryReport".equals(codeString)) + return INVENTORYREPORT; if ("Invoice".equals(codeString)) return INVOICE; if ("Library".equals(codeString)) @@ -1849,6 +1859,8 @@ public class TestScript extends CanonicalResource { return MESSAGEDEFINITION; if ("MessageHeader".equals(codeString)) return MESSAGEHEADER; + if ("MetadataResource".equals(codeString)) + return METADATARESOURCE; if ("MolecularSequence".equals(codeString)) return MOLECULARSEQUENCE; if ("NamingSystem".equals(codeString)) @@ -2014,6 +2026,7 @@ public class TestScript extends CanonicalResource { case QUANTITY: return "Quantity"; case RANGE: return "Range"; case RATIO: return "Ratio"; + case RATIORANGE: return "RatioRange"; case REFERENCE: return "Reference"; case RELATEDARTIFACT: return "RelatedArtifact"; case SAMPLEDDATA: return "SampledData"; @@ -2057,6 +2070,7 @@ public class TestScript extends CanonicalResource { case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct"; case BODYSTRUCTURE: return "BodyStructure"; case BUNDLE: return "Bundle"; + case CANONICALRESOURCE: return "CanonicalResource"; case CAPABILITYSTATEMENT: return "CapabilityStatement"; case CAPABILITYSTATEMENT2: return "CapabilityStatement2"; case CAREPLAN: return "CarePlan"; @@ -2087,7 +2101,7 @@ public class TestScript extends CanonicalResource { case DEVICEDEFINITION: return "DeviceDefinition"; case DEVICEMETRIC: return "DeviceMetric"; case DEVICEREQUEST: return "DeviceRequest"; - case DEVICEUSESTATEMENT: return "DeviceUseStatement"; + case DEVICEUSAGE: return "DeviceUsage"; case DIAGNOSTICREPORT: return "DiagnosticReport"; case DOCUMENTMANIFEST: return "DocumentManifest"; case DOCUMENTREFERENCE: return "DocumentReference"; @@ -2117,6 +2131,7 @@ public class TestScript extends CanonicalResource { case IMPLEMENTATIONGUIDE: return "ImplementationGuide"; case INGREDIENT: return "Ingredient"; case INSURANCEPLAN: return "InsurancePlan"; + case INVENTORYREPORT: return "InventoryReport"; case INVOICE: return "Invoice"; case LIBRARY: return "Library"; case LINKAGE: return "Linkage"; @@ -2134,6 +2149,7 @@ public class TestScript extends CanonicalResource { case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition"; case MESSAGEDEFINITION: return "MessageDefinition"; case MESSAGEHEADER: return "MessageHeader"; + case METADATARESOURCE: return "MetadataResource"; case MOLECULARSEQUENCE: return "MolecularSequence"; case NAMINGSYSTEM: return "NamingSystem"; case NUTRITIONINTAKE: return "NutritionIntake"; @@ -2193,7 +2209,6 @@ public class TestScript extends CanonicalResource { case VALUESET: return "ValueSet"; case VERIFICATIONRESULT: return "VerificationResult"; case VISIONPRESCRIPTION: return "VisionPrescription"; - case NULL: return null; default: return "?"; } } @@ -2239,6 +2254,7 @@ public class TestScript extends CanonicalResource { case QUANTITY: return "http://hl7.org/fhir/data-types"; case RANGE: return "http://hl7.org/fhir/data-types"; case RATIO: return "http://hl7.org/fhir/data-types"; + case RATIORANGE: return "http://hl7.org/fhir/data-types"; case REFERENCE: return "http://hl7.org/fhir/data-types"; case RELATEDARTIFACT: return "http://hl7.org/fhir/data-types"; case SAMPLEDDATA: return "http://hl7.org/fhir/data-types"; @@ -2282,6 +2298,7 @@ public class TestScript extends CanonicalResource { case BIOLOGICALLYDERIVEDPRODUCT: return "http://hl7.org/fhir/resource-types"; case BODYSTRUCTURE: return "http://hl7.org/fhir/resource-types"; case BUNDLE: return "http://hl7.org/fhir/resource-types"; + case CANONICALRESOURCE: return "http://hl7.org/fhir/resource-types"; case CAPABILITYSTATEMENT: return "http://hl7.org/fhir/resource-types"; case CAPABILITYSTATEMENT2: return "http://hl7.org/fhir/resource-types"; case CAREPLAN: return "http://hl7.org/fhir/resource-types"; @@ -2312,7 +2329,7 @@ public class TestScript extends CanonicalResource { case DEVICEDEFINITION: return "http://hl7.org/fhir/resource-types"; case DEVICEMETRIC: return "http://hl7.org/fhir/resource-types"; case DEVICEREQUEST: return "http://hl7.org/fhir/resource-types"; - case DEVICEUSESTATEMENT: return "http://hl7.org/fhir/resource-types"; + case DEVICEUSAGE: return "http://hl7.org/fhir/resource-types"; case DIAGNOSTICREPORT: return "http://hl7.org/fhir/resource-types"; case DOCUMENTMANIFEST: return "http://hl7.org/fhir/resource-types"; case DOCUMENTREFERENCE: return "http://hl7.org/fhir/resource-types"; @@ -2342,6 +2359,7 @@ public class TestScript extends CanonicalResource { case IMPLEMENTATIONGUIDE: return "http://hl7.org/fhir/resource-types"; case INGREDIENT: return "http://hl7.org/fhir/resource-types"; case INSURANCEPLAN: return "http://hl7.org/fhir/resource-types"; + case INVENTORYREPORT: return "http://hl7.org/fhir/resource-types"; case INVOICE: return "http://hl7.org/fhir/resource-types"; case LIBRARY: return "http://hl7.org/fhir/resource-types"; case LINKAGE: return "http://hl7.org/fhir/resource-types"; @@ -2359,6 +2377,7 @@ public class TestScript extends CanonicalResource { case MEDICINALPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types"; case MESSAGEDEFINITION: return "http://hl7.org/fhir/resource-types"; case MESSAGEHEADER: return "http://hl7.org/fhir/resource-types"; + case METADATARESOURCE: return "http://hl7.org/fhir/resource-types"; case MOLECULARSEQUENCE: return "http://hl7.org/fhir/resource-types"; case NAMINGSYSTEM: return "http://hl7.org/fhir/resource-types"; case NUTRITIONINTAKE: return "http://hl7.org/fhir/resource-types"; @@ -2418,7 +2437,6 @@ public class TestScript extends CanonicalResource { case VALUESET: return "http://hl7.org/fhir/resource-types"; case VERIFICATIONRESULT: return "http://hl7.org/fhir/resource-types"; case VISIONPRESCRIPTION: return "http://hl7.org/fhir/resource-types"; - case NULL: return null; default: return "?"; } } @@ -2464,6 +2482,7 @@ public class TestScript extends CanonicalResource { case QUANTITY: return "A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies."; case RANGE: return "A set of ordered Quantities defined by a low and high limit."; case RATIO: return "A relationship of two Quantity values - expressed as a numerator and a denominator."; + case RATIORANGE: return "A range of ratios expressed as a low and high numerator and a denominator."; case REFERENCE: return "A reference from one resource to another."; case RELATEDARTIFACT: return "Related artifacts such as additional documentation, justification, or bibliographic references."; case SAMPLEDDATA: return "A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data."; @@ -2477,8 +2496,8 @@ public class TestScript extends CanonicalResource { case BOOLEAN: return "Value of \"true\" or \"false\""; case CANONICAL: return "A URI that is a reference to a canonical URL on a FHIR resource"; case CODE: return "A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents"; - case DATE: return "A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates."; - case DATETIME: return "A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates."; + case DATE: return "A date or partial date (e.g. just year or year + month). There is no UTC offset. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates."; + case DATETIME: return "A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a UTC offset SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates."; case DECIMAL: return "A rational number with implicit precision"; case ID: return "Any combination of letters, numerals, \"-\" and \".\", with a length limit of 64 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Ids are case-insensitive."; case INSTANT: return "An instant in time - known at least to the second"; @@ -2496,7 +2515,7 @@ public class TestScript extends CanonicalResource { case XHTML: return "XHTML format, as defined by W3C, but restricted usage (mainly, no active content)"; case ACCOUNT: return "A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centers, etc."; case ACTIVITYDEFINITION: return "This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context."; - case ADMINISTRABLEPRODUCTDEFINITION: return "A pharmaceutical product described in terms of its composition and dose form."; + case ADMINISTRABLEPRODUCTDEFINITION: return "A medicinal product in the final form which is suitable for administering to a patient (after any mixing of multiple components, dissolution etc. has been performed)."; case ADVERSEEVENT: return "An event (i.e. any change to current patient status) that may be related to unintended effects on a patient or research subject. The unintended effects may require additional monitoring, treatment or hospitalization or may result in death. The AdverseEvent resource also extends to potential or avoided events that could have had such effects."; case ALLERGYINTOLERANCE: return "Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance."; case APPOINTMENT: return "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)."; @@ -2507,6 +2526,7 @@ public class TestScript extends CanonicalResource { case BIOLOGICALLYDERIVEDPRODUCT: return "A material substance originating from a biological entity intended to be transplanted or infused\ninto another (possibly the same) biological entity."; case BODYSTRUCTURE: return "Record details about an anatomical structure. This resource may be used when a coded concept does not provide the necessary detail needed for the use case."; case BUNDLE: return "A container for a collection of resources."; + case CANONICALRESOURCE: return "Common Ancestor declaration for conformance and knowledge artifact resources."; case CAPABILITYSTATEMENT: return "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; case CAPABILITYSTATEMENT2: return "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; case CAREPLAN: return "Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions."; @@ -2514,11 +2534,11 @@ public class TestScript extends CanonicalResource { case CATALOGENTRY: return "Catalog entries are wrappers that contextualize items included in a catalog."; case CHARGEITEM: return "The resource ChargeItem describes the provision of healthcare provider products for a certain patient, therefore referring not only to the product, but containing in addition details of the provision, like date, time, amounts and participating organizations and persons. Main Usage of the ChargeItem is to enable the billing process and internal cost allocation."; case CHARGEITEMDEFINITION: return "The ChargeItemDefinition resource provides the properties that apply to the (billing) codes necessary to calculate costs and prices. The properties may differ largely depending on type and realm, therefore this resource gives only a rough structure and requires profiling for each type of billing code system."; - case CITATION: return "The Citation."; + case CITATION: return "The Citation Resource enables reference to any knowledge artifact for purposes of identification and attribution. The Citation Resource supports existing reference structures and developing publication practices such as versioning, expressing complex contributorship roles, and referencing computable resources."; case CLAIM: return "A provider issued list of professional services and products which have been provided, or are to be provided, to a patient which is sent to an insurer for reimbursement."; case CLAIMRESPONSE: return "This resource provides the adjudication details from the processing of a Claim resource."; case CLINICALIMPRESSION: return "A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. This resource is called \"ClinicalImpression\" rather than \"ClinicalAssessment\" to avoid confusion with the recording of assessment tools such as Apgar score."; - case CLINICALUSEISSUE: return "A single usage issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure."; + case CLINICALUSEISSUE: return "A single issue - either an indication, contraindication, interaction or an undesirable effect for a medicinal product, medication, device or procedure."; case CODESYSTEM: return "The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content."; case COMMUNICATION: return "A clinical or business level record of information being transmitted or shared; e.g. an alert that was sent to a responsible provider, a public health agency communication to a provider/reporter in response to a case report for a reportable condition."; case COMMUNICATIONREQUEST: return "A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition."; @@ -2537,8 +2557,8 @@ public class TestScript extends CanonicalResource { case DEVICEDEFINITION: return "The characteristics, operational status and capabilities of a medical-related component of a medical device."; case DEVICEMETRIC: return "Describes a measurement, calculation or setting capability of a medical device."; case DEVICEREQUEST: return "Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker."; - case DEVICEUSESTATEMENT: return "A record of a device being used by a patient where the record is the result of a report from the patient or a clinician."; - case DIAGNOSTICREPORT: return "The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports."; + case DEVICEUSAGE: return "A record of a device being used by a patient where the record is the result of a report from the patient or a clinician."; + case DIAGNOSTICREPORT: return "The findings and interpretation of diagnostic tests performed on patients, groups of patients, products, substances, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. The report also includes non-clinical context such as batch analysis and stability reporting of products and substances."; case DOCUMENTMANIFEST: return "A collection of documents compiled for a purpose together with metadata that applies to the collection."; case DOCUMENTREFERENCE: return "A reference to a document of any kind for any purpose. While the term “document” implies a more narrow focus, for this resource this \"document\" encompasses *any* serialized object with a mime-type, it includes formal patient-centric documents (CDA), clinical notes, scanned paper, non-patient specific documents like policy text, as well as a photo, video, or audio recording acquired or used in healthcare. The DocumentReference resource provides metadata about the document so that the document can be discovered and managed. The actual content may be inline base64 encoded data or provided by direct reference."; case DOMAINRESOURCE: return "A resource that includes narrative, extensions, and contained resources."; @@ -2548,8 +2568,8 @@ public class TestScript extends CanonicalResource { case ENROLLMENTRESPONSE: return "This resource provides enrollment and plan details from the processing of an EnrollmentRequest resource."; case EPISODEOFCARE: return "An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time."; case EVENTDEFINITION: return "The EventDefinition resource provides a reusable description of when a particular event can occur."; - case EVIDENCE: return "This represents statistics, certainty, both the intended and actual population, and evidence variables."; - case EVIDENCEREPORT: return "The EvidenceReport."; + case EVIDENCE: return "The Evidence Resource provides a machine-interpretable expression of an evidence concept including the evidence variables (eg population, exposures/interventions, comparators, outcomes, measured variables, confounding variables), the statistics, and the certainty of this evidence."; + case EVIDENCEREPORT: return "The EvidenceReport Resource is a specialized container for a collection of resources and codable concepts, adapted to support compositions of Evidence, EvidenceVariable, and Citation resources and related concepts."; case EVIDENCEVARIABLE: return "The EvidenceVariable resource describes an element that knowledge (Evidence) is about."; case EXAMPLESCENARIO: return "Example of workflow instance."; case EXPLANATIONOFBENEFIT: return "This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided."; @@ -2567,6 +2587,7 @@ public class TestScript extends CanonicalResource { case IMPLEMENTATIONGUIDE: return "A set of rules of how a particular interoperability or standards problem is solved - typically through the use of FHIR resources. This resource is used to gather all the parts of an implementation guide into a logical whole and to publish a computable definition of all the parts."; case INGREDIENT: return "An ingredient of a manufactured item or pharmaceutical product."; case INSURANCEPLAN: return "Details of a Health Insurance product/plan provided by an organization."; + case INVENTORYREPORT: return "A report of inventory or stock items."; case INVOICE: return "Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose."; case LIBRARY: return "The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets."; case LINKAGE: return "Identifies two or more records (resource instances) that refer to the same real-world \"occurrence\"."; @@ -2580,10 +2601,11 @@ public class TestScript extends CanonicalResource { case MEDICATIONDISPENSE: return "Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order."; case MEDICATIONKNOWLEDGE: return "Information about a medication that is used to support knowledge."; case MEDICATIONREQUEST: return "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns."; - case MEDICATIONUSAGE: return "A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information."; - case MEDICINALPRODUCTDEFINITION: return "Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use)."; + case MEDICATIONUSAGE: return "A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information.\n\nThe MedicationUsage resource was previously called MedicationStatement."; + case MEDICINALPRODUCTDEFINITION: return "Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use, drug catalogs)."; case MESSAGEDEFINITION: return "Defines the characteristics of a message that can be shared between systems, including the type of event that initiates the message, the content to be transmitted and what response(s), if any, are permitted."; case MESSAGEHEADER: return "The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle."; + case METADATARESOURCE: return "Common Ancestor declaration for conformance and knowledge artifact resources."; case MOLECULARSEQUENCE: return "Raw data describing a biological sequence."; case NAMINGSYSTEM: return "A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a \"System\" used within the Identifier and Coding data types."; case NUTRITIONINTAKE: return "A record of food or fluid that is being consumed by a patient. A NutritionIntake may indicate that the patient may be consuming the food or fluid now or has consumed the food or fluid in the past. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay or through an app that tracks food or fluids consumed. The consumption information may come from sources such as the patient's memory, from a nutrition label, or from a clinician documenting observed intake."; @@ -2602,17 +2624,17 @@ public class TestScript extends CanonicalResource { case PAYMENTRECONCILIATION: return "This resource provides the details including amount of a payment and allocates the payment items being paid."; case PERMISSION: return "Permission."; case PERSON: return "Demographics and administrative information about a person independent of a specific health-related context."; - case PLANDEFINITION: return "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols."; + case PLANDEFINITION: return "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical and non-clinical artifacts such as clinical decision support rules, order sets, protocols, and drug quality specifications."; case PRACTITIONER: return "A person who is directly or indirectly involved in the provisioning of healthcare."; case PRACTITIONERROLE: return "A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time."; - case PROCEDURE: return "An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy."; + case PROCEDURE: return "An action that is or was performed on or for a patient, practitioner, device, organization, or location. For example, this can be a physical intervention on a patient like an operation, or less invasive like long term services, counseling, or hypnotherapy. This can be a quality or safety inspection for a location, organization, or device. This can be an accreditation procedure on a practitioner for licensing."; case PROVENANCE: return "Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies."; case QUESTIONNAIRE: return "A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection."; case QUESTIONNAIRERESPONSE: return "A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to."; - case REGULATEDAUTHORIZATION: return "The regulatory authorization of a medicinal product, device or process."; + case REGULATEDAUTHORIZATION: return "Regulatory approval, clearance or licencing related to a regulated product, treatment, facility or activity that is cited in a guidance, regulation, rule or legislative act. An example is Market Authorization relating to a Medicinal Product."; case RELATEDPERSON: return "Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process."; case REQUESTGROUP: return "A group of related requests that can be used to capture intended activities that have inter-dependencies such as \"give this medication after that one\"."; - case RESEARCHSTUDY: return "A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects."; + case RESEARCHSTUDY: return "A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects or stability data about drug products or drug substances."; case RESEARCHSUBJECT: return "A physical entity which is the primary unit of operational and/or administrative interest in a study."; case RESOURCE: return "This is the base resource type for everything."; case RISKASSESSMENT: return "An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome."; @@ -2640,10 +2662,9 @@ public class TestScript extends CanonicalResource { case TERMINOLOGYCAPABILITIES: return "A TerminologyCapabilities resource documents a set of capabilities (behaviors) of a FHIR Terminology Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; case TESTREPORT: return "A summary of information based on the results of executing a TestScript."; case TESTSCRIPT: return "A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification."; - case VALUESET: return "A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html)."; + case VALUESET: return "A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [CodeSystem](codesystem.html) definitions and their use in [coded elements](terminologies.html)."; case VERIFICATIONRESULT: return "Describes validation requirements, source(s), status and dates for one or more elements."; case VISIONPRESCRIPTION: return "An authorization for the provision of glasses and/or contact lenses to a patient."; - case NULL: return null; default: return "?"; } } @@ -2689,6 +2710,7 @@ public class TestScript extends CanonicalResource { case QUANTITY: return "Quantity"; case RANGE: return "Range"; case RATIO: return "Ratio"; + case RATIORANGE: return "RatioRange"; case REFERENCE: return "Reference"; case RELATEDARTIFACT: return "RelatedArtifact"; case SAMPLEDDATA: return "SampledData"; @@ -2732,6 +2754,7 @@ public class TestScript extends CanonicalResource { case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct"; case BODYSTRUCTURE: return "BodyStructure"; case BUNDLE: return "Bundle"; + case CANONICALRESOURCE: return "CanonicalResource"; case CAPABILITYSTATEMENT: return "CapabilityStatement"; case CAPABILITYSTATEMENT2: return "CapabilityStatement2"; case CAREPLAN: return "CarePlan"; @@ -2762,7 +2785,7 @@ public class TestScript extends CanonicalResource { case DEVICEDEFINITION: return "DeviceDefinition"; case DEVICEMETRIC: return "DeviceMetric"; case DEVICEREQUEST: return "DeviceRequest"; - case DEVICEUSESTATEMENT: return "DeviceUseStatement"; + case DEVICEUSAGE: return "DeviceUsage"; case DIAGNOSTICREPORT: return "DiagnosticReport"; case DOCUMENTMANIFEST: return "DocumentManifest"; case DOCUMENTREFERENCE: return "DocumentReference"; @@ -2792,6 +2815,7 @@ public class TestScript extends CanonicalResource { case IMPLEMENTATIONGUIDE: return "ImplementationGuide"; case INGREDIENT: return "Ingredient"; case INSURANCEPLAN: return "InsurancePlan"; + case INVENTORYREPORT: return "InventoryReport"; case INVOICE: return "Invoice"; case LIBRARY: return "Library"; case LINKAGE: return "Linkage"; @@ -2809,6 +2833,7 @@ public class TestScript extends CanonicalResource { case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition"; case MESSAGEDEFINITION: return "MessageDefinition"; case MESSAGEHEADER: return "MessageHeader"; + case METADATARESOURCE: return "MetadataResource"; case MOLECULARSEQUENCE: return "MolecularSequence"; case NAMINGSYSTEM: return "NamingSystem"; case NUTRITIONINTAKE: return "NutritionIntake"; @@ -2868,7 +2893,6 @@ public class TestScript extends CanonicalResource { case VALUESET: return "ValueSet"; case VERIFICATIONRESULT: return "VerificationResult"; case VISIONPRESCRIPTION: return "VisionPrescription"; - case NULL: return null; default: return "?"; } } @@ -2959,6 +2983,8 @@ public class TestScript extends CanonicalResource { return FHIRDefinedType.RANGE; if ("Ratio".equals(codeString)) return FHIRDefinedType.RATIO; + if ("RatioRange".equals(codeString)) + return FHIRDefinedType.RATIORANGE; if ("Reference".equals(codeString)) return FHIRDefinedType.REFERENCE; if ("RelatedArtifact".equals(codeString)) @@ -3045,6 +3071,8 @@ public class TestScript extends CanonicalResource { return FHIRDefinedType.BODYSTRUCTURE; if ("Bundle".equals(codeString)) return FHIRDefinedType.BUNDLE; + if ("CanonicalResource".equals(codeString)) + return FHIRDefinedType.CANONICALRESOURCE; if ("CapabilityStatement".equals(codeString)) return FHIRDefinedType.CAPABILITYSTATEMENT; if ("CapabilityStatement2".equals(codeString)) @@ -3105,8 +3133,8 @@ public class TestScript extends CanonicalResource { return FHIRDefinedType.DEVICEMETRIC; if ("DeviceRequest".equals(codeString)) return FHIRDefinedType.DEVICEREQUEST; - if ("DeviceUseStatement".equals(codeString)) - return FHIRDefinedType.DEVICEUSESTATEMENT; + if ("DeviceUsage".equals(codeString)) + return FHIRDefinedType.DEVICEUSAGE; if ("DiagnosticReport".equals(codeString)) return FHIRDefinedType.DIAGNOSTICREPORT; if ("DocumentManifest".equals(codeString)) @@ -3165,6 +3193,8 @@ public class TestScript extends CanonicalResource { return FHIRDefinedType.INGREDIENT; if ("InsurancePlan".equals(codeString)) return FHIRDefinedType.INSURANCEPLAN; + if ("InventoryReport".equals(codeString)) + return FHIRDefinedType.INVENTORYREPORT; if ("Invoice".equals(codeString)) return FHIRDefinedType.INVOICE; if ("Library".equals(codeString)) @@ -3199,6 +3229,8 @@ public class TestScript extends CanonicalResource { return FHIRDefinedType.MESSAGEDEFINITION; if ("MessageHeader".equals(codeString)) return FHIRDefinedType.MESSAGEHEADER; + if ("MetadataResource".equals(codeString)) + return FHIRDefinedType.METADATARESOURCE; if ("MolecularSequence".equals(codeString)) return FHIRDefinedType.MOLECULARSEQUENCE; if ("NamingSystem".equals(codeString)) @@ -3407,6 +3439,8 @@ public class TestScript extends CanonicalResource { return new Enumeration(this, FHIRDefinedType.RANGE); if ("Ratio".equals(codeString)) return new Enumeration(this, FHIRDefinedType.RATIO); + if ("RatioRange".equals(codeString)) + return new Enumeration(this, FHIRDefinedType.RATIORANGE); if ("Reference".equals(codeString)) return new Enumeration(this, FHIRDefinedType.REFERENCE); if ("RelatedArtifact".equals(codeString)) @@ -3493,6 +3527,8 @@ public class TestScript extends CanonicalResource { return new Enumeration(this, FHIRDefinedType.BODYSTRUCTURE); if ("Bundle".equals(codeString)) return new Enumeration(this, FHIRDefinedType.BUNDLE); + if ("CanonicalResource".equals(codeString)) + return new Enumeration(this, FHIRDefinedType.CANONICALRESOURCE); if ("CapabilityStatement".equals(codeString)) return new Enumeration(this, FHIRDefinedType.CAPABILITYSTATEMENT); if ("CapabilityStatement2".equals(codeString)) @@ -3553,8 +3589,8 @@ public class TestScript extends CanonicalResource { return new Enumeration(this, FHIRDefinedType.DEVICEMETRIC); if ("DeviceRequest".equals(codeString)) return new Enumeration(this, FHIRDefinedType.DEVICEREQUEST); - if ("DeviceUseStatement".equals(codeString)) - return new Enumeration(this, FHIRDefinedType.DEVICEUSESTATEMENT); + if ("DeviceUsage".equals(codeString)) + return new Enumeration(this, FHIRDefinedType.DEVICEUSAGE); if ("DiagnosticReport".equals(codeString)) return new Enumeration(this, FHIRDefinedType.DIAGNOSTICREPORT); if ("DocumentManifest".equals(codeString)) @@ -3613,6 +3649,8 @@ public class TestScript extends CanonicalResource { return new Enumeration(this, FHIRDefinedType.INGREDIENT); if ("InsurancePlan".equals(codeString)) return new Enumeration(this, FHIRDefinedType.INSURANCEPLAN); + if ("InventoryReport".equals(codeString)) + return new Enumeration(this, FHIRDefinedType.INVENTORYREPORT); if ("Invoice".equals(codeString)) return new Enumeration(this, FHIRDefinedType.INVOICE); if ("Library".equals(codeString)) @@ -3647,6 +3685,8 @@ public class TestScript extends CanonicalResource { return new Enumeration(this, FHIRDefinedType.MESSAGEDEFINITION); if ("MessageHeader".equals(codeString)) return new Enumeration(this, FHIRDefinedType.MESSAGEHEADER); + if ("MetadataResource".equals(codeString)) + return new Enumeration(this, FHIRDefinedType.METADATARESOURCE); if ("MolecularSequence".equals(codeString)) return new Enumeration(this, FHIRDefinedType.MOLECULARSEQUENCE); if ("NamingSystem".equals(codeString)) @@ -3848,6 +3888,8 @@ public class TestScript extends CanonicalResource { return "Range"; if (code == FHIRDefinedType.RATIO) return "Ratio"; + if (code == FHIRDefinedType.RATIORANGE) + return "RatioRange"; if (code == FHIRDefinedType.REFERENCE) return "Reference"; if (code == FHIRDefinedType.RELATEDARTIFACT) @@ -3934,6 +3976,8 @@ public class TestScript extends CanonicalResource { return "BodyStructure"; if (code == FHIRDefinedType.BUNDLE) return "Bundle"; + if (code == FHIRDefinedType.CANONICALRESOURCE) + return "CanonicalResource"; if (code == FHIRDefinedType.CAPABILITYSTATEMENT) return "CapabilityStatement"; if (code == FHIRDefinedType.CAPABILITYSTATEMENT2) @@ -3994,8 +4038,8 @@ public class TestScript extends CanonicalResource { return "DeviceMetric"; if (code == FHIRDefinedType.DEVICEREQUEST) return "DeviceRequest"; - if (code == FHIRDefinedType.DEVICEUSESTATEMENT) - return "DeviceUseStatement"; + if (code == FHIRDefinedType.DEVICEUSAGE) + return "DeviceUsage"; if (code == FHIRDefinedType.DIAGNOSTICREPORT) return "DiagnosticReport"; if (code == FHIRDefinedType.DOCUMENTMANIFEST) @@ -4054,6 +4098,8 @@ public class TestScript extends CanonicalResource { return "Ingredient"; if (code == FHIRDefinedType.INSURANCEPLAN) return "InsurancePlan"; + if (code == FHIRDefinedType.INVENTORYREPORT) + return "InventoryReport"; if (code == FHIRDefinedType.INVOICE) return "Invoice"; if (code == FHIRDefinedType.LIBRARY) @@ -4088,6 +4134,8 @@ public class TestScript extends CanonicalResource { return "MessageDefinition"; if (code == FHIRDefinedType.MESSAGEHEADER) return "MessageHeader"; + if (code == FHIRDefinedType.METADATARESOURCE) + return "MetadataResource"; if (code == FHIRDefinedType.MOLECULARSEQUENCE) return "MolecularSequence"; if (code == FHIRDefinedType.NAMINGSYSTEM) @@ -4277,7 +4325,6 @@ public class TestScript extends CanonicalResource { case POST: return "post"; case PUT: return "put"; case HEAD: return "head"; - case NULL: return null; default: return "?"; } } @@ -4290,7 +4337,6 @@ public class TestScript extends CanonicalResource { case POST: return "http://hl7.org/fhir/http-operations"; case PUT: return "http://hl7.org/fhir/http-operations"; case HEAD: return "http://hl7.org/fhir/http-operations"; - case NULL: return null; default: return "?"; } } @@ -4303,7 +4349,6 @@ public class TestScript extends CanonicalResource { case POST: return "HTTP POST operation."; case PUT: return "HTTP PUT operation."; case HEAD: return "HTTP HEAD operation."; - case NULL: return null; default: return "?"; } } @@ -4316,7 +4361,6 @@ public class TestScript extends CanonicalResource { case POST: return "POST"; case PUT: return "PUT"; case HEAD: return "HEAD"; - case NULL: return null; default: return "?"; } } @@ -6005,6 +6049,285 @@ public class TestScript extends CanonicalResource { } + } + + @Block() + public static class TestScriptScopeComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The specific conformance artifact being tested. The canonical reference can be version-specific. + */ + @Child(name = "artifact", type = {CanonicalType.class}, order=1, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="The specific conformance artifact being tested", formalDefinition="The specific conformance artifact being tested. The canonical reference can be version-specific." ) + protected CanonicalType artifact; + + /** + * The expectation of whether the test must pass for the system to be considered conformant with the artifact: required - all tests must pass, optional - all test are expected to pass but non-pass status may be allowed. + */ + @Child(name = "conformance", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="required | optional", formalDefinition="The expectation of whether the test must pass for the system to be considered conformant with the artifact: required - all tests must pass, optional - all test are expected to pass but non-pass status may be allowed." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/testscript-scope-conformance-codes") + protected CodeableConcept conformance; + + /** + * The phase of testing for this artifact: unit - development / implementation phase, integration - internal system to system phase, production - live system to system phase (Note, this may involve pii/phi data). + */ + @Child(name = "phase", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="unit | integration | production", formalDefinition="The phase of testing for this artifact: unit - development / implementation phase, integration - internal system to system phase, production - live system to system phase (Note, this may involve pii/phi data)." ) + @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/testscript-scope-phase-codes") + protected CodeableConcept phase; + + private static final long serialVersionUID = 1236847076L; + + /** + * Constructor + */ + public TestScriptScopeComponent() { + super(); + } + + /** + * Constructor + */ + public TestScriptScopeComponent(String artifact) { + super(); + this.setArtifact(artifact); + } + + /** + * @return {@link #artifact} (The specific conformance artifact being tested. The canonical reference can be version-specific.). This is the underlying object with id, value and extensions. The accessor "getArtifact" gives direct access to the value + */ + public CanonicalType getArtifactElement() { + if (this.artifact == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create TestScriptScopeComponent.artifact"); + else if (Configuration.doAutoCreate()) + this.artifact = new CanonicalType(); // bb + return this.artifact; + } + + public boolean hasArtifactElement() { + return this.artifact != null && !this.artifact.isEmpty(); + } + + public boolean hasArtifact() { + return this.artifact != null && !this.artifact.isEmpty(); + } + + /** + * @param value {@link #artifact} (The specific conformance artifact being tested. The canonical reference can be version-specific.). This is the underlying object with id, value and extensions. The accessor "getArtifact" gives direct access to the value + */ + public TestScriptScopeComponent setArtifactElement(CanonicalType value) { + this.artifact = value; + return this; + } + + /** + * @return The specific conformance artifact being tested. The canonical reference can be version-specific. + */ + public String getArtifact() { + return this.artifact == null ? null : this.artifact.getValue(); + } + + /** + * @param value The specific conformance artifact being tested. The canonical reference can be version-specific. + */ + public TestScriptScopeComponent setArtifact(String value) { + if (this.artifact == null) + this.artifact = new CanonicalType(); + this.artifact.setValue(value); + return this; + } + + /** + * @return {@link #conformance} (The expectation of whether the test must pass for the system to be considered conformant with the artifact: required - all tests must pass, optional - all test are expected to pass but non-pass status may be allowed.) + */ + public CodeableConcept getConformance() { + if (this.conformance == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create TestScriptScopeComponent.conformance"); + else if (Configuration.doAutoCreate()) + this.conformance = new CodeableConcept(); // cc + return this.conformance; + } + + public boolean hasConformance() { + return this.conformance != null && !this.conformance.isEmpty(); + } + + /** + * @param value {@link #conformance} (The expectation of whether the test must pass for the system to be considered conformant with the artifact: required - all tests must pass, optional - all test are expected to pass but non-pass status may be allowed.) + */ + public TestScriptScopeComponent setConformance(CodeableConcept value) { + this.conformance = value; + return this; + } + + /** + * @return {@link #phase} (The phase of testing for this artifact: unit - development / implementation phase, integration - internal system to system phase, production - live system to system phase (Note, this may involve pii/phi data).) + */ + public CodeableConcept getPhase() { + if (this.phase == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create TestScriptScopeComponent.phase"); + else if (Configuration.doAutoCreate()) + this.phase = new CodeableConcept(); // cc + return this.phase; + } + + public boolean hasPhase() { + return this.phase != null && !this.phase.isEmpty(); + } + + /** + * @param value {@link #phase} (The phase of testing for this artifact: unit - development / implementation phase, integration - internal system to system phase, production - live system to system phase (Note, this may involve pii/phi data).) + */ + public TestScriptScopeComponent setPhase(CodeableConcept value) { + this.phase = value; + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("artifact", "canonical(Any)", "The specific conformance artifact being tested. The canonical reference can be version-specific.", 0, 1, artifact)); + children.add(new Property("conformance", "CodeableConcept", "The expectation of whether the test must pass for the system to be considered conformant with the artifact: required - all tests must pass, optional - all test are expected to pass but non-pass status may be allowed.", 0, 1, conformance)); + children.add(new Property("phase", "CodeableConcept", "The phase of testing for this artifact: unit - development / implementation phase, integration - internal system to system phase, production - live system to system phase (Note, this may involve pii/phi data).", 0, 1, phase)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case -1228798510: /*artifact*/ return new Property("artifact", "canonical(Any)", "The specific conformance artifact being tested. The canonical reference can be version-specific.", 0, 1, artifact); + case 1374858133: /*conformance*/ return new Property("conformance", "CodeableConcept", "The expectation of whether the test must pass for the system to be considered conformant with the artifact: required - all tests must pass, optional - all test are expected to pass but non-pass status may be allowed.", 0, 1, conformance); + case 106629499: /*phase*/ return new Property("phase", "CodeableConcept", "The phase of testing for this artifact: unit - development / implementation phase, integration - internal system to system phase, production - live system to system phase (Note, this may involve pii/phi data).", 0, 1, phase); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case -1228798510: /*artifact*/ return this.artifact == null ? new Base[0] : new Base[] {this.artifact}; // CanonicalType + case 1374858133: /*conformance*/ return this.conformance == null ? new Base[0] : new Base[] {this.conformance}; // CodeableConcept + case 106629499: /*phase*/ return this.phase == null ? new Base[0] : new Base[] {this.phase}; // CodeableConcept + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case -1228798510: // artifact + this.artifact = TypeConvertor.castToCanonical(value); // CanonicalType + return value; + case 1374858133: // conformance + this.conformance = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + case 106629499: // phase + this.phase = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("artifact")) { + this.artifact = TypeConvertor.castToCanonical(value); // CanonicalType + } else if (name.equals("conformance")) { + this.conformance = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else if (name.equals("phase")) { + this.phase = TypeConvertor.castToCodeableConcept(value); // CodeableConcept + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1228798510: return getArtifactElement(); + case 1374858133: return getConformance(); + case 106629499: return getPhase(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case -1228798510: /*artifact*/ return new String[] {"canonical"}; + case 1374858133: /*conformance*/ return new String[] {"CodeableConcept"}; + case 106629499: /*phase*/ return new String[] {"CodeableConcept"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("artifact")) { + throw new FHIRException("Cannot call addChild on a primitive type TestScript.scope.artifact"); + } + else if (name.equals("conformance")) { + this.conformance = new CodeableConcept(); + return this.conformance; + } + else if (name.equals("phase")) { + this.phase = new CodeableConcept(); + return this.phase; + } + else + return super.addChild(name); + } + + public TestScriptScopeComponent copy() { + TestScriptScopeComponent dst = new TestScriptScopeComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(TestScriptScopeComponent dst) { + super.copyValues(dst); + dst.artifact = artifact == null ? null : artifact.copy(); + dst.conformance = conformance == null ? null : conformance.copy(); + dst.phase = phase == null ? null : phase.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof TestScriptScopeComponent)) + return false; + TestScriptScopeComponent o = (TestScriptScopeComponent) other_; + return compareDeep(artifact, o.artifact, true) && compareDeep(conformance, o.conformance, true) + && compareDeep(phase, o.phase, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof TestScriptScopeComponent)) + return false; + TestScriptScopeComponent o = (TestScriptScopeComponent) other_; + return compareValues(artifact, o.artifact, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(artifact, conformance, phase + ); + } + + public String fhirType() { + return "TestScript.scope"; + + } + } @Block() @@ -9074,28 +9397,35 @@ public class TestScript extends CanonicalResource { @Description(shortDefinition="Fixture Id of source expression or headerField", formalDefinition="Fixture to evaluate the XPath/JSONPath expression or the headerField against." ) protected IdType sourceId; + /** + * Whether or not the current test execution will stop on failure for this assert. + */ + @Child(name = "stopTestOnFail", type = {BooleanType.class}, order=20, min=1, max=1, modifier=false, summary=false) + @Description(shortDefinition="If this assert fails, will the current test execution stop?", formalDefinition="Whether or not the current test execution will stop on failure for this assert." ) + protected BooleanType stopTestOnFail; + /** * The ID of the Profile to validate against. */ - @Child(name = "validateProfileId", type = {IdType.class}, order=20, min=0, max=1, modifier=false, summary=false) + @Child(name = "validateProfileId", type = {IdType.class}, order=21, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="Profile Id of validation profile reference", formalDefinition="The ID of the Profile to validate against." ) protected IdType validateProfileId; /** * The value to compare to. */ - @Child(name = "value", type = {StringType.class}, order=21, min=0, max=1, modifier=false, summary=false) + @Child(name = "value", type = {StringType.class}, order=22, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="The value to compare to", formalDefinition="The value to compare to." ) protected StringType value; /** * Whether or not the test execution will produce a warning only on error for this assert. */ - @Child(name = "warningOnly", type = {BooleanType.class}, order=22, min=1, max=1, modifier=false, summary=false) + @Child(name = "warningOnly", type = {BooleanType.class}, order=23, min=1, max=1, modifier=false, summary=false) @Description(shortDefinition="Will this assert produce a warning only on error?", formalDefinition="Whether or not the test execution will produce a warning only on error for this assert." ) protected BooleanType warningOnly; - private static final long serialVersionUID = -1112296782L; + private static final long serialVersionUID = 656289619L; /** * Constructor @@ -9107,8 +9437,9 @@ public class TestScript extends CanonicalResource { /** * Constructor */ - public SetupActionAssertComponent(boolean warningOnly) { + public SetupActionAssertComponent(boolean stopTestOnFail, boolean warningOnly) { super(); + this.setStopTestOnFail(stopTestOnFail); this.setWarningOnly(warningOnly); } @@ -10039,6 +10370,51 @@ public class TestScript extends CanonicalResource { return this; } + /** + * @return {@link #stopTestOnFail} (Whether or not the current test execution will stop on failure for this assert.). This is the underlying object with id, value and extensions. The accessor "getStopTestOnFail" gives direct access to the value + */ + public BooleanType getStopTestOnFailElement() { + if (this.stopTestOnFail == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create SetupActionAssertComponent.stopTestOnFail"); + else if (Configuration.doAutoCreate()) + this.stopTestOnFail = new BooleanType(); // bb + return this.stopTestOnFail; + } + + public boolean hasStopTestOnFailElement() { + return this.stopTestOnFail != null && !this.stopTestOnFail.isEmpty(); + } + + public boolean hasStopTestOnFail() { + return this.stopTestOnFail != null && !this.stopTestOnFail.isEmpty(); + } + + /** + * @param value {@link #stopTestOnFail} (Whether or not the current test execution will stop on failure for this assert.). This is the underlying object with id, value and extensions. The accessor "getStopTestOnFail" gives direct access to the value + */ + public SetupActionAssertComponent setStopTestOnFailElement(BooleanType value) { + this.stopTestOnFail = value; + return this; + } + + /** + * @return Whether or not the current test execution will stop on failure for this assert. + */ + public boolean getStopTestOnFail() { + return this.stopTestOnFail == null || this.stopTestOnFail.isEmpty() ? false : this.stopTestOnFail.getValue(); + } + + /** + * @param value Whether or not the current test execution will stop on failure for this assert. + */ + public SetupActionAssertComponent setStopTestOnFail(boolean value) { + if (this.stopTestOnFail == null) + this.stopTestOnFail = new BooleanType(); + this.stopTestOnFail.setValue(value); + return this; + } + /** * @return {@link #validateProfileId} (The ID of the Profile to validate against.). This is the underlying object with id, value and extensions. The accessor "getValidateProfileId" gives direct access to the value */ @@ -10203,6 +10579,7 @@ public class TestScript extends CanonicalResource { children.add(new Property("response", "code", "okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable.", 0, 1, response)); children.add(new Property("responseCode", "string", "The value of the HTTP response code to be tested.", 0, 1, responseCode)); children.add(new Property("sourceId", "id", "Fixture to evaluate the XPath/JSONPath expression or the headerField against.", 0, 1, sourceId)); + children.add(new Property("stopTestOnFail", "boolean", "Whether or not the current test execution will stop on failure for this assert.", 0, 1, stopTestOnFail)); children.add(new Property("validateProfileId", "id", "The ID of the Profile to validate against.", 0, 1, validateProfileId)); children.add(new Property("value", "string", "The value to compare to.", 0, 1, value)); children.add(new Property("warningOnly", "boolean", "Whether or not the test execution will produce a warning only on error for this assert.", 0, 1, warningOnly)); @@ -10230,6 +10607,7 @@ public class TestScript extends CanonicalResource { case -340323263: /*response*/ return new Property("response", "code", "okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable.", 0, 1, response); case 1438723534: /*responseCode*/ return new Property("responseCode", "string", "The value of the HTTP response code to be tested.", 0, 1, responseCode); case 1746327190: /*sourceId*/ return new Property("sourceId", "id", "Fixture to evaluate the XPath/JSONPath expression or the headerField against.", 0, 1, sourceId); + case -626616719: /*stopTestOnFail*/ return new Property("stopTestOnFail", "boolean", "Whether or not the current test execution will stop on failure for this assert.", 0, 1, stopTestOnFail); case 1555541038: /*validateProfileId*/ return new Property("validateProfileId", "id", "The ID of the Profile to validate against.", 0, 1, validateProfileId); case 111972721: /*value*/ return new Property("value", "string", "The value to compare to.", 0, 1, value); case -481159832: /*warningOnly*/ return new Property("warningOnly", "boolean", "Whether or not the test execution will produce a warning only on error for this assert.", 0, 1, warningOnly); @@ -10260,6 +10638,7 @@ public class TestScript extends CanonicalResource { case -340323263: /*response*/ return this.response == null ? new Base[0] : new Base[] {this.response}; // Enumeration case 1438723534: /*responseCode*/ return this.responseCode == null ? new Base[0] : new Base[] {this.responseCode}; // StringType case 1746327190: /*sourceId*/ return this.sourceId == null ? new Base[0] : new Base[] {this.sourceId}; // IdType + case -626616719: /*stopTestOnFail*/ return this.stopTestOnFail == null ? new Base[0] : new Base[] {this.stopTestOnFail}; // BooleanType case 1555541038: /*validateProfileId*/ return this.validateProfileId == null ? new Base[0] : new Base[] {this.validateProfileId}; // IdType case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // StringType case -481159832: /*warningOnly*/ return this.warningOnly == null ? new Base[0] : new Base[] {this.warningOnly}; // BooleanType @@ -10333,6 +10712,9 @@ public class TestScript extends CanonicalResource { case 1746327190: // sourceId this.sourceId = TypeConvertor.castToId(value); // IdType return value; + case -626616719: // stopTestOnFail + this.stopTestOnFail = TypeConvertor.castToBoolean(value); // BooleanType + return value; case 1555541038: // validateProfileId this.validateProfileId = TypeConvertor.castToId(value); // IdType return value; @@ -10392,6 +10774,8 @@ public class TestScript extends CanonicalResource { this.responseCode = TypeConvertor.castToString(value); // StringType } else if (name.equals("sourceId")) { this.sourceId = TypeConvertor.castToId(value); // IdType + } else if (name.equals("stopTestOnFail")) { + this.stopTestOnFail = TypeConvertor.castToBoolean(value); // BooleanType } else if (name.equals("validateProfileId")) { this.validateProfileId = TypeConvertor.castToId(value); // IdType } else if (name.equals("value")) { @@ -10425,6 +10809,7 @@ public class TestScript extends CanonicalResource { case -340323263: return getResponseElement(); case 1438723534: return getResponseCodeElement(); case 1746327190: return getSourceIdElement(); + case -626616719: return getStopTestOnFailElement(); case 1555541038: return getValidateProfileIdElement(); case 111972721: return getValueElement(); case -481159832: return getWarningOnlyElement(); @@ -10455,6 +10840,7 @@ public class TestScript extends CanonicalResource { case -340323263: /*response*/ return new String[] {"code"}; case 1438723534: /*responseCode*/ return new String[] {"string"}; case 1746327190: /*sourceId*/ return new String[] {"id"}; + case -626616719: /*stopTestOnFail*/ return new String[] {"boolean"}; case 1555541038: /*validateProfileId*/ return new String[] {"id"}; case 111972721: /*value*/ return new String[] {"string"}; case -481159832: /*warningOnly*/ return new String[] {"boolean"}; @@ -10522,6 +10908,9 @@ public class TestScript extends CanonicalResource { else if (name.equals("sourceId")) { throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.sourceId"); } + else if (name.equals("stopTestOnFail")) { + throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.stopTestOnFail"); + } else if (name.equals("validateProfileId")) { throw new FHIRException("Cannot call addChild on a primitive type TestScript.setup.action.assert.validateProfileId"); } @@ -10562,6 +10951,7 @@ public class TestScript extends CanonicalResource { dst.response = response == null ? null : response.copy(); dst.responseCode = responseCode == null ? null : responseCode.copy(); dst.sourceId = sourceId == null ? null : sourceId.copy(); + dst.stopTestOnFail = stopTestOnFail == null ? null : stopTestOnFail.copy(); dst.validateProfileId = validateProfileId == null ? null : validateProfileId.copy(); dst.value = value == null ? null : value.copy(); dst.warningOnly = warningOnly == null ? null : warningOnly.copy(); @@ -10581,8 +10971,9 @@ public class TestScript extends CanonicalResource { && compareDeep(minimumId, o.minimumId, true) && compareDeep(navigationLinks, o.navigationLinks, true) && compareDeep(operator, o.operator, true) && compareDeep(path, o.path, true) && compareDeep(requestMethod, o.requestMethod, true) && compareDeep(requestURL, o.requestURL, true) && compareDeep(resource, o.resource, true) && compareDeep(response, o.response, true) - && compareDeep(responseCode, o.responseCode, true) && compareDeep(sourceId, o.sourceId, true) && compareDeep(validateProfileId, o.validateProfileId, true) - && compareDeep(value, o.value, true) && compareDeep(warningOnly, o.warningOnly, true); + && compareDeep(responseCode, o.responseCode, true) && compareDeep(sourceId, o.sourceId, true) && compareDeep(stopTestOnFail, o.stopTestOnFail, true) + && compareDeep(validateProfileId, o.validateProfileId, true) && compareDeep(value, o.value, true) + && compareDeep(warningOnly, o.warningOnly, true); } @Override @@ -10599,16 +10990,17 @@ public class TestScript extends CanonicalResource { && compareValues(minimumId, o.minimumId, true) && compareValues(navigationLinks, o.navigationLinks, true) && compareValues(operator, o.operator, true) && compareValues(path, o.path, true) && compareValues(requestMethod, o.requestMethod, true) && compareValues(requestURL, o.requestURL, true) && compareValues(resource, o.resource, true) && compareValues(response, o.response, true) - && compareValues(responseCode, o.responseCode, true) && compareValues(sourceId, o.sourceId, true) && compareValues(validateProfileId, o.validateProfileId, true) - && compareValues(value, o.value, true) && compareValues(warningOnly, o.warningOnly, true); + && compareValues(responseCode, o.responseCode, true) && compareValues(sourceId, o.sourceId, true) && compareValues(stopTestOnFail, o.stopTestOnFail, true) + && compareValues(validateProfileId, o.validateProfileId, true) && compareValues(value, o.value, true) + && compareValues(warningOnly, o.warningOnly, true); } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(label, description, direction , compareToSourceId, compareToSourceExpression, compareToSourcePath, contentType, expression , headerField, minimumId, navigationLinks, operator, path, requestMethod, requestURL - , resource, response, responseCode, sourceId, validateProfileId, value, warningOnly - ); + , resource, response, responseCode, sourceId, stopTestOnFail, validateProfileId + , value, warningOnly); } public String fhirType() { @@ -11642,49 +12034,56 @@ public class TestScript extends CanonicalResource { @Description(shortDefinition="Required capability that is assumed to function correctly on the FHIR server being tested", formalDefinition="The required capability must exist and are assumed to function correctly on the FHIR server being tested." ) protected TestScriptMetadataComponent metadata; + /** + * The scope indicates a conformance artifact that is tested by the test(s) within this test case and the expectation of the test outcome(s) as well as the intended test phase inclusion. + */ + @Child(name = "scope", type = {}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Description(shortDefinition="Indication of the artifact(s) that are tested by this test case", formalDefinition="The scope indicates a conformance artifact that is tested by the test(s) within this test case and the expectation of the test outcome(s) as well as the intended test phase inclusion." ) + protected List scope; + /** * Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute. */ - @Child(name = "fixture", type = {}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "fixture", type = {}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Fixture in the test script - by reference (uri)", formalDefinition="Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute." ) protected List fixture; /** * Reference to the profile to be used for validation. */ - @Child(name = "profile", type = {Reference.class}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "profile", type = {Reference.class}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Reference of the validation profile", formalDefinition="Reference to the profile to be used for validation." ) protected List profile; /** * Variable is set based either on element value in response body or on header field value in the response headers. */ - @Child(name = "variable", type = {}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "variable", type = {}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="Placeholder for evaluated elements", formalDefinition="Variable is set based either on element value in response body or on header field value in the response headers." ) protected List variable; /** * A series of required setup operations before tests are executed. */ - @Child(name = "setup", type = {}, order=21, min=0, max=1, modifier=false, summary=false) + @Child(name = "setup", type = {}, order=22, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="A series of required setup operations before tests are executed", formalDefinition="A series of required setup operations before tests are executed." ) protected TestScriptSetupComponent setup; /** * A test in this script. */ - @Child(name = "test", type = {}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) + @Child(name = "test", type = {}, order=23, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) @Description(shortDefinition="A test in this script", formalDefinition="A test in this script." ) protected List test; /** * A series of operations required to clean up after all the tests are executed (successfully or otherwise). */ - @Child(name = "teardown", type = {}, order=23, min=0, max=1, modifier=false, summary=false) + @Child(name = "teardown", type = {}, order=24, min=0, max=1, modifier=false, summary=false) @Description(shortDefinition="A series of required clean up steps", formalDefinition="A series of operations required to clean up after all the tests are executed (successfully or otherwise)." ) protected TestScriptTeardownComponent teardown; - private static final long serialVersionUID = -2020826225L; + private static final long serialVersionUID = 1499427169L; /** * Constructor @@ -12579,6 +12978,59 @@ public class TestScript extends CanonicalResource { return this; } + /** + * @return {@link #scope} (The scope indicates a conformance artifact that is tested by the test(s) within this test case and the expectation of the test outcome(s) as well as the intended test phase inclusion.) + */ + public List getScope() { + if (this.scope == null) + this.scope = new ArrayList(); + return this.scope; + } + + /** + * @return Returns a reference to this for easy method chaining + */ + public TestScript setScope(List theScope) { + this.scope = theScope; + return this; + } + + public boolean hasScope() { + if (this.scope == null) + return false; + for (TestScriptScopeComponent item : this.scope) + if (!item.isEmpty()) + return true; + return false; + } + + public TestScriptScopeComponent addScope() { //3 + TestScriptScopeComponent t = new TestScriptScopeComponent(); + if (this.scope == null) + this.scope = new ArrayList(); + this.scope.add(t); + return t; + } + + public TestScript addScope(TestScriptScopeComponent t) { //3 + if (t == null) + return this; + if (this.scope == null) + this.scope = new ArrayList(); + this.scope.add(t); + return this; + } + + /** + * @return The first repetition of repeating field {@link #scope}, creating it if it does not already exist {3} + */ + public TestScriptScopeComponent getScopeFirstRep() { + if (getScope().isEmpty()) { + addScope(); + } + return getScope().get(0); + } + /** * @return {@link #fixture} (Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute.) */ @@ -12859,6 +13311,7 @@ public class TestScript extends CanonicalResource { children.add(new Property("origin", "", "An abstract server used in operations within this test script in the origin element.", 0, java.lang.Integer.MAX_VALUE, origin)); children.add(new Property("destination", "", "An abstract server used in operations within this test script in the destination element.", 0, java.lang.Integer.MAX_VALUE, destination)); children.add(new Property("metadata", "", "The required capability must exist and are assumed to function correctly on the FHIR server being tested.", 0, 1, metadata)); + children.add(new Property("scope", "", "The scope indicates a conformance artifact that is tested by the test(s) within this test case and the expectation of the test outcome(s) as well as the intended test phase inclusion.", 0, java.lang.Integer.MAX_VALUE, scope)); children.add(new Property("fixture", "", "Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute.", 0, java.lang.Integer.MAX_VALUE, fixture)); children.add(new Property("profile", "Reference(Any)", "Reference to the profile to be used for validation.", 0, java.lang.Integer.MAX_VALUE, profile)); children.add(new Property("variable", "", "Variable is set based either on element value in response body or on header field value in the response headers.", 0, java.lang.Integer.MAX_VALUE, variable)); @@ -12888,6 +13341,7 @@ public class TestScript extends CanonicalResource { case -1008619738: /*origin*/ return new Property("origin", "", "An abstract server used in operations within this test script in the origin element.", 0, java.lang.Integer.MAX_VALUE, origin); case -1429847026: /*destination*/ return new Property("destination", "", "An abstract server used in operations within this test script in the destination element.", 0, java.lang.Integer.MAX_VALUE, destination); case -450004177: /*metadata*/ return new Property("metadata", "", "The required capability must exist and are assumed to function correctly on the FHIR server being tested.", 0, 1, metadata); + case 109264468: /*scope*/ return new Property("scope", "", "The scope indicates a conformance artifact that is tested by the test(s) within this test case and the expectation of the test outcome(s) as well as the intended test phase inclusion.", 0, java.lang.Integer.MAX_VALUE, scope); case -843449847: /*fixture*/ return new Property("fixture", "", "Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute.", 0, java.lang.Integer.MAX_VALUE, fixture); case -309425751: /*profile*/ return new Property("profile", "Reference(Any)", "Reference to the profile to be used for validation.", 0, java.lang.Integer.MAX_VALUE, profile); case -1249586564: /*variable*/ return new Property("variable", "", "Variable is set based either on element value in response body or on header field value in the response headers.", 0, java.lang.Integer.MAX_VALUE, variable); @@ -12920,6 +13374,7 @@ public class TestScript extends CanonicalResource { case -1008619738: /*origin*/ return this.origin == null ? new Base[0] : this.origin.toArray(new Base[this.origin.size()]); // TestScriptOriginComponent case -1429847026: /*destination*/ return this.destination == null ? new Base[0] : this.destination.toArray(new Base[this.destination.size()]); // TestScriptDestinationComponent case -450004177: /*metadata*/ return this.metadata == null ? new Base[0] : new Base[] {this.metadata}; // TestScriptMetadataComponent + case 109264468: /*scope*/ return this.scope == null ? new Base[0] : this.scope.toArray(new Base[this.scope.size()]); // TestScriptScopeComponent case -843449847: /*fixture*/ return this.fixture == null ? new Base[0] : this.fixture.toArray(new Base[this.fixture.size()]); // TestScriptFixtureComponent case -309425751: /*profile*/ return this.profile == null ? new Base[0] : this.profile.toArray(new Base[this.profile.size()]); // Reference case -1249586564: /*variable*/ return this.variable == null ? new Base[0] : this.variable.toArray(new Base[this.variable.size()]); // TestScriptVariableComponent @@ -12989,6 +13444,9 @@ public class TestScript extends CanonicalResource { case -450004177: // metadata this.metadata = (TestScriptMetadataComponent) value; // TestScriptMetadataComponent return value; + case 109264468: // scope + this.getScope().add((TestScriptScopeComponent) value); // TestScriptScopeComponent + return value; case -843449847: // fixture this.getFixture().add((TestScriptFixtureComponent) value); // TestScriptFixtureComponent return value; @@ -13051,6 +13509,8 @@ public class TestScript extends CanonicalResource { this.getDestination().add((TestScriptDestinationComponent) value); } else if (name.equals("metadata")) { this.metadata = (TestScriptMetadataComponent) value; // TestScriptMetadataComponent + } else if (name.equals("scope")) { + this.getScope().add((TestScriptScopeComponent) value); } else if (name.equals("fixture")) { this.getFixture().add((TestScriptFixtureComponent) value); } else if (name.equals("profile")) { @@ -13089,6 +13549,7 @@ public class TestScript extends CanonicalResource { case -1008619738: return addOrigin(); case -1429847026: return addDestination(); case -450004177: return getMetadata(); + case 109264468: return addScope(); case -843449847: return addFixture(); case -309425751: return addProfile(); case -1249586564: return addVariable(); @@ -13121,6 +13582,7 @@ public class TestScript extends CanonicalResource { case -1008619738: /*origin*/ return new String[] {}; case -1429847026: /*destination*/ return new String[] {}; case -450004177: /*metadata*/ return new String[] {}; + case 109264468: /*scope*/ return new String[] {}; case -843449847: /*fixture*/ return new String[] {}; case -309425751: /*profile*/ return new String[] {"Reference"}; case -1249586564: /*variable*/ return new String[] {}; @@ -13190,6 +13652,9 @@ public class TestScript extends CanonicalResource { this.metadata = new TestScriptMetadataComponent(); return this.metadata; } + else if (name.equals("scope")) { + return addScope(); + } else if (name.equals("fixture")) { return addFixture(); } @@ -13265,6 +13730,11 @@ public class TestScript extends CanonicalResource { dst.destination.add(i.copy()); }; dst.metadata = metadata == null ? null : metadata.copy(); + if (scope != null) { + dst.scope = new ArrayList(); + for (TestScriptScopeComponent i : scope) + dst.scope.add(i.copy()); + }; if (fixture != null) { dst.fixture = new ArrayList(); for (TestScriptFixtureComponent i : fixture) @@ -13306,9 +13776,9 @@ public class TestScript extends CanonicalResource { && compareDeep(contact, o.contact, true) && compareDeep(description, o.description, true) && compareDeep(useContext, o.useContext, true) && compareDeep(jurisdiction, o.jurisdiction, true) && compareDeep(purpose, o.purpose, true) && compareDeep(copyright, o.copyright, true) && compareDeep(origin, o.origin, true) && compareDeep(destination, o.destination, true) && compareDeep(metadata, o.metadata, true) - && compareDeep(fixture, o.fixture, true) && compareDeep(profile, o.profile, true) && compareDeep(variable, o.variable, true) - && compareDeep(setup, o.setup, true) && compareDeep(test, o.test, true) && compareDeep(teardown, o.teardown, true) - ; + && compareDeep(scope, o.scope, true) && compareDeep(fixture, o.fixture, true) && compareDeep(profile, o.profile, true) + && compareDeep(variable, o.variable, true) && compareDeep(setup, o.setup, true) && compareDeep(test, o.test, true) + && compareDeep(teardown, o.teardown, true); } @Override @@ -13327,8 +13797,8 @@ public class TestScript extends CanonicalResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, identifier, version , name, title, status, experimental, date, publisher, contact, description, useContext - , jurisdiction, purpose, copyright, origin, destination, metadata, fixture, profile - , variable, setup, test, teardown); + , jurisdiction, purpose, copyright, origin, destination, metadata, scope, fixture + , profile, variable, setup, test, teardown); } @Override @@ -13336,6 +13806,26 @@ public class TestScript extends CanonicalResource { return ResourceType.TestScript; } + /** + * Search parameter: context + *

+ * Description: A use context assigned to the test script
+ * Type: token
+ * Path: (TestScript.useContext.value as CodeableConcept)
+ *

+ */ + @SearchParamDefinition(name="context", path="(TestScript.useContext.value as CodeableConcept)", description="A use context assigned to the test script", type="token" ) + public static final String SP_CONTEXT = "context"; + /** + * Fluent Client search parameter constant for context + *

+ * Description: A use context assigned to the test script
+ * Type: token
+ * Path: (TestScript.useContext.value as CodeableConcept)
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); + /** * Search parameter: context-quantity *

@@ -13356,46 +13846,6 @@ public class TestScript extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the test script
- * Type: composite
- * Path: TestScript.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="TestScript.useContext", description="A use context type and quantity- or range-based value assigned to the test script", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: A use context type and quantity- or range-based value assigned to the test script
- * Type: composite
- * Path: TestScript.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: A use context type and value assigned to the test script
- * Type: composite
- * Path: TestScript.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="TestScript.useContext", description="A use context type and value assigned to the test script", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: A use context type and value assigned to the test script
- * Type: composite
- * Path: TestScript.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -13416,26 +13866,6 @@ public class TestScript extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: A use context assigned to the test script
- * Type: token
- * Path: (TestScript.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(TestScript.useContext.value as CodeableConcept)", description="A use context assigned to the test script", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: A use context assigned to the test script
- * Type: token
- * Path: (TestScript.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -13556,6 +13986,32 @@ public class TestScript extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER); + /** + * Search parameter: scope-artifact + *

+ * Description: The artifact under test
+ * Type: reference
+ * Path: TestScript.scope.artifact
+ *

+ */ + @SearchParamDefinition(name="scope-artifact", path="TestScript.scope.artifact", description="The artifact under test", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_SCOPE_ARTIFACT = "scope-artifact"; + /** + * Fluent Client search parameter constant for scope-artifact + *

+ * Description: The artifact under test
+ * Type: reference
+ * Path: TestScript.scope.artifact
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SCOPE_ARTIFACT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SCOPE_ARTIFACT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "TestScript:scope-artifact". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_SCOPE_ARTIFACT = new ca.uhn.fhir.model.api.Include("TestScript:scope-artifact").toLocked(); + /** * Search parameter: status *

@@ -13656,6 +14112,46 @@ public class TestScript extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the test script
+ * Type: composite
+ * Path: TestScript.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="TestScript.useContext", description="A use context type and quantity- or range-based value assigned to the test script", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: A use context type and quantity- or range-based value assigned to the test script
+ * Type: composite
+ * Path: TestScript.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: A use context type and value assigned to the test script
+ * Type: composite
+ * Path: TestScript.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="TestScript.useContext", description="A use context type and value assigned to the test script", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: A use context type and value assigned to the test script
+ * Type: composite
+ * Path: TestScript.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Timing.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Timing.java index a29a930b0..5421c4402 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Timing.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/Timing.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -101,6 +101,10 @@ public class Timing extends BackboneType implements ICompositeType { * Event occurs [offset] after subject goes to sleep. The exact time is unspecified and established by institution convention or patient interpretation. */ PHS, + /** + * Event occurs a single time (with no repetitions) as soon as possible after the scheduled or actual start of the overall event. + */ + IMD, /** * */ @@ -188,6 +192,8 @@ public class Timing extends BackboneType implements ICompositeType { return NIGHT; if ("PHS".equals(codeString)) return PHS; + if ("IMD".equals(codeString)) + return IMD; if ("HS".equals(codeString)) return HS; if ("WAKE".equals(codeString)) @@ -235,6 +241,7 @@ public class Timing extends BackboneType implements ICompositeType { case EVE_LATE: return "EVE.late"; case NIGHT: return "NIGHT"; case PHS: return "PHS"; + case IMD: return "IMD"; case HS: return "HS"; case WAKE: return "WAKE"; case C: return "C"; @@ -249,7 +256,6 @@ public class Timing extends BackboneType implements ICompositeType { case PCM: return "PCM"; case PCD: return "PCD"; case PCV: return "PCV"; - case NULL: return null; default: return "?"; } } @@ -267,6 +273,7 @@ public class Timing extends BackboneType implements ICompositeType { case EVE_LATE: return "http://hl7.org/fhir/event-timing"; case NIGHT: return "http://hl7.org/fhir/event-timing"; case PHS: return "http://hl7.org/fhir/event-timing"; + case IMD: return "http://hl7.org/fhir/event-timing"; case HS: return "http://terminology.hl7.org/CodeSystem/v3-TimingEvent"; case WAKE: return "http://terminology.hl7.org/CodeSystem/v3-TimingEvent"; case C: return "http://terminology.hl7.org/CodeSystem/v3-TimingEvent"; @@ -281,7 +288,6 @@ public class Timing extends BackboneType implements ICompositeType { case PCM: return "http://terminology.hl7.org/CodeSystem/v3-TimingEvent"; case PCD: return "http://terminology.hl7.org/CodeSystem/v3-TimingEvent"; case PCV: return "http://terminology.hl7.org/CodeSystem/v3-TimingEvent"; - case NULL: return null; default: return "?"; } } @@ -299,6 +305,7 @@ public class Timing extends BackboneType implements ICompositeType { case EVE_LATE: return "Event occurs during the late evening. The exact time is unspecified and established by institution convention or patient interpretation."; case NIGHT: return "Event occurs during the night. The exact time is unspecified and established by institution convention or patient interpretation."; case PHS: return "Event occurs [offset] after subject goes to sleep. The exact time is unspecified and established by institution convention or patient interpretation."; + case IMD: return "Event occurs a single time (with no repetitions) as soon as possible after the scheduled or actual start of the overall event."; case HS: return ""; case WAKE: return ""; case C: return ""; @@ -313,7 +320,6 @@ public class Timing extends BackboneType implements ICompositeType { case PCM: return ""; case PCD: return ""; case PCV: return ""; - case NULL: return null; default: return "?"; } } @@ -331,6 +337,7 @@ public class Timing extends BackboneType implements ICompositeType { case EVE_LATE: return "Late Evening"; case NIGHT: return "Night"; case PHS: return "After Sleep"; + case IMD: return "Immediate"; case HS: return "HS"; case WAKE: return "WAKE"; case C: return "C"; @@ -345,7 +352,6 @@ public class Timing extends BackboneType implements ICompositeType { case PCM: return "PCM"; case PCD: return "PCD"; case PCV: return "PCV"; - case NULL: return null; default: return "?"; } } @@ -380,6 +386,8 @@ public class Timing extends BackboneType implements ICompositeType { return EventTiming.NIGHT; if ("PHS".equals(codeString)) return EventTiming.PHS; + if ("IMD".equals(codeString)) + return EventTiming.IMD; if ("HS".equals(codeString)) return EventTiming.HS; if ("WAKE".equals(codeString)) @@ -442,6 +450,8 @@ public class Timing extends BackboneType implements ICompositeType { return new Enumeration(this, EventTiming.NIGHT); if ("PHS".equals(codeString)) return new Enumeration(this, EventTiming.PHS); + if ("IMD".equals(codeString)) + return new Enumeration(this, EventTiming.IMD); if ("HS".equals(codeString)) return new Enumeration(this, EventTiming.HS); if ("WAKE".equals(codeString)) @@ -497,6 +507,8 @@ public class Timing extends BackboneType implements ICompositeType { return "NIGHT"; if (code == EventTiming.PHS) return "PHS"; + if (code == EventTiming.IMD) + return "IMD"; if (code == EventTiming.HS) return "HS"; if (code == EventTiming.WAKE) @@ -596,7 +608,6 @@ public class Timing extends BackboneType implements ICompositeType { case WK: return "wk"; case MO: return "mo"; case A: return "a"; - case NULL: return null; default: return "?"; } } @@ -609,7 +620,6 @@ public class Timing extends BackboneType implements ICompositeType { case WK: return "http://unitsofmeasure.org"; case MO: return "http://unitsofmeasure.org"; case A: return "http://unitsofmeasure.org"; - case NULL: return null; default: return "?"; } } @@ -622,7 +632,6 @@ public class Timing extends BackboneType implements ICompositeType { case WK: return ""; case MO: return ""; case A: return ""; - case NULL: return null; default: return "?"; } } @@ -635,7 +644,6 @@ public class Timing extends BackboneType implements ICompositeType { case WK: return "week"; case MO: return "month"; case A: return "year"; - case NULL: return null; default: return "?"; } } @@ -746,10 +754,11 @@ public class Timing extends BackboneType implements ICompositeType { protected DecimalType durationMax; /** - * The units of time for the duration, in UCUM units. + * The units of time for the duration, in UCUM units +Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence. */ @Child(name = "durationUnit", type = {CodeType.class}, order=6, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="s | min | h | d | wk | mo | a - unit of time (UCUM)", formalDefinition="The units of time for the duration, in UCUM units." ) + @Description(shortDefinition="s | min | h | d | wk | mo | a - unit of time (UCUM)", formalDefinition="The units of time for the duration, in UCUM units\nNormal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/units-of-time") protected Enumeration durationUnit; @@ -757,7 +766,7 @@ public class Timing extends BackboneType implements ICompositeType { * The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency. */ @Child(name = "frequency", type = {PositiveIntType.class}, order=7, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Event occurs frequency times per period", formalDefinition="The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency." ) + @Description(shortDefinition="Indicates the number of repetitions that should occur within a period. I.e. Event occurs frequency times per period", formalDefinition="The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency." ) protected PositiveIntType frequency; /** @@ -771,7 +780,7 @@ public class Timing extends BackboneType implements ICompositeType { * Indicates the duration of time over which repetitions are to occur; e.g. to express "3 times per day", 3 would be the frequency and "1 day" would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length. */ @Child(name = "period", type = {DecimalType.class}, order=9, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Event occurs frequency times per period", formalDefinition="Indicates the duration of time over which repetitions are to occur; e.g. to express \"3 times per day\", 3 would be the frequency and \"1 day\" would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length." ) + @Description(shortDefinition="The duration to which the frequency applies. I.e. Event occurs frequency times per period", formalDefinition="Indicates the duration of time over which repetitions are to occur; e.g. to express \"3 times per day\", 3 would be the frequency and \"1 day\" would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length." ) protected DecimalType period; /** @@ -782,10 +791,11 @@ public class Timing extends BackboneType implements ICompositeType { protected DecimalType periodMax; /** - * The units of time for the period in UCUM units. + * The units of time for the period in UCUM units +Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence. */ @Child(name = "periodUnit", type = {CodeType.class}, order=11, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="s | min | h | d | wk | mo | a - unit of time (UCUM)", formalDefinition="The units of time for the period in UCUM units." ) + @Description(shortDefinition="s | min | h | d | wk | mo | a - unit of time (UCUM)", formalDefinition="The units of time for the period in UCUM units\nNormal practice is to use the 'mo' code as a calendar month when calculating the next occurrence." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/units-of-time") protected Enumeration periodUnit; @@ -1119,7 +1129,8 @@ public class Timing extends BackboneType implements ICompositeType { } /** - * @return {@link #durationUnit} (The units of time for the duration, in UCUM units.). This is the underlying object with id, value and extensions. The accessor "getDurationUnit" gives direct access to the value + * @return {@link #durationUnit} (The units of time for the duration, in UCUM units +Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence.). This is the underlying object with id, value and extensions. The accessor "getDurationUnit" gives direct access to the value */ public Enumeration getDurationUnitElement() { if (this.durationUnit == null) @@ -1139,7 +1150,8 @@ public class Timing extends BackboneType implements ICompositeType { } /** - * @param value {@link #durationUnit} (The units of time for the duration, in UCUM units.). This is the underlying object with id, value and extensions. The accessor "getDurationUnit" gives direct access to the value + * @param value {@link #durationUnit} (The units of time for the duration, in UCUM units +Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence.). This is the underlying object with id, value and extensions. The accessor "getDurationUnit" gives direct access to the value */ public TimingRepeatComponent setDurationUnitElement(Enumeration value) { this.durationUnit = value; @@ -1147,14 +1159,16 @@ public class Timing extends BackboneType implements ICompositeType { } /** - * @return The units of time for the duration, in UCUM units. + * @return The units of time for the duration, in UCUM units +Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence. */ public UnitsOfTime getDurationUnit() { return this.durationUnit == null ? null : this.durationUnit.getValue(); } /** - * @param value The units of time for the duration, in UCUM units. + * @param value The units of time for the duration, in UCUM units +Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence. */ public TimingRepeatComponent setDurationUnit(UnitsOfTime value) { if (value == null) @@ -1392,7 +1406,8 @@ public class Timing extends BackboneType implements ICompositeType { } /** - * @return {@link #periodUnit} (The units of time for the period in UCUM units.). This is the underlying object with id, value and extensions. The accessor "getPeriodUnit" gives direct access to the value + * @return {@link #periodUnit} (The units of time for the period in UCUM units +Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence.). This is the underlying object with id, value and extensions. The accessor "getPeriodUnit" gives direct access to the value */ public Enumeration getPeriodUnitElement() { if (this.periodUnit == null) @@ -1412,7 +1427,8 @@ public class Timing extends BackboneType implements ICompositeType { } /** - * @param value {@link #periodUnit} (The units of time for the period in UCUM units.). This is the underlying object with id, value and extensions. The accessor "getPeriodUnit" gives direct access to the value + * @param value {@link #periodUnit} (The units of time for the period in UCUM units +Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence.). This is the underlying object with id, value and extensions. The accessor "getPeriodUnit" gives direct access to the value */ public TimingRepeatComponent setPeriodUnitElement(Enumeration value) { this.periodUnit = value; @@ -1420,14 +1436,16 @@ public class Timing extends BackboneType implements ICompositeType { } /** - * @return The units of time for the period in UCUM units. + * @return The units of time for the period in UCUM units +Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence. */ public UnitsOfTime getPeriodUnit() { return this.periodUnit == null ? null : this.periodUnit.getValue(); } /** - * @param value The units of time for the period in UCUM units. + * @param value The units of time for the period in UCUM units +Normal practice is to use the 'mo' code as a calendar month when calculating the next occurrence. */ public TimingRepeatComponent setPeriodUnit(UnitsOfTime value) { if (value == null) @@ -1675,12 +1693,12 @@ public class Timing extends BackboneType implements ICompositeType { children.add(new Property("countMax", "positiveInt", "If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times.", 0, 1, countMax)); children.add(new Property("duration", "decimal", "How long this thing happens for when it happens. If durationMax is present, this element indicates the lower bound of the allowed range of the duration.", 0, 1, duration)); children.add(new Property("durationMax", "decimal", "If present, indicates that the duration is a range - so to perform the action between [duration] and [durationMax] time length.", 0, 1, durationMax)); - children.add(new Property("durationUnit", "code", "The units of time for the duration, in UCUM units.", 0, 1, durationUnit)); + children.add(new Property("durationUnit", "code", "The units of time for the duration, in UCUM units\nNormal practice is to use the 'mo' code as a calendar month when calculating the next occurrence.", 0, 1, durationUnit)); children.add(new Property("frequency", "positiveInt", "The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency.", 0, 1, frequency)); children.add(new Property("frequencyMax", "positiveInt", "If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range.", 0, 1, frequencyMax)); children.add(new Property("period", "decimal", "Indicates the duration of time over which repetitions are to occur; e.g. to express \"3 times per day\", 3 would be the frequency and \"1 day\" would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length.", 0, 1, period)); children.add(new Property("periodMax", "decimal", "If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \"do this once every 3-5 days.", 0, 1, periodMax)); - children.add(new Property("periodUnit", "code", "The units of time for the period in UCUM units.", 0, 1, periodUnit)); + children.add(new Property("periodUnit", "code", "The units of time for the period in UCUM units\nNormal practice is to use the 'mo' code as a calendar month when calculating the next occurrence.", 0, 1, periodUnit)); children.add(new Property("dayOfWeek", "code", "If one or more days of week is provided, then the action happens only on the specified day(s).", 0, java.lang.Integer.MAX_VALUE, dayOfWeek)); children.add(new Property("timeOfDay", "time", "Specified time of day for action to take place.", 0, java.lang.Integer.MAX_VALUE, timeOfDay)); children.add(new Property("when", "code", "An approximate time period during the day, potentially linked to an event of daily living that indicates when the action should occur.", 0, java.lang.Integer.MAX_VALUE, when)); @@ -1699,12 +1717,12 @@ public class Timing extends BackboneType implements ICompositeType { case -372044331: /*countMax*/ return new Property("countMax", "positiveInt", "If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times.", 0, 1, countMax); case -1992012396: /*duration*/ return new Property("duration", "decimal", "How long this thing happens for when it happens. If durationMax is present, this element indicates the lower bound of the allowed range of the duration.", 0, 1, duration); case -478083280: /*durationMax*/ return new Property("durationMax", "decimal", "If present, indicates that the duration is a range - so to perform the action between [duration] and [durationMax] time length.", 0, 1, durationMax); - case -1935429320: /*durationUnit*/ return new Property("durationUnit", "code", "The units of time for the duration, in UCUM units.", 0, 1, durationUnit); + case -1935429320: /*durationUnit*/ return new Property("durationUnit", "code", "The units of time for the duration, in UCUM units\nNormal practice is to use the 'mo' code as a calendar month when calculating the next occurrence.", 0, 1, durationUnit); case -70023844: /*frequency*/ return new Property("frequency", "positiveInt", "The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency.", 0, 1, frequency); case 1273846376: /*frequencyMax*/ return new Property("frequencyMax", "positiveInt", "If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range.", 0, 1, frequencyMax); case -991726143: /*period*/ return new Property("period", "decimal", "Indicates the duration of time over which repetitions are to occur; e.g. to express \"3 times per day\", 3 would be the frequency and \"1 day\" would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length.", 0, 1, period); case 566580195: /*periodMax*/ return new Property("periodMax", "decimal", "If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \"do this once every 3-5 days.", 0, 1, periodMax); - case 384367333: /*periodUnit*/ return new Property("periodUnit", "code", "The units of time for the period in UCUM units.", 0, 1, periodUnit); + case 384367333: /*periodUnit*/ return new Property("periodUnit", "code", "The units of time for the period in UCUM units\nNormal practice is to use the 'mo' code as a calendar month when calculating the next occurrence.", 0, 1, periodUnit); case -730552025: /*dayOfWeek*/ return new Property("dayOfWeek", "code", "If one or more days of week is provided, then the action happens only on the specified day(s).", 0, java.lang.Integer.MAX_VALUE, dayOfWeek); case 21434232: /*timeOfDay*/ return new Property("timeOfDay", "time", "Specified time of day for action to take place.", 0, java.lang.Integer.MAX_VALUE, timeOfDay); case 3648314: /*when*/ return new Property("when", "code", "An approximate time period during the day, potentially linked to an event of daily living that indicates when the action should occur.", 0, java.lang.Integer.MAX_VALUE, when); @@ -2040,7 +2058,7 @@ public class Timing extends BackboneType implements ICompositeType { * A code for the timing schedule (or just text in code.text). Some codes such as BID are ubiquitous, but many institutions define their own additional codes. If a code is provided, the code is understood to be a complete statement of whatever is specified in the structured timing data, and either the code or the data may be used to interpret the Timing, with the exception that .repeat.bounds still applies over the code (and is not contained in the code). */ @Child(name = "code", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="BID | TID | QID | AM | PM | QD | QOD | +", formalDefinition="A code for the timing schedule (or just text in code.text). Some codes such as BID are ubiquitous, but many institutions define their own additional codes. If a code is provided, the code is understood to be a complete statement of whatever is specified in the structured timing data, and either the code or the data may be used to interpret the Timing, with the exception that .repeat.bounds still applies over the code (and is not contained in the code)." ) + @Description(shortDefinition="C | BID | TID | QID | AM | PM | QD | QOD | +", formalDefinition="A code for the timing schedule (or just text in code.text). Some codes such as BID are ubiquitous, but many institutions define their own additional codes. If a code is provided, the code is understood to be a complete statement of whatever is specified in the structured timing data, and either the code or the data may be used to interpret the Timing, with the exception that .repeat.bounds still applies over the code (and is not contained in the code)." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/timing-abbreviation") protected CodeableConcept code; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TriggerDefinition.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TriggerDefinition.java index 86ef6cd79..92657a7c0 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TriggerDefinition.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/TriggerDefinition.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -122,7 +122,6 @@ public class TriggerDefinition extends DataType implements ICompositeType { case DATAREMOVED: return "data-removed"; case DATAACCESSED: return "data-accessed"; case DATAACCESSENDED: return "data-access-ended"; - case NULL: return null; default: return "?"; } } @@ -136,7 +135,6 @@ public class TriggerDefinition extends DataType implements ICompositeType { case DATAREMOVED: return "http://hl7.org/fhir/trigger-type"; case DATAACCESSED: return "http://hl7.org/fhir/trigger-type"; case DATAACCESSENDED: return "http://hl7.org/fhir/trigger-type"; - case NULL: return null; default: return "?"; } } @@ -150,7 +148,6 @@ public class TriggerDefinition extends DataType implements ICompositeType { case DATAREMOVED: return "The trigger occurs whenever data of a particular type is removed."; case DATAACCESSED: return "The trigger occurs whenever data of a particular type is accessed."; case DATAACCESSENDED: return "The trigger occurs whenever access to data of a particular type is completed."; - case NULL: return null; default: return "?"; } } @@ -164,7 +161,6 @@ public class TriggerDefinition extends DataType implements ICompositeType { case DATAREMOVED: return "Data Removed"; case DATAACCESSED: return "Data Accessed"; case DATAACCESSENDED: return "Data Access Ended"; - case NULL: return null; default: return "?"; } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/UsageContext.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/UsageContext.java index dc1809ad9..865361634 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/UsageContext.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/UsageContext.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ValueSet.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ValueSet.java index 315dfe681..4e4eb0770 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ValueSet.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/ValueSet.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -582,13 +582,20 @@ public class ValueSet extends CanonicalResource { protected List filter; /** - * Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the union of the contents of all of the referenced value sets. + * Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the intersection of the contents of all of the referenced value sets. */ @Child(name = "valueSet", type = {CanonicalType.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) - @Description(shortDefinition="Select the contents included in this value set", formalDefinition="Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the union of the contents of all of the referenced value sets." ) + @Description(shortDefinition="Select the contents included in this value set", formalDefinition="Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the intersection of the contents of all of the referenced value sets." ) protected List valueSet; - private static final long serialVersionUID = 969391146L; + /** + * A copyright statement for the specific code system asserted by the containing ValueSet.compose.include element's system value (if the associated ValueSet.compose.include.version element is not present); or the code system and version combination (if the associated ValueSet.compose.include.version element is present). + */ + @Child(name = "copyright", type = {StringType.class}, order=6, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="A copyright statement for the specific code system included in the value set", formalDefinition="A copyright statement for the specific code system asserted by the containing ValueSet.compose.include element's system value (if the associated ValueSet.compose.include.version element is not present); or the code system and version combination (if the associated ValueSet.compose.include.version element is present)." ) + protected StringType copyright; + + private static final long serialVersionUID = -517139062L; /** * Constructor @@ -802,7 +809,7 @@ public class ValueSet extends CanonicalResource { } /** - * @return {@link #valueSet} (Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.) + * @return {@link #valueSet} (Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the intersection of the contents of all of the referenced value sets.) */ public List getValueSet() { if (this.valueSet == null) @@ -828,7 +835,7 @@ public class ValueSet extends CanonicalResource { } /** - * @return {@link #valueSet} (Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.) + * @return {@link #valueSet} (Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the intersection of the contents of all of the referenced value sets.) */ public CanonicalType addValueSetElement() {//2 CanonicalType t = new CanonicalType(); @@ -839,7 +846,7 @@ public class ValueSet extends CanonicalResource { } /** - * @param value {@link #valueSet} (Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.) + * @param value {@link #valueSet} (Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the intersection of the contents of all of the referenced value sets.) */ public ConceptSetComponent addValueSet(String value) { //1 CanonicalType t = new CanonicalType(); @@ -851,7 +858,7 @@ public class ValueSet extends CanonicalResource { } /** - * @param value {@link #valueSet} (Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.) + * @param value {@link #valueSet} (Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the intersection of the contents of all of the referenced value sets.) */ public boolean hasValueSet(String value) { if (this.valueSet == null) @@ -862,13 +869,63 @@ public class ValueSet extends CanonicalResource { return false; } + /** + * @return {@link #copyright} (A copyright statement for the specific code system asserted by the containing ValueSet.compose.include element's system value (if the associated ValueSet.compose.include.version element is not present); or the code system and version combination (if the associated ValueSet.compose.include.version element is present).). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value + */ + public StringType getCopyrightElement() { + if (this.copyright == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ConceptSetComponent.copyright"); + else if (Configuration.doAutoCreate()) + this.copyright = new StringType(); // bb + return this.copyright; + } + + public boolean hasCopyrightElement() { + return this.copyright != null && !this.copyright.isEmpty(); + } + + public boolean hasCopyright() { + return this.copyright != null && !this.copyright.isEmpty(); + } + + /** + * @param value {@link #copyright} (A copyright statement for the specific code system asserted by the containing ValueSet.compose.include element's system value (if the associated ValueSet.compose.include.version element is not present); or the code system and version combination (if the associated ValueSet.compose.include.version element is present).). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value + */ + public ConceptSetComponent setCopyrightElement(StringType value) { + this.copyright = value; + return this; + } + + /** + * @return A copyright statement for the specific code system asserted by the containing ValueSet.compose.include element's system value (if the associated ValueSet.compose.include.version element is not present); or the code system and version combination (if the associated ValueSet.compose.include.version element is present). + */ + public String getCopyright() { + return this.copyright == null ? null : this.copyright.getValue(); + } + + /** + * @param value A copyright statement for the specific code system asserted by the containing ValueSet.compose.include element's system value (if the associated ValueSet.compose.include.version element is not present); or the code system and version combination (if the associated ValueSet.compose.include.version element is present). + */ + public ConceptSetComponent setCopyright(String value) { + if (Utilities.noString(value)) + this.copyright = null; + else { + if (this.copyright == null) + this.copyright = new StringType(); + this.copyright.setValue(value); + } + return this; + } + protected void listChildren(List children) { super.listChildren(children); children.add(new Property("system", "uri", "An absolute URI which is the code system from which the selected codes come from.", 0, 1, system)); children.add(new Property("version", "string", "The version of the code system that the codes are selected from, or the special version '*' for all versions.", 0, 1, version)); children.add(new Property("concept", "", "Specifies a concept to be included or excluded.", 0, java.lang.Integer.MAX_VALUE, concept)); children.add(new Property("filter", "", "Select concepts by specify a matching criterion based on the properties (including relationships) defined by the system, or on filters defined by the system. If multiple filters are specified, they SHALL all be true.", 0, java.lang.Integer.MAX_VALUE, filter)); - children.add(new Property("valueSet", "canonical(ValueSet)", "Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.", 0, java.lang.Integer.MAX_VALUE, valueSet)); + children.add(new Property("valueSet", "canonical(ValueSet)", "Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the intersection of the contents of all of the referenced value sets.", 0, java.lang.Integer.MAX_VALUE, valueSet)); + children.add(new Property("copyright", "string", "A copyright statement for the specific code system asserted by the containing ValueSet.compose.include element's system value (if the associated ValueSet.compose.include.version element is not present); or the code system and version combination (if the associated ValueSet.compose.include.version element is present).", 0, 1, copyright)); } @Override @@ -878,7 +935,8 @@ public class ValueSet extends CanonicalResource { case 351608024: /*version*/ return new Property("version", "string", "The version of the code system that the codes are selected from, or the special version '*' for all versions.", 0, 1, version); case 951024232: /*concept*/ return new Property("concept", "", "Specifies a concept to be included or excluded.", 0, java.lang.Integer.MAX_VALUE, concept); case -1274492040: /*filter*/ return new Property("filter", "", "Select concepts by specify a matching criterion based on the properties (including relationships) defined by the system, or on filters defined by the system. If multiple filters are specified, they SHALL all be true.", 0, java.lang.Integer.MAX_VALUE, filter); - case -1410174671: /*valueSet*/ return new Property("valueSet", "canonical(ValueSet)", "Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the union of the contents of all of the referenced value sets.", 0, java.lang.Integer.MAX_VALUE, valueSet); + case -1410174671: /*valueSet*/ return new Property("valueSet", "canonical(ValueSet)", "Selects the concepts found in this value set (based on its value set definition). This is an absolute URI that is a reference to ValueSet.url. If multiple value sets are specified this includes the intersection of the contents of all of the referenced value sets.", 0, java.lang.Integer.MAX_VALUE, valueSet); + case 1522889671: /*copyright*/ return new Property("copyright", "string", "A copyright statement for the specific code system asserted by the containing ValueSet.compose.include element's system value (if the associated ValueSet.compose.include.version element is not present); or the code system and version combination (if the associated ValueSet.compose.include.version element is present).", 0, 1, copyright); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -892,6 +950,7 @@ public class ValueSet extends CanonicalResource { case 951024232: /*concept*/ return this.concept == null ? new Base[0] : this.concept.toArray(new Base[this.concept.size()]); // ConceptReferenceComponent case -1274492040: /*filter*/ return this.filter == null ? new Base[0] : this.filter.toArray(new Base[this.filter.size()]); // ConceptSetFilterComponent case -1410174671: /*valueSet*/ return this.valueSet == null ? new Base[0] : this.valueSet.toArray(new Base[this.valueSet.size()]); // CanonicalType + case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // StringType default: return super.getProperty(hash, name, checkValid); } @@ -915,6 +974,9 @@ public class ValueSet extends CanonicalResource { case -1410174671: // valueSet this.getValueSet().add(TypeConvertor.castToCanonical(value)); // CanonicalType return value; + case 1522889671: // copyright + this.copyright = TypeConvertor.castToString(value); // StringType + return value; default: return super.setProperty(hash, name, value); } @@ -932,6 +994,8 @@ public class ValueSet extends CanonicalResource { this.getFilter().add((ConceptSetFilterComponent) value); } else if (name.equals("valueSet")) { this.getValueSet().add(TypeConvertor.castToCanonical(value)); + } else if (name.equals("copyright")) { + this.copyright = TypeConvertor.castToString(value); // StringType } else return super.setProperty(name, value); return value; @@ -945,6 +1009,7 @@ public class ValueSet extends CanonicalResource { case 951024232: return addConcept(); case -1274492040: return addFilter(); case -1410174671: return addValueSetElement(); + case 1522889671: return getCopyrightElement(); default: return super.makeProperty(hash, name); } @@ -958,6 +1023,7 @@ public class ValueSet extends CanonicalResource { case 951024232: /*concept*/ return new String[] {}; case -1274492040: /*filter*/ return new String[] {}; case -1410174671: /*valueSet*/ return new String[] {"canonical"}; + case 1522889671: /*copyright*/ return new String[] {"string"}; default: return super.getTypesForProperty(hash, name); } @@ -980,6 +1046,9 @@ public class ValueSet extends CanonicalResource { else if (name.equals("valueSet")) { throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.valueSet"); } + else if (name.equals("copyright")) { + throw new FHIRException("Cannot call addChild on a primitive type ValueSet.compose.include.copyright"); + } else return super.addChild(name); } @@ -1009,6 +1078,7 @@ public class ValueSet extends CanonicalResource { for (CanonicalType i : valueSet) dst.valueSet.add(i.copy()); }; + dst.copyright = copyright == null ? null : copyright.copy(); } @Override @@ -1019,7 +1089,8 @@ public class ValueSet extends CanonicalResource { return false; ConceptSetComponent o = (ConceptSetComponent) other_; return compareDeep(system, o.system, true) && compareDeep(version, o.version, true) && compareDeep(concept, o.concept, true) - && compareDeep(filter, o.filter, true) && compareDeep(valueSet, o.valueSet, true); + && compareDeep(filter, o.filter, true) && compareDeep(valueSet, o.valueSet, true) && compareDeep(copyright, o.copyright, true) + ; } @Override @@ -1030,12 +1101,12 @@ public class ValueSet extends CanonicalResource { return false; ConceptSetComponent o = (ConceptSetComponent) other_; return compareValues(system, o.system, true) && compareValues(version, o.version, true) && compareValues(valueSet, o.valueSet, true) - ; + && compareValues(copyright, o.copyright, true); } public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(system, version, concept - , filter, valueSet); + , filter, valueSet, copyright); } public String fhirType() { @@ -1693,7 +1764,7 @@ public class ValueSet extends CanonicalResource { * The kind of operation to perform as a part of the filter criteria. */ @Child(name = "op", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=true) - @Description(shortDefinition="= | is-a | descendent-of | is-not-a | regex | in | not-in | generalizes | exists", formalDefinition="The kind of operation to perform as a part of the filter criteria." ) + @Description(shortDefinition="= | is-a | descendent-of | is-not-a | regex | in | not-in | generalizes | child-of | descendent-leaf | exists", formalDefinition="The kind of operation to perform as a part of the filter criteria." ) @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/filter-operator") protected Enumeration op; @@ -4368,11 +4439,333 @@ public class ValueSet extends CanonicalResource { } + @Block() + public static class ValueSetScopeComponent extends BackboneElement implements IBaseBackboneElement { + /** + * The general focus of the Value Set as it relates to the intended semantic space. This can be the information about clinical relevancy or the statement about the general focus of the Value Set, such as a description of types of messages, payment options, geographic locations, etc. + */ + @Child(name = "focus", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="General focus of the Value Set as it relates to the intended semantic space", formalDefinition="The general focus of the Value Set as it relates to the intended semantic space. This can be the information about clinical relevancy or the statement about the general focus of the Value Set, such as a description of types of messages, payment options, geographic locations, etc." ) + protected StringType focus; + + /** + * Criteria describing which concepts or codes should be included and why. + */ + @Child(name = "inclusionCriteria", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Criteria describing which concepts or codes should be included and why", formalDefinition="Criteria describing which concepts or codes should be included and why." ) + protected StringType inclusionCriteria; + + /** + * Criteria describing which concepts or codes should be excluded and why. + */ + @Child(name = "exclusionCriteria", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Criteria describing which concepts or codes should be excluded and why", formalDefinition="Criteria describing which concepts or codes should be excluded and why." ) + protected StringType exclusionCriteria; + + private static final long serialVersionUID = -467705711L; + /** - * An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers. + * Constructor + */ + public ValueSetScopeComponent() { + super(); + } + + /** + * @return {@link #focus} (The general focus of the Value Set as it relates to the intended semantic space. This can be the information about clinical relevancy or the statement about the general focus of the Value Set, such as a description of types of messages, payment options, geographic locations, etc.). This is the underlying object with id, value and extensions. The accessor "getFocus" gives direct access to the value + */ + public StringType getFocusElement() { + if (this.focus == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ValueSetScopeComponent.focus"); + else if (Configuration.doAutoCreate()) + this.focus = new StringType(); // bb + return this.focus; + } + + public boolean hasFocusElement() { + return this.focus != null && !this.focus.isEmpty(); + } + + public boolean hasFocus() { + return this.focus != null && !this.focus.isEmpty(); + } + + /** + * @param value {@link #focus} (The general focus of the Value Set as it relates to the intended semantic space. This can be the information about clinical relevancy or the statement about the general focus of the Value Set, such as a description of types of messages, payment options, geographic locations, etc.). This is the underlying object with id, value and extensions. The accessor "getFocus" gives direct access to the value + */ + public ValueSetScopeComponent setFocusElement(StringType value) { + this.focus = value; + return this; + } + + /** + * @return The general focus of the Value Set as it relates to the intended semantic space. This can be the information about clinical relevancy or the statement about the general focus of the Value Set, such as a description of types of messages, payment options, geographic locations, etc. + */ + public String getFocus() { + return this.focus == null ? null : this.focus.getValue(); + } + + /** + * @param value The general focus of the Value Set as it relates to the intended semantic space. This can be the information about clinical relevancy or the statement about the general focus of the Value Set, such as a description of types of messages, payment options, geographic locations, etc. + */ + public ValueSetScopeComponent setFocus(String value) { + if (Utilities.noString(value)) + this.focus = null; + else { + if (this.focus == null) + this.focus = new StringType(); + this.focus.setValue(value); + } + return this; + } + + /** + * @return {@link #inclusionCriteria} (Criteria describing which concepts or codes should be included and why.). This is the underlying object with id, value and extensions. The accessor "getInclusionCriteria" gives direct access to the value + */ + public StringType getInclusionCriteriaElement() { + if (this.inclusionCriteria == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ValueSetScopeComponent.inclusionCriteria"); + else if (Configuration.doAutoCreate()) + this.inclusionCriteria = new StringType(); // bb + return this.inclusionCriteria; + } + + public boolean hasInclusionCriteriaElement() { + return this.inclusionCriteria != null && !this.inclusionCriteria.isEmpty(); + } + + public boolean hasInclusionCriteria() { + return this.inclusionCriteria != null && !this.inclusionCriteria.isEmpty(); + } + + /** + * @param value {@link #inclusionCriteria} (Criteria describing which concepts or codes should be included and why.). This is the underlying object with id, value and extensions. The accessor "getInclusionCriteria" gives direct access to the value + */ + public ValueSetScopeComponent setInclusionCriteriaElement(StringType value) { + this.inclusionCriteria = value; + return this; + } + + /** + * @return Criteria describing which concepts or codes should be included and why. + */ + public String getInclusionCriteria() { + return this.inclusionCriteria == null ? null : this.inclusionCriteria.getValue(); + } + + /** + * @param value Criteria describing which concepts or codes should be included and why. + */ + public ValueSetScopeComponent setInclusionCriteria(String value) { + if (Utilities.noString(value)) + this.inclusionCriteria = null; + else { + if (this.inclusionCriteria == null) + this.inclusionCriteria = new StringType(); + this.inclusionCriteria.setValue(value); + } + return this; + } + + /** + * @return {@link #exclusionCriteria} (Criteria describing which concepts or codes should be excluded and why.). This is the underlying object with id, value and extensions. The accessor "getExclusionCriteria" gives direct access to the value + */ + public StringType getExclusionCriteriaElement() { + if (this.exclusionCriteria == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ValueSetScopeComponent.exclusionCriteria"); + else if (Configuration.doAutoCreate()) + this.exclusionCriteria = new StringType(); // bb + return this.exclusionCriteria; + } + + public boolean hasExclusionCriteriaElement() { + return this.exclusionCriteria != null && !this.exclusionCriteria.isEmpty(); + } + + public boolean hasExclusionCriteria() { + return this.exclusionCriteria != null && !this.exclusionCriteria.isEmpty(); + } + + /** + * @param value {@link #exclusionCriteria} (Criteria describing which concepts or codes should be excluded and why.). This is the underlying object with id, value and extensions. The accessor "getExclusionCriteria" gives direct access to the value + */ + public ValueSetScopeComponent setExclusionCriteriaElement(StringType value) { + this.exclusionCriteria = value; + return this; + } + + /** + * @return Criteria describing which concepts or codes should be excluded and why. + */ + public String getExclusionCriteria() { + return this.exclusionCriteria == null ? null : this.exclusionCriteria.getValue(); + } + + /** + * @param value Criteria describing which concepts or codes should be excluded and why. + */ + public ValueSetScopeComponent setExclusionCriteria(String value) { + if (Utilities.noString(value)) + this.exclusionCriteria = null; + else { + if (this.exclusionCriteria == null) + this.exclusionCriteria = new StringType(); + this.exclusionCriteria.setValue(value); + } + return this; + } + + protected void listChildren(List children) { + super.listChildren(children); + children.add(new Property("focus", "string", "The general focus of the Value Set as it relates to the intended semantic space. This can be the information about clinical relevancy or the statement about the general focus of the Value Set, such as a description of types of messages, payment options, geographic locations, etc.", 0, 1, focus)); + children.add(new Property("inclusionCriteria", "string", "Criteria describing which concepts or codes should be included and why.", 0, 1, inclusionCriteria)); + children.add(new Property("exclusionCriteria", "string", "Criteria describing which concepts or codes should be excluded and why.", 0, 1, exclusionCriteria)); + } + + @Override + public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { + switch (_hash) { + case 97604824: /*focus*/ return new Property("focus", "string", "The general focus of the Value Set as it relates to the intended semantic space. This can be the information about clinical relevancy or the statement about the general focus of the Value Set, such as a description of types of messages, payment options, geographic locations, etc.", 0, 1, focus); + case -1380638565: /*inclusionCriteria*/ return new Property("inclusionCriteria", "string", "Criteria describing which concepts or codes should be included and why.", 0, 1, inclusionCriteria); + case 985682765: /*exclusionCriteria*/ return new Property("exclusionCriteria", "string", "Criteria describing which concepts or codes should be excluded and why.", 0, 1, exclusionCriteria); + default: return super.getNamedProperty(_hash, _name, _checkValid); + } + + } + + @Override + public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { + switch (hash) { + case 97604824: /*focus*/ return this.focus == null ? new Base[0] : new Base[] {this.focus}; // StringType + case -1380638565: /*inclusionCriteria*/ return this.inclusionCriteria == null ? new Base[0] : new Base[] {this.inclusionCriteria}; // StringType + case 985682765: /*exclusionCriteria*/ return this.exclusionCriteria == null ? new Base[0] : new Base[] {this.exclusionCriteria}; // StringType + default: return super.getProperty(hash, name, checkValid); + } + + } + + @Override + public Base setProperty(int hash, String name, Base value) throws FHIRException { + switch (hash) { + case 97604824: // focus + this.focus = TypeConvertor.castToString(value); // StringType + return value; + case -1380638565: // inclusionCriteria + this.inclusionCriteria = TypeConvertor.castToString(value); // StringType + return value; + case 985682765: // exclusionCriteria + this.exclusionCriteria = TypeConvertor.castToString(value); // StringType + return value; + default: return super.setProperty(hash, name, value); + } + + } + + @Override + public Base setProperty(String name, Base value) throws FHIRException { + if (name.equals("focus")) { + this.focus = TypeConvertor.castToString(value); // StringType + } else if (name.equals("inclusionCriteria")) { + this.inclusionCriteria = TypeConvertor.castToString(value); // StringType + } else if (name.equals("exclusionCriteria")) { + this.exclusionCriteria = TypeConvertor.castToString(value); // StringType + } else + return super.setProperty(name, value); + return value; + } + + @Override + public Base makeProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 97604824: return getFocusElement(); + case -1380638565: return getInclusionCriteriaElement(); + case 985682765: return getExclusionCriteriaElement(); + default: return super.makeProperty(hash, name); + } + + } + + @Override + public String[] getTypesForProperty(int hash, String name) throws FHIRException { + switch (hash) { + case 97604824: /*focus*/ return new String[] {"string"}; + case -1380638565: /*inclusionCriteria*/ return new String[] {"string"}; + case 985682765: /*exclusionCriteria*/ return new String[] {"string"}; + default: return super.getTypesForProperty(hash, name); + } + + } + + @Override + public Base addChild(String name) throws FHIRException { + if (name.equals("focus")) { + throw new FHIRException("Cannot call addChild on a primitive type ValueSet.scope.focus"); + } + else if (name.equals("inclusionCriteria")) { + throw new FHIRException("Cannot call addChild on a primitive type ValueSet.scope.inclusionCriteria"); + } + else if (name.equals("exclusionCriteria")) { + throw new FHIRException("Cannot call addChild on a primitive type ValueSet.scope.exclusionCriteria"); + } + else + return super.addChild(name); + } + + public ValueSetScopeComponent copy() { + ValueSetScopeComponent dst = new ValueSetScopeComponent(); + copyValues(dst); + return dst; + } + + public void copyValues(ValueSetScopeComponent dst) { + super.copyValues(dst); + dst.focus = focus == null ? null : focus.copy(); + dst.inclusionCriteria = inclusionCriteria == null ? null : inclusionCriteria.copy(); + dst.exclusionCriteria = exclusionCriteria == null ? null : exclusionCriteria.copy(); + } + + @Override + public boolean equalsDeep(Base other_) { + if (!super.equalsDeep(other_)) + return false; + if (!(other_ instanceof ValueSetScopeComponent)) + return false; + ValueSetScopeComponent o = (ValueSetScopeComponent) other_; + return compareDeep(focus, o.focus, true) && compareDeep(inclusionCriteria, o.inclusionCriteria, true) + && compareDeep(exclusionCriteria, o.exclusionCriteria, true); + } + + @Override + public boolean equalsShallow(Base other_) { + if (!super.equalsShallow(other_)) + return false; + if (!(other_ instanceof ValueSetScopeComponent)) + return false; + ValueSetScopeComponent o = (ValueSetScopeComponent) other_; + return compareValues(focus, o.focus, true) && compareValues(inclusionCriteria, o.inclusionCriteria, true) + && compareValues(exclusionCriteria, o.exclusionCriteria, true); + } + + public boolean isEmpty() { + return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(focus, inclusionCriteria, exclusionCriteria + ); + } + + public String fhirType() { + return "ValueSet.scope"; + + } + + } + + /** + * An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers. */ @Child(name = "url", type = {UriType.class}, order=0, min=0, max=1, modifier=false, summary=true) - @Description(shortDefinition="Canonical identifier for this value set, represented as a URI (globally unique)", formalDefinition="An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers." ) + @Description(shortDefinition="Canonical identifier for this value set, represented as a URI (globally unique)", formalDefinition="An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers." ) protected UriType url; /** @@ -4496,7 +4889,14 @@ public class ValueSet extends CanonicalResource { @Description(shortDefinition="Used when the value set is \"expanded\"", formalDefinition="A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed." ) protected ValueSetExpansionComponent expansion; - private static final long serialVersionUID = 1466998405L; + /** + * Description of the semantic space the Value Set Expansion is intended to cover. + */ + @Child(name = "scope", type = {}, order=18, min=0, max=1, modifier=false, summary=false) + @Description(shortDefinition="Description of the semantic space the Value Set Expansion is intended to cover", formalDefinition="Description of the semantic space the Value Set Expansion is intended to cover." ) + protected ValueSetScopeComponent scope; + + private static final long serialVersionUID = 1111958035L; /** * Constructor @@ -4514,7 +4914,7 @@ public class ValueSet extends CanonicalResource { } /** - * @return {@link #url} (An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value + * @return {@link #url} (An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value */ public UriType getUrlElement() { if (this.url == null) @@ -4534,7 +4934,7 @@ public class ValueSet extends CanonicalResource { } /** - * @param value {@link #url} (An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value + * @param value {@link #url} (An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value */ public ValueSet setUrlElement(UriType value) { this.url = value; @@ -4542,14 +4942,14 @@ public class ValueSet extends CanonicalResource { } /** - * @return An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers. + * @return An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers. */ public String getUrl() { return this.url == null ? null : this.url.getValue(); } /** - * @param value An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers. + * @param value An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers. */ public ValueSet setUrl(String value) { if (Utilities.noString(value)) @@ -5349,9 +5749,33 @@ public class ValueSet extends CanonicalResource { return this; } + /** + * @return {@link #scope} (Description of the semantic space the Value Set Expansion is intended to cover.) + */ + public ValueSetScopeComponent getScope() { + if (this.scope == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create ValueSet.scope"); + else if (Configuration.doAutoCreate()) + this.scope = new ValueSetScopeComponent(); // cc + return this.scope; + } + + public boolean hasScope() { + return this.scope != null && !this.scope.isEmpty(); + } + + /** + * @param value {@link #scope} (Description of the semantic space the Value Set Expansion is intended to cover.) + */ + public ValueSet setScope(ValueSetScopeComponent value) { + this.scope = value; + return this; + } + protected void listChildren(List children) { super.listChildren(children); - children.add(new Property("url", "uri", "An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.", 0, 1, url)); + children.add(new Property("url", "uri", "An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.", 0, 1, url)); children.add(new Property("identifier", "Identifier", "A formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier)); children.add(new Property("version", "string", "The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the value set author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version)); children.add(new Property("name", "string", "A natural language name identifying the value set. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name)); @@ -5369,12 +5793,13 @@ public class ValueSet extends CanonicalResource { children.add(new Property("copyright", "markdown", "A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.", 0, 1, copyright)); children.add(new Property("compose", "", "A set of criteria that define the contents of the value set by including or excluding codes selected from the specified code system(s) that the value set draws from. This is also known as the Content Logical Definition (CLD).", 0, 1, compose)); children.add(new Property("expansion", "", "A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed.", 0, 1, expansion)); + children.add(new Property("scope", "", "Description of the semantic space the Value Set Expansion is intended to cover.", 0, 1, scope)); } @Override public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { switch (_hash) { - case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.", 0, 1, url); + case 116079: /*url*/ return new Property("url", "uri", "An absolute URI that is used to identify this value set when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this value set is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the value set is stored on different servers.", 0, 1, url); case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier); case 351608024: /*version*/ return new Property("version", "string", "The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the value set author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version); case 3373707: /*name*/ return new Property("name", "string", "A natural language name identifying the value set. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name); @@ -5392,6 +5817,7 @@ public class ValueSet extends CanonicalResource { case 1522889671: /*copyright*/ return new Property("copyright", "markdown", "A copyright statement relating to the value set and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the value set.", 0, 1, copyright); case 950497682: /*compose*/ return new Property("compose", "", "A set of criteria that define the contents of the value set by including or excluding codes selected from the specified code system(s) that the value set draws from. This is also known as the Content Logical Definition (CLD).", 0, 1, compose); case 17878207: /*expansion*/ return new Property("expansion", "", "A value set can also be \"expanded\", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed.", 0, 1, expansion); + case 109264468: /*scope*/ return new Property("scope", "", "Description of the semantic space the Value Set Expansion is intended to cover.", 0, 1, scope); default: return super.getNamedProperty(_hash, _name, _checkValid); } @@ -5418,6 +5844,7 @@ public class ValueSet extends CanonicalResource { case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType case 950497682: /*compose*/ return this.compose == null ? new Base[0] : new Base[] {this.compose}; // ValueSetComposeComponent case 17878207: /*expansion*/ return this.expansion == null ? new Base[0] : new Base[] {this.expansion}; // ValueSetExpansionComponent + case 109264468: /*scope*/ return this.scope == null ? new Base[0] : new Base[] {this.scope}; // ValueSetScopeComponent default: return super.getProperty(hash, name, checkValid); } @@ -5481,6 +5908,9 @@ public class ValueSet extends CanonicalResource { case 17878207: // expansion this.expansion = (ValueSetExpansionComponent) value; // ValueSetExpansionComponent return value; + case 109264468: // scope + this.scope = (ValueSetScopeComponent) value; // ValueSetScopeComponent + return value; default: return super.setProperty(hash, name, value); } @@ -5525,6 +5955,8 @@ public class ValueSet extends CanonicalResource { this.compose = (ValueSetComposeComponent) value; // ValueSetComposeComponent } else if (name.equals("expansion")) { this.expansion = (ValueSetExpansionComponent) value; // ValueSetExpansionComponent + } else if (name.equals("scope")) { + this.scope = (ValueSetScopeComponent) value; // ValueSetScopeComponent } else return super.setProperty(name, value); return value; @@ -5551,6 +5983,7 @@ public class ValueSet extends CanonicalResource { case 1522889671: return getCopyrightElement(); case 950497682: return getCompose(); case 17878207: return getExpansion(); + case 109264468: return getScope(); default: return super.makeProperty(hash, name); } @@ -5577,6 +6010,7 @@ public class ValueSet extends CanonicalResource { case 1522889671: /*copyright*/ return new String[] {"markdown"}; case 950497682: /*compose*/ return new String[] {}; case 17878207: /*expansion*/ return new String[] {}; + case 109264468: /*scope*/ return new String[] {}; default: return super.getTypesForProperty(hash, name); } @@ -5640,6 +6074,10 @@ public class ValueSet extends CanonicalResource { this.expansion = new ValueSetExpansionComponent(); return this.expansion; } + else if (name.equals("scope")) { + this.scope = new ValueSetScopeComponent(); + return this.scope; + } else return super.addChild(name); } @@ -5691,6 +6129,7 @@ public class ValueSet extends CanonicalResource { dst.copyright = copyright == null ? null : copyright.copy(); dst.compose = compose == null ? null : compose.copy(); dst.expansion = expansion == null ? null : expansion.copy(); + dst.scope = scope == null ? null : scope.copy(); } protected ValueSet typedCopy() { @@ -5710,7 +6149,7 @@ public class ValueSet extends CanonicalResource { && compareDeep(contact, o.contact, true) && compareDeep(description, o.description, true) && compareDeep(useContext, o.useContext, true) && compareDeep(jurisdiction, o.jurisdiction, true) && compareDeep(immutable, o.immutable, true) && compareDeep(purpose, o.purpose, true) && compareDeep(copyright, o.copyright, true) && compareDeep(compose, o.compose, true) - && compareDeep(expansion, o.expansion, true); + && compareDeep(expansion, o.expansion, true) && compareDeep(scope, o.scope, true); } @Override @@ -5730,7 +6169,7 @@ public class ValueSet extends CanonicalResource { public boolean isEmpty() { return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(url, identifier, version , name, title, status, experimental, date, publisher, contact, description, useContext - , jurisdiction, immutable, purpose, copyright, compose, expansion); + , jurisdiction, immutable, purpose, copyright, compose, expansion, scope); } @Override @@ -5739,64 +6178,56 @@ public class ValueSet extends CanonicalResource { } /** - * Search parameter: code + * Search parameter: context *

- * Description: This special parameter searches for codes in the value set. See additional notes on the ValueSet resource
- * Type: token
- * Path: ValueSet.expansion.contains.code | ValueSet.compose.include.concept.code
- *

- */ - @SearchParamDefinition(name="code", path="ValueSet.expansion.contains.code | ValueSet.compose.include.concept.code", description="This special parameter searches for codes in the value set. See additional notes on the ValueSet resource", type="token" ) - public static final String SP_CODE = "code"; - /** - * Fluent Client search parameter constant for code - *

- * Description: This special parameter searches for codes in the value set. See additional notes on the ValueSet resource
- * Type: token
- * Path: ValueSet.expansion.contains.code | ValueSet.compose.include.concept.code
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + * Description: Multiple Resources: - /** - * Search parameter: expansion - *

- * Description: Identifies the value set expansion (business identifier)
- * Type: uri
- * Path: ValueSet.expansion.identifier
+* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +

+ * Type: token
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="expansion", path="ValueSet.expansion.identifier", description="Identifies the value set expansion (business identifier)", type="uri" ) - public static final String SP_EXPANSION = "expansion"; + @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) + public static final String SP_CONTEXT = "context"; /** - * Fluent Client search parameter constant for expansion + * Fluent Client search parameter constant for context *

- * Description: Identifies the value set expansion (business identifier)
- * Type: uri
- * Path: ValueSet.expansion.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.UriClientParam EXPANSION = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_EXPANSION); + * Description: Multiple Resources: - /** - * Search parameter: reference - *

- * Description: A code system included or excluded in the value set or an imported value set
- * Type: uri
- * Path: ValueSet.compose.include.system
+* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement +* [CodeSystem](codesystem.html): A use context assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition +* [NamingSystem](namingsystem.html): A use context assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition +* [StructureMap](structuremap.html): A use context assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context assigned to the value set +

+ * Type: token
+ * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
*

*/ - @SearchParamDefinition(name="reference", path="ValueSet.compose.include.system", description="A code system included or excluded in the value set or an imported value set", type="uri" ) - public static final String SP_REFERENCE = "reference"; - /** - * Fluent Client search parameter constant for reference - *

- * Description: A code system included or excluded in the value set or an imported value set
- * Type: uri
- * Path: ValueSet.compose.include.system
- *

- */ - public static final ca.uhn.fhir.rest.gclient.UriClientParam REFERENCE = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_REFERENCE); + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); /** * Search parameter: context-quantity @@ -5850,110 +6281,6 @@ public class ValueSet extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY); - /** - * Search parameter: context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) - public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; - /** - * Fluent Client search parameter constant for context-type-quantity - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); - - /** - * Search parameter: context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) - public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; - /** - * Fluent Client search parameter constant for context-type-value - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement -* [CodeSystem](codesystem.html): A use context type and value assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition -* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition -* [StructureMap](structuremap.html): A use context type and value assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context type and value assigned to the value set -
- * Type: composite
- * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
- *

- */ - public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); - /** * Search parameter: context-type *

@@ -6006,58 +6333,6 @@ public class ValueSet extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE); - /** - * Search parameter: context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - @SearchParamDefinition(name="context", path="(CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context assigned to the value set\r\n", type="token" ) - public static final String SP_CONTEXT = "context"; - /** - * Fluent Client search parameter constant for context - *

- * Description: Multiple Resources: - -* [CapabilityStatement](capabilitystatement.html): A use context assigned to the capability statement -* [CodeSystem](codesystem.html): A use context assigned to the code system -* [CompartmentDefinition](compartmentdefinition.html): A use context assigned to the compartment definition -* [ConceptMap](conceptmap.html): A use context assigned to the concept map -* [GraphDefinition](graphdefinition.html): A use context assigned to the graph definition -* [ImplementationGuide](implementationguide.html): A use context assigned to the implementation guide -* [MessageDefinition](messagedefinition.html): A use context assigned to the message definition -* [NamingSystem](namingsystem.html): A use context assigned to the naming system -* [OperationDefinition](operationdefinition.html): A use context assigned to the operation definition -* [SearchParameter](searchparameter.html): A use context assigned to the search parameter -* [StructureDefinition](structuredefinition.html): A use context assigned to the structure definition -* [StructureMap](structuremap.html): A use context assigned to the structure map -* [TerminologyCapabilities](terminologycapabilities.html): A use context assigned to the terminology capabilities -* [ValueSet](valueset.html): A use context assigned to the value set -
- * Type: token
- * Path: (CapabilityStatement.useContext.value as CodeableConcept) | (CodeSystem.useContext.value as CodeableConcept) | (CompartmentDefinition.useContext.value as CodeableConcept) | (ConceptMap.useContext.value as CodeableConcept) | (GraphDefinition.useContext.value as CodeableConcept) | (ImplementationGuide.useContext.value as CodeableConcept) | (MessageDefinition.useContext.value as CodeableConcept) | (NamingSystem.useContext.value as CodeableConcept) | (OperationDefinition.useContext.value as CodeableConcept) | (SearchParameter.useContext.value as CodeableConcept) | (StructureDefinition.useContext.value as CodeableConcept) | (StructureMap.useContext.value as CodeableConcept) | (TerminologyCapabilities.useContext.value as CodeableConcept) | (ValueSet.useContext.value as CodeableConcept)
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT); - /** * Search parameter: date *

@@ -6162,44 +6437,6 @@ public class ValueSet extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION); - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [CodeSystem](codesystem.html): External identifier for the code system -* [ConceptMap](conceptmap.html): External identifier for the concept map -* [MessageDefinition](messagedefinition.html): External identifier for the message definition -* [StructureDefinition](structuredefinition.html): External identifier for the structure definition -* [StructureMap](structuremap.html): External identifier for the structure map -* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities -* [ValueSet](valueset.html): External identifier for the value set -
- * Type: token
- * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier", description="Multiple Resources: \r\n\r\n* [CodeSystem](codesystem.html): External identifier for the code system\r\n* [ConceptMap](conceptmap.html): External identifier for the concept map\r\n* [MessageDefinition](messagedefinition.html): External identifier for the message definition\r\n* [StructureDefinition](structuredefinition.html): External identifier for the structure definition\r\n* [StructureMap](structuremap.html): External identifier for the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities\r\n* [ValueSet](valueset.html): External identifier for the value set\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [CodeSystem](codesystem.html): External identifier for the code system -* [ConceptMap](conceptmap.html): External identifier for the concept map -* [MessageDefinition](messagedefinition.html): External identifier for the message definition -* [StructureDefinition](structuredefinition.html): External identifier for the structure definition -* [StructureMap](structuremap.html): External identifier for the structure map -* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities -* [ValueSet](valueset.html): External identifier for the value set -
- * Type: token
- * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - /** * Search parameter: jurisdiction *

@@ -6554,6 +6791,208 @@ public class ValueSet extends CanonicalResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION); + /** + * Search parameter: context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-quantity", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context-quantity"} ) + public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity"; + /** + * Fluent Client search parameter constant for context-type-quantity + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and quantity- or range-based value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and quantity- or range-based value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and quantity- or range-based value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and quantity- or range-based value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and quantity- or range-based value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and quantity- or range-based value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and quantity- or range-based value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and quantity- or range-based value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and quantity- or range-based value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and quantity- or range-based value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and quantity- or range-based value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and quantity- or range-based value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and quantity- or range-based value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and quantity- or range-based value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_QUANTITY); + + /** + * Search parameter: context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + @SearchParamDefinition(name="context-type-value", path="CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext", description="Multiple Resources: \r\n\r\n* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement\r\n* [CodeSystem](codesystem.html): A use context type and value assigned to the code system\r\n* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition\r\n* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map\r\n* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition\r\n* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide\r\n* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition\r\n* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system\r\n* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition\r\n* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter\r\n* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition\r\n* [StructureMap](structuremap.html): A use context type and value assigned to the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities\r\n* [ValueSet](valueset.html): A use context type and value assigned to the value set\r\n", type="composite", compositeOf={"context-type", "context"} ) + public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value"; + /** + * Fluent Client search parameter constant for context-type-value + *

+ * Description: Multiple Resources: + +* [CapabilityStatement](capabilitystatement.html): A use context type and value assigned to the capability statement +* [CodeSystem](codesystem.html): A use context type and value assigned to the code system +* [CompartmentDefinition](compartmentdefinition.html): A use context type and value assigned to the compartment definition +* [ConceptMap](conceptmap.html): A use context type and value assigned to the concept map +* [GraphDefinition](graphdefinition.html): A use context type and value assigned to the graph definition +* [ImplementationGuide](implementationguide.html): A use context type and value assigned to the implementation guide +* [MessageDefinition](messagedefinition.html): A use context type and value assigned to the message definition +* [NamingSystem](namingsystem.html): A use context type and value assigned to the naming system +* [OperationDefinition](operationdefinition.html): A use context type and value assigned to the operation definition +* [SearchParameter](searchparameter.html): A use context type and value assigned to the search parameter +* [StructureDefinition](structuredefinition.html): A use context type and value assigned to the structure definition +* [StructureMap](structuremap.html): A use context type and value assigned to the structure map +* [TerminologyCapabilities](terminologycapabilities.html): A use context type and value assigned to the terminology capabilities +* [ValueSet](valueset.html): A use context type and value assigned to the value set +
+ * Type: composite
+ * Path: CapabilityStatement.useContext | CodeSystem.useContext | CompartmentDefinition.useContext | ConceptMap.useContext | GraphDefinition.useContext | ImplementationGuide.useContext | MessageDefinition.useContext | NamingSystem.useContext | OperationDefinition.useContext | SearchParameter.useContext | StructureDefinition.useContext | StructureMap.useContext | TerminologyCapabilities.useContext | ValueSet.useContext
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.CompositeClientParam CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam(SP_CONTEXT_TYPE_VALUE); + + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [CodeSystem](codesystem.html): External identifier for the code system +* [ConceptMap](conceptmap.html): External identifier for the concept map +* [MessageDefinition](messagedefinition.html): External identifier for the message definition +* [StructureDefinition](structuredefinition.html): External identifier for the structure definition +* [StructureMap](structuremap.html): External identifier for the structure map +* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities +* [ValueSet](valueset.html): External identifier for the value set +
+ * Type: token
+ * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier", description="Multiple Resources: \r\n\r\n* [CodeSystem](codesystem.html): External identifier for the code system\r\n* [ConceptMap](conceptmap.html): External identifier for the concept map\r\n* [MessageDefinition](messagedefinition.html): External identifier for the message definition\r\n* [StructureDefinition](structuredefinition.html): External identifier for the structure definition\r\n* [StructureMap](structuremap.html): External identifier for the structure map\r\n* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities\r\n* [ValueSet](valueset.html): External identifier for the value set\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [CodeSystem](codesystem.html): External identifier for the code system +* [ConceptMap](conceptmap.html): External identifier for the concept map +* [MessageDefinition](messagedefinition.html): External identifier for the message definition +* [StructureDefinition](structuredefinition.html): External identifier for the structure definition +* [StructureMap](structuremap.html): External identifier for the structure map +* [TerminologyCapabilities](terminologycapabilities.html): External identifier for the terminology capabilities +* [ValueSet](valueset.html): External identifier for the value set +
+ * Type: token
+ * Path: CodeSystem.identifier | ConceptMap.identifier | MessageDefinition.identifier | StructureDefinition.identifier | StructureMap.identifier | TerminologyCapabilities.identifier | ValueSet.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: code + *

+ * Description: This special parameter searches for codes in the value set. See additional notes on the ValueSet resource
+ * Type: token
+ * Path: ValueSet.expansion.contains.code | ValueSet.compose.include.concept.code
+ *

+ */ + @SearchParamDefinition(name="code", path="ValueSet.expansion.contains.code | ValueSet.compose.include.concept.code", description="This special parameter searches for codes in the value set. See additional notes on the ValueSet resource", type="token" ) + public static final String SP_CODE = "code"; + /** + * Fluent Client search parameter constant for code + *

+ * Description: This special parameter searches for codes in the value set. See additional notes on the ValueSet resource
+ * Type: token
+ * Path: ValueSet.expansion.contains.code | ValueSet.compose.include.concept.code
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); + + /** + * Search parameter: expansion + *

+ * Description: Identifies the value set expansion (business identifier)
+ * Type: uri
+ * Path: ValueSet.expansion.identifier
+ *

+ */ + @SearchParamDefinition(name="expansion", path="ValueSet.expansion.identifier", description="Identifies the value set expansion (business identifier)", type="uri" ) + public static final String SP_EXPANSION = "expansion"; + /** + * Fluent Client search parameter constant for expansion + *

+ * Description: Identifies the value set expansion (business identifier)
+ * Type: uri
+ * Path: ValueSet.expansion.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.UriClientParam EXPANSION = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_EXPANSION); + + /** + * Search parameter: reference + *

+ * Description: A code system included or excluded in the value set or an imported value set
+ * Type: uri
+ * Path: ValueSet.compose.include.system
+ *

+ */ + @SearchParamDefinition(name="reference", path="ValueSet.compose.include.system", description="A code system included or excluded in the value set or an imported value set", type="uri" ) + public static final String SP_REFERENCE = "reference"; + /** + * Fluent Client search parameter constant for reference + *

+ * Description: A code system included or excluded in the value set or an imported value set
+ * Type: uri
+ * Path: ValueSet.compose.include.system
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.UriClientParam REFERENCE = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_REFERENCE); + } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VerificationResult.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VerificationResult.java index 858fb9e8d..56a4186df 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VerificationResult.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VerificationResult.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -110,19 +110,17 @@ public class VerificationResult extends DomainResource { case REQREVALID: return "req-revalid"; case VALFAIL: return "val-fail"; case REVALFAIL: return "reval-fail"; - case NULL: return null; default: return "?"; } } public String getSystem() { switch (this) { - case ATTESTED: return "http://hl7.org/fhir/CodeSystem/status"; - case VALIDATED: return "http://hl7.org/fhir/CodeSystem/status"; - case INPROCESS: return "http://hl7.org/fhir/CodeSystem/status"; - case REQREVALID: return "http://hl7.org/fhir/CodeSystem/status"; - case VALFAIL: return "http://hl7.org/fhir/CodeSystem/status"; - case REVALFAIL: return "http://hl7.org/fhir/CodeSystem/status"; - case NULL: return null; + case ATTESTED: return "http://hl7.org/fhir/CodeSystem/verificationresult-status"; + case VALIDATED: return "http://hl7.org/fhir/CodeSystem/verificationresult-status"; + case INPROCESS: return "http://hl7.org/fhir/CodeSystem/verificationresult-status"; + case REQREVALID: return "http://hl7.org/fhir/CodeSystem/verificationresult-status"; + case VALFAIL: return "http://hl7.org/fhir/CodeSystem/verificationresult-status"; + case REVALFAIL: return "http://hl7.org/fhir/CodeSystem/verificationresult-status"; default: return "?"; } } @@ -134,7 +132,6 @@ public class VerificationResult extends DomainResource { case REQREVALID: return "***TODO***"; case VALFAIL: return "***TODO***"; case REVALFAIL: return "***TODO***"; - case NULL: return null; default: return "?"; } } @@ -146,7 +143,6 @@ public class VerificationResult extends DomainResource { case REQREVALID: return "Requires revalidation"; case VALFAIL: return "Validation failed"; case REVALFAIL: return "Re-Validation failed"; - case NULL: return null; default: return "?"; } } @@ -2661,7 +2657,7 @@ public class VerificationResult extends DomainResource { * Path: VerificationResult.target
*

*/ - @SearchParamDefinition(name="target", path="VerificationResult.target", description="A resource that was validated", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + @SearchParamDefinition(name="target", path="VerificationResult.target", description="A resource that was validated", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) public static final String SP_TARGET = "target"; /** * Fluent Client search parameter constant for target diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VisionPrescription.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VisionPrescription.java index c2e7735df..f682b3cc9 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VisionPrescription.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/model/VisionPrescription.java @@ -29,7 +29,7 @@ package org.hl7.fhir.r5.model; POSSIBILITY OF SUCH DAMAGE. */ -// Generated on Thu, Aug 20, 2020 19:42+1000 for FHIR vcurrent +// Generated on Tue, May 4, 2021 07:17+1000 for FHIR v4.6.0 import java.util.ArrayList; import java.util.Date; @@ -97,7 +97,6 @@ public class VisionPrescription extends DomainResource { case DOWN: return "down"; case IN: return "in"; case OUT: return "out"; - case NULL: return null; default: return "?"; } } @@ -107,7 +106,6 @@ public class VisionPrescription extends DomainResource { case DOWN: return "http://hl7.org/fhir/vision-base-codes"; case IN: return "http://hl7.org/fhir/vision-base-codes"; case OUT: return "http://hl7.org/fhir/vision-base-codes"; - case NULL: return null; default: return "?"; } } @@ -117,7 +115,6 @@ public class VisionPrescription extends DomainResource { case DOWN: return "bottom."; case IN: return "inner edge."; case OUT: return "outer edge."; - case NULL: return null; default: return "?"; } } @@ -127,7 +124,6 @@ public class VisionPrescription extends DomainResource { case DOWN: return "Down"; case IN: return "In"; case OUT: return "Out"; - case NULL: return null; default: return "?"; } } @@ -211,7 +207,6 @@ public class VisionPrescription extends DomainResource { switch (this) { case RIGHT: return "right"; case LEFT: return "left"; - case NULL: return null; default: return "?"; } } @@ -219,7 +214,6 @@ public class VisionPrescription extends DomainResource { switch (this) { case RIGHT: return "http://hl7.org/fhir/vision-eye-codes"; case LEFT: return "http://hl7.org/fhir/vision-eye-codes"; - case NULL: return null; default: return "?"; } } @@ -227,7 +221,6 @@ public class VisionPrescription extends DomainResource { switch (this) { case RIGHT: return "Right Eye."; case LEFT: return "Left Eye."; - case NULL: return null; default: return "?"; } } @@ -235,7 +228,6 @@ public class VisionPrescription extends DomainResource { switch (this) { case RIGHT: return "Right Eye"; case LEFT: return "Left Eye"; - case NULL: return null; default: return "?"; } } @@ -2355,6 +2347,238 @@ public class VisionPrescription extends DomainResource { return ResourceType.VisionPrescription; } + /** + * Search parameter: identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) + public static final String SP_IDENTIFIER = "identifier"; + /** + * Fluent Client search parameter constant for identifier + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): External ids for this item +* [CarePlan](careplan.html): External Ids for this plan +* [CareTeam](careteam.html): External Ids for this team +* [Composition](composition.html): Version-independent identifier for the Composition +* [Condition](condition.html): A unique identifier of the condition record +* [Consent](consent.html): Identifier for this record (external references) +* [DetectedIssue](detectedissue.html): Unique id for the detected issue +* [DeviceRequest](devicerequest.html): Business identifier for request/order +* [DiagnosticReport](diagnosticreport.html): An identifier for the report +* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents +* [DocumentReference](documentreference.html): Identifier of the attachment binary +* [Encounter](encounter.html): Identifier(s) by which this encounter is known +* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare +* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier +* [Goal](goal.html): External Ids for this goal +* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID +* [Immunization](immunization.html): Business identifier +* [List](list.html): Business identifier +* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier +* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier +* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier +* [MedicationUsage](medicationusage.html): Return statements with this external identifier +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier +* [Observation](observation.html): The unique id for a particular observation +* [Procedure](procedure.html): A unique identifier for a procedure +* [RiskAssessment](riskassessment.html): Unique identifier for the assessment +* [ServiceRequest](servicerequest.html): Identifiers assigned to this order +* [SupplyDelivery](supplydelivery.html): External identifier +* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest +* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier +
+ * Type: token
+ * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); + + /** + * Search parameter: patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUsage](deviceusage.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Citation.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUsage.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceReport.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, InventoryReport.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, NutritionProduct.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Permission.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, SubscriptionStatus.class, SubscriptionTopic.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) + public static final String SP_PATIENT = "patient"; + /** + * Fluent Client search parameter constant for patient + *

+ * Description: Multiple Resources: + +* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for +* [CarePlan](careplan.html): Who the care plan is for +* [CareTeam](careteam.html): Who care team is for +* [ClinicalImpression](clinicalimpression.html): Patient or group assessed +* [Composition](composition.html): Who and/or what the composition is about +* [Condition](condition.html): Who has the condition? +* [Consent](consent.html): Who the consent applies to +* [DetectedIssue](detectedissue.html): Associated patient +* [DeviceRequest](devicerequest.html): Individual the service is ordered for +* [DeviceUsage](deviceusage.html): Search by subject - a patient +* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient +* [DocumentManifest](documentmanifest.html): The subject of the set of documents +* [DocumentReference](documentreference.html): Who/what is the subject of the document +* [Encounter](encounter.html): The patient or group present at the encounter +* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care +* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for +* [Flag](flag.html): The identity of a subject to list flags for +* [Goal](goal.html): Who this goal is intended for +* [ImagingStudy](imagingstudy.html): Who the study is about +* [Immunization](immunization.html): The patient for the vaccination record +* [List](list.html): If all resources have the same subject +* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for +* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for +* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient +* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. +* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement +* [Observation](observation.html): The subject that the observation is about (if patient) +* [Procedure](procedure.html): Search by subject - a patient +* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? +* [ServiceRequest](servicerequest.html): Search by subject - a patient +* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied +* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for +
+ * Type: reference
+ * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUsage.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "VisionPrescription:patient". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("VisionPrescription:patient").toLocked(); + + /** + * Search parameter: encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) + public static final String SP_ENCOUNTER = "encounter"; + /** + * Fluent Client search parameter constant for encounter + *

+ * Description: Multiple Resources: + +* [Composition](composition.html): Context of the Composition +* [DeviceRequest](devicerequest.html): Encounter during which request was created +* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made +* [DocumentReference](documentreference.html): Context of the document content +* [Flag](flag.html): Alert relevant during encounter +* [List](list.html): Context in which list created +* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier +* [Observation](observation.html): Encounter related to the observation +* [Procedure](procedure.html): The Encounter during which this Procedure was created +* [RiskAssessment](riskassessment.html): Where was assessment performed? +* [ServiceRequest](servicerequest.html): An encounter in which this request is made +* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier +
+ * Type: reference
+ * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
+ *

+ */ + public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); + +/** + * Constant for fluent queries to be used to add include statements. Specifies + * the path value of "VisionPrescription:encounter". + */ + public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("VisionPrescription:encounter").toLocked(); + /** * Search parameter: datewritten *

@@ -2421,238 +2645,6 @@ public class VisionPrescription extends DomainResource { */ public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); - /** - * Search parameter: encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - @SearchParamDefinition(name="encounter", path="Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter", description="Multiple Resources: \r\n\r\n* [Composition](composition.html): Context of the Composition\r\n* [DeviceRequest](devicerequest.html): Encounter during which request was created\r\n* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made\r\n* [DocumentReference](documentreference.html): Context of the document content\r\n* [Flag](flag.html): Alert relevant during encounter\r\n* [List](list.html): Context in which list created\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier\r\n* [Observation](observation.html): Encounter related to the observation\r\n* [Procedure](procedure.html): The Encounter during which this Procedure was created\r\n* [RiskAssessment](riskassessment.html): Where was assessment performed?\r\n* [ServiceRequest](servicerequest.html): An encounter in which this request is made\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) - public static final String SP_ENCOUNTER = "encounter"; - /** - * Fluent Client search parameter constant for encounter - *

- * Description: Multiple Resources: - -* [Composition](composition.html): Context of the Composition -* [DeviceRequest](devicerequest.html): Encounter during which request was created -* [DiagnosticReport](diagnosticreport.html): The Encounter when the order was made -* [DocumentReference](documentreference.html): Context of the document content -* [Flag](flag.html): Alert relevant during encounter -* [List](list.html): Context in which list created -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this encounter identifier -* [Observation](observation.html): Encounter related to the observation -* [Procedure](procedure.html): The Encounter during which this Procedure was created -* [RiskAssessment](riskassessment.html): Where was assessment performed? -* [ServiceRequest](servicerequest.html): An encounter in which this request is made -* [VisionPrescription](visionprescription.html): Return prescriptions with this encounter identifier -
- * Type: reference
- * Path: Composition.encounter | DeviceRequest.encounter | DiagnosticReport.encounter | DocumentReference.encounter | Flag.encounter | List.encounter | NutritionOrder.encounter | Observation.encounter | Procedure.encounter | RiskAssessment.encounter | ServiceRequest.encounter | VisionPrescription.encounter
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "VisionPrescription:encounter". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("VisionPrescription:encounter").toLocked(); - - /** - * Search parameter: identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): External ids for this item\r\n* [CarePlan](careplan.html): External Ids for this plan\r\n* [CareTeam](careteam.html): External Ids for this team\r\n* [Composition](composition.html): Version-independent identifier for the Composition\r\n* [Condition](condition.html): A unique identifier of the condition record\r\n* [Consent](consent.html): Identifier for this record (external references)\r\n* [DetectedIssue](detectedissue.html): Unique id for the detected issue\r\n* [DeviceRequest](devicerequest.html): Business identifier for request/order\r\n* [DiagnosticReport](diagnosticreport.html): An identifier for the report\r\n* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents\r\n* [DocumentReference](documentreference.html): Identifier of the attachment binary\r\n* [Encounter](encounter.html): Identifier(s) by which this encounter is known\r\n* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare\r\n* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier\r\n* [Goal](goal.html): External Ids for this goal\r\n* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number\r\n* [Immunization](immunization.html): Business identifier\r\n* [List](list.html): Business identifier\r\n* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier\r\n* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier\r\n* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier\r\n* [MedicationUsage](medicationusage.html): Return statements with this external identifier\r\n* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier\r\n* [Observation](observation.html): The unique id for a particular observation\r\n* [Procedure](procedure.html): A unique identifier for a procedure\r\n* [RiskAssessment](riskassessment.html): Unique identifier for the assessment\r\n* [ServiceRequest](servicerequest.html): Identifiers assigned to this order\r\n* [SupplyDelivery](supplydelivery.html): External identifier\r\n* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest\r\n* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier\r\n", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - /** - * Fluent Client search parameter constant for identifier - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): External ids for this item -* [CarePlan](careplan.html): External Ids for this plan -* [CareTeam](careteam.html): External Ids for this team -* [Composition](composition.html): Version-independent identifier for the Composition -* [Condition](condition.html): A unique identifier of the condition record -* [Consent](consent.html): Identifier for this record (external references) -* [DetectedIssue](detectedissue.html): Unique id for the detected issue -* [DeviceRequest](devicerequest.html): Business identifier for request/order -* [DiagnosticReport](diagnosticreport.html): An identifier for the report -* [DocumentManifest](documentmanifest.html): Unique Identifier for the set of documents -* [DocumentReference](documentreference.html): Identifier of the attachment binary -* [Encounter](encounter.html): Identifier(s) by which this encounter is known -* [EpisodeOfCare](episodeofcare.html): Business Identifier(s) relevant for this EpisodeOfCare -* [FamilyMemberHistory](familymemberhistory.html): A search by a record identifier -* [Goal](goal.html): External Ids for this goal -* [ImagingStudy](imagingstudy.html): Identifiers for the Study, such as DICOM Study Instance UID and Accession number -* [Immunization](immunization.html): Business identifier -* [List](list.html): Business identifier -* [MedicationAdministration](medicationadministration.html): Return administrations with this external identifier -* [MedicationDispense](medicationdispense.html): Returns dispenses with this external identifier -* [MedicationRequest](medicationrequest.html): Return prescriptions with this external identifier -* [MedicationUsage](medicationusage.html): Return statements with this external identifier -* [NutritionOrder](nutritionorder.html): Return nutrition orders with this external identifier -* [Observation](observation.html): The unique id for a particular observation -* [Procedure](procedure.html): A unique identifier for a procedure -* [RiskAssessment](riskassessment.html): Unique identifier for the assessment -* [ServiceRequest](servicerequest.html): Identifiers assigned to this order -* [SupplyDelivery](supplydelivery.html): External identifier -* [SupplyRequest](supplyrequest.html): Business Identifier for SupplyRequest -* [VisionPrescription](visionprescription.html): Return prescriptions with this external identifier -
- * Type: token
- * Path: AllergyIntolerance.identifier | CarePlan.identifier | CareTeam.identifier | Composition.identifier | Condition.identifier | Consent.identifier | DetectedIssue.identifier | DeviceRequest.identifier | DiagnosticReport.identifier | DocumentManifest.masterIdentifier | DocumentManifest.identifier | DocumentReference.content.identifier | DocumentReference.identifier | Encounter.identifier | EpisodeOfCare.identifier | FamilyMemberHistory.identifier | Goal.identifier | ImagingStudy.identifier | Immunization.identifier | List.identifier | MedicationAdministration.identifier | MedicationDispense.identifier | MedicationRequest.identifier | MedicationUsage.identifier | NutritionOrder.identifier | Observation.identifier | Procedure.identifier | RiskAssessment.identifier | ServiceRequest.identifier | SupplyDelivery.identifier | SupplyRequest.identifier | VisionPrescription.identifier
- *

- */ - public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); - - /** - * Search parameter: patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) - public static final String SP_PATIENT = "patient"; - /** - * Fluent Client search parameter constant for patient - *

- * Description: Multiple Resources: - -* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for -* [CarePlan](careplan.html): Who the care plan is for -* [CareTeam](careteam.html): Who care team is for -* [ClinicalImpression](clinicalimpression.html): Patient or group assessed -* [Composition](composition.html): Who and/or what the composition is about -* [Condition](condition.html): Who has the condition? -* [Consent](consent.html): Who the consent applies to -* [DetectedIssue](detectedissue.html): Associated patient -* [DeviceRequest](devicerequest.html): Individual the service is ordered for -* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient -* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient -* [DocumentManifest](documentmanifest.html): The subject of the set of documents -* [DocumentReference](documentreference.html): Who/what is the subject of the document -* [Encounter](encounter.html): The patient or group present at the encounter -* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care -* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for -* [Flag](flag.html): The identity of a subject to list flags for -* [Goal](goal.html): Who this goal is intended for -* [ImagingStudy](imagingstudy.html): Who the study is about -* [Immunization](immunization.html): The patient for the vaccination record -* [List](list.html): If all resources have the same subject -* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for -* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for -* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient -* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. -* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement -* [Observation](observation.html): The subject that the observation is about (if patient) -* [Procedure](procedure.html): Search by subject - a patient -* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? -* [ServiceRequest](servicerequest.html): Search by subject - a patient -* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied -* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for -
- * Type: reference
- * Path: AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.subject.where(resolve() is Patient) | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient
- *

- */ - public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); - -/** - * Constant for fluent queries to be used to add include statements. Specifies - * the path value of "VisionPrescription:patient". - */ - public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("VisionPrescription:patient").toLocked(); - } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/QuestionnaireRenderer.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/QuestionnaireRenderer.java index 5e0dba77e..a4bb9aeeb 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/QuestionnaireRenderer.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/QuestionnaireRenderer.java @@ -520,7 +520,7 @@ public class QuestionnaireRenderer extends TerminologyRenderer { p.tx(" "); input = p.input(i.getLinkId(), "checkbox", i.getType().getDisplay(), 1); break; - case CHOICE: + case CODING: input = p.select(i.getLinkId()); listOptions(q, i, input); break; @@ -545,8 +545,6 @@ public class QuestionnaireRenderer extends TerminologyRenderer { p.tx(" "); input = p.input(i.getLinkId(), "number", i.getType().getDisplay(), 10); break; - case OPENCHOICE: - break; case QUANTITY: p.tx(" "); input = p.input(i.getLinkId(), "number", "value", 15); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ConceptMapEngine.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ConceptMapEngine.java index 8a750f9e6..265f872b4 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ConceptMapEngine.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ConceptMapEngine.java @@ -39,6 +39,7 @@ import org.hl7.fhir.r5.model.ConceptMap.ConceptMapGroupComponent; import org.hl7.fhir.r5.model.ConceptMap.SourceElementComponent; import org.hl7.fhir.r5.model.ConceptMap.TargetElementComponent; import org.hl7.fhir.r5.model.Enumerations.ConceptMapRelationship; +import org.hl7.fhir.utilities.CanonicalPair; public class ConceptMapEngine { @@ -83,7 +84,8 @@ public class ConceptMapEngine { } if (tt == null) return null; - return new Coding().setSystem(cg.getTarget()).setVersion(cg.getTargetVersion()).setCode(tt.getCode()).setDisplay(tt.getDisplay()); + CanonicalPair cp = new CanonicalPair(cg.getTarget()); + return new Coding().setSystem(cp.getUrl()).setVersion(cp.getVersion()).setCode(tt.getCode()).setDisplay(tt.getDisplay()); } private boolean isOkRelationship(ConceptMapRelationship relationship) { diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetCheckerSimple.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetCheckerSimple.java index d96857ae0..badbd4764 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetCheckerSimple.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetCheckerSimple.java @@ -130,7 +130,7 @@ public class ValueSetCheckerSimple extends ValueSetWorker implements ValueSetChe ValidationResult res = null; boolean inExpansion = false; - String system = code.hasSystem() ? code.getSystem() : getValueSetSystem(); + String system = code.hasSystem() ? code.getSystem() : getValueSetSystemOrNull(); if (options.getValueSetMode() != ValueSetMode.CHECK_MEMERSHIP_ONLY) { if (system == null && !code.hasDisplay()) { // dealing with just a plain code (enum) system = systemForCodeInValueSet(code.getCode()); @@ -369,6 +369,37 @@ public class ValueSetCheckerSimple extends ValueSetWorker implements ValueSetChe return null; } + private String getValueSetSystemOrNull() throws FHIRException { + if (valueset == null) { + return null; + } + if (valueset.getCompose().getInclude().size() == 0) { + if (!valueset.hasExpansion() || valueset.getExpansion().getContains().size() == 0) { + return null; + } else { + String cs = valueset.getExpansion().getContains().get(0).getSystem(); + if (cs != null && checkSystem(valueset.getExpansion().getContains(), cs)) { + return cs; + } else { + return null; + } + } + } + for (ConceptSetComponent inc : valueset.getCompose().getInclude()) { + if (inc.hasValueSet()) { + return null; + } + if (!inc.hasSystem()) { + return null; + } + } + if (valueset.getCompose().getInclude().size() == 1) { + return valueset.getCompose().getInclude().get(0).getSystem(); + } + + return null; + } + /* * Check that all system values within an expansion correspond to the specified system value */ diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetWorker.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetWorker.java index 377227e9e..b0a71987d 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetWorker.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/ValueSetWorker.java @@ -4,7 +4,7 @@ import org.hl7.fhir.utilities.Utilities; public class ValueSetWorker { - protected boolean isServerSide(String url) { + public boolean isServerSide(String url) { return Utilities.existsInList(url, "http://hl7.org/fhir/sid/cvx"); } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/test/utils/TestingUtilities.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/test/utils/TestingUtilities.java index 036cebaf1..7c0d6cf53 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/test/utils/TestingUtilities.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/test/utils/TestingUtilities.java @@ -95,6 +95,7 @@ public class TestingUtilities extends BaseTestingUtilities { // ((SimpleWorkerContext) fcontext).connectToTSServer(new TerminologyClientR5("http://tx.fhir.org/r4"), null); fcontexts.put(v, fcontext); } catch (Exception e) { + e.printStackTrace(); throw new Error(e); } } diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/MappingSheetParser.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/MappingSheetParser.java index 8810c9941..897accfb8 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/MappingSheetParser.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/MappingSheetParser.java @@ -25,7 +25,6 @@ import org.hl7.fhir.r5.model.Enumerations.PublicationStatus; import org.hl7.fhir.r5.model.IdType; import org.hl7.fhir.r5.model.StringType; import org.hl7.fhir.r5.model.StructureMap; -import org.hl7.fhir.r5.model.StructureMap.StructureMapContextType; import org.hl7.fhir.r5.model.StructureMap.StructureMapGroupComponent; import org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleComponent; import org.hl7.fhir.r5.model.StructureMap.StructureMapGroupRuleDependentComponent; @@ -263,7 +262,6 @@ public class MappingSheetParser { } StructureMapGroupRuleTargetComponent tgt = rule.getTargetFirstRep(); tgt.setContext("tgt"); - tgt.setContextType(StructureMapContextType.VARIABLE); tgt.setElement(row.getAttribute()); tgt.addExtension(ToolingExtensions.EXT_MAPPING_TGTTYPE, new StringType(row.getType())); tgt.addExtension(ToolingExtensions.EXT_MAPPING_TGTCARD, new StringType(row.getMinMax())); @@ -286,7 +284,6 @@ public class MappingSheetParser { if (row.getDerived() != null) { tgt = rule.addTarget(); tgt.setContext("tgt"); - tgt.setContextType(StructureMapContextType.VARIABLE); tgt.setElement(row.getDerived()); tgt.setTransform(StructureMapTransform.COPY); tgt.addParameter().setValue(new StringType(row.getDerivedMapping())); diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/QuestionnaireBuilder.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/QuestionnaireBuilder.java index e857ff1b6..d67049ee7 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/QuestionnaireBuilder.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/QuestionnaireBuilder.java @@ -33,6 +33,7 @@ import org.hl7.fhir.r5.model.Factory; import org.hl7.fhir.r5.model.IntegerType; import org.hl7.fhir.r5.model.Quantity; import org.hl7.fhir.r5.model.Questionnaire; +import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireAnswerConstraint; import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemComponent; import org.hl7.fhir.r5.model.Questionnaire.QuestionnaireItemType; import org.hl7.fhir.r5.model.QuestionnaireResponse; @@ -371,7 +372,7 @@ public class QuestionnaireBuilder { if (element.getType().size() > 1 || element.getType().get(0).getWorkingCode().equals("*")) { List types = expandTypeList(element.getType()); - Questionnaire.QuestionnaireItemComponent q = addQuestion(group, QuestionnaireItemType.CHOICE, element.getPath(), "_type", "type", null, makeTypeList(profile, types, element.getPath())); + Questionnaire.QuestionnaireItemComponent q = addQuestion(group, QuestionnaireItemType.CODING, QuestionnaireAnswerConstraint.OPTIONSONLY, element.getPath(), "_type", "type", null, makeTypeList(profile, types, element.getPath())); for (TypeRefComponent t : types) { Questionnaire.QuestionnaireItemComponent sub = q.addItem(); sub.setType(QuestionnaireItemType.GROUP); @@ -532,11 +533,11 @@ public class QuestionnaireBuilder { throw new NotImplementedException("Not Done Yet"); } - private QuestionnaireItemComponent addQuestion(QuestionnaireItemComponent group, QuestionnaireItemType af, String path, String id, String name, List answerGroups) throws FHIRException { - return addQuestion(group, af, path, id, name, answerGroups, null); + private QuestionnaireItemComponent addQuestion(QuestionnaireItemComponent group, QuestionnaireItemType af, QuestionnaireAnswerConstraint constraint, String path, String id, String name, List answerGroups) throws FHIRException { + return addQuestion(group, af, constraint, path, id, name, answerGroups, null); } - private QuestionnaireItemComponent addQuestion(QuestionnaireItemComponent group, QuestionnaireItemType af, String path, String id, String name, List answerGroups, ValueSet vs) throws FHIRException { + private QuestionnaireItemComponent addQuestion(QuestionnaireItemComponent group, QuestionnaireItemType af, QuestionnaireAnswerConstraint constraint, String path, String id, String name, List answerGroups, ValueSet vs) throws FHIRException { QuestionnaireItemComponent result = group.addItem(); if (vs != null) { if (vs.getExpansion() == null) { @@ -560,6 +561,7 @@ public class QuestionnaireBuilder { result.setLinkId(path+'.'+id); result.setText(name); result.setType(af); + result.setAnswerConstraint(constraint); result.setRequired(false); result.setRepeats(false); if (id.endsWith("/1")) @@ -616,8 +618,7 @@ public class QuestionnaireBuilder { // complex cases: // ? QuestionnaireItemTypeAttachment: ...? - case CHOICE: - case OPENCHOICE : + case CODING: if (value instanceof Coding) return (DataType) value; else if (value instanceof Enumeration) { @@ -766,7 +767,7 @@ public class QuestionnaireBuilder { private void addCodeQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "code"); ValueSet vs = resolveValueSet(null, element.hasBinding() ? element.getBinding() : null); - addQuestion(group, QuestionnaireItemType.CHOICE, path, "value", unCamelCase(tail(element.getPath())), answerGroups, vs); + addQuestion(group, QuestionnaireItemType.CODING, constraintTypeForBinding(element.getBinding()), path, "value", unCamelCase(tail(element.getPath())), answerGroups, vs); group.setText(null); for (QuestionnaireResponse.QuestionnaireResponseItemComponent ag : answerGroups) ag.setText(null); @@ -785,7 +786,7 @@ public class QuestionnaireBuilder { private void addStringQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "string"); - addQuestion(group, QuestionnaireItemType.STRING, path, "value", group.getText(), answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "value", group.getText(), answerGroups); group.setText(null); for (QuestionnaireResponse.QuestionnaireResponseItemComponent ag : answerGroups) ag.setText(null); @@ -793,7 +794,7 @@ public class QuestionnaireBuilder { private void addTimeQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "time"); - addQuestion(group, QuestionnaireItemType.TIME, path, "value", group.getText(), answerGroups); + addQuestion(group, QuestionnaireItemType.TIME, null, path, "value", group.getText(), answerGroups); group.setText(null); for (QuestionnaireResponse.QuestionnaireResponseItemComponent ag : answerGroups) ag.setText(null); @@ -801,7 +802,7 @@ public class QuestionnaireBuilder { private void addUriQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "uri"); - addQuestion(group, QuestionnaireItemType.STRING, path, "value", group.getText(), answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "value", group.getText(), answerGroups); group.setText(null); for (QuestionnaireResponse.QuestionnaireResponseItemComponent ag : answerGroups) ag.setText(null); @@ -809,7 +810,7 @@ public class QuestionnaireBuilder { private void addBooleanQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "boolean"); - addQuestion(group, QuestionnaireItemType.BOOLEAN, path, "value", group.getText(), answerGroups); + addQuestion(group, QuestionnaireItemType.BOOLEAN, null, path, "value", group.getText(), answerGroups); group.setText(null); for (QuestionnaireResponse.QuestionnaireResponseItemComponent ag : answerGroups) ag.setText(null); @@ -817,7 +818,7 @@ public class QuestionnaireBuilder { private void addDecimalQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "decimal"); - addQuestion(group, QuestionnaireItemType.DECIMAL, path, "value", group.getText(), answerGroups); + addQuestion(group, QuestionnaireItemType.DECIMAL, null, path, "value", group.getText(), answerGroups); group.setText(null); for (QuestionnaireResponse.QuestionnaireResponseItemComponent ag : answerGroups) ag.setText(null); @@ -825,7 +826,7 @@ public class QuestionnaireBuilder { private void addIntegerQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "integer"); - addQuestion(group, QuestionnaireItemType.INTEGER, path, "value", group.getText(), answerGroups); + addQuestion(group, QuestionnaireItemType.INTEGER, null, path, "value", group.getText(), answerGroups); group.setText(null); for (QuestionnaireResponse.QuestionnaireResponseItemComponent ag : answerGroups) ag.setText(null); @@ -833,7 +834,7 @@ public class QuestionnaireBuilder { private void addDateTimeQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "datetime"); - addQuestion(group, QuestionnaireItemType.DATETIME, path, "value", group.getText(), answerGroups); + addQuestion(group, QuestionnaireItemType.DATETIME, null, path, "value", group.getText(), answerGroups); group.setText(null); for (QuestionnaireResponse.QuestionnaireResponseItemComponent ag : answerGroups) ag.setText(null); @@ -841,7 +842,7 @@ public class QuestionnaireBuilder { private void addInstantQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "instant"); - addQuestion(group, QuestionnaireItemType.DATETIME, path, "value", group.getText(), answerGroups); + addQuestion(group, QuestionnaireItemType.DATETIME, null, path, "value", group.getText(), answerGroups); group.setText(null); for (QuestionnaireResponse.QuestionnaireResponseItemComponent ag : answerGroups) ag.setText(null); @@ -854,18 +855,18 @@ public class QuestionnaireBuilder { // Complex Types --------------------------------------------------------------- - private QuestionnaireItemType answerTypeForBinding(ElementDefinitionBindingComponent binding) { + private QuestionnaireAnswerConstraint constraintTypeForBinding(ElementDefinitionBindingComponent binding) { if (binding == null) - return QuestionnaireItemType.OPENCHOICE; + return null; else if (binding.getStrength() != BindingStrength.REQUIRED) - return QuestionnaireItemType.OPENCHOICE; + return QuestionnaireAnswerConstraint.OPTIONSONLY; else - return QuestionnaireItemType.CHOICE; + return QuestionnaireAnswerConstraint.OPTIONSORTYPE; } private void addCodingQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Coding"); - addQuestion(group, answerTypeForBinding(element.hasBinding() ? element.getBinding() : null), path, "value", group.getText(), answerGroups, resolveValueSet(null, element.hasBinding() ? element.getBinding() : null)); + addQuestion(group, QuestionnaireItemType.CODING, constraintTypeForBinding(element.getBinding()), path, "value", group.getText(), answerGroups, resolveValueSet(null, element.hasBinding() ? element.getBinding() : null)); group.setText(null); for (QuestionnaireResponse.QuestionnaireResponseItemComponent ag : answerGroups) ag.setText(null); @@ -873,8 +874,8 @@ public class QuestionnaireBuilder { private void addCodeableConceptQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "CodeableConcept"); - addQuestion(group, answerTypeForBinding(element.hasBinding() ? element.getBinding() : null), path, "coding", "code:", answerGroups, resolveValueSet(null, element.hasBinding() ? element.getBinding() : null)); - addQuestion(group, QuestionnaireItemType.STRING, path, "text", "text:", answerGroups); + addQuestion(group, QuestionnaireItemType.CODING, constraintTypeForBinding(element.getBinding()), path, "coding", "code:", answerGroups, resolveValueSet(null, element.hasBinding() ? element.getBinding() : null)); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "text", "text:", answerGroups); } private ValueSet makeAnyValueSet() { @@ -884,83 +885,83 @@ public class QuestionnaireBuilder { private void addPeriodQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Period"); - addQuestion(group, QuestionnaireItemType.DATETIME, path, "low", "start:", answerGroups); - addQuestion(group, QuestionnaireItemType.DATETIME, path, "end", "end:", answerGroups); + addQuestion(group, QuestionnaireItemType.DATETIME, null, path, "low", "start:", answerGroups); + addQuestion(group, QuestionnaireItemType.DATETIME, null, path, "end", "end:", answerGroups); } private void addRatioQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Ratio"); - addQuestion(group, QuestionnaireItemType.DECIMAL, path, "numerator", "numerator:", answerGroups); - addQuestion(group, QuestionnaireItemType.DECIMAL, path, "denominator", "denominator:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "units", "units:", answerGroups); + addQuestion(group, QuestionnaireItemType.DECIMAL, null, path, "numerator", "numerator:", answerGroups); + addQuestion(group, QuestionnaireItemType.DECIMAL, null, path, "denominator", "denominator:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "units", "units:", answerGroups); } private void addHumanNameQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Name"); - addQuestion(group, QuestionnaireItemType.STRING, path, "text", "text:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "family", "family:", answerGroups).setRepeats(true); - addQuestion(group, QuestionnaireItemType.STRING, path, "given", "given:", answerGroups).setRepeats(true); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "text", "text:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "family", "family:", answerGroups).setRepeats(true); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "given", "given:", answerGroups).setRepeats(true); } private void addAddressQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Address"); - addQuestion(group, QuestionnaireItemType.STRING, path, "text", "text:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "line", "line:", answerGroups).setRepeats(true); - addQuestion(group, QuestionnaireItemType.STRING, path, "city", "city:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "state", "state:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "postalCode", "post code:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "country", "country:", answerGroups); - addQuestion(group, QuestionnaireItemType.CHOICE, path, "use", "use:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/address-use")); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "text", "text:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "line", "line:", answerGroups).setRepeats(true); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "city", "city:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "state", "state:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "postalCode", "post code:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "country", "country:", answerGroups); + addQuestion(group, QuestionnaireItemType.CODING, QuestionnaireAnswerConstraint.OPTIONSONLY, path, "use", "use:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/address-use")); } private void addContactPointQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "ContactPoint"); - addQuestion(group, QuestionnaireItemType.CHOICE, path, "system", "type:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/contact-point-system")); - addQuestion(group, QuestionnaireItemType.STRING, path, "value", "value:", answerGroups); - addQuestion(group, QuestionnaireItemType.CHOICE, path, "use", "use:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/contact-point-use")); + addQuestion(group, QuestionnaireItemType.CODING, QuestionnaireAnswerConstraint.OPTIONSONLY, path, "system", "type:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/contact-point-system")); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "value", "value:", answerGroups); + addQuestion(group, QuestionnaireItemType.CODING, QuestionnaireAnswerConstraint.OPTIONSONLY, path, "use", "use:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/contact-point-use")); } private void addIdentifierQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Identifier"); - addQuestion(group, QuestionnaireItemType.STRING, path, "label", "label:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "system", "system:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "value", "value:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "label", "label:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "system", "system:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "value", "value:", answerGroups); } private void addSimpleQuantityQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Quantity"); - addQuestion(group, QuestionnaireItemType.DECIMAL, path, "value", "value:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "units", "units:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "code", "coded units:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "system", "units system:", answerGroups); + addQuestion(group, QuestionnaireItemType.DECIMAL, null, path, "value", "value:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "units", "units:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "code", "coded units:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "system", "units system:", answerGroups); } private void addQuantityQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Quantity"); - addQuestion(group, QuestionnaireItemType.CHOICE, path, "comparator", "comp:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/quantity-comparator")); - addQuestion(group, QuestionnaireItemType.DECIMAL, path, "value", "value:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "units", "units:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "code", "coded units:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "system", "units system:", answerGroups); + addQuestion(group, QuestionnaireItemType.CODING, QuestionnaireAnswerConstraint.OPTIONSONLY, path, "comparator", "comp:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/quantity-comparator")); + addQuestion(group, QuestionnaireItemType.DECIMAL, null, path, "value", "value:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "units", "units:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "code", "coded units:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "system", "units system:", answerGroups); } private void addMoneyQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Money"); - addQuestion(group, QuestionnaireItemType.DECIMAL, path, "value", "value:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "currency", "currency:", answerGroups); + addQuestion(group, QuestionnaireItemType.DECIMAL, null, path, "value", "value:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "currency", "currency:", answerGroups); } private void addAgeQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Age"); - addQuestion(group, QuestionnaireItemType.CHOICE, path, "comparator", "comp:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/quantity-comparator")); - addQuestion(group, QuestionnaireItemType.DECIMAL, path, "value", "value:", answerGroups); - addQuestion(group, QuestionnaireItemType.CHOICE, path, "units", "units:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/duration-units")); + addQuestion(group, QuestionnaireItemType.CODING, QuestionnaireAnswerConstraint.OPTIONSONLY, path, "comparator", "comp:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/quantity-comparator")); + addQuestion(group, QuestionnaireItemType.DECIMAL, null, path, "value", "value:", answerGroups); + addQuestion(group, QuestionnaireItemType.CODING, QuestionnaireAnswerConstraint.OPTIONSONLY, path, "units", "units:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/duration-units")); } private void addDurationQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Duration"); - addQuestion(group, QuestionnaireItemType.DECIMAL, path, "value", "value:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "units", "units:", answerGroups); + addQuestion(group, QuestionnaireItemType.DECIMAL, null, path, "value", "value:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "units", "units:", answerGroups); } private void addAttachmentQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) { @@ -970,9 +971,9 @@ public class QuestionnaireBuilder { private void addRangeQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Range"); - addQuestion(group, QuestionnaireItemType.DECIMAL, path, "low", "low:", answerGroups); - addQuestion(group, QuestionnaireItemType.DECIMAL, path, "high", "high:", answerGroups); - addQuestion(group, QuestionnaireItemType.STRING, path, "units", "units:", answerGroups); + addQuestion(group, QuestionnaireItemType.DECIMAL, null, path, "low", "low:", answerGroups); + addQuestion(group, QuestionnaireItemType.DECIMAL, null, path, "high", "high:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "units", "units:", answerGroups); } private void addSampledDataQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) { @@ -981,9 +982,9 @@ public class QuestionnaireBuilder { private void addTimingQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Schedule"); - addQuestion(group, QuestionnaireItemType.STRING, path, "text", "text:", answerGroups); - addQuestion(group, QuestionnaireItemType.DATETIME, path, "date", "date:", answerGroups); - QuestionnaireItemComponent q = addQuestion(group, QuestionnaireItemType.REFERENCE, path, "author", "author:", answerGroups); + addQuestion(group, QuestionnaireItemType.STRING, null, path, "text", "text:", answerGroups); + addQuestion(group, QuestionnaireItemType.DATETIME, null, path, "date", "date:", answerGroups); + QuestionnaireItemComponent q = addQuestion(group, QuestionnaireItemType.REFERENCE, null, path, "author", "author:", answerGroups); ToolingExtensions.addAllowedResource(q, "Patient"); ToolingExtensions.addAllowedResource(q, "Practitioner"); ToolingExtensions.addAllowedResource(q, "RelatedPerson"); @@ -1001,7 +1002,7 @@ public class QuestionnaireBuilder { // q : TFhirQuestionnaireGroupQuestion; ToolingExtensions.addFhirType(group, "Reference"); - QuestionnaireItemComponent q = addQuestion(group, QuestionnaireItemType.REFERENCE, path, "value", group.getText(), answerGroups); + QuestionnaireItemComponent q = addQuestion(group, QuestionnaireItemType.REFERENCE, null, path, "value", group.getText(), answerGroups); group.setText(null); CommaSeparatedStringBuilder rn = new CommaSeparatedStringBuilder(); for (UriType u : profileURL) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/structuremap/StructureMapUtilities.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/structuremap/StructureMapUtilities.java index 19ebe962b..1fc539ece 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/structuremap/StructureMapUtilities.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/utils/structuremap/StructureMapUtilities.java @@ -506,8 +506,6 @@ public class StructureMapUtilities { private static void renderTarget(StringBuilder b, StructureMapGroupRuleTargetComponent rt, boolean abbreviate) { if (rt.hasContext()) { - if (rt.getContextType() == StructureMapContextType.TYPE) - b.append("@"); b.append(rt.getContext()); if (rt.hasElement()) { b.append('.'); @@ -1004,7 +1002,6 @@ public class StructureMapUtilities { String start = lexer.take(); if (lexer.hasToken(".")) { target.setContext(start); - target.setContextType(StructureMapContextType.VARIABLE); start = null; lexer.token("."); target.setElement(lexer.take()); diff --git a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ParsingTests.java b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ParsingTests.java index 99a5c4b3c..9e1f1c7cf 100644 --- a/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ParsingTests.java +++ b/org.hl7.fhir.r5/src/test/java/org/hl7/fhir/r5/test/ParsingTests.java @@ -68,7 +68,7 @@ public class ParsingTests { public static Stream data() throws ParserConfigurationException, IOException, FHIRFormatError, SAXException { FilesystemPackageCacheManager pcm = new FilesystemPackageCacheManager(true, ToolsVersion.TOOLS_VERSION); - npm = pcm.loadPackage("hl7.fhir.r5.examples", "4.5.0"); + npm = pcm.loadPackage("hl7.fhir.r5.examples", "4.6.0"); List objects = new ArrayList<>(); List names = npm.list("package"); for (String n : names) { diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/CanonicalPair.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/CanonicalPair.java new file mode 100644 index 000000000..6fe972e01 --- /dev/null +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/CanonicalPair.java @@ -0,0 +1,26 @@ +package org.hl7.fhir.utilities; + +public class CanonicalPair { + + private String url; + private String version; + + public CanonicalPair(String target) { + if (target != null && target.contains("|")) { + this.url = target.substring(0, target.indexOf("|")); + this.version = target.substring(target.indexOf("|")+1); + } else { + this.url = target; + this.version = null; + } + } + + public String getUrl() { + return url; + } + + public String getVersion() { + return version; + } + +} diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/VersionUtilities.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/VersionUtilities.java index 5c4327c49..35b83bfbb 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/VersionUtilities.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/VersionUtilities.java @@ -55,8 +55,8 @@ public class VersionUtilities { } } - public static final String CURRENT_VERSION = "4.5"; - public static final String CURRENT_FULL_VERSION = "4.5.0"; + public static final String CURRENT_VERSION = "4.6"; + public static final String CURRENT_FULL_VERSION = "4.6.0"; public static String packageForVersion(String v) { if (isR2Ver(v)) { @@ -77,7 +77,7 @@ public class VersionUtilities { if (v != null && v.startsWith(CURRENT_VERSION)) { return "hl7.fhir.r5.core"; } - if ("4.4.0".equals(v)) { + if (Utilities.existsInList(v, "4.4.0", "4.5.0")) { return "hl7.fhir.r5.core"; } return null; diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidationEngine.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidationEngine.java index 9375ada7b..7e71fa3d6 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidationEngine.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/ValidationEngine.java @@ -656,7 +656,7 @@ public class ValidationEngine implements IValidatorResourceFetcher, IPackageInst public FilesystemPackageCacheManager getPcm() throws IOException { if (pcm == null) { - System.out.println("Creating Package manager?"); + //System.out.println("Creating Package manager?"); pcm = new FilesystemPackageCacheManager(true, ToolsVersion.TOOLS_VERSION); } return pcm; diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/QuestionnaireValidator.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/QuestionnaireValidator.java index 5d28a4f52..0c7aa5bea 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/QuestionnaireValidator.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/type/QuestionnaireValidator.java @@ -319,7 +319,7 @@ public class QuestionnaireValidator extends BaseValidator { if (qItem.hasExtension("???")) validateQuestionnaireResponseItemQuantity(errors, answer, ns); break; - case CHOICE: + case CODING: String itemType = validateQuestionnaireResponseItemType(errors, answer, ns, "Coding", "date", "time", "integer", "string"); if (itemType != null) { if (itemType.equals("Coding")) validateAnswerCode(errors, answer, ns, qsrc, qItem, false); @@ -330,18 +330,18 @@ public class QuestionnaireValidator extends BaseValidator { else if (itemType.equals("string")) checkOption(errors, answer, ns, qsrc, qItem, "string"); } break; - case OPENCHOICE: - itemType = validateQuestionnaireResponseItemType(errors, answer, ns, "Coding", "date", "time", "integer", "string"); - if (itemType != null) { - if (itemType.equals("Coding")) validateAnswerCode(errors, answer, ns, qsrc, qItem, true); - else if (itemType.equals("date")) checkOption(errors, answer, ns, qsrc, qItem, "date"); - else if (itemType.equals("time")) checkOption(errors, answer, ns, qsrc, qItem, "time"); - else if (itemType.equals("integer")) - checkOption(errors, answer, ns, qsrc, qItem, "integer"); - else if (itemType.equals("string")) - checkOption(errors, answer, ns, qsrc, qItem, "string", true); - } - break; +// case OPENCHOICE: +// itemType = validateQuestionnaireResponseItemType(errors, answer, ns, "Coding", "date", "time", "integer", "string"); +// if (itemType != null) { +// if (itemType.equals("Coding")) validateAnswerCode(errors, answer, ns, qsrc, qItem, true); +// else if (itemType.equals("date")) checkOption(errors, answer, ns, qsrc, qItem, "date"); +// else if (itemType.equals("time")) checkOption(errors, answer, ns, qsrc, qItem, "time"); +// else if (itemType.equals("integer")) +// checkOption(errors, answer, ns, qsrc, qItem, "integer"); +// else if (itemType.equals("string")) +// checkOption(errors, answer, ns, qsrc, qItem, "string", true); +// } +// break; // case QUESTION: case NULL: // no validation